* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: #0b0e11;
    color: #eaecef;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏 */
.navbar {
    background: #1e2329;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.nav-logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #f0b90b;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.nav-links a {
    color: #eaecef;
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 8px;
    transition: background 0.3s, color 0.3s;
    font-size: 0.95rem;
}

.nav-links a:hover {
    background: #f0b90b;
    color: #0b0e11;
}

.admin-link {
    border: 1px solid #f0b90b;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #eaecef;
    border-radius: 3px;
}

/* 标题 */
.page-header {
    background: linear-gradient(135deg, #1e2329, #0b0e11);
    padding: 60px 20px;
    text-align: center;
}

.page-header h1 {
    font-size: 2.2rem;
    color: #f0b90b;
    margin-bottom: 15px;
}

.page-header p {
    font-size: 1.1rem;
    color: #b0b5bc;
}

/* 区域 */
.section {
    padding: 50px 20px;
}

.bg-light {
    background: #1e2329;
}

.section-title {
    font-size: 1.6rem;
    margin-bottom: 30px;
    color: #f0b90b;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 卡片 */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.card {
    background: #1e2329;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.5);
}

.coin-card .coin-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.coin-name {
    font-weight: bold;
    color: #f0b90b;
}

.coin-price {
    font-size: 1.1rem;
    font-weight: bold;
}

.coin-change {
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.positive { color: #00c853; }
.negative { color: #ff1744; }

.news-card h3 {
    color: #f0b90b;
    margin-bottom: 10px;
}

.news-date {
    color: #b0b5bc;
    font-size: 0.85rem;
}

/* 按钮 */
.btn {
    display: inline-block;
    background: #f0b90b;
    color: #0b0e11;
    padding: 10px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s, transform 0.2s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: #d4a509;
    transform: scale(1.02);
}

.btn-danger {
    background: #ff1744;
    color: white;
}

.btn-danger:hover {
    background: #d50000;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #b0b5bc;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #2b2f36;
    background: #0b0e11;
    color: #eaecef;
    font-size: 1rem;
}

/* 搜索框 */
.search-box {
    width: 100%;
    padding: 15px;
    border-radius: 12px;
    border: 1px solid #2b2f36;
    background: #0b0e11;
    color: #eaecef;
    font-size: 1.1rem;
    margin-bottom: 30px;
}

/* 页脚 */
.footer {
    background: #1e2329;
    text-align: center;
    padding: 20px;
    margin-top: 50px;
    border-top: 1px solid #2b2f36;
}

.footer a {
    color: #f0b90b;
    text-decoration: none;
}

/* 响应式 */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background: #1e2329;
        padding: 20px;
        border-radius: 0 0 16px 16px;
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: flex;
    }

    .page-header h1 {
        font-size: 1.6rem;
    }

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

/* 表格 */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.table th, .table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #2b2f36;
}

.table th {
    background: #2b2f36;
    color: #f0b90b;
}

.table tr:hover {
    background: #2b2f36;
}

/* 深度图占位 */
.depth-placeholder {
    height: 200px;
    background: linear-gradient(90deg, #00c853 30%, #ff1744 30%);
    border-radius: 8px;
    margin: 20px 0;
    position: relative;
}

.depth-placeholder::after {
    content: '深度图模拟';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-weight: bold;
}

/* 资金流向 */
.flow-bar {
    display: flex;
    height: 20px;
    border-radius: 10px;
    overflow: hidden;
    margin: 10px 0;
}

.flow-in {
    background: #00c853;
}

.flow-out {
    background: #ff1744;
}