.dashboard {
    /*max-width: 1800px;*/
    margin: 0 auto;
    color: #e0e0e0;
}

/*.header {*/
/*    display: flex;*/
/*    justify-content: space-between;*/
/*    align-items: center;*/
/*    margin-bottom: 20px;*/
/*    padding-bottom: 15px;*/
/*    border-bottom: 1px solid #2a3f5f;*/
/*}*/

/*.title {*/
/*    font-size: 24px;*/
/*    font-weight: bold;*/
/*    color: #4dabf7;*/
/*}*/

/*.header-controls {*/
/*    display: flex;*/
/*    align-items: center;*/
/*    gap: 20px;*/
/*}*/

.trading-status {
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #52c41a;
    animation: pulse 2s infinite;
}

.status-indicator.closed {
    background-color: #f5222d;
    animation: none;
}

.status-indicator.historical {
    background-color: #faad14;
    animation: none;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}

.date-picker {
    display: flex;
    gap: 10px;
    align-items: center;
}

.date-picker input {
    background: #1e2f4a;
    border: 1px solid #2a3f5f;
    color: #e0e0e0;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
}

.date-picker button {
    background: #1e2f4a;
    border: 1px solid #2a3f5f;
    color: #e0e0e0;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
}

.date-picker button:hover {
    background: #2a3f5f;
}

.last-update {
    color: #8c9cb0;
    font-size: 14px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}

.stat-card {
    background: #1e2f4a;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.stat-card .label {
    font-size: 13px;
    color: #8c9cb0;
    margin-bottom: 8px;
    text-align: center;
}

.stat-card .value {
    font-size: 20px;
    font-weight: bold;
}

.stat-card .small {
    font-size: 14px;
    font-weight: bold;
}

.market-overview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.market-card {
    background: #1e2f4a;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.market-card-title {
    font-size: 16px;
    margin-bottom: 15px;
    color: #4dabf7;
}

.index-comparison {
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.index-item {
    display: flex;
    flex-direction: column;
}

.index-name {
    font-size: 14px;
    color: #8c9cb0;
    margin-bottom: 5px;
}

.index-value {
    font-size: 18px;
    font-weight: bold;
}

.dragon-stock {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #2a3f5f;
}

.dragon-stock:last-child {
    border-bottom: none;
}

.dragon-name {
    font-weight: bold;
    font-size: 16px;
}

.dragon-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    margin-left: 8px;
}

.tag-continue {
    background: #f5222d; /* 红色表示连板 */
    color: white;
}

.tag-a-kill {
    background: #52c41a; /* 绿色表示A杀 */
    color: white;
}

.tag-broken {
    background: #fa8c16; /* 橙色表示断板 */
    color: white;
}

.stock-detail {
    font-size: 13px;
    color: #e0e0e0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 12px;
}

.detail-card {
    background: #1e2f4a;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.detail-card-title {
    font-size: 16px;
    margin-bottom: 15px;
    color: #4dabf7;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #2a3f5f;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    color: #8c9cb0;
}

.detail-value {
    font-weight: bold;
}

.positive {
    color: #f5222d; /* 红色表示上涨 */
}

.negative {
    color: #52c41a; /* 绿色表示下跌 */
}

.neutral {
    color: #faad14;
}

@media (max-width: 1400px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1200px) {
    .market-overview {
        grid-template-columns: 1fr;
    }

    .stock-detail {
        grid-template-columns: 1fr;
    }

    .header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .header-controls {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .header-controls {
        flex-direction: column;
        gap: 10px;
    }
}