/* ==========================================================================
   搜狗输入法官网 - 全局样式
   纯原生 CSS，无框架依赖
   ========================================================================== */

:root {
  --primary: #ff6a00;
  --primary-dark: #e85f00;
  --primary-soft: #fff3e9;
  --ink: #1f2937;
  --ink-soft: #374151;
  --muted: #6b7280;
  --border: #e5e7eb;
  --bg: #f9fafb;
  --white: #ffffff;
  --dark: #111827;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, .1), 0 1px 2px rgba(0, 0, 0, .06);
  --shadow-md: 0 10px 30px -12px rgba(17, 24, 39, .18);
  --shadow-lg: 0 30px 60px -30px rgba(17, 24, 39, .28);
  --header-h: 72px;
  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif,
    "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--primary);
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

button {
  font-family: inherit;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section-white {
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
  letter-spacing: -.01em;
}

.section-head p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   按钮
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease,
    background-color .2s ease, border-color .2s ease, color .2s ease;
}

.btn:focus-visible {
  outline: 3px solid rgba(255, 106, 0, .35);
  outline-offset: 2px;
}

.btn-primary {
  background: linear-gradient(135deg, #ff7a18 0%, #ff5a00 100%);
  color: #fff;
  box-shadow: 0 10px 24px -8px rgba(255, 106, 0, .55);
}

.btn-primary:hover {
  transform: translateY(-1px);
  opacity: .95;
}

.btn-outline {
  background: var(--white);
  border-color: #d1d5db;
  color: var(--ink);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}

.btn-light {
  background: var(--white);
  color: var(--primary-dark);
  box-shadow: 0 12px 26px -14px rgba(0, 0, 0, .5);
}

.btn-light:hover {
  transform: translateY(-1px);
}

.btn-sm {
  padding: 9px 18px;
  border-radius: 10px;
  font-size: .875rem;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1.0625rem;
}

.btn-block {
  width: 100%;
}

/* --------------------------------------------------------------------------
   顶部固定导航
   -------------------------------------------------------------------------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(255, 255, 255, .86);
  border-bottom: 1px solid var(--border);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  transition: box-shadow .2s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 4px 20px -12px rgba(17, 24, 39, .28);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -.01em;
}

.brand img {
  width: auto;
  height: 30px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links > li > a {
  position: relative;
  display: inline-block;
  padding: 6px 0;
  color: var(--ink-soft);
  font-size: .95rem;
  font-weight: 500;
  transition: color .2s ease;
}

.nav-links > li > a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}

.nav-links > li > a:hover {
  color: var(--primary);
}

.nav-links > li > a:hover::after {
  transform: scaleX(1);
}

.nav-links .nav-cta a:hover::after {
  display: none;
}

.nav-links .nav-cta a {
  color: #fff;
  font-weight: 600;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0 9px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  border-radius: 2px;
  background: var(--ink);
  transition: transform .2s ease, opacity .2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   Hero 首屏
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--header-h) + 68px) 0 96px;
  background:
    radial-gradient(900px 420px at 8% -5%, #fff1e4 0%, rgba(255, 241, 228, 0) 62%),
    radial-gradient(760px 420px at 92% 0%, #eef3ff 0%, rgba(238, 243, 255, 0) 60%),
    var(--bg);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -40% -10%;
  height: 320px;
  background: radial-gradient(closest-side, rgba(255, 106, 0, .09), transparent);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: 56px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 10px;
  background: var(--white);
  border: 1px solid #ffe2cc;
  border-radius: 999px;
  color: var(--primary-dark);
  font-size: .8125rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 4px rgba(255, 106, 0, .16);
}

.hero h1 {
  margin: 22px 0 18px;
  font-size: clamp(2rem, 4vw, 3.35rem);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -.025em;
  color: var(--ink);
}

.hero h1 .highlight {
  color: var(--primary);
  background: linear-gradient(transparent 68%, rgba(255, 106, 0, .16) 0);
}

.hero-desc {
  max-width: 560px;
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.78;
}

.platforms {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  margin: 24px 0 30px;
  color: var(--ink-soft);
  font-size: .9rem;
  font-weight: 500;
}

.platforms span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.platforms svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
  opacity: .8;
}

.platforms .sep {
  color: #d1d5db;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.hero-note {
  margin-top: 18px;
  color: #9ca3af;
  font-size: .8125rem;
}

/* Hero 右侧：输入法候选窗口示意 */

.hero-visual {
  position: relative;
  min-height: 380px;
}

.demo-wrap {
  position: relative;
  padding: 18px;
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 26px;
  box-shadow: var(--shadow-lg);
}

.demo-window {
  overflow: hidden;
  background: var(--white);
  border: 1px solid #eef0f3;
  border-radius: var(--radius-xl);
}

.demo-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 14px;
  background: #fbfbfc;
  border-bottom: 1px solid #f0f1f3;
}

.demo-bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #e5e7eb;
}

.demo-bar i:nth-child(1) {
  background: #ffb4a2;
}

.demo-bar i:nth-child(2) {
  background: #ffd9a8;
}

.demo-bar i:nth-child(3) {
  background: #b7e4c7;
}

.demo-bar span {
  margin-left: 6px;
  color: #9ca3af;
  font-size: .75rem;
}

.demo-body {
  padding: 20px 18px 22px;
}

.demo-text {
  min-height: 56px;
  padding: 12px 14px;
  border: 1px solid #eceef1;
  border-radius: 10px;
  color: var(--ink);
  font-size: 1.0625rem;
  line-height: 1.6;
}

.demo-text .caret {
  display: inline-block;
  width: 2px;
  height: 1.05em;
  margin-left: 2px;
  vertical-align: -.15em;
  background: var(--primary);
  animation: caret 1.1s steps(1) infinite;
}

@keyframes caret {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.demo-pinyin {
  margin: 12px 0 8px;
  color: #b0b6bf;
  font-size: .8125rem;
  letter-spacing: .04em;
}

.candidates {
  display: flex;
  overflow: hidden;
  border: 1px solid #eceef1;
  border-radius: 10px;
  background: #fcfcfd;
}

.candidates span {
  flex: 1;
  padding: 11px 6px;
  border-right: 1px solid #f0f1f3;
  color: var(--ink-soft);
  font-size: .875rem;
  text-align: center;
  white-space: nowrap;
}

.candidates span:last-child {
  border-right: 0;
}

.candidates span:first-child {
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-weight: 600;
}

.candidates em {
  margin-right: 4px;
  color: #b6bcc4;
  font-style: normal;
  font-size: .75rem;
}

.candidates span:first-child em {
  color: var(--primary);
}

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  animation: float 5s ease-in-out infinite;
}

.float-card strong {
  display: block;
  color: var(--ink);
  font-size: .875rem;
  font-weight: 700;
}

.float-card small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: .75rem;
}

.float-card .fc-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--primary-soft);
  color: var(--primary);
}

.float-card .fc-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.float-card.card-a {
  top: -18px;
  right: -6px;
}

.float-card.card-b {
  left: -14px;
  bottom: -22px;
  animation-delay: -2.5s;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* --------------------------------------------------------------------------
   功能区块
   -------------------------------------------------------------------------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.feature-card {
  padding: 30px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: #ffe0c7;
  box-shadow: var(--shadow-md);
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 20px;
  border-radius: 14px;
  background: linear-gradient(135deg, #fff3e9, #ffe6d2);
  color: var(--primary);
}

.feature-icon svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

.feature-card h3 {
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 700;
}

.feature-card p {
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.75;
}

.feature-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.feature-tags span {
  padding: 9px 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: .875rem;
}

.feature-tags svg {
  display: inline-block;
  width: 15px;
  height: 15px;
  margin-right: 6px;
  vertical-align: -2px;
  fill: var(--primary);
}

/* --------------------------------------------------------------------------
   用户评价
   -------------------------------------------------------------------------- */

.quote-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.quote-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 30px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
}

.stars {
  display: flex;
  gap: 3px;
  color: #f5a623;
}

.stars svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.quote-card blockquote {
  margin: 0;
  color: var(--ink-soft);
  font-size: .95rem;
  line-height: 1.8;
}

.person {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid #f1f2f4;
}

.avatar {
  display: grid;
  flex: none;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #fff;
  font-size: .95rem;
  font-weight: 700;
  background: linear-gradient(135deg, #ffb27a, #ff7a18);
}

.avatar.av-b {
  background: linear-gradient(135deg, #9ec5ff, #5b8def);
}

.avatar.av-c {
  background: linear-gradient(135deg, #a7e3c4, #35a97a);
}

.person strong {
  display: block;
  color: var(--ink);
  font-size: .95rem;
  font-weight: 600;
}

.person em {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: .8125rem;
  font-style: normal;
}

/* --------------------------------------------------------------------------
   FAQ 手风琴
   -------------------------------------------------------------------------- */

.faq-list {
  max-width: 820px;
  margin: 40px auto 0;
}

.faq-item {
  margin-bottom: 12px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color .2s ease, box-shadow .2s ease;
}

.faq-item.open {
  border-color: #ffd9b8;
  box-shadow: var(--shadow-sm);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  padding: 18px 22px;
  background: none;
  border: 0;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  cursor: pointer;
}

.faq-question:hover {
  color: var(--primary-dark);
}

.faq-question .plus {
  position: relative;
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #f3f4f6;
  transition: background-color .2s ease, transform .25s ease;
}

.faq-question .plus::before,
.faq-question .plus::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 9px;
  height: 2px;
  border-radius: 2px;
  background: var(--muted);
  transform: translate(-50%, -50%);
  transition: transform .25s ease, background-color .2s ease;
}

.faq-question .plus::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-item.open .faq-question .plus {
  background: var(--primary-soft);
  transform: rotate(180deg);
}

.faq-item.open .faq-question .plus::before,
.faq-item.open .faq-question .plus::after {
  background: var(--primary);
}

.faq-item.open .faq-question .plus::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}

.faq-answer p {
  padding: 0 22px 20px;
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.8;
}

.faq-item.open .faq-answer {
  max-height: 420px;
}

/* --------------------------------------------------------------------------
   精选资讯
   -------------------------------------------------------------------------- */

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.news-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 26px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.news-card:hover {
  transform: translateY(-4px);
  border-color: #ffe0c7;
  box-shadow: var(--shadow-md);
}

.tag {
  align-self: flex-start;
  padding: 4px 10px;
  background: var(--primary-soft);
  border-radius: var(--radius-sm);
  color: var(--primary-dark);
  font-size: .75rem;
  font-weight: 600;
}

.news-card h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.55;
}

.news-card h3 a {
  color: var(--ink);
  transition: color .2s ease;
}

.news-card h3 a:hover {
  color: var(--primary);
}

.news-card p {
  flex: 1;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.72;
}

.news-card .news-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid #f3f4f6;
  color: #9ca3af;
  font-size: .78rem;
}

.news-more {
  margin-top: 36px;
  text-align: center;
}

.news-date-group {
  margin-top: 44px;
}

.news-date-group:first-of-type {
  margin-top: 36px;
}

.news-date-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.news-date-head h2 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}

.news-date-head span {
  color: var(--muted);
  font-size: .8125rem;
  white-space: nowrap;
}

.news-date-head::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* 资讯详情页 */

.page-hero .article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-top: 18px;
  color: var(--muted);
  font-size: .875rem;
}

.doc h1 {
  margin: 0 0 16px;
  font-size: clamp(1.7rem, 3.2vw, 2.3rem);
  font-weight: 800;
  line-height: 1.32;
  letter-spacing: -.02em;
}

.doc .lead {
  margin-bottom: 8px;
  color: var(--ink-soft);
  font-size: 1.0625rem;
  line-height: 1.9;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
  color: var(--muted);
  font-size: .8125rem;
}

.article-tags a {
  padding: 4px 10px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: .8125rem;
  transition: border-color .2s ease, color .2s ease;
}

.article-tags a:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.related {
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.related h2 {
  margin-top: 0;
  font-size: 1.25rem;
}

.related ul li::before {
  background: var(--primary);
}

.related ul li a {
  color: var(--ink-soft);
  transition: color .2s ease;
}

.related ul li a:hover {
  color: var(--primary);
}

.article-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: .9rem;
}

.article-nav a {
  max-width: 48%;
  color: var(--primary);
  line-height: 1.6;
}

.article-nav .next {
  text-align: right;
}

/* --------------------------------------------------------------------------
   底部 CTA
   -------------------------------------------------------------------------- */

.cta-wrap {
  padding: 0 0 80px;
}

.cta-band {
  position: relative;
  overflow: hidden;
  padding: 60px 32px;
  border-radius: 24px;
  background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
  text-align: center;
}

.cta-band::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -80px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 106, 0, .55), transparent);
  pointer-events: none;
}

.cta-band::after {
  content: "";
  position: absolute;
  bottom: -160px;
  left: -60px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(91, 141, 239, .35), transparent);
  pointer-events: none;
}

.cta-band h2,
.cta-band p,
.cta-band .btn {
  position: relative;
  z-index: 1;
}

.cta-band h2 {
  color: #fff;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  line-height: 1.3;
}

.cta-band p {
  margin: 14px auto 28px;
  max-width: 560px;
  color: rgba(255, 255, 255, .72);
  font-size: 1rem;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   页脚
   -------------------------------------------------------------------------- */

.site-footer {
  padding: 56px 0 24px;
  background: var(--dark);
  color: #9ca3af;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}

.footer-brand .brand {
  color: #fff;
}

.footer-brand .brand img {
  width: auto;
  height: 28px;
}

.footer-brand p {
  margin-top: 16px;
  max-width: 280px;
  font-size: .875rem;
  line-height: 1.75;
}

.site-footer h4 {
  margin-bottom: 16px;
  color: #e5e7eb;
  font-size: .95rem;
  font-weight: 600;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #9ca3af;
  font-size: .9rem;
  transition: color .2s ease;
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: .8125rem;
  color: #6b7280;
}

/* --------------------------------------------------------------------------
   内页通用
   -------------------------------------------------------------------------- */

.page-hero {
  padding: calc(var(--header-h) + 64px) 0 56px;
  background:
    radial-gradient(760px 320px at 12% 0%, #fff2e7 0%, rgba(255, 242, 231, 0) 65%),
    var(--bg);
  border-bottom: 1px solid var(--border);
}

.page-hero .badge {
  margin-bottom: 20px;
}

.page-hero h1 {
  max-width: 860px;
  font-size: clamp(1.8rem, 3.4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -.02em;
}

.page-hero p {
  max-width: 720px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.75;
}

.breadcrumb {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: .8125rem;
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb a:hover {
  color: var(--primary);
}

/* 下载页 */

.download-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.download-card {
  display: flex;
  gap: 20px;
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
}

.platform-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--primary-soft);
  color: var(--primary);
}

.platform-icon svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.download-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
}

.download-card .meta {
  margin: 6px 0 16px;
  color: var(--muted);
  font-size: .875rem;
  line-height: 1.65;
}

.download-card .btn {
  margin-top: 2px;
}

.table-wrap {
  margin-top: 32px;
  overflow-x: auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
}

th,
td {
  padding: 14px 18px;
  text-align: left;
  white-space: nowrap;
}

thead th {
  background: #fbfbfc;
  color: var(--ink-soft);
  font-weight: 600;
  border-bottom: 1px solid var(--border);
}

tbody td {
  color: var(--muted);
  border-bottom: 1px solid #f3f4f6;
}

tbody tr:last-child td {
  border-bottom: 0;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 32px;
  counter-reset: step;
}

.step {
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 14px;
  border-radius: 10px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-size: .9rem;
  font-weight: 700;
}

.step h3 {
  margin-bottom: 8px;
  font-size: 1rem;
  font-weight: 700;
}

.step p {
  color: var(--muted);
  font-size: .875rem;
  line-height: 1.7;
}

.check-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 24px;
  margin-top: 28px;
}

.check-list li {
  display: flex;
  gap: 10px;
  color: var(--ink-soft);
  font-size: .95rem;
  line-height: 1.6;
}

.check-list svg {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  fill: var(--primary);
}

/* 文档页（隐私政策 / 联系） */

.doc {
  max-width: 860px;
  margin: 0 auto;
  padding: 64px 0 80px;
}

.doc h2 {
  margin: 40px 0 14px;
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--ink);
}

.doc h2:first-child {
  margin-top: 0;
}

.doc p,
.doc li {
  color: var(--ink-soft);
  font-size: .95rem;
  line-height: 1.85;
}

.doc p + p {
  margin-top: 12px;
}

.doc ul {
  margin: 12px 0;
  padding-left: 4px;
}

.doc ul li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 8px;
}

.doc ul li::before {
  content: "";
  position: absolute;
  top: .72em;
  left: 4px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--primary);
}

.doc .updated {
  margin-bottom: 32px;
  color: var(--muted);
  font-size: .875rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 32px;
}

.contact-card {
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
}

.contact-card h3 {
  margin-bottom: 8px;
  font-size: 1.0625rem;
  font-weight: 700;
}

.contact-card p {
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.7;
}

.contact-card .mail {
  display: inline-block;
  margin-top: 14px;
  font-size: .95rem;
  font-weight: 600;
}

.form-field {
  margin-bottom: 16px;
}

.form-field label {
  display: block;
  margin-bottom: 6px;
  color: var(--ink-soft);
  font-size: .875rem;
  font-weight: 600;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--white);
  border: 1px solid #d1d5db;
  border-radius: 10px;
  color: var(--ink);
  font-family: inherit;
  font-size: .95rem;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: 0;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 106, 0, .14);
}

.form-field textarea {
  min-height: 120px;
  resize: vertical;
}

.form-hint {
  margin-top: 12px;
  color: var(--muted);
  font-size: .8125rem;
  line-height: 1.65;
}

/* 404 */

.not-found {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: calc(var(--header-h) + 40px) 24px 80px;
  text-align: center;
}

.not-found .code {
  color: var(--primary);
  font-size: clamp(4rem, 12vw, 7rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.04em;
}

.not-found h1 {
  margin: 16px 0 12px;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
}

.not-found p {
  max-width: 480px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

.not-found .actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 28px;
}

/* --------------------------------------------------------------------------
   响应式
   -------------------------------------------------------------------------- */

@media (max-width: 1023px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-visual {
    max-width: 620px;
    margin: 0 auto;
    width: 100%;
  }

  .feature-grid,
  .quote-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767px) {
  .container {
    padding: 0 16px;
  }

  .section {
    padding: 56px 0;
  }

  .nav-toggle {
    display: flex;
  }

  .brand img {
    height: 24px;
  }

  .nav-links {
    position: absolute;
    top: calc(var(--header-h) + 8px);
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: 0 20px 40px -20px rgba(17, 24, 39, .3);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links > li > a {
    display: block;
    padding: 11px 12px;
    border-radius: 8px;
  }

  .nav-links > li > a:hover {
    background: #f9fafb;
  }

  .nav-links > li > a::after {
    display: none;
  }

  .nav-links .nav-cta {
    margin-top: 6px;
    padding: 0;
  }

  .nav-links .nav-cta a {
    display: block;
    padding: 12px 12px;
  }

  .hero {
    padding: calc(var(--header-h) + 44px) 0 64px;
  }

  .hero h1 {
    font-size: clamp(1.8rem, 8vw, 2.2rem);
  }

  .hero-actions .btn {
    flex: 1 1 100%;
  }

  .hero-note {
    text-align: center;
  }

  .demo-wrap {
    padding: 12px;
  }

  .float-card {
    padding: 10px 12px;
  }

  .float-card.card-a {
    top: -14px;
    right: 0;
  }

  .float-card.card-b {
    left: 0;
    bottom: -16px;
  }

  .float-card strong {
    font-size: .8125rem;
  }

  .feature-grid,
  .quote-grid,
  .news-grid,
  .download-grid,
  .contact-grid,
  .steps,
  .check-list {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .quote-grid {
    margin-top: 32px;
  }

  .cta-band {
    padding: 44px 22px;
    border-radius: 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .doc {
    padding: 40px 0 56px;
  }

  .page-hero {
    padding: calc(var(--header-h) + 40px) 0 40px;
  }
}

@media (max-width: 479px) {
  .section {
    padding: 48px 0;
  }

  .feature-card,
  .quote-card,
  .download-card,
  .step {
    padding: 22px;
  }

  .platforms {
    gap: 8px 12px;
    font-size: .8125rem;
  }

  .candidates span {
    padding: 10px 4px;
    font-size: .8125rem;
  }

  .candidates em {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
