:root {
  color-scheme: light;
  --primary: #2563EB;
  --primary-hover: #1D4ED8;
  --primary-light: #EAF2FF;
  --primary-ultra-light: #F5F8FF;
  --accent-blue: #4F8DF7;
  --background: #F5F8FF;
  --card: #FFFFFF;
  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-tertiary: #94A3B8;
  --border: #E5EDFF;
  --border-strong: #BFDBFE;
  --success: #16A34A;
  --success-light: #ECFDF3;
  --warning: #D97706;
  --warning-light: #FFF7ED;
  --danger: #DC2626;
  --danger-light: #FEF2F2;
  --primary-rgb: 37, 99, 235;
  --text: var(--text-primary);
  --muted: var(--text-secondary);
  --blue: var(--primary);
  --line: var(--border);
}
* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: linear-gradient(180deg, var(--card) 0%, var(--background) 55%, var(--primary-light) 100%);
  font-family: "Segoe UI", Inter, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}
body::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 570px;
  pointer-events: none; z-index: -1;
  background-image: linear-gradient(rgba(var(--primary-rgb), .2) 1px, transparent 1px), linear-gradient(90deg, rgba(var(--primary-rgb), .2) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(transparent, #000 20%, transparent);
}
a { color: inherit; text-decoration: none; }
.page-shell { max-width: 1040px; width: calc(100% - 80px); margin: auto; }
.site-header { display: flex; align-items: center; justify-content: space-between; height: 100px; border-bottom: 1px solid rgba(var(--primary-rgb), .16); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 750; }
.brand-mark { width: 34px; height: 34px; }
.site-nav a { display: flex; gap: 12px; align-items: center; min-height: 44px; color: var(--muted); font-size: 13px; }
.site-nav a:hover { color: var(--blue); }
.hero { position: relative; text-align: center; padding: 48px 0 58px; animation: appear 650ms ease both; }
.hero-emblem { position: relative; display: grid; place-items: center; width: 76px; height: 76px; margin: 0 auto 20px; }
.hero-emblem img { display: block; width: 72px; height: 72px; filter: drop-shadow(0 12px 17px rgba(var(--primary-rgb), .14)); }
.hero-kicker { margin: 0 0 15px; color: var(--primary); font: 600 11px/1.5 "Segoe UI", sans-serif; }
.hero h1 { margin: 0; font-size: 68px; line-height: 1.1; font-weight: 750; }
.hero h1 span { color: var(--accent-blue); font-weight: 400; }
.hero-copy { margin: 22px 0 0; font-size: 19px; line-height: 1.7; font-weight: 500; }
.hero-note { margin: 7px 0 0; font-size: 13px; line-height: 1.8; color: var(--muted); }
.section-label { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 20px; }
.section-heading { display: flex; align-items: center; gap: 16px; }
.section-heading h2 { margin: 0; font-size: 17px; font-weight: 650; }
.section-heading > span { color: var(--text-tertiary); font-size: 10px; padding-left: 16px; border-left: 1px solid var(--border); }
.product-count { color: var(--text-tertiary); font-size: 10px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.entry-list { display: grid; gap: 12px; }
.site-entry {
  --accent: var(--primary); --tint: var(--primary-light);
  position: relative; display: grid; grid-template-columns: 48px 52px minmax(0, 1fr) auto 44px;
  gap: 22px; align-items: center; min-height: 108px; padding: 22px 25px;
  border: 1px solid var(--border); border-radius: 8px;
  background: rgba(255, 255, 255, .79); backdrop-filter: blur(12px);
  box-shadow: 0 3px 7px rgba(var(--primary-rgb), .03), 0 12px 30px rgba(var(--primary-rgb), .04);
  animation: appear 550ms ease backwards;
  animation-delay: calc(70ms + min(var(--entry-index, 0), 8) * 70ms);
  transition: transform 240ms ease, box-shadow 240ms ease, border-color 240ms ease, background 240ms ease;
}
.site-entry:nth-child(4n + 2) { --accent: var(--accent-blue); --tint: #EFF6FF; }
.site-entry:nth-child(4n + 3) { --accent: var(--primary); --tint: var(--primary-light); }
.site-entry:nth-child(4n + 4) { --accent: var(--accent-blue); --tint: #EFF6FF; }
.site-entry::after {
  content: ""; position: absolute; pointer-events: none; height: 1px; left: 10%; right: 10%; bottom: -1px;
  background: linear-gradient(90deg, transparent, var(--accent-blue), transparent); opacity: 0;
  transition: opacity 240ms ease;
}
.site-entry:hover, .site-entry:focus-visible { transform: translateY(-3px); border-color: var(--border-strong); background: #EFF6FF; box-shadow: 0 10px 26px rgba(var(--primary-rgb), .08), 0 0 0 3px rgba(var(--primary-rgb), .2); }
.site-entry:hover::after, .site-entry:focus-visible::after { opacity: 1; }
.entry-number { color: var(--text-tertiary); font: 400 13px/1 ui-monospace, "Cascadia Mono", monospace; transition: color 240ms ease; }
.site-entry:hover .entry-number { color: var(--blue); }
.entry-logo { display: grid; place-items: center; width: 52px; height: 52px; padding: 4px; border-radius: 8px; background: var(--tint); color: var(--accent); font-size: 16px; font-weight: 750; overflow-wrap: anywhere; text-align: center; line-height: 1.1; }
.entry-logo.long { font-size: 10px; }
.entry-main { min-width: 0; }
.entry-name-row { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.entry-name { font-size: 21px; line-height: 1.3; font-weight: 650; overflow-wrap: anywhere; }
.entry-description { display: block; margin-top: 6px; font-size: 13px; color: var(--muted); line-height: 1.6; overflow-wrap: anywhere; }
.entry-pill { color: var(--primary); background: var(--primary-light); padding: 3px 6px; border-radius: 3px; font-size: 9px; line-height: 1.4; font-weight: 600; }
.entry-pill.new { color: var(--primary); background: var(--primary-light); }
.entry-category { max-width: 150px; color: var(--text-tertiary); font-size: 11px; overflow-wrap: anywhere; }
.entry-arrow { display: grid; place-items: center; width: 40px; height: 40px; justify-self: end; border: 1px solid var(--border); border-radius: 50%; color: var(--text-tertiary); background: var(--card); transition: transform 240ms ease, color 240ms ease, background 240ms ease; }
.icon { display: inline-block; width: 18px; height: 18px; background: currentColor; mask: url("/assets/icons/arrow-up-right.svg") center / contain no-repeat; }
.site-entry:hover .entry-arrow, .site-entry:focus-visible .entry-arrow { transform: translateX(4px); color: var(--card); background: var(--primary); border-color: var(--primary); }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 28px 0 35px; margin-top: 50px; border-top: 1px solid var(--line); }
.footer-brand { display: flex; align-items: center; gap: 18px; }
.footer-brand strong { font-size: 12px; }
.footer-brand span { font-size: 9px; color: var(--text-tertiary); }
.site-footer small { color: var(--text-tertiary); font-size: 10px; }
.empty-state, .noscript { padding: 32px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: 8px; }
.skip-link { position: fixed; top: -80px; left: 16px; z-index: 10; background: var(--card); padding: 12px; }
.skip-link:focus { top: 12px; }
a:focus-visible { outline: 2px solid var(--primary); outline-offset: 5px; }
.support-widget { position: fixed; right: 24px; bottom: 24px; z-index: 15; display: grid; justify-items: end; gap: 10px; }
.support-widget[hidden], .support-panel[hidden] { display: none; }
.support-toggle { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 0 16px 0 11px; border: 1px solid var(--primary); border-radius: 999px; color: var(--card); background: var(--primary); box-shadow: 0 12px 28px rgba(var(--primary-rgb), .2); font: 700 12px/1 "Segoe UI", sans-serif; transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease; }
.support-toggle:hover, .support-toggle:focus-visible { transform: translateY(-2px); background: var(--primary-hover); box-shadow: 0 15px 32px rgba(var(--primary-rgb), .26); }
.support-symbol { display: grid; place-items: center; width: 24px; height: 24px; border: 1px solid rgba(255, 255, 255, .62); border-radius: 50%; font-size: 15px; line-height: 1; }
.support-panel { width: min(360px, calc(100vw - 36px)); max-height: min(640px, calc(100dvh - 32px)); overflow: auto; padding: 20px; border: 1px solid var(--border-strong); border-radius: 10px; background: rgba(255, 255, 255, .96); box-shadow: 0 18px 50px rgba(var(--primary-rgb), .17), 0 0 0 4px rgba(var(--primary-rgb), .06); backdrop-filter: blur(16px); animation: support-rise 220ms ease both; }
.support-panel-topline { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.support-kicker { color: var(--primary); font: 700 9px/1.4 "Segoe UI", sans-serif; letter-spacing: .14em; }
.support-close { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 1px solid var(--border); border-radius: 50%; color: var(--text-secondary); background: var(--primary-ultra-light); font-size: 19px; line-height: 1; transition: color 180ms ease, border-color 180ms ease, background 180ms ease; }
.support-close:hover, .support-close:focus-visible { border-color: var(--border-strong); color: var(--primary); background: var(--primary-light); }
.support-panel h2 { margin: 20px 0 10px; color: var(--text-primary); font-size: 20px; line-height: 1.35; }
.support-panel p { margin: 0; color: var(--text-secondary); font-size: 13px; line-height: 1.8; white-space: pre-line; overflow-wrap: anywhere; }
.support-media { display: grid; place-items: center; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.support-media img { display: block; width: min(100%, 220px); max-height: 280px; object-fit: contain; border-radius: 6px; }
@keyframes support-rise { from { opacity: 0; translate: 0 8px; } to { opacity: 1; translate: 0 0; } }
.announcement-open { overflow: hidden; }
.announcement-modal { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 24px; }
.announcement-modal[hidden] { display: none; }
.announcement-backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, .2); backdrop-filter: blur(5px); animation: announcement-fade 220ms ease both; }
.announcement-dialog { position: relative; width: min(100%, 500px); max-height: min(640px, calc(100dvh - 36px)); overflow: auto; padding: 28px; border: 1px solid var(--border-strong); border-radius: 10px; background: rgba(255, 255, 255, .96); box-shadow: 0 24px 70px rgba(var(--primary-rgb), .18), 0 0 0 5px rgba(var(--primary-rgb), .06); animation: announcement-rise 260ms ease both; }
.announcement-topline { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.announcement-kicker { color: var(--primary); font: 700 10px/1.4 "Segoe UI", sans-serif; letter-spacing: .14em; }
.announcement-close { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 1px solid var(--border); border-radius: 50%; color: var(--text-secondary); background: var(--primary-ultra-light); font-size: 21px; line-height: 1; transition: color 180ms ease, border-color 180ms ease, background 180ms ease; }
.announcement-close:hover, .announcement-close:focus-visible { border-color: var(--border-strong); color: var(--primary); background: var(--primary-light); }
.announcement-dialog h2 { margin: 26px 0 12px; color: var(--text-primary); font-size: 25px; line-height: 1.3; }
.announcement-dialog p { margin: 0; color: var(--text-secondary); font-size: 14px; line-height: 1.9; white-space: pre-line; overflow-wrap: anywhere; }
.announcement-confirm { width: 100%; min-height: 42px; margin-top: 25px; padding: 0 18px; border: 1px solid var(--primary); border-radius: 7px; color: var(--card); background: var(--primary); box-shadow: 0 9px 22px rgba(var(--primary-rgb), .14); font: 700 13px/1 "Segoe UI", sans-serif; transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease; }
.announcement-confirm:hover, .announcement-confirm:focus-visible { transform: translateY(-1px); background: var(--primary-hover); box-shadow: 0 12px 25px rgba(var(--primary-rgb), .2); }
@keyframes announcement-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes announcement-rise { from { opacity: 0; translate: 0 10px; } to { opacity: 1; translate: 0 0; } }
@keyframes appear { from { opacity: 0; translate: 0 12px; } to { opacity: 1; translate: 0 0; } }
@media (min-width: 1600px) { .hero { padding-top: 55px; padding-bottom: 65px; } }
@media (max-width: 900px) {
  .page-shell { width: calc(100% - 48px); }
  .site-entry { grid-template-columns: 28px 48px minmax(0, 1fr) auto 40px; gap: 18px; padding: 20px; }
  .entry-logo { width: 48px; height: 48px; }
  .entry-category { max-width: 90px; }
}
@media (max-width: 600px) {
  .page-shell { width: calc(100% - 36px); }
  .site-header { height: 80px; }
  .hero { padding: 38px 0 44px; }
  .hero-emblem { width: 64px; height: 64px; margin-bottom: 17px; }
  .hero-emblem img { width: 62px; height: 62px; }
  .hero h1 { font-size: 46px; }
  .hero-kicker { font-size: 10px; margin-bottom: 13px; }
  .hero-copy { margin-top: 18px; font-size: 15px; }
  .hero-note { font-size: 12px; }
  .section-heading { gap: 10px; }
  .section-heading > span { display: none; }
  .section-heading h2 { font-size: 15px; }
  .section-label { margin-bottom: 15px; }
  .site-entry { grid-template-columns: 42px minmax(0, 1fr) 30px; gap: 12px; min-height: 94px; padding: 17px 14px; }
  .entry-logo { width: 42px; height: 44px; font-size: 13px; }
  .entry-number, .entry-category { display: none; }
  .entry-name { font-size: 17px; }
  .entry-description { font-size: 12px; margin-top: 5px; }
  .entry-name-row { gap: 6px; }
  .entry-pill { font-size: 8px; }
  .entry-arrow { width: 29px; height: 29px; }
  .entry-arrow .icon { width: 15px; height: 15px; }
  .announcement-modal { padding: 18px; }
  .announcement-dialog { padding: 23px 20px 20px; }
  .announcement-dialog h2 { margin-top: 22px; font-size: 21px; }
  .announcement-dialog p { font-size: 13px; }
  .support-widget { right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); }
  .support-panel { padding: 18px; }
  .support-toggle { min-height: 42px; padding-right: 14px; }
  .site-footer { flex-direction: column; align-items: flex-start; gap: 15px; padding: 25px 0 28px; margin-top: 36px; }
  .footer-brand { width: 100%; justify-content: space-between; gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
