/**
 * 个人标签引导页 - CSS变量和基础样式
 *
 * @description 定义CSS变量、主题、基础重置样式
 */

/* ==================== CSS变量定义 ==================== */
:root {
    --bg-primary: #0f0f1a;
    --bg-secondary: #1a1a2e;
    --bg-card: rgba(30, 30, 50, 0.95);
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --accent: #6366f1;
    --accent-hover: #4f46e5;
    --border: rgba(255, 255, 255, 0.1);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --radius: 16px;
    /* 支付页面专用变量 */
    --pay-box-bg: rgba(255, 255, 255, 0.05);
    --pay-box-hover: rgba(255, 255, 255, 0.08);
}

/* ==================== 浅色主题变量 ==================== */
[data-theme="light"] {
    --bg-primary: #f5f7fa;
    --bg-secondary: #eef2f7;
    --bg-card: rgba(255, 255, 255, 0.95);
    --text-primary: #1a202c;
    --text-secondary: #4a5568;
    --accent: #6366f1;
    --accent-hover: #4f46e5;
    --border: rgba(0, 0, 0, 0.08);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    /* 支付页面专用变量 - 浅色模式 */
    --pay-box-bg: rgba(99, 102, 241, 0.05);
    --pay-box-hover: rgba(99, 102, 241, 0.08);
}

/* 浅色模式下的输入框背景 */
[data-theme="light"] input[type="text"],
[data-theme="light"] input[type="number"],
[data-theme="light"] input[type="password"],
[data-theme="light"] input[type="email"],
[data-theme="light"] input[type="search"],
[data-theme="light"] input[type="time"],
[data-theme="light"] select,
[data-theme="light"] textarea,
[data-theme="light"] .form-input {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] input[type="text"]:focus,
[data-theme="light"] input[type="number"]:focus,
[data-theme="light"] input[type="password"]:focus,
[data-theme="light"] input[type="email"]:focus,
[data-theme="light"] input[type="search"]:focus,
[data-theme="light"] select:focus,
[data-theme="light"] textarea:focus,
[data-theme="light"] .form-input:focus {
    background: rgba(255, 255, 255, 1);
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* 浅色模式下的按钮 */
[data-theme="light"] .btn {
    background: rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .btn:hover {
    background: var(--accent);
    color: white;
}

[data-theme="light"] .btn-secondary {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid var(--border);
}

/* 浅色模式下的代码块 */
[data-theme="light"] code {
    background: rgba(0, 0, 0, 0.05);
}

/* 浅色模式下的滑块 */
[data-theme="light"] input[type="range"] {
    background: rgba(0, 0, 0, 0.1);
}

/* ==================== 基础样式重置 ==================== */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    transition: color 0.3s ease;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: none; }

/* 隐藏所有滚动条 */
::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

* {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

/* ==================== 通用工具类 ==================== */
.hidden { display: none !important; }
.show { display: block !important; }
