/* ============================================================
   文件 5: style.css — 全站共享样式
   ============================================================ */

/* --- DESIGN TOKENS --- */
:root {
    --white: #ffffff;
    --bg: #f8f8f7;
    --bg-w: #ffffff;
    --ink: #1a1a1a;
    --ink2: #555;
    --ink3: #888;
    --ink4: #bbb;
    --brand: #2a5cff;
    --brand-bg: #e8eeff;
    --brand-dk: #1a3eb8;
    --green: #00c389;
    --border: #e8e8e6;
    --border2: #d0d0cd;
    --r: 12px;
    --r-lg: 20px;
    --font: 'Noto Sans SC', 'Inter', -apple-system, system-ui, sans-serif;
    --max-w: 1120px;
    --ease: 0.25s cubic-bezier(0.4,0,0.2,1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--ink); line-height: 1.7; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: var(--font); }

.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.wrap-wide { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; margin: 0 auto; }
.bg-w { background: var(--white); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section { padding: 96px 0; }

/* --- TYPOGRAPHY --- */
.overline { font-size: .78rem; font-weight: 600; color: var(--brand); letter-spacing: .05em; text-transform: uppercase; margin-bottom: 10px; }
.h2 { font-size: clamp(1.6rem,3vw,2.1rem); font-weight: 800; line-height: 1.3; letter-spacing: -.015em; margin-bottom: 12px; }
.sub { font-size: 1rem; color: var(--ink2); max-width: 540px; line-height: 1.75; }
.sec-center { text-align: center; margin-bottom: 48px; }
.sec-center .sub { margin: 0 auto; }
.body-text { font-size: .96rem; color: var(--ink2); line-height: 1.85; margin-bottom: 14px; }
.body-text strong { color: var(--ink); }
.link { color: var(--brand); font-weight: 500; border-bottom: 1px solid rgba(42,92,255,.2); transition: border-color var(--ease); }
.link:hover { border-color: var(--brand); }
.chip { display: inline-block; padding: 5px 13px; background: var(--brand-bg); border-radius: 6px; font-size: .8rem; font-weight: 600; color: var(--brand); margin-bottom: 24px; }

.prose p { font-size: .96rem; color: var(--ink2); line-height: 1.9; margin-bottom: 16px; }
.prose p strong { color: var(--ink); font-weight: 600; }
.prose p a { color: var(--brand); border-bottom: 1px solid rgba(42,92,255,.2); }
.prose p a:hover { border-color: var(--brand); }
.prose h2 { font-size: 1.3rem; font-weight: 700; margin: 40px 0 14px; letter-spacing: -.01em; }
.prose .lead { font-size: 1.08rem; color: var(--ink2); line-height: 1.85; margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }

/* --- NAV --- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: rgba(248,248,247,.82); backdrop-filter: blur(14px) saturate(160%); border-bottom: 1px solid transparent; transition: border-color var(--ease); }
.nav.scrolled { border-bottom-color: var(--border); }
.nav-inner { height: 60px; display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 9px; }
.logo-svg { width: 30px; height: 30px; }
.logo-txt { font-size: 1.05rem; font-weight: 700; }
.nav-menu { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-menu a { font-size: .86rem; font-weight: 500; color: var(--ink2); transition: color var(--ease); }
.nav-menu a:hover, .nav-menu a.active { color: var(--ink); }
.hamburger { display: none; width: 20px; height: 14px; flex-direction: column; justify-content: space-between; cursor: pointer; border: none; background: none; }
.hamburger span { display: block; width: 100%; height: 2px; background: var(--ink); border-radius: 2px; }

/* --- PAGE HEADER --- */
.page-header { padding: 120px 0 48px; }
.page-header-sm { padding: 100px 0 20px; }
.breadcrumb { font-size: .82rem; color: var(--ink3); margin-bottom: 16px; display: flex; gap: 6px; flex-wrap: wrap; }
.breadcrumb a { color: var(--ink2); transition: color var(--ease); }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb span { color: var(--ink4); }
.page-title { font-size: clamp(1.8rem,4vw,2.6rem); font-weight: 900; letter-spacing: -.02em; margin-bottom: 12px; }
.page-desc { font-size: 1.05rem; color: var(--ink2); max-width: 600px; line-height: 1.75; }

/* --- HERO --- */
.hero { padding: 130px 0 88px; }
.hero-grid { display: grid; grid-template-columns: 1fr 420px; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.2rem,4.5vw,3rem); font-weight: 900; line-height: 1.18; letter-spacing: -.03em; margin-bottom: 20px; }
.hero-p { font-size: 1.05rem; color: var(--ink2); line-height: 1.85; margin-bottom: 14px; max-width: 500px; }
.hero-def { font-size: .9rem; color: var(--ink2); line-height: 1.8; padding: 14px 18px; background: var(--white); border: 1px solid var(--border); border-radius: var(--r); margin-bottom: 32px; max-width: 500px; }
.hero-def strong { color: var(--ink); }
.hero-nums { display: flex; gap: 36px; }
.hero-num { position: relative; }
.hero-num + .hero-num::before { content: ''; position: absolute; left: -18px; top: 4px; bottom: 4px; width: 1px; background: var(--border); }
.hero-num strong { display: block; font-size: 1.4rem; font-weight: 800; color: var(--brand); }
.hero-num span { font-size: .78rem; color: var(--ink3); }

/* Chat mock */
.chat-mock { background: var(--white); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,.03), 0 10px 36px rgba(0,0,0,.04); }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-bottom: 1px solid var(--border); }
.chat-avatar { width: 28px; height: 28px; border-radius: 8px; background: var(--brand); display: flex; align-items: center; justify-content: center; }
.chat-avatar svg { width: 15px; height: 15px; }
.chat-name { font-size: .84rem; font-weight: 600; }
.chat-sub { font-size: .7rem; color: var(--ink3); }
.chat-live { margin-left: auto; font-size: .68rem; font-weight: 600; color: var(--green); background: rgba(0,195,137,.07); padding: 2px 8px; border-radius: 4px; }
.chat-body { padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; }
.chat-row { display: flex; gap: 8px; opacity: 0; animation: chatIn .5s ease forwards; }
@keyframes chatIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
.cr-bubble { padding: 10px 14px; border-radius: 10px; font-size: .84rem; line-height: 1.65; }
.cb-u { background: #f0f0ee; }
.cb-a { background: #fafbff; border: 1px solid #eef1fb; color: var(--ink2); }
.cb-a b { color: var(--brand); font-weight: 600; }

/* --- PLATFORMS BAR --- */
.plat-bar { padding: 48px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--white); overflow: hidden; }
.plat-label { text-align: center; font-size: .76rem; font-weight: 600; color: var(--ink3); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 24px; }
.plat-track { overflow: hidden; }
.plat-track-inner { display: flex; gap: 44px; animation: marquee 35s linear infinite; width: max-content; }
.pt { font-size: .95rem; font-weight: 600; color: var(--ink4); white-space: nowrap; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* --- TWO COL (What is GEO) --- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }

/* Comparison table */
.cmp-table { background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; }
.cmp-col { padding: 24px; }
.cmp-col + .cmp-col { border-left: 1px solid var(--border); }
.cmp-title { font-size: .72rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--ink3); padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid var(--border); }
.cmp-list { display: flex; flex-direction: column; }
.cmp-pair { padding: 8px 0; font-size: .86rem; color: var(--ink2); line-height: 1.5; }
.cmp-pair + .cmp-pair { border-top: 1px solid var(--border); }
.cmp-pair dt { font-weight: 600; color: var(--ink); display: inline; }
.cmp-pair dt::after { content: '：'; }
.cmp-pair dd { display: inline; margin: 0; }

/* --- CARD GRID (Services) --- */
.card-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.card { display: block; background: var(--white); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 30px 24px; transition: all var(--ease); }
.card:hover { border-color: var(--border2); box-shadow: 0 2px 8px rgba(0,0,0,.03); transform: translateY(-2px); }
.card-icon { width: 42px; height: 42px; border-radius: 11px; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.card-icon svg { width: 22px; height: 22px; }
.ci-blue { background: #eef2ff; color: var(--brand); }
.ci-purple { background: #f3eeff; color: #7c3aed; }
.ci-teal { background: #ecfdf5; color: #059669; }
.ci-amber { background: #fef9ee; color: #d97706; }
.ci-rose { background: #fff1f2; color: #e11d48; }
.card h3 { font-size: 1.02rem; font-weight: 700; margin-bottom: 8px; }
.card p { font-size: .86rem; color: var(--ink2); line-height: 1.7; }
.card-link { display: inline-block; margin-top: 14px; font-size: .82rem; font-weight: 600; color: var(--brand); }

/* --- WHY LIST --- */
.why-list { margin-top: 8px; }
.why-item { padding: 28px 0; border-bottom: 1px solid var(--border); }
.why-item:last-child { border-bottom: none; }
.why-item h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; display: flex; align-items: baseline; gap: 10px; }
.why-n { font-size: .72rem; font-weight: 700; color: var(--brand); background: var(--brand-bg); width: 22px; height: 22px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; position: relative; top: 1px; }
.why-item p { font-size: .94rem; color: var(--ink2); line-height: 1.85; padding-left: 32px; }

/* --- FAQ --- */
.faq-list { display: flex; flex-direction: column; gap: 8px; }
details.faq { background: var(--white); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; }
details.faq summary { padding: 16px 20px; font-size: .96rem; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: space-between; list-style: none; transition: background var(--ease); }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: '+'; font-size: 1.2rem; color: var(--ink3); transition: transform .3s ease; }
details.faq[open] summary::after { transform: rotate(45deg); }
details.faq summary:hover { background: var(--bg); }
details.faq p { padding: 0 20px 18px; font-size: .92rem; color: var(--ink2); line-height: 1.85; }

/* --- CONTACT --- */
.contact-layout { display: grid; grid-template-columns: 1fr 280px; gap: 64px; align-items: start; }
.contact-info { margin-top: 28px; display: flex; flex-direction: column; gap: 18px; }
.ci-row { display: flex; align-items: start; gap: 14px; }
.ci-icon { width: 20px; height: 20px; flex-shrink: 0; color: var(--ink3); margin-top: 2px; }
.ci-label { font-size: .78rem; color: var(--ink3); font-weight: 500; }
.ci-val { font-size: .96rem; font-weight: 500; }
.qr-box { text-align: center; }
.qr-placeholder { width: 200px; height: 200px; margin: 0 auto; display: flex; align-items: center; justify-content: center; }
.qr-placeholder svg { width: 160px; height: 160px; }
.qr-label { margin-top: 12px; font-size: .82rem; color: var(--ink3); }

/* --- TEAM --- */
.team-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.team-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 28px 24px; text-align: center; }
.team-avatar { width: 64px; height: 64px; margin: 0 auto 16px; }
.team-avatar svg { width: 64px; height: 64px; }
.team-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 2px; }
.team-role { font-size: .8rem; color: var(--brand); font-weight: 600; margin-bottom: 10px; }
.team-bio { font-size: .86rem; color: var(--ink2); line-height: 1.7; text-align: left; }

/* --- METHOD --- */
.method-list { margin-top: 32px; display: flex; flex-direction: column; gap: 0; }
.method-item { display: flex; gap: 20px; padding: 28px 0; border-bottom: 1px solid var(--border); }
.method-item:last-child { border-bottom: none; }
.method-num { font-size: .82rem; font-weight: 800; color: var(--brand); background: var(--brand-bg); width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.method-item h3 { font-size: 1.02rem; font-weight: 700; margin-bottom: 6px; }
.method-item p { font-size: .92rem; color: var(--ink2); line-height: 1.85; }

/* --- ARTICLE LIST --- */
.filter-bar { display: flex; gap: 8px; margin-bottom: 32px; flex-wrap: wrap; }
.filter-btn { padding: 7px 16px; border: 1px solid var(--border); background: var(--white); border-radius: 8px; font-size: .84rem; font-weight: 500; color: var(--ink2); cursor: pointer; transition: all var(--ease); font-family: var(--font); }
.filter-btn:hover { border-color: var(--border2); color: var(--ink); }
.filter-btn.active { background: var(--ink); color: var(--white); border-color: var(--ink); }
.article-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; }
.article-card { display: block; background: var(--white); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 28px 24px; transition: all var(--ease); }
.article-card:hover { border-color: var(--border2); box-shadow: 0 2px 8px rgba(0,0,0,.03); transform: translateY(-2px); }
.ac-cat { display: inline-block; font-size: .72rem; font-weight: 600; color: var(--brand); background: var(--brand-bg); padding: 3px 10px; border-radius: 4px; margin-bottom: 12px; }
.ac-title { font-size: 1.05rem; font-weight: 700; line-height: 1.4; margin-bottom: 8px; }
.ac-excerpt { font-size: .88rem; color: var(--ink2); line-height: 1.7; margin-bottom: 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ac-meta { display: flex; gap: 16px; font-size: .76rem; color: var(--ink3); flex-wrap: wrap; }

/* --- ARTICLE DETAIL --- */
.article-section { padding: 0 0 96px; }
.article-layout { display: grid; grid-template-columns: 1fr 260px; gap: 56px; align-items: start; }
.article-main { min-width: 0; }
.article-head { margin-bottom: 36px; padding-bottom: 28px; border-bottom: 1px solid var(--border); }
.article-title { font-size: clamp(1.6rem,3.5vw,2.2rem); font-weight: 900; line-height: 1.25; letter-spacing: -.02em; margin: 12px 0 14px; }
.article-meta { display: flex; gap: 16px; font-size: .78rem; color: var(--ink3); flex-wrap: wrap; }

/* Sidebar */
.article-sidebar { position: sticky; top: 80px; }
.toc-box { background: var(--white); border: 1px solid var(--border); border-radius: var(--r); padding: 20px; margin-bottom: 16px; }
.toc-title { font-size: .78rem; font-weight: 700; color: var(--ink3); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 12px; }
.toc { display: flex; flex-direction: column; gap: 6px; }
.toc-link { font-size: .86rem; color: var(--ink2); padding: 4px 0; border-left: 2px solid transparent; padding-left: 12px; transition: all var(--ease); }
.toc-link:hover, .toc-link.active { color: var(--brand); border-left-color: var(--brand); }
.sidebar-cta { background: var(--bg); border: 1px solid var(--border); border-radius: var(--r); padding: 20px; }
.sidebar-cta h4 { font-size: .92rem; font-weight: 700; margin-bottom: 6px; }
.sidebar-cta p { font-size: .84rem; color: var(--ink2); line-height: 1.6; margin-bottom: 14px; }
.sidebar-contact { display: flex; flex-direction: column; gap: 8px; }
.sci-row { font-size: .84rem; display: flex; gap: 8px; }
.sci-row strong { color: var(--ink3); font-weight: 600; min-width: 36px; }

/* Related */
.related { margin-top: 56px; padding-top: 36px; border-top: 1px solid var(--border); }
.related h3 { font-size: 1rem; font-weight: 700; margin-bottom: 16px; }
.related-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.related-card { display: block; background: var(--bg); border: 1px solid var(--border); border-radius: var(--r); padding: 18px; transition: all var(--ease); }
.related-card:hover { border-color: var(--border2); transform: translateY(-1px); }
.related-card .rc-cat { font-size: .68rem; font-weight: 600; color: var(--brand); margin-bottom: 6px; display: block; }
.related-card h4 { font-size: .9rem; font-weight: 600; line-height: 1.4; }

/* --- FOOTER --- */
.footer { padding: 56px 0 28px; border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-desc { font-size: .86rem; color: var(--ink2); margin-top: 12px; line-height: 1.7; max-width: 280px; }
.footer-col h4 { font-size: .72rem; font-weight: 700; color: var(--ink3); letter-spacing: .07em; text-transform: uppercase; margin-bottom: 12px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.footer-col ul a { font-size: .86rem; color: var(--ink2); transition: color var(--ease); }
.footer-col ul a:hover { color: var(--ink); }
.footer-bottom { padding-top: 20px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; font-size: .76rem; color: var(--ink3); flex-wrap: wrap; gap: 8px; }

/* --- REVEAL --- */
.reveal { opacity: 0; transform: translateY(20px); transition: all .6s cubic-bezier(.16,1,.3,1); }
.reveal.vis { opacity: 1; transform: translateY(0); }

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .hero-right { max-width: 460px; }
    .two-col { grid-template-columns: 1fr; gap: 40px; }
    .cmp-table { grid-template-columns: 1fr; }
    .cmp-col + .cmp-col { border-left: none; border-top: 1px solid var(--border); }
    .card-grid { grid-template-columns: repeat(2,1fr); }
    .article-layout { grid-template-columns: 1fr; gap: 40px; }
    .article-sidebar { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
    .related-grid { grid-template-columns: repeat(2,1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
    .team-grid { grid-template-columns: repeat(2,1fr); }
    .contact-layout { grid-template-columns: 1fr; gap: 40px; }
    .article-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .section { padding: 64px 0; }
    .nav-menu { display: none; }
    .nav-menu.open { display: flex; flex-direction: column; position: absolute; top: 60px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--border); padding: 16px 24px; gap: 14px; }
    .hamburger { display: flex; }
    .hero { padding: 100px 0 64px; }
    .hero h1 { font-size: 2rem; }
    .hero-nums { flex-direction: column; gap: 14px; }
    .hero-num + .hero-num::before { display: none; }
    .card-grid { grid-template-columns: 1fr; }
    .team-grid { grid-template-columns: 1fr; }
    .related-grid { grid-template-columns: 1fr; }
    .article-sidebar { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .footer-bottom { flex-direction: column; text-align: center; }
}
