/* 会员中心精品样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-gradient: linear-gradient(135deg, #06b6d4 0%, #10b981 50%, #059669 100%);
    --primary-color: #06b6d4;
    --primary-light: #22d3ee;
    --primary-dark: #0891b2;
    --bg-dark: #020617;
    --bg-darker: #000000;
    --bg-card: rgba(15, 23, 42, 0.85);
    --bg-card-hover: rgba(30, 41, 59, 0.95);
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #64748b;
    --border-color: rgba(148, 163, 184, 0.15);
    --glass-bg: rgba(15, 23, 42, 0.7);
    --glass-border: rgba(255, 255, 255, 0.08);
    --shadow-glow: 0 0 40px rgba(6, 182, 212, 0.15);
    --shadow-soft: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-darker);
    color: var(--text-primary);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    letter-spacing: -0.01em;
}

/* 多层渐变星空背景 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 10% 10%, rgba(6, 182, 212, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 90% 90%, rgba(16, 185, 129, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(139, 92, 246, 0.08) 0%, transparent 60%),
        linear-gradient(135deg, #020617 0%, #0f172a 50%, #020617 100%);
    z-index: -3;
}

/* 星云效果 */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(1.5px 1.5px at 50px 100px, rgba(248, 250, 252, 0.9), transparent),
        radial-gradient(1px 1px at 120px 60px, rgba(248, 250, 252, 0.7), transparent),
        radial-gradient(1.5px 1.5px at 200px 150px, rgba(248, 250, 252, 0.8), transparent),
        radial-gradient(1px 1px at 300px 200px, rgba(248, 250, 252, 0.6), transparent),
        radial-gradient(1.5px 1.5px at 400px 80px, rgba(248, 250, 252, 0.9), transparent),
        radial-gradient(1px 1px at 500px 250px, rgba(248, 250, 252, 0.7), transparent),
        radial-gradient(1.5px 1.5px at 600px 180px, rgba(248, 250, 252, 0.8), transparent),
        radial-gradient(1px 1px at 700px 50px, rgba(248, 250, 252, 0.6), transparent);
    background-size: 800px 400px;
    animation: twinkle 12s ease-in-out infinite;
    z-index: -2;
}

@keyframes twinkle {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.02); }
}

/* 流动光效 */
@keyframes glowFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 精致磨砂玻璃卡片 */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(24px) saturate(150%);
    -webkit-backdrop-filter: blur(24px) saturate(150%);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
}

.glass-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-soft), var(--shadow-glow);
    border-color: rgba(6, 182, 212, 0.2);
}

/* 渐变按钮 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--primary-gradient);
    background-size: 200% 200%;
    color: white;
    box-shadow: 0 4px 20px rgba(6, 182, 212, 0.35);
    animation: glowFlow 6s ease infinite;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(6, 182, 212, 0.5);
}

.btn-secondary {
    background: rgba(30, 41, 59, 0.8);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(51, 65, 85, 0.9);
    border-color: rgba(6, 182, 212, 0.3);
}

/* 精致表单 */
.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.form-input {
    width: 100%;
    padding: 14px 18px;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.15);
    background: rgba(15, 23, 42, 0.95);
}

.form-input::placeholder {
    color: var(--text-muted);
}

/* 精品统计卡片 */
.stats-card {
    background: var(--glass-bg);
    backdrop-filter: blur(24px) saturate(150%);
    -webkit-backdrop-filter: blur(24px) saturate(150%);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 28px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.stats-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-gradient);
    background-size: 200% 200%;
    animation: glowFlow 6s ease infinite;
}

.stats-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.08) 0%, transparent 70%);
    transition: all 0.4s;
}

.stats-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-soft), var(--shadow-glow);
    border-color: rgba(6, 182, 212, 0.25);
}

.stats-card:hover::after {
    top: -30%;
    right: -30%;
}

.stats-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.stats-value {
    font-size: 36px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 6px;
    letter-spacing: -0.02em;
    position: relative;
    z-index: 1;
}

.stats-label {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
    position: relative;
    z-index: 1;
}

/* 面板卡片组件 */
.card-header {
    padding: 24px 28px;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-body {
    padding: 24px 28px;
}

/* 快捷操作按钮 */
.quick-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 16px;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid var(--glass-border);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.quick-action-btn:hover {
    background: rgba(30, 41, 59, 0.8);
    transform: translateY(-4px);
    border-color: rgba(6, 182, 212, 0.25);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

/* 活动条目 */
.activity-item {
    transition: all 0.3s;
}

.activity-item:hover {
    transform: translateX(4px);
}

/* 会员中心专用表格 */
.member-table {
    width: 100%;
    border-collapse: collapse;
}

.member-table th {
    padding: 16px 20px;
    text-align: left;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--glass-border);
}

.member-table td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--glass-border);
    color: var(--text-secondary);
    font-size: 14px;
}

.member-table tr:last-child td {
    border-bottom: none;
}

.member-table tr {
    transition: background 0.2s;
}

.member-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

/* 空状态 */
.empty-state {
    padding: 80px 40px;
    text-align: center;
}

.empty-state-icon {
    font-size: 64px;
    color: var(--text-muted);
    margin-bottom: 24px;
    opacity: 0.5;
}

.empty-state-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.empty-state-desc {
    color: var(--text-muted);
    margin-bottom: 24px;
}

/* 标签 */
.tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
}

.tag-green {
    background: rgba(34, 197, 94, 0.12);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.tag-blue {
    background: rgba(6, 182, 212, 0.12);
    color: #22d3ee;
    border: 1px solid rgba(6, 182, 212, 0.2);
}

.tag-red {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.tag-yellow {
    background: rgba(234, 179, 8, 0.12);
    color: #eab308;
    border: 1px solid rgba(234, 179, 8, 0.2);
}

.tag-purple {
    background: rgba(139, 92, 246, 0.12);
    color: #a78bfa;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

/* 状态圆点 */
.status-dot {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px 4px 8px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 600;
}

.status-dot::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.status-dot-active {
    background: rgba(34, 197, 94, 0.12);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.2);
}
.status-dot-active::before { background: #22c55e; }

.status-dot-expired {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}
.status-dot-expired::before { background: #ef4444; }

.status-dot-warning {
    background: rgba(234, 179, 8, 0.12);
    color: #eab308;
    border: 1px solid rgba(234, 179, 8, 0.2);
}
.status-dot-warning::before { background: #eab308; }

/* 信息提示条 */
.alert {
    padding: 16px 20px;
    border-radius: 12px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
}

.alert-info {
    background: rgba(6, 182, 212, 0.08);
    border: 1px solid rgba(6, 182, 212, 0.2);
    color: #22d3ee;
}

.alert-success {
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.2);
    color: #4ade80;
}

.alert-warning {
    background: rgba(234, 179, 8, 0.08);
    border: 1px solid rgba(234, 179, 8, 0.2);
    color: #fbbf24;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #f87171;
}

/* 表单选择器选中样式 */
.peer:checked + .year-option {
    background: linear-gradient(135deg, rgba(6,182,212,0.2), rgba(16,185,129,0.15)) !important;
    color: #06b6d4 !important;
    border-color: rgba(6,182,212,0.3) !important;
}

/* 滚动条 */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(148,163,184,0.2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(148,163,184,0.4); }

/* 磨砂玻璃模态框 */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(8px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--glass-bg);
    backdrop-filter: blur(32px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 32px;
    max-width: 480px;
    width: 90%;
    box-shadow: var(--shadow-soft);
}

/* 价格展示 */
.price-display {
    padding: 20px 24px;
    border-radius: 16px;
    background: rgba(6,182,212,0.06);
    border: 1px solid rgba(6,182,212,0.15);
}

.price-amount {
    font-size: 32px;
    font-weight: 800;
    color: #06b6d4;
}

/* 分割线 */
.section-divider {
    height: 1px;
    background: var(--glass-border);
    margin: 32px 0;
}

/* 小号文本辅助 */
.text-hint {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 4px;
}

/* 工具类 */
.pl-11 { padding-left: 2.75rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.text-base { font-size: 1rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }
.text-center { text-align: center; }
.w-full { width: 100%; }
.justify-center { justify-content: center; }
.items-center { align-items: center; }
.mt-1 { margin-top: 0.25rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-7 { margin-top: 1.75rem; }
.mt-8 { margin-top: 2rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-7 { margin-bottom: 1.75rem; }
.mb-8 { margin-bottom: 2rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.rounded { border-radius: 0.25rem; }
.rounded-2xl { border-radius: 1rem; }
.cursor-pointer { cursor: pointer; }
.transition-colors { transition-property: color; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 300ms; }

/* 登录页面专用样式 */
.auth-card {
    width: 100%;
    max-width: 420px;
}

.auth-card .glass-card {
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(24px) saturate(150%);
    -webkit-backdrop-filter: blur(24px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 2rem;
}

.auth-card .form-input {
    padding: 14px 16px 14px 44px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 15px;
    transition: all 0.3s ease;
}

.auth-card .form-input:focus {
    outline: none;
    border-color: #06b6d4;
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.15);
    background: rgba(0, 0, 0, 0.4);
}

.auth-card .form-input::placeholder {
    color: var(--text-muted);
}

.auth-card .btn-primary {
    width: 100%;
    padding: 14px 28px;
    background: linear-gradient(135deg, #06b6d4 0%, #10b981 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 20px rgba(6, 182, 212, 0.35);
}

.auth-card .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(6, 182, 212, 0.5);
}

.auth-card .form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.auth-card .form-group {
    margin-bottom: 20px;
}

/* 星星动画优化 */
@keyframes twinkle {
    0%, 100% { opacity: 0.2; transform: scale(1); }
    50% { opacity: 0.9; transform: scale(1.2); }
}

.star {
    position: fixed;
    width: 2px;
    height: 2px;
    background: rgba(248, 250, 252, 0.9);
    border-radius: 50%;
    pointer-events: none;
    animation: twinkle 3s ease-in-out infinite;
}

/* 复选框样式 */
.auth-card input[type="checkbox"],
.auth-card .remember-checkbox {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    accent-color: #06b6d4;
    transition: all 0.2s ease;
    margin: 0;
}

.auth-card input[type="checkbox"]:checked,
.auth-card .remember-checkbox:checked {
    background: #06b6d4;
    border-color: #06b6d4;
}

/* 链接样式 */
.auth-card a {
    color: #06b6d4;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.auth-card a:hover {
    color: #22d3ee;
}

/* 响应式适配 */
@media (max-width: 480px) {
    .auth-card .glass-card {
        padding: 1.5rem;
        border-radius: 20px;
    }
    
    .auth-page {
        padding: 16px;
    }
}
