/* TG中文版 - 全局样式（纯静态，无框架依赖） */

:root {
    --emerald-50: #ecfdf5;
    --emerald-100: #d1fae5;
    --emerald-200: #a7f3d0;
    --emerald-400: #34d399;
    --emerald-500: #10b981;
    --emerald-600: #059669;
    --emerald-700: #047857;
    --teal-50: #f0fdfa;
    --teal-200: #99f6e4;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-900: #111827;
    --radius-lg: .5rem;
    --radius-xl: .75rem;
    --radius-2xl: 1rem;
    --radius-3xl: 1.5rem;
    --shadow-md: 0 4px 10px rgba(17, 24, 39, .08);
    --shadow-xl: 0 20px 45px -12px rgba(17, 24, 39, .18);
    --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

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

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

body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.7;
    color: var(--gray-700);
    background: #fff;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--emerald-600); text-decoration: none; }
a:hover { color: var(--emerald-700); }
h1, h2, h3 { color: var(--gray-900); line-height: 1.25; margin: 0 0 .6em; }
h1 { font-size: 3rem; font-weight: 700; letter-spacing: -.02em; }
h2 { font-size: 2.25rem; font-weight: 700; }
h3 { font-size: 1.5rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
section { position: relative; }

.container { width: 100%; max-width: 72rem; margin: 0 auto; padding: 0 1rem; }
.container-narrow { max-width: 48rem; }
.section { padding: 6rem 0; }
.section-head { text-align: center; margin-bottom: 3.5rem; }
.section-head--left { text-align: left; }
.section-head h2 { margin-bottom: .4em; }
.section-sub { font-size: 1.125rem; color: var(--gray-600); margin: 0; }
.bg-gray-soft { background: var(--gray-50); }

/* ---------- Header ---------- */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--gray-100);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4.5rem;
}
.brand { display: flex; align-items: center; gap: .7rem; font-weight: 700; color: var(--gray-900); font-size: 1.125rem; }
.brand img { width: 36px; height: 36px; border-radius: var(--radius-lg); }
.nav { display: none; align-items: center; gap: .25rem; }
.nav a {
    display: block;
    padding: .55rem .9rem;
    border-radius: var(--radius-lg);
    color: var(--gray-600);
    font-size: .95rem;
    font-weight: 500;
}
.nav a:hover { color: var(--gray-900); background: var(--gray-100); }
.nav a[aria-current="page"] { color: var(--emerald-600); background: var(--emerald-50); }
.header-cta {
    display: none;
    align-items: center;
    gap: .45rem;
    padding: .6rem 1.1rem;
    border-radius: var(--radius-xl);
    background: var(--emerald-600);
    color: #fff;
    font-weight: 600;
    font-size: .95rem;
}
.header-cta:hover { background: var(--emerald-700); color: #fff; }
.menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem; height: 2.75rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    background: #fff;
    color: var(--gray-700);
    cursor: pointer;
}
.mobile-menu { display: none; border-top: 1px solid var(--gray-100); background: #fff; padding: .5rem 1rem 1.25rem; }
.mobile-menu.is-open { display: block; }
.mobile-menu a { display: block; padding: .8rem .5rem; color: var(--gray-700); border-bottom: 1px solid var(--gray-50); font-weight: 500; }
.mobile-menu .btn { margin-top: 1rem; width: 100%; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    border: 0;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    border-radius: var(--radius-xl);
    transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.btn-primary {
    background: var(--emerald-600);
    color: #fff;
    padding: 1rem 2rem;
    border-radius: var(--radius-2xl);
    font-size: 1.0625rem;
    box-shadow: 0 12px 25px -10px rgba(5, 150, 105, .7);
}
.btn-primary:hover { background: var(--emerald-700); color: #fff; transform: translateY(-2px); }
.btn-ghost {
    background: #fff;
    color: var(--gray-700);
    border: 1px solid var(--gray-200);
    padding: 1rem 1.75rem;
    border-radius: var(--radius-2xl);
    font-size: 1.0625rem;
}
.btn-ghost:hover { border-color: var(--emerald-200); color: var(--emerald-700); }
.btn-sm { padding: .7rem 1.25rem; font-size: .95rem; }

/* ---------- Hero ---------- */
.hero {
    padding: 8.75rem 0 5rem;
    background: linear-gradient(160deg, #ecfdf5 0%, #f0fdfa 45%, #ffffff 100%);
    overflow: hidden;
}
.hero-blob {
    position: absolute;
    width: 26rem; height: 26rem;
    border-radius: 50%;
    filter: blur(70px);
    opacity: .3;
    pointer-events: none;
}
.hero-blob--1 { top: -6rem; right: -5rem; background: var(--emerald-400); }
.hero-blob--2 { bottom: -9rem; left: -7rem; background: var(--teal-200); }
.hero-grid { position: relative; display: grid; gap: 3rem; align-items: center; }
.badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .4rem .9rem;
    border-radius: 9999px;
    background: var(--emerald-100);
    color: var(--emerald-700);
    font-size: .875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}
.hero h1 { font-size: 3rem; margin-bottom: .5em; }
.hero h1 br { display: block; }
.text-gradient {
    background: linear-gradient(100deg, var(--emerald-500), #0d9488 60%, var(--emerald-600));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero-sub { font-size: 1.25rem; color: var(--gray-600); max-width: 32rem; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero-visual { display: flex; justify-content: center; }
.hero-visual img, .hero-visual svg { width: 100%; max-width: 600px; height: auto; filter: drop-shadow(0 25px 40px rgba(17, 24, 39, .16)); }
.animate-glow { animation: glow 2.6s ease-in-out infinite; }
@keyframes glow {
    0%, 100% { box-shadow: 0 12px 25px -10px rgba(5, 150, 105, .55); }
    50% { box-shadow: 0 12px 40px -6px rgba(16, 185, 129, .85); }
}

/* ---------- Stats ---------- */
.stats { background: var(--gray-900); color: #fff; padding: 3rem 0; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; text-align: center; }
.stat svg { width: 2rem; height: 2rem; color: var(--emerald-400); margin: 0 auto .6rem; }
.stat-num { font-size: 1.875rem; font-weight: 700; color: #fff; line-height: 1.2; }
.stat-label { color: var(--gray-400); font-size: .9rem; }

/* ---------- Feature cards ---------- */
.feature-grid { display: grid; gap: 1.5rem; }
.card {
    background: #fff;
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-3xl);
    padding: 2rem;
    transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.card:hover { border-color: var(--emerald-200); box-shadow: var(--shadow-xl); }
.card-glow:hover { box-shadow: 0 25px 50px -20px rgba(5, 150, 105, .5); }
.icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4rem; height: 4rem;
    border-radius: var(--radius-2xl);
    margin-bottom: 1.25rem;
    color: #fff;
    transition: transform .25s ease;
}
.icon-box svg { width: 2rem; height: 2rem; }
.card:hover .icon-box { transform: scale(1.1); }
.grad-purple { background: linear-gradient(135deg, #a855f7, #ec4899); }
.grad-cyan { background: linear-gradient(135deg, #06b6d4, #3b82f6); }
.grad-amber { background: linear-gradient(135deg, #f59e0b, #f97316); }
.grad-emerald { background: linear-gradient(135deg, #10b981, #14b8a6); }
.card h3 { font-size: 1.5rem; margin-bottom: .5rem; }
.card p { color: var(--gray-600); font-size: 1.0625rem; margin: 0; }

/* ---------- Platforms ---------- */
.platform-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.platform {
    display: block;
    background: #fff;
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-3xl);
    padding: 2rem;
    text-align: center;
    color: inherit;
    transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.platform:hover { border-color: var(--emerald-200); box-shadow: var(--shadow-xl); transform: translateY(-3px); color: inherit; }
.platform svg { width: 3rem; height: 3rem; color: var(--gray-700); margin: 0 auto 1rem; transition: color .25s ease; }
.platform:hover svg { color: var(--emerald-600); }
.platform h3 { font-size: 1.15rem; margin-bottom: .25rem; }
.platform .req { color: var(--gray-500); font-size: .875rem; margin: 0; }
.platform .dl {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    margin-top: .9rem;
    font-size: .875rem;
    font-weight: 600;
    color: var(--emerald-600);
    opacity: 0;
    transition: opacity .25s ease;
}
.platform:hover .dl, .platform:focus-within .dl { opacity: 1; }
.platform .dl svg { width: 1rem; height: 1rem; margin: 0; color: currentColor; }

/* ---------- Articles ---------- */
.article-grid { display: grid; gap: 1.5rem; }
.article-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    color: inherit;
    transition: border-color .25s ease, box-shadow .25s ease;
}
.article-card:hover { color: inherit; border-color: var(--emerald-200); box-shadow: var(--shadow-xl); }
.article-cover { position: relative; height: 11rem; overflow: hidden; background: var(--gray-100); }
.article-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.article-card:hover .article-cover img { transform: scale(1.05); }
.tag {
    position: absolute;
    top: .75rem; left: .75rem;
    background: var(--emerald-500);
    color: #fff;
    font-size: .75rem;
    font-weight: 600;
    padding: .15rem .6rem;
    border-radius: var(--radius-lg);
}
.article-body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.article-body h3 { font-size: 1.125rem; margin-bottom: .5rem; transition: color .2s ease; }
.article-card:hover h3 { color: var(--emerald-600); }
.article-body .desc {
    color: var(--gray-500);
    font-size: .875rem;
    margin: 0 0 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.article-meta {
    margin-top: auto;
    padding-top: .8rem;
    border-top: 1px solid var(--gray-50);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: .75rem;
    color: var(--gray-400);
}
.article-meta span { display: inline-flex; align-items: center; gap: .3rem; }
.article-meta svg { width: .875rem; height: .875rem; }
.link-more { display: none; font-weight: 600; font-size: .95rem; align-items: center; gap: .35rem; }
.link-more svg { width: 1rem; height: 1rem; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: .85rem; }
.faq-item { border: 1px solid var(--gray-200); border-radius: var(--radius-2xl); background: #fff; overflow: hidden; }
.faq-q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    padding: 1.15rem 1.4rem;
    border: 0;
    background: none;
    font-family: inherit;
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--gray-900);
    text-align: left;
    cursor: pointer;
}
.faq-q svg { width: 1.15rem; height: 1.15rem; flex: 0 0 auto; color: var(--emerald-600); transition: transform .25s ease; }
.faq-q[aria-expanded="true"] svg { transform: rotate(45deg); }
.faq-a { padding: 0 1.4rem; max-height: 0; overflow: hidden; transition: max-height .3s ease, padding .3s ease; }
.faq-a p { color: var(--gray-600); margin: 0 0 1rem; }
.faq-item.is-open .faq-a { max-height: 40rem; padding-top: .25rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--gray-900); color: #fff; padding: 4rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.footer-brand { display: flex; align-items: center; gap: .6rem; font-weight: 700; color: #fff; margin-bottom: .75rem; }
.footer-brand img { width: 32px; height: 32px; border-radius: var(--radius-lg); }
.footer-desc { color: var(--gray-400); font-size: .9rem; max-width: 18rem; }
.site-footer h4 { color: #fff; font-size: .95rem; margin: 0 0 1rem; font-weight: 600; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.site-footer ul a { color: var(--gray-400); font-size: .9rem; }
.site-footer ul a:hover { color: #fff; }
.footer-bottom {
    margin-top: 2.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, .1);
    font-size: .8125rem;
    color: var(--gray-500);
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 1.5rem;
    justify-content: space-between;
}

/* ---------- 子页面 ---------- */
.page-hero {
    padding: 8.5rem 0 3rem;
    background: linear-gradient(160deg, #ecfdf5, #ffffff 70%);
    border-bottom: 1px solid var(--gray-100);
}
.page-hero h1 { font-size: 2.25rem; margin-bottom: .5rem; }
.page-hero p { color: var(--gray-600); font-size: 1.0625rem; margin: 0; max-width: 40rem; }
.breadcrumb { font-size: .8125rem; color: var(--gray-400); margin-bottom: 1rem; display: flex; gap: .45rem; flex-wrap: wrap; }
.breadcrumb a { color: var(--gray-500); }
.prose { max-width: 48rem; }
.prose h2 { font-size: 1.6rem; margin-top: 2.25rem; }
.prose h3 { font-size: 1.2rem; margin-top: 1.5rem; }
.prose li { margin-bottom: .4rem; }
.prose .note {
    background: var(--emerald-50);
    border-left: 4px solid var(--emerald-500);
    border-radius: var(--radius-lg);
    padding: 1rem 1.25rem;
    color: var(--gray-700);
    font-size: .95rem;
}
.download-panel {
    background: #fff;
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-3xl);
    padding: 2rem;
    box-shadow: var(--shadow-md);
}
.download-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin: 1.5rem 0; }
.article-layout { padding: 6rem 0; }

/* ---------- 滚动淡入（由 JS 添加，无脚本时不生效） ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.reveal--in { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (min-width: 768px) {
    h1 { font-size: 3.5rem; }
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .article-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
    .link-more { display: inline-flex; }
    .section-head--left { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; }
    .stat-num { font-size: 2.25rem; }
}

@media (min-width: 1024px) {
    .nav { display: flex; }
    .header-cta { display: inline-flex; }
    .menu-toggle { display: none; }
    .mobile-menu { display: none !important; }
    h1 { font-size: 4.5rem; }
    .hero h1 { font-size: 4.5rem; }
    .hero-grid { grid-template-columns: 1fr 1fr; }
    .platform-grid { grid-template-columns: repeat(4, 1fr); }
    .article-grid { grid-template-columns: repeat(3, 1fr); }
    .page-hero h1 { font-size: 2.75rem; }
    .article-layout { padding: 5rem 0 6rem; }
}

@media (max-width: 767px) {
    .section { padding: 4rem 0; }
    .hero { padding: 7rem 0 3.5rem; }
    .hero h1 { font-size: 2.5rem; }
    .hero-sub { font-size: 1.0625rem; }
    h2 { font-size: 1.75rem; }
    .stats-grid { grid-template-columns: 1fr; gap: 2rem; }
    .btn-primary, .btn-ghost { width: 100%; }
    .hero-actions { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .animate-glow { animation: none; }
    *, *::before, *::after { transition: none !important; }
}
