/* --- 全局变量与设置 --- */
:root {
    --bg-deep: #0f172a;       /* 深蓝黑背景 */
    --bg-card: rgba(30, 41, 59, 0.7); /* 半透明卡片背景 */
    --primary-color: #818cf8; /* 柔和的靛蓝色 */
    --primary-hover: #6366f1;
    --accent-color: #c084fc;  /* 紫色点缀 */
    --text-main: #f1f5f9;     /* 亮白文字 */
    --text-secondary: #94a3b8;/* 灰色文字 */
    --border-color: rgba(148, 163, 184, 0.1);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-deep);
    color: var(--text-main);
    margin: 0;
    line-height: 1.6;
    overflow-x: hidden; /* 防止流星动画撑开滚动条 */
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

a { text-decoration: none; transition: 0.3s; color: var(--text-main); }

/* --- 流星背景动画 --- */
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background:
        radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.15) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(192, 132, 252, 0.1) 0%, transparent 20%);
    z-index: -2;
}

.shooting-star {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(255,255,255,0.1), 0 0 0 8px rgba(255,255,255,0.1), 0 0 20px rgba(255,255,255,1);
    animation: animate 3s linear infinite;
    z-index: -1;
    opacity: 0;
}

/* 创建流星尾巴 */
.shooting-star::before {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 300px;
    height: 1px;
    background: linear-gradient(90deg, #fff, transparent);
}

@keyframes animate {
    0% {
        transform: rotate(315deg) translateX(0);
        opacity: 1;
    }
    70% {
        opacity: 1;
    }
    100% {
        transform: rotate(315deg) translateX(-1500px);
        opacity: 0;
    }
}

/* 添加多个流星 */
.shooting-star:nth-child(1) { top: 0; left: 0; animation-delay: 0s; animation-duration: 4s; }
.shooting-star:nth-child(2) { top: 0; left: 20%; animation-delay: 2s; animation-duration: 5s; }
.shooting-star:nth-child(3) { top: 0; left: 80%; animation-delay: 4s; animation-duration: 3s; }


/* --- 导航栏 --- */
.navbar {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between; /* 两侧对齐 */
    align-items: center;
}

.logo {
    font-weight: 800;
    font-size: 1.4rem;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1px;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 8px 15px;
    border: 1px solid var(--border-color);
    transition: 0.3s;
    flex: 0 1 300px; /* 搜索框固定宽度 */
    margin: 0 20px;
}

.search-box:focus-within {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.3);
}

.search-box i { color: var(--text-secondary); margin-right: 10px; }

.search-box input {
    background: transparent;
    border: none;
    color: var(--text-main);
    outline: none;
    width: 100%;
    font-size: 0.9rem;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
    margin: 0;
    padding: 0;
}

.nav-links a:hover { color: var(--primary-color); text-shadow: 0 0 10px var(--primary-color); }

/* --- 头部 Hero --- */
.hero {
    text-align: center;
    padding: 80px 20px;
    position: relative;
}

.hero h1 {
    margin: 0 0 15px 0;
    font-size: 2.5rem;
    text-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
}
.hero p { margin: 0; color: var(--text-secondary); font-size: 1.2rem; }

/* --- 通用区块 --- */
.section { margin-bottom: 60px; }

.section-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.section-header h2 { margin: 0; font-size: 1.6rem; color: var(--text-main); }
.section-header i { color: var(--primary-color); font-size: 1.4rem; text-shadow: 0 0 10px var(--primary-color); }

/* --- 下载卡片 --- */
.card {
    background: var(--bg-card);
    backdrop-filter: blur(5px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 25px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.2);
}

.card-icon { font-size: 3rem; filter: drop-shadow(0 0 10px rgba(255,255,255,0.3)); }

.card-body { flex: 1; }
.card-body h3 { margin: 0 0 8px 0; font-size: 1.3rem; color: var(--primary-color); }
.card-body .meta { margin: 0; color: var(--text-secondary); font-size: 0.85rem; font-weight: 500; }
.card-body .desc { margin: 15px 0 0 0; color: var(--text-secondary); font-size: 0.95rem; }

.card-actions { display: flex; align-items: center; gap: 15px; }

/* --- 按钮样式 --- */
.btn {
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}
.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.6);
}

.btn-sponsor {
    background: linear-gradient(135deg, #ec4899, #be123c);
    color: white;
    font-size: 1.1rem;
    padding: 15px 30px;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(236, 72, 153, 0.4);
}
.btn-sponsor:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(236, 72, 153, 0.6);
}

/* --- 悬停提示 Tooltip --- */
.tooltip { position: relative; cursor: pointer; }

.tooltip-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-bottom: 1px dashed var(--text-secondary);
}
.tooltip:hover .tooltip-text { color: var(--primary-color); border-color: var(--primary-color); }

.tooltip-content {
    visibility: hidden;
    width: 220px;
    background-color: #1e293b;
    color: #fff;
    text-align: center;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -110px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.8rem;
    font-weight: normal;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

.tooltip-content::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #1e293b transparent transparent transparent;
}

.tooltip:hover .tooltip-content { visibility: visible; opacity: 1; }

/* --- 联系卡片 --- */
.contact-card {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    text-align: center;
    backdrop-filter: blur(5px);
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-main);
    font-size: 1.1rem;
    background: rgba(255,255,255,0.03);
    padding: 10px 20px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.contact-item i { color: var(--primary-color); font-size: 1.3rem; }

/* --- 赞助触发区域 --- */
.sponsor-trigger-card {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    text-align: center;
    backdrop-filter: blur(5px);
}

/* --- 弹窗 Modal --- */
.modal {
    display: none; /* 默认隐藏 */
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s;
}

.modal-content {
    background: #1e293b;
    border: 1px solid var(--primary-color);
    margin: 10% auto;
    padding: 30px;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    text-align: center;
    position: relative;
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.3);
    animation: slideDown 0.3s;
}

.close-btn {
    color: var(--text-secondary);
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    right: 20px;
    top: 10px;
    cursor: pointer;
    transition: 0.3s;
}

.close-btn:hover { color: var(--text-main); }

.qr-codes {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.qr-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.qr-item img {
    width: 180px;
    height: 180px;
    border-radius: 10px;
    border: 2px solid var(--border-color);
    background: #fff; /* 二维码底色 */
    padding: 5px;
}

.qr-item span {
    font-weight: bold;
    color: var(--primary-color);
}

/* --- 页脚 --- */
footer {
    text-align: center;
    padding: 40px 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-top: 1px solid var(--border-color);
    margin-top: 50px;
}

/* --- 动画关键帧 --- */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideDown { from { transform: translateY(-50px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* --- 手机端适配 --- */
@media (max-width: 768px) {
    .nav-container { flex-direction: column; gap: 15px; }
    .search-box { width: 100%; margin: 10px 0; flex: 1; }
    .nav-links { gap: 15px; }

    .card { flex-direction: column; text-align: center; gap: 20px; }
    .card-actions { flex-direction: column; width: 100%; }
    .btn-primary { width: 100%; justify-content: center; }

    .qr-codes { flex-direction: column; gap: 20px; }
    .contact-info { flex-direction: column; gap: 15px; }
}