/* ================= 0. 全局变量与基础设置 (保持不变) ================= */
:root {
    --gold-primary: #F0C475;
    --gold-light: #FFF2D1;
    --gold-dark: #DFA347;
    --bg-dark: #090b10;
    --card-bg: rgba(30, 34, 45, 0.9);
    --text-main: #EAEAEA;
    --text-sub: #8A92A9;
    --accent-red: #FF4D4F;
    --border-color: rgba(240, 196, 117, 0.15);
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    outline: none;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-dark);
    background-image: radial-gradient(circle at 10% 20%, rgba(43, 106, 255, 0.08) 0%, transparent 40%), radial-gradient(circle at 90% 80%, rgba(240, 196, 117, 0.05) 0%, transparent 40%);
    font-family: -apple-system, BlinkMacSystemFont, "Microsoft YaHei", sans-serif;
    color: var(--text-main);
    min-height: 100vh;
    padding-bottom: 100px;
    line-height: 1.5;
}

.container {
    padding: 20px 16px;
    max-width: 600px;
    margin: 0 auto;
}

/* ================= 1. 组件：MobileSelect (选择器) ================= */
.mobileSelect .grayLayer {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: none;
}

.mobileSelect .content {
    width: 100%;
    position: fixed;
    z-index: 10000;
    bottom: -350px;
    left: 0;
    background: #1E222D;
    border-radius: 20px 20px 0 0;
    transition: bottom 0.3s ease;
    border-top: 1px solid rgba(240, 196, 117, 0.2);
    box-shadow: 0 -5px 30px rgba(0, 0, 0, 0.5);
}

.mobileSelect.mobileSelect-show .grayLayer {
    display: block;
}

.mobileSelect.mobileSelect-show .content {
    bottom: 0;
}

.mobileSelect .btn-bar {
    height: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: #252A35;
    border-radius: 20px 20px 0 0;
}

.mobileSelect .btn-bar .cancel {
    color: #888;
    font-size: 15px;
    cursor: pointer;
    padding: 10px;
}

.mobileSelect .btn-bar .ensure {
    color: var(--gold-primary);
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    padding: 10px;
}

.mobileSelect .panel {
    height: 220px;
    display: flex;
    position: relative;
    overflow: hidden;
}

.mobileSelect .wheel {
    flex: 1;
    height: 220px;
    overflow-y: scroll;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.mobileSelect .wheel::-webkit-scrollbar {
    display: none;
}

.mobileSelect .wheel li {
    height: 40px;
    line-height: 40px;
    font-size: 16px;
    color: #888;
    text-align: center;
    white-space: nowrap;
}

.mobileSelect .selectLine {
    position: absolute;
    top: 90px;
    height: 40px;
    width: 100%;
    pointer-events: none;
    border-top: 1px solid rgba(240, 196, 117, 0.3);
    border-bottom: 1px solid rgba(240, 196, 117, 0.3);
    background: rgba(240, 196, 117, 0.05);
}

.mobileSelect .shadowMask {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: linear-gradient(to bottom, #1E222D 0%, rgba(30, 34, 45, 0) 40%, rgba(30, 34, 45, 0) 60%, #1E222D 100%);
}

/* ================= 2. 页面布局与卡片 ================= */
.header {
    text-align: left;
    margin-bottom: 15px;
    padding-left: 4px;
}

.title {
    font-size: 24px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
}

.subtitle {
    color: var(--text-sub);
    font-size: 12px;
    margin-top: 6px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.glass-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.section-title {
    font-size: 15px;
    color: var(--gold-primary);
    font-weight: bold;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.section-title-left {
    display: flex;
    align-items: center;
}

.section-title-left::before {
    content: '';
    width: 3px;
    height: 14px;
    background: var(--gold-primary);
    margin-right: 8px;
    border-radius: 2px;
}

/* 跑马灯 */
.top-marquee-box {
    width: 100%;
    height: 36px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
}

.marquee-content {
    white-space: nowrap;
    position: absolute;
    animation: marquee-scroll 25s linear infinite;
    font-size: 12px;
    color: #ccc;
    display: flex;
    gap: 30px;
}

.marquee-item {
    display: flex;
    align-items: center;
}

.marquee-item span {
    color: var(--gold-primary);
    margin-right: 4px;
    font-weight: bold;
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(65%);
    }
    100% {
        transform: translateX(-60%);
    }
}

/* 胶囊与Tabs */
.capsule-row {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.capsule-group {
    flex: 1;
    display: flex;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 3px;
}

.capsule-item {
    flex: 1;
    text-align: center;
    padding: 6px 0;
    font-size: 12px;
    color: #888;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.3s;
}

.capsule-item.active {
    background: linear-gradient(135deg, #3a4050, #252a35);
    color: var(--gold-primary);
    font-weight: bold;
}

.tab-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    background: rgba(0, 0, 0, 0.3);
    padding: 4px;
    border-radius: 10px;
}

.tab-item {
    flex: 1;
    text-align: center;
    padding: 8px 0;
    font-size: 13px;
    color: var(--text-sub);
    cursor: pointer;
    border-radius: 8px;
    transition: 0.3s;
}

.tab-item.active {
    background: #333;
    color: var(--gold-primary);
    font-weight: bold;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* 计算模块 */
.rank-grid {
    display: grid;
    grid-template-columns: 1fr 32px 1fr;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.rank-col {
    display: flex;
    align-items: center;
    gap: 6px;
}

.form-label {
    font-size: 12px;
    color: var(--text-sub);
    margin-bottom: 0;
    white-space: nowrap;
}

.rank-arrow {
    text-align: center;
    color: var(--gold-primary);
    font-size: 20px;
    opacity: 0.8;
    padding-bottom: 0;
}

.select-box, .input-glass {
    width: 100%;
    height: 44px;
    background: #1E222D;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    transition: 0.2s;
    outline: none;
}

.select-box:active, .input-glass:focus {
    border-color: var(--gold-primary);
    background: #2A2E38;
}

.select-value {
    width: 90%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    text-align: center;
    pointer-events: none;
}

.select-box::after {
    content: '▼';
    font-size: 8px;
    color: #666;
    position: absolute;
    right: 5px;
    pointer-events: none;
}

.biz-module {
    display: none;
}

.biz-module.active {
    display: block;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.calc-btn {
    background: linear-gradient(90deg, var(--gold-primary), var(--gold-dark));
    color: #1a1002;
    border: none;
    border-radius: 12px;
    padding: 14px 0;
    width: 100%;
    font-weight: 800;
    font-size: 16px;
    margin-top: 20px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(237, 193, 109, 0.25);
}

/* ================= 3. 活动专区 (Flash Sale) ================= */
.offer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.offer-item {
    background: linear-gradient(145deg, #252a35, #1e222d);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 12px;
    position: relative;
    overflow: hidden;
    text-align: center;
    transition: transform 0.2s;
}

.offer-item:active {
    transform: scale(0.98);
    border-color: var(--gold-primary);
}

.offer-tag {
    position: absolute;
    top: 0;
    right: 0;
    background: linear-gradient(135deg, #ff6b6b, #d63031);
    color: #fff;
    font-size: 10px;
    padding: 2px 6px;
    border-bottom-left-radius: 8px;
    font-weight: bold;
}

.offer-title {
    font-size: 14px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 4px;
    margin-top: 5px;
}

.offer-desc {
    font-size: 10px;
    color: var(--text-sub);
    margin-bottom: 8px;
}

.offer-price-box {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    margin-bottom: 8px;
}

.offer-price {
    color: var(--gold-primary);
    font-size: 18px;
    font-weight: 800;
    font-family: "DIN Alternate", sans-serif;
}

.offer-price span {
    font-size: 12px;
}

.offer-old {
    color: #555;
    font-size: 11px;
    text-decoration: line-through;
}

.offer-btn {
    width: 100%;
    border: 1px solid var(--gold-primary);
    color: var(--gold-primary);
    background: transparent;
    border-radius: 20px;
    padding: 4px 0;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
}

.timer-badge {
    background: rgba(255, 77, 79, 0.2);
    color: #ff4d4f;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid rgba(255, 77, 79, 0.3);
}

/* ================= 4. 其他组件 ================= */
/* 导师区 */
.mentor-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.mentor-item {
    position: relative;
    height: 140px;
    border-radius: 10px;
    overflow: hidden;
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.mentor-img-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 12px;
}

.mentor-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 100%);
    padding: 30px 8px 8px;
}

.mentor-name {
    color: #fff;
    font-size: 13px;
    font-weight: bold;
}

.mentor-tags {
    color: var(--gold-primary);
    font-size: 10px;
    margin-top: 2px;
}

.blind-box-section {
    text-align: center;
    padding: 15px 0;
}

.box-container {
    width: 80px;
    height: 80px;
    margin: 0 auto 10px;
    background: radial-gradient(circle, #333, #111);
    border: 2px solid var(--gold-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    cursor: pointer;
}

.shake-anim {
    animation: shake 1.5s ease-in-out infinite;
}

@keyframes shake {
    0%, 100% {
        transform: rotate(0);
    }
    10%, 30%, 50%, 70%, 90%{
        transform: rotate(-5deg);
    }
    20%, 40%, 60%, 80% {
        transform: rotate(5deg);
    }
}

/* FAQ */
.faq-list {
    margin-top: 5px;
}

.faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background-color 0.2s;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question-btn {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5px;
    cursor: pointer;
    background: none;
    border: none;
    text-align: left;
}

.q-content-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.q-icon {
    width: 16px;
    height: 16px;
    fill: #666;
    transition: fill 0.3s;
    flex-shrink: 0;
}

.q-text {
    font-size: 13px;
    color: var(--text-main);
    font-weight: 500;
    transition: color 0.3s;
}

.faq-item.active .q-icon {
    fill: var(--gold-primary);
}

.faq-item.active .q-text {
    color: var(--gold-primary);
}

.arrow-icon {
    width: 12px;
    height: 12px;
    fill: #555;
    transition: transform 0.3s, fill 0.3s;
    flex-shrink: 0;
}

.faq-item.active .arrow-icon {
    transform: rotate(180deg);
    fill: var(--gold-primary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease-out, opacity 0.35s ease-out;
    opacity: 0;
}

.faq-item.active .faq-answer {
    opacity: 1;
}

.answer-content {
    padding: 0 10px 15px 36px;
    font-size: 12px;
    color: var(--text-sub);
    line-height: 1.6;
}

.gold-text {
    color: var(--gold-primary);
    font-weight: bold;
}

.white-text {
    color: #fff;
    font-weight: bold;
}

.mt-2 {
    margin-top: 6px;
}

.faq-ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.faq-ul li {
    position: relative;
    padding-left: 12px;
    margin-bottom: 4px;
}

.faq-ul li::before {
    content: "•";
    color: var(--gold-primary);
    position: absolute;
    left: 0;
    top: 0;
}

.view-more-area {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    margin-top: 5px;
}

.view-more-btn {
    padding: 12px;
    background: none;
    border: none;
    color: #666;
    font-size: 12px;
    cursor: pointer;
    width: 100%;
}

/* 底部按钮与弹窗 */
.contact-btn {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #1a1a1a;
    color: var(--gold-primary);
    border-top: 1px solid rgba(240, 196, 117, 0.2);
    height: 65px;
    font-weight: bold;
    border: none;
    font-size: 16px;
    z-index: 100;
    padding-bottom: 10px;
    cursor: pointer;
}

.live-badge {
    position: fixed;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    padding: 5px 12px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 11px;
    color: #fff;
    z-index: 90;
    display: flex;
    align-items: center;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    backdrop-filter: blur(5px);
}

.modal-box {
    background: #1E222D;
    width: 85%;
    padding: 25px;
    border-radius: 20px;
    border: 1px solid var(--gold-primary);
    text-align: center;
}

.modal-btn {
    background: var(--gold-primary);
    color: #000;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: bold;
    margin-top: 20px;
    width: 100%;
    font-size: 15px;
    cursor: pointer;
}

.agent-card {
    background: linear-gradient(90deg, #1f1f1f, #2a2a2a);
    cursor: pointer;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}