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

/* 出清结果概念说明框 */
.concept-explanation {
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
    border: 2px solid #667eea;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(102, 126, 234, 0.1);
}

.concept-explanation h4 {
    color: #667eea;
    margin: 0 0 15px 0;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.concept-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
}

.concept-item {
    background: white;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.concept-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.15);
}

.concept-icon {
    font-size: 28px;
    flex-shrink: 0;
    line-height: 1;
}

.concept-item strong {
    color: #333;
    font-size: 14px;
    display: block;
    margin-bottom: 5px;
}

.concept-item p {
    color: #555;
    font-size: 13px;
    margin: 3px 0;
    line-height: 1.5;
}

.concept-item small {
    color: #888;
    font-size: 11px;
    line-height: 1.4;
    display: block;
    margin-top: 5px;
    padding-top: 8px;
    border-top: 1px dashed #ddd;
}

/* 响应式布局 */
@media (max-width: 768px) {
    .concept-grid {
        grid-template-columns: 1fr;
    }
    
    .concept-explanation {
        padding: 15px;
    }
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
    overflow-x: hidden;
}

/* 页面容器 */
.page {
    display: none;
    min-height: 100vh;
    width: 100%;
    box-sizing: border-box;
}

.page.active {
    display: block;
}

/* 首页样式 */
.main-header {
    position: relative; /* M4：auth-bar 绝对定位锚点（2026-08-29） */
    text-align: center;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.main-header h1 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
}

.home-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* 介绍区域 */
.intro-section {
    background: white;
    padding: 30px;
    border-radius: 16px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.intro-section h2 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.intro-section p {
    line-height: 1.8;
    color: #666;
}

/* 功能卡片 */
.features-section {
    margin-bottom: 40px;
}

.features-section h2 {
    color: white;
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.8rem;
}

.feature-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.feature-card {
    background: white;
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.feature-card .icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.feature-card h3 {
    color: #667eea;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.feature-card p {
    color: #666;
    margin-bottom: 15px;
}

.feature-card ul {
    list-style: none;
    text-align: left;
}

.feature-card li {
    padding: 5px 0;
    color: #888;
    position: relative;
    padding-left: 20px;
}

.feature-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
}

/* 模式选择 */
.mode-selection {
    text-align: center;
}

.mode-selection h2 {
    color: white;
    margin-bottom: 30px;
    font-size: 1.8rem;
}

.mode-buttons {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.mode-btn {
    background: white;
    border: none;
    padding: 30px 50px;
    border-radius: 16px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    min-width: 200px;
}

.mode-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.mode-btn.primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.mode-btn.secondary {
    background: white;
    color: #667eea;
}

.btn-icon {
    font-size: 3rem;
}

.btn-text {
    font-size: 1.3rem;
    font-weight: bold;
}

.btn-desc {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* 页脚 */
.main-footer {
    text-align: center;
    padding: 20px;
    color: rgba(255, 255, 255, 0.7);
}

/* 主内容区 */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    background: white;
    width: 100%;
    box-sizing: border-box;
}

/* 页面头部 */
.page-header {
    background: white;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    box-sizing: border-box;
}

.back-btn {
    background: #f0f0f0;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
}

.back-btn:hover {
    background: #e0e0e0;
}

.page-header h1 {
    color: #667eea;
    font-size: 1.5rem;
}

/* 对战内容 */
.battle-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* 对战类型卡片 */
.battle-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.battle-type-card {
    background: white;
    padding: 30px;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.battle-type-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.battle-type-card h3 {
    color: #667eea;
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.battle-type-card p {
    color: #666;
    margin-bottom: 15px;
}

.modules {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.module-tag {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
}

/* ═══ 全局 .data-table 表格样式（2026-08-27 修复 PvP 题目信息表无样式问题）═══
   之前 .data-table 只在特定容器（成员表等）有覆盖样式，PvP 房间题目信息的"线路参数/机组列表"
   等用 .data-table 渲染的表都没边框、看起来像纯文本。补全局样式。 */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    color: #1f2a37;
}
.data-table th {
    background: #eef2f7;
    color: #1b3a5c;
    font-weight: 700;
    padding: 6px 8px;
    border: 1px solid #d4dce6;
    text-align: center;
}
.data-table td {
    padding: 5px 8px;
    border: 1px solid #e6eaee;
    text-align: center;
}
.data-table tbody tr:hover {
    background: #f7fafc;
}

/* PVP页面样式 */
.pvp-info {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.pvp-info h2 {
    color: #667eea;
    margin-bottom: 20px;
}

.rules {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 30px;
}

.rule-item {
    text-align: center;
}

.rule-item .number {
    display: block;
    font-size: 3rem;
    font-weight: bold;
    color: #667eea;
}

.rule-item .text {
    color: #666;
    font-size: 1rem;
}

.pvp-info h3 {
    color: #333;
    margin: 20px 0 15px;
}

.round-items {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
}

.round-items li {
    background: #f5f5f5;
    padding: 10px 20px;
    border-radius: 8px;
    color: #666;
}

/* 角色选择 */
.role-selection {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.role-btn {
    background: white;
    border: 2px solid #667eea;
    padding: 20px 40px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
}

.role-btn:hover {
    background: #667eea;
    color: white;
}

.role-icon {
    font-size: 2.5rem;
}

/* 练习页面样式 */
.practice-content {
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

/* 标签页 */
.module-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    background: white;
    padding: 10px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.tab-btn {
    background: transparent;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s;
    color: #666;
}

.tab-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.tab-btn:hover:not(.active) {
    background: #f0f0f0;
}

/* 模块内容 */
.module-content {
    display: none;
    margin-top: 20px;
}

.module-content.active {
    display: block;
}

/* 内容标签页 */
.content-tabs {
    display: flex;
    gap: 2px;
    margin-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.content-tab {
    background: #f8f9fa;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
    color: #666;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
}

.content-tab.active {
    background: white;
    color: #27ae60;
    border-bottom: 2px solid #27ae60;
}

.content-tab:hover:not(.active) {
    background: #e9ecef;
}

/* 系统参数标签/标签页样式（⚙ S5-6：早期代重复声明已并入下方同名规则，语义等价（浏览器实测 0 漂移）） */
.sys-param-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.sys-param-content.active {
    display: block;
}

/* 系统参数表格样式 */
.system-param-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.system-param-table th {
    background-color: #f8f9fa;
    font-weight: bold;
    color: #333;
}

.system-param-table tr:hover {
    background-color: #f5f5f5;
}

/* 机组性能标签样式 */
.performance-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
    overflow-x: auto;
}

.perf-tab {
    padding: 8px 16px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.perf-tab.active {
    color: #27ae60;
    border-bottom-color: #27ae60;
    font-weight: bold;
}

.perf-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.perf-content.active {
    display: block;
}

/* 机组信息样式 */
.unit-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

.info-item span {
    font-weight: bold;
    color: #333;
}

/* 表格容器样式 */
.table-container {
    overflow-x: auto;
    overflow-y: auto;
    max-height: 400px;
    margin-bottom: 20px;
}

.table-container::-webkit-scrollbar {
    height: 8px;
    width: 8px;
}

.table-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.table-container::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.table-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

/* 比较表格容器样式 */
.unit-comparison,
.retail-comparison,
.price-comparison {
    overflow: hidden;
}

.unit-table,
.retail-table,
.price-table {
    overflow: hidden;
}

/* 网络拓扑图样式 */
.topology-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* ⚙ S5-6：早期 .topology-image 重复声明（max-width:100% / max-height:500px）已并入下方同名规则，语义等价 */

/* 系统参数标签页样式（⚙ S5-6：并入早期代存活声明 overflow-x / color / white-space / font-weight） */
.system-params-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
    overflow-x: auto;
}

.sys-param-tab {
    padding: 10px 15px;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 4px 4px 0 0;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    color: #666;
    white-space: nowrap;
}

.sys-param-tab:hover {
    background: #e0e0e0;
}

.sys-param-tab.active {
    background: #4CAF50;
    color: white;
    border-color: #4CAF50;
    font-weight: bold;
}

/* 标签页内容 */
.tab-content {
    display: none;
    width: 100%;
    box-sizing: border-box;
}

.tab-content.active {
    display: block;
}

/* 题目部分 */
.topic-section {
    margin-bottom: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    width: 100%;
    box-sizing: border-box;
    max-width: 100%;
}

.topic-section h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 16px;
}

.topic-content ol {
    margin-left: 20px;
    margin-bottom: 15px;
}

.topic-content li {
    margin-bottom: 8px;
    color: #666;
}

.topic-content p {
    margin-bottom: 15px;
    color: #666;
}

/* 申报部分 */
.declaration-section {
    margin-bottom: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    width: 100%;
    box-sizing: border-box;
    max-width: 100%;
}

.declaration-section h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 16px;
}

.declaration-form {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.declaration-form label {
    font-weight: 500;
    color: #666;
}

#declaration-coefficient {
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 100px;
}

.btn-declare {
    background: #27ae60;
    color: white;
    border: none;
    padding: 6px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-declare:hover {
    background: #219a52;
}

/* 结果部分 */
.result-section {
    margin-bottom: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    width: 100%;
    box-sizing: border-box;
    max-width: 100%;
}

.result-section h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 16px;
}

.result-item {
    display: flex;
    justify-content: space-between;
    color: #666;
}

.result-item span:last-child {
    margin-right: 20px;
}

/* 价格比较部分 */
.price-section {
    margin-bottom: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    width: 100%;
    box-sizing: border-box;
    max-width: 100%;
}

.price-section h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 16px;
}

.price-comparison {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 20px;
    width: 100%;
    box-sizing: border-box;
}

.price-table {
    min-width: 0;
    overflow: hidden;
}

.price-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    table-layout: fixed;
}

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

.price-table th {
    background: #e9ecef;
    font-weight: 600;
    color: #333;
}

/* 机组中标量部分 */
.unit-section {
    margin-bottom: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    width: 100%;
    box-sizing: border-box;
    max-width: 100%;
}

.unit-section h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 16px;
}

.unit-comparison {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 20px;
    width: 100%;
    box-sizing: border-box;
}

.unit-table {
    min-width: 0;
    overflow: hidden;
}

.unit-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    table-layout: fixed;
}

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

.unit-table th {
    background: #e9ecef;
    font-weight: 600;
    color: #333;
}

/* 通用 .unit-table 第 3 列（如火电单时段的"总利润"列）：在窄容器 + overflow:hidden 下，
   数字可能贴右边框被裁。加 padding-right 与右边框留间距（与 thermal-multi-unit-table 修复一致） */
.unit-table th:nth-child(3),
.unit-table td:nth-child(3) {
    padding-right: 40px !important;
}

/* 火电单时段机组中标量表格：通过 tbody ID 精确匹配，让第3列宽度自适应内容 */
.unit-table:has(#thermal-unit-left-results) table,
.unit-table:has(#thermal-unit-right-results) table {
    table-layout: auto;
}

.unit-table:has(#thermal-unit-left-results) th:nth-child(3),
.unit-table:has(#thermal-unit-left-results) td:nth-child(3),
.unit-table:has(#thermal-unit-right-results) th:nth-child(3),
.unit-table:has(#thermal-unit-right-results) td:nth-child(3) {
    padding-right: 40px;
    white-space: nowrap;
}

/* 售电公司部分 */
.retail-section {
    margin-bottom: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    width: 100%;
    box-sizing: border-box;
    max-width: 100%;
}

.retail-section h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 16px;
}

.retail-comparison {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 20px;
    width: 100%;
    box-sizing: border-box;
}

.retail-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    table-layout: fixed;
}

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

.retail-table th {
    background: #e9ecef;
    font-weight: 600;
    color: #333;
}

/* 售电单时段结算小结：V16 §6.5 合计电费 vs 最优申报（钉死"亏/赚"，不靠实时费正负读符号） */
.retail-settle-summary {
    margin-top: 8px;
    padding: 8px 10px;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-left: 3px solid #0d6efd;
    border-radius: 4px;
    font-size: 12px;
    line-height: 1.7;
    color: #333;
}

.retail-settle-summary .rss-line {
    white-space: nowrap;
}

.retail-settle-summary .rss-worse {
    color: #dc3545;
    font-weight: 600;
}

.retail-settle-summary .rss-better {
    color: #198754;
    font-weight: 600;
}

.retail-settle-summary .rss-even {
    color: #6c757d;
    font-weight: 600;
}


/* 系统参数页面 */
.params-section {
    margin-bottom: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.params-section h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 16px;
}

/* 练习区域 */
.practice-area {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 20px;
}

.left-panel,
.right-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 网络拓扑 */
.network-topology {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.network-topology h3 {
    color: #667eea;
    margin-bottom: 15px;
}

#topology-canvas {
    width: 100%;
    height: 250px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.topology-image {
    width: 100%;
    height: auto;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    max-width: 100%;
    max-height: 500px;
}

/* 网络参数和负荷参数 */
.network-params,
.load-params {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.network-params h3,
.load-params h3 {
    color: #667eea;
    margin-bottom: 15px;
}

.params-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

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

.params-table th {
    background: #f5f5f5;
    font-weight: 600;
    color: #667eea;
}

/* 系统参数 */
.system-params {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.system-params h3 {
    color: #667eea;
    margin-bottom: 15px;
}

.param-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.param-group label {
    font-weight: 500;
}

.param-group input[type="range"] {
    flex: 1;
}

.param-group span {
    font-weight: bold;
    color: #667eea;
    min-width: 40px;
}

/* 申报区域 */
.declaration-area {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.declaration-area h3 {
    color: #667eea;
    margin-bottom: 15px;
}

.time-slots {
    max-height: 400px;
    overflow-y: auto;
}

#declaration-table {
    width: 100%;
    border-collapse: collapse;
}

#declaration-table th,
#declaration-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

#declaration-table th {
    background: #f5f5f5;
    font-weight: 600;
    color: #667eea;
    position: sticky;
    top: 0;
}

#declaration-table input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* 对比区域 */
.comparison-area {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.comparison-area h3 {
    color: #667eea;
    margin-bottom: 15px;
}

.comparison-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.comp-tab {
    background: #f0f0f0;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
}

.comp-tab.active {
    background: #667eea;
    color: white;
}

.comparison-chart {
    height: 200px;
    background: #f9f9f9;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}

/* 结果区域 */
.results-area {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.results-area h3 {
    color: #667eea;
    margin-bottom: 15px;
}

.result-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.result-tab {
    background: #f0f0f0;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
}

.result-tab.active {
    background: #667eea;
    color: white;
}

.result-content {
    margin-top: 10px;
}

.thermal-multi-result-panel {
    display: none;
}

.thermal-multi-result-panel.active {
    display: block;
}

/* 火电多时段表格通用：固定表头 + tbody 滚动 */
.thermal-multi-price-table,
.thermal-multi-unit-table,
.thermal-multi-retail-table {
    display: flex;
    flex-direction: column;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    overflow: hidden;
}

.thermal-multi-price-table .table-header,
.thermal-multi-unit-table .table-header,
.thermal-multi-retail-table .table-header {
    flex-shrink: 0;
    background: #e9ecef;
}

.thermal-multi-price-table .table-body,
.thermal-multi-unit-table .table-body,
.thermal-multi-retail-table .table-body {
    flex: 1 1 auto;
    overflow-y: scroll;
    max-height: 360px;
    background: #fff;
}

.thermal-multi-price-table table,
.thermal-multi-unit-table table,
.thermal-multi-retail-table table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    margin: 0;
}

.thermal-multi-price-table th,
.thermal-multi-price-table td,
.thermal-multi-unit-table th,
.thermal-multi-unit-table td,
.thermal-multi-retail-table th,
.thermal-multi-retail-table td {
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
}

.thermal-multi-price-table th,
.thermal-multi-unit-table th,
.thermal-multi-retail-table th {
    white-space: normal;
    line-height: 1.2;
}

.thermal-multi-price-table td,
.thermal-multi-unit-table td,
.thermal-multi-retail-table td {
    white-space: nowrap;
}

/* 火电多时段节点价格表格：4列紧凑，确保不跨越中间分隔线 */
.result-left .thermal-multi-price-table,
.result-right .thermal-multi-price-table {
    width: calc(100% - 30px);
    padding-right: 20px;
    box-sizing: border-box;
}

/* 火电多时段表格：覆盖通用 .price-table/.unit-table 的 min-width: 800px，
   防止表格溢出左右面板、遮挡页面右侧背景 */
.result-left .thermal-multi-price-table,
.result-right .thermal-multi-price-table,
.result-left .thermal-multi-unit-table,
.result-right .thermal-multi-unit-table,
.result-left .thermal-multi-retail-table,
.result-right .thermal-multi-retail-table {
    min-width: 0;
}

/* 加 .result-section 前缀提高优先级，防止被后方通用 .price-table 规则（padding:12px）覆盖 */
.result-section .thermal-multi-price-table th,
.result-section .thermal-multi-price-table td {
    padding: 3px 1px;
    font-size: 12px;
}

.thermal-multi-price-table th:nth-child(1),
.thermal-multi-price-table td:nth-child(1) {
    width: 14%;
}

.thermal-multi-price-table th:nth-child(2),
.thermal-multi-price-table td:nth-child(2),
.thermal-multi-price-table th:nth-child(3),
.thermal-multi-price-table td:nth-child(3),
.thermal-multi-price-table th:nth-child(4),
.thermal-multi-price-table td:nth-child(4) {
    width: 25%;
}

/* 火电多时段机组中标量表格：3列 */
.result-section .thermal-multi-unit-table th,
.result-section .thermal-multi-unit-table td {
    padding: 3px 1px;
    font-size: 12px;
}

.thermal-multi-unit-table th:nth-child(1),
.thermal-multi-unit-table td:nth-child(1) {
    width: 18%;
}

.thermal-multi-unit-table th:nth-child(2),
.thermal-multi-unit-table td:nth-child(2),
.thermal-multi-unit-table th:nth-child(3),
.thermal-multi-unit-table td:nth-child(3) {
    width: 41%;
}

/* 火电多时段机组中标量表："总利润"列（第 3 列）右对齐数字贴近右边框，
   加 padding-right 让数字与边框留间距，避免在大数字（6 位+）下被遮挡 */
.thermal-multi-unit-table th:nth-child(3),
.thermal-multi-unit-table td:nth-child(3) {
    padding-right: 12px;
}

/* 火电多时段售电公司表格：7列紧凑 */
.result-section .thermal-multi-retail-table th,
.result-section .thermal-multi-retail-table td {
    padding: 2px 1px;
    font-size: 10px;
}

.thermal-multi-retail-table th:nth-child(1),
.thermal-multi-retail-table td:nth-child(1) {
    width: 9%;
}

.thermal-multi-retail-table th:nth-child(n+2),
.thermal-multi-retail-table td:nth-child(n+2) {
    width: 15.17%;
}

/* 售电单时段紧凑样式（2026-07-26 新增） */
.retail-single-price-table,
.retail-single-unit-table,
.retail-single-company-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.retail-single-price-table th,
.retail-single-price-table td,
.retail-single-unit-table th,
.retail-single-unit-table td,
.retail-single-company-table th,
.retail-single-company-table td {
    padding: 6px 4px;
    text-align: center;
    border: 1px solid #e0e0e0;
}

.retail-single-price-table th,
.retail-single-unit-table th,
.retail-single-company-table th {
    background: #f5f5f5;
    font-weight: 600;
    color: #667eea;
}

/* 售电单时段售电公司表格：5列紧凑 */
.retail-single-company-table th:nth-child(1),
.retail-single-company-table td:nth-child(1) {
    width: 12%;
}

.retail-single-company-table th:nth-child(n+2),
.retail-single-company-table td:nth-child(n+2) {
    width: 22%;
}

/* 表格容器：支持水平滚动 */
.retail-single-table-wrapper {
    overflow-x: auto;
    min-width: 360px;
}

.result-table {
    width: 100%;
    border-collapse: collapse;
}

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

.result-table th {
    background: #f5f5f5;
    font-weight: 600;
    color: #667eea;
}

/* 系统参数页面 */
.params-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
}

.param-section {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.param-section h3 {
    color: #667eea;
    margin-bottom: 15px;
}

/* 操作按钮 */
.action-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.btn-submit,
.btn-clear {
    padding: 12px 40px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-submit {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-submit:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-clear {
    background: #f0f0f0;
    color: #666;
}

.btn-clear:hover {
    background: #e0e0e0;
}

/* 交易区域 */
.trading-area {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.trading-panel {
    display: none;
}

.trading-panel.active {
    display: block;
}

.bid-area {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.buy-bids h4,
.sell-bids h4 {
    color: #667eea;
    margin-bottom: 15px;
}

.bid-table {
    width: 100%;
    border-collapse: collapse;
}

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

.bid-table th {
    background: #f5f5f5;
    font-weight: 600;
}

.clearing-result {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
}

.clearing-result h4 {
    color: #667eea;
    margin-bottom: 10px;
}

/* 排名页面 */
.ranking-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
}

.ranking-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.rank-tab {
    background: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.rank-tab.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.ranking-table-container {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.ranking-table {
    width: 100%;
    border-collapse: collapse;
}

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

.ranking-table th {
    background: #f5f5f5;
    font-weight: 600;
    color: #667eea;
}

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

/* 响应式设计 */
@media (max-width: 1024px) {
    .practice-area {
        grid-template-columns: 1fr;
    }
    
    .battle-types {
        grid-template-columns: 1fr;
    }
    
    .bid-area {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .main-header h1 {
        font-size: 1.8rem;
    }
    
    .mode-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .mode-btn {
        width: 100%;
        max-width: 300px;
    }
    
    .rules {
        flex-direction: column;
        gap: 20px;
    }
    
    .role-selection {
        flex-direction: column;
        align-items: center;
    }
    
    .role-btn {
        width: 100%;
        max-width: 250px;
    }
}

/* 日前申报头部布局 */
.declaration-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.declaration-header h3 {
    margin: 0;
    color: #333;
    font-size: 16px;
}

.declaration-actions-right {
    display: flex;
    gap: 8px;
}

.declaration-actions-right button {
    padding: 6px 14px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s;
    white-space: nowrap;
}

.declaration-actions-right .btn-secondary {
    background: #f0f0f0;
    color: #333;
    border: 1px solid #ddd;
}

.declaration-actions-right .btn-secondary:hover {
    background: #e0e0e0;
}

.declaration-actions-right .btn-primary {
    background: #27ae60;
    color: white;
    border: none;
}

.declaration-actions-right .btn-primary:hover {
    background: #219a52;
}

/* 多时段申报横向滑动容器 */
.declaration-scroll-container {
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #667eea #f0f0f0;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: white;
}

.declaration-scroll-container::-webkit-scrollbar {
    height: 8px;
}

.declaration-scroll-container::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 4px;
}

.declaration-scroll-container::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 4px;
}

.declaration-scroll-container::-webkit-scrollbar-thumb:hover {
    background: #5a6fd6;
}

/* 多时段申报表格 */
#multi-declaration-table {
    width: auto;
    min-width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

#multi-declaration-table th,
#multi-declaration-table td {
    padding: 8px 4px;
    text-align: center;
    border: 1px solid #e0e0e0;
    min-width: 60px;
    font-size: 12px;
}

#multi-declaration-table th {
    background: #f5f5f5;
    font-weight: 600;
    color: #333;
    position: sticky;
    top: 0;
    z-index: 10;
}

#multi-declaration-table th.sticky-col,
#multi-declaration-table td.sticky-col {
    position: sticky;
    left: 0;
    background: #f8f9fa;
    z-index: 20;
    min-width: 80px;
    font-weight: 600;
}

#multi-declaration-table .coeff-input {
    width: 50px;
    padding: 4px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
    font-size: 12px;
}

#multi-declaration-table .coeff-input:focus {
    border-color: #667eea;
    outline: none;
}

/* 多时段结果区域纵向滑动容器 */
.price-scroll-container-vertical,
.unit-scroll-container-vertical,
.retail-scroll-container-vertical {
    overflow-x: hidden;
    overflow-y: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #667eea #f0f0f0;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    max-height: 300px;
}

/* 左右对比布局 */
.result-comparison {
    display: flex;
    gap: 24px;
    margin-top: 15px;
    width: 100%;
    box-sizing: border-box;
    /* 防止 flex 子元素被表格 min-content 撑破 50% 边界（修复火电多时段申报结果超中间线） */
    min-width: 0;
}

.result-left,
.result-right {
    flex: 1 1 0;
    min-width: 0;
    /* 从 calc(50% - 10px) 收紧到 calc(50% - 18px)，左右各留 18px 给 .result-comparison 的 gap，
       加上 gap 24px 视觉间距约 24+12=36px，避免左右容器越过中间分隔线 */
    max-width: calc(50% - 18px);
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    box-sizing: border-box;
    /* 兜底裁剪：内嵌表格若 min-content > max-width，溢出部分裁掉而非撑破容器 */
    overflow: hidden;
}

.result-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #667eea;
}

.result-left .result-title {
    color: #27ae60;
    border-bottom-color: #27ae60;
}

.result-right .result-title {
    color: #e74c3c;
    border-bottom-color: #e74c3c;
}

/* 确保表格宽度自适应 */
.result-left table,
.result-right table {
    width: 100%;
    table-layout: fixed;
    word-wrap: break-word;
}

.result-left th,
.result-left td,
.result-right th,
.result-right td {
    word-break: break-word;
    overflow-wrap: break-word;
}

/* 节点价格、机组中标量、售电公司区域 */
.result-left .price-section,
.result-left .unit-section,
.result-left .retail-section,
.result-right .price-section,
.result-right .unit-section,
.result-right .retail-section {
    margin-bottom: 20px;
}

.result-left h4,
.result-right h4 {
    font-size: 14px;
    font-weight: 600;
    color: #555;
    margin-bottom: 10px;
}

/* 响应式布局 */
@media (max-width: 768px) {
    .result-comparison {
        flex-direction: column;
    }
    
    .result-left,
    .result-right {
        width: 100%;
    }
}

.price-scroll-container-vertical::-webkit-scrollbar,
.unit-scroll-container-vertical::-webkit-scrollbar,
.retail-scroll-container-vertical::-webkit-scrollbar {
    width: 8px;
}

/* ==================== 售电多时段样式 ==================== */

/* 售电多时段标签页 */
#retail-practice-multi .content-tabs,
#retail-practice-single .content-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 0;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

#retail-practice-multi .content-tab,
#retail-practice-single .content-tab {
    padding: 12px 20px;
    background: #f5f7fa;
    border: none;
    border-radius: 8px 8px 0 0;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #555;
    transition: all 0.3s;
    position: relative;
    top: 2px;
}

#retail-practice-multi .content-tab:hover,
#retail-practice-single .content-tab:hover {
    background: #e8ecf1;
}

#retail-practice-multi .content-tab.active,
#retail-practice-single .content-tab.active {
    background: white;
    color: #667eea;
    border: 2px solid #e0e0e0;
    border-bottom: 2px solid white;
    font-weight: 600;
}

/* 系统参数子标签 */
.sys-params-tabs-multi {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 10px;
}

.sys-param-tab-multi {
    padding: 8px 16px;
    background: #f5f7fa;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: #555;
    transition: all 0.3s;
}

.sys-param-tab-multi:hover {
    background: #e8ecf1;
}

.sys-param-tab-multi.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

/* 中长期题目信息 Tab 样式 */
.ml-topic-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
}

.ml-topic-tab {
    padding: 10px 15px;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 4px 4px 0 0;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.ml-topic-tab:hover {
    background: #e0e0e0;
}

.ml-topic-tab.active {
    background: #4CAF50;
    color: white;
    border-color: #4CAF50;
}

.ml-topic-content {
    display: none;
    width: 100%;
    box-sizing: border-box;
}

.ml-topic-content.active {
    display: block;
}

.sys-param-content-multi {
    display: none;
}

.sys-param-content-multi.active {
    display: block;
    animation: fadeIn 0.3s;
}

/* 申报工具栏 */
.declaration-toolbar {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.declaration-toolbar .btn-secondary,
.declaration-toolbar .btn-primary {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}

.declaration-toolbar .btn-secondary {
    background: white;
    color: #555;
    border: 1px solid #dcdfe6;
}

.declaration-toolbar .btn-secondary:hover {
    background: #f5f7fa;
    border-color: #667eea;
}

.declaration-toolbar .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.declaration-toolbar .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* 申报表格容器 */
.declaration-grid-container {
    overflow-x: auto;
    overflow-y: auto;
    max-height: 500px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    margin-bottom: 20px;
}

.declaration-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

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

.declaration-table th {
    background: #f5f7fa;
    font-weight: 600;
    color: #333;
    position: sticky;
    top: 0;
    z-index: 10;
}

.declaration-table tbody tr:hover {
    background: #f8f9fa;
}

.coefficient-input {
    width: 80px;
    padding: 6px 10px;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    font-size: 14px;
    text-align: center;
}

.coefficient-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

/* 申报汇总 */
.declaration-summary {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.declaration-summary h4 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.summary-card {
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.summary-label {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
}

.summary-value {
    font-size: 20px;
    font-weight: 700;
    color: #667eea;
}

/* 滚动容器通用样式 */
.price-scroll-container,
.unit-scroll-container,
.retail-scroll-container,
.clearing-scroll-container {
    overflow-x: auto;
    overflow-y: auto;
    max-height: 500px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #667eea #f0f0f0;
}

.price-scroll-container::-webkit-scrollbar,
.unit-scroll-container::-webkit-scrollbar,
.retail-scroll-container::-webkit-scrollbar,
.clearing-scroll-container::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.price-scroll-container::-webkit-scrollbar-thumb,
.unit-scroll-container::-webkit-scrollbar-thumb,
.retail-scroll-container::-webkit-scrollbar-thumb,
.clearing-scroll-container::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 4px;
}

.price-scroll-container::-webkit-scrollbar-track,
.unit-scroll-container::-webkit-scrollbar-track,
.retail-scroll-container::-webkit-scrollbar-track,
.clearing-scroll-container::-webkit-scrollbar-track {
    background: #f0f0f0;
}

/* 价格表格 */
.price-table,
.unit-table,
.clearing-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

.retail-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 0;
    overflow: hidden;
}

.price-table th,
.price-table td,
.unit-table th,
.unit-table td,
.retail-table th,
.retail-table td,
.clearing-table th,
.clearing-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.price-table th,
.unit-table th,
.retail-table th,
.clearing-table th {
    background: #f5f7fa;
    font-weight: 600;
    color: #333;
    position: sticky;
    top: 0;
    z-index: 10;
}

.price-table tbody tr:hover,
.unit-table tbody tr:hover,
.retail-table tbody tr:hover,
.clearing-table tbody tr:hover {
    background: #f8f9fa;
}

/* 售电公司 Tab */
#retail-declaration-multi .retail-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

#retail-declaration-multi .retail-tab {
    padding: 10px 20px;
    background: #f5f7fa;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #555;
    transition: all 0.3s;
}

#retail-declaration-multi .retail-tab:hover {
    background: #e8ecf1;
}

#retail-declaration-multi .retail-tab.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

/* 损益正负样式 */
.profit-positive {
    color: #27ae60;
    font-weight: 600;
}

.profit-negative {
    color: #e74c3c;
    font-weight: 600;
}

/* 出清信息 */
.clearing-info {
    background: #e8f4fd;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    border-left: 4px solid #3498db;
}

.clearing-info p {
    margin: 0;
    color: #2980b9;
    font-size: 14px;
}

/* 售电单时段样式 */
#retail-practice-single .sys-param-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 10px;
}

#retail-practice-single .sys-param-tab {
    padding: 8px 16px;
    background: #f5f7fa;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: #555;
    transition: all 0.3s;
}

#retail-practice-single .sys-param-tab:hover {
    background: #e8ecf1;
}

#retail-practice-single .sys-param-tab.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

#retail-practice-single .sys-param-content {
    display: none;
}

#retail-practice-single .sys-param-content.active {
    display: block;
    animation: fadeIn 0.3s;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .declaration-toolbar {
        flex-direction: column;
    }
    
    .summary-cards {
        grid-template-columns: 1fr;
    }
    
    .unit-tabs,
    #retail-declaration-multi .retail-tabs {
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }
}

.price-scroll-container-vertical::-webkit-scrollbar-track,
.unit-scroll-container-vertical::-webkit-scrollbar-track,
.retail-scroll-container-vertical::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 4px;
}

.price-scroll-container-vertical::-webkit-scrollbar-thumb,
.unit-scroll-container-vertical::-webkit-scrollbar-thumb,
.retail-scroll-container-vertical::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 4px;
}

.price-scroll-container-vertical::-webkit-scrollbar-thumb:hover,
.unit-scroll-container-vertical::-webkit-scrollbar-thumb:hover,
.retail-scroll-container-vertical::-webkit-scrollbar-thumb:hover {
    background: #5a6fd6;
}

/* 多时段结果表格（纵向布局） */
.price-table-vertical,
.unit-table-vertical,
.retail-table-vertical {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.price-table-vertical th,
.price-table-vertical td,
.unit-table-vertical th,
.unit-table-vertical td,
.retail-table-vertical th,
.retail-table-vertical td {
    padding: 8px 12px;
    text-align: center;
    border: 1px solid #e0e0e0;
    font-size: 13px;
}

.price-table-vertical th,
.unit-table-vertical th,
.retail-table-vertical th {
    background: #f5f5f5;
    font-weight: 600;
    color: #333;
    position: sticky;
    top: 0;
    z-index: 10;
}

.price-table-vertical tr:hover,
.unit-table-vertical tr:hover,
.retail-table-vertical tr:hover {
    background: #f8f9fa;
}

/* 多时段结果区域横向滑动容器 */
.price-scroll-container,
.unit-scroll-container,
.retail-scroll-container {
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #667eea #f0f0f0;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    max-height: 300px;
}

.price-scroll-container::-webkit-scrollbar,
.unit-scroll-container::-webkit-scrollbar,
.retail-scroll-container::-webkit-scrollbar {
    height: 8px;
    width: 8px;
}

.price-scroll-container::-webkit-scrollbar-track,
.unit-scroll-container::-webkit-scrollbar-track,
.retail-scroll-container::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 4px;
}

.price-scroll-container::-webkit-scrollbar-thumb,
.unit-scroll-container::-webkit-scrollbar-thumb,
.retail-scroll-container::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 4px;
}

.price-scroll-container::-webkit-scrollbar-thumb:hover,
.unit-scroll-container::-webkit-scrollbar-thumb:hover,
.retail-scroll-container::-webkit-scrollbar-thumb:hover {
    background: #5a6fd6;
}

/* 多时段结果表格 */
.price-table-horizontal,
.unit-table-horizontal,
.retail-table-horizontal {
    width: auto;
    min-width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.price-table-horizontal th,
.price-table-horizontal td,
.unit-table-horizontal th,
.unit-table-horizontal td,
.retail-table-horizontal th,
.retail-table-horizontal td {
    padding: 8px 4px;
    text-align: center;
    border: 1px solid #e0e0e0;
    min-width: 60px;
    font-size: 12px;
}

.price-table-horizontal th,
.unit-table-horizontal th,
.retail-table-horizontal th {
    background: #f5f5f5;
    font-weight: 600;
    color: #333;
    position: sticky;
    top: 0;
    z-index: 10;
}

.price-table-horizontal th.sticky-col,
.price-table-horizontal td.sticky-col,
.unit-table-horizontal th.sticky-col,
.unit-table-horizontal td.sticky-col,
.retail-table-horizontal th.sticky-col,
.retail-table-horizontal td.sticky-col {
    position: sticky;
    left: 0;
    background: #f8f9fa;
    z-index: 20;
    min-width: 80px;
    font-weight: 600;
}

/* 机组标签按钮样式 */
.unit-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    padding: 8px;
    background: #f5f7fa;
    border-radius: 8px;
}

.unit-tab {
    flex: 1;
    padding: 10px 16px;
    border: 2px solid #e0e6ed;
    background: white;
    color: #666;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

.unit-tab:hover {
    background: #f0f4f8;
    border-color: #b8c5d6;
}

.unit-tab.active {
    background: #e74c3c !important;
    color: white !important;
    border-color: #c0392b !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4) !important;
    transform: translateY(-2px);
}

.unit-tab.active:hover {
    background: #c0392b !important;
    color: white !important;
}

/* 售电公司标签按钮样式 */
.retail-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    padding: 8px;
    background: #f5f7fa;
    border-radius: 8px;
}

.retail-tab {
    flex: 1;
    padding: 10px 16px;
    border: 2px solid #e0e6ed;
    background: white;
    color: #666;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

.retail-tab:hover {
    background: #f0f4f8;
    border-color: #b8c5d6;
}

.retail-tab.active {
    background: #e74c3c !important;
    color: white !important;
    border-color: #c0392b !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4) !important;
    transform: translateY(-2px);
}

.retail-tab.active:hover {
    background: #c0392b !important;
    color: white !important;
}

/* ==================== 出清结果选择器和摘要卡片样式 ==================== */

/* 出清结果选择器 */
.clearing-result-selector {
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
    border: 2px solid #667eea;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.clearing-result-selector label {
    font-weight: 600;
    color: #333;
    font-size: 16px;
}

.clearing-result-selector select {
    padding: 10px 15px;
    border: 2px solid #667eea;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    color: #333;
    cursor: pointer;
    min-width: 180px;
    transition: all 0.3s ease;
}

.clearing-result-selector select:hover {
    border-color: #5a6fd6;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

.clearing-result-selector select:focus {
    outline: none;
    border-color: #764ba2;
    box-shadow: 0 0 0 3px rgba(118, 75, 162, 0.1);
}

/* 出清结果摘要卡片 */
.clearing-result-summary {
    margin-bottom: 25px;
}

.result-summary-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 20px;
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.result-summary-card h4 {
    margin: 0 0 15px 0;
    font-size: 20px;
    font-weight: 600;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 10px;
}

.result-summary-card p {
    margin: 8px 0;
    font-size: 14px;
    line-height: 1.6;
}

.result-summary-card strong {
    color: #ffd700;
    font-weight: 600;
}

/* 系统参数页面表格标题 */
.sys-param-content .table-container h4 {
    color: #667eea;
    font-size: 18px;
    margin: 20px 0 15px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #e0e0e0;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .clearing-result-selector {
        flex-direction: column;
        align-items: stretch;
    }
    
    .clearing-result-selector select {
        width: 100%;
    }
    
    .result-summary-card h4 {
        font-size: 18px;
    }
}

/* 加载弹窗样式 */
.loading-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.loading-modal.hidden {
    display: none;
}

.loading-content {
    background: white;
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: loadingFadeIn 0.3s ease-out;
}

@keyframes loadingFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: loadingSpin 1s linear infinite;
    margin: 0 auto 20px;
}

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

.loading-text {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
}

.loading-subtext {
    font-size: 14px;
    color: #666;
    margin-bottom: 24px;
}

.loading-progress {
    width: 100%;
    height: 8px;
    background: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 24px;
}

.loading-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 4px;
    animation: loadingProgress 2s ease-in-out infinite;
}

@keyframes loadingProgress {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

.loading-tips {
    background: #f8f9ff;
    border-radius: 8px;
    padding: 16px;
    text-align: left;
}

.loading-tips p {
    font-size: 14px;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 8px;
}

.loading-tips ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.loading-tips li {
    font-size: 13px;
    color: #555;
    padding: 4px 0;
    padding-left: 20px;
    position: relative;
}

.loading-tips li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
}

/* 针对系统参数表格的通用样式调整 */
.system-param-table th,
.system-param-table td {
    text-align: center; /* 居中对齐 */
    padding: 8px 12px;  /* 增加内边距 */
    border: 1px solid #e0e0e0; /* ⚙ S5-6：并入早期代 border（原 @620 规则已删） */
}
#success-state.hidden {
    display: none;
}

#loading-state.hidden {
    display: none;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: white;
    margin: 0 auto 20px;
    animation: successBounce 0.5s ease-out;
}

@keyframes successBounce {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

.success-text {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 12px;
}

.success-subtext {
    font-size: 14px;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.8;
}

.success-subtext p {
    margin: 4px 0;
}

.btn-confirm {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 12px 48px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.btn-confirm:active {
    transform: translateY(0);
}

/* 覆盖中长期模块 Tab 切换问题：当带 active 类时强制显示 */
#medium-long-practice .tab-pane {
    display: none;
}

#medium-long-practice .tab-pane.active {
    display: block !important;
}

/* ═══════════ 中长期日滚动 · 申报与撮合 · 三选卡片（V2.2 视觉优化）══════════ */
/* 统一未激活态（统一灰，inline 与 CSS 保持一致）：颜色被 inline 写入，激活态完全由 CSS 用 !important 接管。
   ⚙ S5-6 去重：基础未激活态声明（border/background/color/box-shadow）已并入下方「微交互过渡」同名规则，语义等价（浏览器实测 0 漂移）。 */
.ca-role-card *, .ca-diff-card * {
    color: #888 !important;
    font-weight: 400 !important;
}
/* 激活态：角色 · 售电（蓝）*/
.ca-role-card.buy.active {
    border-color: #1565c0 !important;
    background: #e3f2fd !important;
    box-shadow: 0 4px 14px rgba(21, 101, 192, 0.22) !important;
}
.ca-role-card.buy.active * { color: #0d47a1 !important; font-weight: 700 !important; }
/* 激活态：角色 · 发电（红）*/
.ca-role-card.sell.active {
    border-color: #c62828 !important;
    background: #fdecea !important;
    box-shadow: 0 4px 14px rgba(198, 40, 40, 0.22) !important;
}
.ca-role-card.sell.active * { color: #b71c1c !important; font-weight: 700 !important; }
/* 激活态：难度（橙）*/
.ca-diff-card.active {
    border-color: #e6a700 !important;
    background: #fff8e1 !important;
    box-shadow: 0 4px 14px rgba(230, 167, 0, 0.22) !important;
}
.ca-diff-card.active * { color: #b26a00 !important; font-weight: 700 !important; }
/* 激活态：天气（绿，由父容器 .card-weather 限定，避免覆盖难度）*/
.card-weather .ca-diff-card.active {
    border-color: #558b2f !important;
    background: #f1f8e9 !important;
    box-shadow: 0 4px 14px rgba(85, 139, 47, 0.22) !important;
}
.card-weather .ca-diff-card.active * { color: #33691e !important; font-weight: 700 !important; }
/* hover 提升可点击感（未激活时） */
.ca-role-card:not(.active):hover, .ca-diff-card:not(.active):hover {
    border-color: #cfd8dc !important;
    background: #fff !important;
    transform: translateY(-1px);
}
/* 微交互过渡（⚙ S5-6：并入「统一未激活态」基础声明 border/background/color/box-shadow，消除同选择器两代重复） */
.ca-role-card, .ca-diff-card {
    border: 2px solid #eef2f7 !important;
    background: #f8fafc !important;
    color: inherit !important;
    box-shadow: none !important;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s, transform 0.15s;
}

/* ═══════════ 题目信息页 · 24 时段明细表视角切换（售电/发电）═══════════ */
.hour-view-btn {
    border: 1.5px solid #b8c6d8;
    background: #fff;
    color: #555;
    border-radius: 8px;
    padding: 5px 10px;
    font-size: 12px;
    text-align: center;
    cursor: pointer;
    flex: 1;
    min-width: 96px;
    transition: all 0.2s;
}
.hour-view-btn small { font-size: 10px; color: #999; }
.hour-view-btn:hover { border-color: #90a4ae; transform: translateY(-1px); }
/* 激活态：售电（蓝） */
.hour-view-btn.buy.active {
    border-color: #1565c0 !important;
    background: #1565c0 !important;
    box-shadow: 0 3px 10px rgba(21, 101, 192, 0.25) !important;
}
.hour-view-btn.buy.active, .hour-view-btn.buy.active small { color: #fff !important; font-weight: 600; }
/* 激活态：发电（红） */
.hour-view-btn.sell.active {
    border-color: #c62828 !important;
    background: #c62828 !important;
    box-shadow: 0 3px 10px rgba(198, 40, 40, 0.25) !important;
}
.hour-view-btn.sell.active, .hour-view-btn.sell.active small { color: #fff !important; font-weight: 600; }


/* 申报表输入框统一样式 */
#caBuyTbl input, #caSellTbl input {
    padding: 4px 6px;
    border: 1px solid #c8d3e0;
    border-radius: 5px;
    font-size: 12px;
    box-sizing: border-box;
}
#caBuyTbl input:focus, #caSellTbl input:focus {
    outline: none;
    border-color: #1565c0;
    box-shadow: 0 0 0 2px rgba(21, 101, 192, 0.15);
}
#caBuyTbl td, #caSellTbl td {
    padding: 3px 4px;
}
#caBuyTbl tbody tr:nth-child(even) td, #caSellTbl tbody tr:nth-child(even) td {
    background: #f7fafd;
}
#caBuyTbl input[disabled], #caSellTbl input[disabled] {
    background: #f0f0f0;
    color: #666;
}

/* 对手表斑马纹 */
#caOppSellTbl td, #caOppBuyTbl td {
    padding: 3px 6px;
    border: 1px solid #e3e9f0;
    font-size: 11px;
}
#caOppSellTbl tbody tr:nth-child(even) td { background: #fdf4f4; }
#caOppBuyTbl tbody tr:nth-child(even) td { background: #f3f8fe; }

/* ═══════════ 集中竞价 · 成交与复盘（ca-practice）═══════════ */
/* 复盘区块卡片 */
.ca-res-block {
    background: #fff;
    border: 1px solid #d4dce6;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 12px;
}
.ca-res-block h4 {
    margin: 0 0 8px 0;
    color: #1b3a5c;
    font-size: 14px;
    border-left: 4px solid #1565c0;
    padding-left: 8px;
}
/* 出清概览大数字卡 */
.ca-res-card {
    display: inline-block;
    background: #e3f2fd;
    border: 1px solid #90caf9;
    border-radius: 8px;
    padding: 10px 18px;
    margin: 0 10px 8px 0;
    text-align: center;
    min-width: 120px;
}
.ca-res-card .v { font-size: 22px; font-weight: 700; color: #1565c0; }
.ca-res-card .l { font-size: 11px; color: #555; margin-top: 2px; }
/* 我的成交状态徽章 */
.ca-badge { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 11px; font-weight: 600; }
.ca-badge.full { background: #e8f5e9; color: #2e7d32; }
.ca-badge.part { background: #fff8e1; color: #e65100; }
.ca-badge.none { background: #fdecea; color: #c62828; }
/* 能力评分星级 */
.ca-score { font-size: 20px; color: #e6a700; letter-spacing: 2px; }
/* 复盘表格紧凑 */
#caRes table { width: 100%; border-collapse: collapse; font-size: 12px; }
#caRes th { padding: 5px 8px; border: 1px solid #d4dce6; background: #eef2f7; text-align: left; }
#caRes td { padding: 5px 8px; border: 1px solid #d4dce6; }
#caRes tr:nth-child(even) td { background: #fafbfc; }

/* 日滚动复盘（#raRes）：与集中竞价同口径，并单独放大「我的成交明细」列距 */
#raRes table { width: 100%; border-collapse: collapse; font-size: 12px; }
#raRes th { padding: 6px 10px; border: 1px solid #d4dce6; background: #eef2f7; text-align: left; }
#raRes td { padding: 6px 10px; border: 1px solid #d4dce6; }
#raRes tr:nth-child(even) td { background: #fafbfc; }
#raRes table.ra-trade-detail { table-layout: fixed; }
#raRes table.ra-trade-detail th { text-align: center; }
#raRes table.ra-trade-detail td:nth-child(n+2) { text-align: right; }
#raRes table.ra-trade-detail td:first-child { white-space: nowrap; }
#raRes table.ra-trade-detail th small { font-weight: 400; color: #78909c; font-size: 10px; }
#raRes table.ra-trade-detail th:nth-child(5),
#raRes table.ra-trade-detail td:nth-child(5) { border-left: 2px solid #b0bec5; }
#raRes table.ra-trade-detail tr:last-child th { text-align: right; }

/* ══════════════════════════════════════════════════════════════
   PvP 人人对战（M1 · 2026-08-25 · Impeccable 设计语言）
   风格：专业交易终端感 + 教学层次；红=发电/橙=火电/蓝=售电
   ══════════════════════════════════════════════════════════════ */

/* 顶栏徽章 */
.pvp-mode-badge {
    margin-left: auto;
    font-size: 12px;
    color: #fff;
    background: linear-gradient(135deg, #c0392b, #e67e22);
    padding: 5px 14px;
    border-radius: 999px;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(192, 57, 43, 0.3);
}

/* 大厅布局 */
.pvp-lobby-grid, .pvp-room-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-top: 16px;
    align-items: start;
}
@media (max-width: 900px) { .pvp-lobby-grid, .pvp-room-grid { grid-template-columns: 1fr; } }
.pvp-col-left, .pvp-col-right { display: flex; flex-direction: column; gap: 18px; }

/* 操作行：左（开始按钮 + 本轮角色）· 右（成员下拉） */
.pvp-action-row {
    display: flex;
    gap: 18px;
    margin-top: 12px;
    margin-bottom: 14px;
    align-items: flex-start;
    flex-wrap: wrap;
}
.pvp-action-left {
    flex: 1;
    min-width: 320px;
    background: #fff;
    border: 1px solid #e2e6ea;
    border-radius: 12px;
    padding: 14px 18px;
    box-shadow: 0 1px 3px rgba(20, 30, 40, 0.06);
}
.pvp-action-left .pvp-my-role { font-size: 15px; font-weight: 700; color: #1f2a37; margin-bottom: 10px; }
.pvp-action-buttons { display: flex; gap: 10px; flex-wrap: wrap; }
.pvp-action-buttons button { flex: 1; min-width: 200px; padding: 11px 18px; font-size: 14px; font-weight: 700; }

.pvp-action-right {
    width: 296px;
    background: #fff;
    border: 1px solid #e2e6ea;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(20, 30, 40, 0.06);
    overflow: hidden;
}
.pvp-member-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
    background: #f8f9fa;
    border-bottom: 1px solid #e2e6ea;
    font-size: 14px;
    font-weight: 600;
    color: #1f2a37;
    user-select: none;
}
.pvp-member-head:hover { background: #eef2f7; }
.pvp-member-toggle { color: #6b7280; font-size: 12px; font-weight: 500; }
.pvp-action-right .pvp-member-table { padding: 0; }
.pvp-action-right .pvp-member-table .data-table { font-size: 12px; }
.pvp-action-right .pvp-member-table td,
.pvp-action-right .pvp-member-table th { padding: 6px 10px; }

/* 成员下拉：折叠仅显前 3 行（max-height + 渐隐底部），展开全显 + 内滚 */
.pvp-member-collapsed {
    max-height: 138px;
    overflow: hidden;
    position: relative;
}
.pvp-member-collapsed::after {
    content: '';
    position: absolute; left: 0; right: 0; bottom: 0;
    height: 30px;
    background: linear-gradient(to bottom, rgba(255,255,255,0), #fff 85%);
    pointer-events: none;
}
.pvp-member-expanded { max-height: 380px; overflow-y: auto; }

/* 主区：题目信息 + 申报与撮合 平铺（不切 Tab，整个屏铺开） */
.pvp-content-flat { margin-top: 4px; }
.pvp-result-body { min-height: 80px; }

@media (max-width: 900px) {
    .pvp-action-row { flex-direction: column; }
    .pvp-action-right { width: 100%; }
}

/* 卡片 */
.pvp-card {
    background: #fff;
    border: 1px solid #e2e6ea;
    border-radius: 12px;
    padding: 18px 20px;
    box-shadow: 0 1px 3px rgba(20, 30, 40, 0.06);
}
.pvp-card h2 {
    font-size: 15px;
    margin: 0 0 14px;
    color: #1f2a37;
    border-bottom: 2px solid #f0f2f5;
    padding-bottom: 10px;
    letter-spacing: 0.3px;
}
.pvp-card-create { border-top: 4px solid #e67e22; }
.pvp-card-rule { border-top: 4px solid #2c5282; }

/* 表单 */
.pvp-form-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}
.pvp-form-row label {
    width: 84px;
    flex-shrink: 0;
    font-size: 13px;
    color: #4a5568;
    font-weight: 600;
}
.pvp-form-row input[type="text"],
.pvp-form-row input[type="number"],
.pvp-form-row select {
    flex: 1;
    padding: 8px 10px;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.15s ease;
}
.pvp-form-row input:focus, .pvp-form-row select:focus {
    border-color: #2c5282;
    outline: none;
    box-shadow: 0 0 0 3px rgba(44, 82, 130, 0.12);
}
/* 2026-09-05 分段量价两列：ca 火电 单段(qty+price)·售电 3 段·da 火电 10 段 量价并排 */
.pvp-form-seg {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 10px;
    padding: 10px 12px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}
/* 2026-09-07 起始/终止分段改造：da 火电每段三字段（起始/终止/价格）一行三列 */
.pvp-form-seg-3col {
    grid-template-columns: 1fr 1fr 1fr;
}
.pvp-form-seg-cell {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}
.pvp-form-seg-cell label {
    font-size: 12px;
    color: #4a5568;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pvp-form-seg-cell input {
    width: 100%;
    min-width: 0;
    padding: 8px 10px;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.15s ease;
    box-sizing: border-box;
}
.pvp-form-seg-cell input:focus {
    border-color: #2c5282;
    outline: none;
    box-shadow: 0 0 0 3px rgba(44, 82, 130, 0.12);
}
.pvp-btn-block {
    width: 100%;
    margin-top: 6px;
    padding: 11px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
}
.pvp-start-btn { background: linear-gradient(135deg, #2c5282, #1a365d) !important; }
.pvp-form-hint {
    font-size: 12px;
    color: #6b7280;
    background: #f7f9fb;
    border-left: 3px solid #cbd5e1;
    padding: 7px 10px;
    border-radius: 0 6px 6px 0;
    margin-top: 4px;
}

/* 规则列表 */
.pvp-rule-list { list-style: none; padding: 0; margin: 0; }
.pvp-rule-list li {
    font-size: 13px;
    color: #374151;
    padding: 7px 0;
    border-bottom: 1px dashed #eef0f3;
    line-height: 1.6;
}
.pvp-rule-list li:last-child { border-bottom: none; }

/* 角色 pill */
.pill {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    margin: 0 2px;
}
.pill-red   { background: #c0392b; }
.pill-orange{ background: #e67e22; }
.pill-blue  { background: #2c5282; }
.pill-gray  { background: #9ca3af; }
/* 2026-11-06 AI 强弱标签：挣钱能力分层（强/中/弱），紫底区分于角色三色（蓝/橙/红） */
.pill-skill { background: #6b46c1; }
.pvp-quota-preview { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pvp-quota-total { font-size: 12px; color: #6b7280; margin-left: 4px; }

/* 房间顶栏 */
.pvp-room-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #1f2937, #374151);
    color: #fff;
    padding: 14px 20px;
    border-radius: 12px;
    margin-bottom: 14px;
}
.pvp-topbar-actions { display: flex; align-items: center; gap: 14px; }
.pvp-btn-destroy {
    background: rgba(220, 38, 38, 0.16);
    color: #fca5a5;
    border: 1px solid rgba(220, 38, 38, 0.5);
    padding: 7px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.pvp-btn-destroy:hover { background: rgba(220, 38, 38, 0.32); color: #fff; }
.pvp-round-label { font-size: 14px; opacity: 0.92; }
.pvp-countdown {
    font-family: "Consolas", monospace;
    font-size: 30px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: #4ade80;
    letter-spacing: 2px;
}
.pvp-countdown-warn { color: #f87171 !important; }

/* 阶段进度条 */
.pvp-steps {
    display: flex;
    gap: 6px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}
.pvp-step {
    flex: 1;
    min-width: 96px;
    text-align: center;
    font-size: 12px;
    color: #9ca3af;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 8px 4px;
    transition: all 0.2s ease;
}
.pvp-step .step-num { display: block; font-size: 16px; margin-bottom: 2px; }
.pvp-step.active {
    background: #2c5282;
    color: #fff;
    border-color: #2c5282;
    box-shadow: 0 3px 10px rgba(44, 82, 130, 0.3);
    transform: translateY(-1px);
}
.pvp-step.done {
    background: #e8f5e9;
    color: #2e7d32;
    border-color: #a5d6a7;
}

/* 成员表 */
.pvp-member-table .data-table { width: 100%; font-size: 13px; }
.pvp-member-table td, .pvp-member-table th { padding: 7px 8px; text-align: left; }

/* 我的角色 / 操作 */
.pvp-my-role {
    font-size: 15px;
    font-weight: 700;
    color: #1f2a37;
    margin-bottom: 12px;
    padding: 10px 12px;
    background: #f0f4f8;
    border-radius: 8px;
    border-left: 4px solid #2c5282;
}
.pvp-bid-role-tip { font-size: 13px; color: #4a5568; margin-bottom: 10px; font-weight: 600; }

/* 结果区 */
.pvp-result-big {
    font-size: 20px;
    color: #1f2a37;
    padding: 10px 0;
    border-bottom: 1px dashed #e5e7eb;
    margin-bottom: 8px;
}
.pvp-result-big b { color: #c0392b; font-size: 26px; }
.pvp-result-line { font-size: 13px; color: #4a5568; margin-bottom: 8px; }

/* 状态 */
.pvp-status {
    font-size: 13px;
    color: #4a5568;
    background: #f7f9fb;
    border-radius: 8px;
    padding: 10px 12px;
    border: 1px solid #eef0f3;
    min-height: 18px;
}

/* 2026-09-11：提交/挂单反馈就近显示（提交按钮正下方；内容与配色由 PvPController._status 按语义设置） */
.pvp-bid-feedback {
    margin-top: 10px;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.6;
    white-space: pre-wrap;
}

/* "我创建/加入的房间"高亮横幅（房间码显著可见 + 一键复制） */
.pvp-card-myroom {
    border-top: 4px solid #10b981;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
}
.pvp-myroom-label {
    font-size: 13px;
    color: #047857;
    font-weight: 600;
    margin-bottom: 10px;
}
.pvp-myroom-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.pvp-myroom-code {
    font-family: "Consolas", "Courier New", monospace;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 4px;
    color: #065f46;
    background: #fff;
    border: 2px solid #10b981;
    border-radius: 10px;
    padding: 8px 18px;
    min-width: 140px;
    text-align: center;
}
.pvp-btn-copy {
    padding: 9px 14px;
    font-size: 13px;
    font-weight: 600;
    background: #fff;
    color: #047857;
    border: 1.5px solid #10b981;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
}
.pvp-btn-copy:hover { background: #10b981; color: #fff; }
.pvp-btn-enter-room {
    background: linear-gradient(135deg, #10b981, #047857) !important;
    border: none !important;
    color: #fff !important;
    padding: 9px 18px !important;
}
.pvp-myroom-tip {
    font-size: 12px;
    color: #4b5563;
    margin-top: 10px;
    background: #fff;
    border-left: 3px solid #10b981;
    padding: 6px 10px;
    border-radius: 0 6px 6px 0;
}

/* PvP 房间大厅列表 */
.pvp-card-roomlist .pvp-roomlist-hint { font-size: 12px; color: #9ca3af; font-weight: 400; margin-left: 6px; }
.pvp-room-list { display: flex; flex-direction: column; gap: 10px; }
.pvp-room-row { display: flex; align-items: center; gap: 14px; padding: 12px 14px; background: #fff; border: 1.5px solid #e2e6ea; border-radius: 10px; transition: all 0.15s ease; }
.pvp-room-row:hover { border-color: #2c5282; box-shadow: 0 2px 8px rgba(44, 82, 130, 0.12); transform: translateY(-1px); }
.pvp-room-info { display: flex; align-items: center; gap: 14px; flex: 1; min-width: 0; }
.pvp-room-code { font-family: "Consolas", monospace; font-size: 20px; font-weight: 700; letter-spacing: 2px; color: #1f2a37; margin-bottom: 3px; background: rgba(255,255,255,0.12); padding: 4px 14px; border-radius: 8px; }
.pvp-room-meta { font-size: 12px; color: #6b7280; margin-bottom: 4px; }
.pvp-room-players { font-size: 12px; }
.pvp-room-players .pill { font-size: 11px; padding: 1px 7px; }
.pvp-btn-join-room { flex-shrink: 0; padding: 8px 18px; font-size: 13px; font-weight: 600; color: #fff; background: linear-gradient(135deg, #2c5282, #1a365d); border: none; border-radius: 8px; cursor: pointer; transition: all 0.15s ease; }
.pvp-btn-join-room:hover { transform: translateY(-1px); box-shadow: 0 3px 8px rgba(44, 82, 130, 0.3); }
.pvp-room-empty { text-align: center; color: #9ca3af; font-size: 13px; padding: 24px 0; }

.pvp-checkbox { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #4a5568; font-weight: 400; }
.pvp-checkbox input { width: auto; margin: 0; accent-color: #2c5282; }

/* PvP 本场题目信息卡（先看题·再申报） */
.pvp-topic-card { border-top: 4px solid #059669; }
.pvp-topic-badge {
    font-size: 11px;
    color: #fff;
    background: #059669;
    padding: 2px 10px;
    border-radius: 999px;
    font-weight: 400;
    margin-left: 8px;
    letter-spacing: 0.3px;
}
.pvp-topic-body { display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: #374151; }
/* 题目信息页内系统二级参数 Tab（对齐现货系统参数风格，绿线 #27ae60） */
.pvp-sub-tabs {
    display: flex;
    gap: 2px;
    margin-top: 12px;
    margin-bottom: 14px;
    border-bottom: 2px solid #e0e0e0;
    overflow-x: auto;
}
.pvp-sub-tab {
    padding: 8px 16px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 13px;
    color: #666;
    border-bottom: 3px solid transparent;
    transition: all 0.25s ease;
    white-space: nowrap;
}
.pvp-sub-tab:hover:not(.active) { color: #2c5282; }
.pvp-sub-tab.active {
    color: #27ae60;
    border-bottom-color: #27ae60;
    font-weight: 700;
}
.pvp-sub-content {
    display: none;
    animation: pvpTabFade 0.25s ease-out;
    min-height: 260px; /* 兜底：ECharts canvas 0 高时 div 也不会塌成 0 高度 */
}
.pvp-sub-content.active { display: block; }
@keyframes pvpTabFade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

/* ═══ 结果区二级标签（2026-10-01 第84批 · 用户拍板「结果页多标签分模块」）═══
   病灶：结果区单页长滚动 11 个模块；修法：结果区降级为「容器 + 一条二级标签条 + 四面板」。
   视觉沿用 pvp-sub-tab 语言（下划线式，蓝线 #2c5282 —— 结果区属于成绩域，与题目信息页绿线区分），
   但**加浅底色胶囊**以示「这是一等公民的页内分区」，与二级参数 Tab（绿线、无底）拉开层级。 */
.pvp-res-tabs {
    display: flex;
    gap: 6px;
    margin: 0 0 12px;
    flex-wrap: wrap;
}
.pvp-res-tab {
    padding: 7px 18px;
    border: 1px solid #d7dce3;
    background: #f4f6f9;
    color: #4b5563;
    border-radius: 999px;
    cursor: pointer;
    font-size: 13px;
    white-space: nowrap;
    transition: all 0.2s ease;
}
.pvp-res-tab:hover:not(.active) { border-color: #2c5282; color: #2c5282; }
.pvp-res-tab.active {
    background: #2c5282;
    border-color: #2c5282;
    color: #fff;
    font-weight: 700;
}
.pvp-res-panel { animation: pvpTabFade 0.2s ease-out; }

/* ═══ 本轮成绩面板内三级子标签（2026-10-25 用户拍板「三栏挤一块难受」）═══
   层级：一级「本轮成绩」胶囊(蓝底) ＞ 三级「成绩总览/三角色分榜/考核明细」小号下划线式。
   视觉：更小、更轻、下划线选中（蓝线 #2c5282），与一级胶囊拉开层级，明确「这是面板内部的分区」。 */
.pvp-score-tabs {
    display: flex;
    gap: 4px;
    margin: 0 0 12px;
    border-bottom: 1px solid #e5e7eb;
    flex-wrap: wrap;
}
.pvp-score-tab {
    padding: 6px 14px;
    border: none;
    background: transparent;
    color: #6b7280;
    cursor: pointer;
    font-size: 12.5px;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: all 0.2s ease;
}
.pvp-score-tab:hover:not(.active) { color: #2c5282; }
.pvp-score-tab.active {
    color: #2c5282;
    border-bottom-color: #2c5282;
    font-weight: 700;
}
.pvp-score-panel { animation: pvpTabFade 0.2s ease-out; }
.pvp-topic-guide {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 12px;
    color: #047857;
    line-height: 1.6;
}
.pvp-topic-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    line-height: 1.7;
}
.pvp-topic-label {
    flex-shrink: 0;
    width: 72px;
    font-size: 12px;
    color: #6b7280;
    font-weight: 600;
}
.pvp-topic-block {
    border: 1px solid #eef0f3;
    border-radius: 8px;
    padding: 8px 10px;
    background: #fafbfc;
}
.pvp-topic-note {
    font-size: 12px;
    color: #059669;
    background: #f0fdf9;
    border-left: 3px solid #34d399;
    padding: 5px 9px;
    border-radius: 0 6px 6px 0;
    margin-top: 5px;
    line-height: 1.6;
}

/* ═══ 题目信息页简洁卡片布局（对标兰木大"干净"风格）═══ */
.pvp-info-twocol {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 14px;
    align-items: stretch;
}
.pvp-info-card {
    background: #fff;
    border: 1px solid #e6eaee;
    border-radius: 10px;
    padding: 12px 16px;
    box-shadow: 0 1px 2px rgba(20, 30, 40, 0.04);
}
.pvp-info-card-topo {
    display: flex;
    flex-direction: column;
    padding-bottom: 8px;
}
.pvp-info-card-topo #pvp-topo5-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}
.pvp-info-title {
    font-size: 13px;
    font-weight: 700;
    color: #1f2a37;
    border-left: 3px solid #059669;
    padding-left: 8px;
    margin-bottom: 10px;
}
.pvp-info-tip {
    font-size: 11px;
    color: #6b7280;
    margin-top: 8px;
    font-style: italic;
}
/* 5 机组并列成本卡片 */
.pvp-unit-cards {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-top: 4px;
}
.pvp-unit-card {
    background: #fafbfc;
    border: 1px solid #e6eaee;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 12px;
    transition: all 0.2s;
}
.pvp-unit-card:hover {
    border-color: #059669;
    background: #fff;
}
.pvp-unit-head {
    font-size: 13px;
    font-weight: 700;
    color: #1f2a37;
    margin-bottom: 6px;
    padding-bottom: 4px;
    border-bottom: 1px solid #eef0f3;
}
.pvp-unit-sub {
    font-size: 10px;
    font-weight: 400;
    color: #6b7280;
    display: block;
    margin-top: 1px;
}
.pvp-unit-mine {
    background: #fff8e1 !important;
    border-color: #f59e0b !important;
}
.pvp-unit-mine .pvp-unit-head::before {
    content: '⭐ ';
    color: #f59e0b;
}
.pvp-unit-meta td {
    font-size: 10px !important;
    color: #6b7280;
    background: #f3f4f6;
    padding: 4px 6px !important;
    border-top: 1px solid #eef0f3;
}
.pvp-row-mine { background: #fff8e1; }
.pvp-row-mine td:first-child::before { content: '⭐ '; color: #f59e0b; }

@media (max-width: 1100px) {
    .pvp-info-twocol { grid-template-columns: 1fr; }
    .pvp-unit-cards { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 700px) {
    .pvp-unit-cards { grid-template-columns: repeat(2, 1fr); }
}
.pvp-topic-key {
    color: #e65100;
    font-size: 14px;
    background: #fff3e0;
    padding: 1px 7px;
    border-radius: 6px;
}
.pvp-topic-rule { border: 1px dashed #f59e0b; background: #fffbeb; }
.pvp-topic-rule .pvp-topic-note { color: #b45309; background: #fffbeb; border-left-color: #f59e0b; }
.pvp-topic-empty { text-align: center; color: #9ca3af; font-size: 13px; padding: 18px 0; }

/* PvP 5 节点拓扑图 + 96 点曲线 */
.pvp-topo5-wrap { margin-top: 8px; }
.pvp-topic-sec {
    font-size: 13px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 8px;
    padding: 6px 10px;
    background: #f0f4f8;
    border-left: 4px solid #2c5282;
    border-radius: 0 6px 6px 0;
}

/* ══════════════════════════════════════════════════════════════
   移动端适配补全 · 第一步（2026-11-12 用户拍板）
   目标：手机/平板"能顺畅用"——Safari 兼容 + 输入框防放大 + 触摸目标 + 平板断点
   原则：全部限定在兼容层/窄屏断点，桌面端布局零改动
   ══════════════════════════════════════════════════════════════ */

/* ① iOS Safari 动态视口高度：地址栏收起时 100vh 留白 ⇒ 有 dvh 支持的浏览器用 dvh（不支持则沿用 100vh） */
@supports (height: 100dvh) {
    body, .page { min-height: 100dvh; }
}

/* ② 安全区（刘海屏/底部横条）：普通浏览器 env() = 0，零影响 */
body {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
}

/* ③ 手机断点（≤768px）：输入框 ≥16px 防 iOS 聚焦自动放大；按钮触摸目标 ≥40px */
@media (max-width: 768px) {
    input, select, textarea { font-size: 16px !important; }
    button, .btn, .mode-btn, .role-btn, .pvp-sub-tabs button { min-height: 40px; }
    /* 第二步：24/96 点申报表——列宽与输入框加宽（16px 字体才塞得下，50px 输入框装不下三位数） */
    #multi-declaration-table th, #multi-declaration-table td,
    #retail-multi-declaration-table th, #retail-multi-declaration-table td { min-width: 72px; }
    #multi-declaration-table .coeff-input,
    #retail-multi-declaration-table .coeff-input { width: 64px; }
    /* 首列（时点）滑出遮挡兜底：加深背景，避免内容透过 */
    #multi-declaration-table th.sticky-col,
    #multi-declaration-table td.sticky-col,
    #retail-multi-declaration-table th.sticky-col,
    #retail-multi-declaration-table td.sticky-col { background: #eef2f7; }
}

/* ④ 平板断点（769~1024px，iPad 横屏等）：PvP 双栏/双列改单列，避免挤压 */
@media (min-width: 769px) and (max-width: 1024px) {
    .pvp-info-twocol { grid-template-columns: 1fr; }
    .pvp-lobby-grid, .pvp-room-grid { grid-template-columns: 1fr; }
}

