/* ==================== CSS 变量定义 ==================== */
:root {
    /* 颜色系统 */
    --color-bg: #000000;
    --color-bg-secondary: #0a0a0a;
    --color-text-primary: #ffffff;
    --color-text-secondary: #b0b0b0;
    --color-text-muted: #707070;

    /* 渐变色 */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-accent: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-warm: linear-gradient(135deg, #fa709a 0%, #fee140 100%);

    /* 玻璃态效果 */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);

    /* 间距 */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;

    /* 圆角 */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;

    /* 动画 */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ==================== 全局样式 ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans SC', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* ==================== 背景装饰 ==================== */
.bg-decoration,
.bg-decoration-2 {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.3;
    pointer-events: none;
    z-index: 0;
    animation: float 20s ease-in-out infinite;
}

.bg-decoration {
    width: 600px;
    height: 600px;
    background: var(--gradient-primary);
    top: -200px;
    right: -200px;
}

.bg-decoration-2 {
    width: 500px;
    height: 500px;
    background: var(--gradient-accent);
    bottom: -150px;
    left: -150px;
    animation-delay: -10s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -30px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

/* ==================== 容器 ==================== */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: var(--spacing-lg);
    position: relative;
    z-index: 1;
}

/* ==================== Logo 区域 ==================== */
.header {
    text-align: center;
    padding-top: var(--spacing-xl);
    padding-bottom: 20px;
}

.logo-container {
    display: inline-block;
    animation: fadeInDown 0.8s ease;
}

.logo {
    height: 100px;
    width: auto;
    max-width: none;
    object-fit: contain;
    filter: drop-shadow(0 10px 30px rgba(255, 255, 255, 0.2));
    transition: transform var(--transition-normal);
}

.logo:hover {
    transform: scale(1.05) rotate(2deg);
}

/* ==================== 主标题区域 ==================== */
.hero-section {
    text-align: center;
    padding-top: 10px;
    padding-bottom: 40px;
    position: relative;
    animation: fadeIn 1s ease;
}

.main-title {
    font-size: 3.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--spacing-sm);
    letter-spacing: -0.02em;
}

.subtitle {
    font-size: 1.25rem;
    color: var(--color-text-secondary);
    font-weight: 300;
}

.hero-gradient {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: var(--gradient-warm);
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.2;
    z-index: -1;
}

/* ==================== 玻璃态卡片 ==================== */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    margin-bottom: var(--spacing-lg);
    box-shadow: var(--glass-shadow);
    transition: all var(--transition-normal);
    animation: fadeInUp 0.8s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.2);
}

/* ==================== 区块图标 ==================== */
.section-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
    display: inline-block;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* ==================== 标题和描述 ==================== */
.glass-card h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-primary);
}

.section-description {
    color: var(--color-text-secondary);
    font-size: 1rem;
    margin-bottom: var(--spacing-lg);
    line-height: 1.8;
}

/* ==================== 按钮样式 ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: var(--radius-full);
    transition: all var(--transition-normal);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left var(--transition-normal);
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.6);
}

.btn-secondary {
    background: var(--gradient-accent);
    color: white;
    box-shadow: 0 10px 30px rgba(79, 172, 254, 0.4);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(79, 172, 254, 0.6);
}

.btn-icon {
    transition: transform var(--transition-fast);
}

.btn:hover .btn-icon {
    transform: translateX(5px);
}

/* ==================== 下载信息 ==================== */
.download-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    padding: var(--spacing-md);
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    text-align: center;
}

.info-label {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    font-weight: 400;
}

.info-value {
    font-size: 1.125rem;
    color: var(--color-text-primary);
    font-weight: 600;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==================== 更新日志 ==================== */
.changelog-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.changelog-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--transition-normal);
}

.changelog-item:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

.changelog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md);
    cursor: pointer;
    user-select: none;
    transition: background var(--transition-fast);
}

.changelog-header:hover {
    background: rgba(255, 255, 255, 0.05);
}

.version-info {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.version-tag {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: var(--gradient-primary);
    color: white;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.9rem;
}

.version-tag.beta {
    background: var(--gradient-secondary);
}

.version-tag.alpha {
    background: var(--gradient-warm);
}

.version-date {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.expand-icon {
    transition: transform var(--transition-normal);
    color: var(--color-text-secondary);
}

.changelog-item.expanded .expand-icon {
    transform: rotate(180deg);
}

.changelog-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-slow);
}

.changelog-item.expanded .changelog-content {
    max-height: 500px;
}

.changelog-content ul {
    list-style: none;
    padding: 0 var(--spacing-md) var(--spacing-md) var(--spacing-md);
}

.changelog-content li {
    padding: var(--spacing-xs) 0;
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    line-height: 1.8;
}

.changelog-content li::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 4px;
    background: var(--gradient-accent);
    border-radius: 50%;
    margin-right: var(--spacing-sm);
}

/* ==================== 页脚 ==================== */
.footer {
    text-align: center;
    padding: var(--spacing-xl) 0;
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-top: var(--spacing-2xl);
}

/* ==================== 动画 ==================== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 768px) {
    .container {
        padding: var(--spacing-md);
    }

    .main-title {
        font-size: 2.5rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .glass-card {
        padding: var(--spacing-lg);
    }

    .glass-card h2 {
        font-size: 1.5rem;
    }

    .download-info {
        grid-template-columns: 1fr;
    }

    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 2rem;
    }

    .version-info {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-xs);
    }
}