/* 手续费为0的样式 */
.fee-zero {
    color: #e74c3c !important;
    font-weight: bold !important;
    background-color: rgba(231, 76, 60, 0.05) !important;
}

/* 手续费(开+平)列样式 - 红色显示 */
.total-fee {
    color: #e74c3c !important;
    font-weight: 500;
}

/* 毛利正负值颜色标注 */
.profit-positive {
    color: #e67e22 !important;
    font-weight: bold;
}

.profit-negative {
    color: #27ae60 !important;
    font-weight: bold;
}

/* 期权类型颜色标注 */
.option-call {
    color: #e74c3c !important;
    font-weight: bold;
}

.option-put {
    color: #27ae60 !important;
    font-weight: bold;
}

/* 确保期权名称正常显示 */
.option-name {
    display: inline-block;
    width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    line-height: 1.3;
}

/* 桌面端期权品种列样式优化 */
#optionExchangeGroups table th:first-child, 
#optionExchangeGroups table td:first-child {
    word-break: break-word;
    white-space: normal;
    vertical-align: top;
    line-height: 1.4;
}

#optionExchangeGroups table td:first-child .option-name {
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* 添加加载中提示样式 */
.loading-message {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    font-size: 18px;
    color: #3498db;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    margin: 20px 0;
}

.loading-message i {
    margin-right: 10px;
    font-size: 24px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 基本样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    background-color: #f0f2f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    animation: fadeIn 0.5s ease;
}

/* 查询类型切换样式 */
.query-tabs {
    display: flex;
    justify-content: center;
    margin: 15px 0 20px;
    gap: 15px;
}

.query-tab {
    background: linear-gradient(to bottom, #f8f9fa, #e9ecef);
    border-radius: 8px;
    padding: 12px 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
    color: #495057;
    font-weight: 500;
    min-width: 200px;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.query-tab i {
    font-size: 18px;
    color: #6c757d;
    transition: all 0.3s ease;
    margin-right: 8px;
}

.query-tab:hover {
    background: linear-gradient(to bottom, #e9ecef, #dee2e6);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.query-tab.active {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border-color: #2573a7;
    box-shadow: 0 3px 8px rgba(52, 152, 219, 0.3);
}

.query-tab.active i {
    color: white;
}

.query-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #f39c12;
    animation: pulse 2s infinite;
}

/* 响应式设计调整 */
@media (max-width: 768px) {
    .query-tabs {
        flex-direction: column;
        gap: 10px;
    }
    
    .query-tab {
        width: 100%;
        padding: 10px 15px;
    }
}

/* 头部样式 */
header {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    padding: 25px 20px;
    border-radius: 10px 10px 0 0;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 网站Logo样式 */
.site-logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 10px;
}

.logo-icon {
    background: linear-gradient(135deg, #3498db, #2980b9);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.logo-icon i {
    color: white;
    font-size: 24px;
}

h1 {
    color: #fff;
    font-size: 36px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
    letter-spacing: 2px;
    font-weight: 700;
    margin: 0;
}

.header-content {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.site-subtitle {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 15px;
    font-size: 20px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    font-weight: 400;
    text-align: center;
    width: 100%;
    margin-left: 0;
    margin-top: 10px;
}

/* 网站描述样式 */
.site-description {
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    margin-bottom: 15px;
    font-size: 15px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
    background: rgba(0, 0, 0, 0.1);
    padding: 10px 15px;
    border-radius: 5px;
    border-left: 3px solid #3498db;
}

/* 联系信息条幅样式 */
.contact-banner {
    background: linear-gradient(to right, #e74c3c, #c0392b);
    color: white;
    text-align: center;
    padding: 12px 15px;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 5px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
    animation: pulse 2s infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.contact-banner .highlight {
    color: #ffeb3b;
    font-size: 20px;
    font-weight: 700;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.7);
}

.contact-banner .wechat-id {
    background-color: #ffeb3b;
    color: #c0392b;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 1px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.contact-banner .fab, .contact-banner .fas {
    font-size: 22px;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.5));
}

.blink {
    animation: blink 1s ease-in-out infinite alternate;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes blink {
    from {
        opacity: 0.5;
    }
    to {
        opacity: 1;
    }
}

.search-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.search-box {
    display: flex;
    width: 100%;
    max-width: 600px;
    position: relative;
}

#searchInput {
    width: 100%;
    padding: 12px 15px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

#searchInput:focus {
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.2);
    outline: none;
}

#searchBtn {
    background: linear-gradient(to right, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 0 18px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    transition: all 0.3s;
}

#searchBtn:hover {
    background: linear-gradient(to right, #2980b9, #2573a7);
    transform: translateX(2px);
}

/* 清除搜索按钮样式 */
.clear-search-btn {
    position: absolute;
    right: 50px;
    top: 0;
    height: 100%;
    width: 40px;
    background: transparent;
    border: none;
    color: #777;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    z-index: 2;
}

.clear-search-btn:hover {
    color: #e74c3c;
}

/* 导航容器 */
.letter-nav-container {
    margin-bottom: 15px;
}

/* 控制区域 */
.controls-container {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding: 12px 16px;
    background: linear-gradient(to right, #f8f9fa, #f0f2f5);
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-left: 3px solid #3498db;
}

.update-time {
    margin-left: 15px;
    color: #5d6d7e;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.update-time::before {
    content: "\f017";
    font-family: "Font Awesome 5 Free";
    margin-right: 5px;
    color: #7f8c8d;
}

/* 按钮组 */
.buttons-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* 移动端隐藏下载按钮 */
@media (max-width: 768px) {
    .download-btn {
        display: none !important;
    }
}

/* 切换主力合约按钮 */
.toggle-btn {
    background: linear-gradient(to bottom, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(52, 152, 219, 0.3);
    display: flex;
    align-items: center;
}

.toggle-btn:hover {
    background: linear-gradient(to bottom, #2980b9, #2573a7);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.4);
}

.toggle-btn.showing-main {
    background: linear-gradient(to bottom, #e74c3c, #c0392b);
    box-shadow: 0 2px 5px rgba(231, 76, 60, 0.3);
}

.toggle-btn.showing-main:hover {
    background: linear-gradient(to bottom, #c0392b, #a93226);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(231, 76, 60, 0.4);
}

/* 下载Excel按钮 */
.download-btn {
    background: linear-gradient(to bottom, #27ae60, #219653);
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 5px rgba(39, 174, 96, 0.3);
}

.download-btn:hover {
    background: linear-gradient(to bottom, #219653, #1e8449);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(39, 174, 96, 0.4);
}

.download-btn i {
    font-size: 16px;
}

/* 数据容器 */
.data-container {
    margin-top: 15px;
    overflow: hidden;
    width: 100%; /* 确保容器占满可用宽度 */
    max-width: 100%; /* 防止溢出 */
}

/* 信息卡片样式 */
.info-cards {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.info-card {
    flex: 1;
    min-width: 250px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-top: 3px solid transparent;
}

.info-card:nth-child(1) {
    border-top-color: #3498db;
}

.info-card:nth-child(2) {
    border-top-color: #27ae60;
}

.info-card:nth-child(3) {
    border-top-color: #e74c3c;
}

.info-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.info-card-header {
    background: linear-gradient(to right, #f8f9fa, #f0f2f5);
    padding: 12px 15px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 16px;
    border-bottom: 1px solid #eee;
}

.info-card-header i {
    margin-right: 8px;
    color: #3498db;
}

.info-card:nth-child(2) .info-card-header i {
    color: #27ae60;
}

.info-card:nth-child(3) .info-card-header i {
    color: #e74c3c;
}

.info-card-body {
    padding: 15px;
    color: #555;
    line-height: 1.5;
}

.info-card-body p {
    margin: 0;
}

.info-card-body strong {
    color: #2c3e50;
    font-weight: 600;
}

/* 导航区域 */
.letter-nav {
    margin-bottom: 15px;
    background-color: #fff;
    padding: 8px;
    border-radius: 6px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    overflow-y: auto; /* 改为auto，允许垂直滚动 */
    max-height: none; /* 移除高度限制，让内容完全显示 */
}

.nav-container {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
}

.nav-exchange-group {
    width: 33.33%;
    padding: 0 5px;
    box-sizing: border-box;
    margin-bottom: 8px;
    display: flex;
    flex-direction: column;
}

.nav-exchange-header {
    background: linear-gradient(to right, #3498db, #2980b9);
    color: white;
    padding: 6px 10px;
    margin-bottom: 4px;
    font-weight: 600;
    border-radius: 4px;
    font-size: 13px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-items {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    max-width: 100%;
    padding: 3px 0 3px 3px;
}

@media (max-width: 992px) {
    .nav-exchange-group {
        width: 50%;
    }
}

.letter-item {
    padding: 3px 8px;
    margin: 1px;
    cursor: pointer;
    border-radius: 3px;
    background-color: #f0f8ff;
    display: inline-block;
    white-space: nowrap;
    color: #3498db;
    border: 1px solid #d6eaf8;
    font-size: 12px;
    transition: all 0.3s;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    /* 不再需要去除下划线，因为我们现在使用span元素 */
}

.letter-item:hover {
    background-color: #3498db;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.letter-item.active {
    background: linear-gradient(to bottom, #3498db, #2980b9);
    color: white;
    border-color: #2980b9;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(41, 128, 185, 0.3);
}

/* 表格样式 */
.table-container {
    overflow-x: auto; /* 在需要时显示滚动条 */
    -webkit-overflow-scrolling: touch; /* 在iOS上提供平滑滚动 */
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
    transition: all 0.3s ease;
    width: 100%; /* 确保容器占满可用宽度 */
    max-width: 100%; /* 防止溢出 */
    scrollbar-width: thin; /* 细滚动条 */
    position: relative; /* 为滚动指示器提供定位上下文 */
}

.table-container:hover {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

/* 合约品种和代码合并列的样式 */
td div {
    line-height: 1.4;
}
td div:nth-child(2) {
    font-size: 0.9em;
    color: #666;
    margin-top: 2px;
}

/* 居中对齐的单元格 */
.center-align {
    text-align: center !important;
}

/* 合约品种链接样式 */
.contract-link {
    color: #2980b9;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
    font-weight: 500;
    padding: 2px 0;
}

.contract-link:hover {
    color: #3498db;
    text-decoration: underline;
}

/* 筛选信息样式 */
.filter-info {
    background: #f8f9fa;
    border-left: 4px solid #3498db;
    padding: 10px 15px;
    margin-bottom: 15px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    animation: fadeIn 0.3s ease;
}

.filter-message {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 14px;
    color: #34495e;
}

.filter-message i {
    color: #3498db;
}

.filter-message strong {
    color: #2c3e50;
    font-weight: 600;
}

.clear-filter-btn {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-left: auto;
}

.clear-filter-btn:hover {
    background: #c0392b;
}

/* 数据更新通知样式 */
.update-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #2ecc71;
    color: white;
    padding: 12px 20px;
    border-radius: 4px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1000;
    transform: translateX(120%);
    transition: transform 0.3s ease;
    max-width: 300px;
}

.update-notification.show {
    transform: translateX(0);
}

.notification-content {
    display: flex;
    align-items: center;
}

.notification-content i {
    margin-right: 10px;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    margin-left: 15px;
    padding: 0;
    font-size: 16px;
}

@media (max-width: 480px) {
    .update-notification {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        padding: 10px 15px;
    }
}

table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed; /* 固定表格布局，确保表格能铺满容器 */
    min-width: 100%; /* 确保表格至少占满容器宽度 */
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
    word-break: keep-all; /* 防止单词被截断 */
    white-space: normal; /* 允许文本换行 */
}

/* 表头样式 */
th {
    background: linear-gradient(to bottom, #34495e, #2c3e50);
    color: white;
    position: sticky;
    top: 0;
    text-align: center;
    vertical-align: middle;
    padding: 14px 15px;
    border-bottom: 2px solid #2c3e50;
    font-weight: 600;
    letter-spacing: 0.5px;
}

th[colspan] {
    background: linear-gradient(to bottom, #2c3e50, #1a252f);
    font-weight: bold;
    border-bottom: none;
}

th[rowspan] {
    vertical-align: middle;
}

/* 斑马纹样式 */
tbody tr:nth-child(even) {
    background-color: #f5f9fc;
}

tbody tr {
    transition: all 0.2s ease;
}

tbody tr:hover {
    background-color: #e9f7fe;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* 交易所分组样式 */
.exchange-group {
    margin-bottom: 35px;
    animation: slideUp 0.5s ease;
    width: 100%; /* 确保交易所组占满可用宽度 */
}

.exchange-header {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 14px 18px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 8px 8px 0 0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
}

.exchange-header::before {
    content: "\f0b0";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
}

.main-row {
    font-weight: bold;
}

.no-data {
    padding: 20px;
    text-align: center;
    background-color: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* 页脚样式 */
footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 30px 20px;
    margin-top: 40px;
    text-align: center;
    border-radius: 0 0 8px 8px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.logo-icon-small {
    width: 30px;
    height: 30px;
    background-color: #3498db;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    font-size: 16px;
}

.footer-site-name {
    font-size: 20px;
    font-weight: 600;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 15px 0;
}

.footer-links a {
    color: #ecf0f1;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 14px;
}

.footer-links a:hover {
    color: #3498db;
    text-decoration: underline;
}

.footer-description {
    font-size: 14px;
    color: #bdc3c7;
    max-width: 800px;
    line-height: 1.6;
    margin-top: 10px;
}

@media (max-width: 768px) {
    .footer-links {
        flex-direction: column;
        gap: 10px;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    /* 移动设备上优化表格显示 */
    .data-container {
        padding: 0; /* 移除额外的内边距，保持与导航卡片对齐 */
    }
    
    /* 确保表格在移动设备上可以滚动 */
    .table-container {
        overflow-x: scroll;
        -webkit-overflow-scrolling: touch;
    }
    
    /* 移除CSS中的自动滑动提示，改为通过JavaScript控制 */
    /* .table-container::before 已移除，避免重复显示 */
    
    /* 在移动设备上恢复表格最小宽度 - 因列数减少，调整宽度 */
    table {
        min-width: 650px;
        table-layout: auto;
    }
    
    /* 移动端期权表格列宽度优化 */
    #optionExchangeGroups table th:first-child, 
    #optionExchangeGroups table td:first-child {
        width: 18% !important; /* 减小期权品种列宽度，从默认宽度减小 */
        min-width: 90px;
        max-width: 120px;
        word-break: break-word;
        white-space: normal;
        line-height: 1.3;
        vertical-align: top;
    }
    
    /* 期权品种列内容样式优化 */
    #optionExchangeGroups table td:first-child .option-name {
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        line-height: 1.2;
        display: block;
        max-width: 100%;
    }
    
    #optionExchangeGroups table th:nth-child(2), 
    #optionExchangeGroups table td:nth-child(2) {
        width: 10% !important; /* 类型列 */
        min-width: 45px;
        text-align: center;
    }
    
    #optionExchangeGroups table th:nth-child(3), 
    #optionExchangeGroups table td:nth-child(3) {
        width: 12% !important; /* 现价列 */
        min-width: 55px;
        text-align: center;
    }
    
    /* 期权手续费列优化 */
    #optionExchangeGroups table th:nth-child(4), 
    #optionExchangeGroups table td:nth-child(4),
    #optionExchangeGroups table th:nth-child(5), 
    #optionExchangeGroups table td:nth-child(5),
    #optionExchangeGroups table th:nth-child(6), 
    #optionExchangeGroups table td:nth-child(6),
    #optionExchangeGroups table th:nth-child(7), 
    #optionExchangeGroups table td:nth-child(7) {
        width: 12% !important;
        min-width: 60px;
        text-align: center;
    }
    
    /* 添加滚动指示器 - 仅在移动端显示 */
    .table-container::after {
        content: "";
        display: none; /* 默认不显示 */
    }
    
    /* 仅在真正需要滚动时显示指示器 */
    .table-container.needs-scroll::after {
        content: "→";
        position: absolute;
        right: 15px;
        top: 50%;
        width: 30px;
        height: 30px;
        background-color: rgba(52, 152, 219, 0.8);
        color: white;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 16px;
        animation: scrollIndicator 1.5s infinite;
        pointer-events: none; /* 确保不会阻止表格的滚动 */
        z-index: 5;
    }
    
    /* 滚动到右侧时隐藏指示器 */
    .table-container.scrolled-right::after {
        display: none;
    }
    
    /* 可滚动表格的样式 */
    .table-container.scrollable {
        position: relative;
    }
    
    /* 滚动提示样式 */
    .scroll-hint {
        text-align: center;
        padding: 10px;
        background-color: #f8f9fa;
        color: #3498db;
        font-weight: 500;
        border-bottom: 1px solid #eee;
        position: sticky;
        top: 0;
        z-index: 10;
    }
    
    /* 滚动指示器样式 */
    .scroll-indicator {
        position: absolute;
        right: 15px;
        top: 50%;
        width: 30px;
        height: 30px;
        background-color: rgba(52, 152, 219, 0.8);
        color: white;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 16px;
        animation: scrollIndicator 1.5s infinite;
        pointer-events: none;
        z-index: 5;
        transform: translateY(-50%);
    }
    
    .site-logo {
        margin-bottom: 8px;
        justify-content: center;
    }
    
    .logo-icon {
        width: 40px;
        height: 40px;
        margin-right: 10px;
    }
    
    .logo-icon i {
        font-size: 20px;
    }
    
    h1 {
        font-size: 28px;
    }
    
    .site-subtitle {
        font-size: 16px;
        margin-bottom: 10px;
        margin-top: 5px;
    }
    
    .site-description {
        font-size: 14px;
        padding: 8px 12px;
    }
    
    .contact-banner {
        padding: 10px;
        font-size: 16px;
        flex-wrap: wrap;
        line-height: 1.8;
    }
    
    .contact-banner .highlight, 
    .contact-banner .wechat-id {
        font-size: 18px;
        display: inline-block;
        margin: 2px 0;
    }
    
    .contact-banner .fab, 
    .contact-banner .fas {
        font-size: 18px;
    }
    
    .info-cards {
        flex-direction: column;
        gap: 10px;
    }
    
    .info-card {
        min-width: 100%;
    }
    
    th, td {
        padding: 8px 10px;
    }
    
    .letter-nav {
        padding: 5px;
        max-height: none; /* 移除高度限制 */
        overflow-y: visible; /* 确保内容可见 */
    }
    
    .nav-exchange-group {
        width: 100%;
        margin-bottom: 5px;
    }
    
    .nav-exchange-header {
        font-size: 12px;
        padding: 5px 8px;
        margin-bottom: 3px;
    }
    
    .nav-items {
        padding: 5px;
        display: flex;
        flex-wrap: wrap;
        gap: 4px; /* 增加项目间距 */
        justify-content: flex-start; /* 左对齐 */
    }
    
    .controls-container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .buttons-group {
        width: 100%;
    }
    
    .toggle-btn, .download-btn {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .update-time {
        margin-left: 0;
        margin-top: 8px;
    }
    
    .letter-item {
        padding: 6px 8px; /* 增加内边距，提高可点击区域 */
        font-size: 12px; /* 略微增大字体 */
        margin: 2px; /* 增加间距 */
        display: inline-block; /* 确保正确显示 */
    }

    .exchange-header {
        font-size: 16px;
        padding: 10px;
    }
    
    /* 表头适配移动端 */
    th[colspan], th[rowspan] {
        padding: 5px 2px;
        font-size: 13px; /* 增加字体大小 */
    }
    
    /* 移动端所有表头字体大小增加 */
    th {
        font-size: 14px !important;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    #searchInput {
        padding: 10px;
        font-size: 14px;
    }
    
    #searchBtn {
        padding: 0 10px;
    }
    
    th, td {
        padding: 8px 10px;
        font-size: 12px;
    }
    
    th i {
        font-size: 10px;
    }
    
    /* 表头适配小屏幕 */
    th[colspan], th[rowspan] {
        padding: 4px 2px;
        font-size: 12px; /* 增加小屏幕字体大小 */
    }
    
    /* 小屏幕所有表头字体大小增加 */
    th {
        font-size: 13px !important;
    }
    
    .toggle-btn, .download-btn {
        width: 100%;
        justify-content: center;
        margin-bottom: 5px;
    }
    
    .buttons-group {
        width: 100%;
    }
    
    /* 小屏幕上导航栏的优化 */
    .nav-exchange-group {
        width: 100%; /* 在手机上占满宽度 */
        margin-bottom: 8px;
    }
    
    .nav-items {
        padding: 6px;
        justify-content: space-between; /* 均匀分布 */
    }
    
    .letter-item {
        padding: 8px 10px; /* 更大的点击区域 */
        margin: 3px;
        font-size: 14px; /* 更大的字体 */
        min-width: 45px; /* 确保最小宽度 */
        text-align: center; /* 文本居中 */
    }
    
    /* 确保导航栏可滚动 */
    .letter-nav-container {
        overflow-x: hidden;
        overflow-y: visible;
    }
}

/* 针对iPhone Pro Max和大屏手机的优化 */
@media (min-width: 428px) and (max-width: 500px) {
    table {
        min-width: 650px;
    }
    
    .table-container {
        overflow-x: scroll;
        -webkit-overflow-scrolling: touch;
    }
    
    th, td {
        padding: 10px 8px;
        font-size: 13px;
    }
}

/* 针对iPhone和类似设备的优化 */
@media (min-width: 375px) and (max-width: 428px) {
    table {
        min-width: 650px; /* 因列数减少，调整表格宽度 */
    }
    
    .table-container {
        overflow-x: scroll;
        -webkit-overflow-scrolling: touch;
        margin-left: 0; /* 移除负边距，保持与导航卡片对齐 */
        margin-right: 0;
        width: 100%;
        padding: 0;
        position: relative; /* 为滚动指示器提供定位上下文 */
    }
    
    th, td {
        padding: 8px 5px;
        font-size: 12px;
    }
    
    /* 优化表头 */
    th {
        font-size: 11px;
        padding: 10px 5px;
    }
    
    /* 优化合约品种和代码列 */
    td div:nth-child(1) {
        font-size: 12px;
    }
    
    td div:nth-child(2) {
        font-size: 10px;
    }
}

/* 针对超小屏幕的优化 */
@media (max-width: 375px) {
    .letter-item {
        padding: 6px 8px;
        margin: 2px;
        font-size: 13px;
        min-width: 40px;
    }
    
    .nav-items {
        gap: 2px;
    }
    
    .nav-exchange-header {
        font-size: 11px;
        padding: 5px 6px;
    }
    
    /* 超小屏幕上的表格优化 */
    .table-container {
        margin-left: 0; /* 移除负边距，保持与导航卡片对齐 */
        margin-right: 0;
        width: 100%;
        border-radius: 4px;
        overflow-x: scroll;
        -webkit-overflow-scrolling: touch;
        position: relative; /* 为滚动指示器提供定位上下文 */
    }
    
    /* 超小屏幕期权表格优化 */
    #optionExchangeGroups table th:first-child, 
    #optionExchangeGroups table td:first-child {
        width: 16% !important; /* 进一步减小期权品种列宽度 */
        min-width: 70px;
        max-width: 100px;
        font-size: 10px;
        word-break: break-word;
        white-space: normal;
        line-height: 1.2;
        vertical-align: top;
    }
    
    /* 超小屏幕期权品种列内容样式 */
    #optionExchangeGroups table td:first-child .option-name {
        font-size: 10px;
        line-height: 1.1;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
    
    #optionExchangeGroups table th:nth-child(2), 
    #optionExchangeGroups table td:nth-child(2) {
        width: 8% !important; /* 类型列更紧凑 */
        min-width: 35px;
        font-size: 10px;
    }
    
    table {
        min-width: 650px; /* 因列数减少，调整表格宽度 */
    }
    
    th, td {
        padding: 6px 4px;
        font-size: 11px;
    }
    
    /* 优化表头 */
    th {
        font-size: 10px;
        padding: 8px 4px;
    }
    
    /* 优化合约品种和代码列 */
    td div:nth-child(1) {
        font-size: 11px;
    }
    
    td div:nth-child(2) {
        font-size: 9px;
    }
}

/* 添加滚动指示器动画 */
@keyframes scrollIndicator {
    0% { transform: translateX(0); opacity: 0.7; }
    50% { transform: translateX(5px); opacity: 1; }
    100% { transform: translateX(0); opacity: 0.7; }
}

/* 添加动画 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(20px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
} 

/* 回到顶部按钮样式 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #3498db;
    color: white;
    border: none;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    z-index: 1000;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: #2980b9;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .back-to-top {
        width: 40px;
        height: 40px;
        bottom: 20px;
        right: 20px;
        font-size: 16px;
    }
} 

/* 管理员面板样式 */
.admin-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 1200px;
    height: 80vh;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
    z-index: 1100;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.admin-header {
    background-color: #3498db;
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-header h2 {
    margin: 0;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
}

.admin-header h2 i {
    margin-right: 10px;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    transition: background-color 0.3s;
}

.close-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.admin-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.admin-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.date-range {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.date-range input[type="date"] {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.filter-btn, .export-btn, .clear-btn {
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s;
}

.filter-btn {
    background-color: #3498db;
    color: white;
}

.filter-btn:hover {
    background-color: #2980b9;
}

.export-btn {
    background-color: #2ecc71;
    color: white;
}

.export-btn:hover {
    background-color: #27ae60;
}

.clear-btn {
    background-color: #e74c3c;
    color: white;
}

.clear-btn:hover {
    background-color: #c0392b;
}

.stats-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.stats-summary {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.stat-card {
    flex: 1;
    min-width: 200px;
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.stat-title {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 10px;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #3498db;
}

.stats-table-container {
    overflow-x: auto;
}

.stats-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

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

.stats-table th {
    background-color: #f5f5f5;
    font-weight: 600;
    color: #333;
    position: sticky;
    top: 0;
}

.stats-table tr:hover {
    background-color: #f9f9f9;
}

.no-data, .error-message {
    text-align: center;
    padding: 20px;
    color: #777;
}

.error-message {
    color: #e74c3c;
}

@media (max-width: 768px) {
    .admin-panel {
        width: 95%;
        height: 90vh;
    }
    
    .admin-controls {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .date-range {
        width: 100%;
        justify-content: space-between;
    }
    
    .stat-card {
        min-width: 100%;
    }
} 

/* 网站地图页面样式 */
.sitemap-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

.sitemap-section {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-bottom: 30px;
}

.sitemap-section h2 {
    color: #2c3e50;
    font-size: 24px;
    margin-bottom: 20px;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
    display: flex;
    align-items: center;
}

.sitemap-section h2 i {
    margin-right: 10px;
    color: #3498db;
}

.sitemap-section p {
    color: #7f8c8d;
    margin-bottom: 30px;
    font-size: 16px;
    line-height: 1.6;
}

.sitemap-category {
    margin-bottom: 30px;
}

.sitemap-category h3 {
    font-size: 18px;
    color: #34495e;
    margin-bottom: 15px;
    padding-left: 10px;
    border-left: 4px solid #3498db;
}

.sitemap-category ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 10px;
}

.sitemap-category li {
    padding: 8px 0;
}

.sitemap-category a {
    color: #2980b9;
    text-decoration: none;
    transition: color 0.3s, transform 0.3s;
    display: inline-block;
    padding: 5px 10px;
    border-radius: 4px;
}

.sitemap-category a:hover {
    color: #3498db;
    background-color: #f8f9fa;
    transform: translateX(5px);
}

.back-to-home {
    text-align: center;
    margin: 30px 0;
}

.back-to-home .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    background-color: #3498db;
    color: white;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.back-to-home .btn i {
    margin-right: 8px;
}

.back-to-home .btn:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .sitemap-category ul {
        grid-template-columns: 1fr;
    }

    .sitemap-section {
        padding: 20px 15px;
    }
}

/* 平滑滚动效果 */
html {
    scroll-behavior: smooth;
}

/* 数据区域高亮效果 - 使用纯CSS实现，不依赖JavaScript移除类 */
@keyframes highlightFade {
    0% { 
        box-shadow: 0 0 0 rgba(52, 152, 219, 0);
        background-color: rgba(52, 152, 219, 0);
    }
    25% { 
        box-shadow: 0 0 15px rgba(52, 152, 219, 0.5);
        background-color: rgba(52, 152, 219, 0.05);
    }
    75% { 
        box-shadow: 0 0 15px rgba(52, 152, 219, 0.5);
        background-color: rgba(52, 152, 219, 0.05);
    }
    100% { 
        box-shadow: 0 0 0 rgba(52, 152, 219, 0);
        background-color: rgba(52, 152, 219, 0);
    }
}

.highlight-section {
    animation: highlightFade 2s ease-in-out forwards;
    border-radius: 8px;
    /* 使用will-change提示浏览器这个元素将发生变化，优化渲染性能 */
    will-change: box-shadow, background-color;
    /* 确保动画结束后不会触发重排或重绘 */
    transform: translateZ(0);
} 