:root {
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: #15171b;
  background: #f7f8fa;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --blue: #175cd3;
  --blue-dark: #123f91;
  --line: #dedfe3;
  --muted: #6b7280;
  --surface: #ffffff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: #f7f8fa; }
body.modal-open { overflow: hidden; }
button, a { font: inherit; }
button { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }

.site-shell { min-height: 100vh; overflow: hidden; }
.topbar { position: fixed; inset: 0 0 auto; z-index: 50; height: 72px; border-bottom: 1px solid rgba(222, 223, 227, .8); background: rgba(255,255,255,.88); backdrop-filter: blur(18px); }
.topbar-inner { max-width: 1200px; height: 100%; margin: auto; padding: 0 24px; display: flex; align-items: center; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark { width: 36px; height: 36px; display: grid; place-items: center; background: #15171b; color: white; border-radius: 6px; font-size: 12px; font-weight: 700; }
.brand-name { font-size: 18px; font-weight: 700; white-space: nowrap; }
.brand-name b { margin-left: 4px; font-size: 11px; color: #6b7280; font-weight: 600; }
.desktop-nav { display: flex; gap: 32px; margin-left: auto; }
.desktop-nav a, .desktop-nav button { border: 0; padding: 8px 0; background: none; cursor: pointer; color: #525866; font-size: 14px; }
.desktop-nav a:hover, .desktop-nav button:hover { color: var(--blue); }
.support-link { height: 38px; margin-left: 36px; padding: 0 15px; border: 1px solid #d0d5dd; border-radius: 6px; display: inline-flex; align-items: center; gap: 8px; background: white; cursor: pointer; font-size: 13px; font-weight: 600; }
.support-link:hover { border-color: #15171b; }
.menu-button { display: none; margin-left: auto; width: 40px; height: 40px; border: 0; background: none; cursor: pointer; }

main { padding-top: 72px; }
.hero { max-width: 1200px; min-height: 600px; margin: 0 auto; padding: 72px 24px 48px; display: grid; grid-template-columns: 1.1fr .9fr; align-items: stretch; gap: 64px; }
.hero-copy { align-self: center; padding: 40px 0; }
.hero h1 { max-width: 680px; margin: 30px 0 24px; font-size: clamp(46px, 5.5vw, 72px); line-height: 1.1; letter-spacing: 0; }
.hero-copy > p { max-width: 590px; margin: 0; color: #626875; font-size: 18px; line-height: 1.8; }
.hero-actions { display: flex; align-items: center; gap: 28px; margin-top: 40px; }
.primary-button { min-height: 48px; padding: 0 20px; border-radius: 6px; display: inline-flex; align-items: center; gap: 12px; background: var(--blue); color: white; font-size: 14px; font-weight: 600; }
.primary-button:hover { background: var(--blue-dark); }
.hero-side { position: relative; min-height: 470px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 36px; background: #171a1f; color: white; border-radius: 8px; }
.hero-side::before { content: ''; position: absolute; width: 330px; height: 330px; right: -100px; top: -120px; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; box-shadow: 0 0 0 65px rgba(255,255,255,.035), 0 0 0 130px rgba(255,255,255,.025); }
.hero-monogram { position: absolute; top: 44px; left: 36px; color: rgba(255,255,255,.08); font-size: 140px; line-height: 1; font-weight: 700; }
.hero-side-content { position: relative; display: flex; flex-direction: column; }
.hero-side-content span { color: #98a2b3; font-size: 11px; letter-spacing: .18em; }
.hero-side-content strong { margin: 16px 0 48px; font-size: 28px; line-height: 1.45; }
.hero-side-content small { padding-top: 20px; border-top: 1px solid rgba(255,255,255,.16); color: #98a2b3; letter-spacing: .1em; }

.section-wrap { max-width: 1200px; margin: auto; padding: 96px 24px; }
.section-heading { margin-bottom: 40px; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.section-index { display: block; margin-bottom: 14px; color: var(--blue); font-size: 11px; font-weight: 700; letter-spacing: .12em; }
.section-heading h2 { margin: 0; font-size: 36px; line-height: 1.25; }
.section-heading > p { margin: 0; color: var(--muted); font-size: 14px; }
.verified-label { display: inline-flex; align-items: center; gap: 7px; color: #087f5b; font-size: 13px; font-weight: 600; }
.verified-label.is-delayed { color: #9a6700; }
.result-section { border-top: 1px solid var(--line); }
.result-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; }
.result-panel { overflow: hidden; border: 1px solid #d7d9de; border-radius: 8px; background: var(--surface); }
.result-meta { padding: 28px 32px; display: flex; justify-content: space-between; border-bottom: 1px solid #e4e5e8; }
.result-meta > div { display: flex; flex-direction: column; gap: 8px; }
.result-meta > div:last-child { text-align: right; }
.result-meta span { color: var(--muted); font-size: 12px; }
.result-meta strong { font-size: 20px; }
.number-row { min-height: 190px; padding: 34px 32px; display: flex; align-items: center; justify-content: center; gap: clamp(12px, 3vw, 30px); }
.number-item { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.number-item span { width: clamp(58px, 7vw, 76px); aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; border: 1px solid #b9cef7; background: #edf3ff; color: var(--blue); font-size: clamp(20px, 2.2vw, 28px); font-weight: 700; }
.number-item small { color: #8a909c; font-size: 10px; }
.number-item.special span { border-color: #cbc6ef; background: #f1efff; color: #6146c7; }
.lottery-equation { gap: clamp(8px, 1.5vw, 18px); }
.lottery-equation.is-loading .number-item span { color: #9aa7bb; animation: lottery-pulse 1.2s ease-in-out infinite alternate; }
.lottery-operator { color: #8a93a1; font-size: 22px; font-weight: 500; transform: translateY(-9px); }
.number-item.total span { border-color: #a9d9c6; background: #e8f7f0; color: #087f5b; }
.lottery-result-tags { min-height: 38px; margin-top: -20px; padding: 0 32px 18px; display: flex; align-items: center; justify-content: center; gap: 7px; }
.lottery-result-tags span { min-width: 38px; padding: 5px 9px; border: 1px solid #dce3ec; border-radius: 4px; background: #f7f9fb; color: #5a6574; font-size: 11px; font-weight: 650; text-align: center; }
.result-footer { min-height: 56px; padding: 0 32px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid #e4e5e8; background: #fafafa; }
.result-footer span, .result-footer button { display: inline-flex; align-items: center; gap: 7px; color: #69707d; font-size: 12px; }
.result-footer button { border: 0; background: none; cursor: pointer; color: #15171b; font-weight: 600; }
.result-note { padding: 28px; border-radius: 8px; background: #e9f0fd; }
.result-note > svg { color: var(--blue); }
.result-note h3 { margin: 48px 0 10px; font-size: 20px; }
.next-draw-countdown { margin: 16px 0 8px; color: var(--blue-dark); font-size: 38px; font-weight: 750; line-height: 1; font-variant-numeric: tabular-nums; }
.result-note p { margin: 0 0 24px; color: #536176; font-size: 14px; line-height: 1.75; }
.result-note button { padding: 0; border: 0; display: inline-flex; align-items: center; gap: 8px; background: none; color: var(--blue-dark); font-weight: 600; font-size: 13px; cursor: pointer; }

.connect-section { border-top: 1px solid var(--line); }
.channel-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.channel-card { min-height: 184px; padding: 28px; border: 1px solid #d7d9de; border-radius: 8px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 22px; background: var(--surface); text-align: left; cursor: pointer; transition: border-color .2s, transform .2s; }
.channel-card:hover { border-color: var(--channel-color); transform: translateY(-3px); }
.channel-icon { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--channel-color) 9%, white); color: var(--channel-color); }
.channel-icon img { width: 34px; height: 34px; display: block; border-radius: 8px; }
.channel-icon svg { width: 30px; height: 30px; display: block; }
[hidden] { display: none !important; }
.channel-icon svg { width: 30px; height: 30px; display: block; }
.channel-copy { display: flex; flex-direction: column; }
.channel-copy strong { font-size: 21px; }
.channel-copy small { margin-top: 3px; color: var(--channel-color); font-size: 10px; font-style: normal; letter-spacing: .1em; }
.channel-copy em { margin-top: 22px; color: var(--muted); font-size: 13px; font-style: normal; }
.channel-action { width: 44px; height: 44px; border: 1px solid #e1e3e6; border-radius: 6px; display: grid; place-items: center; }

.service-band { background: #15171b; color: white; }
.service-inner { max-width: 1200px; margin: auto; padding: 88px 24px 96px; display: grid; grid-template-columns: minmax(330px, .85fr) 1.15fr; gap: 72px; }
.service-heading { align-items: flex-start; }
.service-heading h2 { max-width: 360px; font-size: 36px; }
.service-list { border-top: 1px solid #3b3e44; }
.service-list button { width: 100%; min-height: 104px; padding: 0 8px; border: 0; border-bottom: 1px solid #3b3e44; display: grid; grid-template-columns: 36px 28px 1fr 24px; align-items: center; gap: 22px; background: none; color: white; text-align: left; cursor: pointer; }
.service-list button:hover { background: rgba(255,255,255,.04); }
.service-list button > svg:last-child { color: #717783; transition: transform .2s; }
.service-list button:hover > svg:last-child { transform: translateX(5px); color: white; }
.service-number { color: #717783; font-size: 11px; }
.service-list button > span:nth-of-type(2) { display: flex; flex-direction: column; gap: 5px; }
.service-list strong { font-size: 17px; }
.service-list small { color: #8f96a3; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }

.footer { max-width: 1200px; margin: auto; padding: 56px 24px 32px; }
.footer-main { min-height: 100px; display: grid; grid-template-columns: 1fr 1fr auto; align-items: start; gap: 32px; }
.footer-main > p { margin: 9px 0 0; color: var(--muted); font-size: 13px; }
.footer-links { display: flex; gap: 22px; margin-top: 9px; }
.footer-links button { padding: 0; border: 0; background: none; color: var(--muted); font-size: 12px; cursor: pointer; }
.footer-links button:hover { color: #15171b; }
.footer-bottom { padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; color: #8a909c; font-size: 10px; letter-spacing: .08em; }
.mobile-nav { display: none; }

.modal-backdrop { position: fixed; inset: 0; z-index: 100; padding: 24px; display: grid; place-items: center; background: rgba(20,22,27,.54); backdrop-filter: blur(12px); animation: fade-in .2s ease; }
.modal { position: relative; width: min(100%, 520px); max-height: calc(100vh - 48px); overflow: auto; border: 1px solid rgba(255,255,255,.7); border-radius: 8px; background: rgba(255,255,255,.96); box-shadow: 0 24px 80px rgba(0,0,0,.2); animation: modal-in .25s ease; }
.modal-close { position: absolute; top: 18px; right: 18px; z-index: 1; width: 40px; height: 40px; border: 1px solid #e0e2e5; border-radius: 50%; display: grid; place-items: center; background: white; cursor: pointer; }
.modal-close svg { width: 18px; }
.modal-kicker { display: block; color: var(--blue); font-size: 10px; font-weight: 700; letter-spacing: .14em; }
.social-modal, .history-modal, .security-modal { padding: 40px; }
.social-modal { text-align: center; }
.social-modal .modal-kicker { color: var(--channel-color); }
.social-modal h2, .history-modal h2, .security-modal h2 { margin: 14px 0 8px; font-size: 30px; }
.social-modal > p, .history-modal > p, .security-modal > p { margin: 0; color: var(--muted); font-size: 13px; }
.qr-frame { width: min(100%, 320px); aspect-ratio: 1; margin: 32px auto 22px; padding: 12px; border: 1px solid #e1e3e6; border-radius: 8px; background: white; }
.qr-frame img { width: 100%; height: 100%; display: block; object-fit: cover; border-radius: 5px; }
.social-modal > strong { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--channel-color); font-size: 16px; }
.social-modal > small { display: block; margin-top: 8px; color: #9298a3; font-size: 9px; letter-spacing: .16em; }
.history-table { margin-top: 30px; border-top: 1px solid var(--line); }
.history-row { min-height: 78px; padding: 13px 0; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.history-row > div:first-child { display: flex; flex-direction: column; gap: 4px; }
.history-row small { color: var(--muted); font-size: 10px; }
.mini-numbers { display: flex; gap: 7px; }
.mini-numbers b { display: grid; place-items: center; color: #9298a3; font-size: 12px; }
.mini-numbers span { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 50%; background: #edf3ff; color: var(--blue); font-size: 11px; font-weight: 700; }
.mini-numbers span.special { background: #f1efff; color: #6146c7; }
.history-empty { min-height: 104px; display: grid; place-items: center; color: var(--muted); font-size: 12px; }
.security-points { margin-top: 30px; display: grid; gap: 12px; }
.security-points > div { min-height: 76px; padding: 16px; border: 1px solid #e0e2e5; border-radius: 7px; display: flex; align-items: center; gap: 16px; }
.security-points svg { flex: 0 0 auto; color: #087f5b; }
.security-points span { display: flex; flex-direction: column; gap: 5px; }
.security-points small { color: var(--muted); }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 110; max-width: calc(100vw - 32px); padding: 13px 18px; border-radius: 6px; display: flex; align-items: center; gap: 9px; background: #15171b; color: white; box-shadow: 0 12px 30px rgba(0,0,0,.16); font-size: 13px; transform: translateX(-50%); animation: toast-in .25s ease; }

@keyframes fade-in { from { opacity: 0; } }
@keyframes modal-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 12px); } }
@keyframes lottery-pulse { from { opacity: .45; } to { opacity: 1; } }

@media (max-width: 800px) {
  .topbar { height: 64px; }
  .topbar-inner { padding: 0 20px; }
  .desktop-nav { position: absolute; top: 64px; left: 0; right: 0; display: none; padding: 12px 20px 20px; flex-direction: column; gap: 4px; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); }
  .desktop-nav.is-open { display: flex; }
  .desktop-nav a, .desktop-nav button { padding: 13px 0; text-align: left; border-bottom: 1px solid #eceef0; }
  .support-link { display: none; }
  .menu-button { display: grid; place-items: center; }
  main { padding-top: 64px; }
  .hero { min-height: auto; padding: 48px 20px 36px; grid-template-columns: 1fr; gap: 28px; }
  .hero-copy { padding: 0; }
  .hero h1 { margin: 24px 0 20px; font-size: 43px; }
  .hero-copy > p { font-size: 16px; }
  .hero-actions { margin-top: 30px; flex-direction: column; align-items: stretch; gap: 18px; }
  .primary-button { justify-content: space-between; }
  .hero-side { min-height: 290px; padding: 28px; }
  .hero-monogram { font-size: 96px; top: 26px; left: 28px; }
  .hero-side-content strong { margin-bottom: 28px; font-size: 24px; }
  .section-wrap { padding: 72px 20px; }
  .section-heading { margin-bottom: 28px; align-items: flex-start; }
  .section-heading h2 { font-size: 29px; }
  .section-heading > p { display: none; }
  .result-layout { grid-template-columns: 1fr; }
  .result-meta { padding: 22px 20px; }
  .result-meta strong { font-size: 15px; }
  .number-row { min-height: 140px; padding: 25px 14px; gap: 8px; }
  .number-item span { width: clamp(44px, 12vw, 56px); font-size: 18px; }
  .lottery-operator { font-size: 16px; transform: translateY(-9px); }
  .lottery-result-tags { margin-top: -10px; padding: 0 14px 14px; }
  .result-footer { padding: 0 18px; }
  .result-note { padding: 24px; }
  .result-note h3 { margin-top: 30px; }
  .channel-grid { grid-template-columns: 1fr; gap: 14px; }
  .channel-card { min-height: 142px; padding: 22px; grid-template-columns: auto 1fr auto; }
  .channel-copy em { margin-top: 14px; }
  .service-inner { padding: 68px 20px 76px; grid-template-columns: 1fr; gap: 18px; }
  .service-heading { margin-bottom: 8px; }
  .footer { padding: 42px 20px 104px; }
  .footer-main { grid-template-columns: 1fr; gap: 16px; }
  .footer-main > p { margin: 0; }
  .footer-links { margin-top: 10px; }
  .footer-bottom { margin-top: 30px; flex-direction: column; gap: 8px; }
  .mobile-nav { position: fixed; inset: auto 12px 12px; z-index: 45; height: 66px; padding: 0 8px; border: 1px solid rgba(210,213,218,.8); border-radius: 8px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); background: rgba(255,255,255,.94); backdrop-filter: blur(18px); box-shadow: 0 8px 26px rgba(20,25,35,.12); }
  .mobile-nav a, .mobile-nav button { min-width: 0; border: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; background: none; color: #686e7a; font-size: 9px; cursor: pointer; }
  .mobile-nav svg, .mobile-nav img { width: 19px; height: 19px; flex: 0 0 19px; display: block; }
  .mobile-nav span { height: 12px; line-height: 12px; white-space: nowrap; }
  .toast { bottom: 92px; }
  .modal-backdrop { padding: 12px; place-items: center; }
  .modal { width: 100%; max-height: calc(100vh - 24px); }
  .social-modal, .history-modal, .security-modal { padding: 34px 24px 28px; }
  .qr-frame { width: min(100%, 300px); margin-top: 26px; }
  .history-row { align-items: flex-start; flex-direction: column; gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
