/* 全局样式 */
:root {
    --background-color: #121212;
    --surface-color: #1e1e1e;
    --primary-text-color: #e0e0e0;
    --secondary-text-color: #b0b0b0;
    --accent-color: #00e676;
    /* 亮绿色作为强调色 */
    --hover-color: #00ff88;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    color: var(--primary-text-color);
    line-height: 1.6;
}

/* 导航栏 */
header {
    background-color: rgba(30, 30, 30, 0.8);
    backdrop-filter: blur(10px);
    padding: 1rem 5%;
    position: fixed;
    width: 90%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #333;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--accent-color);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

nav a {
    color: var(--primary-text-color);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--accent-color);
}

/* 主体内容 */
main {
    padding-top: 80px;
    /* 为固定导航栏留出空间 */
}

section {
    padding: 6rem 5%;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

section h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-text-color);
}

.features h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    /* 减少标题下边距 */
    color: var(--primary-text-color);
    position: relative;
    z-index: 100;
}

/* Demo Section */
.demo-section {
    background: transparent;
    padding: 5rem 5% 6rem;
}

.demo-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-text-color);
}

.demo-description {
    font-size: 1.1rem;
    color: var(--secondary-text-color);
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.video-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 230, 118, 0.2);
    background: #000;
}

.video-container video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
}

.video-controls-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    transition: opacity 0.3s ease;
    pointer-events: auto;
}

.play-button {
    background: none;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease;
    padding: 0;
}

.play-button:hover {
    transform: scale(1.1);
}

.play-button svg circle {
    transition: fill 0.3s ease;
}

.play-button:hover svg circle {
    fill: var(--hover-color);
}

/* Hero Section */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--secondary-text-color);
    max-width: 600px;
    margin: 0 auto 2rem;
}

.cta-button {
    background-color: var(--accent-color);
    color: #000;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: background-color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.cta-button:hover {
    background-color: var(--hover-color);
    transform: translateY(-3px);
}


/* Hero typography refinements */
.hero-strong {
    color: var(--accent-color);
    font-weight: 700;
}

.hero-content h1 {
    letter-spacing: 0.3px;
}

.hero-sub {
    font-size: 1.15rem;
    color: var(--secondary-text-color);
}

/* Optional: subtle gradient text for emphasis */
.hero-content h1 {
    background: linear-gradient(90deg, #e6fff2 0%, #b2ffd3 50%, #e6fff2 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-content h1 .hero-strong {
    color: inherit;
}

/* Add a soft glow behind hero to modernize look */
.hero::after {
    content: "";
    position: absolute;
    inset: auto 10% 10% 10%;
    height: 180px;
    background: radial-gradient(60% 60% at 50% 50%, rgba(0, 230, 118, 0.15), transparent 70%);
    filter: blur(20px);
    pointer-events: none;
}

/* Features Section */
.features {
    background-color: transparent;
    /* 去掉背景色 */
    overflow: visible;
    /* 允许卡片翻转时超出容器 */
    position: relative;
    padding: 3rem 5% 2rem;
    /* 进一步减少padding，上3rem下2rem */
}

.card-stack-container {
    height: 350px;
    /* 从400px进一步减少到350px */
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1500px;
}

.card-stack {
    position: relative;
    width: 350px;
    /* 增加宽度 */
    height: 220px;
    /* 调整高度 */
    transition: transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
    transform-style: preserve-3d;
}

.card {
    position: absolute;
    left: 0;
    top: 0;
    width: 350px;
    height: 220px;
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 15px;
    padding: 2rem;
    box-sizing: border-box;
    text-align: left;
    /* 文本左对齐 */
    transition: transform 0.6s cubic-bezier(0.4, 0.0, 0.2, 1), opacity 0.6s;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    /* 改为指针光标，表示可点击 */
    transform-origin: center center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 1;
    /* 改为可见状态 */
}

.card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.card p {
    color: var(--secondary-text-color);
    font-size: 1rem;
    line-height: 1.5;
}

/* 初始堆叠效果 */
.card-stack .card:nth-child(1) {
    transform: translate(-10px, -10px) rotate(-4deg);
    z-index: 6;
}

.card-stack .card:nth-child(2) {
    transform: translate(-5px, -5px) rotate(-2deg);
    z-index: 5;
}

.card-stack .card:nth-child(3) {
    transform: translate(0, 0) rotate(0deg);
    z-index: 4;
}

.card-stack .card:nth-child(4) {
    transform: translate(5px, 5px) rotate(2deg);
    z-index: 3;
}

.card-stack .card:nth-child(5) {
    transform: translate(10px, 10px) rotate(4deg);
    z-index: 2;
}

.card-stack .card:nth-child(6) {
    transform: translate(15px, 15px) rotate(6deg);
    z-index: 1;
}

/* 悬停展开效果 - 镜像展开且居中，向下展开避免遮挡标题 */
.card-stack:hover .card:nth-child(1) {
    transform: translate(120px, 20px) rotate(25deg);
}

.card-stack:hover .card:nth-child(2) {
    transform: translate(50px, -10px) rotate(15deg);
}

.card-stack:hover .card:nth-child(3) {
    transform: translate(-10px, -20px) rotate(5deg);
}

.card-stack:hover .card:nth-child(4) {
    transform: translate(-70px, -10px) rotate(-5deg);
}

.card-stack:hover .card:nth-child(5) {
    transform: translate(-130px, 20px) rotate(-15deg);
}

.card-stack:hover .card:nth-child(6) {
    transform: translate(-190px, 70px) rotate(-25deg);
}

/* 点击展开状态 - 与悬停效果相同 */
.card-stack.expanded .card:nth-child(1) {
    transform: translate(120px, 20px) rotate(25deg);
}

.card-stack.expanded .card:nth-child(2) {
    transform: translate(50px, -10px) rotate(15deg);
}

.card-stack.expanded .card:nth-child(3) {
    transform: translate(-10px, -20px) rotate(5deg);
}

.card-stack.expanded .card:nth-child(4) {
    transform: translate(-70px, -10px) rotate(-5deg);
}

.card-stack.expanded .card:nth-child(5) {
    transform: translate(-130px, 20px) rotate(-15deg);
}

.card-stack.expanded .card:nth-child(6) {
    transform: translate(-190px, 70px) rotate(-25deg);
}

.card-stack:hover .card,
.card-stack.expanded .card {
    border-color: var(--hover-color);
}

/* 点击翻转效果 - 模拟现实中抽牌的效果 */
.card-stack .card.flipped-out {
    transform: translate(0px, 50px) rotate(0deg) scale(1.2) !important;
    z-index: 1000 !important;
    border-color: var(--accent-color) !important;
    box-shadow: 0 30px 60px rgba(0, 230, 118, 0.4) !important;
    filter: brightness(1.3) !important;
    opacity: 1 !important;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1),
        box-shadow 0.8s ease,
        filter 0.8s ease !important;
}

/* 抽取动画 - 卡片从牌堆中被抽出的过程 */
.card-stack .card.extracting {
    transform: translate(0px, -50px) rotate(0deg) scale(1.05) !important;
    z-index: 999 !important;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* 插入动画 - 卡片被插回牌堆的过程 */
.card-stack .card.inserting {
    transform: translate(0px, -50px) rotate(0deg) scale(1.05) !important;
    z-index: 999 !important;
    transition: transform 0.6s cubic-bezier(0.6, 0, 0.4, 1) !important;
}

/* 当有卡片翻出时，其他卡片保持展开状态但更紧凑 */
.card-stack.has-flipped-card .card:not(.flipped-out):nth-child(1) {
    transform: translate(80px, 10px) rotate(20deg);
    opacity: 0.8;
    filter: brightness(0.7);
}

.card-stack.has-flipped-card .card:not(.flipped-out):nth-child(2) {
    transform: translate(35px, -10px) rotate(12deg);
    opacity: 0.8;
    filter: brightness(0.7);
}

.card-stack.has-flipped-card .card:not(.flipped-out):nth-child(3) {
    transform: translate(-5px, -20px) rotate(4deg);
    opacity: 0.8;
    filter: brightness(0.7);
}

.card-stack.has-flipped-card .card:not(.flipped-out):nth-child(4) {
    transform: translate(-45px, -10px) rotate(-4deg);
    opacity: 0.8;
    filter: brightness(0.7);
}

.card-stack.has-flipped-card .card:not(.flipped-out):nth-child(5) {
    transform: translate(-85px, 10px) rotate(-12deg);
    opacity: 0.8;
    filter: brightness(0.7);
}

.card-stack.has-flipped-card .card:not(.flipped-out):nth-child(6) {
    transform: translate(-125px, 40px) rotate(-20deg);
    opacity: 0.8;
    filter: brightness(0.7);
}

/* How It Works Section */
.steps {
    display: flex;
    justify-content: space-around;
    gap: 2rem;
    margin-top: 4rem;
}

.step {
    max-width: 300px;
}

.step-number {
    width: 50px;
    height: 50px;
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent-color);
}

.step h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.step p {
    color: var(--secondary-text-color);
}

/* Download Section */
.download {
    background: transparent;
    /* 去掉背景色 */
}

.download p {
    font-size: 1.1rem;
    color: var(--secondary-text-color);
    margin-bottom: 2rem;
}

.download-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

/* 完整包下载小按钮 */
.download-full-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.2rem;
    background: rgba(0, 230, 118, 0.1);
    color: var(--accent-color);
    text-decoration: none;
    border-radius: 8px;
    border: 1px solid var(--accent-color);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.download-full-button:hover {
    background: rgba(0, 230, 118, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 230, 118, 0.3);
}

.download-full-button .button-icon {
    font-size: 1.1rem;
}

.download-full-button .button-note {
    font-size: 0.75rem;
    opacity: 0.7;
    margin-left: 0.3rem;
    font-style: italic;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem 5%;
    border-top: 1px solid #333;
    color: var(--secondary-text-color);
}

/* 响应式设计 */
@media (max-width: 768px) {
    nav ul {
        display: none;
        /* 在小屏幕上可以考虑使用汉堡菜单 */
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .demo-section {
        padding: 4rem 5%;
    }

    .demo-section h2 {
        font-size: 2rem;
    }

    .demo-description {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .video-container {
        border-radius: 12px;
    }

    .play-button svg {
        width: 50px;
        height: 50px;
    }

    .steps {
        flex-direction: column;
        align-items: center;
    }

    .step {
        margin-bottom: 2rem;
    }

    .download-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 1.5rem;
    }

    .download-full-button {
        justify-content: center;
        text-align: center;
    }
}


/* 下载页：Tabs/Subtabs 与下载网格 */
.tabs {
    display: inline-flex;
    gap: 0.5rem;
    padding: 0.4rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid #333;
    border-radius: 12px;
    margin: 1rem 0 1.2rem;
}

.tab {
    appearance: none;
    border: 1px solid transparent;
    background: transparent;
    color: var(--primary-text-color);
    padding: 0.55rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.98rem;
    transition: all .2s ease;
}

.tab:hover {
    border-color: #3a3a3a;
    background: rgba(255, 255, 255, 0.03);
}

.tab.active {
    border-color: var(--accent-color);
    color: #0c0c0c;
    background: var(--accent-color);
}

.tab-panels {
    margin-top: 0.5rem;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

.subtabs {
    display: inline-flex;
    gap: 0.5rem;
    padding: 0.35rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid #2f2f2f;
    border-radius: 10px;
    margin: 0.5rem 0 1rem;
}

.subtab {
    appearance: none;
    border: 1px solid transparent;
    background: transparent;
    color: var(--secondary-text-color);
    padding: 0.45rem 0.9rem;
    border-radius: 7px;
    cursor: pointer;
    font-size: 0.92rem;
    transition: all .2s ease;
}

.subtab:hover {
    border-color: #3a3a3a;
    background: rgba(255, 255, 255, 0.03);
    color: var(--primary-text-color);
}

.subtab.active {
    border-color: #3a3a3a;
    color: var(--primary-text-color);
    background: rgba(255, 255, 255, 0.04);
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(140px, 1fr));
    gap: 1rem;
    align-items: stretch;
    justify-items: center;
}

.download-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    width: 100%;
    max-width: 220px;
    min-height: 110px;
    padding: 1rem;
    border: 1px solid #3a3a3a;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(0, 0, 0, 0.12));
    color: var(--primary-text-color);
    text-decoration: none;
    transition: all .2s ease;
}

.download-btn:hover {
    transform: translateY(-2px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 30px rgba(0, 230, 118, 0.18);
}

.download-btn .arch {
    font-size: 1.15rem;
    font-weight: 600;
}

.download-btn .desc {
    font-size: 0.9rem;
    color: var(--secondary-text-color);
}

.download-btn.disabled {
    opacity: 0.55;
    cursor: not-allowed;
    pointer-events: none;
    border-style: dashed;
}

.hidden {
    display: none !important;
}

.download-note {
    margin-top: 1.2rem;
    color: var(--secondary-text-color);
    font-size: 0.95rem;
}

/* 响应式：下载网格 */
@media (max-width: 900px) {
    .download-grid {
        grid-template-columns: repeat(2, minmax(140px, 1fr));
    }
}

@media (max-width: 520px) {
    .download-grid {
        grid-template-columns: 1fr;
    }
}

/* 渐进式下载卡片 */
.download-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid #333;
    border-radius: 16px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    min-height: 400px;
}

.download-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 230, 118, 0.3), transparent);
}

.download-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
    text-align: center;
}

.download-card>p {
    font-size: 1rem;
    color: var(--secondary-text-color);
    margin-bottom: 2rem;
    text-align: center;
    line-height: 1.5;
}

/* 面包屑导航 */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    padding: 0.5rem 0;
}

.breadcrumb-item {
    background: none;
    border: none;
    color: var(--secondary-text-color);
    cursor: pointer;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.breadcrumb-item:hover {
    color: var(--primary-text-color);
}

.breadcrumb-separator {
    color: var(--secondary-text-color);
    opacity: 0.5;
}

/* 层级容器 */
.level-container {
    display: none;
    animation: fadeIn 0.3s ease;
}

.level-container.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 第一层：版本选择 */
.version-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    justify-items: center;
}

.version-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(0, 0, 0, 0.1));
    border: 1px solid #3a3a3a;
    border-radius: 12px;
    padding: 2rem;
    width: 100%;
    max-width: 320px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.version-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-color);
    box-shadow: 0 12px 40px rgba(0, 230, 118, 0.15);
}

.version-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.version-card h3 {
    color: var(--primary-text-color);
    margin-bottom: 0.8rem;
    font-size: 1.4rem;
}

.version-card p {
    color: var(--secondary-text-color);
    font-size: 0.95rem;
    line-height: 1.4;
}

/* 渐进式布局 */
.progressive-layout {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 1.5rem;
    align-items: start;
}

.sidebar {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    padding: 1rem;
}

.sidebar-title {
    font-size: 0.9rem;
    color: var(--secondary-text-color);
    margin-bottom: 0.8rem;
}

.selected-version,
.selected-sub {
    background: rgba(0, 230, 118, 0.1);
    border: 1px solid rgba(0, 230, 118, 0.3);
    border-radius: 8px;
    padding: 0.6rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--primary-text-color);
}

.content-area {
    min-height: 200px;
}

.sub-options {
    display: none;
}

.sub-options.active {
    display: block;
}

/* 子版本卡片 */
.sub-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(0, 0, 0, 0.08));
    border: 1px solid #3a3a3a;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    width: 100%;
}

.sub-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent-color);
    box-shadow: 0 8px 25px rgba(0, 230, 118, 0.12);
}

.sub-card h4 {
    color: var(--primary-text-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.sub-card p {
    color: var(--secondary-text-color);
    font-size: 0.9rem;
    line-height: 1.3;
}

/* 架构网格 */
.arch-grid {
    display: grid;
    grid-template-columns: 1fr;
    /* 大卡片单列展示 */
    gap: 1.2rem;
    /* 卡片之间的间隙 */
    align-items: stretch;
    justify-items: center;
}

.arch-options {
    display: none;
}

.arch-options.active {
    display: block;
}



/* 响应式设计 */
@media (max-width: 900px) {
    .download-card {
        padding: 1.5rem;
        margin: 1.5rem 0;
    }

    .progressive-layout {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .version-grid {
        grid-template-columns: 1fr;
    }

    .arch-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 520px) {
    .arch-grid {
        grid-template-columns: 1fr;
    }
}

/* 功能页内的iOS说明 - 不起眼样式 */
.ios-notice-features {
    font-size: 0.75rem;
    color: rgba(176, 176, 176, 0.6);
    opacity: 0.55;
    transition: opacity 0.2s ease;
    margin: -0.6rem 0 1rem 0;
    /* 紧贴标题下方，整体更低调 */
}

.ios-notice-features:hover {
    opacity: 0.8;
}

.ios-notice-features .notice-text {
    font-style: italic;
}

/* 小屏幕下调整 */
@media (max-width: 768px) {
    .ios-notice-features {
        font-size: 0.7rem;
        margin: -0.4rem 0 0.8rem 0;
    }
}

/* Ensure single-column arch grid on smaller screens for larger cards */
@media (max-width: 900px) {
    .arch-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Make arch cards span full available width */
.arch-grid {
    width: 100%;
    justify-items: stretch;
}


/* 统一所有版本的卡片样式 */
.sub-card {
    display: block;
    text-decoration: none;
    color: var(--primary-text-color);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(0, 0, 0, 0.08));
    border: 1px solid #3a3a3a;
    border-radius: 10px;
    padding: 1.6rem 1.5rem;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    width: 100%;
    min-height: 140px;
    box-sizing: border-box;
}

.sub-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent-color);
    box-shadow: 0 8px 25px rgba(0, 230, 118, 0.12);
}

.sub-card h4 {
    color: var(--primary-text-color);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.sub-card p {
    color: var(--secondary-text-color);
    font-size: 1rem;
    line-height: 1.3;
}

/* 确保所有架构网格都是单列布局 */
.arch-grid {
    width: 100%;
    justify-items: stretch;
    grid-template-columns: 1fr;
}

/* 移动版下载卡片样式 - 参考桌面版设计 */
.mobile-download-card {
    margin-top: 3rem;
}

.mobile-download-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
    text-align: center;
}

.mobile-download-card p {
    font-size: 1rem;
    color: var(--secondary-text-color);
    margin-bottom: 2rem;
    text-align: center;
}

.mobile-download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
    justify-items: center;
}

.mobile-platform-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(0, 0, 0, 0.1));
    border: 1px solid #3a3a3a;
    border-radius: 12px;
    padding: 2rem;
    width: 100%;
    max-width: 320px;
    color: inherit;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: block;
    text-align: center;
}

.mobile-platform-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-color);
    box-shadow: 0 12px 40px rgba(0, 230, 118, 0.15);
}

.platform-icon {
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    font-size: 2.5rem;
}

.android-card .platform-icon {
    color: #3DDC84;
}

.ios-card .platform-icon {
    color: #007AFF;
}

.platform-info {
    text-align: center;
    margin-bottom: 1.5rem;
}

.platform-info h4 {
    color: var(--primary-text-color);
    margin-bottom: 0.8rem;
    font-size: 1.4rem;
    font-weight: 600;
}

.platform-info p {
    color: var(--secondary-text-color);
    font-size: 0.95rem;
    line-height: 1.4;
    margin-bottom: 1rem;
}

.platform-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.feature-item {
    background: rgba(0, 230, 118, 0.1);
    color: var(--accent-color);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(0, 230, 118, 0.2);
}

.download-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    justify-content: center;
}

.download-btn {
    flex: 1;
    padding: 0.4rem 0.6rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: center;
    font-size: 0.75rem;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.05rem;
    min-height: auto;
}

.download-btn.primary {
    background: var(--accent-color);
    color: #000;
}

.download-btn.primary:hover {
    background: var(--hover-color);
    transform: translateY(-2px);
}

.download-btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary-text-color);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.download-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.download-text {
    font-weight: 600;
    font-size: 0.75rem;
}

.download-size {
    font-size: 0.65rem;
    opacity: 0.8;
}

.platform-notice {
    text-align: center;
    padding: 0.5rem;
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 5px;
    font-size: 0.8rem;
    color: #ffc107;
    margin-top: 0.8rem;
}



/* 对比表格 */
.app-vs-web {
    margin-top: 3rem;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
}

.comparison-header h4 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
    text-align: center;
}

.comparison-table {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 1px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.comparison-row {
    display: contents;
}

.comparison-row>div {
    padding: 1rem;
    background: rgba(30, 30, 30, 0.8);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.comparison-row>div:last-child {
    border-right: none;
}

.comparison-row.header>div {
    background: rgba(0, 230, 118, 0.15);
    font-weight: 600;
    color: var(--accent-color);
    text-align: center;
    border-bottom: 2px solid rgba(0, 230, 118, 0.3);
}

.feature-name {
    text-align: left;
    font-weight: 500;
    color: var(--primary-text-color);
}

.app-column,
.web-column {
    text-align: center;
    font-size: 0.9rem;
    font-weight: 500;
}

.supported {
    color: var(--accent-color);
}

.not-supported {
    color: #f85149;
}

.partial {
    color: #ffc107;
}

/* 移动版下载卡片响应式设计 */
@media (max-width: 900px) {
    .mobile-download-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .mobile-platform-card {
        max-width: 100%;
        margin: 0;
    }
}

@media (max-width: 768px) {
    .mobile-download-card {
        margin-top: 2rem;
        padding: 1.5rem;
    }

    .mobile-download-card h3 {
        font-size: 1.5rem;
        margin-bottom: 0.8rem;
    }

    .mobile-download-card p {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
        padding: 0 0.5rem;
    }

    .mobile-download-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
        margin-bottom: 1.5rem;
    }

    .mobile-platform-card {
        max-width: none;
        padding: 1.5rem 1rem;
        margin: 0;
        border-radius: 10px;
    }

    .platform-icon {
        margin-bottom: 1rem;
    }

    .platform-icon svg {
        width: 36px;
        height: 36px;
    }

    .platform-info {
        margin-bottom: 1.2rem;
    }

    .platform-info h4 {
        font-size: 1.2rem;
        margin-bottom: 0.6rem;
    }

    .platform-info p {
        font-size: 0.9rem;
        margin-bottom: 0.8rem;
        line-height: 1.4;
    }

    .platform-features {
        gap: 0.4rem;
        margin-bottom: 1.2rem;
        justify-content: center;
    }

    .feature-item {
        font-size: 0.75rem;
        padding: 0.25rem 0.6rem;
        border-radius: 12px;
    }

    .download-actions {
        flex-direction: row;
        gap: 0.6rem;
        margin-top: 1rem;
        justify-content: center;
    }

    .download-btn {
        padding: 0.5rem 0.6rem;
        font-size: 0.75rem;
        border-radius: 5px;
        min-height: 36px;
    }

    .download-text {
        font-size: 0.75rem;
        line-height: 1.2;
    }

    .download-size {
        font-size: 0.6rem;
    }

    .platform-notice {
        padding: 0.6rem;
        font-size: 0.8rem;
        margin-top: 1rem;
        border-radius: 6px;
    }
}

/* 小屏幕设备适配 (520px以下) */
@media (max-width: 520px) {
    .mobile-download-card {
        margin-top: 1.5rem;
        padding: 1rem;
    }

    .mobile-download-card h3 {
        font-size: 1.3rem;
        margin-bottom: 0.6rem;
    }

    .mobile-download-card p {
        font-size: 0.9rem;
        padding: 0;
        margin-bottom: 1.2rem;
    }

    .mobile-download-grid {
        gap: 1rem;
    }

    .mobile-platform-card {
        padding: 1.2rem 0.8rem;
        border-radius: 8px;
    }

    .platform-icon svg {
        width: 32px;
        height: 32px;
    }

    .platform-info h4 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    .platform-info p {
        font-size: 0.85rem;
        margin-bottom: 0.6rem;
    }

    .platform-features {
        gap: 0.3rem;
        margin-bottom: 1rem;
    }

    .feature-item {
        font-size: 0.7rem;
        padding: 0.2rem 0.5rem;
        border-radius: 10px;
    }

    .download-actions {
        flex-direction: column;
        gap: 0.5rem;
        margin-top: 0.8rem;
        align-items: center;
    }

    .download-btn {
        padding: 0.45rem;
        font-size: 0.7rem;
        min-height: 34px;
        min-width: 120px;
    }

    .download-text {
        font-size: 0.7rem;
    }

    .download-size {
        font-size: 0.6rem;
    }

    .platform-notice {
        padding: 0.4rem;
        font-size: 0.7rem;
        margin-top: 0.6rem;
    }
}

/* 超小屏幕设备适配 (375px以下) */
@media (max-width: 375px) {
    .mobile-download-card {
        padding: 0.8rem;
    }

    .mobile-download-card h3 {
        font-size: 1.2rem;
    }

    .mobile-download-card p {
        font-size: 0.85rem;
    }

    .mobile-platform-card {
        padding: 1rem 0.6rem;
    }

    .platform-icon svg {
        width: 28px;
        height: 28px;
    }

    .platform-info h4 {
        font-size: 1rem;
    }

    .platform-info p {
        font-size: 0.8rem;
    }

    .feature-item {
        font-size: 0.65rem;
        padding: 0.15rem 0.4rem;
    }

    .download-btn {
        padding: 0.4rem;
        font-size: 0.65rem;
        min-height: 32px;
    }

    .download-text {
        font-size: 0.65rem;
    }

    .download-size {
        font-size: 0.55rem;
    }
}

.app-vs-web {
    margin-top: 2rem;
    padding: 1.2rem;
    border-radius: 10px;
}

.comparison-header h4 {
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
}

.comparison-table {
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 1px;
    font-size: 0.85rem;
}

.comparison-row>div {
    padding: 0.7rem 0.5rem;
    font-size: 0.85rem;
}

.comparison-row.header>div {
    padding: 0.6rem 0.5rem;
    font-size: 0.8rem;
}

.feature-name {
    text-align: left;
    font-size: 0.85rem;
}

.app-column,
.web-column {
    text-align: center;
    font-size: 0.8rem;
}

/* 二维码弹窗样式 */
.qr-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.qr-modal.show {
    opacity: 1;
    visibility: visible;
}

.qr-modal-content {
    background: var(--surface-color);
    border-radius: 16px;
    padding: 0;
    max-width: 400px;
    width: 90%;
    border: 1px solid rgba(0, 230, 118, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.qr-modal.show .qr-modal-content {
    transform: scale(1);
}

.qr-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.qr-modal-header h3 {
    margin: 0;
    color: var(--accent-color);
    font-size: 1.3rem;
}

.qr-close-btn {
    background: none;
    border: none;
    color: var(--secondary-text-color);
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.qr-close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary-text-color);
}

.qr-modal-body {
    padding: 2rem;
    text-align: center;
}

.qr-code-container {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
}

.qr-instructions {
    color: var(--secondary-text-color);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.qr-download-info {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 1rem;
    text-align: left;
}

.qr-download-info p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
}

.download-url {
    color: var(--accent-color);
    word-break: break-all;
    font-family: monospace;
    background: rgba(0, 230, 118, 0.1);
    padding: 0.5rem;
    border-radius: 4px;
    border: 1px solid rgba(0, 230, 118, 0.2);
}

/* 二维码弹窗样式 */
.qr-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.qr-modal.show {
    opacity: 1;
}

.qr-modal-content {
    background: var(--surface-color);
    border: 1px solid #444;
    border-radius: 16px;
    padding: 0;
    max-width: 400px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.qr-modal.show .qr-modal-content {
    transform: scale(1);
}

.qr-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #333;
    background: linear-gradient(135deg, rgba(0, 230, 118, 0.1), rgba(0, 230, 118, 0.05));
}

.qr-modal-header h3 {
    margin: 0;
    color: var(--accent-color);
    font-size: 1.3rem;
    font-weight: 600;
}

.qr-modal-close {
    background: none;
    border: none;
    color: var(--secondary-text-color);
    font-size: 1.8rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.qr-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary-text-color);
}

.qr-modal-body {
    padding: 2rem;
    text-align: center;
}

.qr-code-container {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.qr-code-container canvas {
    border-radius: 8px;
}

.qr-instructions {
    margin-bottom: 1.5rem;
}

.qr-instructions p {
    color: var(--primary-text-color);
    font-size: 1rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.qr-file-info {
    color: var(--secondary-text-color);
    font-size: 0.9rem;
    font-style: italic;
}

.qr-url {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #333;
    border-radius: 8px;
    margin-top: 1rem;
}

.qr-url span {
    color: var(--secondary-text-color);
    font-size: 0.85rem;
    word-break: break-all;
    font-family: 'Courier New', monospace;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.5rem;
    border-radius: 4px;
}

.copy-url-btn {
    background: var(--accent-color);
    color: #000;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: center;
}

.copy-url-btn:hover {
    background: var(--hover-color);
    transform: translateY(-1px);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .qr-modal-content {
        width: 95%;
        max-width: 350px;
    }

    .qr-modal-header {
        padding: 1.2rem 1.5rem;
    }

    .qr-modal-header h3 {
        font-size: 1.2rem;
    }

    .qr-modal-body {
        padding: 1.5rem;
    }

    .qr-code-container {
        padding: 0.8rem;
    }

    .qr-code-container canvas {
        width: 160px !important;
        height: 160px !important;
    }

    .qr-instructions p {
        font-size: 0.95rem;
    }

    .qr-url {
        padding: 0.8rem;
    }

    .qr-url span {
        font-size: 0.8rem;
        padding: 0.4rem;
    }

    .copy-url-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .qr-modal-content {
        width: 95%;
        margin: 1rem;
    }

    .qr-modal-header {
        padding: 1rem;
    }

    .qr-modal-header h3 {
        font-size: 1.1rem;
    }

    .qr-modal-body {
        padding: 1.2rem;
    }

    .qr-code-container canvas {
        width: 140px !important;
        height: 140px !important;
    }

    .qr-instructions p {
        font-size: 0.9rem;
    }

    .qr-file-info {
        font-size: 0.8rem;
    }

    .qr-url span {
        font-size: 0.75rem;
    }

    .copy-url-btn {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
    }
}

/* 二维
码弹窗提示样式 */
.qr-tips {
    margin-top: 1rem;
    padding: 0.8rem;
    background: rgba(0, 230, 118, 0.1);
    border: 1px solid rgba(0, 230, 118, 0.2);
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--secondary-text-color);
    line-height: 1.4;
}

.qr-tips p {
    margin: 0;
    text-align: left;
}

/* 设置IP按钮样式 */
.qr-modal-header button:not(.qr-modal-close) {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #666;
    border-radius: 4px;
    color: #ccc;
    cursor: pointer;
    font-size: 12px;
    padding: 4px 8px;
    margin-left: 10px;
    transition: all 0.2s ease;
}

.qr-modal-header button:not(.qr-modal-close):hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--accent-color);
    color: var(--accent-color);
}

/* 响应式调整 */
@media (max-width: 480px) {
    .qr-tips {
        font-size: 0.8rem;
        padding: 0.6rem;
    }

    .qr-modal-header button:not(.qr-modal-close) {
        font-size: 10px;
        padding: 2px 6px;
        margin-left: 5px;
    }
}