/* ==================== 全局样式 ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* 粉紫色系 */
    --primary-pink: #e91e63;
    --primary-purple: #9c27b0;
    --light-purple: #ce93d8;
    --dark-purple: #6a1b9a;

    /* 暗色调 */
    --bg-dark: #1a1a2e;
    --bg-darker: #0f0f1e;
    --card-dark: #16213e;
    --text-light: #ffffff;
    --text-gray: #b0b0b0;
    --text-muted: #808080;

    /* 渐变色 */
    --gradient-primary: linear-gradient(135deg, #e91e63 0%, #9c27b0 100%);
    --gradient-card: linear-gradient(145deg, rgba(156, 39, 176, 0.1) 0%, rgba(233, 30, 99, 0.1) 100%);

    /* 阴影 */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(156, 39, 176, 0.4);

    /* 圆角 */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 24px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB',
    'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* ==================== 背景装饰 ==================== */
.bg-decoration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at 20% 20%, rgba(156, 39, 176, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(233, 30, 99, 0.15) 0%, transparent 50%),
    var(--bg-darker);
    overflow: hidden;
}

.bg-decoration::before,
.bg-decoration::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    animation: float 20s ease-in-out infinite;
}

.bg-decoration::before {
    width: 400px;
    height: 400px;
    background: rgba(156, 39, 176, 0.1);
    top: -200px;
    left: -200px;
    animation-delay: 0s;
}

.bg-decoration::after {
    width: 500px;
    height: 500px;
    background: rgba(233, 30, 99, 0.08);
    bottom: -250px;
    right: -250px;
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(30px, 30px) scale(1.1);
    }
    50% {
        transform: translate(-20px, 40px) scale(0.9);
    }
    75% {
        transform: translate(40px, -30px) scale(1.05);
    }
}

/* ==================== 主容器 ==================== */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 15px;
    position: relative;
    z-index: 1;
}

/* ==================== 头部区域 ==================== */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 15px;
}

.logo-section {
    text-align: left;
}

.brand-title {
    font-size: 2.2rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 4px;
    letter-spacing: 2px;
}

.brand-subtitle {
    font-size: 0.9rem;
    color: var(--text-gray);
    letter-spacing: 3px;
    font-weight: 300;
}

.notice-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--gradient-card);
    border: 1px solid rgba(156, 39, 176, 0.3);
    border-radius: var(--radius-lg);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--light-purple);
    box-shadow: var(--shadow-sm);
    animation: badge-pulse 2s ease-in-out infinite;
}

@keyframes badge-pulse {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }
    50% {
        box-shadow: 0 2px 8px rgba(156, 39, 176, 0.5), 0 0 20px rgba(156, 39, 176, 0.3);
    }
}

.badge-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: var(--gradient-primary);
    border-radius: 50%;
    color: white;
    font-size: 0.8rem;
    font-weight: bold;
}

.section-title {
    font-size: 1.6rem;
    text-align: center;
    margin-bottom: 20px;
    color: var(--text-light);
    font-weight: 600;
    position: relative;
    padding-bottom: 12px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.section-title-small {
    font-size: 1.3rem;
    text-align: center;
    margin-bottom: 20px;
    color: var(--text-gray);
    font-weight: 500;
}

/* ==================== 下载区域 ==================== */
.download-section {
    margin-bottom: 35px;
    padding: 30px 20px;
    background: var(--gradient-card);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg), 0 0 40px rgba(156, 39, 176, 0.2);
    border: 1px solid rgba(156, 39, 176, 0.3);
}

.download-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 25px;
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
}

.download-card {
    background: var(--bg-dark);
    border-radius: var(--radius-xl);
    padding: 25px;
    box-shadow: var(--shadow-lg);
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.download-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.download-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    border-color: rgba(156, 39, 176, 0.3);
}

.download-card:hover::before {
    opacity: 1;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.platform-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    background: var(--gradient-card);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.platform-icon svg {
    width: 28px;
    height: 28px;
    color: var(--light-purple);
}

.platform-info h3 {
    font-size: 1.3rem;
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 3px;
}

.platform-info p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* 二维码样式 */
.qr-code {
    text-align: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    margin-bottom: 0;
}

.qr-code img {
    width: 180px;
    height: 180px;
    border-radius: var(--radius-sm);
    background: white;
    padding: 8px;
    margin: 0 auto;
    display: block;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.qr-hint {
    margin-top: 10px;
    font-size: 0.8rem;
    color: var(--text-gray);
}

/* 下载按钮样式 */
.download-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 15px 30px;
    border-radius: var(--radius-md);
    background: var(--gradient-primary);
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    border: none;
    cursor: pointer;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    filter: brightness(1.1);
}

.download-btn:active {
    transform: translateY(0);
}

.btn-icon {
    font-size: 1.3rem;
    transition: transform 0.3s ease;
}

.download-btn:hover .btn-icon {
    transform: translateX(5px);
}

/* 响应式显示控制 */
.desktop-only {
    display: block;
}

.mobile-only {
    display: none;
}

/* ==================== 内容分类区 ==================== */
.categories-section {
    margin-bottom: 30px;
}

.categories-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 固定每行3列，平分宽度 */
    gap: 15px;
    margin-top: 20px;
}

.category-card {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    height: 200px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.category-card:hover img {
    transform: scale(1.05);
}

.category-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.5) 60%, transparent 100%);
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    min-height: 80px;
    transition: all 0.3s ease;
}

.category-card:hover .category-overlay {
    background: linear-gradient(to top, rgba(156, 39, 176, 0.9) 0%, rgba(233, 30, 99, 0.7) 60%, transparent 100%);
}

.category-overlay .category-icon {
    font-size: 2rem;
    margin-bottom: 6px;
    opacity: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.category-overlay h3 {
    font-size: 1.2rem;
    color: white;
    margin: 0;
    font-weight: 700;
    text-align: center;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
    letter-spacing: 1px;
}

.preview-hint {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 15px;
    font-style: italic;
}

/* ==================== 页脚 ==================== */
.footer {
    padding: 25px 0 20px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 30px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.copyright {
    font-size: 0.9rem;
    color: var(--text-gray);
}

.security-tip {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ==================== 响应式设计 ==================== */

/* 平板设备 */
@media (max-width: 968px) {
    .download-container {
        gap: 20px;
    }

    .categories-gallery {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 12px;
    }

    .category-card {
        height: 180px;
    }
}

/* 移动设备 */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    .header {
        flex-direction: column;
        text-align: center;
        padding: 12px 0;
        margin-bottom: 10px;
        gap: 10px;
    }

    .logo-section {
        text-align: center;
    }

    .brand-title {
        font-size: 1.6rem;
    }

    .brand-subtitle {
        font-size: 0.75rem;
        letter-spacing: 2px;
    }

    .notice-badge {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    .download-section {
        padding: 20px 12px;
        margin-bottom: 20px;
    }

    .section-title {
        font-size: 1.3rem;
        margin-bottom: 15px;
    }

    .section-title-small {
        font-size: 1rem;
        margin-bottom: 12px;
    }

    /* 下载按钮一行显示 */
    .download-container {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        margin-top: 15px;
    }

    .download-card {
        padding: 15px 10px;
    }

    .card-header {
        flex-direction: column;
        text-align: center;
        gap: 8px;
        margin-bottom: 12px;
        padding-bottom: 12px;
    }

    .platform-icon {
        width: 40px;
        height: 40px;
    }

    .platform-icon svg {
        width: 22px;
        height: 22px;
    }

    .platform-info h3 {
        font-size: 1rem;
    }

    .platform-info p {
        font-size: 0.75rem;
    }

    .download-btn {
        padding: 10px 15px;
        font-size: 0.9rem;
    }

    /* 移动端显示按钮，隐藏二维码 */
    .desktop-only {
        display: none;
    }

    .mobile-only {
        display: flex;
    }

    /* 分类区域 */
    .categories-section {
        margin-bottom: 20px;
    }

    .categories-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        margin-top: 12px;
    }

    .category-card {
        height: 140px;
    }

    .category-overlay {
        padding: 10px;
        min-height: 60px;
    }

    .category-overlay .category-icon {
        font-size: 1.5rem;
        margin-bottom: 4px;
    }

    .category-overlay h3 {
        font-size: 0.95rem;
    }

    .preview-hint {
        font-size: 0.8rem;
        margin-top: 10px;
    }

    /* 页脚 */
    .footer {
        margin-top: 20px;
        padding: 15px 0 10px;
    }

    .copyright,
    .security-tip {
        font-size: 0.75rem;
    }
}

/* 小屏幕移动设备 */
@media (max-width: 480px) {
    .brand-title {
        font-size: 1.4rem;
    }

    .brand-subtitle {
        font-size: 0.7rem;
    }

    .download-section {
        padding: 15px 8px;
    }

    .section-title {
        font-size: 1.2rem;
    }

    .download-container {
        gap: 10px;
    }

    .download-card {
        padding: 12px 8px;
    }

    .platform-icon {
        width: 35px;
        height: 35px;
    }

    .platform-info h3 {
        font-size: 0.9rem;
    }

    .platform-info p {
        font-size: 0.7rem;
    }

    .download-btn {
        padding: 8px 12px;
        font-size: 0.85rem;
    }

    .btn-icon {
        font-size: 1.1rem;
    }

    .categories-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .category-card {
        height: 120px;
    }

    .category-overlay {
        padding: 8px;
        min-height: 50px;
    }

    .category-overlay .category-icon {
        font-size: 1.3rem;
        margin-bottom: 3px;
    }

    .category-overlay h3 {
        font-size: 0.85rem;
        letter-spacing: 0.5px;
    }

    .preview-hint {
        font-size: 0.75rem;
        margin-top: 8px;
    }

    .footer {
        margin-top: 15px;
        padding: 12px 0 8px;
    }

    .copyright,
    .security-tip {
        font-size: 0.7rem;
    }
}

.categories-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 25px;
}

.preview-gallery {
    grid-template-columns: repeat(4, 1fr);
}

/* ==================== 打印样式 ==================== */
@media print {
    .bg-decoration,
    .download-btn {
        display: none;
    }

    body {
        background: white;
        color: black;
    }
}
