/* ===================================================== */
/*  TDSI 主题系统 v3.0 - 蓝白渐变毛玻璃 · 极简现代化     */
/* ===================================================== */

/* ===== CSS变量 ===== */
:root {
    /* 主色调 - 蓝白渐变 */
    --blue-50: #eff6ff;
    --blue-100: #dbeafe;
    --blue-200: #bfdbfe;
    --blue-300: #93c5fd;
    --blue-400: #60a5fa;
    --blue-500: #3b82f6;
    --blue-600: #2563eb;
    --blue-700: #1d4ed8;
    --blue-800: #1e40af;
    --blue-900: #1e3a5f;
    
    /* 背景色 - 深邃蓝黑渐变 */
    --bg-deep: #050816;
    --bg-dark: #0a0e27;
    --bg-mid: #111438;
    --bg-light: #1a2a5e;
    --bg-glass: rgba(255, 255, 255, 0.04);
    
    /* 毛玻璃色值 */
    --glass-bg: rgba(255, 255, 255, 0.06);
    --glass-border: rgba(255, 255, 255, 0.10);
    --glass-border-strong: rgba(255, 255, 255, 0.15);
    --glass-highlight: rgba(255, 255, 255, 0.12);
    --glass-shadow: rgba(0, 0, 0, 0.3);
    
    /* 文字颜色 */
    --text-primary: rgba(255, 255, 255, 0.92);
    --text-secondary: rgba(255, 255, 255, 0.65);
    --text-muted: rgba(255, 255, 255, 0.40);
    
    /* 蓝白渐变色值 */
    --gradient-primary: linear-gradient(135deg, #3b82f6, #60a5fa, #93c5fd);
    --gradient-accent: linear-gradient(135deg, #60a5fa, #3b82f6);
    --gradient-bg: linear-gradient(160deg, #050816 0%, #0a0e27 25%, #111438 50%, #1a2a5e 80%, #0a0e27 100%);
    --gradient-card: linear-gradient(160deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
    
    /* 模糊半径 */
    --blur-soft: 12px;
    --blur-medium: 20px;
    --blur-strong: 40px;
    
    /* 圆角 */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-2xl: 32px;
}

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

html { 
    scroll-behavior: smooth; 
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', -apple-system, 'Segoe UI', Roboto, sans-serif;
    /* 背景由各自页面控制，不在theme.css覆盖 */
    color: var(--text-primary);
    min-height: 100vh;
    padding-top: 70px;
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    cursor: default;
    /* 背景由各自页面控制，不在此覆盖 */
}

/* ===== 背景粒子层（深色模式专属）- 极暗金色 ===== */
body.dark-mode::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(1px 1px at 10% 20%, rgba(212,175,55,0.08), transparent),
        radial-gradient(1px 1px at 20% 50%, rgba(212,175,55,0.06), transparent),
        radial-gradient(1px 1px at 30% 80%, rgba(212,175,55,0.05), transparent),
        radial-gradient(1px 1px at 45% 15%, rgba(212,175,55,0.04), transparent),
        radial-gradient(1px 1px at 55% 60%, rgba(212,175,55,0.05), transparent),
        radial-gradient(1px 1px at 65% 30%, rgba(212,175,55,0.04), transparent),
        radial-gradient(1px 1px at 75% 75%, rgba(212,175,55,0.05), transparent),
        radial-gradient(1px 1px at 85% 40%, rgba(212,175,55,0.04), transparent),
        radial-gradient(1px 1px at 15% 90%, rgba(212,175,55,0.05), transparent),
        radial-gradient(1px 1px at 40% 70%, rgba(212,175,55,0.04), transparent),
        radial-gradient(1px 1px at 60% 10%, rgba(212,175,55,0.05), transparent),
        radial-gradient(1px 1px at 80% 85%, rgba(212,175,55,0.04), transparent),
        radial-gradient(1px 1px at 50% 50%, rgba(212,175,55,0.03), transparent),
        radial-gradient(1px 1px at 5% 35%, rgba(212,175,55,0.06), transparent),
        radial-gradient(1px 1px at 35% 65%, rgba(212,175,55,0.05), transparent),
        radial-gradient(1px 1px at 70% 45%, rgba(212,175,55,0.04), transparent),
        radial-gradient(1px 1px at 90% 15%, rgba(212,175,55,0.05), transparent),
        radial-gradient(1px 1px at 25% 10%, rgba(212,175,55,0.04), transparent),
        radial-gradient(1px 1px at 95% 55%, rgba(212,175,55,0.03), transparent),
        radial-gradient(1px 1px at 48% 88%, rgba(212,175,55,0.04), transparent);
    background-size: 200px 200px;
    pointer-events: none;
    animation: starDrift 30s linear infinite;
}

@keyframes starDrift {
    0% { transform: translateY(0); }
    100% { transform: translateY(-200px); }
}

/* ===== 极微弱金色光晕背景（深色模式专属） ===== */
body.dark-mode::after {
    content: '';
    position: fixed;
    inset: -50%;
    z-index: -1;
    background:
        radial-gradient(ellipse 40% 50% at 20% 30%, rgba(212,175,55,0.02) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 75% 65%, rgba(212,175,55,0.015) 0%, transparent 55%),
        radial-gradient(ellipse 60% 60% at 50% 50%, rgba(212,175,55,0.01) 0%, transparent 50%);
    pointer-events: none;
    animation: bgFloat 15s ease-in-out infinite alternate;
}

@keyframes bgFloat {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-2%, 1%) scale(1.04); }
}

/* ===== 鼠标跟随光效层 ===== */
#glow-overlay {
    position: fixed;
    inset: -200px;
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
    background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), 
                rgba(96,165,250,0.08) 0%, 
                rgba(147,197,253,0.04) 30%, 
                transparent 60%);
}

#glow-overlay.active {
    opacity: 1;
}

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

/* ===== 导航栏 - 极暗毛玻璃深色版 ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 0.5px solid rgba(212,175,55,0.08);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

header.scrolled {
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(24px) saturate(200%);
    box-shadow: 0 4px 40px rgba(0, 0, 0, 0.7);
}

.hdr {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 20px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 16px;
    color: var(--text-primary);
    text-decoration: none;
    text-shadow: 0 0 20px rgba(212,175,55,0.15);
}

.brand img {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(212,175,55,0.1);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 4px;
}

nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    padding: 8px 16px;
    border-radius: 10px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    background: transparent;
    border: 0.5px solid transparent;
}

nav a:hover, nav a.active {
    color: #fff;
    background: rgba(96,165,250,0.15);
    border-color: rgba(96,165,250,0.2);
    box-shadow: 0 0 20px rgba(96,165,250,0.1);
}

/* ===== 毛玻璃卡片 - 极暗深色版 ===== */
.glass-card {
    position: relative;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(var(--blur-medium)) saturate(180%);
    -webkit-backdrop-filter: blur(var(--blur-medium)) saturate(180%);
    border: 0.5px solid rgba(212,175,55,0.08);
    border-radius: var(--radius-xl);
    box-shadow: 
        0 8px 32px rgba(0,0,0,0.5),
        0 0 0 0.5px rgba(212,175,55,0.03) inset,
        0 1px 0 0 rgba(212,175,55,0.05) inset;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: -0.5px;
    left: 10%;
    right: 10%;
    height: 0.5px;
    background: linear-gradient(90deg, transparent, rgba(212,175,55,0.15), transparent);
    border-radius: 1px;
}

.glass-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(160deg, rgba(212,175,55,0.02) 0%, transparent 40%, rgba(212,175,55,0.01) 100%);
    pointer-events: none;
}

.glass-card:hover {
    transform: translateY(-3px);
    border-color: rgba(212,175,55,0.15);
    box-shadow: 
        0 12px 48px rgba(0,0,0,0.6),
        0 0 0 0.5px rgba(212,175,55,0.05) inset,
        0 1px 0 0 rgba(212,175,55,0.08) inset;
}

/* ===== 按钮系统 - 金色主题 ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    border: 0.5px solid rgba(212,175,55,0.15);
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, rgba(212,175,55,0.2), rgba(212,175,55,0.15));
    backdrop-filter: blur(12px);
    color: #D4AF37;
    border-color: rgba(212,175,55,0.2);
    box-shadow: 0 4px 15px rgba(212,175,55,0.1);
}

.btn-primary:hover {
    background: linear-gradient(135deg, rgba(212,175,55,0.3), rgba(212,175,55,0.2));
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212,175,55,0.12);
    border-color: rgba(212,175,55,0.25);
}

.btn-outline {
    background: transparent;
    backdrop-filter: blur(8px);
    color: rgba(255,255,255,0.6);
    border-color: rgba(212,175,55,0.1);
}

.btn-outline:hover {
    background: rgba(212,175,55,0.08);
    color: rgba(255,255,255,0.85);
    border-color: rgba(212,175,55,0.15);
}

/* ===================================================== */
/*  深色模式 - 极深黑金主题  */
/* ===================================================== */
body.dark-mode {
    --bg-deep: #000000;
    --bg-dark: #050505;
    --bg-mid: #080808;
    --bg-light: #0a0a0a;
    --bg-glass: rgba(255, 255, 255, 0.01);
    --glass-bg: rgba(0, 0, 0, 0.5);
    --glass-border: rgba(212, 175, 55, 0.08);
    --glass-border-strong: rgba(212, 175, 55, 0.15);
    --glass-highlight: rgba(212, 175, 55, 0.05);
    --glass-shadow: rgba(0, 0, 0, 0.8);
    --text-primary: rgba(255, 255, 255, 0.85);
    --text-secondary: rgba(255, 255, 255, 0.5);
    --text-muted: rgba(255, 255, 255, 0.3);
    --gradient-primary: linear-gradient(135deg, #D4AF37, #F0D060, #E8C84A);
    --gradient-accent: linear-gradient(135deg, #D4AF37, #B8960F);
    --gradient-bg: linear-gradient(160deg, #000000 0%, #050505 25%, #080808 50%, #0a0a0a 80%, #050505 100%);
    --gradient-card: linear-gradient(160deg, rgba(212,175,55,0.03), rgba(0,0,0,0.3));
    --blue-50: #1a1400;
    --blue-100: #2a2200;
    --blue-200: #3a3000;
    --blue-300: #D4AF37;
    --blue-400: #E8C84A;
    --blue-500: #F0D060;
    --blue-600: #D4AF37;
    --blue-700: #B8960F;
    --blue-800: #8a7000;
    --blue-900: #5c4a00;
}
body.dark-mode .glass-card {
    background: rgba(0, 0, 0, 0.5);
    border-color: rgba(212,175,55,0.08);
}
body.dark-mode .glass-card::before {
    background: linear-gradient(90deg, transparent, rgba(212,175,55,0.15), transparent);
}
body.dark-mode .glass-card::after {
    background: linear-gradient(160deg, rgba(212,175,55,0.02) 0%, transparent 40%, rgba(212,175,55,0.01) 100%);
}
body.dark-mode .card {
    background: rgba(0, 0, 0, 0.4);
    border-color: rgba(212,175,55,0.08);
}
body.dark-mode .card:hover {
    background: rgba(0, 0, 0, 0.5);
    border-color: rgba(212,175,55,0.15);
    box-shadow: 0 12px 40px rgba(0,0,0,0.8), 0 0 30px rgba(212,175,55,0.02);
}
body.dark-mode .filter-tag:hover,
body.dark-mode .filter-tag.active {
    background: linear-gradient(135deg, rgba(212,175,55,0.1), rgba(212,175,55,0.08));
    border-color: rgba(212,175,55,0.15);
    box-shadow: 0 4px 15px rgba(212,175,55,0.05);
}
body.dark-mode nav a:hover,
body.dark-mode nav a.active {
    background: rgba(212,175,55,0.1);
    border-color: rgba(212,175,55,0.15);
    box-shadow: 0 0 20px rgba(212,175,55,0.03);
}
body.dark-mode .btn-primary {
    background: linear-gradient(135deg, rgba(212,175,55,0.2), rgba(212,175,55,0.15));
    border-color: rgba(212,175,55,0.2);
    box-shadow: 0 4px 15px rgba(212,175,55,0.1);
}
body.dark-mode .btn-primary:hover {
    background: linear-gradient(135deg, rgba(212,175,55,0.3), rgba(212,175,55,0.2));
    box-shadow: 0 8px 25px rgba(212,175,55,0.12);
}
body.dark-mode::-webkit-scrollbar-thumb {
    background: rgba(212,175,55,0.15);
}
body.dark-mode::-webkit-scrollbar-thumb:hover {
    background: rgba(212,175,55,0.2);
}

/* 切换按钮样式 */
.theme-toggle {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 14px; border-radius: 20px;
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(8px);
    border: 0.5px solid rgba(212,175,55,0.1);
    color: rgba(255,255,255,0.6);
    font-size: 12px; font-weight: 500;
    cursor: pointer; transition: all 0.3s ease;
    font-family: inherit;
}
.theme-toggle:hover {
    background: rgba(212,175,55,0.1);
    color: rgba(255,255,255,0.85);
    border-color: rgba(212,175,55,0.15);
}
body.dark-mode .theme-toggle {
    background: rgba(0,0,0,0.5);
    border-color: rgba(212,175,55,0.1);
    color: rgba(255,255,255,0.6);
}
body.dark-mode .theme-toggle:hover {
    background: rgba(212,175,55,0.1);
    border-color: rgba(212,175,55,0.15);
    color: #D4AF37;
}

/* ===== 表单输入 ===== */
.glass-input {
    width: 100%;
    padding: 12px 20px;
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 0.5px solid rgba(212,175,55,0.1);
    border-radius: var(--radius-md);
    color: rgba(255,255,255,0.85);
    font-size: 14px;
    transition: all 0.4s ease;
    outline: none;
}

.glass-input:focus {
    border-color: rgba(212,175,55,0.25);
    background: rgba(0,0,0,0.4);
    box-shadow: 0 0 20px rgba(212,175,55,0.05);
}

.glass-input::placeholder {
    color: rgba(255,255,255,0.3);
}

/* ===== 标签/徽章 ===== */
.glass-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 20px;
    background: rgba(212,175,55,0.08);
    backdrop-filter: blur(8px);
    border: 0.5px solid rgba(212,175,55,0.1);
    color: #D4AF37;
    font-size: 11px;
    font-weight: 500;
}

.glass-tag-req {
    background: rgba(239,68,68,0.08);
    border-color: rgba(239,68,68,0.1);
    color: #fca5a5;
}

.glass-tag-perf {
    background: rgba(34,197,94,0.08);
    border-color: rgba(34,197,94,0.1);
    color: #86efac;
}

/* ===== 搜索框 ===== */
.glass-search {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.glass-search input {
    width: 100%;
    padding: 14px 20px 14px 48px;
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(16px) saturate(180%);
    border: 0.5px solid rgba(212,175,55,0.1);
    border-radius: var(--radius-lg);
    color: rgba(255,255,255,0.85);
    font-size: 14px;
    transition: all 0.4s ease;
    outline: none;
}

.glass-search input:focus {
    background: rgba(0,0,0,0.4);
    border-color: rgba(212,175,55,0.2);
    box-shadow: 0 0 30px rgba(212,175,55,0.03);
}

.glass-search input::placeholder {
    color: rgba(255,255,255,0.3);
}

.glass-search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255,255,255,0.4);
    font-size: 16px;
    pointer-events: none;
}

/* ===== 页面标题 ===== */
.page-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.page-header h2 {
    font-size: 32px;
    font-weight: 800;
    background: linear-gradient(135deg, #D4AF37, #F0D060, #E8C84A);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.page-header .desc {
    font-size: 14px;
    color: rgba(255,255,255,0.5);
    max-width: 500px;
    margin: 0 auto;
}

/* ===== 筛选标签 ===== */
.filter-tags {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.filter-tag {
    padding: 8px 20px;
    border-radius: 20px;
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(8px);
    border: 0.5px solid rgba(212,175,55,0.08);
    color: rgba(255,255,255,0.55);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    font-size: 13px;
    font-weight: 500;
}

.filter-tag:hover, .filter-tag.active {
    background: linear-gradient(135deg, rgba(212,175,55,0.15), rgba(212,175,55,0.1));
    color: #D4AF37;
    border-color: rgba(212,175,55,0.2);
    box-shadow: 0 4px 15px rgba(212,175,55,0.05);
}

/* ===== 网格 ===== */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
    margin-bottom: 40px;
}

/* ===== 卡片 ===== */
.card {
    background: rgba(0,0,0,0.35);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 0.5px solid rgba(212,175,55,0.08);
    border-radius: var(--radius-lg);
    padding: 18px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    gap: 14px;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: -0.5px;
    left: 15%;
    right: 15%;
    height: 0.5px;
    background: linear-gradient(90deg, transparent, rgba(212,175,55,0.15), transparent);
}

.card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(160deg, rgba(212,175,55,0.02) 0%, transparent 50%);
    pointer-events: none;
}

.card:hover {
    transform: translateY(-4px);
    border-color: rgba(212,175,55,0.15);
    background: rgba(0,0,0,0.45);
    box-shadow: 
        0 12px 40px rgba(0,0,0,0.5),
        0 0 30px rgba(212,175,55,0.02);
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.card-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-md);
}

.card-info {
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 1;
}

.card-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.card-desc {
    font-size: 11px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 10px;
}

/* ===== 章节标题 ===== */
.section-title {
    font-size: 20px;
    font-weight: 700;
    color: rgba(255,255,255,0.85);
    margin: 35px 0 16px;
    padding-left: 14px;
    border-left: 3px solid #D4AF37;
    position: relative;
}

/* ===== 空白状态 ===== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: rgba(255,255,255,0.3);
}

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

.empty-state p {
    font-size: 14px;
}

/* ===== 滚动条 ===== */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(212,175,55,0.15);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(212,175,55,0.25);
}

/* ===== 回到顶部 ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(16px);
    border: 0.5px solid rgba(212,175,55,0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    color: rgba(255,255,255,0.6);
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.back-to-top:hover {
    background: rgba(212,175,55,0.15);
    border-color: rgba(212,175,55,0.2);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(212,175,55,0.1);
    color: #D4AF37;
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
    body {
        padding-top: 60px;
    }
    
    .hdr {
        padding: 10px 14px;
    }
    
    nav a {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .container {
        padding: 14px;
    }
    
    .page-header h2 {
        font-size: 24px;
    }
    
    .grid {
        grid-template-columns: 1fr;
    }
    
    .glass-card {
        border-radius: var(--radius-lg);
    }
}

/* ===== 动画 ===== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.fade-in-delay-1 { animation-delay: 0.1s; }
.fade-in-delay-2 { animation-delay: 0.2s; }
.fade-in-delay-3 { animation-delay: 0.3s; }

/* ===== Toast ===== */
.toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(5,8,22,0.85);
    backdrop-filter: blur(20px);
    color: #fff;
    padding: 12px 28px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 500;
    z-index: 9998;
    opacity: 0;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
    border: 0.5px solid var(--glass-border);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    gap: 8px;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
