/* ===== 全局重置 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #0f0f1a;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #e0e0e0;
}
.container {
    width: 100%;
    max-width: 1200px;
    padding: 20px;
}
.card {
    background: #1a1a2e;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
    border: 1px solid #2a2a4a;
}
h1 {
    font-size: 28px;
    text-align: center;
    margin-bottom: 8px;
}
.subtitle {
    text-align: center;
    color: #8888aa;
    margin-bottom: 30px;
}

/* ===== 顶部导航 ===== */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #1a1a2e;
    padding: 10px 30px;
    border-radius: 12px 12px 0 0;
    border-bottom: 1px solid #2a2a4a;
    position: relative;
    z-index: 100;
}
.top-bar .site-name {
    font-size: 20px;
    font-weight: bold;
    color: #fff;
}
.top-bar .right-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* 客服/售后群下拉 */
.info-toggle {
    position: relative;
    display: inline-block;
    cursor: pointer;
    color: #a29bfe;
    font-size: 14px;
    user-select: none;
}
.info-toggle:hover {
    color: #fff;
}
.info-toggle .popup {
    display: none;
    position: absolute;
    right: 0;
    top: 30px;
    background: #1a1a2e;
    border: 1px solid #2a2a4a;
    border-radius: 10px;
    padding: 15px 20px;
    min-width: 200px;
    max-height: 400px;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    z-index: 999;
    color: #ccc;
    font-size: 14px;
    line-height: 1.8;
    cursor: default;
}
.info-toggle .popup.show {
    display: block;
}
.info-toggle .popup .copyable {
    padding: 2px 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s;
    display: inline-block;
    border: 1px solid transparent;
}
.info-toggle .popup .copyable:hover {
    background: #2a2a4a;
    border-color: #6c5ce7;
}
.info-toggle .popup .game-group {
    margin-bottom: 12px;
}
.info-toggle .popup .game-name {
    font-weight: bold;
    color: #6c5ce7;
    margin-bottom: 4px;
    font-size: 14px;
}
.info-toggle .popup .game-groups {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.info-toggle .popup .game-groups .copyable {
    background: #12121f;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 13px;
    color: #ddd;
    border: 1px solid #2a2a4a;
}
.info-toggle .popup .game-groups .copyable:hover {
    border-color: #6c5ce7;
    background: #1a1a3a;
}
.info-toggle .popup .copy-hint {
    font-size: 11px;
    color: #666;
    margin-top: 8px;
    border-top: 1px solid #2a2a4a;
    padding-top: 8px;
}
.customer-entry {
    display: block;
    padding: 4px 8px;
    margin: 2px 0;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s;
    border: 1px solid transparent;
}
.customer-entry:hover {
    background: #2a2a4a;
    border-color: #6c5ce7;
}
.custom-link {
    color: #a29bfe;
    font-size: 14px;
    text-decoration: none;
    padding: 0 6px;
    transition: 0.3s;
}
.custom-link:hover {
    color: #fff;
}

/* 公告栏 */
.announcement-bar {
    background: #12121f;
    padding: 8px 20px;
    border-radius: 8px;
    margin: 15px 0 5px 0;
    border-left: 3px solid #6c5ce7;
    color: #ccc;
    font-size: 14px;
}
.announcement-bar strong {
    color: #a29bfe;
}

/* 自定义内容区域 */
.custom-content-area {
    margin: 15px 0 5px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0 30px;
}
.custom-content-item {
    background: #12121f;
    border-radius: 8px;
    padding: 12px 20px;
    border-left: 3px solid #6c5ce7;
    color: #ddd;
    font-size: 14px;
    line-height: 1.8;
}
.custom-content-item h3 {
    color: #a29bfe;
    font-size: 16px;
    margin-bottom: 4px;
}
.custom-content-item .content-body a {
    color: #a29bfe;
    text-decoration: none;
}
.custom-content-item .content-body a:hover {
    text-decoration: underline;
}

/* 模块网格 */
.module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}
.module-card {
    background: #12121f;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #2a2a4a;
    text-align: center;
}
.module-card .file-icon {
    font-size: 40px;
    display: block;
    margin-bottom: 8px;
}
.module-card .file-name {
    font-size: 16px;
    font-weight: 600;
}
.module-card .file-size {
    color: #666;
    font-size: 13px;
}
.module-card .btn-download-small {
    margin-top: 12px;
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
    color: #fff;
    border: none;
    padding: 10px 30px;
    border-radius: 30px;
    cursor: pointer;
    transition: 0.3s;
}
.module-card .btn-download-small:hover {
    transform: scale(1.05);
}

/* 弹窗 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px);
    z-index: 999;
}
.modal-content {
    background: #1a1a2e;
    max-width: 480px;
    margin: 80px auto 0;
    padding: 35px;
    border-radius: 16px;
    border: 1px solid #2a2a4a;
    position: relative;
    animation: fadeIn 0.3s;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}
.close {
    position: absolute;
    top: 12px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: #666;
}
.close:hover {
    color: #fff;
}
.modal-content h2 {
    text-align: center;
    margin-bottom: 6px;
}
.modal-content .hint {
    text-align: center;
    color: #8888aa;
    font-size: 14px;
    margin-bottom: 20px;
}
.modal-content input {
    width: 100%;
    padding: 14px 18px;
    border-radius: 10px;
    border: 1px solid #2a2a4a;
    background: #12121f;
    color: #fff;
    font-size: 16px;
    outline: none;
    transition: border 0.3s;
}
.modal-content input:focus {
    border-color: #6c5ce7;
}
.btn-verify {
    width: 100%;
    margin-top: 12px;
    padding: 14px;
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    cursor: pointer;
    font-weight: 600;
    transition: opacity 0.3s;
}
.btn-verify:hover {
    opacity: 0.9;
}
.result-msg {
    margin-top: 14px;
    text-align: center;
    font-size: 15px;
    min-height: 24px;
}
.download-link {
    margin-top: 18px;
    padding: 15px;
    background: #0f1f0f;
    border-radius: 10px;
    border: 1px solid #2a5a3a;
    text-align: center;
}
.btn-download-link {
    display: inline-block;
    background: linear-gradient(135deg, #00b894, #00cec9);
    color: #fff;
    padding: 12px 40px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}
.btn-download-link:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(0, 206, 201, 0.3);
}
.link-hint {
    color: #888;
    font-size: 13px;
    margin-top: 8px;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: #1a1a2e;
    padding: 12px 30px;
    border-radius: 30px;
    border: 1px solid #6c5ce7;
    color: #fff;
    font-size: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    display: none;
    z-index: 9999;
}

/* 响应式 */
@media (max-width: 600px) {
    .card { padding: 20px; }
    .modal-content { margin: 60px 15px 0; }
    .top-bar { flex-direction: column; align-items: stretch; gap: 10px; }
    .top-bar .right-links { justify-content: center; flex-wrap: wrap; }
}