:root {
  --c-brand: #25D366;
  --c-brand-deep: #128C7E;
  --c-accent: #00C9FF;
  --c-surface: #FFFFFF;
  --c-bg: #F0F4F8;
  --c-bg-dark: #0B141E;
  --c-text: #1A2332;
  --c-text-sub: #5A6B7C;
  --c-border: #DCE4EB;
  --c-highlight: #E0F7FA;
  --f-base: clamp(1rem, 0.92rem + 0.3vw, 1.125rem);
  --f-h1: clamp(2rem, 1.5rem + 2.2vw, 3.25rem);
  --f-h2: clamp(1.5rem, 1.25rem + 1.2vw, 2.125rem);
  --f-h3: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  --r-lg: 18px;
  --r-md: 12px;
  --shadow-sm: 0 4px 12px rgba(11, 20, 30, 0.06);
  --shadow-md: 0 12px 32px rgba(11, 20, 30, 0.1);
  --gap-section: clamp(3.5rem, 22vh, 7rem);
  --gap-el: 1.5rem;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--f-base), system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--c-bg);
  color: var(--c-text);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; transition: color .2s ease; }
ul, ol { list-style: none; }
h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; text-wrap: balance; }
h1 { font-size: var(--f-h1); }
h2 { font-size: var(--f-h2); }
h3 { font-size: var(--f-h3); }
p { margin-bottom: 1rem; }
.container { width: min(92%, 1180px); margin-inline: auto; }
section { padding-block: var(--gap-section); }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr)); gap: var(--gap-el); }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: var(--gap-el); }
.text-center { text-align: center; }
.mt-el { margin-top: var(--gap-el); }

/* Header / Footer */
header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, 0.88); backdrop-filter: blur(14px); border-bottom: 1px solid var(--c-border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 1.2rem; }
.brand img { height: 42px; width: auto; }
nav ul { display: flex; gap: 1.6rem; }
nav a { font-weight: 500; font-size: 0.95rem; padding: 0.5rem 0; position: relative; }
nav a:hover, nav a[aria-current="page"] { color: var(--c-brand-deep); }
nav a[aria-current="page"]::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 2.5px; background: var(--c-brand); border-radius: 2px; }
footer { background: var(--c-bg-dark); color: #94A3B8; padding: 3.5rem 0 2rem; font-size: 0.92rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2.5rem; margin-bottom: 2.5rem; }
.footer-col h4 { color: #F8FAFC; margin-bottom: 1rem; font-size: 1.05rem; }
.footer-col a { display: block; margin-bottom: 0.65rem; }
.footer-col a:hover { color: #F8FAFC; }
.copyright { text-align: center; border-top: 1px solid #1E293B; padding-top: 1.5rem; color: #64748B; }

/* Components */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 28px; border-radius: 999px; font-weight: 600; cursor: pointer; transition: all .25s ease; border: 2px solid transparent; font-size: 1rem; user-select: none; }
.btn-primary { background: var(--c-brand); color: #fff; }
.btn-primary:hover { background: var(--c-brand-deep); transform: translateY(-3px); box-shadow: 0 6px 16px rgba(37, 211, 102, 0.35); }
.btn-outline { background: transparent; border-color: var(--c-brand-deep); color: var(--c-brand-deep); }
.btn-outline:hover { background: var(--c-brand-deep); color: #fff; }
.card { background: var(--c-surface); border-radius: var(--r-lg); padding: 1.75rem; box-shadow: var(--shadow-sm); border: 1px solid var(--c-border); transition: transform .25s ease, box-shadow .25s ease; }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.card-icon { width: 52px; height: 52px; border-radius: 14px; background: linear-gradient(135deg, #E6FFFD, #F0FDFA); display: flex; align-items: center; justify-content: center; margin-bottom: 1.25rem; }
.card-icon svg { width: 28px; height: 28px; stroke: var(--c-brand-deep); stroke-width: 2; fill: none; }
.section-header { margin-bottom: 2.5rem; }
.section-header p { color: var(--c-text-sub); max-width: 720px; margin: 0.6rem auto 0; line-height: 1.8; }
.text-center .section-header p { margin-inline: auto; }

/* Table */
.table-wrap { overflow-x: auto; border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
table { width: 100%; border-collapse: collapse; background: var(--c-surface); }
th, td { padding: 1.1rem 1.25rem; text-align: left; border-bottom: 1px solid var(--c-border); }
th { background: #F8FAFC; font-weight: 600; color: var(--c-text); white-space: nowrap; }
tr:last-child td { border-bottom: none; }

/* FAQ */
details { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-md); margin-bottom: 0.85rem; padding: 1.1rem 1.35rem; transition: all .2s ease; }
details[open] { border-color: var(--c-brand); box-shadow: 0 5px 15px rgba(37, 211, 102, 0.12); }
summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; align-items: center; justify-content: space-between; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; font-size: 1.3rem; font-weight: 400; transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details > div { margin-top: 1rem; color: var(--c-text-sub); padding-top: 0.9rem; border-top: 1px dashed var(--c-border); line-height: 1.8; }

/* Update Cards */
.update-card { display: flex; flex-direction: column; height: 100%; }
.update-card .meta { font-size: 0.88rem; color: var(--c-text-sub); margin-bottom: 0.5rem; display: flex; align-items: center; gap: 6px; }
.update-card .content { flex: 1; margin-bottom: 1.25rem; }
.update-card .link-btn { align-self: flex-start; font-size: 0.95rem; font-weight: 600; color: var(--c-brand-deep); display: inline-flex; align-items: center; gap: 6px; }
.update-card .link-btn:hover { gap: 10px; }
.link-btn svg { width: 16px; height: 16px; stroke: currentColor; }

/* Related Links */
.related-list li { margin-bottom: 1rem; padding-left: 1.25rem; position: relative; }
.related-list li::before { content: ''; position: absolute; left: 0; top: 0.65em; width: 6px; height: 6px; background: var(--c-brand); border-radius: 50%; }
.related-list a { font-weight: 500; display: block; margin-bottom: 0.3rem; }
.related-list a:hover { color: var(--c-brand-deep); }
.related-list p { font-size: 0.92rem; color: var(--c-text-sub); margin: 0; }

/* Steps */
.steps { counter-reset: step; }
.steps li { counter-increment: step; margin-bottom: 1.25rem; padding-left: 2.8rem; position: relative; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 28px; height: 28px; background: var(--c-highlight); color: var(--c-brand-deep); font-weight: 700; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.95rem; }

/* Hero Overlay */
.hero-visual { position: relative; min-height: 560px; border-radius: var(--r-lg); overflow: hidden; background: linear-gradient(135deg, #0B141E 0%, #13223A 100%); display: flex; align-items: center; justify-content: center; }
.hero-visual svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-content { position: relative; z-index: 2; text-align: center; color: #F8FAFC; padding: 2rem; max-width: 780px; }
.hero-content h1 { margin-bottom: 1rem; text-shadow: 0 2px 12px rgba(0,0,0,0.4); }
.hero-content p { font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.25rem); color: #CBD5E1; margin-bottom: 2rem; max-width: 640px; margin-inline: auto; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* Mockup Frame */
.mockup-frame { background: var(--c-surface); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-md); border: 1px solid var(--c-border); display: flex; height: 480px; }
.mockup-sidebar { width: 280px; background: #F8FAFC; border-right: 1px solid var(--c-border); padding: 1rem; display: flex; flex-direction: column; gap: 0.75rem; }
.mockup-chat { flex: 1; background: #ECE7DD; position: relative; overflow: hidden; }
.chat-bubble { max-width: 75%; padding: 0.85rem 1.1rem; border-radius: 10px; margin-bottom: 0.75rem; font-size: 0.95rem; position: relative; }
.bubble-left { background: var(--c-surface); align-self: flex-start; margin-left: 1rem; border-bottom-left-radius: 2px; }
.bubble-right { background: #DCF8C6; align-self: flex-end; margin-right: 1rem; border-bottom-right-radius: 2px; }
.mockup-toolbar { position: absolute; bottom: 0; left: 0; right: 0; height: 56px; background: var(--c-surface); border-top: 1px solid var(--c-border); display: flex; align-items: center; padding: 0 1rem; gap: 0.75rem; }

/* SVG Animations */
@keyframes twinkle { 0%, 100% { opacity: 0.35; transform: scale(0.92); } 50% { opacity: 1; transform: scale(1.08); } }
@keyframes drawLine { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes floatSoft { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.star { animation: twinkle 3.5s ease-in-out infinite; }
.star:nth-child(odd) { animation-duration: 4.2s; }
.star:nth-child(3n) { animation-delay: 1.2s; }
.draw-line { pathLength: 1; stroke-dasharray: 1; stroke-dashoffset: 0; animation: drawLine 5s ease-in-out infinite alternate; }
.float-slow { animation: floatSoft 7s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 4px; border-radius: 4px; }
@media (max-width: 768px) {
  .mockup-sidebar { display: none; }
  .hero-visual { min-height: 480px; }
}
