
/* 防止系统字体缩放影响布局 */
html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    font-size: 16px;
}

body {
    font-size: 16px;
    line-height: 1.5;
}
/* 强制所有文本元素不随系统字体缩放而改变大小（可选，根据需求） */
button, input, select, textarea, .tab-item, .lang-switch, .btn-primary, .btn-secondary {
    font-size: inherit;
}
/* 顶部导航栏内部元素强制固定字体大小 */
.sticky .gold-gradient-text,
.sticky .lang-switch,
.sticky #connectWalletBtn {
    font-size: 14px;
}
/* 确保头部按钮不换行 */
.sticky #connectWalletBtn {
    white-space: nowrap;
}

/* 可选：限制最大宽度防止异常放大 */
.container, .glass-deep, .stat-card {
    max-width: 100%;
}
* { -webkit-tap-highlight-color: transparent; margin: 0; padding: 0; box-sizing: border-box; }
body {
    background: radial-gradient(circle at 10% 20%, #0a0a0a, #000000);
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto;
    color: #FFE9A7;
    scroll-behavior: smooth;
    font-size: 16px; /* 固定基准，防止系统字体放大影响布局 */
}

::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: #1a1a1a; border-radius: 10px; }
::-webkit-scrollbar-thumb { background: #F59E0B; border-radius: 10px; }

.glass-deep { 
    background: rgba(10, 10, 15, 0.7); 
    backdrop-filter: blur(16px); 
    border: 1px solid rgba(255, 200, 50, 0.25); 
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5), 0 1px 1px rgba(255, 215, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s;
}
.w-20 {
    width: 5rem;
    height: 5rem;
}

@media (max-width: 640px) {
    .w-20 {
        width: 4rem;
        height: 4rem;
    }
}
.sticky.top-0 {
    min-height: 60px;
}
.glass-deep:hover {
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.6), 0 1px 2px rgba(255, 215, 0, 0.2);
}
.gradient-border { 
    background: linear-gradient(135deg, #F5B042, #FFD966, #E6A017); 
    padding: 1.5px; 
    border-radius: 32px; 
    box-shadow: 0 6px 14px rgba(0,0,0,0.3);
}
.stat-card { 
    background: linear-gradient(145deg, #0C0C12, #050507);
    border-radius: 28px; 
    border: 1px solid rgba(255, 200, 80, 0.3);
    transition: all 0.25s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}
.stat-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 200, 80, 0.6);
    box-shadow: 0 12px 20px -8px rgba(245, 158, 11, 0.2);
}
.tab-bar { 
    background: rgba(0, 0, 0, 0.9); 
    backdrop-filter: blur(24px); 
    border-top: 1px solid rgba(255, 200, 80, 0.5);
    box-shadow: 0 -4px 15px rgba(0,0,0,0.5);
}
.tab-item { transition: all 0.2s; cursor: pointer; }
.tab-item.active { 
    color: #FFD966; 
    background: rgba(255, 200, 80, 0.2); 
    border-radius: 28px; 
    text-shadow: 0 0 4px rgba(255,200,0,0.3);
}
.btn-primary { 
    background: linear-gradient(90deg, #F5A623, #FFD966);
    box-shadow: 0 6px 14px rgba(245, 158, 11, 0.35);
    color: #000000;
    font-weight: 700;
    transition: all 0.2s;
}
.btn-primary:active { transform: scale(0.97); }
.progress-bar { 
    background: linear-gradient(90deg, #FFD966, #F5A623); 
    height: 6px; 
    border-radius: 8px; 
    transition: width 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}
.package-card {
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 200, 80, 0.4);
    border-radius: 24px;
    transition: all 0.2s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px 8px;
}
.package-card.selected { 
    border: 2px solid #FFD966; 
    background: linear-gradient(135deg, #1e1b10, #0a0a05);
    transform: translateY(-3px);
    box-shadow: 0 12px 20px -8px rgba(255, 200, 0, 0.5);
}
.package-card:active { transform: scale(0.96); }
.package-icon {
    font-size: 28px;
    margin-bottom: 8px;
}

.gold-gradient-text {
    background: linear-gradient(120deg, #FFE6A3, #FFC857);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.bg-gold-dark { background: rgba(245, 158, 11, 0.12); }
.btn-secondary {
    background: rgba(30, 30, 40, 0.9);
    border: 1px solid rgba(255, 200, 80, 0.5);
    color: #FFE6A3;
    transition: all 0.2s;
}
.btn-secondary:active { transform: scale(0.97); background: rgba(245,158,11,0.2);}

.swiper-container { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.swiper-slide { scroll-snap-align: start; flex-shrink: 0; width: 100%; }
.marquee { white-space: nowrap; animation: marquee 20s linear infinite; font-weight: 500; }
@keyframes marquee { 0% { transform: translateX(100%); } 100% { transform: translateX(-100%); } }

.order-card {
    background: rgba(0,0,0,0.5);
    border-left: 4px solid #FFD966;
    border-radius: 20px;
    padding: 12px;
    margin-bottom: 12px;
}
input {
    background: #0F0F12;
    border: 1px solid #FFD966;
    border-radius: 20px;
    padding: 12px 16px;
    color: #FFECB3;
    outline: none;
    transition: all 0.2s;
}
input:focus { border-color: #FFB347; box-shadow: 0 0 0 2px rgba(255, 185, 55, 0.3); }
.level-progress-bg { background: #2a2a2a; border-radius: 20px; overflow: hidden; }

/* 全新时间线样式 - 图文结合、大气简约 */
.timeline-modern {
    position: relative;
    padding-left: 30px;
}
.timeline-modern::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: linear-gradient(to bottom, #FFD966, #F59E0B);
    border-radius: 2px;
}
.timeline-item {
    position: relative;
    margin-bottom: 28px;
    display: flex;
    gap: 18px;
    align-items: flex-start;
}
.timeline-dot {
    position: absolute;
    left: -30px;
    width: 28px;
    height: 28px;
    background: #000;
    border: 2px solid #FFD966;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    background: #1e1b10;
    box-shadow: 0 0 0 4px rgba(0,0,0,0.5);
}
.timeline-content {
    flex: 1;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    border-radius: 24px;
    padding: 16px 20px;
    border: 1px solid rgba(255, 200, 80, 0.3);
    transition: all 0.2s;
}
.timeline-content:hover {
    border-color: #FFD966;
    background: rgba(0,0,0,0.7);
    transform: translateX(4px);
}
.timeline-year {
    font-size: 20px;
    font-weight: 800;
    color: #FFD966;
    letter-spacing: 1px;
    margin-bottom: 6px;
}
.timeline-title {
    font-size: 18px;
    font-weight: bold;
    color: #FFE9A7;
    margin-bottom: 8px;
}
.timeline-desc {
    font-size: 13px;
    color: #FFE9A7;
    opacity: 0.85;
    line-height: 1.4;
}
@media (max-width: 480px) {
    .timeline-year { font-size: 16px; }
    .timeline-title { font-size: 15px; }
    .timeline-desc { font-size: 12px; }
    .timeline-content { padding: 12px 16px; }
}