:root {
    /* Stripe's exact color palette */
    --color-primary: #635bff;
    --color-primary-hover: #5449ed;
    --color-text-dark: #0a2540;
    --color-text-body: #425466;
    --color-text-light: #687385;
    --color-bg-white: #ffffff;
    --color-bg-gray: #f6f9fc;
    --color-border: #e6ebf1;

    --font-family: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
    --transition-speed: 0.3s;
}

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

html {
    overflow-x: clip;
}

body {
    font-family: var(--font-family);
    background-color: var(--color-bg-white);
    color: var(--color-text-body);
    line-height: 1.6;
    position: relative;
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 20px;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    position: relative;
    z-index: 100;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 40px;
}

.brand {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--color-text-dark);
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.brand-logo {
    height: 30px;
    width: 30px;
    border-radius: 7px;
    display: block;
}

.brand-cn {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--color-primary);
    background: rgba(99, 91, 255, 0.1);
    padding: 2px 7px;
    border-radius: 6px;
    letter-spacing: 0;
}

.nav-links {
    display: flex;
    gap: 24px;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text-dark);
    transition: color var(--transition-speed);
}

.nav-links a:hover {
    color: var(--color-text-light);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 6px;
    padding: 8px 16px;
    cursor: pointer;
    transition: all var(--transition-speed);
}

.btn-outline {
    background: transparent;
    color: var(--color-text-dark);
    border: 1px solid var(--color-border);
}

.btn-outline:hover {
    border-color: #d1d9e2;
    color: var(--color-text-dark);
}

.btn-primary {
    background: var(--color-primary);
    color: #ffffff;
    border: 1px solid var(--color-primary);
}

.btn-primary:hover {
    background: var(--color-primary-hover);
    border-color: var(--color-primary-hover);
}

.btn-icon {
    margin-right: 8px;
}

/* Stripe's signature diagonal gradient "slash" that sits behind the nav + hero */
.hero-gradient {
    position: absolute;
    top: -260px;
    left: -5%;
    right: -5%;
    height: 880px;
    transform: skewY(-8deg);
    transform-origin: top left;
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(
        100deg,
        #f6f9fc 0%,
        #d4e3ff 16%,
        #a4b9ff 32%,
        #8a7cff 48%,
        #7a5bff 60%,
        #d65bd6 78%,
        #ff7eb3 90%,
        #ffd16c 100%
    );
    background-size: 200% 200%;
    animation: gradientMove 16s ease infinite;
}

/* White fade over the gradient so the text area stays light & readable
   regardless of where the animated colors flow */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 880px;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0.96) 0%,
        rgba(255, 255, 255, 0.92) 36%,
        rgba(255, 255, 255, 0.6) 56%,
        rgba(255, 255, 255, 0) 80%
    );
}

/* Soft glow accents layered on top of the gradient for depth, like Stripe's mesh */
.hero-gradient::before {
    content: '';
    position: absolute;
    top: 30%;
    right: 8%;
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(0, 209, 255, 0.55) 0%, rgba(0, 209, 255, 0) 70%);
    filter: blur(30px);
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-section {
    position: relative;
    padding-top: 60px;
    padding-bottom: 120px;
    display: flex;
    align-items: center;
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px; /* Left aligned, constrained width */
}

.hero-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-text-dark);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 12px;
}

.hero-label span {
    color: var(--color-text-light);
    font-weight: 500;
    font-family: monospace;
}

.hero-title {
    font-size: 4rem; /* Massive font size */
    font-weight: 800;
    color: var(--color-text-dark);
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: 24px;
}

/* The signature purple text switch */
.hero-title .highlight {
    color: var(--color-primary);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-body);
    line-height: 1.5;
    max-width: 600px;
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    align-items: center;
}

.btn-large {
    padding: 12px 24px;
    font-size: 1.05rem;
    border-radius: 8px;
}

.btn-large i.arrow {
    font-size: 0.8em;
    margin-left: 6px;
    transition: transform 0.2s;
}

.btn-primary:hover i.arrow {
    transform: translateX(4px);
}

.logo-cloud {
    position: relative;
    z-index: 10;
    margin-top: 60px;
    padding-top: 40px;
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.logo-cloud .stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--color-text-dark);
}

.logo-cloud-platforms {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo-cloud-platforms i,
.logo-cloud > i {
    font-size: 1.5rem;
    color: var(--color-text-light);
}

.section-padding {
    padding: 100px 0;
    background-color: var(--color-bg-gray);
    position: relative;
    z-index: 10;
}

.section-header {
    max-width: 600px;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.2rem;
    color: var(--color-text-dark);
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.2;
    margin-bottom: 16px;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--color-text-body);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.feature-card {
    position: relative;
    background: var(--color-bg-white);
    border-radius: 12px;
    padding: 40px 30px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    border: 1px solid var(--color-border);
    transition: transform 0.2s, box-shadow 0.2s;
    overflow: hidden;
}

/* Colored accent bar that reveals on hover */
.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--accent, var(--color-primary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 30px -12px rgba(10, 37, 64, 0.18), 0 8px 12px -6px rgba(10, 37, 64, 0.08);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 52px;
    height: 52px;
    background: var(--accent, var(--color-primary));
    color: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 24px;
    box-shadow: 0 8px 16px -6px var(--accent-shadow, rgba(99, 91, 255, 0.5));
}

.features-grid .feature-card:nth-child(1) {
    --accent: linear-gradient(135deg, #635bff, #a78bff);
    --accent-shadow: rgba(99, 91, 255, 0.5);
}
.features-grid .feature-card:nth-child(2) {
    --accent: linear-gradient(135deg, #00c2ff, #5b8bff);
    --accent-shadow: rgba(0, 194, 255, 0.45);
}
.features-grid .feature-card:nth-child(3) {
    --accent: linear-gradient(135deg, #ff7eb3, #ff5b8a);
    --accent-shadow: rgba(255, 91, 138, 0.45);
}
.features-grid .feature-card:nth-child(4) {
    --accent: linear-gradient(135deg, #ffb703, #ff8a5b);
    --accent-shadow: rgba(255, 138, 91, 0.45);
}

.feature-card h3 {
    color: var(--color-text-dark);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.download-section {
    padding: 100px 0;
    background-color: var(--color-bg-white);
}

.platform-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin-top: 40px;
}

.platform-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 18px;
    background: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    font-weight: 600;
    color: var(--color-text-dark);
    transition: all 0.25s;
}

.platform-btn:hover {
    border-color: transparent;
    transform: translateY(-4px);
    box-shadow: 0 18px 30px -12px rgba(99, 91, 255, 0.35);
}

.platform-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 10px;
    background: var(--color-bg-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s;
}

.platform-icon i {
    font-size: 1.6rem;
    color: var(--color-text-dark);
    transition: color 0.25s;
}

.platform-btn:hover .platform-icon {
    background: linear-gradient(135deg, #635bff, #a78bff);
}

.platform-btn:hover .platform-icon i {
    color: #fff;
}

.platform-btn .platform-arrow {
    margin-left: auto;
    color: var(--color-text-light);
    opacity: 0;
    transform: translateX(-6px);
    transition: all 0.25s;
}

.platform-btn:hover .platform-arrow {
    opacity: 1;
    transform: translateX(0);
    color: var(--color-primary);
}

/* Dark stats band for visual contrast against the bright hero */
.stats-band {
    position: relative;
    z-index: 10;
    background: #0a2540;
    color: #fff;
    padding: 90px 0;
    overflow: hidden;
}

.stats-band::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -10%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(99, 91, 255, 0.45) 0%, rgba(99, 91, 255, 0) 65%);
    pointer-events: none;
}

.stats-band::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 126, 179, 0.3) 0%, rgba(255, 126, 179, 0) 65%);
    pointer-events: none;
}

.stats-band .section-header h2 { color: #fff; }
.stats-band .section-header p { color: #8a9bb5; }

.stats-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 40px;
}

.stat-block h3 {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1;
    background: linear-gradient(90deg, #a4b9ff, #ff7eb3);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.stat-block p {
    color: #8a9bb5;
    font-size: 1rem;
    margin-top: 10px;
}

/* Gradient call-to-action band above the footer */
.cta-band {
    position: relative;
    z-index: 10;
    padding: 100px 0;
    background: var(--color-bg-white);
}

.cta-inner {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    padding: 72px 40px;
    text-align: center;
    background: linear-gradient(110deg, #635bff 0%, #8a7cff 38%, #d65bd6 72%, #ff7eb3 100%);
    background-size: 180% 180%;
    animation: gradientMove 16s ease infinite;
    box-shadow: 0 30px 60px -20px rgba(99, 91, 255, 0.5);
}

.cta-inner h2 {
    font-size: 2.6rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -1px;
    margin-bottom: 16px;
}

.cta-inner p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 560px;
    margin: 0 auto 36px auto;
}

.cta-inner .hero-buttons {
    justify-content: center;
}

.btn-white {
    background: #fff;
    color: var(--color-primary);
    border: 1px solid #fff;
}

.btn-white:hover {
    background: #f6f9fc;
    border-color: #f6f9fc;
}

.btn-ghost-light {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn-ghost-light:hover {
    background: rgba(255, 255, 255, 0.22);
}

.section-header.center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* "Config as code" showcase — light section with a dark code window */
.showcase {
    position: relative;
    z-index: 10;
    padding: 110px 0;
    background: var(--color-bg-white);
}

.showcase-grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 64px;
    align-items: center;
}

.showcase-text h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--color-text-dark);
    letter-spacing: -0.5px;
    line-height: 1.2;
    margin-bottom: 16px;
}

.showcase-text > p {
    font-size: 1.1rem;
    color: var(--color-text-body);
    margin-bottom: 28px;
}

.check-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    color: var(--color-text-body);
}

.check-list li i {
    color: var(--color-primary);
    margin-top: 4px;
    flex-shrink: 0;
}

.check-list strong {
    color: var(--color-text-dark);
    font-weight: 600;
}

.code-window {
    background: #0a2540;
    border-radius: 14px;
    box-shadow: 0 30px 60px -20px rgba(10, 37, 64, 0.45);
    overflow: hidden;
    min-width: 0;
    max-width: 100%;
}

.code-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.code-header .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

.code-header .file {
    margin-left: 10px;
    color: #8a9bb5;
    font-size: 0.85rem;
    font-family: 'SF Mono', 'Fira Code', Menlo, monospace;
}

.code-body {
    margin: 0;
    padding: 24px;
    font-family: 'SF Mono', 'Fira Code', Menlo, Consolas, monospace;
    font-size: 0.88rem;
    line-height: 1.75;
    color: #e6ebf1;
    overflow-x: auto;
}

.tok-comment { color: #5b7089; }
.tok-key { color: #7aa2ff; }
.tok-str { color: #7ee787; }
.tok-num { color: #ffb86c; }
.tok-punc { color: #8a9bb5; }

/* How it works — three numbered steps */
.steps {
    position: relative;
    z-index: 10;
    padding: 110px 0;
    background: var(--color-bg-gray);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.step {
    background: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: 14px;
    padding: 36px 30px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.step:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 30px -12px rgba(10, 37, 64, 0.15);
}

.step-num {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #635bff, #a78bff);
    color: #fff;
    font-weight: 800;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 8px 16px -6px rgba(99, 91, 255, 0.5);
}

.step h3 {
    color: var(--color-text-dark);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
}

/* FAQ — native collapsible accordion */
.faq {
    position: relative;
    z-index: 10;
    padding: 110px 0;
    background: var(--color-bg-white);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--color-border);
}

.faq-item summary {
    cursor: pointer;
    list-style: none;
    padding: 24px 0;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--color-text-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.85rem;
    color: var(--color-text-light);
    transition: transform 0.2s;
    flex-shrink: 0;
}

.faq-item[open] summary::after { transform: rotate(180deg); }

.faq-item p {
    padding: 0 0 24px;
    color: var(--color-text-body);
    font-size: 1rem;
}

footer {
    border-top: 1px solid var(--color-border);
    padding: 60px 0 40px 0;
    background: var(--color-bg-white);
    color: var(--color-text-body);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-title {
    font-weight: 700;
    color: var(--color-text-dark);
    margin-bottom: 20px;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    font-size: 0.95rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--color-primary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid var(--color-border);
    font-size: 0.9rem;
    color: var(--color-text-light);
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    cursor: pointer;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--color-text-dark);
    cursor: pointer;
}

.mobile-menu {
    display: none;
}

@media (max-width: 992px) {
    .hero-title {
        font-size: 2.8rem;
    }
    .showcase-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .steps-grid {
        grid-template-columns: 1fr;
    }
    .platform-grid {
        grid-template-columns: repeat(3, 1fr);
        justify-items: stretch;
    }
    .platform-grid > :last-child:nth-child(3n - 1) {
        grid-column: span 1;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links, .nav-actions {
        display: none;
    }
    .mobile-menu-btn {
        display: block;
    }
    .mobile-menu.open {
        display: flex;
        flex-direction: column;
        gap: 4px;
        margin-top: 8px;
        padding: 8px 16px 16px;
        background: var(--color-bg-white);
        border: 1px solid var(--color-border);
        border-radius: 12px;
        box-shadow: 0 12px 24px -10px rgba(10, 37, 64, 0.2);
    }
    .mobile-menu a {
        padding: 14px 4px;
        font-weight: 600;
        color: var(--color-text-dark);
        border-bottom: 1px solid var(--color-border);
    }
    .mobile-menu .mobile-menu-cta {
        margin-top: 12px;
        color: #fff;
        border-bottom: none;
        justify-content: center;
    }
    .hero-title {
        font-size: 2.4rem;
    }
    .hero-subtitle {
        font-size: 1.05rem;
    }
    .hero-gradient {
        height: 720px;
    }
    .hero-overlay {
        height: 720px;
        background: linear-gradient(
            to bottom,
            rgba(255, 255, 255, 0.85) 0%,
            rgba(255, 255, 255, 0.7) 35%,
            rgba(255, 255, 255, 0.4) 60%,
            rgba(255, 255, 255, 0) 100%
        );
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
    .platform-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero-buttons {
        flex-direction: column;
        align-items: flex-start;
    }
    .cta-inner .hero-buttons {
        align-items: stretch;
    }
    .btn-large {
        width: 100%;
    }
    .stat-block h3 {
        font-size: 2.4rem;
    }
    .cta-inner {
        padding: 48px 24px;
    }
    .cta-inner h2 {
        font-size: 1.9rem;
    }
    .cta-inner p {
        font-size: 1.05rem;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
}

/* ============================================================
   下载页 (download.html)
   ============================================================ */

/* Lighter, shorter gradient header for inner pages */
.page-gradient {
    position: absolute;
    top: -320px;
    left: -5%;
    right: -5%;
    height: 640px;
    transform: skewY(-8deg);
    transform-origin: top left;
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(
        100deg,
        #f6f9fc 0%,
        #d4e3ff 22%,
        #a4b9ff 42%,
        #8a7cff 60%,
        #d65bd6 84%,
        #ff7eb3 100%
    );
    background-size: 200% 200%;
    animation: gradientMove 16s ease infinite;
}

.page-gradient + .page-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 640px;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.7) 0%,
        rgba(255, 255, 255, 0.45) 45%,
        rgba(255, 255, 255, 0.85) 80%,
        rgba(255, 255, 255, 1) 100%
    );
}

.page-hero {
    position: relative;
    z-index: 2;
    padding-top: 60px;
    padding-bottom: 40px;
    text-align: center;
}

.page-hero .hero-label {
    justify-content: center;
}

.page-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--color-text-dark);
    letter-spacing: -1.5px;
    line-height: 1.1;
    margin-bottom: 16px;
}

.page-hero h1 .highlight {
    color: var(--color-primary);
}

.page-hero .page-subtitle {
    font-size: 1.2rem;
    color: var(--color-text-body);
    max-width: 620px;
    margin: 0 auto;
}

/* Recommended-for-your-OS banner */
.recommend-box {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 620px;
    margin: 36px auto 0 auto;
    padding: 20px 28px;
    background: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    box-shadow: 0 18px 40px -20px rgba(10, 37, 64, 0.25);
}

.recommend-info {
    display: flex;
    align-items: center;
    gap: 16px;
    text-align: left;
}

.recommend-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #635bff, #a78bff);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.recommend-info .label {
    font-size: 0.85rem;
    color: var(--color-text-light);
}

.recommend-info .os-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-text-dark);
}

/* Download cards grid */
.download-detail {
    position: relative;
    z-index: 10;
    padding: 70px 0 100px 0;
    background: var(--color-bg-white);
}

.download-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.dl-card {
    display: flex;
    flex-direction: column;
    gap: 22px;
    background: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 32px;
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.dl-card:hover {
    transform: translateY(-4px);
    border-color: transparent;
    box-shadow: 0 22px 45px -22px rgba(99, 91, 255, 0.4);
}

.dl-card.is-recommended {
    border-color: var(--color-primary);
    box-shadow: 0 18px 40px -20px rgba(99, 91, 255, 0.45);
}

.dl-card-head {
    display: flex;
    align-items: center;
    gap: 16px;
}

.dl-icon {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, #635bff, #a78bff);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
}

.dl-title {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dl-title h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-text-dark);
}

.dl-title .dl-sub {
    font-size: 0.9rem;
    color: var(--color-text-light);
}

.dl-badge {
    margin-left: auto;
    align-self: flex-start;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-primary);
    background: rgba(99, 91, 255, 0.1);
    padding: 4px 10px;
    border-radius: 20px;
}

.dl-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 28px;
    padding: 18px 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.dl-meta div {
    font-size: 0.9rem;
    color: var(--color-text-body);
}

.dl-meta div span {
    display: block;
    font-size: 0.75rem;
    color: var(--color-text-light);
    margin-bottom: 2px;
}

.dl-actions {
    display: flex;
    gap: 12px;
    margin-top: auto;
}

.dl-actions .btn-primary {
    flex: 1;
}

/* Install help section */
.install-help .steps-grid {
    margin-top: 0;
}

/* Platform anchor nav */
.dl-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--color-border);
}

.dl-nav .container {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding-top: 12px;
    padding-bottom: 12px;
}

.dl-nav .container::-webkit-scrollbar { display: none; }

.dl-nav a {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--color-text-body);
    transition: all 0.2s;
}

.dl-nav a:hover {
    background: var(--color-bg-gray);
    color: var(--color-text-dark);
}

.dl-nav a.active {
    background: var(--color-primary);
    color: #fff;
}

/* Per-platform section */
.dl-section {
    padding: 64px 0 16px 0;
}

.dl-section-head {
    margin-bottom: 32px;
}

.dl-section-head h2 {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--color-text-dark);
    letter-spacing: -0.5px;
}

.dl-section-head h2 .dl-section-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #635bff, #a78bff);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.dl-section-head p {
    margin-top: 10px;
    color: var(--color-text-light);
    font-size: 1rem;
}

/* Client cards grid */
.client-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.client-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 28px;
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.client-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 45px -22px rgba(99, 91, 255, 0.35);
}

.client-card.is-featured {
    border-color: var(--color-primary);
    box-shadow: 0 18px 40px -22px rgba(99, 91, 255, 0.4);
}

.client-card-head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 14px;
}

.client-logo {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    border-radius: 12px;
    background: var(--color-bg-gray);
    color: var(--color-text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.client-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text-dark);
    min-width: 0;
    flex: 1;
}

.client-badge {
    margin-left: auto;
    align-self: flex-start;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    color: var(--color-primary);
    background: rgba(99, 91, 255, 0.1);
    white-space: nowrap;
}

.client-badge.badge-archived {
    color: #b4690e;
    background: rgba(255, 183, 3, 0.15);
}

.client-badge.badge-paid {
    color: #9b1c6b;
    background: rgba(255, 126, 179, 0.15);
}

.client-desc {
    font-size: 0.95rem;
    color: var(--color-text-body);
    line-height: 1.55;
}

.client-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.client-tag {
    font-size: 0.78rem;
    color: var(--color-text-light);
    background: var(--color-bg-gray);
    padding: 4px 10px;
    border-radius: 6px;
}

.client-req {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--color-text-light);
}

.client-req i {
    margin-top: 3px;
    color: var(--color-primary);
}

.client-site {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--color-text-light);
}

.client-site i {
    color: var(--color-primary);
}

.client-site a {
    color: var(--color-primary);
    font-weight: 600;
}

.client-site a:hover {
    text-decoration: underline;
}

.client-warn {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.85rem;
    color: #b4690e;
    background: rgba(255, 183, 3, 0.1);
    border-radius: 8px;
    padding: 10px 12px;
}

.client-warn i {
    margin-top: 3px;
}

.client-downloads {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
    padding-top: 4px;
}

.btn-sm {
    padding: 8px 14px;
    font-size: 0.88rem;
    border-radius: 8px;
}

.btn-sm i {
    margin-right: 6px;
}

@media (max-width: 768px) {
    .page-hero h1 {
        font-size: 2.2rem;
    }
    .download-cards {
        grid-template-columns: 1fr;
    }
    .client-grid {
        grid-template-columns: 1fr;
    }
    .recommend-box {
        flex-direction: column;
    }
    .recommend-box .btn {
        width: 100%;
    }
}

/* ============================================================
   下载页视觉增强
   ============================================================ */

/* 每个平台的品牌强调色 */
#dl-windows { --pf: #0a84ff; --pf2: #5cb8ff; }
#dl-macos   { --pf: #2b3a55; --pf2: #6b7c98; }
#dl-android { --pf: #1fae63; --pf2: #5fe39b; }
#dl-ios     { --pf: #ff4f87; --pf2: #ff93b6; }
#dl-linux   { --pf: #f59e0b; --pf2: #ffce5c; }
#dl-mihomo  { --pf: #635bff; --pf2: #a78bff; }

/* 分区深浅交替，增强节奏感 */
.dl-section {
    padding: 72px 0;
}

.dl-section:nth-child(even) {
    background: var(--color-bg-gray);
}

/* 平台标题图标使用对应品牌色 */
.dl-section-head h2 .dl-section-icon {
    background: linear-gradient(135deg, var(--pf, #635bff), var(--pf2, #a78bff));
    box-shadow: 0 10px 22px -10px var(--pf, rgba(99, 91, 255, 0.6));
}

/* 客户端图标按平台着色（非推荐卡为浅色描边风格） */
.client-logo {
    background: color-mix(in srgb, var(--pf, #635bff) 12%, #fff);
    color: var(--pf, var(--color-primary));
}

.client-logo i {
    color: var(--pf, var(--color-primary));
}

/* 推荐卡：渐变描边 + 顶部高亮条 + 柔光 + 图标实心 */
.client-card {
    position: relative;
    overflow: hidden;
}

.client-card.is-featured {
    border-color: transparent;
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(135deg, var(--pf, #635bff), var(--pf2, #a78bff)) border-box;
    border: 1.5px solid transparent;
    box-shadow: 0 24px 50px -24px var(--pf, rgba(99, 91, 255, 0.55));
}

.client-card.is-featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--pf, #635bff), var(--pf2, #a78bff));
}

.client-card.is-featured .client-logo {
    background: linear-gradient(135deg, var(--pf, #635bff), var(--pf2, #a78bff));
    color: #fff;
}

.client-card.is-featured .client-logo i {
    color: #fff;
}

/* 推荐徽标也跟随平台色 */
.client-card.is-featured .client-badge.badge-featured {
    color: #fff;
    background: linear-gradient(135deg, var(--pf, #635bff), var(--pf2, #a78bff));
}

/* 推荐卡首个下载按钮使用平台渐变色 */
.client-card.is-featured .client-downloads .btn-primary {
    background: linear-gradient(135deg, var(--pf, #635bff), var(--pf2, #a78bff));
    border-color: transparent;
}

.client-card.is-featured .client-downloads .btn-primary:hover {
    filter: brightness(1.05);
}

/* 平台导航激活态跟随当前分区色（默认紫色） */
.dl-nav a.active {
    background: var(--color-primary);
}

/* 卡片悬停时图标轻微放大 */
.client-logo {
    transition: transform 0.25s;
}

.client-card:hover .client-logo {
    transform: scale(1.06);
}

/* 图片版客户端 logo：满铺整个方块，去掉内边距与底色，圆角随容器裁切 */
.client-logo.has-img {
    background: transparent;
    border: none;
    padding: 0;
    overflow: hidden;
}

.client-logo.has-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.client-card.is-featured .client-logo.has-img {
    background: transparent;
}

/* hero 标题渐变文字点缀 */
.page-hero h1 .highlight {
    background: linear-gradient(120deg, #635bff, #d65bd6 60%, #ff7eb3);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ============================================================
   文档页 (docs.html)
   ============================================================ */

.docs-top {
    position: relative;
    z-index: 2;
    padding: 52px 0 30px 0;
}

.docs-top h1 {
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--color-text-dark);
    letter-spacing: -1.2px;
    margin-bottom: 12px;
}

.docs-top h1 .highlight {
    background: linear-gradient(120deg, #635bff, #d65bd6 60%, #ff7eb3);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.docs-top p {
    font-size: 1.15rem;
    color: var(--color-text-body);
    max-width: 680px;
}

.docs-layout {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 56px;
    align-items: start;
    padding-bottom: 100px;
}

/* 左侧粘性目录 */
.docs-sidebar {
    position: sticky;
    top: 24px;
}

.docs-nav-title {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-light);
    font-weight: 700;
    margin: 0 0 12px 14px;
}

.docs-sidebar nav {
    display: flex;
    flex-direction: column;
    gap: 1px;
    border-left: 1px solid var(--color-border);
}

.docs-sidebar nav a {
    padding: 8px 16px;
    font-size: 0.92rem;
    color: var(--color-text-body);
    font-weight: 500;
    border-left: 2px solid transparent;
    margin-left: -1px;
    transition: color 0.2s, border-color 0.2s;
}

.docs-sidebar nav a:hover {
    color: var(--color-text-dark);
}

.docs-sidebar nav a.active {
    color: var(--color-primary);
    border-left-color: var(--color-primary);
    font-weight: 600;
}

/* 右侧内容 */
.docs-content {
    min-width: 0;
    overflow-x: hidden;
}

.doc-section {
    margin-bottom: 56px;
    scroll-margin-top: 24px;
    min-width: 0;
    overflow-x: hidden;
}

.doc-section > h2 {
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--color-text-dark);
    letter-spacing: -0.5px;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--color-border);
}

.doc-section h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-text-dark);
    margin: 28px 0 12px 0;
}

.doc-section p {
    color: var(--color-text-body);
    margin-bottom: 16px;
    line-height: 1.75;
}

.doc-section ul,
.doc-section ol {
    margin: 0 0 16px 0;
    padding-left: 22px;
    color: var(--color-text-body);
    line-height: 1.7;
}

.doc-section ul li { list-style: disc; margin-bottom: 8px; }
.doc-section ol li { list-style: decimal; margin-bottom: 8px; }

.doc-section a.inline-link {
    color: var(--color-primary);
    font-weight: 600;
}

.doc-section a.inline-link:hover { text-decoration: underline; }

/* 行内代码 */
.doc-section :not(pre) > code {
    font-family: 'SF Mono', 'Fira Code', Menlo, Consolas, monospace;
    font-size: 0.86em;
    background: var(--color-bg-gray);
    color: var(--color-primary);
    padding: 2px 6px;
    border-radius: 6px;
    border: 1px solid var(--color-border);
}

.doc-section .code-window {
    margin-bottom: 20px;
}

/* 提示框 */
.doc-note {
    display: flex;
    gap: 12px;
    background: rgba(99, 91, 255, 0.06);
    border: 1px solid rgba(99, 91, 255, 0.18);
    border-radius: 12px;
    padding: 16px 18px;
    margin-bottom: 20px;
    color: var(--color-text-body);
    font-size: 0.95rem;
    line-height: 1.6;
}

.doc-note i {
    color: var(--color-primary);
    margin-top: 3px;
    flex-shrink: 0;
}

/* 表格 */
.doc-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    margin-bottom: 20px;
}

.doc-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.doc-table th,
.doc-table td {
    text-align: left;
    padding: 12px 16px;
    border-bottom: 1px solid var(--color-border);
    white-space: nowrap;
    max-width: 260px;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 768px) {
    .doc-table th,
    .doc-table td {
        white-space: normal;
        word-break: break-word;
        max-width: none;
    }
    .doc-table-wrap {
        width: 100%;
        max-width: 100%;
    }
}

.doc-table th {
    color: var(--color-text-dark);
    font-weight: 700;
    background: var(--color-bg-gray);
}

.doc-table td {
    color: var(--color-text-body);
}

.doc-table tr:last-child td { border-bottom: none; }

.doc-table td code {
    font-family: 'SF Mono', 'Fira Code', Menlo, Consolas, monospace;
    font-size: 0.85em;
    color: var(--color-primary);
}

@media (max-width: 992px) {
    .docs-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }
    .docs-sidebar {
        position: sticky;
        top: 0;
        z-index: 40;
        margin: 0 -20px;
        padding: 10px 20px;
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: saturate(180%) blur(12px);
        border-bottom: 1px solid var(--color-border);
    }
    .docs-nav-title { display: none; }
    .docs-sidebar nav {
        flex-direction: row;
        border-left: none;
        gap: 6px;
        overflow-x: auto;
        scrollbar-width: none;
    }
    .docs-sidebar nav::-webkit-scrollbar { display: none; }
    .docs-sidebar nav a {
        flex-shrink: 0;
        border-left: none;
        border-radius: 999px;
        padding: 7px 14px;
        white-space: nowrap;
    }
    .docs-sidebar nav a.active {
        background: var(--color-primary);
        color: #fff;
        border-left: none;
    }
}

@media (max-width: 768px) {
    .docs-sidebar {
        margin: 0 -18px;
        padding: 10px 18px;
    }
}

@media (max-width: 768px) {
    .docs-top h1 { font-size: 2rem; }
}

/* ============================================================
   免责声明 / 法律条款页 (disclaimer.html)
   ============================================================ */

.legal-wrap {
    position: relative;
    z-index: 10;
    padding-bottom: 100px;
}

.legal-content {
    max-width: 800px;
}

.legal-content .doc-section {
    margin-bottom: 40px;
}

.legal-content .doc-section > h2 {
    font-size: 1.3rem;
}

.legal-updated {
    display: inline-block;
    font-size: 0.85rem;
    color: var(--color-text-light);
    background: var(--color-bg-gray);
    border: 1px solid var(--color-border);
    border-radius: 999px;
    padding: 5px 14px;
    margin-bottom: 28px;
}

/* ============================================================
   常见问题页 (faq.html)
   ============================================================ */

.faq-page {
    position: relative;
    z-index: 10;
    padding-bottom: 100px;
}

.faq-jump {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    max-width: 820px;
    margin: 0 auto 48px auto;
}

.faq-jump a {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-body);
    background: var(--color-bg-gray);
    border: 1px solid var(--color-border);
    border-radius: 999px;
    padding: 8px 16px;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.faq-jump a:hover {
    color: var(--color-primary);
    border-color: var(--color-primary);
    background: #fff;
}

.faq-group {
    max-width: 820px;
    margin: 0 auto;
    scroll-margin-top: 24px;
}

.faq-group + .faq-group {
    margin-top: 44px;
}

.faq-group-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--color-text-dark);
    letter-spacing: -0.5px;
    margin-bottom: 6px;
}

.faq-group-title i {
    color: var(--color-primary);
    font-size: 1.1rem;
}

/* 在 FAQ 页中，让答案支持更丰富的排版 */
.faq-page .faq-item p {
    line-height: 1.75;
}

.faq-page .faq-item ul,
.faq-page .faq-item ol {
    padding: 0 0 24px 22px;
    color: var(--color-text-body);
    line-height: 1.7;
}

.faq-page .faq-item ul li { list-style: disc; margin-bottom: 6px; }
.faq-page .faq-item ol li { list-style: decimal; margin-bottom: 6px; }

.faq-page .faq-item :not(pre) > code {
    font-family: 'SF Mono', 'Fira Code', Menlo, Consolas, monospace;
    font-size: 0.86em;
    background: var(--color-bg-gray);
    color: var(--color-primary);
    padding: 2px 6px;
    border-radius: 6px;
    border: 1px solid var(--color-border);
}

.faq-page .faq-item a.inline-link {
    color: var(--color-primary);
    font-weight: 600;
}

.faq-page .faq-item a.inline-link:hover { text-decoration: underline; }

/* ============================================================
   博客列表页 (blog/index.html)
   ============================================================ */

.blog-page {
    position: relative;
    z-index: 10;
    padding-bottom: 100px;
}

.blog-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.post-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    overflow: hidden;
    text-align: left;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 44px -26px rgba(45, 55, 85, 0.4);
    border-color: transparent;
}

.post-card-cover {
    height: 150px;
    background: linear-gradient(135deg, var(--accent, #635bff), var(--accent2, #a78bff));
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-card-cover i {
    font-size: 2.4rem;
    color: #fff;
    opacity: 0.95;
}

.post-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.post-cat {
    align-self: flex-start;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--color-primary);
    background: rgba(99, 91, 255, 0.1);
    padding: 3px 10px;
    border-radius: 999px;
    margin-bottom: 12px;
}

.post-card h3 {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--color-text-dark);
    line-height: 1.4;
    margin-bottom: 10px;
}

.post-card p {
    font-size: 0.92rem;
    color: var(--color-text-body);
    line-height: 1.6;
    margin-bottom: 18px;
}

.post-meta {
    margin-top: auto;
    display: flex;
    gap: 16px;
    font-size: 0.82rem;
    color: var(--color-text-light);
}

.post-meta i { margin-right: 4px; }

/* ============================================================
   文章详情页 (blog/articles/*.html)
   ============================================================ */

.post-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 22px;
}

.post-back:hover { text-decoration: underline; }

.post-hero {
    position: relative;
    z-index: 2;
    padding: 48px 0 16px 0;
}

.post-hero .post-cat { display: inline-block; margin-bottom: 16px; }

.post-hero h1 {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--color-text-dark);
    letter-spacing: -1px;
    line-height: 1.25;
    max-width: 760px;
    margin-bottom: 16px;
}

.post-hero .post-meta { font-size: 0.9rem; }

.post-wrap {
    position: relative;
    z-index: 10;
    padding-bottom: 90px;
}

.post-body {
    max-width: 760px;
}

.post-body > * + * { margin-top: 18px; }

.post-body h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-text-dark);
    letter-spacing: -0.5px;
    margin-top: 40px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--color-border);
}

.post-body h3 {
    font-size: 1.18rem;
    font-weight: 700;
    color: var(--color-text-dark);
    margin-top: 28px;
}

.post-body p { color: var(--color-text-body); line-height: 1.8; }

.post-body ul,
.post-body ol { padding-left: 22px; color: var(--color-text-body); line-height: 1.8; }

.post-body ul li { list-style: disc; margin-bottom: 8px; }
.post-body ol li { list-style: decimal; margin-bottom: 8px; }

.post-body blockquote {
    border-left: 3px solid var(--color-primary);
    background: var(--color-bg-gray);
    border-radius: 0 10px 10px 0;
    padding: 14px 18px;
    color: var(--color-text-body);
}

.post-body :not(pre) > code {
    font-family: 'SF Mono', 'Fira Code', Menlo, Consolas, monospace;
    font-size: 0.86em;
    background: var(--color-bg-gray);
    color: var(--color-primary);
    padding: 2px 6px;
    border-radius: 6px;
    border: 1px solid var(--color-border);
}

.post-body a:not(.btn) { color: var(--color-primary); font-weight: 600; }
.post-body a:not(.btn):hover { text-decoration: underline; }

.post-body img { max-width: 100%; border-radius: 12px; }

.post-body .code-window { margin: 22px 0; }

.post-divider {
    border: none;
    border-top: 1px solid var(--color-border);
    max-width: 760px;
    margin: 56px 0 40px 0;
}

.post-recent-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--color-text-dark);
    margin-bottom: 24px;
}

@media (max-width: 768px) {
    .blog-list { grid-template-columns: 1fr; }
    .post-hero h1 { font-size: 1.8rem; }
}

/* 文章面包屑 */
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin-bottom: 18px;
}

.breadcrumb a {
    color: var(--color-text-body);
    font-weight: 500;
}

.breadcrumb a:hover { color: var(--color-primary); }

.breadcrumb .sep { opacity: 0.5; }

.breadcrumb .current {
    color: var(--color-text-dark);
    font-weight: 600;
    min-width: 0;
}

/* 文末引导下载卡片 */
.post-cta {
    max-width: 760px;
    margin: 48px 0 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    padding: 30px 34px;
    border-radius: 18px;
    background: linear-gradient(120deg, #635bff, #8a7cff 55%, #d65bd6);
    box-shadow: 0 22px 48px -24px rgba(99, 91, 255, 0.7);
}

.post-cta-text h3 {
    font-size: 1.3rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 6px;
}

.post-cta-text p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.6;
}

.post-cta .btn {
    flex-shrink: 0;
}

/* 右下角浮动下载卡片 */
.float-cta {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 200;
    width: 290px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    box-shadow: 0 24px 54px -22px rgba(45, 55, 85, 0.55);
    padding: 20px 20px 20px 20px;
    animation: floatCtaIn 0.4s ease;
}

@keyframes floatCtaIn {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

.float-cta-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #635bff, #a78bff);
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.float-cta h4 {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--color-text-dark);
    margin-bottom: 6px;
}

.float-cta p {
    font-size: 0.86rem;
    color: var(--color-text-body);
    line-height: 1.55;
    margin-bottom: 14px;
}

.float-cta .btn {
    width: 100%;
    justify-content: center;
}

.float-cta-close {
    position: absolute;
    top: 8px;
    right: 10px;
    width: 24px;
    height: 24px;
    border: none;
    background: transparent;
    color: var(--color-text-light);
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
}

.float-cta-close:hover {
    background: var(--color-bg-gray);
    color: var(--color-text-dark);
}

/* 上一篇 / 下一篇导航 */
.post-nav {
    max-width: 760px;
    margin: 44px 0 0 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.post-nav-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 18px 20px;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.post-nav-item:hover {
    border-color: var(--color-primary);
    box-shadow: 0 14px 30px -20px rgba(45, 55, 85, 0.4);
    transform: translateY(-2px);
}

.post-nav-item.is-next {
    text-align: right;
    align-items: flex-end;
}

.post-nav-item.is-empty {
    border: none;
    background: transparent;
    pointer-events: none;
}

.post-nav-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-text-light);
}

.post-nav-label i { color: var(--color-primary); }

.post-nav-title {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--color-text-dark);
    line-height: 1.4;
}

@media (max-width: 768px) {
    .post-cta { padding: 24px; }
    .float-cta {
        left: 16px;
        right: 16px;
        bottom: 16px;
        width: auto;
    }
    .post-nav { grid-template-columns: 1fr; }
    .post-nav-item.is-next { text-align: left; align-items: flex-start; }
    .post-nav-item.is-empty { display: none; }
}

/* ============================================================
   全站移动端适配增强（统一收口，置于文件末尾以覆盖前面规则）
   ============================================================ */

/* 平板 / 中屏：避免两栏卡片在窄屏挤压 */
@media (max-width: 860px) {
    .blog-list { grid-template-columns: 1fr; }
    .download-cards { grid-template-columns: 1fr; }
    .client-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .container { padding: 0 18px; }

    /* 统一压缩各分区在移动端的纵向留白，避免页面过长、留白过大 */
    .section-padding,
    .download-section,
    .showcase,
    .steps,
    .faq,
    .cta-band,
    .stats-band { padding: 60px 0; }

    .hero-section { padding-top: 40px; padding-bottom: 72px; }
    .logo-cloud { margin-top: 40px; padding-top: 32px; gap: 18px 28px; }

    .section-header { margin-bottom: 40px; }
    .section-header h2 { font-size: 1.8rem; }
    .section-header p { font-size: 1rem; }

    .feature-card { padding: 30px 24px; }
    .features-grid { gap: 20px; }

    .showcase-grid { gap: 32px; }
    .code-body { font-size: 0.8rem; padding: 18px; }

    .step { padding: 28px 24px; }

    /* 下载页 */
    .download-detail { padding: 48px 0 64px; }
    .dl-section { padding: 48px 0; }
    .dl-section-head { margin-bottom: 24px; }
    .dl-section-head h2 { font-size: 1.5rem; }
    .dl-card { padding: 24px; }
    .dl-actions { flex-direction: column; }
    .dl-actions .btn { width: 100%; }

    /* 文档 / 法务 / FAQ / 博客列表页 */
    .docs-top { padding: 36px 0 20px; }
    .docs-layout { padding-bottom: 64px; }
    .doc-section { margin-bottom: 40px; }
    .legal-wrap,
    .faq-page,
    .blog-page { padding-bottom: 64px; }
    .faq-group-title { font-size: 1.25rem; }
    .faq-item summary { font-size: 1.02rem; padding: 20px 0; }

    /* 文章详情页 */
    .post-hero { padding: 32px 0 12px; }
    .post-wrap { padding-bottom: 56px; }
    .post-cta {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
    }
    .post-cta .btn { width: 100%; justify-content: center; }
}

/* 小屏手机（≤480px）：进一步收紧字号与间距，杜绝横向溢出 */
@media (max-width: 480px) {
    .container { padding: 0 16px; }

    .brand { font-size: 1.2rem; gap: 5px; }
    .brand-logo { height: 26px; width: 26px; }
    .brand-cn { font-size: 0.7rem; padding: 2px 6px; }

    .hero-title { font-size: 2rem; letter-spacing: -1px; }
    .hero-subtitle { font-size: 1rem; }
    .hero-label { font-size: 0.82rem; }

    .section-header h2 { font-size: 1.55rem; }
    .stat-block h3 { font-size: 2rem; }

    .cta-inner { padding: 40px 20px; }
    .cta-inner h2 { font-size: 1.6rem; }
    .cta-inner p { font-size: 1rem; }

    .page-hero h1 { font-size: 1.9rem; }
    .page-hero .page-subtitle { font-size: 1.02rem; }

    .docs-top h1 { font-size: 1.7rem; }
    .docs-top p { font-size: 1.02rem; }

    .post-hero h1 { font-size: 1.55rem; }
    .post-body h2 { font-size: 1.28rem; }
    .post-body h3 { font-size: 1.08rem; }

    .dl-section-head h2 { font-size: 1.2rem; gap: 10px; flex-wrap: wrap; }
    .dl-section-head h2 .dl-section-icon { width: 36px; height: 36px; font-size: 1rem; flex-shrink: 0; }
    .dl-title h3 { font-size: 1.2rem; }

    .blog-list,
    .features-grid,
    .download-cards,
    .client-grid,
    .steps-grid { gap: 16px; }

    .platform-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    /* client card on mobile: tighter layout */
    .client-card { padding: 20px; }
    .client-logo { width: 40px; height: 40px; font-size: 1.2rem; }
    .client-name { font-size: 1.1rem; }
    .client-badge { font-size: 0.68rem; }

    /* hero subtitle no max-width clamp on narrow screens */
    .hero-subtitle { max-width: 100%; }

    /* Reduce gap in logo-cloud platforms row */
    .logo-cloud-platforms { gap: 14px; }

    /* dl-section-head: tighten further */
    .dl-section-head h2 { font-size: 1.1rem; gap: 8px; }
    .dl-section-head h2 .dl-section-icon { width: 32px; height: 32px; font-size: 0.9rem; }
}


/* ── Language dropdown switcher ─────────────────────────────── */
.lang-dropdown {
    user-select: none;
    position: relative;
}

.lang-dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 7px 14px;
    border-radius: 8px;
    cursor: pointer;
    color: var(--color-text);
    border: 1px solid transparent;
    transition: background 0.15s, border-color 0.15s;
    white-space: nowrap;
}
.lang-dropdown-trigger:hover,
.lang-dropdown.open .lang-dropdown-trigger {
    background: var(--color-bg-alt);
    border-color: var(--color-border);
}
.lang-chevron {
    font-size: 0.65em;
    transition: transform 0.2s;
}
.lang-dropdown.open .lang-chevron { transform: rotate(180deg); }

.lang-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,.1);
    min-width: 130px;
    z-index: 100;
    overflow: hidden;
}

.lang-dropdown.open .lang-dropdown-menu { display: block; }

.lang-option {
    display: block;
    padding: 12px 20px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text);
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    -webkit-tap-highlight-color: transparent;
}
.lang-option:hover { background: var(--color-bg-alt); color: var(--color-primary); }

.mobile-lang-switcher {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    padding: 12px 4px 4px;
    margin-top: 4px;
    border-top: 1px solid var(--color-border);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.mobile-lang-switcher::-webkit-scrollbar { display: none; }
.mobile-lang-item {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    line-height: 1;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 20px;
    border: 1px solid var(--color-border);
    color: var(--color-text);
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s;
}
.mobile-lang-item:hover { background: var(--color-bg-alt); color: var(--color-primary); border-color: var(--color-primary); }
.mobile-lang-item.is-current { background: var(--color-primary); color: #fff; border-color: var(--color-primary); pointer-events: none; }
