* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background-color: #f5f6f7;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部导航 */
.header {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo h1 {
    color: #1a73e8;
    font-size: 24px;
    font-weight: 700;
}

.main-nav {
    display: flex;
    gap: 32px;
}

.main-nav a {
    text-decoration: none;
    color: #444;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.main-nav a:hover,
.main-nav a.active {
    color: #1a73e8;
}

.main-nav a.active::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 0;
    right: 0;
    height: 3px;
    background: #1a73e8;
}

.search-box {
    display: flex;
    align-items: center;
}

.search-box input {
    width: 200px;
    padding: 8px 14px;
    border: 1px solid #ddd;
    border-radius: 20px 0 0 20px;
    outline: none;
    font-size: 14px;
}

.search-box button {
    padding: 8px 18px;
    background: #1a73e8;
    color: #fff;
    border: none;
    border-radius: 0 20px 20px 0;
    cursor: pointer;
    font-size: 14px;
}

/* 行情条 */
.market-bar {
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 12px 0;
}

.market-bar .container {
    display: flex;
    justify-content: space-around;
}

.market-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.market-item .name {
    font-size: 12px;
    color: #666;
}

.market-item .price {
    font-size: 18px;
    font-weight: 600;
}

.market-item .change {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 4px;
}

.market-item .time {
    font-size: 10px;
    color: #999;
}

.market-item.up .price,
.market-item.up .change {
    color: #e74c3c;
}

.market-item.up .change {
    background: rgba(231, 76, 60, 0.1);
}

.market-item.down .price,
.market-item.down .change {
    color: #27ae60;
}

.market-item.down .change {
    background: rgba(39, 174, 96, 0.1);
}

/* 主内容区 */
.main-content {
    padding: 24px 0;
}

.main-content .container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

/* 区块标题 */
.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #1a73e8;
}

.section-title h2 {
    font-size: 18px;
    color: #1a73e8;
    font-weight: 600;
}

.section-title .update-time {
    font-size: 12px;
    color: #666;
    font-weight: normal;
}

.section-title .more {
    color: #999;
    text-decoration: none;
    font-size: 13px;
}

.section-title .more:hover {
    color: #1a73e8;
}

/* 财经日历 */
.calendar-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.calendar-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
}

.calendar-item .date {
    color: #1a73e8;
    font-weight: 600;
    min-width: 45px;
}

.calendar-item .event {
    color: #333;
    flex: 1;
}

.calendar-item .importance {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
}

.calendar-item:nth-child(1) .importance,
.calendar-item:nth-child(2) .importance {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
}

.calendar-item:nth-child(3) .importance {
    background: rgba(243, 156, 18, 0.1);
    color: #f39c12;
}

/* 股票行情表格 */
.stock-quotes {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
}

.market-category {
    margin-bottom: 30px;
}

.market-category:last-child {
    margin-bottom: 0;
}

.market-category h3 {
    font-size: 16px;
    color: #333;
    margin-bottom: 12px;
    padding-left: 8px;
    border-left: 4px solid #1a73e8;
}

.stock-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.stock-table th,
.stock-table td {
    padding: 12px 10px;
    text-align: left;
}

.stock-table th {
    color: #666;
    font-weight: 600;
    background: #f8f9fa;
    border-bottom: 2px solid #e9ecef;
}

.stock-table td {
    border-bottom: 1px solid #f0f0f0;
}

.stock-table tr:last-child td {
    border-bottom: none;
}

.stock-table .price.up {
    color: #e74c3c;
    font-weight: 600;
}

.stock-table .price.down {
    color: #27ae60;
    font-weight: 600;
}

.stock-table .change.up {
    color: #e74c3c;
}

.stock-table .change.down {
    color: #27ae60;
}

.stock-table .volume {
    color: #999;
    font-size: 12px;
}

/* 侧边栏 */
.right-column section {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

/* 热点追踪 */
.topic-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.topic-item {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.topic-item:last-child {
    border-bottom: none;
}

.topic-item .rank {
    width: 24px;
    height: 24px;
    background: #f0f0f0;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
}

.topic-item:nth-child(1) .rank {
    background: #e74c3c;
    color: #fff;
}

.topic-item:nth-child(2) .rank {
    background: #f39c12;
    color: #fff;
}

.topic-item:nth-child(3) .rank {
    background: #3498db;
    color: #fff;
}

.topic-item .text {
    color: #333;
    font-size: 14px;
    flex: 1;
}

.topic-item:hover .text {
    color: #1a73e8;
}

/* 基金表格 */
.fund-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.fund-table th,
.fund-table td {
    padding: 12px 8px;
    text-align: left;
}

.fund-table th {
    color: #999;
    font-weight: 500;
    border-bottom: 1px solid #eee;
}

.fund-table td {
    border-bottom: 1px solid #f5f5f5;
}

.fund-table tr:last-child td {
    border-bottom: none;
}

.fund-table .up {
    color: #e74c3c;
}

.fund-table .down {
    color: #27ae60;
}

/* 底部 */
.footer {
    background: #2c3e50;
    color: #fff;
    padding: 40px 0 20px;
    margin-top: 40px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 20px;
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    font-size: 14px;
}

.footer-links a:hover {
    color: #fff;
}

.copyright {
    text-align: center;
    color: #7f8c8d;
    font-size: 13px;
}

/* 响应式 */
@media (max-width: 1024px) {
    .main-content .container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header .container {
        flex-wrap: wrap;
        height: auto;
        padding: 10px 20px;
    }
    
    .main-nav {
        order: 3;
        width: 100%;
        justify-content: center;
        margin-top: 10px;
        gap: 20px;
    }
    
    .market-bar .container {
        overflow-x: auto;
        gap: 20px;
    }
}
