/* ========================================
   环球汇通 - 高端金融风格样式
   ======================================== */

/* 字体引入 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;600;700&family=Noto+Sans+SC:wght@300;400;500;600;700&display=swap');

/* CSS变量 */
:root {
    /* 主色调 - 深邃藏青 */
    --primary-dark: #0a1628;
    --primary-blue: #16213e;
    --primary-navy: #1a2744;
    
    /* 强调色 - 尊享金 */
    --accent-gold: #c9a962;
    --accent-gold-light: #e8d5a3;
    --accent-gold-dark: #a08642;
    
    /* 功能色 */
    --success: #34d399;
    --warning: #fbbf24;
    --danger: #ef4444;
    --info: #60a5fa;
    --info-green: #82E0AA;
    
    /* 中性色 */
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border-color: rgba(201, 169, 98, 0.2);
    
    /* 背景 */
    --bg-card: rgba(26, 39, 68, 0.8);
    --bg-card-hover: rgba(26, 39, 68, 1);
    
    /* 阴影 */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --shadow-gold: 0 4px 20px rgba(201, 169, 98, 0.15);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--primary-dark);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
}

/* 背景效果 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 20% 20%, rgba(201, 169, 98, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(22, 33, 62, 0.5) 0%, transparent 50%),
        linear-gradient(180deg, var(--primary-dark) 0%, var(--primary-blue) 100%);
    z-index: -1;
}

/* 装饰线条 */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(201, 169, 98, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(201, 169, 98, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: -1;
    pointer-events: none;
}

/* 链接 */
a {
    color: var(--accent-gold);
    text-decoration: none;
    transition: all 0.3s ease;
}

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

/* 容器 */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ========================================
   导航栏
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    height: 70px;
    background: rgba(10, 22, 40, 0.98);
    box-shadow: var(--shadow-md);
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 26px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 2px;
}

.logo-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 8px;
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo span {
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    position: relative;
    padding: 10px 20px;
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-gold);
    background: rgba(201, 169, 98, 0.1);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: var(--accent-gold);
    border-radius: 2px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* 移动端菜单按钮（默认隐藏） */
.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: rgba(26, 39, 68, 0.6);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.nav-toggle:hover {
    border-color: rgba(201, 169, 98, 0.5);
    background: rgba(26, 39, 68, 0.9);
}

.nav-toggle-bars {
    position: relative;
    display: block;
    width: 18px;
    height: 2px;
    margin: 0 auto;
    background: var(--accent-gold);
    border-radius: 2px;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
    content: '';
    position: absolute;
    left: 0;
    width: 18px;
    height: 2px;
    background: var(--accent-gold);
    border-radius: 2px;
}

.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }

/* 移动端抽屉导航 */
.mobile-nav {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
}

.mobile-nav.active {
    display: block;
}

.mobile-nav-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
}

.mobile-nav-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: min(88vw, 360px);
    height: 100%;
    padding: 18px 16px 20px;
    background: rgba(10, 22, 40, 0.98);
    border-left: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    animation: slideInMobileNav 0.22s ease;
}

@keyframes slideInMobileNav {
    from { transform: translateX(18px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-color);
}

.mobile-nav-close {
    width: 44px;
    height: 44px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: rgba(26, 39, 68, 0.6);
    color: var(--text-primary);
    cursor: pointer;
    font-size: 26px;
    line-height: 1;
}

.mobile-nav-section {
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
}

.mobile-nav-section:last-child {
    border-bottom: none;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 12px;
    border-radius: 12px;
    color: var(--text-secondary);
    background: rgba(26, 39, 68, 0.35);
    border: 1px solid rgba(201, 169, 98, 0.12);
    margin-bottom: 10px;
}

.mobile-nav-link.active {
    color: var(--accent-gold);
    border-color: rgba(201, 169, 98, 0.45);
    background: rgba(201, 169, 98, 0.10);
}

.mobile-nav-btn {
    width: 100%;
    justify-content: center;
    margin-bottom: 10px;
}

.mobile-nav-user {
    padding: 12px;
    border-radius: 14px;
    background: rgba(201, 169, 98, 0.10);
    border: 1px solid rgba(201, 169, 98, 0.25);
    margin-bottom: 12px;
}

.mobile-nav-user-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.mobile-nav-user-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

/* 按钮 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-dark) 100%);
    color: var(--primary-dark);
    box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(201, 169, 98, 0.3);
    color: var(--primary-dark);
}

.btn-secondary {
    background: transparent;
    color: var(--accent-gold);
    border: 2px solid var(--accent-gold);
}

.btn-secondary:hover {
    background: var(--accent-gold);
    color: var(--primary-dark);
}

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

.btn-outline:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

.btn-sm {
    padding: 8px 18px;
    font-size: 13px;
}

.btn-lg {
    padding: 16px 40px;
    font-size: 17px;
}

/* ========================================
   Hero区域
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(135deg, rgba(10, 22, 40, 0.92) 0%, rgba(22, 33, 62, 0.88) 50%, rgba(10, 22, 40, 0.95) 100%),
        url('../images/hero-bg.jpg') center/cover no-repeat;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 20% 80%, rgba(201, 169, 98, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(201, 169, 98, 0.06) 0%, transparent 40%),
        radial-gradient(ellipse at 50% 50%, rgba(96, 165, 250, 0.04) 0%, transparent 60%);
    z-index: 1;
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(180deg, transparent 0%, transparent 60%, var(--primary-dark) 100%),
        repeating-linear-gradient(90deg, rgba(201, 169, 98, 0.02) 0px, rgba(201, 169, 98, 0.02) 1px, transparent 1px, transparent 100px);
    z-index: 1;
}

/* Hero装饰元素 */
.hero-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.floating-circle {
    position: absolute;
    border: 1px solid rgba(201, 169, 98, 0.15);
    border-radius: 50%;
    animation: floatCircle 20s ease-in-out infinite;
}

.circle-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    right: -50px;
    animation-delay: 0s;
}

.circle-2 {
    width: 200px;
    height: 200px;
    bottom: 20%;
    left: -30px;
    animation-delay: -5s;
}

.circle-3 {
    width: 150px;
    height: 150px;
    top: 40%;
    right: 20%;
    animation-delay: -10s;
}

@keyframes floatCircle {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.3;
    }
    50% {
        transform: translateY(-30px) rotate(180deg);
        opacity: 0.6;
    }
}

.floating-line {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201, 169, 98, 0.2), transparent);
    animation: floatLine 15s ease-in-out infinite;
}

.line-1 {
    width: 200px;
    top: 25%;
    right: 30%;
    animation-delay: 0s;
}

.line-2 {
    width: 150px;
    bottom: 35%;
    left: 25%;
    animation-delay: -7s;
}

@keyframes floatLine {
    0%, 100% {
        transform: translateX(0);
        opacity: 0;
    }
    50% {
        transform: translateX(30px);
        opacity: 0.5;
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(201, 169, 98, 0.15);
    border: 1px solid rgba(201, 169, 98, 0.3);
    border-radius: 50px;
    color: var(--accent-gold);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 30px;
    animation: fadeInUp 0.8s ease;
}

.hero-title {
    font-size: 64px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease 0.1s both;
    text-shadow: 0 4px 30px rgba(201, 169, 98, 0.3);
}

.hero-title .highlight {
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-light) 50%, var(--accent-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.hero-title .highlight::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
    border-radius: 2px;
}

/* Hero装饰货币符号 */
.hero-currency-symbols {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.currency-symbol {
    position: absolute;
    font-size: 24px;
    font-weight: 600;
    color: rgba(201, 169, 98, 0.1);
    animation: symbolFloat 25s linear infinite;
}

.currency-symbol:nth-child(1) { top: 15%; left: 10%; animation-delay: 0s; font-size: 32px; }
.currency-symbol:nth-child(2) { top: 25%; right: 15%; animation-delay: -5s; }
.currency-symbol:nth-child(3) { top: 60%; left: 8%; animation-delay: -10s; font-size: 28px; }
.currency-symbol:nth-child(4) { top: 70%; right: 10%; animation-delay: -15s; }
.currency-symbol:nth-child(5) { top: 40%; left: 5%; animation-delay: -20s; font-size: 20px; }
.currency-symbol:nth-child(6) { top: 20%; right: 25%; animation-delay: -8s; font-size: 18px; }

@keyframes symbolFloat {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.1;
    }
    50% {
        transform: translateY(-20px) rotate(10deg);
        opacity: 0.2;
    }
    100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.1;
    }
}

/* 页面通用背景 */
.page-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Layered backgrounds: gradient + local image + subtle texture grid as fallback */
    background: 
        linear-gradient(135deg, rgba(10, 22, 40, 0.92) 0%, rgba(22, 33, 62, 0.92) 50%, rgba(10, 22, 40, 0.92) 100%),
        url('../images/page-bg.jpg') center/cover no-repeat,
        repeating-linear-gradient(45deg, rgba(255,255,255,.04) 0 1px, transparent 1px 60px),
        repeating-linear-gradient(-45deg, rgba(255,255,255,.04) 0 1px, transparent 1px 60px);
    background-blend-mode: overlay, overlay, overlay, overlay;
    z-index: -2;
}

.page-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 30% 70%, rgba(201, 169, 98, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 30%, rgba(96, 165, 250, 0.04) 0%, transparent 40%);
    z-index: -1;
}

.page-decoration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

.page-decoration .floating-circle {
    position: absolute;
    border: 1px solid rgba(201, 169, 98, 0.1);
    border-radius: 50%;
    animation: floatCircle 25s ease-in-out infinite;
}

.page-decoration .circle-1 {
    width: 400px;
    height: 400px;
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.page-decoration .circle-2 {
    width: 300px;
    height: 300px;
    bottom: -50px;
    left: -50px;
    animation-delay: -8s;
}

.page-decoration .circle-3 {
    width: 200px;
    height: 200px;
    top: 50%;
    right: 10%;
    animation-delay: -15s;
}

.hero-desc {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-actions {
    display: flex;
    gap: 20px;
    animation: fadeInUp 0.8s ease 0.3s both;
}

.hero-stats {
    display: flex;
    gap: 60px;
    margin-top: 80px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-stat {
    text-align: center;
}

.hero-stat-value {
    font-size: 42px;
    font-weight: 700;
    color: var(--accent-gold);
    margin-bottom: 8px;
}

.hero-stat-label {
    font-size: 14px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ========================================
   卡片组件
   ======================================== */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px;
    transition: all 0.3s ease;
}

.card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

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

.card-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
}

/* ========================================
   功能卡片
   ======================================== */
.feature-card {
    padding: 40px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-dark) 100%);
    border-radius: 16px;
    opacity: 0.15;
}

.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, rgba(201, 169, 98, 0.2) 0%, rgba(201, 169, 98, 0.05) 100%);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}

.feature-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.feature-desc {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ========================================
   表格组件
   ======================================== */
.table-container {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th {
    background: rgba(201, 169, 98, 0.1);
    padding: 16px 20px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid var(--border-color);
}

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

.table tr:hover td {
    background: rgba(201, 169, 98, 0.05);
}

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

/* 状态标签 */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-success {
    background: rgba(52, 211, 153, 0.15);
    color: var(--success);
    border: 1px solid rgba(52, 211, 153, 0.3);
}

.badge-warning {
    background: rgba(251, 191, 36, 0.15);
    color: var(--warning);
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.badge-danger {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge-info {
    background: rgba(96, 165, 250, 0.15);
    color: var(--info);
    border: 1px solid rgba(96, 165, 250, 0.3);
}

.badge-info-green {
    background: rgba(130, 224, 170, 0.15);
    color: var(--info-green);
    border: 1px solid rgba(130, 224, 170, 0.3);
}

.badge-default {
    background: rgba(100, 116, 139, 0.15);
    color: var(--text-muted);
    border: 1px solid rgba(100, 116, 139, 0.3);
}

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

.form-label {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 14px 18px;
    background: rgba(26, 39, 68, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 15px;
    transition: all 0.3s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px rgba(201, 169, 98, 0.1);
}

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

/* ========================================
   交易卡片
   ======================================== */
.trade-card {
    padding: 30px;
    position: relative;
    overflow: hidden;
}

.trade-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(201, 169, 98, 0.1) 0%, transparent 70%);
}

.trade-type {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: rgba(201, 169, 98, 0.15);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-gold);
    margin-bottom: 20px;
}

.trade-amount {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.trade-amount span {
    font-size: 18px;
    color: var(--text-muted);
}

.trade-rate {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.trade-info {
    display: flex;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    margin-bottom: 24px;
}

.trade-info-item {
    text-align: center;
}

.trade-info-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.trade-info-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

/* ========================================
   用户中心
   ======================================== */
.user-header {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 30px;
    background: linear-gradient(135deg, rgba(201, 169, 98, 0.1) 0%, rgba(26, 39, 68, 0.5) 100%);
    border-radius: 16px;
    margin-bottom: 30px;
}

.user-avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--primary-dark);
    font-weight: bold;
}

.user-info h2 {
    font-size: 24px;
    margin-bottom: 8px;
}

.user-info p {
    color: var(--text-muted);
    font-size: 14px;
}

.balance-card {
    padding: 30px;
    background: linear-gradient(135deg, var(--primary-navy) 0%, var(--primary-blue) 100%);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    text-align: center;
}

.balance-label {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.balance-value {
    font-size: 36px;
    font-weight: 700;
    color: var(--accent-gold);
}

/* ========================================
   管理后台
   ======================================== */
.admin-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background: var(--primary-dark);
    border-right: 1px solid var(--border-color);
    padding: 30px 0;
    z-index: 100;
}

.admin-logo {
    padding: 0 30px 30px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 30px;
}

.admin-nav {
    padding: 0 20px;
}

.admin-nav-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    color: var(--text-secondary);
    border-radius: 10px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.admin-nav-item:hover,
.admin-nav-item.active {
    background: rgba(201, 169, 98, 0.1);
    color: var(--accent-gold);
}

.admin-nav-icon {
    font-size: 20px;
    width: 24px;
    text-align: center;
}

.admin-main {
    margin-left: 280px;
    padding: 40px;
    min-height: 100vh;
}

.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
}

.admin-title {
    font-size: 28px;
    font-weight: 600;
}

/* 统计卡片 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.stat-card {
    padding: 28px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    text-align: center;
}

.stat-value {
    font-size: 42px;
    font-weight: 700;
    color: var(--accent-gold);
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-muted);
}

/* ========================================
   页脚
   ======================================== */
.footer {
    background: var(--primary-dark);
    border-top: 1px solid var(--border-color);
    padding: 60px 0 30px;
    margin-top: 100px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 60px;
    margin-bottom: 50px;
}

.footer-brand {
    max-width: 300px;
}

.footer-brand .logo {
    margin-bottom: 20px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.7;
}

.footer-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 14px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-gold);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
}

/* ========================================
   模态框
   ======================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

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

.modal {
    background: var(--primary-navy);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideIn 0.3s ease;
}

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

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
}

.modal-title {
    font-size: 24px;
    font-weight: 600;
}

.modal-close {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    border-radius: 10px;
    color: var(--text-muted);
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

/* ========================================
   响应式
   ======================================== */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 52px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .navbar {
        height: 64px;
    }

    .navbar-inner {
        padding: 0 16px;
        justify-content: space-between;
        gap: 10px;
    }

    .logo {
        font-size: 18px;
        gap: 10px;
        letter-spacing: 1px;
    }

    .logo-icon {
        width: 34px;
        height: 34px;
        font-size: 18px;
        border-radius: 8px;
    }

    /* 手机端顶部只保留 Logo + 菜单按钮，避免挤成两行 */
    .nav-actions {
        display: none;
    }

    .btn-lg {
        padding: 12px 18px;
        font-size: 15px;
    }

    .hero-title {
        font-size: 36px;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 30px;
    }
    
    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-left: 10px;
    }

    .section {
        padding: 64px 0;
    }

    .section-title {
        font-size: 28px;
    }

    .section-subtitle {
        font-size: 15px;
        margin: 0 auto 32px;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .card {
        padding: 20px;
    }

    /* 移动端表格：允许横向滚动而不是挤压变形 */
    .trade-table {
        min-width: 920px;
    }

    .trade-table th,
    .trade-table td {
        padding: 14px 12px;
    }

    /* 页脚在手机端单列堆叠 */
    .footer {
        padding: 40px 0 24px;
        margin-top: 60px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
        margin-bottom: 32px;
    }

    .footer-brand {
        max-width: none;
    }

    .service-float {
        right: 16px;
        bottom: 16px;
        width: 54px;
        height: 54px;
        font-size: 24px;
    }
    
    .admin-sidebar {
        width: 80px;
    }
    
    .admin-main {
        margin-left: 80px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 420px) {
    .navbar-inner {
        padding: 0 12px;
    }

    .logo span {
        display: none;
    }

    .nav-actions .btn {
        padding: 8px 10px;
        font-size: 12px;
    }

    .hero {
        padding: 96px 0 56px;
        min-height: auto;
    }

    .hero-title {
        font-size: 30px;
    }

    .hero-desc {
        font-size: 16px;
    }
}

/* 小屏辅助：让某些页面网格在手机端堆叠 */
@media (max-width: 768px) {
    .mobile-stack-2 {
        grid-template-columns: 1fr !important;
    }
    .mobile-stack-3 {
        grid-template-columns: 1fr !important;
    }
}

/* 工具类 */
.input-number-spinfix::-webkit-outer-spin-button,
.input-number-spinfix::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.input-number-spinfix { -moz-appearance: textfield; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-gold { color: var(--accent-gold); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-danger { color: var(--danger); }
.text-muted { color: var(--text-muted); }

.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mt-4 { margin-top: 40px; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }
.mb-4 { margin-bottom: 40px; }

.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 20px; }
.gap-3 { gap: 30px; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }

/* 兜底：工具类定义在文件后部，需再次覆盖小屏布局，避免横向撑开页面 */
@media (max-width: 768px) {
    html { overflow-x: hidden; }
    body { overflow-x: hidden; }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr !important;
    }

    /* 个别卡片/section 如果仍有横向溢出，直接裁切 */
    .section {
        overflow-x: clip;
    }
}

.section {
    padding: 100px 0;
}

.section-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-muted);
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
}

/* 页面专用 */
.page-header {
    padding: 150px 0 60px;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-blue) 100%);
    text-align: center;
    margin-bottom: 60px;
}

.page-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 16px;
}

.page-subtitle {
    font-size: 18px;
    color: var(--text-muted);
}

/* 上传区域 */
.upload-zone {
    border: 2px dashed var(--border-color);
    border-radius: 16px;
    padding: 60px 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-zone:hover {
    border-color: var(--accent-gold);
    background: rgba(201, 169, 98, 0.05);
}

.upload-icon {
    font-size: 48px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.upload-text {
    color: var(--text-muted);
    margin-bottom: 10px;
}

.upload-hint {
    font-size: 13px;
    color: var(--text-muted);
}

/* 客服浮动按钮 */
.service-float {
    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--primary-dark);
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 999;
}

.service-float:hover {
    transform: scale(1.1);
}

/* 多合一客服面板 */
.service-panel {
    position: fixed;
    right: 30px;
    bottom: 100px;
    width: 300px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    z-index: 998;
    opacity: 0;
    transform: translateY(20px);
    visibility: hidden;
    transition: all 0.3s ease;
    overflow: hidden;
}

.service-panel.active {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.service-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: linear-gradient(135deg, rgba(201, 169, 98, 0.2) 0%, rgba(201, 169, 98, 0.1) 100%);
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
    color: var(--accent-gold);
}

.service-panel-close {
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    color: var(--text-muted);
    transition: color 0.2s;
}

.service-panel-close:hover {
    color: var(--text-primary);
}

.service-panel-body {
    padding: 15px;
}

.service-item {
    display: block;
    padding: 12px 15px;
    margin-bottom: 8px;
    background: rgba(201, 169, 98, 0.05);
    border: 1px solid rgba(201, 169, 98, 0.1);
    border-radius: 10px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
}

.service-item:hover {
    background: rgba(201, 169, 98, 0.15);
    border-color: var(--accent-gold);
    transform: translateX(5px);
}

.service-wechat {
    padding: 15px;
    margin-bottom: 8px;
    background: rgba(201, 169, 98, 0.05);
    border: 1px solid rgba(201, 169, 98, 0.1);
    border-radius: 10px;
    text-align: center;
}

.service-wechat-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    font-size: 14px;
}

.service-wechat-qr {
    width: 140px;
    height: 140px;
    border-radius: 8px;
    margin-bottom: 10px;
    background: #fff;
    padding: 5px;
}

.service-wechat-id {
    font-size: 13px;
    color: var(--accent-gold);
}

/* 移动端适配：客服面板 */
@media (max-width: 768px) {
    .service-panel {
        right: 10px;
        left: 10px;
        bottom: 80px;
        width: auto;
        max-height: 75vh;
        overflow-y: auto;
    }
    
    .service-panel-body {
        padding: 12px;
    }
    
    .service-item {
        padding: 14px 12px;
        font-size: 15px;
        margin-bottom: 6px;
    }
    
    .service-wechat {
        padding: 12px;
        margin-bottom: 6px;
    }
    
    .service-wechat-qr {
        width: 120px;
        height: 120px;
    }
    
    .service-wechat-title {
        font-size: 13px;
        margin-bottom: 8px;
    }
    
    .service-wechat-id {
        font-size: 12px;
    }
}

/* 小屏手机适配 */
@media (max-width: 375px) {
    .service-panel {
        right: 8px;
        left: 8px;
        bottom: 70px;
        border-radius: 12px;
    }
    
    .service-panel-header {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .service-item {
        padding: 12px 10px;
        font-size: 14px;
    }
    
    .service-wechat-qr {
        width: 100px;
        height: 100px;
    }
}

/* 交易表格样式 */
.trade-table {
    width: 100%;
    border-collapse: collapse;
    background: transparent;
}

.trade-table thead {
    background: linear-gradient(135deg, rgba(201, 169, 98, 0.15) 0%, rgba(201, 169, 98, 0.05) 100%);
}

.trade-table th {
    padding: 18px 15px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border-color);
}

.trade-table td {
    padding: 20px 15px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.trade-table tbody tr {
    transition: all 0.3s ease;
}

.trade-table tbody tr:hover {
    background: rgba(201, 169, 98, 0.05);
}

/* 用户端：充值记录表（手机端避免列重叠） */
.recharge-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 12px;
}

@media (max-width: 768px) {
    .recharge-table {
        min-width: 860px; /* 略加宽，减少挤压 */
    }

    /* 默认允许换行，避免长账号/地址顶到下一列造成“重叠”观感 */
    .recharge-table th,
    .recharge-table td {
        white-space: normal;
    }

    /* 需要保持紧凑的一些列：不换行 */
    .recharge-table .rt-col-amount,
    .recharge-table .rt-col-status,
    .recharge-table .rt-col-action,
    .recharge-table .rt-col-id {
        white-space: nowrap;
    }

    /* 收款方式列：允许长串断行 */
    .recharge-table .rt-col-method {
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    /* 创建时间列：允许两行显示 */
    .recharge-table .rt-col-time {
        white-space: normal;
        font-size: 12px;
        line-height: 1.25;
    }
}

/* 后台：表格在手机端横向滚动 */
@media (max-width: 768px) {
    .admin-orders-table {
        min-width: 780px;
    }
}

@media (max-width: 768px) {
    .admin-users-table {
        min-width: 980px;
    }
}

/* 后台通用表格：手机端用横向滚动展示 */
@media (max-width: 768px) {
    .admin-table {
        min-width: 980px;
    }
}

/* 商家信息 */
.merchant-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.merchant-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 15px;
}

.merchant-stats {
    font-size: 12px;
    color: var(--text-muted);
}

/* 兑换类型标签 */
.trade-type-tag {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(201, 169, 98, 0.15);
    border: 1px solid rgba(201, 169, 98, 0.3);
    border-radius: 4px;
    font-size: 13px;
    color: var(--accent-gold);
    font-weight: 500;
}

/* 额度单元格 */
.trade-amount-cell {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.amount-value {
    font-weight: 600;
    font-size: 15px;
    color: var(--text-primary);
}

.amount-name {
    font-size: 12px;
    color: var(--text-muted);
}

/* 价格单元格 */
.price-cell {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.price-value {
    font-weight: 600;
    font-size: 15px;
    color: var(--accent-gold);
}

.price-label {
    font-size: 12px;
    color: var(--text-muted);
}

/* 收款方式标签 */
.payment-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.payment-tag {
    display: inline-block;
    padding: 3px 8px;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 12px;
    color: var(--text-secondary);
}

/* ========================================
   分页样式
   ======================================== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    padding: 15px;
    flex-wrap: wrap;
}

.pagination .btn {
    min-width: 36px;
    text-align: center;
}

.pagination-ellipsis {
    color: var(--text-muted);
    padding: 0 5px;
}

.pagination-info {
    color: var(--text-muted);
    font-size: 13px;
    margin-left: 15px;
}

@media (max-width: 768px) {
    .pagination {
        gap: 5px;
    }
    
    .pagination .btn {
        min-width: 30px;
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .pagination-info {
        width: 100%;
        text-align: center;
        margin-left: 0;
        margin-top: 10px;
    }
}
