/* ====== 主题变量 ====== */
:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #0d0d0d;
    --bg-card: #141414;
    --text-primary: #fff;
    --text-secondary: #aaa;
    --text-muted: #666;
    --border-color: #222;
    --accent: #00FFFF;
    --accent-glow: rgba(0, 255, 255, 0.4);
}

[data-theme="light"] {
    --bg-primary: #f5f5f7;
    --bg-secondary: #e8e8ed;
    --bg-card: #ffffff;
    --text-primary: #1d1d1f;
    --text-secondary: #555;
    --text-muted: #888;
    --border-color: #d2d2d7;
    --accent: #0066cc;
    --accent-light: #0077ed;
    --accent-glow: rgba(0, 113, 227, 0.3);
}

/* ====== 主题切换按钮 ====== */
.theme-toggle {
    position: fixed;
    top: 80px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 20px;
    cursor: pointer;
    z-index: 101;
    transition: all 0.3s;
}

.theme-toggle:hover {
    transform: scale(1.1);
    border-color: var(--accent);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background 0.3s, color 0.3s;
}

/* 导航�?*/
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 40px;
    padding-top: calc(16px + env(safe-area-inset-top, 0px));
    background: var(--bg-primary);
    backdrop-filter: blur(10px);
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
}

.nav-brand {
    font-size: 20px;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links a {
    color: #aaa;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
    margin-left: 0;
    margin-right: 20px;
    transition: color 0.2s;
}

/* 浅色模式导航栏 */
[data-theme="light"] .nav-links a {
    color: #555;
}

/* 导航栏内的主题切换按�?*/
.theme-toggle-nav {
    margin-left: 24px;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    background: transparent;
    color: var(--text-primary);
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
}

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

/* 英雄�?*/
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 40px;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.hero-content {
    position: relative;
    max-width: 1920px;
    width: 100%;
}

.hero-text {
    position: relative;
    z-index: 2;
    max-width: 600px;
    padding: 40px 40px 40px 10%;
}

.hero-title {
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.8);
}

.hero-subtitle {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.hero-desc {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-title {
    font-size: clamp(36px, 6vw, 64px);
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.1;
    color: var(--accent);
}

.hero-subtitle {
    font-size: 24px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.hero-desc {
    font-size: 16px;
    color: var(--text-muted);
    max-width: 480px;
    margin-bottom: 32px;
}

.hero-btns {
    display: flex;
    gap: 16px;
    flex-wrap: nowrap;
}

.hero-btn {
    display: inline-block;
    padding: 16px 48px;
    background: var(--accent);
    color: #000;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 16px;
    white-space: nowrap;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.hero-btn-secondary {
    display: inline-block;
    padding: 16px 48px;
    background: #555;
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 16px;
    white-space: nowrap;
    font-weight: 600;
    font-size: 16px;
    transition: transform 0.2s, background 0.2s;
}

.hero-btn-secondary:hover {
    transform: scale(1.05);
    background: #666;
}

[data-theme="light"] .hero-btn-secondary {
    background: #888;
}

[data-theme="light"] .hero-btn-secondary:hover {
    background: #777;
}

[data-theme="light"] .hero-btn {
    color: #fff;
}

[data-theme="light"] .hero-btn {
    background: var(--accent-light);
}

.hero-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px var(--accent-glow);
}

[data-theme="light"] .hero-btn:hover {
    background: #0088ff;
}

[data-theme="light"] .hero-title,
[data-theme="light"] .hero-subtitle,
[data-theme="light"] .hero-desc {
    text-shadow: none;
}

.hero-image {
    position: absolute;
    top: 50%;
    right: 5%;
    transform: translateY(-50%);
    width: 70%;
    z-index: 1;
    overflow: hidden;
    border-radius: 16px;
}

.hero-image img {
    width: 100%;
    height: auto;
    max-height: 1200px;
    object-fit: cover;
    object-position: center;
    mask-image: linear-gradient(to bottom, #000 40%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent 100%);
}

/* 图片占位�?*/
.hero-image:empty::before {
    content: "图片占位";
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 350px;
    background: var(--bg-card);
    border: 2px dashed var(--border-color);
    border-radius: 16px;
    color: var(--text-muted);
    font-size: 18px;
}

/* 通用区块标题 */
.section-title {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 48px;
    color: var(--text-primary);
}

/* 功能特色�?*/
.features {
    padding: 80px 40px;
    background: var(--bg-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    transition: transform 0.3s, border-color 0.3s;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
}

.feature-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 图片占位�?*/
.feature-icon:empty::before {
    content: "";
    display: block;
    width: 64px;
    height: 64px;
    background: var(--bg-secondary);
    border: 1px dashed var(--border-color);
    border-radius: 8px;
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* 关于作者区 */
.author {
    padding: 80px 40px;
    background: var(--bg-primary);
}

.author-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

/* 所有卡片基础样式 */
.author-grid .author-card {
    flex: 0 0 auto;
    width: calc(33.333% - 16px);
    max-width: 280px;
    min-width: 200px;
}

/* 第二行4个卡片改小宽度 */
.author-grid .author-card:nth-child(4),
.author-grid .author-card:nth-child(5),
.author-grid .author-card:nth-child(6),
.author-grid .author-card:nth-child(7) {
    width: calc(25% - 18px);
}

.author-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    text-decoration: none;
    display: block;
    transition: transform 0.3s, border-color 0.3s;
}

.author-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
}

.author-avatar {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.author-avatar:empty::before {
    content: "";
    display: block;
    width: 100px;
    height: 100px;
    background: var(--bg-secondary);
}

.author-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.author-role {
    font-size: 14px;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 12px;
}

.author-contribution {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.author-quote {
    font-size: 12px;
    color: var(--text-muted);
    font-style: italic;
    line-height: 1.6;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

/* 主导开发单独居中容器 */
.author-featured {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.author-card-featured {
    max-width: 320px;
}

/* 团队成员卡片布局在上方定义，此处已移除重复 */

/* 预览�?*/
.preview {
    padding: 80px 40px;
    background: var(--bg-primary);
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

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

.preview-placeholder {
    background: var(--bg-card);
    border: 1px dashed var(--border-color);
    border-radius: 12px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.preview-item p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* 购买�?*/
.pricing {
    padding: 80px 40px;
    background: var(--bg-secondary);
}

.price-cards {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.price-card {
    background: var(--bg-card);
    border: 2px solid var(--accent);
    border-radius: 16px;
    padding: 32px;
    width: 320px;
    text-align: center;
    position: relative;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.15);
}

.price-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 0 40px rgba(0, 255, 255, 0.25);
}

[data-theme="light"] .price-card {
    border-color: var(--accent-light);
    box-shadow: 0 0 20px rgba(0, 113, 227, 0.15);
}

[data-theme="light"] .price-card:hover {
    box-shadow: 0 0 40px rgba(0, 113, 227, 0.25);
}

/* 次要价格卡片（灰色描边）- 必须�?light 模式 price-card 之后 */
.price-card-secondary {
    border-color: #666 !important;
    border-width: 3px;
    box-shadow: none !important;
}

.price-card-secondary:hover {
    border-color: #888 !important;
    box-shadow: 0 0 20px rgba(136, 136, 136, 0.2) !important;
}

[data-theme="light"] .price-card-secondary {
    border-color: #888 !important;
}

[data-theme="light"] .price-card-secondary:hover {
    border-color: #666 !important;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.15) !important;
}

/* 捆绑包卡片（金色描边） */
.price-card-bundle {
    border-color: #FFD700 !important;
    border-width: 3px;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.2) !important;
}

.price-card-bundle:hover {
    border-color: #ffd207 !important;
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.35) !important;
}

/* 深色模式捆绑包价格金色 */
.price-card-bundle .price {
    background: linear-gradient(135deg, #FFD700, #FFC107) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    position: relative;
    display: inline-block;
    line-height: 1;
}

.price-original {
    position: absolute;
    bottom: -20px;
    right: 0;
    font-size: 16px;
    color: #888 !important;
    -webkit-text-fill-color: #888 !important;
    text-decoration: line-through;
    font-weight: 700;
    white-space: nowrap;
}

/* 捆绑包按钮金色 */
.price-btn-gold {
    background: linear-gradient(135deg, #FFD700, #FFC107) !important;
    color: #1a1a1a !important;
}

.price-btn-gold:hover {
    background: linear-gradient(135deg, #FFC107, #FFD700) !important;
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.4) !important;
}

/* 浅色模式下金色 */
[data-theme="light"] .price-card-bundle {
    border-color: #D4AF37 !important;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3) !important;
}

[data-theme="light"] .price-card-bundle .price {
    background: linear-gradient(135deg, #D4AF37, #C9920A) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

[data-theme="light"] .price-card-bundle:hover {
    border-color: #E6B91E !important;
    box-shadow: 0 0 30px rgba(218, 165, 32, 0.4) !important;
}

[data-theme="light"] .price-btn-gold {
    background: linear-gradient(135deg, #D4AF37, #C9920A) !important;
    color: #fff !important;
}

[data-theme="light"] .price-btn-gold:hover {
    background: linear-gradient(135deg, #E6B91E, #D4AF37) !important;
}

.price-card h3 {
    font-size: 24px;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.price-card .price {
    font-size: 48px;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 24px;
}

.price-features {
    list-style: none;
    text-align: left;
    margin-bottom: 32px;
}

.price-features li {
    padding: 8px 0;
    color: var(--text-secondary);
    font-size: 14px;
    border-bottom: 1px solid var(--border-color);
}

.price-btn {
    display: block;
    padding: 14px 32px;
    background: var(--accent);
    color: #000;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

[data-theme="light"] .price-btn {
    background: var(--accent-light);
    color: #fff;
}

.price-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px var(--accent-glow);
}

[data-theme="light"] .price-btn:hover {
    background: #0088ff;
}

.fan-group {
    padding: 60px 40px;
    background: var(--bg-primary);
}

.fan-group-card {
    display: flex;
    align-items: center;
    gap: 24px;
    max-width: 1030px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.fan-group-card:hover {
    border-color: var(--accent);
    box-shadow: 0 0 20px var(--accent-glow);
}

.fan-group-avatar {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--accent);
}

.fan-group-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fan-group-avatar:empty::before {
    content: "";
    display: block;
    width: 80px;
    height: 80px;
    background: var(--bg-secondary);
}

.fan-group-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fan-group-text {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.fan-group-btn {
    display: inline-block;
    width: fit-content;
    padding: 10px 28px;
    background: var(--accent);
    color: #000;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

[data-theme="light"] .fan-group-btn {
    background: var(--accent-light);
    color: #fff;
}

.fan-group-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px var(--accent-glow);
}

[data-theme="light"] .fan-group-btn:hover {
    background: #0088ff;
}

/* 开发日志页�?*/
.hero-devlog {
    min-height: 40vh;
    padding-top: 100px;
}

.hero-devlog .hero-content {
    text-align: center;
}

.devlog-section {
    padding: 40px;
    background: var(--bg-primary);
}

.devlog-card {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
}

.devlog-item {
    flex: 1;
    padding: 24px;
    border-radius: 12px;
    background: var(--bg-secondary);
}

.devlog-item h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 12px;
}

.devlog-item p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

/* 页脚 */
.footer {
    text-align: center;
    padding: 40px;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
}

.footer p {
    color: var(--text-muted);
    font-size: 14px;
    margin: 4px 0;
}

/* 响应�?- 竖屏 */
@media (max-width: 768px) {
    .navbar {
        padding: 12px 16px;
        padding-top: calc(12px + env(safe-area-inset-top, 0px));
    }
    
    .nav-brand {
        display: none;
    }
    
    .nav-links {
        display: flex;
        flex-direction: row;
        align-items: center;
        width: 100%;
    }
    
    .nav-links a {
        margin-left: 0;
        margin-right: 20px;
        font-size: 16px;
    }
    
    .theme-toggle-nav {
        margin-left: auto;
        padding: 6px 12px;
        font-size: 14px;
    }
    
    .hero {
        padding: 80px 0 40px;
        padding-top: calc(env(safe-area-inset-top, 0px) + 70px);
        min-height: auto;
        display: flex;
        flex-direction: column;
        overflow-x: hidden;
    }

    .hero-content {
        text-align: center;
        display: flex;
        flex-direction: column;
        padding: 0 20px;
    }

    .hero-image {
        order: -1;
        width: 100vw;
        margin-left: calc(-50vw + 50%);
        position: relative;
        top: auto;
        right: auto;
        transform: none;
        border-radius: 12px;
        overflow: visible;
    }
    
    .hero-image img {
        max-height: none;
        width: 100%;
        object-fit: cover;
        mask-image: linear-gradient(to bottom, #000 40%, transparent 100%);
        -webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent 100%);
    }

    .hero-title,
    .hero-subtitle,
    .hero-desc {
        text-shadow: none;
    }
    
    .hero-text {
        flex: none;
        min-width: auto;
        text-align: center;
        position: relative;
        z-index: 2;
        padding: 20px;
    }
    
    .hero-desc {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-btns {
        justify-content: center;
    }
    
    .features, .preview, .pricing {
        padding: 80px 20px;
    }

    .author {
        padding: 80px 20px;
    }
    
    .price-cards {
        flex-direction: column;
        align-items: center;
    }
    
    .fan-group {
        padding: 40px 20px;
    }
    
    .fan-group-card {
        flex-direction: column;
        text-align: center;
        padding: 24px;
        gap: 20px;
    }
    
    .fan-group-content {
        align-items: center;
    }
    
    .devlog-section {
        padding: 40px 20px;
    }
    
    .devlog-card {
        grid-template-columns: repeat(1, 1fr);
        padding: 24px;
        gap: 16px;
    }
    
    .devlog-item {
        padding: 20px;
        border-radius: 12px;
    }

    .author-grid {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .author-card,
    .author-grid .author-card,
    .author-grid .author-card:nth-child(4),
    .author-grid .author-card:nth-child(5),
    .author-grid .author-card:nth-child(6),
    .author-grid .author-card:nth-child(7) {
        width: 100% !important;
        max-width: 320px !important;
        min-width: auto !important;
        flex: none !important;
        margin: 0 auto;
    }

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

    .feature-card {
        width: 320px;
        margin: 0 auto;
    }

    .fan-group-card {
        width: 320px;
        margin: 0 auto;
    }
}
