/**
 * AI SSH 产品官网样式
 * 清新绿色主题，含 Hero、亮点、场景、Bento、表格、提供商、截图、视频区、FAQ 等区块
 */

:root {
    --green-50: #ecfdf5;
    --green-100: #d1fae5;
    --green-200: #a7f3d0;
    --green-400: #34d399;
    --green-500: #10b981;
    --green-600: #059669;
    --green-700: #047857;
    --green-800: #065f46;
    --slate-900: #0f172a;
    --slate-700: #334155;
    --slate-500: #64748b;
    --slate-300: #cbd5e1;
    --white: #ffffff;
    --shadow: 0 4px 24px rgba(5, 150, 105, 0.12);
    --shadow-lg: 0 12px 40px rgba(5, 150, 105, 0.18);
    --radius: 16px;
    --radius-sm: 10px;
    --nav-h: 64px;
    --font: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-h);
}

body {
    font-family: var(--font);
    color: var(--slate-700);
    background: var(--green-50);
    line-height: 1.6;
    overflow-x: hidden;
}

a { color: var(--green-600); text-decoration: none; }
a:hover { color: var(--green-700); }

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

.container {
    width: min(1120px, 92vw);
    margin: 0 auto;
}

/* ===== 导航 ===== */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--nav-h);
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--green-100);
    z-index: 100;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--green-700);
}

.nav-logo svg { flex-shrink: 0; }

.nav-links {
    display: flex;
    gap: 28px;
    list-style: none;
}

.nav-links a {
    color: var(--slate-700);
    font-size: 0.92rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--green-600); }

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--green-700);
    margin: 5px 0;
    border-radius: 2px;
    transition: 0.3s;
}

/* ===== 按钮 ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--green-500), var(--green-600));
    color: var(--white);
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.35);
}

.btn-primary:hover { box-shadow: 0 6px 24px rgba(16, 185, 129, 0.45); color: var(--white); }

.btn-outline {
    background: var(--white);
    color: var(--green-700);
    border: 2px solid var(--green-400);
}

.btn-outline:hover { background: var(--green-50); color: var(--green-700); }

.btn-dark {
    background: var(--slate-900);
    color: var(--green-400);
}

.btn-dark:hover { color: var(--green-300, #6ee7b7); }

/* ===== Hero ===== */
.hero {
    position: relative;
    padding: calc(var(--nav-h) + 60px) 0 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(16, 185, 129, 0.15), transparent),
        linear-gradient(180deg, var(--green-50) 0%, #f0fdf4 50%, var(--green-50) 100%);
    z-index: 0;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(16, 185, 129, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(16, 185, 129, 0.06) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black, transparent);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    background: var(--white);
    border: 1px solid var(--green-200);
    border-radius: 50px;
    font-size: 0.82rem;
    color: var(--green-700);
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.hero-badge::before {
    content: "";
    width: 8px; height: 8px;
    background: var(--green-500);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    font-weight: 800;
    color: var(--green-800);
    line-height: 1.2;
    margin-bottom: 16px;
}

.hero h1 span {
    background: linear-gradient(135deg, var(--green-500), var(--green-700));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--slate-500);
    max-width: 520px;
    margin: 0 auto 28px;
}

.hero-terminal {
    display: inline-block;
    background: var(--slate-900);
    border-radius: var(--radius-sm);
    padding: 14px 22px;
    margin-bottom: 32px;
    font-family: "Cascadia Code", "Fira Code", monospace;
    font-size: 0.9rem;
    color: var(--green-400);
    box-shadow: var(--shadow-lg);
}

.hero-terminal .prompt { color: var(--green-500); }
.hero-terminal .cursor {
    display: inline-block;
    width: 8px; height: 1.1em;
    background: var(--green-400);
    vertical-align: text-bottom;
    animation: blink 1s step-end infinite;
}

@keyframes blink { 50% { opacity: 0; } }

.hero-btns {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== 通用区块 ===== */
.section {
    padding: 72px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    color: var(--green-800);
    margin-bottom: 10px;
}

.section-header p {
    color: var(--slate-500);
    font-size: 1rem;
}

/* ===== 平台卡片 ===== */
.platform-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.platform-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px;
    border: 1px solid var(--green-100);
    box-shadow: var(--shadow);
    transition: transform 0.25s, box-shadow 0.25s;
    position: relative;
    overflow: hidden;
}

.platform-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--green-400), var(--green-600));
}

.platform-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.platform-icon {
    width: 52px; height: 52px;
    background: var(--green-50);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 1.6rem;
}

.platform-card h3 {
    font-size: 1.2rem;
    color: var(--green-800);
    margin-bottom: 8px;
}

.platform-card p {
    color: var(--slate-500);
    font-size: 0.92rem;
}

/* ===== 更多能力高亮卡片 ===== */
.section-alt {
    background: linear-gradient(180deg, var(--green-50) 0%, var(--white) 100%);
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.highlight-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 28px;
    border: 1px solid var(--green-100);
    box-shadow: var(--shadow);
    transition: transform 0.25s, box-shadow 0.25s;
    position: relative;
    overflow: hidden;
}

.highlight-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--green-500), var(--green-700));
}

.highlight-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.highlight-icon {
    width: 48px; height: 48px;
    background: var(--green-50);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    font-size: 1.5rem;
}

.highlight-card h3 {
    font-size: 1.1rem;
    color: var(--green-800);
    margin-bottom: 8px;
}

.highlight-card p {
    color: var(--slate-500);
    font-size: 0.9rem;
    line-height: 1.55;
}

.highlight-card a {
    color: var(--green-600);
    font-weight: 500;
}

.highlight-card a:hover {
    color: var(--green-700);
    text-decoration: underline;
}

/* ===== 适用场景 ===== */
.scenarios-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.scenario-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    border: 1px solid var(--green-100);
    box-shadow: var(--shadow);
    border-left: 4px solid var(--green-500);
}

.scenario-card h3 {
    font-size: 1.05rem;
    color: var(--green-800);
    margin-bottom: 8px;
}

.scenario-card p {
    color: var(--slate-500);
    font-size: 0.9rem;
    line-height: 1.55;
}

.version-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--green-600);
    background: var(--green-50);
    padding: 2px 8px;
    border-radius: 50px;
    vertical-align: middle;
    margin-left: 6px;
}

/* ===== 表格（Agent 能力 / 双端对比）===== */
.table-wrap {
    overflow-x: auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.feature-table,
.compare-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    font-size: 0.92rem;
}

.feature-table th,
.compare-table th {
    background: var(--green-600);
    color: var(--white);
    text-align: left;
    padding: 14px 20px;
    font-weight: 600;
}

.feature-table td,
.compare-table td {
    padding: 12px 20px;
    border-bottom: 1px solid var(--green-100);
    color: var(--slate-700);
}

.feature-table tbody tr:last-child td,
.compare-table tbody tr:last-child td {
    border-bottom: none;
}

.feature-table tbody tr:hover,
.compare-table tbody tr:hover {
    background: var(--green-50);
}

.compare-table td.check {
    color: var(--green-600);
    font-weight: 700;
    text-align: center;
    width: 100px;
}

.compare-table td.dash {
    color: var(--slate-300);
    text-align: center;
    width: 100px;
}

.compare-table th:not(:first-child) {
    text-align: center;
    width: 100px;
}

/* ===== AI 提供商网格 ===== */
.provider-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
}

.provider-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: var(--white);
    border: 1px solid var(--green-100);
    border-radius: var(--radius-sm);
    padding: 16px 18px;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
    color: inherit;
}

.provider-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: inherit;
}

.provider-card strong {
    color: var(--green-800);
    font-size: 0.95rem;
}

.provider-card span {
    color: var(--slate-500);
    font-size: 0.82rem;
}

.provider-note {
    margin-top: 20px;
    text-align: center;
    color: var(--slate-500);
    font-size: 0.88rem;
}

.faq-heading {
    font-size: 1.1rem;
    color: var(--green-800);
    margin-bottom: 16px;
}

.footer-desc {
    font-size: 0.82rem;
    color: var(--slate-500);
    max-width: 560px;
    margin: 8px auto 0;
    line-height: 1.5;
}

/* ===== Bento 功能网格 ===== */
.bento {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto;
    gap: 18px;
}

.bento-item {
    background: var(--white);
    border-radius: var(--radius);
    padding: 28px;
    border: 1px solid var(--green-100);
    box-shadow: var(--shadow);
    transition: transform 0.2s;
}

.bento-item:hover { transform: translateY(-3px); }

.bento-item.span2 { grid-column: span 2; }

.bento-icon {
    width: 44px; height: 44px;
    background: linear-gradient(135deg, var(--green-100), var(--green-50));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 14px;
}

.bento-item h3 {
    font-size: 1.05rem;
    color: var(--green-800);
    margin-bottom: 8px;
}

.bento-item p {
    font-size: 0.88rem;
    color: var(--slate-500);
    line-height: 1.55;
}

.bento-item.ai {
    background: linear-gradient(135deg, var(--slate-900) 0%, #1e293b 100%);
    border-color: var(--green-700);
}

.bento-item.ai h3 { color: var(--green-400); }
.bento-item.ai p { color: var(--slate-300); }
.bento-item.ai .bento-icon {
    background: rgba(16, 185, 129, 0.2);
}

/* ===== 视频区 ===== */
.video-section {
    background: linear-gradient(180deg, var(--white) 0%, var(--green-50) 100%);
}

.video-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.video-tab {
    padding: 10px 28px;
    border-radius: 50px;
    border: 2px solid var(--green-200);
    background: var(--white);
    color: var(--slate-700);
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font);
}

.video-tab:hover {
    border-color: var(--green-400);
    color: var(--green-700);
}

.video-tab.active {
    background: var(--green-600);
    border-color: var(--green-600);
    color: var(--white);
}

.video-panel { display: none; }
.video-panel.active { display: block; }

.video-wrap {
    max-width: min(480px, 92vw);
    margin: 0 auto;
    position: relative;
}

.video-badge {
    position: absolute;
    top: -12px; left: 50%;
    transform: translateX(-50%);
    background: var(--green-600);
    color: var(--white);
    padding: 4px 16px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
    z-index: 2;
    white-space: nowrap;
}

.video-player {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 3px solid var(--green-200);
    background: var(--slate-900);
    aspect-ratio: 9/19;
}

.video-player video,
.video-player .video-poster img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: var(--slate-900);
}

.video-poster {
    cursor: pointer;
    position: relative;
    width: 100%;
    height: 100%;
}

.video-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    transition: background 0.2s;
}

.video-poster:hover::after { background: rgba(0, 0, 0, 0.2); }

.play-btn {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 64px; height: 64px;
    background: var(--green-500);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.5);
    transition: transform 0.2s;
}

.video-poster:hover .play-btn { transform: translate(-50%, -50%) scale(1.1); }

.play-btn svg { margin-left: 4px; }

.video-desc {
    text-align: center;
    margin-top: 20px;
    color: var(--slate-500);
    font-size: 0.9rem;
}

/* ===== 截图画廊 ===== */
.gallery-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 32px;
}

.gallery-tab {
    padding: 10px 28px;
    border-radius: 50px;
    border: 2px solid var(--green-200);
    background: var(--white);
    color: var(--slate-700);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.gallery-tab.active,
.gallery-tab:hover {
    background: var(--green-600);
    border-color: var(--green-600);
    color: var(--white);
}

.gallery-panel { display: none; }
.gallery-panel.active { display: block; }

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

/* Android 截图：大图直显，紧凑三列 */
.gallery-grid-android {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.gallery-figure {
    margin: 0;
}

.gallery-figure img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    border: 1px solid var(--green-100);
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.gallery-figure img:hover {
    transform: scale(1.01);
    box-shadow: var(--shadow-lg);
}

.gallery-figure figcaption {
    text-align: center;
    margin-top: 6px;
    font-size: 0.82rem;
    color: var(--slate-500);
}

/* 设备边框 */
.device-frame {
    position: relative;
    margin: 0 auto;
}

.device-frame.desktop {
    background: #e2e8f0;
    border-radius: 12px;
    padding: 8px 8px 24px;
    box-shadow: var(--shadow-lg);
}

.device-frame.desktop::before {
    content: "";
    display: block;
    height: 6px;
    background: #cbd5e1;
    border-radius: 3px;
    margin: 0 auto 8px;
    width: 40px;
}

.device-frame.desktop::after {
    content: "";
    position: absolute;
    bottom: 6px; left: 50%;
    transform: translateX(-50%);
    width: 60px; height: 4px;
    background: #cbd5e1;
    border-radius: 2px;
}

.device-frame.phone {
    background: #1e293b;
    border-radius: 28px;
    padding: 12px 8px;
    max-width: 260px;
    box-shadow: var(--shadow-lg);
}

.device-frame.phone::before {
    content: "";
    display: block;
    width: 60px; height: 5px;
    background: #334155;
    border-radius: 3px;
    margin: 0 auto 10px;
}

.device-frame img {
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.2s;
}

.device-frame.phone img { border-radius: 16px; }

.device-frame img:hover { transform: scale(1.02); }

.device-label {
    text-align: center;
    margin-top: 10px;
    font-size: 0.82rem;
    color: var(--slate-500);
}

/* ===== 快速上手 ===== */
.steps {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    counter-reset: step;
}

.step-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px 20px;
    text-align: center;
    border: 1px solid var(--green-100);
    position: relative;
}

.step-card::before {
    counter-increment: step;
    content: counter(step);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    background: linear-gradient(135deg, var(--green-500), var(--green-600));
    color: var(--white);
    border-radius: 50%;
    font-weight: 700;
    margin: 0 auto 14px;
    font-size: 0.95rem;
}

.step-card h4 {
    font-size: 0.95rem;
    color: var(--green-800);
    margin-bottom: 6px;
}

.step-card p {
    font-size: 0.82rem;
    color: var(--slate-500);
}

/* ===== 下载区 ===== */
.download-section {
    background: linear-gradient(135deg, var(--green-600) 0%, var(--green-700) 100%);
    color: var(--white);
    border-radius: var(--radius);
    padding: 48px 40px;
    text-align: center;
}

.download-section h2 {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.download-section > p {
    opacity: 0.85;
    margin-bottom: 32px;
}

.download-cards {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.download-card {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--radius);
    padding: 28px 36px;
    min-width: 240px;
    transition: background 0.2s;
}

.download-card:hover { background: rgba(255, 255, 255, 0.2); }

.download-card .icon { font-size: 2rem; margin-bottom: 10px; }

.download-card h3 { font-size: 1.1rem; margin-bottom: 4px; }

.download-card .size {
    font-size: 0.82rem;
    opacity: 0.75;
    margin-bottom: 16px;
}

.download-card .btn {
    width: 100%;
    justify-content: center;
    background: var(--white);
    color: var(--green-700);
}

.download-card .btn:hover {
    background: var(--green-50);
    color: var(--green-800);
}

.download-backup {
    margin-top: 24px;
    font-size: 0.92rem;
    opacity: 0.95;
}

.download-backup a {
    color: #fff;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.download-backup a:hover {
    opacity: 0.85;
    color: #fff;
}

.download-qq {
    margin-top: 16px;
    font-size: 0.9rem;
    opacity: 0.9;
}

.download-qq .qq-num {
    display: inline-block;
    margin-left: 4px;
    padding: 2px 12px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.5px;
}

/* ===== 安全 & FAQ ===== */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.info-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 28px;
    border: 1px solid var(--green-100);
    box-shadow: var(--shadow);
}

.info-card h3 {
    font-size: 1.1rem;
    color: var(--green-800);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-card ul {
    list-style: none;
}

.info-card li {
    padding: 8px 0;
    font-size: 0.9rem;
    color: var(--slate-500);
    border-bottom: 1px solid var(--green-50);
    padding-left: 20px;
    position: relative;
}

.info-card li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--green-500);
    font-weight: 700;
}

.info-card li:last-child { border-bottom: none; }

/* FAQ 手风琴 */
.faq-list { display: flex; flex-direction: column; gap: 10px; }

.faq-item {
    background: var(--white);
    border-radius: var(--radius-sm);
    border: 1px solid var(--green-100);
    overflow: hidden;
}

.faq-q {
    width: 100%;
    padding: 16px 20px;
    background: none;
    border: none;
    text-align: left;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--green-800);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font);
}

.faq-q::after {
    content: "+";
    font-size: 1.2rem;
    color: var(--green-500);
    transition: transform 0.2s;
}

.faq-item.open .faq-q::after { transform: rotate(45deg); }

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-a-inner {
    padding: 0 20px 16px;
    font-size: 0.88rem;
    color: var(--slate-500);
}

.faq-item.open .faq-a { max-height: 200px; }

/* ===== 灯箱 ===== */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 200;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lightbox.open { display: flex; }

.lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 20px; right: 24px;
    background: none;
    border: none;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

/* ===== 首页广告位：布局由 CSS 控制，高度由 embed postMessage 同步 ===== */
.site-ads-wrap { margin: 0 auto 24px; }
.site-ads { display: flex; flex-direction: column; gap: 6px; }
.site-ads .ad-slot { width: 100%; overflow: hidden; line-height: 0; }
.site-ads .ad-slot--text { line-height: normal; overflow: visible; }
.site-ads .ad-slot--text iframe { height: auto; min-height: 80px; }
.site-ads .ad-slot--large,
.site-ads .ad-slot--small { aspect-ratio: 5 / 1; }
.site-ads .ad-slot iframe { display: block; width: 100%; height: 100%; border: none; overflow: hidden; }

/* ===== 页脚 ===== */
.footer {
    padding: 32px 0;
    text-align: center;
    color: var(--slate-500);
    font-size: 0.85rem;
    border-top: 1px solid var(--green-100);
    margin-top: 40px;
}

.footer p + p { margin-top: 8px; }

.footer-credit a {
    color: var(--green-600);
    font-weight: 600;
}

.footer-credit a:hover { color: var(--green-700); }

/* ===== 响应式 ===== */
@media (max-width: 900px) {
    .bento { grid-template-columns: repeat(2, 1fr); }
    .bento-item.span2 { grid-column: span 1; }
    .highlights-grid { grid-template-columns: repeat(2, 1fr); }
    .scenarios-grid { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: repeat(2, 1fr); }
    .two-col { grid-template-columns: 1fr; }
    .gallery-grid-android { grid-template-columns: repeat(2, 1fr); gap: 8px; }
}

@media (max-width: 640px) {
    .nav-links {
        display: none;
        position: absolute;
        top: var(--nav-h);
        left: 0; right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 16px 24px;
        gap: 12px;
        border-bottom: 1px solid var(--green-100);
        box-shadow: var(--shadow);
    }

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

    .nav-toggle { display: block; }

    .platform-grid { grid-template-columns: 1fr; }
    .bento { grid-template-columns: 1fr; }
    .highlights-grid { grid-template-columns: 1fr; }
    .scenarios-grid { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr; }
    .provider-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: 1fr; }
    .gallery-grid-android { grid-template-columns: 1fr; gap: 8px; }
    .download-section { padding: 32px 20px; }
}
