/* ==========================================================================
   即刻Router API 首页样式（基础层：主题变量 / 布局 / 导航 / Hero / 通用组件）
   卡片类样式见 sections.css（与原站一致）
   ========================================================================== */

/* ---------- 主题变量（与原站 new-api 主题一致） ---------- */
:root,
html.light {
  --background: #fff;
  --foreground: #0a0a0a;
  --card: #fff;
  --card-foreground: #0a0a0a;
  --popover: #fff;
  --popover-foreground: #0a0a0a;
  --primary: #3ea4ec;
  --primary-foreground: #fff;
  --secondary: #eee;
  --secondary-foreground: #004f8b;
  --muted: #f5f5f5;
  --muted-foreground: #606060;
  --accent: color-mix(in oklab, var(--primary) 12%, var(--background));
  --accent-foreground: #0a0a0a;
  --destructive: #e40014;
  --destructive-foreground: #fafafa;
  --border: #e8e8e8;
  --input: #e8e8e8;
  --ring: #42a6ff;
  --radius: 1rem;
}

html.dark {
  --background: #1e1e1e;
  --foreground: #f3f3f3;
  --card: #2a2a2a;
  --card-foreground: #f3f3f3;
  --popover: #2f2f2f;
  --popover-foreground: #f3f3f3;
  --primary: #0e72bc;
  --primary-foreground: #fff;
  --secondary: #373737;
  --secondary-foreground: #c6e1ff;
  --muted: #2f2f2f;
  --muted-foreground: #b7b7b7;
  --accent: color-mix(in oklab, var(--primary) 20%, var(--background));
  --accent-foreground: #fafafa;
  --destructive: #ff6568;
  --destructive-foreground: #f8f8f8;
  --border: #ffffff1a;
  --input: #ffffff2b;
  --ring: #1a75c5;
}

/* ---------- 基础 ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img,
video {
  max-width: 100%;
}

a {
  color: inherit;
}

button {
  font-family: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Tailwind 常用工具类（原站标记中使用） ---------- */
.relative { position: relative; }
.z-10 { z-index: 10; }
.mx-auto { margin-left: auto; margin-right: auto; }
.max-w-6xl { max-width: 72rem; }
.px-6 { padding-left: 24px; padding-right: 24px; }
.py-20 { padding-top: 80px; padding-bottom: 80px; }
.py-24 { padding-top: 96px; padding-bottom: 96px; }
.py-12 { padding-top: 48px; padding-bottom: 48px; }
.py-22 { padding-top: 88px; padding-bottom: 88px; }
.mb-12 { margin-bottom: 48px; }
.mb-16 { margin-bottom: 64px; }
.shrink-0 { flex-shrink: 0; }
.bg-background { background-color: var(--background); }
.text-foreground { color: var(--foreground); }
@media (min-width: 768px) {
  .md\:py-12 { padding-top: 48px; padding-bottom: 48px; }
  .md\:py-32 { padding-top: 128px; padding-bottom: 128px; }
  .md\:py-22 { padding-top: 88px; padding-bottom: 88px; }
  .md\:mb-16 { margin-bottom: 64px; }
}

.page {
  background: var(--background);
  color: var(--foreground);
  min-height: 100svh;
  overflow-x: clip;
  position: relative;
}

/* ---------- 顶部滚动进度条 ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: transparent;
  z-index: 2147483647;
  width: 100%;
  pointer-events: none;
}
.scroll-progress__inner {
  height: 100%;
  background: var(--muted-foreground);
  width: 0%;
  position: relative;
}
.scroll-progress__inner::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 5%;
  height: 100%;
  transform: translateX(100%) rotate(2deg);
  box-shadow: 0 0 10px var(--muted-foreground), 0 0 10px var(--muted-foreground);
}

/* ==========================================================================
   导航
   ========================================================================== */
.site-header {
  pointer-events: none;
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 50;
}
.site-header__wrap {
  pointer-events: auto;
  margin-inline: auto;
  max-width: 80rem;
  padding-inline: 16px;
  transition: max-width 0.7s cubic-bezier(0.16, 1, 0.3, 1), padding 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
@media (min-width: 768px) {
  .site-header__wrap { padding-inline: 24px; }
}
.site-nav {
  margin-top: 12px;
  height: 56px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.3);
  padding-inline: 16px;
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  transition: margin-top 0.7s cubic-bezier(0.16, 1, 0.3, 1), height 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    background-color 0.7s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    color 0.7s cubic-bezier(0.16, 1, 0.3, 1), padding 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
/* 下滑后导航收窄居中（按原站实测：容器 max-w-[52rem] px-3 pt-3，导航 h-12，
   背景为主题色 60% + 0.5px 边框 + 阴影，文字跟随主题） */
.site-header.is-scrolled .site-header__wrap {
  max-width: 52rem;
  padding-top: 12px;
  padding-inline: 12px;
}
.site-header.is-scrolled .site-nav {
  margin-top: 0;
  height: 48px;
  padding-inline: 16px 6px;
  background: color-mix(in srgb, var(--background) 60%, transparent);
  color: var(--foreground);
  box-shadow: 0 2px 16px -6px rgba(0, 0, 0, 0.08), 0 0 0 0.5px rgba(0, 0, 0, 0.02),
    0 0 0 0.5px color-mix(in srgb, var(--border) 50%, transparent);
  -webkit-backdrop-filter: blur(40px);
  backdrop-filter: blur(40px);
}
html.dark .site-header.is-scrolled .site-nav {
  box-shadow: 0 2px 16px -6px rgba(0, 0, 0, 0.4),
    0 0 0 0.5px color-mix(in srgb, var(--border) 50%, transparent);
}
.site-header.is-scrolled .nav-link { color: var(--muted-foreground); }
.site-header.is-scrolled .nav-link:hover,
.site-header.is-scrolled .nav-link--active { color: var(--foreground); }
.site-header.is-scrolled .site-nav__divider { background: color-mix(in srgb, var(--border) 60%, transparent); }
.site-header.is-scrolled .icon-btn { color: var(--muted-foreground); }
.site-header.is-scrolled .icon-btn:hover,
.site-header.is-scrolled .site-nav__tools .icon-btn:hover {
  background: color-mix(in srgb, var(--foreground) 8%, transparent);
  color: var(--foreground);
}
.site-nav__brand {
  display: flex;
  min-width: 0;
  flex: 1;
  align-items: center;
  gap: 4px;
}
.site-nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}
.site-nav__logo-img {
  display: flex;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s;
}
.site-nav__logo:hover .site-nav__logo-img { transform: scale(1.05); }
.site-nav__logo-img img {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  object-fit: contain;
}
.site-nav__logo-text {
  max-width: 192px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.025em;
}
.site-nav__links {
  display: none;
  min-width: 0;
  align-items: center;
  gap: 2px;
}
@media (min-width: 1024px) {
  .site-nav__links { display: flex; }
  .site-nav__mobile { display: none; }
}
.nav-link {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-link:hover { color: #fff; }
.nav-link--active { color: #fff; }
.site-nav__divider {
  margin-inline: 4px;
  height: 16px;
  width: 1px;
  background: rgba(255, 255, 255, 0.25);
}
.site-nav__tools {
  display: flex;
  align-items: center;
}
.site-nav__tools .icon-btn:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }

.icon-btn {
  position: relative;
  display: inline-flex;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  outline: none;
  transition: background 0.15s, color 0.15s;
}
.icon-btn svg { width: 19.2px; height: 19.2px; }
.icon-btn .icon-moon { display: none; }
html.dark .icon-btn .icon-sun { display: none; }
html.dark .icon-btn .icon-moon { display: block; }

.badge {
  position: absolute;
  top: -4px;
  right: -4px;
  display: flex;
  height: 20px;
  min-width: 20px;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: rgba(228, 0, 20, 0.1);
  color: var(--destructive);
  font-size: 10px;
  font-weight: 600;
  padding-inline: 4px;
  font-variant-numeric: tabular-nums;
}
html.dark .badge { background: rgba(255, 101, 104, 0.2); color: #ff6568; }
.badge[hidden] { display: none; }

.btn-login {
  display: inline-flex;
  height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--primary);
  color: var(--primary-foreground);
  padding-inline: 14px;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  transition: opacity 0.15s;
}
.btn-login:hover { opacity: 0.9; }
.btn-login:active { opacity: 0.8; }
.btn-login--block { display: flex; height: 40px; border-radius: 8px; font-size: 14px; }

/* 语言 / 公告下拉 */
.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 60;
  min-width: 140px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--popover);
  color: var(--popover-foreground);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  padding: 6px;
}
.dropdown-menu[hidden] { display: none; }
.dropdown-menu__item {
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
}
.dropdown-menu__item:hover { background: var(--muted); }
.dropdown-menu__item--active { background: var(--muted); font-weight: 600; }

/* 公告弹层 */
.notice-popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 60;
  width: min(420px, calc(100vw - 32px));
  max-height: 420px;
  overflow-y: auto;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--popover);
  color: var(--popover-foreground);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
  padding: 8px;
  font-size: 13px;
  text-align: left;
}
.notice-popover[hidden] { display: none; }
.notice-item {
  padding: 12px;
  border-radius: 8px;
}
.notice-item:hover { background: var(--muted); }
.notice-item + .notice-item { border-top: 1px solid var(--border); }
.notice-item__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}
.notice-item__title {
  font-weight: 600;
  font-size: 13px;
  line-height: 1.4;
}
.notice-item__date {
  flex-shrink: 0;
  color: var(--muted-foreground);
  font-size: 11px;
}
.notice-item__content {
  color: var(--muted-foreground);
  font-size: 12px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: pre-line;
}
.notice-empty { padding: 20px; text-align: center; color: var(--muted-foreground); }

/* 移动端菜单 */
.site-nav__mobile {
  display: flex;
  align-items: center;
  gap: 8px;
}
.site-nav__mobile .icon-btn:hover { background: rgba(255, 255, 255, 0.1); }
@media (min-width: 1024px) {
  .site-nav__mobile { display: none; }
}
.menu-burger { position: relative; display: block; width: 20px; height: 14px; }
.menu-burger span {
  position: absolute;
  left: 0;
  right: 0;
  height: 1.5px;
  border-radius: 9999px;
  background: currentColor;
  transition: transform 0.3s, opacity 0.3s;
}
.menu-burger span:nth-child(1) { top: 1px; }
.menu-burger span:nth-child(2) { top: 11px; }
.menu-burger span:nth-child(3) { top: 6px; opacity: 0; }
#menu-btn[aria-expanded="true"] .menu-burger span:nth-child(1) { top: 6px; transform: rotate(45deg); }
#menu-btn[aria-expanded="true"] .menu-burger span:nth-child(2) { top: 6px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: color-mix(in oklab, var(--background) 98%, transparent);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu__inner {
  display: flex;
  height: 100%;
  flex-direction: column;
  justify-content: space-between;
  padding: 80px 32px 40px;
}
.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  animation: menu-item-in 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.mobile-menu__link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.025em;
  color: var(--muted-foreground);
  text-decoration: none;
}
.mobile-menu__link--active { color: var(--foreground); }
.mobile-menu__actions {
  animation: menu-item-in 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.05s both;
}
@keyframes menu-item-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  height: clamp(800px, 78vh, 960px);
  width: 100%;
  overflow: hidden;
  background: #000;
}
.hero__bg {
  position: absolute;
  inset: 0;
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  pointer-events: none;
}
.hero__bg.is-active { opacity: 1; }
.hero__inner {
  position: relative;
  z-index: 10;
  margin-inline: auto;
  display: flex;
  height: 100%;
  max-width: 80rem;
  flex-direction: column;
  padding: 96px 20px 40px;
}
@media (min-width: 640px) {
  .hero__inner { padding-inline: 32px; }
}
@media (min-width: 768px) {
  .hero__inner { padding-top: 112px; }
}
@media (min-width: 1024px) {
  .hero__inner { padding: 0 40px 72px; padding-top: 112px; }
}
.hero__content {
  display: flex;
  flex: 1;
  align-items: center;
  padding-top: 32px;
}
@media (min-width: 1024px) {
  .hero__content { padding-top: 64px; }
}
.hero__content > div { max-width: 1100px; }
.hero__content h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.75rem, 2.4vw, 3.25rem);
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: -0.025em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}
.hero__content p {
  margin: 20px 0 0;
  max-width: 32rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 16px;
  line-height: 1.65;
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.65);
}
@media (min-width: 768px) {
  .hero__content p { font-size: 17px; }
}
.hero__actions {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* CTA 按钮 */
.hero-action {
  position: relative;
  display: inline-flex;
  --hero-cta-angle: 0deg;
  animation: hero-cta-in 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.hero-action-ring {
  pointer-events: none;
  position: absolute;
  inset: -1px;
  border-radius: 12px;
  padding: 1.4px;
}
.hero-cta {
  position: relative;
  display: inline-flex;
  height: 56px;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border-radius: 12px;
  border: 1.4px solid transparent;
  background: rgba(30, 39, 51, 0.1);
  padding-inline: 0;
  color: #fff;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 18px;
  line-height: 30px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 0 16px 0 rgba(255, 255, 255, 0.25);
  transition: background-color 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.hero-cta--primary { width: 216px; }
.hero-cta--ghost { width: auto; min-width: 216px; padding-inline: 24px; }
.hero-cta > span {
  opacity: 0.9;
  transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1), text-shadow 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.hero-cta img[data-icon="inline-end"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.hero-action:hover .hero-cta {
  background: rgba(15, 24, 36, 0.3);
  box-shadow: 0 0 22px 0 rgba(255, 255, 255, 0.28);
}
.hero-action:hover .hero-cta > span {
  opacity: 1;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.32);
}
.hero-action:hover .hero-cta img[data-icon="inline-end"] { transform: translateX(2px); }
.hero-action:hover .hero-action-ring { opacity: 1; filter: brightness(1.1); }

/* 流动光环 */
@property --hero-cta-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}
@keyframes hero-cta-ring-spin {
  to { --hero-cta-angle: 360deg; }
}
.hero-flow-ring {
  background: conic-gradient(
    from var(--hero-cta-angle),
    #ffffff1a 0deg,
    #ffffff1a 150deg,
    #ffffff3d 215deg,
    #ffffffad 285deg,
    #ffffff52 330deg,
    #ffffff1a 360deg
  );
  -webkit-mask-image: linear-gradient(#000 0 0), linear-gradient(#000 0 0);
  mask-image: linear-gradient(#000 0 0), linear-gradient(#000 0 0);
  -webkit-mask-clip: content-box, border-box;
  mask-clip: content-box, border-box;
  -webkit-mask-origin: content-box, border-box;
  mask-origin: content-box, border-box;
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  filter: blur(0.35px) drop-shadow(0 0 8px #ffffff3d);
  animation: 2.8s linear infinite hero-cta-ring-spin;
}
.hero-action-ring { opacity: 0.68; transition: opacity 0.56s cubic-bezier(0.22, 1, 0.36, 1), filter 0.56s cubic-bezier(0.22, 1, 0.36, 1); }

/* 底部模型切换 Tab */
.hero-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
@media (min-width: 640px) {
  .hero-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
}
@media (min-width: 1024px) {
  .hero-tabs { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
.hero-tab {
  position: relative;
  display: inline-flex;
  height: 56px;
  width: 100%;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  gap: 6px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  background-image: linear-gradient(103.53deg, rgba(255, 59, 29, 0.01) 4.15%, rgba(255, 191, 29, 0.01) 102.06%);
  padding: 14px 24px;
  color: #fff;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 30px;
  font-weight: 600;
  white-space: nowrap;
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  cursor: pointer;
  transition: box-shadow 0.3s;
}
.hero-tab:hover { color: #fff; }
.hero-tab.is-active {
  box-shadow: 0 10px 36px -14px rgba(255, 255, 255, 0.35);
}
.hero-tab__icon {
  display: flex;
  height: 28px;
  width: 26px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
}
.hero-tab__icon svg { height: 28px !important; width: 26px !important; }
.hero-tab__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 28px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  text-shadow: 0 0 12px currentColor;
}

/* 厂商/模型 文字徽标（你的中转站数据用的是文字标记） */
.vendor-mark {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
}
.llm-mark {
  display: inline-flex;
  width: 76px;
  height: 76px;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
}
.reference-model-preview__icon--mark { background: transparent; }
.reference-production__model-mark {
  display: inline-flex;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  flex: 0 0 24px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
}
.hero-tab__progress {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 12px;
  pointer-events: none;
}
.hero-tab__progress i {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 0%;
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.32) 0%, rgba(255, 255, 255, 0.22) 62%, rgba(255, 255, 255, 0) 100%);
  box-shadow: 6px 0 18px -4px rgba(255, 255, 255, 0.55);
}
.hero-tab.is-active .hero-tab__progress i {
  animation: hero-progress linear both;
}
@keyframes hero-progress {
  from { width: 0%; }
  to { width: 100%; }
}

/* 入场动画 */
@keyframes landing-fade-up {
  0% { opacity: 0; transform: translateY(24px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes hero-cta-in {
  0% { opacity: 0; transform: translateY(24px); }
  100% { opacity: 1; transform: translateY(0); }
}
.landing-animate-fade-up {
  animation: 0.6s cubic-bezier(0.16, 1, 0.3, 1) both landing-fade-up;
}

/* ==========================================================================
   通用区块元素
   ========================================================================== */
.section-more:hover { color: var(--foreground); }

/* 运营中枢 / 生产数据 区块头部（sections.css 已定义 .reference-section-header 等） */
#operations .reference-section-header,
#production .reference-section-header {
  margin-bottom: 30px;
}
#operations .reference-section-title,
#production .reference-section-title {
  letter-spacing: -1.47px;
  color: var(--foreground);
  font-size: 42px;
  font-weight: 700;
  line-height: 1.18;
  margin: 0;
}
#operations .reference-section-description,
#production .reference-section-description {
  color: var(--muted-foreground);
  margin: 10px 0 0;
  font-size: 15px;
  line-height: 1.65;
}
@media (max-width: 900px) {
  #operations .reference-section-title,
  #production .reference-section-title {
    letter-spacing: -0.7px;
    font-size: 28px;
  }
  #operations .reference-section-description,
  #production .reference-section-description { font-size: 14px; }
}

/* 核心功能 / 用户评价 */
.eyebrow {
  margin: 0 0 12px;
  color: var(--muted-foreground);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.h2-title {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.025em;
}
@media (min-width: 768px) {
  .h2-title { font-size: 30px; }
}
.core-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 640px) {
  .core-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .core-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.core-card {
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--background);
  padding: 24px;
  transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
}
.core-card:hover {
  border-color: color-mix(in oklab, var(--primary) 40%, transparent);
  background: color-mix(in oklab, var(--muted) 30%, var(--background));
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}
.core-card__num {
  margin-bottom: 16px;
  color: var(--muted-foreground);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.3s;
}
.core-card:hover .core-card__num { color: var(--primary); }
.core-card h3 { margin: 0; font-size: 16px; font-weight: 600; }
.core-card p {
  margin: 8px 0 0;
  color: var(--muted-foreground);
  font-size: 14px;
  line-height: 1.65;
}

.testimonial-grid {
  display: grid;
  gap: 20px;
}
@media (min-width: 768px) {
  .testimonial-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .testimonial-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: color-mix(in oklab, var(--muted) 30%, transparent);
  padding: 20px;
  transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
}
.testimonial-card:hover {
  border-color: color-mix(in oklab, var(--primary) 40%, transparent);
  background: color-mix(in oklab, var(--muted) 50%, transparent);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}
.testimonial-card__quote {
  color: #f97316;
  margin-bottom: 12px;
  width: 20px;
  height: 20px;
  transition: transform 0.3s;
}
.testimonial-card:hover .testimonial-card__quote { transform: scale(1.1); }
.testimonial-card__text {
  flex: 1;
  margin: 0;
  color: var(--muted-foreground);
  font-size: 14px;
  line-height: 1.65;
}
.testimonial-card__author {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial-card__avatar {
  display: flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: var(--muted);
  font-size: 14px;
  font-weight: 500;
}
.testimonial-card__name { font-size: 14px; font-weight: 600; }
.testimonial-card__role { color: var(--muted-foreground); font-size: 12px; }

/* ==========================================================================
   页脚
   ========================================================================== */
.site-footer {
  position: relative;
  z-index: 10;
  border-top: 1px solid color-mix(in oklab, var(--border) 40%, transparent);
}
.site-footer__row {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
}
@media (min-width: 768px) {
  .site-footer__row { flex-direction: row; gap: 64px; }
}
.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.site-footer__logo {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  object-fit: contain;
}
.site-footer__name { font-size: 14px; font-weight: 600; letter-spacing: -0.025em; }
.site-footer__desc {
  margin: 12px 0 0;
  max-width: 200px;
  color: color-mix(in oklab, var(--muted-foreground) 60%, transparent);
  font-size: 12px;
  line-height: 1.65;
}
.site-footer__bottom {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-top: 1px solid color-mix(in oklab, var(--border) 30%, transparent);
  padding-top: 24px;
}
@media (min-width: 640px) {
  .site-footer__bottom { flex-direction: row; }
}
.site-footer__copyright {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: color-mix(in oklab, var(--muted-foreground) 40%, transparent);
  font-size: 12px;
}

/* ==========================================================================
   滚动入场动画
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   动效偏好
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .hero-flow-ring,
  .hero-action-ring,
  .hero-tab.is-active .hero-tab__progress i {
    animation: none !important;
  }
  .hero__bg { transition: none; }
  .landing-animate-fade-up,
  .hero-action {
    animation: none !important;
    opacity: 1;
    transform: none;
  }
  .reveal { transition: none; opacity: 1; transform: none; }
  .site-nav,
  .scroll-progress__inner::after { transition: none; }
}
