/* ===== 禾晟資本 — 主題 ===== */
:root {
    --bg-primary: #0a0e17;
    --bg-secondary: #111827;
    --bg-card: #1a2332;
    --bg-card-hover: #1f2b3d;
    --border: #2a3548;
    --accent: #10b981;
    --accent-light: #34d399;
    --accent-dark: #059669;
    --accent-glow: rgba(16, 185, 129, 0.15);
    --danger: #ef4444;
    --danger-light: #f87171;
    --warning: #f59e0b;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --gradient-gold: linear-gradient(135deg, #f59e0b, #d97706);
    --gradient-green: linear-gradient(135deg, #10b981, #059669);
    --gradient-dark: linear-gradient(135deg, #1a2332, #111827);
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.4);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ===== Navbar ===== */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(10, 14, 23, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 0 2rem;
    height: 64px;
    display: flex; align-items: center; justify-content: space-between;
}
.navbar-brand {
    display: flex; align-items: center; gap: 12px;
    font-size: 1.3rem; font-weight: 700;
    color: var(--accent);
    text-decoration: none;
}
.navbar-brand svg { width: 32px; height: 32px; }
.navbar-links { display: flex; gap: 8px; align-items: center; }
.navbar-links a, .navbar-links button {
    padding: 8px 16px; border-radius: var(--radius-sm);
    color: var(--text-secondary); text-decoration: none;
    font-size: 0.9rem; font-weight: 500;
    transition: var(--transition); border: none; background: none;
    cursor: pointer;
}
.navbar-links a:hover, .navbar-links button:hover {
    color: var(--text-primary); background: rgba(255,255,255,0.05);
}
.navbar-links .btn-accent {
    background: var(--gradient-green); color: #fff; font-weight: 600;
}
.navbar-links .btn-accent:hover { opacity: 0.9; }

/* ===== Container ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 80px 1.5rem 2rem; }

/* ===== Hero ===== */
.hero {
    text-align: center; padding: 6rem 1rem 4rem;
    position: relative; overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle at 50% 50%, var(--accent-glow), transparent 60%);
    animation: pulse-bg 8s ease-in-out infinite;
}
@keyframes pulse-bg {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.1); }
}
.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800; letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--text-primary), var(--accent-light));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    position: relative; margin-bottom: 1rem;
}
.hero .subtitle {
    font-size: 1.2rem; color: var(--text-secondary);
    max-width: 600px; margin: 0 auto 2.5rem; position: relative;
}
.hero-cta {
    display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
    position: relative;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 28px; border-radius: var(--radius-sm);
    font-size: 0.95rem; font-weight: 600;
    text-decoration: none; border: none; cursor: pointer;
    transition: var(--transition);
}
.btn-primary {
    background: var(--gradient-green); color: #fff;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(16, 185, 129, 0.4); }
.btn-secondary {
    background: transparent; color: var(--text-primary);
    border: 1px solid var(--border);
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: var(--danger-light); }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.btn-lg { padding: 14px 36px; font-size: 1.05rem; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ===== Cards ===== */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: var(--transition);
}
.card:hover { border-color: rgba(16, 185, 129, 0.3); }
.card-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 1rem; padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}
.card-title { font-size: 1.1rem; font-weight: 600; }

/* ===== Stats Grid ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem; margin-bottom: 1.5rem;
}
.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    position: relative; overflow: hidden;
}
.stat-card::after {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: var(--gradient-green); opacity: 0;
    transition: var(--transition);
}
.stat-card:hover::after { opacity: 1; }
.stat-label { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.5rem; }
.stat-value { font-size: 1.8rem; font-weight: 700; color: var(--text-primary); }
.stat-value.positive { color: var(--accent); }
.stat-value.negative { color: var(--danger); }
.stat-change { font-size: 0.8rem; margin-top: 0.25rem; }
.stat-change.up { color: var(--accent); }
.stat-change.down { color: var(--danger); }

/* ===== Grid Layouts ===== */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 768px) {
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

/* ===== Forms ===== */
.form-group { margin-bottom: 1.25rem; }
.form-label {
    display: block; font-size: 0.85rem; font-weight: 500;
    color: var(--text-secondary); margin-bottom: 0.5rem;
}
.form-input {
    width: 100%; padding: 10px 14px;
    background: var(--bg-primary); border: 1px solid var(--border);
    border-radius: var(--radius-sm); color: var(--text-primary);
    font-size: 0.95rem; transition: var(--transition);
}
.form-input:focus {
    outline: none; border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}
.form-input::placeholder { color: var(--text-muted); }
select.form-input { appearance: none; cursor: pointer; }
.form-hint { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.3rem; }
.form-error { font-size: 0.8rem; color: var(--danger); margin-top: 0.3rem; }

/* ===== Tables ===== */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th {
    text-align: left; padding: 10px 14px;
    font-size: 0.8rem; font-weight: 600;
    color: var(--text-muted); text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border);
}
td {
    padding: 12px 14px; font-size: 0.9rem;
    border-bottom: 1px solid rgba(42, 53, 72, 0.5);
    color: var(--text-secondary);
}
tr:hover td { background: rgba(255,255,255,0.02); }

/* ===== Badges ===== */
.badge {
    display: inline-block; padding: 3px 10px;
    border-radius: 20px; font-size: 0.75rem; font-weight: 600;
}
.badge-green { background: rgba(16,185,129,0.15); color: var(--accent); }
.badge-red { background: rgba(239,68,68,0.15); color: var(--danger); }
.badge-yellow { background: rgba(245,158,11,0.15); color: var(--warning); }
.badge-gray { background: rgba(100,116,139,0.15); color: var(--text-muted); }

/* ===== Auth Pages ===== */
.auth-container {
    min-height: 100vh; display: flex;
    align-items: center; justify-content: center;
    padding: 2rem;
}
.auth-box {
    width: 100%; max-width: 420px;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 2.5rem;
    box-shadow: var(--shadow-lg);
}
.auth-title {
    font-size: 1.5rem; font-weight: 700;
    text-align: center; margin-bottom: 0.5rem;
}
.auth-subtitle {
    text-align: center; color: var(--text-muted);
    font-size: 0.9rem; margin-bottom: 2rem;
}
.auth-divider {
    display: flex; align-items: center; gap: 1rem;
    margin: 1.5rem 0; color: var(--text-muted); font-size: 0.85rem;
}
.auth-divider::before, .auth-divider::after {
    content: ''; flex: 1; height: 1px; background: var(--border);
}
.auth-footer {
    text-align: center; margin-top: 1.5rem;
    font-size: 0.9rem; color: var(--text-muted);
}
.auth-footer a { color: var(--accent); text-decoration: none; font-weight: 500; }
.auth-footer a:hover { text-decoration: underline; }

/* ===== Deposit Info ===== */
.deposit-info {
    background: rgba(16, 185, 129, 0.05);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: var(--radius);
    padding: 1.5rem; margin-top: 1rem;
}
.deposit-address {
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 0.85rem; background: var(--bg-primary);
    padding: 12px; border-radius: var(--radius-sm);
    word-break: break-all; margin: 0.75rem 0;
    border: 1px solid var(--border);
    display: flex; justify-content: space-between; align-items: center;
}
.copy-btn {
    background: none; border: none; color: var(--accent);
    cursor: pointer; font-size: 0.8rem; font-weight: 600;
    padding: 4px 8px; border-radius: 4px;
    transition: var(--transition);
}
.copy-btn:hover { background: rgba(16, 185, 129, 0.1); }

/* ===== Toggle Switch ===== */
.toggle { position: relative; width: 48px; height: 26px; display: inline-block; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: var(--border); border-radius: 26px;
    cursor: pointer; transition: var(--transition);
}
.toggle-slider::before {
    content: ''; position: absolute;
    width: 20px; height: 20px; border-radius: 50%;
    left: 3px; bottom: 3px;
    background: #fff; transition: var(--transition);
}
.toggle input:checked + .toggle-slider { background: var(--accent); }
.toggle input:checked + .toggle-slider::before { transform: translateX(22px); }

/* ===== Toast / Alert ===== */
.toast-container {
    position: fixed; top: 80px; right: 20px; z-index: 9999;
    display: flex; flex-direction: column; gap: 8px;
}
.toast {
    padding: 12px 20px; border-radius: var(--radius-sm);
    font-size: 0.9rem; font-weight: 500;
    box-shadow: var(--shadow);
    animation: slideIn 0.3s ease-out;
    display: flex; align-items: center; gap: 8px;
}
.toast-success { background: rgba(16,185,129,0.95); color: #fff; }
.toast-error { background: rgba(239,68,68,0.95); color: #fff; }
.toast-warning { background: rgba(245,158,11,0.95); color: #000; }
@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* ===== Loading ===== */
.spinner {
    width: 20px; height: 20px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

.loading-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(10, 14, 23, 0.8);
    display: flex; align-items: center; justify-content: center;
    z-index: 9999;
}

/* ===== Features Section ===== */
.features { padding: 4rem 0; }
.features h2 { text-align: center; font-size: 2rem; margin-bottom: 3rem; }
.feature-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 2rem; text-align: center;
    transition: var(--transition);
}
.feature-card:hover { transform: translateY(-4px); border-color: rgba(16,185,129,0.3); }
.feature-icon {
    width: 56px; height: 56px; margin: 0 auto 1rem;
    background: var(--accent-glow); border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    color: var(--accent); font-size: 1.5rem;
}
.feature-card h3 { margin-bottom: 0.5rem; font-size: 1.1rem; }
.feature-card p { color: var(--text-secondary); font-size: 0.9rem; }

/* ===== How it Works ===== */
.steps { padding: 4rem 0; }
.steps h2 { text-align: center; font-size: 2rem; margin-bottom: 3rem; }
.step-item {
    display: flex; gap: 1.5rem; align-items: flex-start;
    margin-bottom: 2rem;
}
.step-number {
    min-width: 48px; height: 48px;
    background: var(--gradient-green); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; font-weight: 700; color: #fff;
}
.step-content h3 { margin-bottom: 0.3rem; }
.step-content p { color: var(--text-secondary); font-size: 0.9rem; }

/* ===== Footer ===== */
.footer {
    border-top: 1px solid var(--border);
    padding: 2rem; text-align: center;
    color: var(--text-muted); font-size: 0.85rem;
    margin-top: 4rem;
}

/* ===== Modal ===== */
.modal-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6); z-index: 2000;
    display: none; align-items: center; justify-content: center;
    padding: 1rem;
}
.modal-overlay.active { display: flex; }
.modal {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 2rem;
    width: 100%; max-width: 480px; box-shadow: var(--shadow-lg);
}
.modal h3 { margin-bottom: 1rem; }
.modal-actions { display: flex; gap: 1rem; justify-content: flex-end; margin-top: 1.5rem; }

/* ===== Section Titles ===== */
.section-title {
    font-size: 1.3rem; font-weight: 700;
    margin-bottom: 1rem; display: flex;
    align-items: center; gap: 0.5rem;
}

/* ===== Chain Tags ===== */
.chain-tag {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 2px 8px; border-radius: 4px;
    font-size: 0.75rem; font-weight: 600;
}
.chain-bep20 { background: rgba(243,186,47,0.15); color: #f3ba2f; }
.chain-erc20 { background: rgba(98,126,234,0.15); color: #627eea; }
.chain-trc20 { background: rgba(239,68,68,0.15); color: #ef4444; }

/* ===== Tab Navigation ===== */
.tabs { display: flex; gap: 4px; margin-bottom: 1.5rem; border-bottom: 1px solid var(--border); padding-bottom: 0; }
.tab {
    padding: 10px 20px; background: none; border: none;
    color: var(--text-muted); font-size: 0.9rem; font-weight: 500;
    cursor: pointer; border-bottom: 2px solid transparent;
    margin-bottom: -1px; transition: var(--transition);
}
.tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.tab:hover { color: var(--text-primary); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ===== Responsive ===== */
@media (max-width: 640px) {
    .navbar { padding: 0 1rem; }
    .navbar-links a.hide-mobile, .navbar-links button.hide-mobile { display: none; }
    .hero { padding: 4rem 0.5rem 2rem; }
    .hero h1 { font-size: 2rem; }
    .container { padding: 80px 1rem 1rem; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .grid-2 { grid-template-columns: 1fr; }
}
