/* ====== Reset & Base ====== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --primary-light: #dbeafe;
    --green: #16a34a;
    --green-light: #dcfce7;
    --yellow: #ca8a04;
    --yellow-light: #fef9c3;
    --red: #dc2626;
    --red-light: #fee2e2;
    --purple: #9333ea;
    --purple-light: #f3e8ff;
    --cyan: #0891b2;
    --cyan-light: #cffafe;
    --gray: #6b7280;
    --gray-light: #f9fafb;
    --gray-border: #e5e7eb;
    --dark: #1f2937;
    --bg: #ffffff;
    --radius: 12px;
    --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.04);
    --max-width: 1080px;
}

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
    color: var(--dark);
    background: var(--bg);
    line-height: 1.6;
    font-size: 16px;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

a { text-decoration: none; color: inherit; }

/* ====== Navbar ====== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--gray-border);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 28px;
    align-items: center;
}

.nav-links a {
    font-size: 15px;
    color: var(--gray);
    transition: color 0.2s;
}

.nav-links a:hover { color: var(--primary); }

.nav-download {
    background: var(--primary);
    color: #fff !important;
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: 600;
}

.nav-download:hover {
    background: var(--primary-dark);
}

/* ====== 语言切换 ====== */
.lang-switch {
    display: inline-flex;
    gap: 4px;
    margin-left: 12px;
    padding: 3px;
    background: #f1f5f9;
    border-radius: 8px;
}

.lang-switch a {
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary, #64748b);
    text-decoration: none;
    transition: all 0.2s;
}

.lang-switch a:hover {
    color: var(--primary);
}

.lang-switch a.active {
    background: var(--primary);
    color: #fff;
}

@media (max-width: 768px) {
    .lang-switch { display: inline-flex; }
    .lang-switch a { padding: 4px 8px; }
}

/* ====== Hero ====== */
.hero {
    text-align: center;
    padding: 80px 24px 60px;
    background: linear-gradient(135deg, #eff6ff 0%, #ffffff 50%, #f0fdf4 100%);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    background: #fff;
    border: 1px solid var(--gray-border);
    border-radius: 999px;
    font-size: 14px;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
}

.hero h1 {
    font-size: 44px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 20px;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.hero-subtitle {
    max-width: 640px;
    margin: 0 auto 36px;
    font-size: 18px;
    color: var(--gray);
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 56px;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.hero-stat {
    text-align: center;
}

.hero-stat-num {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.hero-stat-label {
    font-size: 14px;
    color: var(--gray);
    margin-top: 6px;
}

.hero-divider {
    width: 1px;
    height: 36px;
    background: var(--gray-border);
}

/* ====== Buttons ====== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}
.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}
.btn-outline:hover {
    background: var(--primary-light);
}

.btn-lg {
    padding: 14px 36px;
    font-size: 16px;
}

.btn-block {
    width: 100%;
}

/* ====== Sections ====== */
.section {
    padding: 72px 0;
}

.section-gray {
    background: var(--gray-light);
}

.section-gradient {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #2563eb 100%);
}

.section-title {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
}

.section-desc {
    text-align: center;
    color: var(--gray);
    font-size: 16px;
    margin-bottom: 40px;
}

/* ====== Features Grid ====== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.feature-card {
    background: #fff;
    border: 1px solid var(--gray-border);
    border-radius: var(--radius);
    padding: 32px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-blue { background: var(--primary-light); color: var(--primary); }
.feature-green { background: var(--green-light); color: var(--green); }
.feature-yellow { background: var(--yellow-light); color: var(--yellow); }
.feature-purple { background: var(--purple-light); color: var(--purple); }
.feature-red { background: var(--red-light); color: var(--red); }
.feature-cyan { background: var(--cyan-light); color: var(--cyan); }

.feature-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--gray);
    font-size: 14px;
    line-height: 1.6;
}

/* ====== Steps ====== */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
}

.step {
    text-align: center;
    padding: 24px;
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid var(--gray-border);
    box-shadow: var(--shadow);
}

.step-number {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step h3 {
    font-size: 17px;
    margin-bottom: 10px;
}

.step p {
    color: var(--gray);
    font-size: 14px;
    line-height: 1.6;
}

/* ====== Security ====== */
.security-content {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 24px;
}

.security-item {
    background: #fff;
    border: 1px solid var(--gray-border);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
}

.security-item h3 {
    font-size: 17px;
    margin-bottom: 10px;
    color: var(--primary);
}

.security-item p {
    color: var(--gray);
    font-size: 15px;
    line-height: 1.7;
}

/* ====== Targets Grid ====== */
.targets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
}

.target-card {
    background: #fff;
    border: 1px solid var(--gray-border);
    border-radius: var(--radius);
    padding: 28px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.target-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.target-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.target-aliyun { background: #e6f7ff; color: #ff6a00; }
.target-baidu { background: #e6f4ff; color: #2932e1; }
.target-local { background: #f0f9ff; color: #0284c7; }
.target-lan { background: #f0fdf4; color: #16a34a; }

.target-card h3 {
    font-size: 17px;
    margin-bottom: 8px;
}

.target-card p {
    color: var(--gray);
    font-size: 14px;
    line-height: 1.6;
}

/* ====== FAQ ====== */
.faq-list {
    max-width: 760px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid var(--gray-border);
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow 0.2s;
}

.faq-item:hover {
    box-shadow: var(--shadow);
}

.faq-item summary {
    padding: 18px 24px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item summary::after {
    content: "+";
    font-size: 20px;
    color: var(--gray);
    transition: transform 0.2s;
    flex-shrink: 0;
    margin-left: 16px;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item p {
    padding: 0 24px 18px;
    color: var(--gray);
    font-size: 15px;
    line-height: 1.7;
}

/* ====== Download Section ====== */
.download-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 48px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    backdrop-filter: blur(10px);
}

.download-left h2 {
    color: #fff;
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 12px;
}

.download-left p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 16px;
    margin-bottom: 24px;
}

.download-list {
    list-style: none;
}

.download-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    margin-bottom: 12px;
}

.download-list li svg {
    color: #4ade80;
    flex-shrink: 0;
}

.download-right {
    text-align: center;
}

#downloadBtn {
    background: #fff;
    color: var(--primary);
    font-size: 18px;
    padding: 18px 32px;
    width: 100%;
    margin-bottom: 12px;
}

#downloadBtn:hover {
    background: #f0f9ff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

#downloadBtnPortable {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.7);
    font-size: 16px;
    padding: 14px 32px;
    width: 100%;
    margin-bottom: 16px;
}

#downloadBtnPortable:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    transform: translateY(-2px);
}

.download-version {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    margin-bottom: 4px;
}

.download-date {
    color: rgba(255, 255, 255, 0.55);
    font-size: 12px;
    margin-bottom: 8px;
}

.download-hint {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
}

/* ====== 平台切换 tabs ====== */
.platform-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 14px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 4px;
}
.platform-tab {
    flex: 1;
    padding: 8px 12px;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s;
}
.platform-tab:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}
.platform-tab.active {
    background: #fff;
    color: #1a3a6a;
}
.platform-content {
    display: none;
}
.platform-content.active {
    display: block;
}

/* 移动端 tab 样式 */
@media (max-width: 480px) {
    .platform-tab { font-size: 12px; padding: 6px 8px; }
    .platform-tab svg { width: 14px; height: 14px; }
}

/* ====== 安装步骤说明 ====== */
.install-steps {
    margin-top: 14px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    text-align: left;
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    line-height: 1.7;
}
.install-steps .step-title {
    font-weight: 600;
    color: #fff;
    margin-top: 12px;
    margin-bottom: 6px;
    font-size: 13px;
}
.install-steps .step-title:first-child {
    margin-top: 0;
}
.install-steps .step {
    margin: 4px 0;
    color: rgba(255, 255, 255, 0.85);
}
.install-steps .step strong {
    color: rgba(255, 255, 255, 1);
}
.install-steps .step code {
    background: rgba(0, 0, 0, 0.35);
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 12px;
}
.code-block {
    background: rgba(0, 0, 0, 0.45);
    border-radius: 8px;
    padding: 10px 14px;
    margin: 6px 0 10px 0;
    font-family: "SF Mono", "Fira Code", "Menlo", "Consolas", monospace;
    font-size: 12px;
    line-height: 1.6;
    color: #e0e0e0;
    white-space: pre-wrap;
    word-break: break-all;
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow-x: auto;
}

/* 安装步骤 - 移动端 */
@media (max-width: 480px) {
    .install-steps { padding: 10px 12px; font-size: 12px; }
    .code-block { font-size: 11px; padding: 8px 10px; }
}

/* 版本更新记录（折叠） */
.download-changelog {
    margin-top: 18px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    text-align: left;
}

.download-changelog summary {
    cursor: pointer;
    color: #bfdbfe;
    font-weight: 600;
    user-select: none;
    outline: none;
}

.download-changelog summary:hover {
    color: #fff;
}

.download-changelog ul {
    margin: 10px 0 0;
    padding-left: 18px;
    list-style: disc;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.9;
}

/* ====== Footer ====== */
.footer {
    background: var(--dark);
    color: #9ca3af;
    text-align: center;
    padding: 40px 24px;
    font-size: 14px;
}

.footer-sub {
    margin-top: 6px;
    font-size: 13px;
    color: #6b7280;
}

.footer-contact {
    margin-top: 12px;
    font-size: 14px;
    color: #d1d5db;
}

.footer-contact a {
    color: #93c5fd;
    text-decoration: none;
}

.footer-contact a:hover {
    text-decoration: underline;
}

/* 页脚联系方式：邮箱 + 微信二维码并排 */
.footer-contact-row {
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    flex-wrap: wrap;
}

.footer-contact-row .footer-contact {
    margin-top: 0;
}

.footer-wechat {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #d1d5db;
    text-decoration: none;
    font-size: 13px;
}

.footer-wechat img {
    width: 96px;
    height: 96px;
    object-fit: cover;
    border-radius: 8px;
    background: #fff;
    padding: 4px;
    box-sizing: border-box;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.footer-wechat:hover img {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35);
}

.footer-wechat:hover span {
    color: #93c5fd;
}

.footer-copy {
    margin-top: 16px;
    font-size: 12px;
    color: #4b5563;
}

/* ====== Responsive ====== */
@media (max-width: 768px) {
    .nav-container { padding: 0 16px; height: 56px; }
    .nav-logo { font-size: 16px; }
    .nav-links { gap: 12px; }
    .nav-links > a:not(.nav-download) { display: none; }
    .nav-download { padding: 6px 14px; font-size: 14px; }

    .hero { padding: 56px 16px 40px; }
    .hero-badge { font-size: 13px; padding: 5px 12px; margin-bottom: 16px; }
    .hero h1 { font-size: 30px; letter-spacing: -0.3px; margin-bottom: 14px; }
    .hero-subtitle { font-size: 16px; margin-bottom: 28px; }
    .hero-actions { gap: 12px; margin-bottom: 40px; }
    .hero-actions .btn-lg { padding: 12px 24px; font-size: 15px; }
    .hero-stats { gap: 16px; }
    .hero-stat-num { font-size: 24px; }
    .hero-divider { display: none; }

    .section { padding: 52px 0; }
    .section-title { font-size: 26px; margin-bottom: 6px; }
    .section-desc { font-size: 15px; margin-bottom: 28px; }
    .container { padding: 0 16px; }

    .features-grid { grid-template-columns: 1fr; gap: 16px; }
    .feature-card { padding: 24px 20px; }
    .feature-icon { width: 56px; height: 56px; margin-bottom: 16px; border-radius: 14px; }

    .steps { grid-template-columns: 1fr 1fr; gap: 16px; }
    .step { padding: 20px 16px; }

    .security-content { grid-template-columns: 1fr; }
    .security-item { padding: 22px 18px; }

    .targets-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
    .target-card { padding: 22px 16px; }
    .target-icon { width: 60px; height: 60px; margin-bottom: 12px; }

    .faq-item summary { padding: 14px 16px; font-size: 15px; }
    .faq-item p { padding: 0 16px 14px; font-size: 14px; }

    .download-card {
        grid-template-columns: 1fr;
        padding: 28px 20px;
        gap: 24px;
    }
    .download-left h2 { font-size: 24px; }

    .footer-contact-row { flex-direction: column; gap: 14px; }
    .footer-wechat { flex-direction: column; gap: 6px; text-align: center; }
    .footer-wechat img { width: 80px; height: 80px; }
}

/* 超小屏（≤480px）：iPhone SE 等 */
@media (max-width: 480px) {
    .hero h1 { font-size: 26px; }
    .hero-subtitle { font-size: 15px; }
    .section-title { font-size: 22px; }
    .steps, .targets-grid { grid-template-columns: 1fr; }
    .btn-lg { width: 100%; }
}
