/* ============================================================
   Uni 系列 · 全局样式（支持亮色/暗色主题）
   ============================================================ */

/* ===== CSS 变量（主题系统） ===== */
:root {
    /* 暗色主题（默认） */
    --bg-primary: #0b0d0f;
    --bg-secondary: #0d1117;
    --bg-card: #161b22;
    --bg-card-hover: #1c2128;
    --bg-input: #1c2128;
    --border-color: #30363d;
    --border-light: #21262d;
    --text-primary: #e6edf3;
    --text-secondary: #8b949e;
    --text-muted: #b6c8db;
    --accent: #58a6ff;
    --accent-bg: rgba(88, 166, 255, 0.08);
    --accent-border: rgba(88, 166, 255, 0.2);
    --btn-primary-bg: #238636;
    --btn-primary-hover: #2ea043;
    --btn-download-bg: #1f6feb;
    --btn-download-hover: #388bfd;
    --shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
    --gradient-hero: linear-gradient(135deg, #f0f6fc 0%, #b6c8db 100%);
    --gradient-tech: linear-gradient(135deg, rgba(88, 166, 255, 0.12) 0%, rgba(88, 166, 255, 0.02) 100%);
    --theme-transition: 0.3s ease;
}

/* ===== 亮色主题 ===== */
[data-theme="light"] {
    --bg-primary: #f6f8fa;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --bg-card-hover: #f0f2f5;
    --bg-input: #ffffff;
    --border-color: #d0d7de;
    --border-light: #d0d7de;
    --text-primary: #1f2328;
    --text-secondary: #57606a;
    --text-muted: #6e7781;
    --accent: #0969da;
    --accent-bg: rgba(9, 105, 218, 0.08);
    --accent-border: rgba(9, 105, 218, 0.2);
    --btn-primary-bg: #1f883d;
    --btn-primary-hover: #2da44e;
    --btn-download-bg: #0969da;
    --btn-download-hover: #0550ae;
    --shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    --gradient-hero: linear-gradient(135deg, #1f2328 0%, #57606a 100%);
    --gradient-tech: linear-gradient(135deg, rgba(9, 105, 218, 0.10) 0%, rgba(9, 105, 218, 0.02) 100%);
}

/* ===== 基础重置 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    transition: background var(--theme-transition), color var(--theme-transition);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ===== 导航 ===== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 0;
    border-bottom: 1px solid var(--border-color);
    transition: border-color var(--theme-transition);
    flex-wrap: wrap;
    gap: 0.8rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--text-primary);
}

.logo i {
    color: var(--accent);
    font-size: 1.6rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
    font-weight: 500;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

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

/* ===== 主题切换按钮 ===== */
.theme-toggle {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 30px;
    padding: 0.4rem 1.2rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
    outline: none;
    font-family: inherit;
    line-height: 1.5;
    min-height: 38px;
    font-weight: 600;
}

.theme-toggle:hover {
    border-color: var(--accent);
    color: var(--text-primary);
    background: var(--bg-card-hover);
}

.theme-toggle:active {
    transform: scale(0.95);
}

/* ===== Hero ===== */
.hero,
.product-hero {
    text-align: center;
    padding: 4rem 0 3rem;
}

.hero-badge {
    display: inline-block;
    background: var(--accent-bg);
    border: 1px solid var(--accent-border);
    border-radius: 40px;
    padding: 0.3rem 1.2rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.3px;
    margin-bottom: 1.5rem;
    transition: background var(--theme-transition), border-color var(--theme-transition);
}

.hero h1,
.product-hero h1 {
    font-size: 4.2rem;
    font-weight: 800;
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    line-height: 1.1;
    transition: background var(--theme-transition);
}

.hero .sub,
.product-hero .sub {
    font-size: 1.3rem;
    color: var(--text-secondary);
    max-width: 650px;
    margin: 0 auto 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== 界面展示 / 轮播图（全新设计） ===== */
.gallery-section {
    margin: 3rem 0;
}

.gallery-sub {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 2rem;
}

/* ===== 轮播图容器 ===== */
.carousel-container {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}

/* ===== 轨道 ===== */
.carousel-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

/* ===== 每一页 ===== */
.carousel-slide {
    min-width: 100%;
    flex-shrink: 0;
}

/* ===== 图片容器 ===== */
.slide-placeholder {
    width: 100%;
    aspect-ratio: 1920 / 1035;
    max-height: 520px;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

@media (max-width: 1200px) {
    .slide-placeholder {
        max-height: 420px;
    }
}

@media (max-width: 768px) {
    .slide-placeholder {
        max-height: 320px;
    }
}

@media (max-width: 480px) {
    .slide-placeholder {
        max-height: 220px;
    }
}

.slide-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ===== 图片加载完成前占位 ===== */
.slide-placeholder .loading-placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}

.slide-placeholder .loading-placeholder i {
    font-size: 3rem;
    color: var(--accent);
    opacity: 0.4;
}

/* ===== 左右箭头（全新设计） ===== */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    font-size: 1.2rem;
    opacity: 0;
    pointer-events: none;
}

.carousel-container:hover .carousel-arrow {
    opacity: 1;
    pointer-events: auto;
}

.carousel-arrow:hover {
    background: rgba(0, 0, 0, 0.8);
    border-color: var(--accent);
    transform: translateY(-50%) scale(1.05);
}

.carousel-arrow:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-arrow-left {
    left: 20px;
}

.carousel-arrow-right {
    right: 20px;
}

/* ===== 底部圆点指示器 ===== */
.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 30px;
    z-index: 10;
}

.carousel-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    padding: 0;
}

.carousel-dots .dot.active {
    background: var(--accent);
    transform: scale(1.2);
    box-shadow: 0 0 12px rgba(88, 166, 255, 0.4);
}

.carousel-dots .dot:hover {
    background: rgba(255, 255, 255, 0.7);
}

.carousel-dots .dot.active:hover {
    background: var(--accent);
}

/* ===== 页码指示器（可选） ===== */
.carousel-counter {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    z-index: 10;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* ===== 亮色主题适配 ===== */
[data-theme="light"] .carousel-arrow {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(0, 0, 0, 0.1);
    color: #1f2328;
}

[data-theme="light"] .carousel-arrow:hover {
    background: #ffffff;
    border-color: var(--accent);
}

[data-theme="light"] .carousel-dots {
    background: rgba(255, 255, 255, 0.85);
}

[data-theme="light"] .carousel-dots .dot {
    background: rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .carousel-dots .dot.active {
    background: var(--accent);
}

[data-theme="light"] .carousel-counter {
    background: rgba(255, 255, 255, 0.85);
    color: #1f2328;
}

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
    .slide-placeholder {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .slide-placeholder {
        height: 320px;
    }

    .carousel-arrow {
        width: 38px;
        height: 38px;
        font-size: 0.9rem;
    }

    .carousel-arrow-left {
        left: 12px;
    }

    .carousel-arrow-right {
        right: 12px;
    }

    .carousel-dots {
        gap: 8px;
        padding: 6px 14px;
        bottom: 14px;
    }

    .carousel-dots .dot {
        width: 8px;
        height: 8px;
    }

    .carousel-counter {
        font-size: 0.65rem;
        top: 14px;
        right: 14px;
        padding: 2px 10px;
    }
}

@media (max-width: 480px) {
    .slide-placeholder {
        height: 240px;
    }

    .carousel-arrow {
        width: 32px;
        height: 32px;
        font-size: 0.75rem;
    }

    .carousel-arrow-left {
        left: 8px;
    }

    .carousel-arrow-right {
        right: 8px;
    }

    .carousel-dots {
        gap: 6px;
        padding: 4px 12px;
        bottom: 10px;
    }

    .carousel-dots .dot {
        width: 6px;
        height: 6px;
    }

    .carousel-counter {
        font-size: 0.6rem;
        top: 10px;
        right: 10px;
        padding: 2px 8px;
    }
}

/* ===== 暗色主题下图片容器的微调 ===== */
[data-theme="dark"] .slide-placeholder {
    background: #0d1117;
}

/* ===== 图片加载动画 ===== */
.slide-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* 改为 cover，填满容器 */
    background: var(--bg-secondary);
    display: block;
}

.slide-placeholder img.loaded {
    opacity: 1;
}

@keyframes fadeInImage {
    from {
        opacity: 0;
        transform: scale(0.98);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ===== 模拟窗口 ===== */
.mock-window {
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    text-align: left;
}

.mock-titlebar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
}

.mock-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.mock-dot.red {
    background: #ff5f56;
}

.mock-dot.yellow {
    background: #ffbd2e;
}

.mock-dot.green {
    background: #27c93f;
}

.mock-title {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-left: 0.5rem;
    font-weight: 500;
}

.mock-body {
    padding: 1rem;
    background: var(--bg-secondary);
    min-height: 120px;
}

.mock-3d {
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 1rem;
}

.mock-robot {
    text-align: center;
    padding: 0.5rem 1rem;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    min-width: 100px;
}

.mock-controls {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.mock-control-item {
    padding: 0.3rem 0.8rem;
    background: var(--bg-card);
    border-radius: 20px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.mock-btn {
    border: none;
    border-radius: 20px;
    padding: 0.3rem 1.2rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
    cursor: default;
    transition: opacity 0.2s;
}

.mock-btn:hover {
    opacity: 0.8;
}

/* ===== 轮播图控制 ===== */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
    font-size: 1.2rem;
}

.carousel-arrow:hover {
    background: rgba(0, 0, 0, 0.8);
    border-color: var(--accent);
}

.carousel-arrow-left {
    left: 16px;
}

.carousel-arrow-right {
    right: 16px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    padding: 1rem 0 1.2rem;
}

.carousel-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border-color);
    cursor: pointer;
    transition: all 0.3s;
}

.carousel-dots .dot.active {
    background: var(--accent);
    transform: scale(1.2);
}

.carousel-dots .dot:hover {
    background: var(--text-secondary);
}

/* ===== 轮播图响应式 ===== */
@media (max-width: 800px) {
    .slide-placeholder {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .slide-label {
        font-size: 1.2rem;
    }

    .slide-desc {
        font-size: 0.85rem;
    }

    .carousel-arrow {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }

    .carousel-arrow-left {
        left: 8px;
    }

    .carousel-arrow-right {
        right: 8px;
    }

    .mock-3d {
        flex-direction: column;
    }
}

@media (max-width: 500px) {
    .slide-placeholder {
        min-height: 300px;
        padding: 1rem;
    }

    .carousel-arrow {
        width: 30px;
        height: 30px;
        font-size: 0.7rem;
    }
}

/* ===== 按钮 ===== */
.btn-primary {
    background: var(--btn-primary-bg);
    color: #fff;
    padding: 0.8rem 2rem;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    transition: background 0.2s;
}

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

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 0.8rem 2rem;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    transition: all 0.2s;
}

.btn-outline i {
    color: var(--text-secondary);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* ===== Hero 统计 ===== */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 3rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--border-color);
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--accent);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.2rem;
}

/* ===== 版本信息 ===== */
.version-info {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 1.5rem 0 2rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.version-info i {
    margin-right: 0.4rem;
    color: var(--accent);
}

/* ===== 产品列表 ===== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    padding: 2rem 0 4rem;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem 1.8rem;
    transition: all 0.3s;
    text-decoration: none;
    color: inherit;
    display: block;
}

.product-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.product-card .icon-wrap {
    display: inline-flex;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--accent-bg);
    color: var(--accent);
    font-size: 1.8rem;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.product-card h2 {
    font-size: 1.5rem;
    margin-bottom: 0.3rem;
}

.product-card .tagline {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.product-card .description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.product-card .status {
    display: inline-block;
    margin-top: 0.8rem;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
}

/* ===== 不可用产品（灰色禁用状态） ===== */
.product-card.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    filter: grayscale(0.8);
    pointer-events: none;
}

.product-card.disabled:hover {
    transform: none;
    border-color: var(--border-color);
    box-shadow: none;
}

.product-card .coming-soon {
    margin-top: 0.8rem;
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    color: #8b949e;
    background: #21262d;
    display: inline-block;
    letter-spacing: 0.3px;
}

.status.stable {
    background: rgba(46, 160, 67, 0.2);
    color: #3fb950;
}

.status.beta {
    background: rgba(88, 166, 255, 0.2);
    color: var(--accent);
}

.status.dev {
    background: rgba(210, 153, 34, 0.2);
    color: #d29922;
}

/* ===== 功能卡片 ===== */
.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 3.5rem 0 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--text-primary);
}

.section-title i {
    color: var(--accent);
    font-size: 1.8rem;
}

/* ===== 功能特性列表 ===== */
.feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 0.8rem;
    margin: 1.5rem 0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.7rem 1rem;
    background: var(--bg-card);
    border-radius: 10px;
    border: 1px solid var(--border-light);
}

.feature-item i {
    color: var(--accent);
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

.feature-item span {
    color: var(--text-primary);
    font-size: 0.9rem;
}

/* ===== 卡片网格 ===== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 1.5rem;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.8rem 1.2rem 1.5rem;
    transition: border-color 0.2s, background var(--theme-transition);
}

.card:hover {
    border-color: var(--accent);
}

.card-icon {
    font-size: 1.8rem;
    color: var(--accent);
    margin-bottom: 1rem;
    background: var(--accent-bg);
    padding: 0.4rem;
    border-radius: 12px;
    display: inline-block;
}

.card h3 {
    font-size: 1.05rem;
    margin-bottom: 0.4rem;
}

.card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.tag {
    display: inline-block;
    margin-top: 0.8rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    padding: 0.2rem 0.8rem;
    font-size: 0.7rem;
    color: var(--text-secondary);
}

/* ===== 技术亮点 ===== */
.tech-section {
    background: var(--bg-secondary);
    border-radius: 24px;
    border: 1px solid var(--border-color);
    padding: 3rem;
    margin: 2.5rem 0;
    transition: background var(--theme-transition), border-color var(--theme-transition);
}

.tech-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.tech-header h2 {
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    color: var(--text-primary);
}

.tech-header h2 i {
    color: var(--accent);
}

.tech-header p {
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0.5rem auto 0;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.tech-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.8rem 1.5rem;
    transition: all 0.3s;
}

.tech-item:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
}

.tech-item .icon-wrap {
    display: inline-flex;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--accent-bg);
    color: var(--accent);
    font-size: 1.4rem;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.tech-item h3 {
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
}

.tech-item p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.highlight-tag {
    display: inline-block;
    margin-top: 0.8rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--accent);
    background: var(--accent-bg);
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
}

/* ===== 下载区 ===== */
.download-section {
    background: var(--bg-secondary);
    border-radius: 24px;
    border: 1px solid var(--border-color);
    padding: 2.5rem 2.8rem;
    margin: 2rem 0;
    transition: background var(--theme-transition), border-color var(--theme-transition);
}

.download-flex {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.download-text h3 {
    font-size: 1.6rem;
    color: var(--text-primary);
}

.download-text p {
    color: var(--text-secondary);
    max-width: 450px;
    margin-top: 0.3rem;
}

.download-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.download-actions .btn-primary {
    background: var(--btn-download-bg);
}

.download-actions .btn-primary:hover {
    background: var(--btn-download-hover);
}

/* ===== 系统要求 ===== */
.system-requirements {
    background: var(--bg-secondary);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    padding: 1.8rem 2rem;
    margin: 1.5rem 0;
}

.system-requirements h4 {
    color: var(--text-primary);
    margin-bottom: 0.8rem;
}

.system-requirements ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.5rem;
}

.system-requirements li {
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding: 0.3rem 0;
}

.system-requirements li i {
    color: var(--accent);
    margin-right: 0.6rem;
    width: 16px;
}

/* ===== 平台标签 ===== */
.platform-tags {
    display: flex;
    gap: 0.8rem;
    margin-top: 0.8rem;
    flex-wrap: wrap;
}

.platform-tag {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 40px;
    padding: 0.3rem 1rem;
    font-size: 0.75rem;
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: background var(--theme-transition), border-color var(--theme-transition);
}

.platform-tag i {
    color: var(--accent);
}

/* ===== 截图标签 ===== */
.screenshot-tags {
    margin-top: 1.8rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    border-top: 1px solid var(--border-color);
    padding-top: 1.8rem;
}

.screenshot-tag {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: var(--bg-card);
    border-radius: 40px;
    padding: 0.3rem 1.2rem 0.3rem 0.8rem;
    border: 1px solid var(--border-color);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.screenshot-tag i {
    color: var(--accent);
}

/* ===== 页脚 ===== */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 2.5rem 0;
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
    transition: border-color var(--theme-transition);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.footer-brand i {
    color: var(--accent);
    font-size: 1.2rem;
}

.footer-brand span {
    font-weight: 600;
    color: var(--text-primary);
}

.footer-brand .sub {
    font-weight: 400;
    color: var(--text-secondary);
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

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

.footer-links i {
    margin-right: 0.3rem;
    color: var(--accent);
}

/* ===== 调试指示器 ===== */
.theme-indicator {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.4rem 1rem;
    font-size: 0.7rem;
    color: var(--text-secondary);
    z-index: 9999;
    opacity: 0.6;
    font-family: monospace;
    transition: all 0.3s;
    pointer-events: none;
}

.theme-indicator span {
    color: var(--accent);
    font-weight: 700;
}

/* ===== 系统要求 ===== */
.requirements-section {
    margin: 3rem 0;
}

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

.requirement-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.8rem 1.5rem;
    transition: border-color 0.3s;
}

.requirement-item:hover {
    border-color: var(--accent);
}

.requirement-item h4 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 0.8rem;
}

.requirement-item h4 i {
    color: var(--accent);
    margin-right: 0.5rem;
}

.requirement-item ul {
    list-style: none;
}

.requirement-item li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding: 0.2rem 0;
    padding-left: 0.5rem;
}

.requirement-item li::before {
    content: "› ";
    color: var(--accent);
    font-weight: 700;
}

.requirement-item li strong {
    color: var(--text-primary);
}

/* ===== 显卡说明 ===== */
.requirements-note {
    margin-top: 1.2rem;
    padding: 1.2rem 1.5rem;
    background: var(--accent-bg);
    border: 1px solid var(--accent-border);
    border-radius: 12px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.requirements-note p {
    margin-bottom: 0.3rem;
}

.requirements-note i {
    color: var(--accent);
    margin-right: 0.5rem;
}

.requirements-note ul {
    list-style: none;
    padding-left: 1.5rem;
}

.requirements-note li {
    padding: 0.15rem 0;
}

.requirements-note li::before {
    content: "• ";
    color: var(--accent);
    font-weight: 700;
}

.requirements-note strong {
    color: var(--text-primary);
}

/* ===== 常见问题 ===== */
.faq-section {
    margin: 3rem 0;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.2rem;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem 1.5rem;
    transition: border-color 0.3s;
}

.faq-item:hover {
    border-color: var(--accent);
}

.faq-item h4 {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
}

.faq-item p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===== 响应式 ===== */
@media (max-width: 800px) {

    .hero h1,
    .product-hero h1 {
        font-size: 2.8rem;
    }

    .tech-section {
        padding: 1.8rem;
    }

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

    .download-flex {
        flex-direction: column;
        align-items: flex-start;
    }

    .card-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }

    .navbar {
        flex-direction: column;
        align-items: stretch;
        gap: 0.8rem;
    }

    .nav-links {
        justify-content: center;
        flex-wrap: wrap;
    }

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

    .hero-stats {
        gap: 2rem;
        flex-wrap: wrap;
    }

    .version-info {
        flex-wrap: wrap;
        gap: 0.8rem;
    }

    .feature-list {
        grid-template-columns: 1fr;
    }

    .system-requirements ul {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 500px) {
    .container {
        padding: 0 1.2rem;
    }

    .hero h1,
    .product-hero h1 {
        font-size: 2.2rem;
    }

    .stat-number {
        font-size: 1.6rem;
    }

    .footer {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer-links {
        gap: 1.2rem;
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* ===== 视频弹窗 ===== */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.video-modal.active {
    display: flex;
}

.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 900px;
    background: var(--bg-secondary);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    border: 1px solid var(--border-color);
}

.video-modal-content .video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    background: #000;
}

.video-modal-content .video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-modal-close {
    position: absolute;
    top: -44px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.8rem;
    cursor: pointer;
    padding: 0.2rem 0.8rem;
    transition: transform 0.2s;
    z-index: 10;
}

.video-modal-close:hover {
    transform: scale(1.1);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.video-modal-btn {
    cursor: pointer;
}

/* ===== 响应式 ===== */
@media (max-width: 600px) {
    .video-modal-content {
        width: 95%;
        border-radius: 12px;
    }

    .video-modal-close {
        top: -36px;
        font-size: 1.4rem;
    }
}

/* ===== 作品集首页 · 系列分组样式 ===== */

.series-section {
    margin-bottom: 3rem;
}

.series-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.2rem;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid var(--border-color);
}

.series-header .series-icon {
    font-size: 1.6rem;
}

.series-header .series-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
}

.series-header .series-tagline {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-left: 0.5rem;
    font-weight: 400;
}

.series-header .series-badge {
    margin-left: auto;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.15rem 0.8rem;
    border-radius: 20px;
    background: var(--accent-bg);
    color: var(--accent);
    border: 1px solid var(--accent-border);
}

/* 温度系列颜色 */
.series-warm .series-icon {
    color: #f0883e;
}

.series-warm .series-badge {
    background: rgba(240, 136, 62, 0.12);
    border-color: rgba(240, 136, 62, 0.25);
    color: #f0883e;
}

/* 力量系列颜色 */
.series-power .series-icon {
    color: var(--accent);
}

.series-power .series-badge {
    background: var(--accent-bg);
    border-color: var(--accent-border);
    color: var(--accent);
}

.series-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.2rem;
}

.series-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 1.5rem 1.5rem;
    transition: all 0.3s;
    text-decoration: none;
    color: inherit;
    display: block;
}

.series-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.series-card .card-icon {
    font-size: 1.6rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.series-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.2rem;
}

.series-card .card-tagline {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.series-card .card-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.3rem;
}

.series-card .card-status {
    display: inline-block;
    margin-top: 0.6rem;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.15rem 0.6rem;
    border-radius: 12px;
}

.status-published {
    background: rgba(46, 160, 67, 0.15);
    color: #3fb950;
}

.status-developing {
    background: rgba(210, 153, 34, 0.15);
    color: #d29922;
}

.status-planning {
    background: rgba(139, 148, 158, 0.15);
    color: #8b949e;
}

/* 空状态占位卡片 */
.series-card.placeholder {
    border-style: dashed;
    opacity: 0.5;
    cursor: default;
}

.series-card.placeholder:hover {
    transform: none;
    border-color: var(--border-color);
    box-shadow: none;
}

/* ===== 响应式 ===== */
@media (max-width: 600px) {
    .series-header {
        flex-wrap: wrap;
    }

    .series-header .series-badge {
        margin-left: 0;
    }

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