/* Premium public design system. Loaded after site.css to keep behavior and API bindings intact. */
:root {
  color-scheme: light;
  --ds-bg: #f6f4ef;
  --ds-bg-2: #eeebe4;
  --ds-surface: rgba(255, 255, 255, .86);
  --ds-surface-solid: #fff;
  --ds-surface-soft: #f3f1ec;
  --ds-ink: #111722;
  --ds-ink-2: #354052;
  --ds-muted: #737c8b;
  --ds-line: rgba(24, 34, 49, .11);
  --ds-line-strong: rgba(24, 34, 49, .18);
  --ds-blue: #2e64e8;
  --ds-blue-2: #5a91ff;
  --ds-blue-soft: #e8efff;
  --ds-gold: #bc7b23;
  --ds-gold-2: #f2bd69;
  --ds-gold-soft: #fff2dc;
  --ds-green: #168c70;
  --ds-shadow-sm: 0 8px 24px rgba(25, 35, 50, .06);
  --ds-shadow: 0 22px 60px rgba(25, 35, 50, .10);
  --ds-shadow-lg: 0 34px 100px rgba(16, 24, 36, .22);
  --ds-radius-sm: 12px;
  --ds-radius: 20px;
  --ds-radius-lg: 30px;
  --ds-font: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --ds-display: "Arial Black", Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --ds-bg: #080c13;
  --ds-bg-2: #0c121d;
  --ds-surface: rgba(15, 22, 34, .84);
  --ds-surface-solid: #101824;
  --ds-surface-soft: #151f2d;
  --ds-ink: #f5f7fb;
  --ds-ink-2: #bdc7d7;
  --ds-muted: #8692a4;
  --ds-line: rgba(194, 211, 235, .12);
  --ds-line-strong: rgba(194, 211, 235, .22);
  --ds-blue: #6c98ff;
  --ds-blue-2: #3c72ee;
  --ds-blue-soft: rgba(77, 124, 239, .15);
  --ds-gold: #e4ae5a;
  --ds-gold-2: #f3cf8c;
  --ds-gold-soft: rgba(218, 158, 66, .13);
  --ds-green: #51c6a8;
  --ds-shadow-sm: 0 10px 28px rgba(0, 0, 0, .18);
  --ds-shadow: 0 24px 70px rgba(0, 0, 0, .32);
  --ds-shadow-lg: 0 38px 110px rgba(0, 0, 0, .56);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 10% -10%, rgba(244, 192, 105, .14), transparent 28rem),
    radial-gradient(circle at 88% 8%, rgba(76, 126, 240, .10), transparent 34rem),
    linear-gradient(180deg, var(--ds-bg), var(--ds-bg-2));
  color: var(--ds-ink);
  font-family: var(--ds-font);
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  z-index: -1;
  inset: 0;
  opacity: .24;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 120 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.035'/%3E%3C/svg%3E");
}
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--ds-blue) 34%, transparent);
  outline-offset: 3px;
}
.wrap { width: min(1480px, calc(100% - 64px)); }
.skip-link { position: fixed; z-index: 200; top: 10px; left: 10px; transform: translateY(-140%); padding: 10px 14px; border-radius: 10px; background: var(--ds-ink); color: var(--ds-bg); }
.skip-link:focus { transform: none; }

/* Loading */
.page-loader {
  position: fixed; z-index: 190; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px;
  background: var(--ds-bg); color: var(--ds-ink); transition: opacity .36s ease, visibility .36s ease;
}
body:not(.app-loading) .page-loader { opacity: 0; visibility: hidden; }
.loader-mark { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 18px; background: linear-gradient(145deg, var(--ds-blue-2), var(--ds-blue)); color: #fff; font-size: 26px; font-weight: 900; box-shadow: 0 16px 36px rgba(46, 100, 232, .25); }
.loader-copy { display: grid; gap: 3px; text-align: center; }
.loader-copy strong { font-size: 16px; }
.loader-copy small { color: var(--ds-muted); }
.loader-line { width: 180px; height: 3px; overflow: hidden; border-radius: 99px; background: var(--ds-line); }
.loader-line::after { content: ""; display: block; width: 46%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--ds-blue), var(--ds-gold-2)); animation: loader-slide 1s ease-in-out infinite alternate; }
@keyframes loader-slide { to { transform: translateX(118%); } }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 70; border-bottom: 1px solid var(--ds-line);
  background: color-mix(in srgb, var(--ds-bg) 82%, transparent); backdrop-filter: blur(22px) saturate(1.25);
}
.header-inner { min-height: 78px; display: grid; grid-template-columns: auto minmax(320px, 1fr) auto; align-items: center; gap: 30px; }
.brand { gap: 12px; color: var(--ds-ink); }
.brand-mark { width: 46px; height: 46px; border-radius: 15px; background: linear-gradient(145deg, #6598ff 0%, #2859df 68%, #17379a 100%); box-shadow: 0 12px 30px rgba(42, 87, 214, .28), inset 0 1px rgba(255,255,255,.45); font-size: 22px; }
.brand-copy { gap: 1px; }
.brand-copy strong { font-size: 17px; letter-spacing: -.03em; }
.brand-copy small { color: var(--ds-muted); font-size: 10px; letter-spacing: .04em; }
.desktop-nav { display: flex; justify-content: center; align-items: center; gap: 2px; min-width: 0; }
.desktop-nav button { position: relative; padding: 10px 13px; border: 0; border-radius: 10px; background: transparent; color: var(--ds-muted); font-size: 13px; white-space: nowrap; transition: .2s ease; }
.desktop-nav button:hover { color: var(--ds-ink); background: var(--ds-surface-soft); }
.desktop-nav button.active { color: var(--ds-gold); background: var(--ds-gold-soft); }
.desktop-nav button.active::after { content: ""; position: absolute; left: 13px; right: 13px; bottom: 3px; height: 2px; border-radius: 9px; background: linear-gradient(90deg, var(--ds-gold), var(--ds-gold-2)); }
.header-actions { gap: 8px; }
.social-links { gap: 6px; }
.social-link { width: 34px; height: 34px; border: 1px solid var(--ds-line); border-radius: 11px; background: var(--ds-surface); box-shadow: var(--ds-shadow-sm); transition: transform .2s ease, border-color .2s; }
.social-link:hover { transform: translateY(-2px); border-color: var(--ds-line-strong); }
.header-search { width: 218px; height: 42px; border: 1px solid var(--ds-line); border-radius: 14px; background: var(--ds-surface); box-shadow: inset 0 1px rgba(255,255,255,.42); }
.header-search:focus-within { border-color: color-mix(in srgb, var(--ds-blue) 46%, transparent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ds-blue) 10%, transparent); }
.header-search input { color: var(--ds-ink); font-size: 12px; }
.header-search input::placeholder { color: var(--ds-muted); }
.search-symbol { opacity: .7; }
.icon-button { border: 1px solid var(--ds-line); border-radius: 13px; background: var(--ds-surface); color: var(--ds-ink); box-shadow: var(--ds-shadow-sm); }
.theme-button { width: 42px; height: 42px; }

/* Hero */
main { position: relative; }
.showcase { padding-top: 22px; }
.feature-card {
  min-height: clamp(430px, 35vw, 550px); overflow: hidden; border: 1px solid var(--ds-line-strong); border-radius: var(--ds-radius-lg);
  background: #07101d; box-shadow: var(--ds-shadow-lg); isolation: isolate;
}
.feature-card::before { content: ""; position: absolute; z-index: 1; inset: 0; background: linear-gradient(90deg, rgba(4, 10, 19, .98) 0%, rgba(4, 10, 19, .86) 35%, rgba(4, 10, 19, .25) 72%, rgba(4, 10, 19, .14) 100%); pointer-events: none; }
.feature-card::after { content: ""; position: absolute; z-index: 1; inset: 0; background: radial-gradient(circle at 70% 46%, rgba(57, 126, 255, .08), transparent 35%), linear-gradient(180deg, transparent 55%, rgba(0,0,0,.32)); pointer-events: none; }
.feature-cover { opacity: .96; transform: scale(1.015); transition: transform 7s ease; }
.feature-card:hover .feature-cover { transform: scale(1.05); }
.feature-grid { z-index: 2; opacity: .13; background-size: 38px 38px; }
.feature-body { position: relative; z-index: 3; width: min(650px, 54%); padding: clamp(54px, 6vw, 90px) clamp(48px, 7vw, 112px); color: #fff; }
.feature-label { width: max-content; margin-bottom: 22px; padding: 9px 12px; border: 1px solid rgba(238, 191, 112, .42); border-radius: 10px; background: rgba(201, 139, 52, .10); color: #f5c878; font-size: 10px; font-weight: 850; letter-spacing: .14em; }
.feature-body h2 { max-width: 610px; margin: 0; font-family: var(--ds-display); font-size: clamp(40px, 4.25vw, 70px); line-height: 1.06; letter-spacing: -.065em; text-wrap: balance; }
.feature-body h2::first-letter { color: #f3c776; }
.feature-body > p { max-width: 560px; margin: 19px 0 0; color: rgba(227, 235, 247, .75); font-size: clamp(14px, 1.1vw, 17px); line-height: 1.75; }
.feature-meta { margin-top: 22px; gap: 8px; }
.feature-meta span { padding: 7px 10px; border: 1px solid rgba(255,255,255,.17); border-radius: 9px; background: rgba(255,255,255,.06); color: rgba(255,255,255,.82); font-size: 11px; backdrop-filter: blur(10px); }
.feature-actions { margin-top: 30px; gap: 12px; }
.feature-button { min-height: 46px; padding: 0 22px; border: 1px solid transparent; border-radius: 12px; background: linear-gradient(135deg, #f3cc85, #d89a3d); color: #241707; box-shadow: 0 14px 32px rgba(215, 151, 55, .26); font-weight: 850; }
.feature-button:hover { transform: translateY(-2px); filter: brightness(1.05); }
.feature-button.secondary { border-color: rgba(255,255,255,.18); background: rgba(255,255,255,.07); color: #fff; box-shadow: none; backdrop-filter: blur(12px); }
.banner-arrow { z-index: 4; width: 46px; height: 46px; border: 1px solid rgba(255,255,255,.2); background: rgba(8, 14, 24, .52); color: #fff; backdrop-filter: blur(12px); }
.banner-arrow:hover { border-color: rgba(243, 199, 118, .72); background: rgba(180, 119, 34, .22); }
.banner-dots { z-index: 4; bottom: 22px; }
.banner-dot { width: 7px; height: 7px; background: rgba(255,255,255,.42); }
.banner-dot.active { width: 30px; background: #fff; }

.news-ticker { min-height: 54px; margin-top: 14px; padding: 0 18px; border: 1px solid var(--ds-line); border-radius: 17px; background: var(--ds-surface); box-shadow: var(--ds-shadow-sm); backdrop-filter: blur(18px); }
.news-ticker > strong { color: var(--ds-ink); font-size: 12px; }
.ticker-bell { color: var(--ds-gold); }
.ticker-items { min-width: 0; }
.ticker-item { border-left-color: var(--ds-line); }
.ticker-item time { color: var(--ds-gold); font-size: 10px; }
.ticker-item button { color: var(--ds-ink-2); }
.ticker-count { color: var(--ds-muted); }

/* Catalog */
.catalog { margin-top: 24px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin: 0 4px 20px; }
.section-kicker { color: var(--ds-blue); font-size: 10px; font-weight: 900; letter-spacing: .18em; }
.section-heading h2 { margin: 7px 0 4px; font-family: var(--ds-display); font-size: clamp(28px, 2.5vw, 42px); letter-spacing: -.05em; }
.section-heading p { margin: 0; color: var(--ds-muted); font-size: 13px; }
.section-count { display: grid; grid-template-columns: auto auto; align-items: center; gap: 8px; padding: 12px 15px; border: 1px solid var(--ds-line); border-radius: 14px; background: var(--ds-surface); box-shadow: var(--ds-shadow-sm); }
.section-count b { color: var(--ds-blue); font-size: 24px; line-height: 1; }
.section-count small { color: var(--ds-muted); font-size: 10px; }
.catalog-toolbar { overflow: hidden; border: 1px solid var(--ds-line); border-radius: var(--ds-radius); background: var(--ds-surface); box-shadow: var(--ds-shadow-sm); backdrop-filter: blur(18px); }
.catalog-toolbar > .chip-row { min-height: 64px; padding: 12px 16px; border-bottom: 1px solid var(--ds-line); }
.toolbar-lower { min-height: 60px; padding: 10px 16px; }
.filter-label { color: var(--ds-muted); font-size: 11px; }
.chip-row button { min-height: 38px; padding: 0 15px; border: 1px solid transparent; border-radius: 11px; background: transparent; color: var(--ds-muted); font-size: 12px; transition: .18s ease; }
.chip-row button:hover { background: var(--ds-surface-soft); color: var(--ds-ink); }
.chip-row button.active { border-color: color-mix(in srgb, var(--ds-gold) 30%, transparent); background: linear-gradient(135deg, var(--ds-gold-soft), color-mix(in srgb, var(--ds-surface-solid) 70%, var(--ds-gold-soft))); color: var(--ds-gold); box-shadow: 0 6px 16px rgba(181, 120, 33, .10); }
.chip-row.secondary button.active { border-color: color-mix(in srgb, var(--ds-blue) 25%, transparent); background: var(--ds-blue-soft); color: var(--ds-blue); box-shadow: none; }
#resultText { margin-left: auto; color: var(--ds-muted); font-size: 11px; }
.clear-filter { border: 1px solid var(--ds-line); border-radius: 10px; background: transparent; color: var(--ds-muted); }
.clear-filter:hover { color: var(--ds-ink); background: var(--ds-surface-soft); }
.resource-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 18px; }
.resource-card { min-height: 226px; padding: 10px; grid-template-columns: 42% minmax(0, 1fr); gap: 14px; overflow: hidden; border: 1px solid var(--ds-line); border-radius: var(--ds-radius); background: var(--ds-surface); box-shadow: var(--ds-shadow-sm); transition: transform .24s ease, box-shadow .24s ease, border-color .24s; }
.resource-card:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--ds-blue) 24%, var(--ds-line)); box-shadow: var(--ds-shadow); }
.card-cover { width: 100%; min-width: 0; min-height: 0; margin: 0; border-radius: 14px; background-color: var(--ds-surface-soft); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.featured-badge { top: 9px; left: 9px; padding: 5px 8px; border-radius: 8px; background: linear-gradient(135deg, #f7ca77, #d28b2c); color: #2c1b05; font-size: 9px; }
.card-body { min-width: 0; padding: 17px 16px 14px 5px; }
.card-topline { color: var(--ds-muted); font-size: 9px; }
.card-topline span:first-child { color: var(--ds-blue); font-weight: 850; letter-spacing: .04em; }
.card-body h3 { margin: 8px 0 6px; color: var(--ds-ink); font-size: clamp(16px, 1.2vw, 20px); line-height: 1.28; letter-spacing: -.025em; }
.card-body > p { color: var(--ds-muted); font-size: 11px; line-height: 1.6; }
.card-tags { gap: 5px; margin-top: 10px; }
.tag, .card-tags span { padding: 5px 8px; border: 1px solid color-mix(in srgb, var(--ds-blue) 16%, var(--ds-line)); border-radius: 999px; background: var(--ds-blue-soft); color: var(--ds-blue); font-size: 9px; }
.card-footer { margin-top: auto; padding-top: 11px; border-top: 1px solid var(--ds-line); color: var(--ds-muted); font-size: 9px; }
.card-arrow { width: 27px; height: 27px; border-radius: 50%; background: var(--ds-surface-soft); color: var(--ds-blue); }
.card-bookmark { top: 14px; right: 14px; color: var(--ds-gold); }
.empty-state { margin-top: 18px; padding: 70px 20px; border: 1px dashed var(--ds-line-strong); border-radius: var(--ds-radius); background: var(--ds-surface); color: var(--ds-muted); }

/* Bottom panels and footer */
.info-panel-section { margin-top: 22px; }
.info-panel-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.info-panel-card { min-height: 114px; padding: 18px; border: 1px solid rgba(189, 207, 231, .13); border-radius: 18px; background: linear-gradient(145deg, #111a28, #182536); color: #fff; box-shadow: var(--ds-shadow-sm); }
.info-panel-card::after { content: "→"; width: 32px; height: 32px; display: grid; place-items: center; margin-left: auto; border: 1px solid rgba(255,255,255,.09); border-radius: 50%; color: #e4b361; }
.info-panel-card:hover { transform: translateY(-4px); border-color: rgba(234, 188, 106, .24); box-shadow: var(--ds-shadow); }
.info-panel-icon { width: 50px; height: 50px; border-radius: 15px; background-color: rgba(86, 130, 231, .18); color: #82a8ff; }
.info-panel-copy small { color: #d8a957; font-size: 8px; letter-spacing: .16em; }
.info-panel-copy strong { color: #fff; font-size: 15px; }
.info-panel-copy span { color: #8290a4; font-size: 10px; }
.site-footer { margin-top: 28px; border-top: 1px solid var(--ds-line); background: color-mix(in srgb, var(--ds-surface-solid) 48%, transparent); }
.footer-inner { color: var(--ds-muted); }
.footer-inner strong { color: var(--ds-ink); }
.footer-links a { color: var(--ds-muted); }
.footer-links a:hover { color: var(--ds-blue); }

/* Dialogs and claim flow */
.detail-dialog, .wechat-dialog, .info-dialog { border: 1px solid var(--ds-line-strong); background: var(--ds-surface-solid); color: var(--ds-ink); box-shadow: var(--ds-shadow-lg); }
.detail-dialog::backdrop, .wechat-dialog::backdrop, .info-dialog::backdrop { background: rgba(4, 8, 14, .7); backdrop-filter: blur(14px) saturate(.75); }
.detail-dialog { width: min(1180px, calc(100% - 40px)); max-height: calc(100dvh - 40px); padding: 20px; border-radius: 28px; }
.resource-detail-shell { gap: 18px; }
.resource-detail-grid { gap: 18px; }
.detail-content, .detail-cover, .detail-body, .claim-panel { border: 1px solid var(--ds-line); border-radius: 21px; background: var(--ds-surface-solid); }
.detail-content { padding: 28px; }
.detail-category { color: var(--ds-blue); border-color: color-mix(in srgb, var(--ds-blue) 20%, var(--ds-line)); background: var(--ds-blue-soft); }
.detail-content h2 { margin-top: 18px; color: var(--ds-ink); font-family: var(--ds-display); letter-spacing: -.045em; }
.detail-summary { color: var(--ds-ink-2); }
.detail-facts { margin-top: auto; border-color: var(--ds-line); background: var(--ds-surface-soft); }
.detail-fact + .detail-fact { border-color: var(--ds-line); }
.detail-fact span { color: var(--ds-muted); }
.detail-cover { min-height: 420px; background-color: var(--ds-surface-soft); }
.detail-body { padding: 18px 22px; color: var(--ds-ink-2); line-height: 1.8; }
.claim-panel { padding: 25px; background: linear-gradient(145deg, color-mix(in srgb, var(--ds-blue-soft) 60%, var(--ds-surface-solid)), var(--ds-surface-solid)); }
.claim-panel h3 { color: var(--ds-ink); font-size: 20px; }
.claim-reveal { min-height: 56px; border-radius: 14px; background: linear-gradient(110deg, #4d91fa, #2458d7); box-shadow: 0 16px 34px rgba(35, 86, 209, .24); }
.claim-followup { display: grid; justify-items: start; gap: 10px; margin-top: 9px; animation: claim-followup-in .28s ease both; }
.claim-backup-link { display: inline-flex; align-items: center; min-height: 34px; padding: 4px 2px; color: var(--ds-blue); font-size: 14px; font-weight: 800; text-decoration: none; transition: color .18s ease, transform .18s ease; }
.claim-backup-link:hover { color: color-mix(in srgb, var(--ds-blue) 76%, #122a5d); transform: translateX(2px); }
.claim-followup .claim-code-row { justify-content: flex-start; }
@keyframes claim-followup-in { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: none; } }
.claim-code { border-color: var(--ds-line); background: var(--ds-surface-solid); }
.claim-code span { color: var(--ds-muted); }
.dialog-close { z-index: 5; border: 1px solid var(--ds-line); background: var(--ds-surface-solid); color: var(--ds-ink); box-shadow: var(--ds-shadow-sm); }
.wechat-dialog, .info-dialog { border-radius: 26px; }
.info-dialog-body, .info-dialog-email { border-color: var(--ds-line); background: var(--ds-surface-soft); }
.info-dialog-head p, .wechat-dialog-content p { color: var(--ds-muted); }
.toast { border: 1px solid rgba(255,255,255,.14); border-radius: 12px; background: #111a28; box-shadow: var(--ds-shadow); }

/* Drawer */
.mobile-drawer { z-index: 130; background: var(--ds-bg); color: var(--ds-ink); box-shadow: 30px 0 80px rgba(0,0,0,.28); }
.drawer-head { border-bottom-color: var(--ds-line); }
.drawer-brand { color: var(--ds-ink); }
.drawer-brand small { color: var(--ds-muted); }
.drawer-brand-mark { background: linear-gradient(145deg, var(--ds-blue-2), var(--ds-blue)); }
.drawer-quick-grid > * { border: 1px solid var(--ds-line); background: var(--ds-surface); color: var(--ds-ink); box-shadow: var(--ds-shadow-sm); }
.drawer-about-card, .drawer-list > * { border-color: var(--ds-line); background: var(--ds-surface); color: var(--ds-ink); }
.drawer-section-label { color: var(--ds-gold); }
.drawer-footer-copy { color: var(--ds-muted); }
.drawer-backdrop { z-index: 120; background: rgba(5, 9, 15, .62); backdrop-filter: blur(7px); }

/* Dark-specific depth */
:root[data-theme="dark"] .feature-card { border-color: rgba(103, 145, 232, .22); box-shadow: 0 32px 100px rgba(0,0,0,.58), 0 0 0 1px rgba(63, 112, 221, .06); }
:root[data-theme="dark"] .catalog-toolbar,
:root[data-theme="dark"] .resource-card,
:root[data-theme="dark"] .news-ticker { box-shadow: 0 18px 50px rgba(0,0,0,.22); }
:root[data-theme="dark"] .info-panel-card { background: linear-gradient(145deg, #111a28, #0e1723); }

/* Responsive */
@media (max-width: 1280px) {
  .wrap { width: min(1180px, calc(100% - 40px)); }
  .header-inner { grid-template-columns: auto 1fr auto; gap: 18px; }
  .desktop-nav button { padding-inline: 9px; }
  .header-search { width: 180px; }
  .social-links { display: none; }
  .resource-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
  .desktop-nav { display: none; }
  .header-inner { grid-template-columns: 1fr auto; }
  .mobile-only { display: grid; }
  .feature-card { min-height: 460px; }
  .feature-body { width: 66%; padding-inline: 58px; }
  .feature-body h2 { font-size: 48px; }
  .info-panel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .wrap { width: min(100% - 28px, 720px); }
  .site-header { position: sticky; }
  .header-inner { min-height: 70px; }
  .brand { justify-self: center; }
  .brand-mark { width: 42px; height: 42px; }
  .brand-copy strong { font-size: 18px; }
  .header-actions { position: absolute; inset-inline: 0; width: 100%; pointer-events: none; justify-content: space-between; }
  .header-actions > * { pointer-events: auto; }
  .header-actions .header-search, .header-actions .social-links { display: none; }
  #menuButton { order: -2; margin-right: auto; }
  .theme-button { order: 0; margin-left: auto; }
  .mobile-search-toggle { order: 1; }
  .mobile-search-toggle, .mobile-only { display: grid; }
  .showcase { padding-top: 14px; }
  .feature-card { min-height: 0; aspect-ratio: 16 / 10; border-radius: 22px; box-shadow: var(--ds-shadow); }
  .feature-card::before { background: linear-gradient(180deg, rgba(4,9,17,.08), rgba(4,9,17,.12) 45%, rgba(4,9,17,.9)); }
  .feature-body { justify-content: flex-end; width: 100%; height: 100%; padding: 24px 24px 36px; }
  .feature-label { margin-bottom: 8px; padding: 6px 8px; font-size: 8px; }
  .feature-body h2 { max-width: 90%; font-size: clamp(26px, 7vw, 42px); }
  .feature-body > p { display: -webkit-box; max-width: 90%; margin-top: 7px; overflow: hidden; font-size: 11px; line-height: 1.5; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .feature-meta { display: none; }
  .feature-actions { margin-top: 13px; }
  .feature-button { min-height: 38px; padding: 0 14px; font-size: 11px; }
  .feature-button.secondary { display: none; }
  .banner-arrow { display: none; }
  .banner-dots { bottom: 13px; }
  .news-ticker { min-height: 52px; overflow: hidden; }
  .ticker-items { overflow-x: auto; scrollbar-width: none; }
  .ticker-item { min-width: max-content; }
  .ticker-count { display: none; }
  .section-heading { align-items: start; margin-top: 26px; }
  .section-heading h2 { font-size: 28px; }
  .section-heading p { max-width: 74%; }
  .section-count { padding: 10px 12px; }
  .catalog-toolbar { border-radius: 17px; }
  .catalog-toolbar > .chip-row, .toolbar-lower { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  .toolbar-lower { display: flex; }
  .filter-label, #resultText, .clear-filter { flex: 0 0 auto; }
  .chip-row button { flex: 0 0 auto; }
  .resource-grid { grid-template-columns: 1fr; gap: 12px; }
  .resource-card { min-height: 154px; padding: 8px; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; border-radius: 17px; }
  .card-cover { width: 100%; min-width: 0; min-height: 116px; margin: 0; border-radius: 12px; }
  .card-body { padding: 13px 12px 11px 3px; }
  .card-body h3 { margin-top: 6px; font-size: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .card-body > p { display: none; }
  .card-tags { flex-wrap: nowrap; overflow: hidden; }
  .card-tags span { white-space: nowrap; }
  .info-panel-grid { gap: 10px; }
  .info-panel-card { min-height: 96px; padding: 14px; }
  .info-panel-card::after { display: none; }
  .detail-dialog { width: 100%; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 14px; border: 0; border-radius: 0; }
  .resource-detail-grid { grid-template-columns: 1fr; }
  .detail-content { padding: 24px 20px; }
  .detail-content h2 { font-size: 30px; }
  .detail-cover { order: 2; min-height: 0; aspect-ratio: 16 / 10; }
  .claim-panel { padding: 20px 14px; }
  .claim-panel h3 { font-size: 17px; }
}
@media (max-width: 520px) {
  .wrap { width: calc(100% - 22px); }
  .header-inner { min-height: 66px; }
  .brand-mark { width: 40px; height: 40px; border-radius: 13px; }
  .brand-copy small { font-size: 9px; }
  .icon-button { width: 40px; height: 40px; }
  .mobile-drawer { width: min(88vw, 380px); }
  .feature-card { aspect-ratio: 4 / 3; }
  .feature-body { padding: 20px 18px 31px; }
  .feature-body h2 { font-size: 28px; }
  .feature-actions { margin-top: 10px; }
  .catalog { margin-top: 14px; padding-top: 0; }
  .section-heading { margin-top: 0; margin-bottom: 12px; }
  .news-ticker { padding-inline: 12px; border-radius: 14px; }
  .news-ticker > strong { min-width: max-content; }
  .section-heading p { display: none; }
  .section-count small { display: none; }
  .catalog-toolbar > .chip-row { min-height: 56px; padding: 8px 10px; }
  .toolbar-lower { min-height: 54px; padding: 8px 10px; }
  .filter-label { display: none; }
  #resultText, .clear-filter { display: none; }
  .resource-card { min-height: 132px; grid-template-columns: 112px minmax(0, 1fr); gap: 10px; }
  .card-cover { width: 100%; min-width: 0; min-height: 108px; }
  .card-topline span:last-child { display: none; }
  .card-body h3 { font-size: 17px; }
  .card-footer { padding-top: 8px; }
  .info-panel-grid { grid-template-columns: 1fr; }
  .info-panel-card { min-height: 82px; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
  .detail-dialog { padding: 10px; }
  .detail-content { padding: 22px 16px; }
  .detail-fact { align-items: flex-start; flex-direction: column; gap: 7px; }
  .claim-code-row { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
