/* =============================================
   石头商城 - QQ三国物品查询系统 全站样式
   深色主题 · 现代风格 · 游戏科技感
   ============================================= */

/* ===== 基础变量 ===== */
:root {
    --bg-primary: #0a0e17;
    --bg-secondary: #111827;
    --bg-card: #1a2332;
    --bg-card-hover: #1f2b3d;
    --bg-input: #0d1421;
    --bg-modal: rgba(0, 0, 0, 0.8);
    --border-color: #2a3a4e;
    --border-focus: #3b82f6;

    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-bright: #f8fafc;

    --accent-blue: #3b82f6;
    --accent-blue-glow: rgba(59, 130, 246, 0.3);
    --accent-purple: #8b5cf6;
    --accent-green: #10b981;
    --accent-red: #ef4444;
    --accent-yellow: #f59e0b;
    --accent-orange: #f97316;
    --accent-cyan: #06b6d4;

    --gradient-primary: linear-gradient(135deg, #3b82f6, #8b5cf6);
    --gradient-success: linear-gradient(135deg, #10b981, #06b6d4);
    --gradient-danger: linear-gradient(135deg, #ef4444, #f97316);
    --gradient-card: linear-gradient(145deg, #1a2332 0%, #111827 100%);

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(59, 130, 246, 0.15);

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Reset 和全局 ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* 背景装饰 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(139, 92, 246, 0.06) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

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

a:hover {
    color: var(--accent-purple);
}

::selection {
    background: var(--accent-blue);
    color: white;
}

/* ===== 滚动条 ===== */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}
::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ===== 布局容器 ===== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===== 导航栏 ===== */
.navbar {
    background: rgba(17, 24, 39, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-bright);
}

.navbar-brand .logo-icon {
    width: 36px;
    height: 36px;
    background: var(--gradient-primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.navbar-nav a, .navbar-nav button {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition);
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.navbar-nav a:hover, .navbar-nav button:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.navbar-nav a.active {
    color: var(--accent-blue);
    background: rgba(59, 130, 246, 0.1);
}

.navbar-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    font-size: 0.813rem;
}

.user-badge .count {
    color: var(--accent-green);
    font-weight: 600;
    font-family: var(--font-mono);
}

/* ===== 登录/注册页 ===== */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    position: relative;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 1;
}

.auth-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(139, 92, 246, 0.1), transparent);
    z-index: -1;
    pointer-events: none;
}

.auth-header {
    text-align: center;
    margin-bottom: 36px;
}

.auth-header .logo {
    width: 64px;
    height: 64px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 16px;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
}

.auth-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-bright);
    margin-bottom: 4px;
}

.auth-header p {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.auth-tabs {
    display: flex;
    background: var(--bg-input);
    border-radius: var(--radius-sm);
    padding: 3px;
    margin-bottom: 28px;
}

.auth-tabs button {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 4px;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.auth-tabs button.active {
    background: var(--accent-blue);
    color: white;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

/* ===== 表单 ===== */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.813rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.3px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.938rem;
    transition: var(--transition);
    font-family: inherit;
    outline: none;
}

.form-input:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px var(--accent-blue-glow);
}

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

.form-select {
    width: 100%;
    padding: 12px 16px;
    appearance: none;
    background: var(--bg-input) url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e") right 12px center/20px no-repeat;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.938rem;
    transition: var(--transition);
    font-family: inherit;
    outline: none;
    cursor: pointer;
}

.form-select:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px var(--accent-blue-glow);
}

/* ===== 按钮 ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.938rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    outline: none;
    white-space: nowrap;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4);
}

.btn-success {
    background: var(--gradient-success);
    color: white;
}

.btn-danger {
    background: var(--gradient-danger);
    color: white;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.btn-outline:hover {
    border-color: var(--accent-blue);
    color: var(--accent-blue);
    background: rgba(59, 130, 246, 0.05);
}

.btn-sm {
    padding: 6px 14px;
    font-size: 0.813rem;
}

.btn-lg {
    padding: 14px 32px;
    font-size: 1rem;
}

.btn-block {
    width: 100%;
}

/* ===== 卡片 ===== */
.card {
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
}

.card:hover {
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: var(--shadow-glow);
}

.card-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-bright);
}

.card-body {
    padding: 20px;
}

/* ===== 查询区域 ===== */
.search-panel {
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-md);
}

.search-form {
    display: grid;
    grid-template-columns: 1fr 1fr 2fr auto;
    gap: 16px;
    align-items: end;
}

.search-options {
    display: flex;
    gap: 24px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.option-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.option-group label {
    font-size: 0.813rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* 切换开关 */
.switch-group {
    display: flex;
    background: var(--bg-input);
    border-radius: var(--radius-sm);
    padding: 2px;
    border: 1px solid var(--border-color);
}

.switch-group button {
    padding: 6px 16px;
    border: none;
    border-radius: 4px;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.813rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.switch-group button.active {
    background: var(--accent-blue);
    color: white;
    box-shadow: 0 1px 4px rgba(59, 130, 246, 0.3);
}

.switch-group button.svip.active {
    background: var(--accent-purple);
    box-shadow: 0 1px 4px rgba(139, 92, 246, 0.3);
}

/* ===== 状态栏 ===== */
.status-bar {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.status-item {
    flex: 1;
    min-width: 180px;
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.status-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.status-icon.blue { background: rgba(59, 130, 246, 0.15); }
.status-icon.green { background: rgba(16, 185, 129, 0.15); }
.status-icon.purple { background: rgba(139, 92, 246, 0.15); }
.status-icon.yellow { background: rgba(245, 158, 11, 0.15); }

.status-info .status-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-info .status-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-bright);
    font-family: var(--font-mono);
}

/* ===== Tab 切换 ===== */
.tabs {
    display: flex;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 0;
    gap: 4px;
}

.tab-btn {
    padding: 12px 20px;
    border: none;
    background: none;
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    position: relative;
}

.tab-btn:hover {
    color: var(--text-primary);
}

.tab-btn.active {
    color: var(--accent-blue);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-blue);
    border-radius: 1px;
}

.tab-btn .badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: var(--accent-blue);
    border-radius: 10px;
    font-size: 0.688rem;
    font-weight: 700;
    color: white;
    margin-left: 6px;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* ===== 数据表格 ===== */
.table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.data-table th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.data-table td {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(42, 58, 78, 0.5);
    color: var(--text-primary);
    vertical-align: middle;
    text-align: center;
}

.data-table tr:hover td {
    background: rgba(59, 130, 246, 0.03);
}

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

/* ==================== 暗色游戏风卡片列表（对标参考站） ==================== */

/* 卡片列表容器 */
.data-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 600px;
    overflow-y: auto;
}
.data-list:empty::after {
    content: '暂无数据';
    display: block;
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* 单个数据卡片 */
.data-item {
    padding: 8px 16px;
    background: rgba(1, 33, 44, 0.85);
    border-radius: 5px;
    border: 1px solid #01c5e8;
    box-sizing: border-box;
    color: #fff;
    margin-top: 5px;
    line-height: 22px;
    font-size: 13px;
    position: relative;
    overflow: hidden;
}
.data-item:first-child { margin-top: 0; }

/* 文字描边（暗底可读性增强） */
.font-stroke {
    text-shadow: 1px 1px 1px #000, -1px -1px 1px #000, -1px 1px 1px #000, 1px -1px 1px #000;
}

/* 数据行布局 */
.data-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 12px;
}
.data-row span {
    display: inline-block;
    line-height: 22px;
    vertical-align: top;
    white-space: nowrap;
}

/* 物品标题（渐变青色） */
.data-title {
    color: #ffff64;
    min-width: 200px;
}
.name-title {
    color: #2feeff;
    font-weight: 700;
    text-shadow: 0 0 6px rgba(47,238,255,0.4);
}

/* 商行/摊位名 */
.data-name {
    min-width: 120px;
}

/* 价格区域 */
.data-price {
    display: inline-flex !important;
    align-items: center;
    justify-content: flex-end;
    min-width: 140px;
    font-weight: 700;
}

/* 价格颜色按位数（对标参考站 priceFour ~ priceEleven） */
.price-4  { color: #fff; }
.price-5  { color: #00c0ff; }
.price-6  { color: #00be32; }
.price-7  { color: #ff7d00; }
.price-8  { color: #fa44e6; }
.price-9  { color: #ff0000; }
.price-10 { color: #f1f103; }
.price-11 { color: #14ddd6; }

/* 日期渐变 */
.data-date {
    font-size: 12px;
    background: linear-gradient(#f69323, #fae579);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    font-weight: 700;
}

/* 展开/折叠按钮 */
.expand-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(1,197,232,0.3);
    color: #01c5e8;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.2s;
}
.expand-btn:hover {
    background: rgba(1,197,232,0.15);
    border-color: #01c5e8;
}
.data-item.expanded .expand-btn {
    transform: translateY(-50%) rotate(180deg);
}

/* 查看属性提示按钮 */
.attr-hint {
    text-align: center;
    color: #01c5e8;
    font-size: 12px;
    padding: 4px 0 0;
    opacity: 0.8;
    transition: opacity 0.2s;
    text-shadow: none;
}
.data-item:hover .attr-hint {
    opacity: 1;
}
.data-item.expanded .attr-hint {
    color: #9d9c9a;
}

/* SVIP 属性展开区 */
.attr-expand {
    display: none;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed rgba(1,197,232,0.3);
}
.data-item.expanded .attr-expand {
    display: block;
}

/* 元神属性数据盒 */
.ys-data-box {
    background: rgba(1, 34, 48, 0.8);
    border-radius: 10px;
    padding: 10px 12px;
    max-width: 100%;
    box-sizing: border-box;
    font-size: 13px;
}

/* 属性信息行 */
.ys-info-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    margin-bottom: 6px;
    align-items: center;
}

/* 属性标签（渐变金色） */
.ys-label {
    background: linear-gradient(#fcf8bd, #ff9e03);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    display: inline-block;
    position: relative;
    text-shadow: none;
}

/* 六大属性表格 */
.attr-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    margin: 6px 0;
}
.attr-table th {
    padding: 4px 6px;
    text-align: center;
    font-weight: 600;
    color: #ffe08b;
    background: rgba(1,40,56,0.6);
    border: 1px solid rgba(1,197,232,0.2);
    white-space: nowrap;
}
.attr-table td {
    padding: 4px 6px;
    text-align: center;
    border: 1px solid rgba(1,197,232,0.15);
    color: #fff;
}
/* 属性名列 */
.attr-table .attr-name {
    text-align: left;
    font-weight: 600;
    white-space: nowrap;
}
/* 六大属性各自的渐变色 */
.attr-wg { background: linear-gradient(#ffa66e, #f15f59); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; font-weight: 700; text-shadow: none; }
.attr-fg { background: linear-gradient(#f580d3, #9a4cc3); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; font-weight: 700; text-shadow: none; }
.attr-wd { background: linear-gradient(#03bcff, #4e61ff); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; font-weight: 700; text-shadow: none; }
.attr-fd { background: linear-gradient(#6cf3ff, #0baaff); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; font-weight: 700; text-shadow: none; }
.attr-gp { background: linear-gradient(#a1ee67, #77ba0b); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; font-weight: 700; text-shadow: none; }
.attr-fp { background: linear-gradient(#f0e967, #eeb40b); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; font-weight: 700; text-shadow: none; }

/* 附加值绿色 */
.val-add { color: #35bc34; margin-left: 4px; }
/* 评价颜色（按前缀：白/绿/蓝/紫） */
.rate-white  { color: #ffffff; }
.rate-green  { color: #00be32; }
.rate-blue   { color: #00c0ff; }
.rate-purple { color: #cc66ff; }
.rate-putong { color: #9d9c9a; }

/* 技能/特技标签 */
.skill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 6px;
    align-items: center;
}
.skill-row .label {
    color: #ffe08b;
    margin-right: 4px;
    font-weight: 600;
    font-size: 13px;
}
.skill-tag {
    display: inline-block;
    padding: 2px 8px;
    background: rgba(0,14,19,0.8);
    border: 1px solid rgba(7,202,239,0.3);
    border-radius: 4px;
    font-size: 12px;
    color: #00c0ff;
    line-height: 18px;
}
.stunt-tag {
    display: inline-block;
    padding: 2px 8px;
    background: rgba(0,14,19,0.8);
    border: 1px solid rgba(250,68,230,0.3);
    border-radius: 4px;
    font-size: 12px;
    color: #fa44e6;
    line-height: 18px;
}

/* 融合槽位 */
.fuse-box {
    margin-top: 8px;
    padding-top: 6px;
    border-top: 1px dashed #05c0dd;
}
.fuse-row {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 4px;
}
.fuse-slot {
    display: flex;
    align-items: center;
    gap: 3px;
}
.fuse-icon {
    width: 18px;
    height: 18px;
    font-size: 11px;
    border: 2px solid #000b10;
    background: linear-gradient(#fcb18e, #b03533);
    font-weight: 700;
    color: #fff;
    text-align: center;
    line-height: 18px;
    border-radius: 4px;
}
.fuse-val {
    color: #f9ff00;
    text-align: center;
    border-radius: 8px;
    background: rgba(0,14,19,0.8);
    font-size: 11px;
    border-bottom: 1px solid #355660;
    height: 18px;
    line-height: 18px;
    padding: 0 6px;
    min-width: 20px;
}

/* 其他信息 */
.extra-info {
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px dashed rgba(5,192,221,0.3);
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    font-size: 12px;
}
.extra-info .lbl { color: #f6f1ba; }
.extra-info .val-green { color: #60ff00; }
.extra-info .val-blue { color: #00c0ff; }
.extra-info .val-yellow { color: #f9ff00; }

/* 装备属性区块 */
.equip-section {
    margin: 4px 0;
    font-size: 12px;
    color: #c8c9cc;
}
.equip-section .lbl { color: #f6f1ba; margin-right: 4px; }
.equip-section .val-add { color: #60ff00; }
.equip-section .val-blue { color: #00c0ff; }

/* 响应式适配 */
@media (max-width: 768px) {
    .data-item { padding: 6px 10px; font-size: 12px; }
    .data-row { gap: 2px 8px; }
    .data-title { min-width: auto; width: 100%; }
    .data-name { min-width: auto; }
    .data-price { min-width: auto; }
    .expand-btn { width: 24px; height: 24px; font-size: 12px; }
    .attr-table { font-size: 11px; }
}

/* 物品颜色标记 */
.color-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}
.color-tag.color-红 { background: rgba(239, 68, 68, 0.15); color: #ef4444; }
.color-tag.color-黄 { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
.color-tag.color-蓝 { background: rgba(59, 130, 246, 0.15); color: #3b82f6; }
.color-tag.color-绿 { background: rgba(16, 185, 129, 0.15); color: #10b981; }
.color-tag.color-紫 { background: rgba(139, 92, 246, 0.15); color: #8b5cf6; }
.color-tag.color-橙 { background: rgba(249, 115, 22, 0.15); color: #f97316; }
.color-tag.color-白 { background: rgba(148, 163, 184, 0.15); color: #94a3b8; }

/* 价格显示 */
.price {
    font-family: var(--font-mono);
    font-weight: 600;
    color: var(--accent-yellow);
}

.price-low { color: var(--accent-green); }
.price-high { color: var(--accent-red); }

/* ===== 属性详情弹窗 ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: var(--bg-modal);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
    backdrop-filter: blur(8px);
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-bright);
}

.modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--accent-red);
}

.modal-body {
    padding: 24px;
}

.attr-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.attr-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 12px;
    background: var(--bg-input);
    border-radius: var(--radius-sm);
    font-size: 0.813rem;
}

.attr-item .attr-key {
    color: var(--text-muted);
}

.attr-item .attr-value {
    color: var(--text-bright);
    font-weight: 600;
    text-align: right;
}

/* ===== 充值页面 ===== */
.recharge-card {
    max-width: 500px;
    margin: 40px auto;
}

.sub-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
}

.sub-info-item {
    padding: 14px 16px;
    background: var(--bg-input);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.sub-info-item .label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.sub-info-item .value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-bright);
    font-family: var(--font-mono);
}

.sub-info-item .value.green { color: var(--accent-green); }
.sub-info-item .value.blue { color: var(--accent-blue); }
.sub-info-item .value.red { color: var(--accent-red); }

/* ===== Toast 提示 ===== */
.toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    box-shadow: var(--shadow-md);
    animation: toastIn 0.3s ease, toastOut 0.3s ease 2.7s forwards;
    max-width: 360px;
}

.toast-success {
    background: rgba(16, 185, 129, 0.9);
    color: white;
}

.toast-error {
    background: rgba(239, 68, 68, 0.9);
    color: white;
}

.toast-info {
    background: rgba(59, 130, 246, 0.9);
    color: white;
}

@keyframes toastIn {
    from { opacity: 0; transform: translateX(100%); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes toastOut {
    from { opacity: 1; }
    to { opacity: 0; transform: translateY(-20px); }
}

/* ===== Loading ===== */
.loading-spinner {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
}

.loading-spinner::before {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-top-color: var(--accent-blue);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 全屏加载 */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 14, 23, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    backdrop-filter: blur(4px);
}

.loading-overlay.hidden {
    display: none;
}

/* ===== 空状态 ===== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state .icon {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state p {
    font-size: 0.938rem;
}

/* ===== 分页 ===== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
}

.pagination button {
    padding: 8px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    color: var(--text-secondary);
    font-size: 0.813rem;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.pagination button:hover:not(:disabled) {
    border-color: var(--accent-blue);
    color: var(--accent-blue);
}

.pagination button.active {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    color: white;
}

/* ===== 管理后台特有样式 ===== */
.admin-layout {
    display: flex;
    min-height: calc(100vh - 64px);
}

.admin-sidebar {
    width: 240px;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    padding: 20px 0;
    flex-shrink: 0;
}

.admin-sidebar .menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-family: inherit;
}

.admin-sidebar .menu-item:hover {
    background: rgba(59, 130, 246, 0.05);
    color: var(--text-primary);
}

.admin-sidebar .menu-item.active {
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent-blue);
    border-right: 3px solid var(--accent-blue);
}

.admin-content {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    transition: var(--transition);
}

.stat-card:hover {
    border-color: rgba(59, 130, 246, 0.3);
}

.stat-card .stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.stat-card .stat-number {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-bright);
    font-family: var(--font-mono);
}

.stat-card .stat-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* 生成充值卡表单 */
.generate-form {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr auto;
    gap: 12px;
    align-items: end;
    padding: 20px;
    background: var(--bg-input);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
}

/* 卡密列表 */
.card-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 8px;
    padding: 16px;
    background: var(--bg-input);
    border-radius: var(--radius-md);
    max-height: 300px;
    overflow-y: auto;
}

.card-code {
    padding: 8px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.813rem;
    color: var(--accent-cyan);
    text-align: center;
    user-select: all;
    cursor: pointer;
}

.card-code:hover {
    border-color: var(--accent-cyan);
    background: rgba(6, 182, 212, 0.05);
}

/* ===== 历史价格图表区 ===== */
.price-history-list {
    padding: 12px 0;
}

.price-history-item {
    display: flex;
    justify-content: space-between;
    padding: 6px 12px;
    font-size: 0.813rem;
    border-left: 2px solid var(--border-color);
    margin-left: 8px;
    margin-bottom: 4px;
}

.price-history-item .ph-price {
    color: var(--accent-yellow);
    font-family: var(--font-mono);
    font-weight: 600;
}

.price-history-item .ph-time {
    color: var(--text-muted);
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
    .search-form {
        grid-template-columns: 1fr;
    }

    .search-options {
        flex-direction: column;
        gap: 12px;
    }

    .status-bar {
        flex-direction: column;
    }

    .status-item {
        min-width: auto;
    }

    .admin-layout {
        flex-direction: column;
    }

    .admin-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: 10px 0;
        display: flex;
        overflow-x: auto;
    }

    .admin-sidebar .menu-item {
        padding: 10px 16px;
        white-space: nowrap;
        border-right: none !important;
    }

    .admin-sidebar .menu-item.active {
        border-bottom: 2px solid var(--accent-blue);
        border-right: none !important;
    }

    .generate-form {
        grid-template-columns: 1fr 1fr;
    }

    .attr-grid {
        grid-template-columns: 1fr;
    }

    .sub-info {
        grid-template-columns: 1fr;
    }

    .navbar {
        padding: 0 16px;
    }

    .navbar-nav {
        gap: 2px;
    }

    .navbar-nav a, .navbar-nav button {
        padding: 6px 10px;
        font-size: 0.813rem;
    }

    .data-table {
        font-size: 0.813rem;
    }

    .data-table th, .data-table td {
        padding: 8px 10px;
    }
}

/* ===== 动画工具类 ===== */
.fade-in {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 可点击行 */
.clickable-row {
    cursor: pointer;
}

.clickable-row:hover td {
    background: rgba(59, 130, 246, 0.06) !important;
}

/* ===== 查询结果信息条 ===== */
.result-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--bg-input);
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    font-size: 0.813rem;
    color: var(--text-secondary);
}

.result-info .result-count {
    font-weight: 600;
    color: var(--accent-blue);
}

.result-info .result-time {
    color: var(--text-muted);
    font-family: var(--font-mono);
}

/* ===== 搜索联想下拉框 ===== */
.suggest-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    max-height: 280px;
    overflow-y: auto;
    z-index: 50;
    box-shadow: var(--shadow-lg);
}

.suggest-item {
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: background 0.15s;
    font-size: 0.875rem;
    color: var(--text-primary);
    border-bottom: 1px solid rgba(42, 58, 78, 0.3);
}

.suggest-item:last-child {
    border-bottom: none;
}

.suggest-item:hover {
    background: rgba(59, 130, 246, 0.1);
}

.suggest-name {
    flex: 1;
}

.suggest-type {
    font-size: 0.75rem;
    color: var(--text-muted);
    padding: 2px 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    margin-left: 8px;
    flex-shrink: 0;
}

/* ===== 升级按钮 ===== */
.upgrade-card {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(59, 130, 246, 0.1));
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-top: 16px;
    text-align: center;
}

.upgrade-card h4 {
    color: var(--accent-purple);
    margin-bottom: 8px;
    font-size: 1rem;
}

.upgrade-card p {
    color: var(--text-secondary);
    font-size: 0.813rem;
    margin-bottom: 12px;
}

.btn-upgrade {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    color: white;
    padding: 10px 28px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.938rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.btn-upgrade:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.4);
}
