/* ===== 全局重置 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    min-height: 100vh;
    background: #1c120e;
    color: #f0e6d0;
    font-family: 'PingFang SC', 'Helvetica Neue', 'Microsoft YaHei', 'STHeiti', sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: #d4a34a;
}

a:hover {
    color: #e8c06a;
}

/* ===== 背景纹理 ===== */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(ellipse at 20% 50%, rgba(140, 60, 30, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(180, 120, 40, 0.05) 0%, transparent 50%),
    repeating-linear-gradient(0deg, transparent, transparent 40px, rgba(180, 120, 40, 0.015) 40px, rgba(180, 120, 40, 0.015) 41px);
    pointer-events: none;
    z-index: 0;
}

/* ===== 容器 ===== */
.container {
    max-width: 480px;
    margin: 0 auto;
    padding: 0 16px;
    position: relative;
    z-index: 1;
}

/* ===== 顶部导航 ===== */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(28, 18, 14, 0.94);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(180, 90, 50, 0.25);
    padding: 12px 0;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 4px;
    background: linear-gradient(135deg, #f0e6d0, #d4a34a, #b57a2a);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 40px rgba(180, 120, 40, 0.15);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-actions .user-icon {
    font-size: 18px;
    cursor: pointer;
    color: #d4a34a;
    transition: color 0.2s;
}

.header-actions .user-icon:active {
    color: #e8c06a;
}

.header-actions .login-btn {
    font-size: 13px;
    color: #f0e6d0;
    padding: 4px 16px;
    border: 1px solid rgba(180, 90, 50, 0.35);
    border-radius: 20px;
    background: rgba(180, 90, 50, 0.08);
    transition: all 0.25s;
    font-family: inherit;
    cursor: pointer;
    line-height: 1.4;
}

.header-actions .login-btn:active {
    transform: scale(0.95);
    background: rgba(180, 90, 50, 0.2);
}

/* ===== 轮播图 ===== */
.swiper-section {
    padding: 16px 0 12px;
}

.swiper-wrapper {
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 16 / 7.5;
    background: linear-gradient(135deg, #1a0e0a, #2d1810);
    position: relative;
    border: 1px solid rgba(180, 90, 50, 0.15);
}

.swiper-track {
    display: flex;
    height: 100%;
    transition: transform 0.45s ease;
    will-change: transform;
}

.swiper-slide {
    width: 100%;
    height: 100%;
    flex: 0 0 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a0e0a, #2d1810, #1a0e0a);
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

.swiper-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 10px;
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 2;
}

.swiper-dots .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(240, 230, 208, 0.35);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.25s;
}

.swiper-dots .dot.active {
    width: 18px;
    border-radius: 8px;
    background: #d4a34a;
}

/* ===== 通用标题栏（带更多） ===== */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0 10px;
}

.section-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #f0e6d0;
    letter-spacing: 2px;
}

.section-header .more-link {
    font-size: 13px;
    color: yellow;
    transition: color 0.2s;
    padding: 4px 0;
}

.section-header .more-link:active {
    color: #d4a34a;
}

/* ===== 公告栏 ===== */
.notice-section {
    padding-bottom: 4px;
}

.notice-list {
    background: rgba(42, 26, 20, 0.7);
    border-radius: 12px;
    border: 1px solid rgba(180, 90, 50, 0.15);
    padding: 4px 0;
    overflow: hidden;
    backdrop-filter: blur(4px);
}

.notice-item {
    padding: 10px 16px;
    border-bottom: 1px solid rgba(180, 90, 50, 0.06);
    font-size: 14px;
    color: #e0d4c0;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notice-item:last-child {
    border-bottom: none;
}

.notice-item .date {
    font-size: 12px;
    color: #6a5a42;
    flex-shrink: 0;
}

.notice-item .tag {
    flex-shrink: 0;
    font-size: 10px;
    color: #d4a34a;
    background: rgba(180, 90, 50, 0.18);
    padding: 1px 12px;
    border-radius: 10px;
    letter-spacing: 1px;
}

.notice-item .text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ===== 特色玩法 ===== */
.features-section {
    padding-bottom: 4px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.feature-card {
    background: rgba(42, 26, 20, 0.7);
    border-radius: 12px;
    border: 1px solid rgba(180, 90, 50, 0.12);
    padding: 16px 6px;
    text-align: center;
    transition: all 0.2s;
    backdrop-filter: blur(4px);
    cursor: pointer;
    color: inherit;
    display: block;
}

a.feature-card:hover {
    color: inherit;
    border-color: rgba(180, 90, 50, 0.3);
}

.feature-card:active {
    transform: scale(0.96);
    background: rgba(42, 26, 20, 0.9);
    border-color: rgba(180, 90, 50, 0.3);
}

.feature-card .icon {
    font-size: 30px;
    display: block;
    margin-bottom: 6px;
}

.feature-card .name {
    font-size: 13px;
    color: #f0e6d0;
    font-weight: 500;
    letter-spacing: 1px;
}

.feature-card .desc {
    font-size: 11px;
    color: #8a7050;
    margin-top: 2px;
}

/* ===== 攻略指引 ===== */
.guide-section {
    padding-bottom: 20px;
}

.guide-list {
    background: rgba(42, 26, 20, 0.7);
    border-radius: 12px;
    border: 1px solid rgba(180, 90, 50, 0.12);
    padding: 6px 0;
    margin-bottom: 14px;
    backdrop-filter: blur(4px);
}

.guide-item {
    padding: 11px 16px;
    border-bottom: 1px solid rgba(180, 90, 50, 0.06);
    display: flex;
    align-items: center;
    gap: 12px;
    color: inherit;
    cursor: pointer;
}

a.guide-item:hover {
    color: inherit;
    background: rgba(180, 90, 50, 0.08);
}

.guide-item:last-child {
    border-bottom: none;
}

.guide-item .step-num {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(180, 90, 50, 0.2);
    color: #d4a34a;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

.guide-item .step-content {
    flex: 1;
    min-width: 0;
}

.guide-item .step-title {
    font-size: 14px;
    color: #f0e6d0;
    font-weight: 500;
}

.guide-item .step-desc {
    font-size: 12px;
    color: #8a7050;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.guide-item .step-status {
    flex-shrink: 0;
    font-size: 14px;
    color: #5a8a5a;
}

/* ===== 页脚 ===== */
.footer {
    padding: 20px 0 28px;
    text-align: center;
    border-top: 1px solid rgba(180, 90, 50, 0.08);
    margin-top: 8px;
}

.footer p {
    font-size: 11px;
    color: #4a3a2a;
    letter-spacing: 1px;
}

/* ===== 隐藏滚动条 ===== */
::-webkit-scrollbar {
    display: none;
}

/* ===== 底部安全区适配 ===== */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .footer {
        padding-bottom: calc(20px + env(safe-area-inset-bottom));
    }
}

/* ============================================================
   注册页 & 下载页 样式（与主页风格统一）
   ============================================================ */

/* ---- 注册页 ---- */
.register-body {
    background: #1c120e;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px 0;
    overflow-y: auto;
    position: static;
    height: auto;
}

.register-body .container {
    max-width: 380px;
    width: 100%;
    padding: 0 16px;
}

.register-card {
    background: rgba(42, 26, 20, 0.8);
    backdrop-filter: blur(12px);
    border-radius: 28px;
    padding: 28px 22px 32px;
    border: 1px solid rgba(180, 90, 50, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.register-card .logo-area {
    text-align: center;
    margin-bottom: 22px;
}

.register-card .logo-area .main-title {
    font-size: 28px;
    font-weight: 600;
    letter-spacing: 6px;
    background: linear-gradient(135deg, #f0e6d0, #d4a34a, #b57a2a);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.register-card .logo-area .deco-line {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 10px 0 4px;
}

.register-card .logo-area .deco-line span {
    width: 28px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #d4a34a, transparent);
}

.register-card .logo-area .sub-title {
    font-size: 11px;
    color: #b89a50;
    letter-spacing: 3px;
}

.register-card .msg-area {
    padding: 8px 12px;
    margin-bottom: 16px;
    font-size: 12px;
    text-align: center;
    min-height: 40px;
    border-radius: 12px;
    color: #d4a34a;
    white-space: pre-line;
    word-break: break-word;
}

.register-card .msg-area.error {
    color: #ff8a6a;
}

.register-card .msg-area.success {
    color: #7bc86c;
}

.register-card .form-group {
    margin-bottom: 6px;
}

.register-card .form-group .input-wrap {
    display: flex;
    align-items: center;
    background: rgba(10, 6, 4, 0.6);
    border: 1px solid rgba(180, 90, 50, 0.3);
    border-radius: 48px;
    padding: 2px 16px;
    transition: all 0.25s;
}

.register-card .form-group .input-wrap:focus-within {
    border-color: #d4a34a;
    box-shadow: 0 0 12px rgba(180, 120, 40, 0.15);
    background: rgba(10, 6, 4, 0.8);
}

.register-card .form-group .input-wrap.error {
    border-color: #d44c2f;
}

.register-card .form-group .input-wrap .icon {
    color: #d4a34a;
    font-size: 18px;
    margin-right: 10px;
    font-style: normal;
    opacity: 0.7;
}

.register-card .form-group .input-wrap input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #f0e6d0;
    font-size: 14px;
    padding: 11px 0;
    font-family: inherit;
}

.register-card .form-group .input-wrap input[readonly] {
    color: #d4a34a;
    opacity: 0.9;
}

.register-card .form-group .error-tip {
    font-size: 11px;
    color: #ff6b4a;
    margin: 2px 0 0 16px;
    min-height: 16px;
}

.register-card .form-group .invite-hint {
    font-size: 11px;
    color: #8a7050;
    margin: 2px 0 0 16px;
    min-height: 16px;
}

/* 验证码行 */
.register-card .sms-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.register-card .sms-row .input-wrap {
    flex: 1;
    min-width: 0;
}

.register-card .sms-row .send-btn {
    flex-shrink: 0;
    height: 46px;
    padding: 0 14px;
    background: linear-gradient(135deg, #8a5a2a, #5c3a1a);
    border: none;
    border-radius: 40px;
    color: #f0e6d0;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
}

.register-card .sms-row .send-btn:active {
    transform: scale(0.95);
}

.register-card .sms-row .send-btn.disabled {
    opacity: 0.4;
    pointer-events: none;
}

/* 注册提交按钮 */
.register-card .submit-btn {
    width: 100%;
    padding: 14px;
    margin-top: 10px;
    background: linear-gradient(135deg, #d4a34a, #b57a2a, #8a5a1a);
    border: none;
    border-radius: 48px;
    color: #1c120e;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 6px;
    cursor: pointer;
    transition: all 0.25s;
    box-shadow: 0 4px 20px rgba(180, 90, 50, 0.2);
    font-family: inherit;
}

.register-card .submit-btn:active {
    transform: scale(0.97);
}

.register-card .submit-btn.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.register-card .footer-note {
    text-align: center;
    font-size: 10px;
    color: #4a3a2a;
    margin-top: 14px;
    letter-spacing: 1px;
}

/* ---- 下载页 ---- */
.download-body {
    background: #1c120e;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px 0;
    position: static;
    height: auto;
    overflow-y: auto;
}

.download-body .container {
    max-width: 380px;
    width: 100%;
    padding: 0 16px;
}

.download-card {
    background: rgba(42, 26, 20, 0.8);
    backdrop-filter: blur(12px);
    border-radius: 28px;
    padding: 32px 24px 28px;
    border: 1px solid rgba(180, 90, 50, 0.2);
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.download-card .main-title {
    font-size: 28px;
    font-weight: 600;
    letter-spacing: 4px;
    background: linear-gradient(135deg, #f0e6d0, #d4a34a);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.download-card .sub-title {
    color: #8a7050;
    font-size: 12px;
    letter-spacing: 2px;
    margin-bottom: 4px;
}

.download-card .account-display {
    color: #d4a34a;
    font-size: 15px;
    margin: 8px 0 16px;
}

.download-card .qrcode-box {
    background: #fff;
    border-radius: 16px;
    padding: 16px;
    margin: 12px auto 16px;
    display: inline-block;
}

.download-card .qrcode-box img {
    width: 200px;
    height: 200px;
    display: block;
    border-radius: 8px;
}

.download-card .qrcode-tip {
    font-size: 14px;
    color: #f0e6d0;
}

.download-card .qrcode-sub {
    font-size: 12px;
    color: #6a5a42;
    margin-top: 2px;
}

.download-card .btn-home {
    display: inline-block;
    margin-top: 18px;
    padding: 10px 40px;
    background: linear-gradient(135deg, #d4a34a, #8a5a1a);
    border: none;
    border-radius: 48px;
    color: #1c120e;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 2px;
    box-shadow: 0 4px 16px rgba(180, 90, 50, 0.2);
    transition: all 0.2s;
}

.download-card .btn-home:active {
    transform: scale(0.96);
}

.download-card .footer-tip {
    margin-top: 14px;
    font-size: 11px;
    color: #4a3a2a;
}

/* ---- 弹窗（注册成功） ---- */
.register-dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
    animation: fadeIn 0.3s ease;
}

.register-dialog-overlay.is-open {
    display: flex;
}

.register-dialog-box {
    background: linear-gradient(145deg, #2d1810, #1c120e);
    border: 1px solid rgba(180, 90, 50, 0.3);
    border-radius: 28px;
    padding: 32px 28px 28px;
    max-width: 320px;
    width: 90%;
    text-align: center;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.6);
    animation: scaleIn 0.3s ease;
}

.register-dialog-box .dialog-icon {
    font-size: 48px;
    margin-bottom: 6px;
}

.register-dialog-box .dialog-title {
    font-size: 22px;
    font-weight: 600;
    color: #d4a34a;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.register-dialog-box .dialog-body {
    font-size: 14px;
    color: #f0e6d0;
    line-height: 1.7;
    margin-bottom: 22px;
}

.register-dialog-box .dialog-body strong {
    color: #d4a34a;
    font-size: 16px;
}

.register-dialog-box .dialog-btn {
    padding: 12px 40px;
    background: linear-gradient(135deg, #d4a34a, #8a5a1a);
    border: none;
    border-radius: 48px;
    color: #1c120e;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 2px;
    box-shadow: 0 4px 16px rgba(180, 90, 50, 0.25);
    transition: transform 0.2s;
}

.register-dialog-box .dialog-btn:active {
    transform: scale(0.96);
}

.register-dialog-box .dialog-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.register-dialog-box .dialog-actions .dialog-btn {
    padding: 12px 16px;
    letter-spacing: 1px;
    white-space: nowrap;
}

.register-dialog-box .dialog-btn.ghost {
    background: transparent;
    color: #f0e6d0;
    border: 1px solid rgba(180, 90, 50, 0.35);
    box-shadow: none;
}

.register-dialog-box .nickname-input {
    width: 100%;
    margin: 8px 0 8px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(180, 90, 50, 0.35);
    background: rgba(10, 6, 4, 0.4);
    color: #f0e6d0;
    font-size: 15px;
    text-align: center;
    letter-spacing: 1px;
    outline: none;
    font-family: inherit;
}

.register-dialog-box .nickname-input:focus {
    border-color: #d4a34a;
}

.register-dialog-box .password-input {
    width: 100%;
    margin: 8px 0 0;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(180, 90, 50, 0.35);
    background: rgba(10, 6, 4, 0.4);
    color: #f0e6d0;
    font-size: 15px;
    text-align: left;
    outline: none;
    font-family: inherit;
}

.register-dialog-box .password-input:focus {
    border-color: #d4a34a;
}

.register-dialog-box .dialog-hint {
    font-size: 12px;
    color: #8a7050;
    margin-bottom: 16px;
}

.register-dialog-box .dialog-error {
    font-size: 12px;
    color: #d46a4a;
    min-height: 18px;
    margin-bottom: 12px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0.92);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* ============================================================
   登录页 样式
   ============================================================ */

.login-body {
    background: #1c120e;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px 0;
    overflow-y: auto;
    position: static;
    height: auto;
}

.login-body .container {
    max-width: 380px;
    width: 100%;
    padding: 0 16px;
}

.login-card {
    background: rgba(42, 26, 20, 0.8);
    backdrop-filter: blur(12px);
    border-radius: 28px;
    padding: 28px 22px 32px;
    border: 1px solid rgba(180, 90, 50, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.login-card .logo-area {
    text-align: center;
    margin-bottom: 18px;
}

.login-card .logo-area .main-title {
    font-size: 28px;
    font-weight: 600;
    letter-spacing: 6px;
    background: linear-gradient(135deg, #f0e6d0, #d4a34a, #b57a2a);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.login-card .logo-area .deco-line {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 10px 0 4px;
}

.login-card .logo-area .deco-line span {
    width: 28px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #d4a34a, transparent);
}

.login-card .logo-area .sub-title {
    font-size: 11px;
    color: #b89a50;
    letter-spacing: 3px;
}

/* Tab切换 */
.login-tabs {
    display: flex;
    border-radius: 48px;
    background: rgba(10, 6, 4, 0.5);
    padding: 4px;
    margin-bottom: 16px;
    border: 1px solid rgba(180, 90, 50, 0.15);
}

.login-tabs .tab {
    flex: 1;
    text-align: center;
    padding: 8px 0;
    font-size: 14px;
    color: #8a7050;
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.3s;
    letter-spacing: 1px;
}

.login-tabs .tab.active {
    background: linear-gradient(135deg, #d4a34a, #b57a2a);
    color: #1c120e;
    font-weight: 600;
    box-shadow: 0 2px 12px rgba(180, 90, 50, 0.25);
}

.login-tabs .tab:active {
    transform: scale(0.96);
}

.login-card .msg-area {
    padding: 8px 12px;
    margin-bottom: 14px;
    font-size: 12px;
    text-align: center;
    min-height: 36px;
    border-radius: 12px;
    color: #d4a34a;
    white-space: pre-line;
    word-break: break-word;
}

.login-card .msg-area.error {
    color: #ff8a6a;
}

.login-card .msg-area.success {
    color: #7bc86c;
}

.login-card .form-group {
    margin-bottom: 6px;
}

.login-card .form-group .input-wrap {
    display: flex;
    align-items: center;
    background: rgba(10, 6, 4, 0.6);
    border: 1px solid rgba(180, 90, 50, 0.3);
    border-radius: 48px;
    padding: 2px 16px;
    transition: all 0.25s;
}

.login-card .form-group .input-wrap:focus-within {
    border-color: #d4a34a;
    box-shadow: 0 0 12px rgba(180, 120, 40, 0.15);
    background: rgba(10, 6, 4, 0.8);
}

.login-card .form-group .input-wrap.error {
    border-color: #d44c2f;
}

.login-card .form-group .input-wrap .icon {
    color: #d4a34a;
    font-size: 18px;
    margin-right: 10px;
    font-style: normal;
    opacity: 0.7;
}

.login-card .form-group .input-wrap input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #f0e6d0;
    font-size: 14px;
    padding: 11px 0;
    font-family: inherit;
}

.login-card .form-group .input-wrap input::placeholder {
    color: #6a5a42;
    font-size: 12px;
}

.login-card .form-group .error-tip {
    font-size: 11px;
    color: #ff6b4a;
    margin: 2px 0 0 16px;
    min-height: 16px;
}

/* 验证码行 */
.login-card .sms-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.login-card .sms-row .input-wrap {
    flex: 1;
    min-width: 0;
}

.login-card .sms-row .send-btn {
    flex-shrink: 0;
    height: 46px;
    padding: 0 14px;
    background: linear-gradient(135deg, #8a5a2a, #5c3a1a);
    border: none;
    border-radius: 40px;
    color: #f0e6d0;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
}

.login-card .sms-row .send-btn:active {
    transform: scale(0.95);
}

.login-card .sms-row .send-btn.disabled {
    opacity: 0.4;
    pointer-events: none;
}

/* 登录提交按钮 */
.login-card .submit-btn {
    width: 100%;
    padding: 14px;
    margin-top: 10px;
    background: linear-gradient(135deg, #d4a34a, #b57a2a, #8a5a1a);
    border: none;
    border-radius: 48px;
    color: #1c120e;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 6px;
    cursor: pointer;
    transition: all 0.25s;
    box-shadow: 0 4px 20px rgba(180, 90, 50, 0.2);
    font-family: inherit;
}

.login-card .submit-btn:active {
    transform: scale(0.97);
}

.login-card .submit-btn.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.login-card .footer-links {
    text-align: center;
    margin-top: 14px;
}

.login-card .footer-links a {
    color: #8a7050;
    font-size: 13px;
    transition: color 0.2s;
    text-decoration: none;
}

.login-card .footer-links a:active {
    color: #d4a34a;
}

.login-card .footer-note {
    text-align: center;
    font-size: 10px;
    color: #4a3a2a;
    margin-top: 10px;
    letter-spacing: 1px;
}

/* ===== 用户中心 ===== */
.user-center-body {
    background: #1c120e;
    min-height: 100vh;
}

.user-center-main {
    padding: 20px 0 40px;
}

.loading-text {
    text-align: center;
    color: #8a7050;
    padding: 40px 0;
}

.user-welcome h2 {
    font-size: 22px;
    color: #f0e6d0;
    text-align: center;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.account-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 14px;
}

.account-action-btn {
    font-size: 13px;
    color: #f0e6d0;
    padding: 6px 16px;
    border: 1px solid rgba(180, 90, 50, 0.35);
    border-radius: 20px;
    background: rgba(180, 90, 50, 0.08);
    font-family: inherit;
    cursor: pointer;
    line-height: 1.4;
}

.account-action-btn:active {
    transform: scale(0.95);
    background: rgba(180, 90, 50, 0.2);
}

.account-actions + .center-msg {
    margin-top: -6px;
    margin-bottom: 12px;
    text-align: right;
}

.user-stats-wrap {
    margin-bottom: 20px;
}

.user-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.stat-card {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-width: 0;
    background: rgba(42, 26, 20, 0.7);
    border-radius: 12px;
    border: 1px solid rgba(180, 90, 50, 0.12);
    padding: 6px;
    text-align: center;
    backdrop-filter: blur(4px);
}

.stat-card .stat-icon {
    display: block;
    font-size: clamp(16px, 4.5vw, 24px);
    margin-bottom: 2px;
    line-height: 1.2;
}

.stat-card strong {
    display: block;
    font-size: clamp(16px, 5vw, 26px);
    line-height: 1.1;
    color: #d4a34a;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stat-card .stat-label {
    font-size: clamp(10px, 2.8vw, 12px);
    color: #8a7050;
    margin-top: 2px;
}

.points-exchange-link {
    display: block;
    margin-top: 6px;
    text-align: right;
    font-size: 13px;
    color: #d4a34a;
    text-decoration: none;
}

.points-exchange-link:active {
    color: #e8c06a;
}

.bind-phone-box {
    background: rgba(42, 26, 20, 0.7);
    border-radius: 12px;
    border: 1px solid rgba(180, 90, 50, 0.12);
    padding: 20px;
    margin-bottom: 20px;
    backdrop-filter: blur(4px);
}

.bind-phone-box h3 {
    font-size: 16px;
    color: #f0e6d0;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.bind-hint {
    font-size: 13px;
    color: #8a7050;
    margin-bottom: 12px;
}

.bind-input {
    width: 100%;
    height: 40px;
    border-radius: 8px;
    border: 1px solid rgba(180, 90, 50, 0.25);
    background: rgba(10, 6, 4, 0.45);
    color: #f0e6d0;
    padding: 0 12px;
    font-size: 15px;
    box-sizing: border-box;
}

.bind-sms-row {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 10px;
}

.bind-sms-row .bind-input {
    flex: 1;
    min-width: 0;
}

.bind-send-btn,
.bind-submit-btn {
    border: none;
    border-radius: 24px;
    background: linear-gradient(135deg, #d4a34a, #b57a2a);
    color: #1c120e;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
}

.bind-send-btn {
    flex-shrink: 0;
    height: 40px;
    padding: 0 14px;
    font-size: 13px;
}

.bind-submit-btn {
    width: 100%;
    margin-top: 12px;
    height: 40px;
    font-size: 15px;
}

.bind-send-btn:disabled,
.bind-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.signin-box {
    background: rgba(42, 26, 20, 0.7);
    border-radius: 12px;
    border: 1px solid rgba(180, 90, 50, 0.12);
    padding: 20px;
    text-align: center;
    margin-bottom: 20px;
    backdrop-filter: blur(4px);
}

.signin-btn {
    padding: 12px 32px;
    background: linear-gradient(135deg, #d4a34a, #b57a2a);
    border: none;
    border-radius: 48px;
    color: #1c120e;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 2px;
    transition: all 0.2s;
}

.signin-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.signin-btn:active:not(:disabled) {
    transform: scale(0.96);
}

.signin-hint {
    margin-top: 10px;
    font-size: 13px;
    color: #8a7050;
}

.exchange-box {
    background: rgba(42, 26, 20, 0.7);
    border-radius: 12px;
    border: 1px solid rgba(180, 90, 50, 0.12);
    padding: 20px;
    margin-bottom: 20px;
    backdrop-filter: blur(4px);
}

.exchange-box h3 {
    font-size: 16px;
    color: #f0e6d0;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.exchange-rule {
    font-size: 13px;
    color: #8a7050;
    margin-bottom: 12px;
}

.exchange-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.exchange-input {
    width: 88px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid rgba(180, 90, 50, 0.25);
    background: rgba(10, 6, 4, 0.45);
    color: #f0e6d0;
    padding: 0 10px;
    font-size: 15px;
}

.exchange-cost {
    font-size: 13px;
    color: #c4a574;
}

.exchange-btn,
.claim-all-btn {
    padding: 8px 18px;
    background: linear-gradient(135deg, #d4a34a, #b57a2a);
    border: none;
    border-radius: 24px;
    color: #1c120e;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.exchange-btn:disabled,
.claim-all-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.claim-all-btn {
    display: block;
    margin: 14px auto 0;
}

.center-msg {
    min-height: 18px;
    margin-top: 8px;
    font-size: 13px;
    text-align: center;
}

.center-msg.success {
    color: #7bc86c;
}

.center-msg.error {
    color: #d46a6a;
}

.referral-list {
    margin-top: 16px;
}

.referral-head {
    font-size: 14px;
    color: #c4a574;
    margin-bottom: 8px;
}

.referral-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    padding: 10px 0;
    border-top: 1px solid rgba(180, 90, 50, 0.12);
}

.referral-main {
    display: flex;
    flex-direction: column;
    min-width: 120px;
}

.referral-main strong {
    color: #f0e6d0;
    font-size: 14px;
}

.referral-main span,
.referral-meta {
    font-size: 12px;
    color: #8a7050;
}

.referral-meta {
    flex: 1;
}

.referral-empty {
    margin-top: 12px;
    text-align: center;
    font-size: 13px;
    color: #8a7050;
}

.reward-rule {
    margin-top: 14px;
    font-size: 11px;
    line-height: 1.6;
    color: #6e5840;
    text-align: center;
}

.promotion-box {
    background: rgba(42, 26, 20, 0.7);
    border-radius: 12px;
    border: 1px solid rgba(180, 90, 50, 0.12);
    padding: 20px;
    backdrop-filter: blur(4px);
}

.promotion-box h3 {
    font-size: 16px;
    color: #f0e6d0;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.promotion-code-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
    padding: 4px 0 10px;
}

.promotion-locked {
    text-align: center;
    font-size: 15px;
    color: #d4a34a;
    letter-spacing: 1px;
    padding: 8px 0 4px;
}

.promotion-code {
    flex: 1;
    min-width: 0;
    font-size: 15px;
    font-weight: 700;
    color: #d4a34a;
    letter-spacing: 1px;
    text-align: left;
    font-family: monospace;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.copy-promo-btn {
    border: 1px solid rgba(212, 163, 74, 0.55);
    background: rgba(212, 163, 74, 0.15);
    color: #f0e6d0;
    border-radius: 16px;
    padding: 4px 10px;
    font-size: 12px;
    cursor: pointer;
    letter-spacing: 0;
    flex-shrink: 0;
    white-space: nowrap;
}

.copy-promo-btn:hover {
    background: rgba(212, 163, 74, 0.28);
}

.copy-promo-btn:active {
    transform: scale(0.97);
}

.promotion-stats {
    display: flex;
    justify-content: space-around;
    font-size: 14px;
    color: #8a7050;
    margin-top: 8px;
}

.promotion-stats span {
    background: rgba(10, 6, 4, 0.3);
    padding: 4px 16px;
    border-radius: 20px;
}

/* ===== 通用页面 ===== */
.page-main {
    padding: 24px 0 40px;
    min-height: 60vh;
}

.page-header-inner {
    text-align: center;
    margin-bottom: 24px;
}

.page-header-inner h2 {
    font-size: 24px;
    color: #f0e6d0;
    letter-spacing: 4px;
}

.page-header-inner .sub {
    color: #8a7050;
    font-size: 14px;
    margin-top: 4px;
}

/* ===== 公告列表 ===== */
.page-list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: rgba(42, 26, 20, 0.6);
    border-radius: 10px;
    border-bottom: 1px solid rgba(180, 90, 50, 0.06);
    font-size: 14px;
    color: #e0d4c0;
}

.page-list-item .tag {
    flex-shrink: 0;
    font-size: 10px;
    color: #d4a34a;
    background: rgba(180, 90, 50, 0.15);
    padding: 1px 12px;
    border-radius: 10px;
}

.page-list-item .title {
    flex: 1;
}

.page-list-item .date {
    font-size: 12px;
    color: #6a5a42;
    flex-shrink: 0;
}

/* ===== 攻略指引步骤 ===== */
.guide-step {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: rgba(42, 26, 20, 0.6);
    border-radius: 12px;
    border: 1px solid rgba(180, 90, 50, 0.08);
    margin-bottom: 12px;
    align-items: center;
    color: inherit;
    cursor: pointer;
}

a.guide-step:hover {
    color: inherit;
    border-color: rgba(180, 90, 50, 0.3);
    background: rgba(42, 26, 20, 0.85);
}

.guide-step .step-num {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d4a34a, #8a5a1a);
    color: #1c120e;
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.guide-step .step-content h4 {
    color: #f0e6d0;
    font-size: 16px;
    margin-bottom: 2px;
}

.guide-step .step-content p {
    color: #8a7050;
    font-size: 13px;
    margin: 0;
}

/* ===== 顶部导航链接 ===== */
.nav-links {
    display: flex;
    gap: 4px;
}

.nav-links a {
    color: #8a7050;
    font-size: 13px;
    padding: 4px 10px;
    border-radius: 20px;
    transition: all 0.25s;
    text-decoration: none;
}

.nav-links a:hover {
    color: #f0e6d0;
    background: rgba(180, 90, 50, 0.1);
}

.nav-links a.active {
    color: #f0e6d0;
    background: rgba(180, 90, 50, 0.2);
}

/* ===== 特色玩法列表 ===== */
#featureApp .features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

#featureApp .feature-card {
    background: rgba(42, 26, 20, 0.7);
    border-radius: 12px;
    border: 1px solid rgba(180, 90, 50, 0.12);
    padding: 20px 12px;
    text-align: center;
    backdrop-filter: blur(4px);
}

#featureApp .feature-card .icon {
    font-size: 32px;
    display: block;
    margin-bottom: 6px;
}

#featureApp .feature-card .name {
    font-size: 15px;
    color: #f0e6d0;
    font-weight: 500;
}

#featureApp .feature-card .desc {
    font-size: 12px;
    color: #8a7050;
    margin-top: 4px;
}

/* ===== 二级页导航 ===== */
.page-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px;
    margin: 10px 0 8px;
}

.page-nav a {
    color: #8a7050;
    font-size: 13px;
    padding: 4px 10px;
    border-radius: 20px;
}

.page-nav a:hover {
    color: #f0e6d0;
    background: rgba(180, 90, 50, 0.1);
}

.page-nav a.active {
    color: #f0e6d0;
    background: rgba(180, 90, 50, 0.2);
}

/* ===== 详情页（特色玩法 / 攻略指引） ===== */
.detail-article {
    background: rgba(42, 26, 20, 0.7);
    border-radius: 12px;
    border: 1px solid rgba(180, 90, 50, 0.12);
    padding: 20px 16px 24px;
    backdrop-filter: blur(4px);
}

.detail-block {
    margin-bottom: 20px;
}

.detail-block:last-child {
    margin-bottom: 0;
}

.detail-block h3 {
    color: #d4a34a;
    font-size: 16px;
    letter-spacing: 2px;
    margin-bottom: 10px;
    font-weight: 600;
}

.detail-block p {
    text-indent: 2em;
    color: #e0d4c0;
    font-size: 14px;
    line-height: 1.85;
    margin-bottom: 10px;
}

.detail-block p:last-child {
    margin-bottom: 0;
}

.detail-figure {
    margin: 14px 0;
}

.detail-figure img {
    width: 100%;
    display: block;
    border-radius: 10px;
    border: 1px solid rgba(180, 90, 50, 0.15);
    background: rgba(10, 6, 4, 0.35);
}

.detail-figure figcaption {
    font-size: 12px;
    color: #8a7050;
    text-align: center;
    margin-top: 8px;
}

.detail-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.detail-links a {
    display: inline-block;
    font-size: 13px;
    color: #f0e6d0;
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid rgba(180, 90, 50, 0.35);
    background: rgba(180, 90, 50, 0.08);
}

.detail-links a:hover {
    color: #f0e6d0;
    background: rgba(180, 90, 50, 0.2);
}

.detail-back {
    display: inline-block;
    margin-top: 16px;
    font-size: 13px;
    color: #8a7050;
}

.detail-back:hover {
    color: #d4a34a;
}

/* ===== 门派 / 技能页 ===== */
.lore-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lore-card {
    position: relative;
    overflow: hidden;
    background: rgba(42, 26, 20, 0.7);
    border-radius: 14px;
    border: 1px solid rgba(180, 90, 50, 0.14);
    padding: 16px 16px 14px;
    backdrop-filter: blur(4px);
}

.lore-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #d4a34a, rgba(180, 90, 50, 0.15));
}

.lore-card .card-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.lore-emblem {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #f0e6d0;
    background: linear-gradient(145deg, rgba(180, 90, 50, 0.35), rgba(28, 18, 14, 0.9));
    border: 1px solid rgba(212, 163, 74, 0.28);
    box-shadow: inset 0 0 12px rgba(212, 163, 74, 0.12);
}

.lore-card .card-title {
    font-size: 17px;
    color: #f0e6d0;
    letter-spacing: 2px;
    font-weight: 600;
}

.lore-card .card-role {
    font-size: 12px;
    color: #8a7050;
    margin-top: 2px;
}

.lore-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 8px 0 10px;
}

.lore-tag {
    font-size: 10px;
    color: #d4a34a;
    background: rgba(180, 90, 50, 0.16);
    padding: 2px 10px;
    border-radius: 10px;
    letter-spacing: 1px;
}

.lore-card .card-desc {
    font-size: 13px;
    line-height: 1.7;
    color: #c8b89a;
}

.lore-card .card-quote {
    margin-top: 10px;
    font-size: 12px;
    color: #8a7050;
    font-style: italic;
    border-top: 1px dashed rgba(180, 90, 50, 0.18);
    padding-top: 8px;
}

.lore-card.mingjiao {
    --accent: #c45c32;
}

.lore-card.shaolin {
    --accent: #c9a227;
}

.lore-card.gaibang {
    --accent: #8a6a3a;
}

.lore-card.tianshan {
    --accent: #6aa8c8;
}

.lore-card.tianlong {
    --accent: #8b6ad4;
}

.lore-card.xiaoyao {
    --accent: #5cb8a8;
}

.lore-card.xingxiu {
    --accent: #6aaa4a;
}

.lore-card.emei {
    --accent: #d48a9a;
}

.lore-card.wudang {
    --accent: #5a8ad4;
}

.lore-card.mantuo {
    --accent: #d46a8a;
}

.lore-card.mingjiao::before,
.lore-card.shaolin::before,
.lore-card.gaibang::before,
.lore-card.tianshan::before,
.lore-card.tianlong::before,
.lore-card.xiaoyao::before,
.lore-card.xingxiu::before,
.lore-card.emei::before,
.lore-card.wudang::before,
.lore-card.mantuo::before {
    background: linear-gradient(180deg, var(--accent), rgba(180, 90, 50, 0.08));
}

.skill-filter {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    padding: 2px 2px 12px;
    margin-bottom: 4px;
    -webkit-overflow-scrolling: touch;
}

.skill-filter::-webkit-scrollbar {
    display: none;
}

.skill-chip {
    flex-shrink: 0;
    font-size: 12px;
    color: #c8b89a;
    background: rgba(42, 26, 20, 0.7);
    border: 1px solid rgba(180, 90, 50, 0.18);
    border-radius: 16px;
    padding: 5px 12px;
    cursor: pointer;
    letter-spacing: 1px;
}

.skill-chip.active {
    color: #1c120e;
    background: linear-gradient(135deg, #e8c06a, #d4a34a);
    border-color: transparent;
}

.skill-group {
    margin-bottom: 18px;
}

.skill-group-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #d4a34a;
    letter-spacing: 2px;
    margin: 6px 0 10px;
}

.skill-group-title::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(180, 90, 50, 0.35), transparent);
}

.skill-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.skill-card {
    background: rgba(42, 26, 20, 0.7);
    border-radius: 12px;
    border: 1px solid rgba(180, 90, 50, 0.12);
    padding: 14px 14px 12px;
}

.skill-card .skill-name {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 15px;
    color: #f0e6d0;
    letter-spacing: 1px;
}

.skill-type {
    font-size: 10px;
    color: #d4a34a;
    background: rgba(180, 90, 50, 0.16);
    padding: 2px 8px;
    border-radius: 8px;
    letter-spacing: 1px;
    flex-shrink: 0;
}

.skill-card .skill-desc {
    margin-top: 6px;
    font-size: 13px;
    line-height: 1.65;
    color: #c8b89a;
}