/* ===== 基础 ===== */
html, body {
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    height: 100%;
}

body {
    padding: 0;
    padding-bottom: 20px;
    position: relative;
}

/* ===== 应用主容器 ===== */
.app-main {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    padding: 0 16px 60px;
    box-sizing: border-box;
    position: relative;
    z-index: 10;
}

@media (min-width: 600px) {
    .app-main {
        max-width: 560px;
        padding: 0 20px 60px;
    }
}

@media (min-width: 900px) {
    .app-main {
        max-width: 680px;
        padding: 20px 24px 60px;
    }
}

/* ===== 首页 ===== */
.home-page {
    display: block;
    padding-bottom: 20px;
}

.home-page.hidden {
    display: none;
}

/* ===== 页面容器 ===== */
.page-container {
    display: none;
    width: 100%;
    animation: fadeIn 0.3s ease;
}

.page-container.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ===== 返回按钮 ===== */
.mobile-back-btn {
    display: none;
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 1001;
    background: rgba(10, 10, 26, 0.9);
    border: 1px solid rgba(0, 243, 255, 0.3);
    color: #00f3ff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
}

.mobile-back-btn.show {
    display: flex;
}

.mobile-back-btn:hover {
    background: rgba(0, 243, 255, 0.1);
    transform: scale(1.05);
}

/* ===== 移动端首页样式 ===== */
.mobile-home-header {
    text-align: center;
    padding: 30px 20px 25px;
    position: relative;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(0, 243, 255, 0.2);
}

.mobile-home-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1.6rem, 5vw, 2.4rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
    letter-spacing: 2px;
}

.mobile-home-subtitle {
    font-size: clamp(0.85rem, 2.5vw, 1.05rem);
    color: rgba(255, 255, 255, 0.7);
}

/* 公告 */
.mobile-notice-section {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.15), rgba(255, 152, 0, 0.1));
    border-left: 4px solid #ffc107;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.mobile-notice-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: clamp(0.88rem, 2.5vw, 1rem);
    font-weight: 600;
    color: #ffc107;
    margin-bottom: 10px;
}

.mobile-notice-content p {
    font-size: clamp(0.83rem, 2.2vw, 0.95rem);
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
}

.mobile-announcement {
    background: rgba(16, 18, 27, 0.8);
    border: 1px solid rgba(0, 243, 255, 0.15);
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 20px;
}

.mobile-announcement-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 12px;
}

.mobile-announcement-header i { color: rgba(0, 243, 255, 0.6); }

.mobile-announcement-title {
    font-size: clamp(1rem, 3vw, 1.2rem);
    font-weight: 600;
    color: #fff;
    margin-bottom: 10px;
}

.mobile-announcement-text {
    font-size: clamp(0.83rem, 2.2vw, 0.95rem);
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

/* 菜单卡片 */
.mobile-menu-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
}

.mobile-menu-card {
    display: flex;
    align-items: center;
    background: rgba(16, 18, 27, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: clamp(14px, 3vw, 20px) clamp(16px, 3vw, 22px);
    cursor: pointer;
    transition: all 0.25s ease;
    -webkit-tap-highlight-color: transparent;
}

.mobile-menu-card:active {
    background: rgba(16, 18, 27, 0.95);
    border-color: rgba(0, 243, 255, 0.3);
    transform: scale(0.98);
}

.mobile-menu-card-icon {
    width: clamp(44px, 8vw, 54px);
    height: clamp(44px, 8vw, 54px);
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(0, 243, 255, 0.2), rgba(185, 103, 255, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: clamp(12px, 3vw, 18px);
    flex-shrink: 0;
}

.mobile-menu-card-icon i { font-size: clamp(1.1rem, 3vw, 1.4rem); color: #00f3ff; }

.mobile-menu-card-icon.gold { background: linear-gradient(135deg, rgba(255, 193, 7, 0.2), rgba(255, 152, 0, 0.2)); }
.mobile-menu-card-icon.gold i { color: #ffc107; }
.mobile-menu-card-icon.orange { background: linear-gradient(135deg, rgba(255, 120, 0, 0.2), rgba(255, 80, 0, 0.2)); }
.mobile-menu-card-icon.orange i { color: #ff7800; }
.mobile-menu-card-icon.blue { background: linear-gradient(135deg, rgba(24, 144, 255, 0.2), rgba(64, 169, 255, 0.2)); }
.mobile-menu-card-icon.blue i { color: #40a9ff; }
.mobile-menu-card-icon.green { background: linear-gradient(135deg, rgba(82, 196, 26, 0.2), rgba(115, 209, 61, 0.2)); }
.mobile-menu-card-icon.green i { color: #73d13d; }
.mobile-menu-card-icon.purple { background: linear-gradient(135deg, rgba(114, 46, 209, 0.2), rgba(155, 89, 182, 0.2)); }
.mobile-menu-card-icon.purple i { color: #9b59b6; }
.mobile-menu-card-icon.cyan { background: linear-gradient(135deg, rgba(19, 194, 194, 0.2), rgba(54, 207, 201, 0.2)); }
.mobile-menu-card-icon.cyan i { color: #36cfc9; }
.mobile-menu-card-icon.red { background: linear-gradient(135deg, rgba(255, 71, 87, 0.2), rgba(255, 100, 100, 0.2)); }
.mobile-menu-card-icon.red i { color: #ff4757; }
.mobile-menu-card-icon.gray { background: linear-gradient(135deg, rgba(140, 140, 140, 0.2), rgba(180, 180, 180, 0.2)); }
.mobile-menu-card-icon.gray i { color: #a0a0a0; }

.mobile-menu-card-content { flex: 1; min-width: 0; }
.mobile-menu-card-content h4 { font-size: clamp(0.95rem, 2.5vw, 1.1rem); font-weight: 600; color: #fff; margin-bottom: 4px; }
.mobile-menu-card-content p {
    font-size: clamp(0.78rem, 2vw, 0.9rem);
    color: rgba(255, 255, 255, 0.5);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mobile-menu-card-arrow {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.9rem;
    margin-left: 10px;
    transition: all 0.25s ease;
}

.mobile-menu-card:active .mobile-menu-card-arrow { color: #00f3ff; }

/* 页脚 */
.mobile-home-footer {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 10px;
}

.mobile-home-footer p { font-size: 0.75rem; color: rgba(255, 255, 255, 0.4); }

/* ===== 更新时间线 ===== */
.update-timeline::before {
    content: ''; position: absolute; left: 20px; top: 0; bottom: 0;
    width: 2px; background: linear-gradient(to bottom, #00f3ff, transparent);
}
.update-item { position: relative; margin-bottom: 24px; }
.update-date {
    position: absolute; left: -50px; top: 0; width: 40px;
    text-align: center; background: rgba(16,18,27,0.8);
    border-radius: 8px; padding: 6px 0; border: 1px solid #00f3ff; z-index: 2;
}
.update-day   { display: block; font-size: 16px; font-weight: bold; color: #00f3ff; font-family: 'Orbitron', sans-serif; }
.update-month { display: block; font-size: 10px; color: #8c8c8c; margin-top: 2px; }
.update-year  { display: block; font-size: 10px; color: #8c8c8c; }
.update-content {
    background: rgba(16,18,27,0.8); border-radius: 10px; padding: 12px;
    border: 1px solid rgba(0,243,255,0.2);
}
.update-badge { padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: bold; text-transform: uppercase; }
.update-badge.new { background: linear-gradient(to right, #ff4d4f, #fa8c16); color: white; }
.update-badge.planned { background: rgba(140,140,140,0.2); color: #8c8c8c; }

/* ===== 滚动条 ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: rgba(255,255,255,0.05); }
::-webkit-scrollbar-thumb { background: linear-gradient(to bottom, #00f3ff, #b967ff); border-radius: 3px; }

/* ===== 计数器动画 ===== */
.counter { font-variant-numeric: tabular-nums; font-weight: 700; font-family: 'Orbitron', sans-serif; }
.counter-update { animation: counterPulse 0.3s ease; }
@keyframes counterPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.15); } }



/* ===== 说明页通用样式 ===== */
.guide-page {
    padding: 16px 0 40px;
}

.guide-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 0 16px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(0, 243, 255, 0.2);
}

.guide-header i {
    font-size: clamp(1.4rem, 4vw, 1.8rem);
    color: #00f3ff;
}

.guide-header h2 {
    font-size: clamp(1.2rem, 4vw, 1.6rem);
    font-weight: 700;
    color: #fff;
    font-family: 'Orbitron', sans-serif;
    margin: 0;
}

.guide-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.guide-section {
    background: rgba(16, 18, 27, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: clamp(14px, 3vw, 20px);
}

.guide-section h3 {
    font-size: clamp(0.9rem, 2.5vw, 1.05rem);
    font-weight: 600;
    color: #00f3ff;
    margin: 0 0 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 提示框 */
.guide-tip-box {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: clamp(12px, 2.5vw, 16px) clamp(14px, 3vw, 18px);
    border-radius: 10px;
    font-size: clamp(0.85rem, 2.2vw, 0.95rem);
    line-height: 1.6;
}

.guide-tip-box i { font-size: 1rem; flex-shrink: 0; margin-top: 2px; }

.guide-tip-box.danger {
    background: rgba(255, 71, 87, 0.12);
    border: 1px solid rgba(255, 71, 87, 0.35);
    color: #ff6b7a;
}
.guide-tip-box.danger i { color: #ff4757; }

.guide-tip-box.warning {
    background: rgba(255, 193, 7, 0.12);
    border: 1px solid rgba(255, 193, 7, 0.35);
    color: #ffd43b;
}
.guide-tip-box.warning i { color: #ffc107; }

.guide-tip-box.info {
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.25);
    color: rgba(255, 255, 255, 0.8);
}
.guide-tip-box.info i { color: #00d4ff; }

/* 步骤列表 */
.guide-step-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.guide-step {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.step-num {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00f3ff, #b967ff);
    color: #0a0a1a;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.guide-step p {
    font-size: clamp(0.88rem, 2.2vw, 1rem);
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    margin: 3px 0 0;
}

/* 条目列表 */
.guide-item-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.guide-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: clamp(0.88rem, 2.2vw, 1rem);
    color: rgba(255, 255, 255, 0.85);
}

.guide-item i { color: #2ed573; font-size: 0.9rem; flex-shrink: 0; }

/* 代码块 */
.guide-code-block {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 243, 255, 0.2);
    border-radius: 8px;
    padding: 12px 14px;
    font-family: monospace;
    font-size: 0.85rem;
    color: #00f3ff;
    line-height: 1.8;
    margin-bottom: 10px;
}

.guide-tip {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.55);
    margin: 0;
}

.guide-tip code {
    background: rgba(0, 243, 255, 0.15);
    color: #00f3ff;
    padding: 1px 6px;
    border-radius: 4px;
    font-family: monospace;
}

/* FAQ */
.faq-item {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 10px;
}

.faq-item:last-child { margin-bottom: 0; }

.faq-question {
    font-size: clamp(0.92rem, 2.5vw, 1.05rem);
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.faq-question i { color: #00f3ff; font-size: 0.9rem; }

.faq-answer {
    font-size: clamp(0.85rem, 2.2vw, 0.95rem);
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    padding-left: 22px;
}

/* 空状态 */
.guide-empty {
    text-align: center;
    padding: 40px 20px;
    color: rgba(255, 255, 255, 0.3);
}

.guide-empty i { font-size: 2.5rem; margin-bottom: 12px; display: block; }
.guide-empty p { font-size: 0.9rem; }

/* 下载链接 */
.download-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px;
    background: linear-gradient(135deg, rgba(0, 243, 255, 0.2), rgba(185, 103, 255, 0.2));
    border: 1px solid rgba(0, 243, 255, 0.4);
    border-radius: 10px;
    color: #00f3ff;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
    margin-top: 8px;
}

.download-link:active {
    background: linear-gradient(135deg, rgba(0, 243, 255, 0.35), rgba(185, 103, 255, 0.35));
    transform: scale(0.98);
}

/* ===== 教程图片 ===== */
.guide-img {
    width: 100%;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 12px;
    display: block;
}

.step-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00f3ff, #b967ff);
    color: #0a0a1a;
    font-size: 0.75rem;
    font-weight: 700;
    margin-right: 6px;
    flex-shrink: 0;
}

.guide-step-desc {
    font-size: clamp(0.85rem, 2.2vw, 0.95rem);
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin: 0;
}

/* ===== 更新日志 ===== */
.update-log-item {
    background: rgba(16, 18, 27, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: clamp(14px, 3vw, 18px);
    margin-bottom: 12px;
}

.update-log-date {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.update-log-title {
    font-size: clamp(0.95rem, 2.5vw, 1.1rem);
    font-weight: 700;
    color: #fff;
    font-family: 'Orbitron', sans-serif;
}

.update-log-tag {
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}

.update-log-tag.new {
    background: linear-gradient(135deg, #ff4757, #ff6b81);
    color: #fff;
}

.update-log-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.update-log-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: clamp(0.83rem, 2.2vw, 0.93rem);
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
}

.update-log-list li i {
    font-size: 0.8rem;
    margin-top: 3px;
    flex-shrink: 0;
    color: #00f3ff;
}

.update-log-list li i.fa-bug { color: #ff4757; }
.update-log-list li i.fa-plus-circle { color: #2ed573; }
.update-log-list li i.fa-wrench { color: #ffa502; }
.update-log-list li i.fa-trash-alt { color: #a4b0be; }
.update-log-list li i.fa-paint-brush { color: #b967ff; }
.update-log-list li i.fa-eye-slash { color: #a4b0be; }

/* ===== 分节标题 ===== */
.guide-section-title {
    font-size: clamp(0.95rem, 2.5vw, 1.05rem);
    font-weight: 700;
    color: #00f3ff;
    padding: 10px 0 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid rgba(0, 243, 255, 0.15);
    margin-bottom: 12px;
}
