/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #8940CB;
    --primary-dark: #2E1982;
    --primary-light: #218AD0;
    --gradient: linear-gradient(135deg, #8940CB 0%, #2E1982 53%, #218AD0 100%);
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --text-light: #999999;
    --bg-white: #ffffff;
    --bg-light: #f8f9fa;
    --bg-dark: #1a1a1a;
    --border-color: #e0e0e0;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --transition: all 0.3s ease;
}

@media (prefers-color-scheme: dark) {
    :root {
        --text-primary: #e0e0e0;
        --text-secondary: #b0b0b0;
        --text-light: #808080;
        --bg-white: #1a1a1a;
        --bg-light: #252525;
        --bg-dark: #0f0f0f;
        --border-color: #333333;
        --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
        --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
        --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    }
}

[data-theme="dark"] {
    --text-primary: #e0e0e0;
    --text-secondary: #b0b0b0;
    --text-light: #808080;
    --bg-white: #1a1a1a;
    --bg-light: #252525;
    --bg-dark: #0f0f0f;
    --border-color: #333333;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
}

[data-theme="light"] {
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --text-light: #999999;
    --bg-white: #ffffff;
    --bg-light: #f8f9fa;
    --bg-dark: #1a1a1a;
    --border-color: #e0e0e0;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
}

html {
    scroll-behavior: smooth;
}

@font-face {
    font-family: 'JetBrainsMono';
    src: url('../assets/fonts/JetBrainsMono-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

body {
    font-family: 'JetBrainsMono', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', monospace;
    color: var(--text-primary);
    background-color: var(--bg-white);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 500;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
    font-size: 16px;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    border-color: transparent;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.download-btn .download-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

[data-theme="light"] .btn-outline {
    color: #8940CB;
    border-color: #8940CB;
}

[data-theme="dark"] .btn-outline {
    color: #8940CB;
    border-color: #8940CB;
}

.btn-outline:hover {
    background: var(--gradient);
    color: white;
    border-color: transparent;
}

.btn-large {
    padding: 16px 32px;
    font-size: 18px;
}

.btn-block {
    display: block;
    width: 100%;
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    padding: 16px 0;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

[data-theme="light"] .navbar {
    background: rgba(255, 255, 255, 0.95);
}

[data-theme="dark"] .navbar {
    background: rgba(26, 26, 26, 0.95);
}

@media (prefers-color-scheme: dark) {
    .navbar {
        background: rgba(26, 26, 26, 0.95);
    }
}

@media (prefers-color-scheme: light) {
    .navbar {
        background: rgba(255, 255, 255, 0.95);
    }
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    width: 40px;
    height: 40px;
}

.brand-name {
    font-size: 20px;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 32px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: var(--transition);
}

[data-theme="light"] .nav-menu a {
    color: #1a1a1a;
}

[data-theme="light"] .btn-primary {
    color: #ffffff !important;
}

[data-theme="dark"] .nav-menu a {
    color: #e0e0e0;
}

@media (prefers-color-scheme: light) {
    .nav-menu a {
        color: #1a1a1a;
    }
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.nav-cta .btn {
    padding: 8px 16px;
    font-size: 14px;
}

.theme-toggle-wrapper {
    margin-left: 16px;
}

.theme-toggle {
    background: transparent;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.theme-toggle:hover {
    background: var(--bg-light);
    border-color: var(--primary-color);
}

.theme-icon {
    width: 20px;
    height: 20px;
    transition: var(--transition);
    position: absolute;
    stroke: currentColor;
    fill: none;
}

.theme-icon.moon-icon {
    opacity: 0;
    transform: rotate(90deg);
}

.theme-icon.sun-icon {
    opacity: 1;
    transform: rotate(0deg);
}

[data-theme="light"] .theme-icon {
    color: #1a1a1a;
    stroke: #1a1a1a;
}


[data-theme="dark"] .theme-icon {
    color: #e0e0e0;
    stroke: #e0e0e0;
}

[data-theme="dark"] .theme-icon.moon-icon {
    opacity: 1;
    transform: rotate(0deg);
}

[data-theme="dark"] .theme-icon.sun-icon {
    opacity: 0;
    transform: rotate(-90deg);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
}

[data-theme="light"] .nav-toggle span {
    background: #1a1a1a;
}

[data-theme="dark"] .nav-toggle span {
    background: #e0e0e0;
}

@media (prefers-color-scheme: light) {
    .nav-toggle span {
        background: #1a1a1a;
    }
}

/* Hero区域 */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 100%);
    user-select: none;
}

[data-theme="light"] .hero {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

@media (prefers-color-scheme: light) {
    .hero {
        background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    }
}

@media (prefers-color-scheme: light) {

    .hero-subtitle,
    .hero-description {
        color: var(--text-primary);
        text-shadow: none;
    }
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* z-index: -1; */
    /* opacity: 0.15; */
    background-image: url('../assets/images/home/bg_maps.png');
    /* background-color: red; */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    animation: parallax 5s ease-in-out infinite;
}

@keyframes parallax {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-20px) scale(1.05);
    }
}

[data-theme="light"] .hero-background {
    /* opacity: 0.1; */
    background-color: #000000;
}

@media (prefers-color-scheme: dark) {
    .hero-background {
        opacity: 0.15;
    }
}

@media (prefers-color-scheme: light) {
    .hero-background {
        opacity: 0.1;
    }
}

.bg-map {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 0;
}

.hero-content img {
    width: 80px;
    height: 80px;
}


.hero-title {
    font-size: 64px;
    font-weight: 800;
    margin-bottom: 16px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.8s ease-out;
}

.hero-subtitle {
    font-size: 28px;
    color: #ffffff;
    margin-bottom: 16px;
    font-weight: 600;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-description {
    font-size: 18px;
    color: #ffffff;
    margin-bottom: 40px;
    line-height: 1.8;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

[data-theme="light"] .hero-subtitle,
[data-theme="light"] .hero-description {
    color: #1a1a1a;
    text-shadow: none;
}

@media (prefers-color-scheme: light) {

    .hero-subtitle,
    .hero-description {
        color: #1a1a1a;
        text-shadow: none;
    }
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 60px;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.hero-actions .download-btn {
    min-width: 220px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-item {
    text-align: center;
}

.stat-group {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
    margin-bottom: 8px;
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.stat-end {
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    vertical-align: top;
    margin-top: 4px;
}

.stat-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
    margin-top: 8px;
}

[data-theme="light"] .stat-label {
    color: #666666;
}

@media (prefers-color-scheme: light) {
    .stat-label {
        color: #666666;
    }
}

.stat-item:hover .stat-group {
    transform: scale(1.05);
}

.stat-item:hover .stat-label {
    color: var(--primary-color);
}

/* 功能特性 */
.features {
    padding: 100px 0;
    background: var(--bg-light);
}

.section-title {
    font-size: 42px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
    color: var(--text-primary);
}

[data-theme="light"] .section-title {
    color: #1a1a1a;
}

[data-theme="dark"] .section-title {
    color: #e0e0e0;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 60px;
}

[data-theme="light"] .section-subtitle {
    color: #666666;
}

[data-theme="dark"] .section-subtitle {
    color: #b0b0b0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.feature-card {
    background: var(--bg-white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    text-align: center;
    border: 1px solid var(--border-color);
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

.feature-card:nth-child(1) {
    animation-delay: 0.1s;
}

.feature-card:nth-child(2) {
    animation-delay: 0.2s;
}

.feature-card:nth-child(3) {
    animation-delay: 0.3s;
}

.feature-card:nth-child(4) {
    animation-delay: 0.4s;
}

.feature-card:nth-child(5) {
    animation-delay: 0.5s;
}

.feature-card:nth-child(6) {
    animation-delay: 0.6s;
}

.feature-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

.feature-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-icon {
    margin-bottom: 24px;
    display: flex;
    justify-content: center;
}

.feature-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.feature-description {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* 定价方案 */
.pricing {
    padding: 100px 0;
    background: var(--bg-light);
}

/* VPN文档 */
.docs {
    padding: 100px 0;
    background: var(--bg-light);
}

.docs-page-shell {
    min-height: 100vh;
    padding-top: 88px;
    background: var(--bg-white);
}

.docs-page-intro {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 40px;
}

.docs-page-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.docs-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(320px, 1fr));
    gap: 28px;
    max-width: 1100px;
    margin: 0 auto;
}

.doc-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.doc-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.doc-preview {
    position: relative;
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, rgba(137, 64, 203, 0.16) 0%, rgba(33, 138, 208, 0.2) 100%);
    overflow: hidden;
}

.doc-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.doc-preview-system {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(11, 107, 255, 0.18) 0%, rgba(86, 183, 255, 0.24) 100%);
}

.doc-system-icon {
    width: 104px;
    height: 104px;
    object-fit: contain;
}

.doc-badge {
    position: absolute;
    top: 18px;
    left: 18px;
    display: inline-flex;
    align-items: center;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.72);
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.doc-body {
    padding: 28px;
}

.doc-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.doc-description {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 18px;
}

.doc-meta {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 22px;
}

.doc-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.doc-actions .btn {
    min-width: 140px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: stretch;
}

@media (max-width: 1024px) {
    .pricing-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

.pricing-card {
    background: #2a2a2a;
    border: 2px solid #3a3a3a;
    border-radius: var(--radius-lg);
    padding: 40px;
    text-align: center;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

[data-theme="light"] .pricing-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid #e0e0e0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .pricing-card:hover {
    box-shadow: 0 8px 32px rgba(137, 64, 203, 0.15);
    border-color: #8940CB;
}

@media (prefers-color-scheme: light) {
    .pricing-card {
        background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
        border: 2px solid #e0e0e0;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    }
}

.pricing-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 8px 32px rgba(137, 64, 203, 0.3);
    border-color: #8940CB;
}

.pricing-card.featured {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

[data-theme="light"] .pricing-card.featured {
    background: linear-gradient(135deg, #ffffff 0%, #faf5ff 100%);
    border: 2px solid #8940CB;
    box-shadow: 0 8px 32px rgba(137, 64, 203, 0.2);
}

@media (prefers-color-scheme: light) {
    .pricing-card.featured {
        background: linear-gradient(135deg, #ffffff 0%, #faf5ff 100%);
        border: 2px solid #8940CB;
        box-shadow: 0 8px 32px rgba(137, 64, 203, 0.2);
    }
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient);
    color: white;
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.pricing-header {
    margin-bottom: 32px;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.pricing-name {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #ffffff;
}

[data-theme="light"] .pricing-name {
    color: #1a1a1a;
}

@media (prefers-color-scheme: light) {
    .pricing-name {
        color: #1a1a1a;
    }
}

.pricing-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    margin-bottom: 12px;
}

.price-currency {
    font-size: 20px;
    color: #ffffff;
}

[data-theme="light"] .price-currency {
    color: #666666;
}

@media (prefers-color-scheme: light) {
    .price-currency {
        color: #666666;
    }
}

.price-amount {
    font-size: 48px;
    font-weight: 700;
    color: #8940CB;
}

.price-period {
    font-size: 16px;
    color: #ffffff;
}

[data-theme="light"] .price-period {
    color: #666666;
}

@media (prefers-color-scheme: light) {
    .price-period {
        color: #666666;
    }
}

.pricing-save {
    font-size: 14px;
    color: #8940CB;
    font-weight: 600;
}

.pricing-features {
    list-style: none;
    margin-bottom: auto;
    text-align: left;
    flex-grow: 1;
}

.pricing-features li {
    padding: 12px 0;
    font-size: 16px;
    color: #ffffff;
    border-bottom: 1px solid #3a3a3a;
}

[data-theme="light"] .pricing-features li {
    color: #1a1a1a;
    border-bottom: 1px solid #e0e0e0;
}

@media (prefers-color-scheme: light) {
    .pricing-features li {
        color: #1a1a1a;
        border-bottom: 1px solid #e0e0e0;
    }
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features li::before {
    content: '✓';
    color: #4ade80;
    font-weight: bold;
    margin-right: 12px;
    display: inline-block;
}

/* 服务器节点 */
.servers {
    padding: 100px 0;
    background: var(--bg-light);
}

.servers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.server-card {
    background: var(--bg-white);
    padding: 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: var(--transition);
    cursor: pointer;
}

.server-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow-md);
}

.server-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.server-card.selected {
    border: 2px solid var(--primary-color);
    background: linear-gradient(135deg, rgba(137, 64, 203, 0.05) 0%, rgba(33, 138, 208, 0.05) 100%);
}

.server-flag {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.server-info {
    flex: 1;
}

.server-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.server-ping {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ping-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ade80;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.ping-value {
    font-size: 14px;
    color: var(--text-secondary);
}

.servers-more {
    text-align: center;
    margin-top: 40px;
}

.servers-more p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

[data-theme="light"] .servers-more p {
    color: #666666;
}

@media (prefers-color-scheme: light) {
    .servers-more p {
        color: #666666;
    }
}


/* 下载区域 */
.download {
    padding: 100px 0;
    background: var(--bg-light);
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    align-items: stretch;
    max-width: 1160px;
    margin: 0 auto;
}

.download-meta span {
    margin-left: 5px;
}

.download-card {
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 60px 40px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    width: 100%;
}

.download-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.download-icon-wrapper {
    margin-bottom: 24px;
    display: flex;
    justify-content: center;
}

.app-icon {
    width: 72px;
    height: 72px;
    border-radius: 12px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.download-platform {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.download-note {
    font-size: 15px;
    color: var(--text-light);
    margin-bottom: 16px;
}

[data-theme="light"] .download-platform {
    color: #1a1a1a;
}

@media (prefers-color-scheme: light) {
    .download-platform {
        color: #1a1a1a;
    }
}

.download-meta {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

[data-theme="light"] .download-meta {
    color: #666666;
}

@media (prefers-color-scheme: light) {
    .download-meta {
        color: #666666;
    }
}

.download-card .download-btn {
    width: 100%;
}

.download-package-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 24px 0 0;
}

.download-package-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(137, 64, 203, 0.12);
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.4;
    border: 1px solid rgba(137, 64, 203, 0.18);
}

[data-theme="dark"] .download-package-pill {
    background: rgba(137, 64, 203, 0.2);
    color: #f3e8ff;
    border-color: rgba(137, 64, 203, 0.35);
}

/* Linux 下载页 */
.linux-page-shell {
    min-height: 100vh;
    padding: 120px 0 100px;
    background: var(--bg-light);
}

.linux-page-intro {
    max-width: 760px;
    margin: 0 auto 48px;
    text-align: center;
}

.linux-page-logo {
    width: 88px;
    height: 88px;
    margin-bottom: 20px;
}

.linux-page-summary {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 28px;
}

.linux-page-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 999px;
    background: var(--bg-white);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.linux-support-notice,
.linux-domestic-guide {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    text-align: left;
}

.linux-support-notice {
    margin-top: 28px;
    padding: 24px 28px;
    border-left: 4px solid #ff8a00;
}

.linux-support-title,
.linux-domestic-title {
    font-size: 24px;
    line-height: 1.3;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.linux-support-text {
    color: var(--text-secondary);
    font-size: 16px;
    margin: 0;
}

.linux-domestic-guide {
    margin-top: 24px;
    padding: 28px;
}

.linux-domestic-list {
    display: grid;
    gap: 16px;
}

.linux-domestic-item {
    padding: 18px 20px;
    border-radius: var(--radius-md);
    background: var(--bg-light);
    border: 1px solid var(--border-color);
}

.linux-domestic-item p {
    color: var(--text-secondary);
    margin: 10px 0 0;
}

.linux-domestic-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(33, 138, 208, 0.12);
    color: var(--text-primary);
    border: 1px solid rgba(33, 138, 208, 0.2);
    font-size: 14px;
    font-weight: 600;
}

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

.linux-package-card {
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.linux-package-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.linux-package-type {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--gradient);
    color: white;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 18px;
}

.linux-package-title {
    font-size: 28px;
    line-height: 1.25;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.linux-package-description {
    color: var(--text-secondary);
    margin-bottom: 18px;
}

.linux-package-meta {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 8px;
    word-break: break-word;
}

.linux-package-card .download-btn {
    width: 100%;
    margin-top: 24px;
}

/* 页脚 */
.footer {
    background: var(--bg-dark);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
}

.footer-description {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-column h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-column ul li a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 72px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 72px);
        background: var(--bg-white);
        flex-direction: column;
        padding: 40px 20px;
        box-shadow: var(--shadow-lg);
        transition: left 0.3s ease;
        overflow-y: auto;
    }

    [data-theme="light"] .nav-menu {
        background: #ffffff;
    }

    [data-theme="dark"] .nav-menu {
        background: #1a1a1a;
    }

    @media (prefers-color-scheme: light) {
        .nav-menu {
            background: #ffffff;
        }
    }

    @media (prefers-color-scheme: dark) {
        .nav-menu {
            background: #1a1a1a;
        }
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu a {
        display: block;
        padding: 12px 0;
        width: 100%;
    }

    [data-theme="light"] .nav-menu a {
        color: #1a1a1a;
    }

    [data-theme="dark"] .nav-menu a {
        color: #e0e0e0;
    }

    .nav-cta {
        margin-left: 0;
        margin-top: 16px;
        width: 100%;
    }

    .nav-cta .btn {
        width: 100%;
        margin-bottom: 12px;
    }

    .theme-toggle-wrapper {
        margin-left: 0;
        margin-top: 16px;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .theme-toggle {
        width: 100%;
        max-width: 200px;
    }

    [data-theme="light"] .theme-toggle {
        border-color: #e0e0e0;
        color: #1a1a1a;
    }

    [data-theme="dark"] .theme-toggle {
        border-color: #333333;
        color: #e0e0e0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .hero-title {
        font-size: 42px;
    }

    .hero-subtitle {
        font-size: 22px;
    }

    .hero-description {
        font-size: 16px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .hero-stats {
        gap: 40px;
    }

    .section-title {
        font-size: 32px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .docs-grid {
        grid-template-columns: 1fr;
    }

    .docs-page-shell {
        padding-top: 76px;
    }

    .servers-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .download-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 24px;
    }

    .servers-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 28px;
    }

    .container {
        padding: 0 16px;
    }

    .feature-card {
        padding: 32px 24px;
    }

    .pricing-card {
        padding: 32px 24px;
    }

    .doc-body {
        padding: 22px;
    }

    .doc-title {
        font-size: 24px;
    }

    .doc-actions .btn {
        width: 100%;
    }

    .docs-page-actions .btn {
        width: 100%;
    }

    .download-card {
        padding: 40px 24px;
    }

    .linux-page-shell {
        padding: 108px 0 80px;
    }

    .linux-package-card {
        padding: 32px 24px;
    }

    .linux-support-notice,
    .linux-domestic-guide {
        padding: 22px 20px;
    }

}

/* 平板设备优化 */
@media (min-width: 769px) and (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .servers-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 打印样式 */
@media print {

    .navbar,
    .hero-actions,
    .btn {
        display: none;
    }
}
