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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC',
                 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
    background: #0d1117;
    color: #e6edf3;
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 16px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    margin-bottom: 24px;
}

.site-title {
    font-size: 24px;
    font-weight: 700;
    color: #58a6ff;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

/* 股指区域 */
.indices-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 12px;
}

@media (max-width: 640px) {
    .indices-grid {
        grid-template-columns: 1fr;
    }
}

.indices-section {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 14px;
}

.section-title {
    font-size: 13px;
    font-weight: 600;
    color: #8b949e;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.indices-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.index-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 8px;
    background: #0d1117;
    border-radius: 4px;
    font-size: 14px;
}

.index-name {
    color: #c9d1d9;
    font-weight: 500;
}

.index-price {
    font-weight: 600;
    margin-left: auto;
    margin-right: 12px;
}

.index-change {
    font-size: 13px;
    font-weight: 500;
    min-width: 80px;
    text-align: right;
}

.index-change.up { color: #3fb950; }
.index-change.down { color: #f85149; }

.update-time {
    font-size: 12px;
    color: #484f58;
    text-align: right;
    margin-top: 4px;
}

/* 热点区域 */
.main {
    flex: 1;
}

.hot-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hot-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: #161b22;
    border: 1px solid #21262d;
    border-radius: 6px;
    text-decoration: none;
    color: #e6edf3;
    transition: background 0.2s;
}

.hot-item:hover {
    background: #1c2128;
    border-color: #30363d;
}

.hot-rank {
    font-size: 14px;
    font-weight: 700;
    color: #484f58;
    min-width: 28px;
    text-align: center;
}

.hot-rank.top-1 { color: #f0883e; }
.hot-rank.top-2 { color: #e6b450; }
.hot-rank.top-3 { color: #58a6ff; }

.hot-title {
    flex: 1;
    font-size: 14px;
    line-height: 1.4;
}

.hot-heat {
    font-size: 12px;
    color: #8b949e;
    white-space: nowrap;
}

/* Footer */
.footer {
    margin-top: 32px;
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid #21262d;
}

.footer a {
    color: #484f58;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}

.footer a:hover {
    color: #58a6ff;
}

/* Loading / Error */
.loading {
    color: #484f58;
    font-size: 13px;
    padding: 8px;
}

.error-msg {
    color: #f85149;
    font-size: 13px;
    padding: 8px;
}
