/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    background-color: #fff;
    padding: 10px;
}

/* 容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* 头部 */
.header {
    text-align: center;
    margin-bottom: 20px;
    padding: 10px 0;
}

.header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.header .date {
    font-size: 16px;
    color: #666;
}

.header .update-type {
    font-size: 12px;
    color: #999;
    margin-top: 3px;
}

.header .schedule-info {
    font-size: 11px;
    color: #1976D2;
    margin-top: 5px;
}

.disclaimer {
    font-size: 12px;
    color: #999;
    text-align: center;
    margin-bottom: 15px;
}

/* 导航链接 */
.nav-links {
    text-align: center;
    margin-bottom: 20px;
}

.nav-links a {
    color: #1976D2;
    text-decoration: none;
    margin: 0 10px;
    font-size: 14px;
}

.nav-links a:hover {
    text-decoration: underline;
}

/* 模块标题 */
.module-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    text-align: center;
    margin: 25px 0 10px 0;
    padding-bottom: 5px;
}

/* 表格容器 - 支持横向滚动 */
.table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 20px;
}

/* 表格样式 */
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    min-width: 800px;
}

th, td {
    padding: 8px 10px;
    text-align: center;
    border: 1px solid #e0e0e0;
    white-space: nowrap;
}

th {
    background-color: #f5f5f5;
    font-weight: 600;
    color: #333;
}

tr:nth-child(even) {
    background-color: #fafafa;
}

tr:hover {
    background-color: #f0f0f0;
}

/* 状态颜色 */
.status-yes {
    color: #E53935;
    font-weight: 600;
}

.status-no {
    color: #43A047;
    font-weight: 600;
}

/* 涨跌颜色 */
.change-positive {
    color: #E53935;
}

.change-negative {
    color: #43A047;
}

/* 休市状态 */
.status-closed {
    color: #9E9E9E;
}

/* 数据异常 */
.status-error {
    color: #FF9800;
}

/* 问号提示图标 */
.tooltip-wrapper {
    position: relative;
    display: inline-block;
}

.tooltip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    background-color: #9E9E9E;
    color: #fff;
    border-radius: 50%;
    font-size: 10px;
    cursor: help;
    margin-left: 3px;
    vertical-align: middle;
}

.tooltip-icon:hover {
    background-color: #1976D2;
}

.tooltip-wrapper .tooltip-text {
    visibility: hidden;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 4px;
    padding: 6px 10px;
    position: absolute;
    z-index: 1000;
    top: 130%;
    right: 0;
    font-size: 12px;
    font-weight: normal;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.tooltip-wrapper .tooltip-text::after {
    content: "";
    position: absolute;
    bottom: 100%;
    right: 10px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent #333 transparent;
}

.tooltip-wrapper:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* 归档页面样式 */
.archive-list {
    max-width: 600px;
    margin: 0 auto;
}

.archive-month {
    margin-bottom: 20px;
}

.archive-month h3 {
    font-size: 16px;
    color: #333;
    border-bottom: 2px solid #1976D2;
    padding-bottom: 5px;
    margin-bottom: 10px;
}

.archive-month ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.archive-month li {
    width: calc(20% - 10px);
}

.archive-month a {
    display: block;
    padding: 8px 12px;
    background-color: #f5f5f5;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    text-align: center;
    font-size: 13px;
}

.archive-month a:hover {
    background-color: #e0e0e0;
}

/* 页脚 */
.footer {
    text-align: center;
    margin-top: 30px;
    padding: 15px 0;
    font-size: 12px;
    color: #999;
    border-top: 1px solid #e0e0e0;
}

/* 响应式设计 - 手机端 */
@media (max-width: 768px) {
    body {
        font-size: 12px;
        padding: 5px;
    }

    .header h1 {
        font-size: 16px;
    }

    .header .date {
        font-size: 14px;
    }

    table {
        font-size: 11px;
    }

    th, td {
        padding: 6px 8px;
    }

    .archive-month li {
        width: calc(33.33% - 10px);
    }
}

@media (max-width: 480px) {
    .archive-month li {
        width: calc(50% - 10px);
    }
}
