@import url('/static/fonts/google/fonts.css');
@import url('/static/fonts/material-symbols/icons.css');

:root {
    --primary: #00eaff;
    --primary-dark: #00bfff;
    --primary-light: #00ffff;
    --background-light: #f2f5f7;
    --background-dark: #0b1019;
    --card-dark: #161d29;
    --surface-dark: #1a1d21;
    --nav-dark: rgba(11, 16, 25, 0.95);
    --gold-accent: #D4AF37;
    --gold-premium: #FCE48D;
    --silver-accent: #93969B;
    --accent-purple: #a855f7;
}

:host,
html {
    text-size-adjust: 100%;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Space Grotesk", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
    background-color: var(--background-light);
    color: #1f2937;
    min-height: max(884px, 100dvh);
    -webkit-tap-highlight-color: transparent;
    scrollbar-width: none;
    -ms-overflow-style: none;
    transition: background-color 0.3s, color 0.3s;
}

body.dark {
    background-color: var(--background-dark);
    color: #f9fafb;
}

body::-webkit-scrollbar {
    display: none;
}

body::-webkit-scrollbar-track {
    display: none;
}

body::-webkit-scrollbar-thumb {
    display: none;
}

/* ==================== 霓虹效果 ==================== */
.neon-glow {
    box-shadow: 0 0 15px rgba(0, 234, 255, 0.4);
}

.neon-border {
    border: 1px solid rgba(0, 234, 255, 0.3);
}

/* ==================== 毛玻璃效果 ==================== */
.glass-card {
    background: rgba(22, 29, 41, 0.7);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.glass-nav {
    background: rgba(11, 16, 25, 0.8);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
}

.glass-header {
    background: rgba(11, 16, 25, 0.85);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* ==================== 文字渐变 ==================== */
.text-gradient {
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient-button {
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent-purple) 100%);
}

/* ==================== 金色效果 ==================== */
.gold-gradient {
    background: linear-gradient(135deg, #8B6D3A 0%, var(--gold-accent) 50%, var(--gold-premium) 100%);
}

.gold-glow {
    box-shadow: 0 10px 30px -10px rgba(212, 175, 55, 0.4);
}

.gold-premium-card {
    background: linear-gradient(145deg, #0d0f12 0%, #1a1e26 100%);
    border: 1px solid rgba(230, 184, 51, 0.5);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(230, 184, 51, 0.05);
}

/* ==================== 支付栏 ==================== */
.payment-bar {
    background: rgba(10, 12, 16, 0.95);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.benefit-icon-box {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    flex-shrink: 0;
}

/* ==================== 单选按钮 ==================== */
.payment-option-radio {
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    position: relative;
    transition: all 0.2s;
}

.payment-option-radio:checked {
    border-color: var(--primary);
    background-color: rgba(0, 234, 255, 0.2);
}

.payment-option-radio:checked::after {
    content: '';
    position: absolute;
    inset: 3px;
    background-color: var(--primary);
    border-radius: 50%;
}

/* ==================== 导航栏 ==================== */
.nav-floating-pill {
    background: rgba(13, 18, 25, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-glow-center {
    box-shadow: 0 0 35px rgba(0, 234, 255, 0.7);
}

.status-running {
    background: linear-gradient(90deg, var(--primary) 0%, #0088ff 100%);
}

.start-btn-glow {
    box-shadow: 0 0 25px rgba(0, 234, 255, 0.6);
}

.neon-shadow {
    box-shadow: 0 0 20px rgba(0, 234, 255, 0.5);
}

.neon-border-glow {
    box-shadow: inset 0 0 10px rgba(0, 234, 255, 0.1), 0 0 5px rgba(0, 234, 255, 0.2);
    border-color: rgba(0, 234, 255, 0.5) !important;
}

/* ==================== Material Icons ==================== */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.fill-1 {
    font-variation-settings: 'FILL' 1;
}

/* ==================== 圆角 ==================== */
.rounded-sm {
    border-radius: 0.5rem;
}

.rounded-lg {
    border-radius: 1rem;
}

.rounded-xl {
    border-radius: 1.5rem;
}

.rounded-full {
    border-radius: 9999px;
}

/* ==================== 会员等级样式 ==================== */
.member-vip {
    background: linear-gradient(135deg, #8B6D3A 0%, var(--gold-accent) 50%, var(--gold-premium) 100%);
    box-shadow: 0 10px 30px -10px rgba(212, 175, 55, 0.4);
}

.member-trial {
    background: linear-gradient(135deg, #666 0%, var(--silver-accent) 100%);
    box-shadow: 0 10px 30px -10px rgba(147, 150, 155, 0.3);
}

.member-regular {
    background: linear-gradient(135deg, #1a1d21 0%, #2a2d31 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ==================== 页面过渡 ==================== */
.page-container {
    padding-top: 80px;
    padding-bottom: 100px;
}

.page-content {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.page-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== 导航项样式 ==================== */
.nav-item {
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
}

/* 激活状态 - 最原始最简单的样式 */
.nav-item.active {
    color: #00eaff;
}

.nav-item.active .material-symbols-outlined {
    font-variation-settings: 'FILL' 1;
}

/* ==================== 快速启动按钮 ==================== */
.power-btn {
    box-shadow: 0 0 30px rgba(0, 234, 255, 0.5);
    transition: all 0.2s;
}

.power-btn:hover {
    box-shadow: 0 0 40px rgba(0, 234, 255, 0.7);
}

.power-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--primary);
    border-radius: 50%;
    filter: blur(20px);
    opacity: 0.3;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.5;
    }
}

/* ==================== 返回按钮 ==================== */
.back-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.back-btn:active {
    transform: scale(0.9);
}

/* ==================== 卡片样式 ==================== */
.card {
    background: var(--card-dark);
    border-radius: 1rem;
    padding: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* ==================== 按钮样式 ==================== */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn:active {
    transform: scale(0.95);
}

.btn-primary {
    background: var(--primary);
    color: var(--background-dark);
    box-shadow: 0 0 15px rgba(0, 234, 255, 0.4);
}

.btn-primary:hover {
    filter: brightness(1.1);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* ==================== 输入框样式 ==================== */
.input-field {
    width: 100%;
    padding: 0.875rem 1rem;
    border-radius: 0.75rem;
    background: rgba(11, 16, 25, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1rem;
    transition: all 0.2s;
}

.input-field:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(0, 234, 255, 0.2);
}

.input-field::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

/* ==================== 安全区域 ==================== */
.safe-area-bottom {
    padding-bottom: calc(1.5rem + env(safe-area-inset-bottom));
}

/* ==================== 响应式调整 ==================== */
@media (max-width: 640px) {
    .nav-item span {
        font-size: 10px;
    }
    
    .nav-item .material-symbols-outlined {
        font-size: 24px;
    }
}

/* ==================== 隐藏元素 ==================== */
.hidden {
    display: none !important;
}

/* ==================== 平滑滚动 ==================== */
html {
    scroll-behavior: smooth;
}

/* ==================== 选中状态 ==================== */
::selection {
    background: rgba(0, 234, 255, 0.3);
    color: #fff;
}

/* ==================== 打印颜色调整 ==================== */
select {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}
