/* 产品详情页面样式 - 与首页风格统一 */

/* 屏幕阅读器专用（表格 caption 语义化用，视觉隐藏） */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* 页面整体布局 — 与首页内容区一致：max-width 1200px, padding 0 2rem */
.product-detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* 面包屑导航 — 透明底，与新闻页 .title_t / .topic-crumb 一致 */
.product-breadcrumb {
    background: transparent;
    padding: 10px 0;
    border-radius: 0;
    margin-bottom: 0;
    font-size: 14px;
    color: #6c757d;
    max-width: 100%;
}

.product-breadcrumb a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.2s;
}

.product-breadcrumb a:hover {
    color: #0056b3;
}

/* 产品标题区域 */
.product-header {
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('https://img.chempricehub.com/static/img/bckg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    padding: 40px 0;
    border-radius: 0;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    max-width: 100%;
}

.product-category {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
    margin-bottom: 8px;
}

.product-name {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
}

.product-price {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
}

.product-change {
    font-size: 16px;
    padding: 6px 12px;
    border-radius: 20px;
    display: inline-block;
    font-weight: 500;
}

.product-change.positive {
    background: rgba(40, 167, 69, 0.2);
    color: #28a745;
}

.product-change.negative {
    background: rgba(220, 53, 69, 0.2);
    color: #dc3545;
}

.product-company {
    font-size: 18px;
    font-weight: 500;
    opacity: 0.9;
    margin-bottom: 10px;
}

/* 图表区域 - 单独一行 */
.chart-section {
    margin-bottom: 30px;
    padding: 0;
    max-width: 100%;
}

/* 筛选器区域 - 单独一行 */
.filter-section {
    margin-bottom: 30px;
    padding: 0;
    max-width: 100%;
}

/* 主要内容区域 */
.product-main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
    padding: 0;
    max-width: 100%;
}

/* 导航标签 — 参考极简图标导航，激活色 #008767 */
.product-nav-tabs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 28px;
    background: transparent;
    border-radius: 0;
    padding: 0 0 14px;
    margin: 0 0 20px;
    width: 100%;
    max-width: none;
    border-bottom: 1px solid #eef0f3;
}

.product-nav-tabs a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    text-align: left;
    padding: 6px 2px;
    text-decoration: none;
    color: #9ca3af;
    border-radius: 0;
    font-weight: 500;
    transition: color 0.15s ease;
    font-size: 15px;
    line-height: 1.2;
    position: relative;
    background: transparent;
    box-shadow: none;
}

.product-nav-tabs a .product-nav-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    display: block;
}

.product-nav-tabs a.active {
    background: transparent;
    color: #008767;
    font-weight: 700;
    box-shadow: none;
}

.product-nav-tabs a.active::after {
    display: none;
}

.product-nav-tabs a:hover:not(.active):not(.is-disabled) {
    background: transparent;
    color: #008767;
}

.product-nav-tabs a.is-disabled {
    color: #c4c9d0;
    cursor: not-allowed;
    background: transparent;
    opacity: 0.75;
}

.product-cap-toast {
    position: fixed;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%) translateY(12px);
    background: #1f2937;
    color: #fff;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 13px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s, transform 0.2s;
    z-index: 9999;
}

.product-cap-toast.is-show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* 价格信息卡片 */
.price-info-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
}

.price-info-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 25px;
    color: #2c3e50;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 10px;
}

.price-info-card h1 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 25px;
    color: #2c3e50;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 10px;
}

/* 价格数据表格 */
.price-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

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

.price-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #495057;
    font-size: 14px;
}

.price-table td {
    color: #6c757d;
    font-size: 14px;
}

.price-table .price-value {
    font-weight: 600;
    color: #2c3e50;
}

.price-table .change-positive {
    color: #28a745;
    font-weight: 600;
}

.price-table .change-negative {
    color: #dc3545;
    font-weight: 600;
}

/* 图表区域 */
.chart-container {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
}

.chart-container h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 25px;
    color: #2c3e50;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 10px;
}

/* Summary 页：图表 + 价格信息上下结构 */
.product-main-content.summary-quote-layout {
    display: block;
    grid-template-columns: none;
}

.summary-quote-panel {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px 28px 20px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.summary-quote-title {
    font-size: 22px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 16px;
    line-height: 1.3;
}

.summary-chart-section {
    position: relative;
    margin-bottom: 8px;
}

.summary-price-chart {
    width: 100%;
    height: 420px;
}

.summary-chart-wrap {
    position: relative;
    border-bottom: 1px solid #f0f1f3;
    padding-bottom: 4px;
}

.summary-price-grid {
    padding-top: 8px;
}

.summary-price-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px 16px;
    padding: 12px 0;
    border-bottom: 1px dashed #e5e7eb;
}

.summary-price-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.summary-stat {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    min-width: 0;
}

.summary-stat-label {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.3;
    white-space: nowrap;
}

.summary-stat-value {
    font-size: 13px;
    font-weight: 700;
    color: #111827;
    line-height: 1.35;
    text-align: left;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.summary-stat-value.change-positive {
    color: #008767;
}

.summary-stat-value.change-negative {
    color: #cc0029;
}

/* 双栏 Summary：主栏变窄时先改两列，避免四列挤叠 */
@media (max-width: 1200px) {
    .summary-layout .summary-price-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px 20px;
    }
}

@media (max-width: 1024px) {
    .summary-price-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px 20px;
    }
}

@media (max-width: 640px) {
    .summary-quote-panel {
        padding: 16px 14px 12px;
    }

    .summary-price-chart {
        height: 320px;
    }

    .summary-price-row {
        grid-template-columns: 1fr 1fr;
        gap: 10px 12px;
        padding: 10px 0;
    }

    .summary-stat-label {
        font-size: 11px;
    }

    .summary-stat-value {
        font-size: 12px;
    }
}

.chart-guest-mask {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 8px;
    height: 46px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.35);
    border: none;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    z-index: 3;
    color: #4d6079;
    font-size: 13px;
    backdrop-filter: blur(0.5px);
}

.chart-guest-mask a {
    display: inline-block;
    border: 1px solid #b8c9e2;
    color: #1f5fae;
    background: #f4f8ff;
    border-radius: 14px;
    font-size: 12px;
    line-height: 24px;
    padding: 0 10px;
    text-decoration: none;
}

.chart-guest-mask a:hover {
    background: #eaf2ff;
    border-color: #96b2d8;
}

.chart-iframe {
    width: 100%;
    height: 400px;
    border: none;
    border-radius: 8px;
    background: #f8f9fa;
}

/* Summary 页：People Also Watch + Latest News */
.product-secondary-content.summary-secondary-layout {
    display: flex;
    flex-direction: column;
    gap: 28px;
    grid-template-columns: none;
}

.summary-panel-title {
    font-size: 22px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 16px;
    line-height: 1.3;
}

.summary-watch-panel,
.summary-news-panel {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px 28px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.watch-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.watch-card {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 16px 18px;
    background: #fff;
    min-width: 0;
}

.watch-card-name {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #111827;
    text-decoration: none;
    line-height: 1.35;
    margin-bottom: 14px;
}

a.watch-card-name:hover {
    color: #1a73e8;
    text-decoration: underline;
}

.watch-card-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 16px;
}

.watch-card-label {
    display: block;
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 4px;
    line-height: 1.2;
}

.watch-card-value {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
}

.watch-card-value.is-up {
    color: #008767;
}

.watch-card-value.is-down {
    color: #cc0029;
}

.news-feed-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.news-feed-item {
    border-bottom: 1px solid #e5e7eb;
    min-width: 0;
}

.news-feed-item:nth-child(odd) {
    border-right: 1px solid #e5e7eb;
    padding-right: 20px;
}

.news-feed-item:nth-child(even) {
    padding-left: 20px;
}

.news-feed-item:nth-last-child(-n+2) {
    border-bottom: none;
}

.news-feed-link {
    display: block;
    padding: 16px 0;
    text-decoration: none;
    color: inherit;
}

.news-feed-link:hover .news-feed-title {
    color: #1a73e8;
}

.news-feed-title {
    margin: 0 0 6px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.45;
    color: #111827;
    transition: color 0.15s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-feed-time {
    display: block;
    font-size: 12px;
    line-height: 1.3;
    color: #6b7280;
    font-style: normal;
}

@media (max-width: 768px) {
    .summary-watch-panel,
    .summary-news-panel {
        padding: 16px 14px;
    }

    .watch-cards-grid {
        grid-template-columns: 1fr;
    }

    .watch-card-value {
        font-size: 16px;
    }

    .news-feed-list {
        grid-template-columns: 1fr;
    }

    .news-feed-item:nth-child(odd) {
        border-right: none;
        padding-right: 0;
    }

    .news-feed-item:nth-child(even) {
        padding-left: 0;
    }

    .news-feed-item:nth-last-child(-n+2) {
        border-bottom: 1px solid #e5e7eb;
    }

    .news-feed-item:last-child {
        border-bottom: none;
    }

    .news-feed-link {
        padding: 14px 0;
    }

    .news-feed-title {
        font-size: 14px;
    }
}

/* 新闻和相关信息 */
.product-secondary-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
    padding: 0;
    max-width: 100%;
}

/* 新闻列表 */
.news-section {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
}

.news-section h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 25px;
    color: #2c3e50;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 10px;
}

.news-item {
    padding: 15px 0;
    border-bottom: 1px solid #f1f3f4;
}

.news-item:last-child {
    border-bottom: none;
}

.news-item a {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.4;
    display: block;
    margin-bottom: 8px;
    transition: color 0.2s;
}

.news-item a:hover {
    color: #007bff;
}

.news-meta {
    font-size: 12px;
    color: #6c757d;
    margin-top: 5px;
}

.news-excerpt {
    font-size: 14px;
    color: #6c757d;
    line-height: 1.5;
}

/* 相关产品 */
.related-products {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
}

.related-products h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 25px;
    color: #2c3e50;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 10px;
}

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

.related-table th,
.related-table td {
    padding: 12px 8px;
    text-align: left;
    border-bottom: 1px solid #f1f3f4;
    font-size: 14px;
}

.related-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #495057;
}

.related-table td a {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.related-table td a:hover {
    color: #0056b3;
}

.related-table .price {
    font-weight: 600;
    color: #2c3e50;
}

.related-table .change {
    font-weight: 600;
}

.related-table .change.positive {
    color: #28a745;
}

.related-table .change.negative {
    color: #dc3545;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .product-main-content {
        grid-template-columns: 1fr;
    }
    
    .product-secondary-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .product-detail-container {
        padding: 0 1rem;
    }
    
    .product-breadcrumb {
        padding: 15px 0;
    }
    
    .product-header {
        padding: 25px 0;
    }
    
    .product-main-content,
    .product-secondary-content {
        padding: 0;
    }
    
    .product-name {
        font-size: 24px;
    }
    
    .summary-quote-panel,
    .summary-watch-panel,
    .summary-news-panel,
    .news-section,
    .related-products {
        padding: 20px;
    }
}

/* 动画效果 */
.product-header,
.summary-quote-panel,
.summary-watch-panel,
.summary-news-panel,
.news-section,
.related-products {
    transition: transform 0.2s, box-shadow 0.2s;
}

.product-header:hover,
.summary-quote-panel:hover,
.summary-watch-panel:hover,
.summary-news-panel:hover,
.news-section:hover,
.related-products:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

/* 历史数据页面专用样式 */

/* 筛选器容器 */
.filter-container {
    background: white;
    padding: 20px;
    border: 1px solid #ddd;
}

.filter-container h3 {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
    border-bottom: 1px solid #ddd;
    padding-bottom: 8px;
}

/* 原来的筛选器样式 */
.mn_m_selr {
    margin-bottom: 15px;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.mn_m_selr dl {
    margin: 0;
    padding: 0;
}

.mn_m_selr dd {
    margin: 0 0 12px 0;
    padding: 0;
    display: block;
}

.mn_m_selr dd:last-child {
    margin-bottom: 0;
}

.mn_m_selr dd span {
    font-weight: bold;
    color: #333;
    margin-right: 8px;
    display: inline-block;
    min-width: 60px;
}

.mn_m_selr dd em {
    font-style: normal;
    display: block;
    margin-top: 4px;
}

.mn_m_selr dd label {
    display: inline-block;
    margin: 2px 0;
    padding: 0 6px; /* 不再使用左侧 padding，让隐藏的 input 占位 */
    cursor: pointer;
    font-size: 13px;
    color: #333;
    border-radius: 3px;
    line-height: 30px; /* 与精灵高度一致，文字垂直居中 */
    position: relative;
}

.mn_m_selr dd label:hover { /* do not override background-image from common.css */
    background-color: #e9ecef;
}

.mn_m_selr dd label.omm {
    background: #007bff;
    color: white;
}

.mn_m_selr dd label input[type="checkbox"] {
    display: inline-block;
    margin-right: 6px;
    width: 23px;
    height: 30px;
    vertical-align: middle;
    opacity: 0; /* 使用透明 input 占位，保持与精灵对齐 */
}

.mn_m_selr dd label.time-disabled{opacity:0.5;cursor:not-allowed}

/* 当某类筛选无可用选项时，强制隐藏该行 */
.mn_m_selr dd.hidden-row {
    display: none !important;
}

.mn_m_selr.hidden-all {
    display: none !important;
}

/* 筛选器分组 */
.filter-section {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.filter-group {
    border-bottom: 1px solid #f1f3f4;
    padding-bottom: 20px;
}

.filter-group:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.filter-group h4 {
    font-size: 16px;
    font-weight: 600;
    color: #495057;
    margin-bottom: 15px;
}

/* 筛选选项 */
.filter-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-option {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    background: #f8f9fa;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
    color: #6c757d;
    width: 100%;
}

.filter-option:hover {
    background: #e9ecef;
}

.filter-option.active {
    background: #007bff;
    color: white;
}

.filter-option input[type="checkbox"] {
    margin-right: 8px;
    transform: scale(1.1);
}

/* 数据表格区域 */
.data-table-section {
    margin-top: 0;
    padding: 0;
    max-width: 100%;
    min-width: 0;
}

.historical-layout .data-table-section {
    padding: 0;
}

.data-table-container {
    background: white;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #e9ecef;
}

/* Historical data table — Yahoo Finance style */
.historical-table-panel {
    background: #fff;
    border: 1px solid #e6e8eb;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 8px;
}

.historical-table-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 10px 16px 8px;
    border-bottom: 1px solid #f0f1f3;
    background: #fff;
}

.historical-table-meta {
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    letter-spacing: 0.01em;
}

.historical-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.historical-table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    font-size: 14px;
    line-height: 1.45;
    color: #111827;
    background: #fff;
}

.historical-table thead {
    position: sticky;
    top: 0;
    z-index: 2;
}

.historical-table th {
    padding: 11px 16px;
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    text-align: left;
    white-space: nowrap;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    letter-spacing: 0.02em;
}

.historical-table td {
    padding: 13px 16px;
    font-size: 14px;
    color: #111827;
    text-align: left;
    vertical-align: middle;
    border-bottom: 1px solid #f0f1f3;
    background: #fff;
}

.historical-table tbody tr:last-child td {
    border-bottom: none;
}

.historical-table tbody tr:hover td {
    background: #f3f4f6;
}

.historical-table .col-vendor {
    min-width: 180px;
    max-width: 320px;
}

.historical-table .col-spec {
    min-width: 140px;
    color: #374151;
}

.historical-table .col-unit,
.historical-table .col-currency {
    min-width: 64px;
    color: #374151;
    white-space: nowrap;
}

.historical-table .col-price {
    min-width: 96px;
    text-align: right;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.historical-table th.col-price {
    text-align: right;
}

.historical-table .col-date {
    min-width: 120px;
    white-space: nowrap;
}

.historical-table .historical-price {
    font-weight: 500;
    color: #111827;
    font-variant-numeric: tabular-nums;
}

.historical-table .historical-date {
    color: #111827;
    font-variant-numeric: tabular-nums;
}

.historical-vendor-link {
    display: inline;
    color: #1a73e8;
    text-decoration: none;
    font-weight: 400;
    line-height: 1.45;
    word-break: break-word;
}

.capacity-vendor-link {
    color: #1a73e8;
    text-decoration: none;
    font-weight: 500;
}

.capacity-vendor-link:hover {
    text-decoration: underline;
    color: #1558b0;
}

.historical-vendor-link:hover {
    color: #1558b0;
    text-decoration: underline;
}

.historical-table .vendor-cell-plain {
    color: #374151;
    font-weight: 400;
    cursor: default;
}

.historical-table tbody tr td.col-empty,
.historical-table tbody tr:only-child td[colspan] {
    text-align: center;
    color: #6b7280;
    font-size: 13px;
    padding: 28px 16px;
    background: #fff;
}

/* Legacy table wrapper (other pages) */
.rld_lut {
    margin-bottom: 15px;
}

.rld_lut table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.rld_lut table td {
    padding: 8px 12px;
    border-bottom: 1px solid #f1f3f4;
    text-align: left;
    vertical-align: middle;
}

.rld_lut table tr:first-child td {
    background: #f8f9fa;
    font-weight: bold;
    color: #495057;
    border-bottom: 2px solid #e9ecef;
}

.rld_lut table tr:hover {
    background: #f8f9fa;
}

.rld_lut .slru_m {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}

.rld_lut .slru_m:hover {
    color: #0056b3;
}

.rld_lut .vendor-cell-plain {
    color: #495057;
    font-weight: 500;
    cursor: default;
}

.locked-price {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    color: #8a99ad;
}

.locked-price .lock-icon {
    font-size: 14px;
    line-height: 1;
}

.historical-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 14px;
    padding: 0 0 30px 0;
    align-items: start;
}

.historical-layout.is-guest {
    grid-template-columns: 1fr;
    width: 100%;
}

.historical-layout.is-guest .data-table-section,
.historical-layout.is-guest .historical-table-panel,
.historical-layout.is-guest .guest-pagination-wrap {
    width: 100%;
    max-width: none;
}

.historical-layout.is-guest .historical-table {
    width: 100%;
    table-layout: fixed;
}

.historical-layout.is-guest .historical-table .col-vendor {
    width: 26%;
    min-width: 0;
    max-width: none;
}

.historical-layout.is-guest .historical-table .col-spec {
    width: 22%;
    min-width: 0;
}

.historical-layout.is-guest .historical-table .col-unit,
.historical-layout.is-guest .historical-table .col-currency {
    width: 10%;
    min-width: 0;
}

.historical-layout.is-guest .historical-table .col-price {
    width: 16%;
    min-width: 0;
}

.historical-layout.is-guest .historical-table .col-date {
    width: 16%;
    min-width: 0;
}

.historical-layout.is-guest .historical-table th,
.historical-layout.is-guest .historical-table td {
    padding-left: 18px;
    padding-right: 18px;
}

.historical-layout.is-guest .historical-table .col-vendor,
.historical-layout.is-guest .historical-table .col-spec {
    white-space: normal;
    word-break: break-word;
}

.historical-filter-sidebar {
    background: #fff;
    border: 1px solid #e8ecef;
    border-radius: 10px;
    padding: 10px 12px;
    height: fit-content;
    position: sticky;
    top: 88px;
    min-width: 0;
}

.historical-filter-sidebar.guest-locked { position: relative; }
.filter-guest-mask {
    position: absolute;
    inset: 0;
    z-index: 5;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.42);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    backdrop-filter: blur(0.5px);
}
.filter-guest-mask span { color: #48607f; font-size: 13px; }
.filter-guest-mask a {
    text-decoration: none;
    color: #1f5fae;
    border: 1px solid #aac0de;
    background: rgba(244, 248, 255, 0.95);
    line-height: 24px;
    border-radius: 14px;
    padding: 0 10px;
    font-size: 12px;
}

.sidebar-filter-group {
    margin-bottom: 12px;
}

.sidebar-filter-group:last-child {
    margin-bottom: 0;
}

.sidebar-filter-header {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #6b7280;
    margin-bottom: 6px;
}

.sidebar-filter-search {
    width: 100%;
    height: 30px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 0 8px;
    margin-bottom: 6px;
    font-size: 12px;
    color: #374151;
    background: #fafbfc;
    outline: none;
    box-sizing: border-box;
}

.sidebar-filter-search:focus {
    border-color: #008767;
    background: #fff;
    box-shadow: 0 0 0 2px rgba(0, 135, 103, 0.12);
}

.sidebar-filter-list {
    max-height: 168px;
    overflow: auto;
    border: 1px solid #eef0f3;
    border-radius: 6px;
    padding: 4px 6px;
    background: #fff;
}

.sidebar-filter-item {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-size: 12px;
    color: #374151;
    line-height: 1.35;
    padding: 4px 2px;
    cursor: pointer;
    border-radius: 4px;
}

.sidebar-filter-item:hover {
    background: #f5f7f6;
}

.sidebar-filter-item input {
    margin: 2px 0 0;
    flex-shrink: 0;
}

.collapsed-item { display: none; }

.filter-toggle-btn {
    margin-top: 6px;
    border: 0;
    background: transparent;
    color: #008767;
    border-radius: 4px;
    line-height: 1.2;
    padding: 2px 0;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.filter-toggle-btn:hover {
    color: #007456;
    text-decoration: underline;
}

.chart-summary-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    background: #f7faff;
    border: 1px solid #deebfd;
    border-radius: 8px;
    padding: 8px 10px;
    margin-bottom: 10px;
}
.chart-summary-main {
    display: flex;
    align-items: baseline;
    gap: 10px;
    font-size: 14px;
    color: #2e435d;
    flex-wrap: wrap;
}
.chart-summary-main h1 {
    margin: 0;
    font-size: 22px;
    line-height: 1.2;
    font-weight: 700;
    color: #2c3e50;
}
.chart-detail-btn { border: 1px solid #b5c9e7; background: #fff; color: #2b5fa5; border-radius: 14px; line-height: 26px; padding: 0 10px; font-size: 12px; }
.chart-detail-btn.disabled { color: #8ea0b8; border-color: #d3ddeb; background: #f5f7fb; pointer-events: none; }

.detail-modal { position: fixed; inset: 0; z-index: 1000; }
.detail-modal-mask { position: absolute; inset: 0; background: rgba(10,20,35,0.35); }
.detail-modal-body { position: relative; width: min(860px, 92vw); margin: 8vh auto 0; background: #fff; border-radius: 12px; overflow: hidden; }
.detail-modal-header { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-bottom: 1px solid #edf2f7; }
.detail-modal-header button { border: 0; background: transparent; font-size: 22px; color: #7489a5; }
.detail-modal-content { max-height: 62vh; overflow: auto; padding: 12px; }
.detail-table { width: 100%; border-collapse: collapse; }
.detail-table th, .detail-table td { border-bottom: 1px solid #edf2f7; padding: 8px; font-size: 13px; text-align: left; }

@media (max-width: 1024px) {
    .historical-layout { grid-template-columns: 1fr; padding: 0 40px 25px 40px; }
    .historical-filter-sidebar { position: static; }
}

@media (max-width: 768px) {
    .historical-layout { padding: 0 20px 20px 20px; }
}

.data-table-container h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 25px;
    color: #2c3e50;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 10px;
}

/* 已选筛选条件 */
.selected-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    background: #007bff;
    color: white;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.close-filter {
    margin-left: 8px;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.close-filter:hover {
    opacity: 1;
}

/* 历史数据表格（legacy aliases — see .historical-table-panel above） */
.data-table {
    overflow-x: auto;
    margin-bottom: 20px;
}

.vendor-link {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.vendor-link:hover {
    color: #0056b3;
}

/* 分页 */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #f1f3f4;
}

.page-btn {
    padding: 8px 16px;
    background: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s;
}

.page-btn:hover {
    background: #0056b3;
}

.page-info {
    font-size: 14px;
    color: #6c757d;
    font-weight: 500;
}

/* 分页 — Historical 页现代紧凑样式（对齐站内 #008767） */
.historical-layout .page_p,
.historical-layout .historical-pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 16px;
    padding: 16px 0 4px;
    border-top: 1px solid #eef0f2;
    text-align: center;
    line-height: 1;
}

.historical-layout .page_p a,
.historical-layout .page_p span.no,
.historical-layout .page_p > span:not(.pager-jump):not(.pager-ellipsis) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-width: 34px;
    height: 34px;
    padding: 0 11px;
    margin: 0;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    color: #374151;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}

.historical-layout .page_p a:hover {
    border-color: #008767;
    color: #008767;
    background: #f3faf7;
}

.historical-layout .page_p a.omm,
.historical-layout .page_p a[aria-current="page"] {
    background: #008767;
    border-color: #008767;
    color: #fff;
    font-weight: 600;
    pointer-events: none;
}

.historical-layout .page_p a.disable,
.historical-layout .page_p a[aria-disabled="true"] {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
    background: #f9fafb;
    color: #6b7280;
    border-color: #e5e7eb;
}

.historical-layout .page_p .pager-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 34px;
    padding: 0 2px;
    margin: 0;
    border: none;
    background: transparent;
    color: #9ca3af;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.04em;
    user-select: none;
}

.historical-layout .page_p .pager-jump {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 8px;
    padding-left: 12px;
    border-left: 1px solid #eef0f2;
}

.historical-layout .page_p .pager-jump__label {
    color: #6b7280;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.historical-layout .page_p .page_txt {
    box-sizing: border-box;
    width: 48px;
    height: 34px;
    margin: 0;
    padding: 0 8px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    color: #111827;
    font-family: inherit;
    font-size: 13px;
    text-align: center;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.historical-layout .page_p .page_txt:focus {
    border-color: #008767;
    box-shadow: 0 0 0 3px rgba(0, 135, 103, 0.12);
}

.historical-layout .page_p .page_btn {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 44px;
    height: 34px;
    margin: 0;
    padding: 0 12px;
    border: 1px solid #008767;
    border-radius: 8px;
    background: #008767;
    color: #fff;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.historical-layout .page_p .page_btn:hover {
    background: #007456;
    border-color: #007456;
}

.historical-layout .page_p .page_btn:focus-visible,
.historical-layout .page_p a:focus-visible {
    outline: 2px solid #008767;
    outline-offset: 2px;
}

@media (max-width: 640px) {
    .historical-layout .page_p .pager-jump {
        width: 100%;
        margin: 8px 0 0;
        padding: 8px 0 0;
        border-left: none;
        border-top: 1px solid #eef0f2;
        justify-content: center;
    }
}

/* 原来的分页样式（非 Historical 回退） */
.page_p {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #f1f3f4;
}

.page_txt {
    width: 60px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin: 0 10px;
    text-align: center;
}

.page_btn {
    padding: 8px 16px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
}

.page_btn:hover {
    background: #0056b3;
}

.guest-pagination-wrap {
    position: relative;
    margin-top: 8px;
}

.guest-pagination-wrap.guest-locked {
    min-height: 0;
    padding-top: 4px;
}

.guest-pagination-wrap.guest-locked::before {
    content: '';
    display: block;
    height: 36px;
    margin: -8px 0 12px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #fff 88%);
    pointer-events: none;
}

.guest-pagination-wrap.guest-locked .guest-hidden {
    display: none !important;
}

.pagination-guest-mask {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    min-height: 0;
    height: auto;
    padding: 18px 20px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #e8ecef;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    display: block;
    z-index: 4;
    pointer-events: auto;
}

.pagination-guest-mask__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px 24px;
    flex-wrap: wrap;
}

.pagination-guest-mask__copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    flex: 1 1 220px;
}

.pagination-guest-mask__title {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #111827;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
}

.pagination-guest-mask__title-icon {
    display: inline-flex;
    color: #008767;
    flex-shrink: 0;
}

.pagination-guest-mask__title-icon svg {
    width: 16px;
    height: 16px;
    display: block;
}

.pagination-guest-mask__desc {
    margin: 0;
    color: #6b7280;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.5;
}

.pagination-guest-mask__actions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.pagination-guest-mask__btn,
.pagination-guest-mask a.pagination-guest-mask__btn,
.pagination-guest-mask .js-refer-link.pagination-guest-mask__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #fff;
    background: #008767;
    border: 1px solid #008767;
    line-height: 1;
    border-radius: 8px;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: background 0.15s ease, border-color 0.15s ease;
    white-space: nowrap;
    transform: none;
}

.pagination-guest-mask__btn:hover,
.pagination-guest-mask a.pagination-guest-mask__btn:hover,
.pagination-guest-mask .js-refer-link.pagination-guest-mask__btn:hover {
    background: #007456;
    border-color: #007456;
    color: #fff;
    transform: none;
}

.pagination-guest-mask__btn:active,
.pagination-guest-mask a.pagination-guest-mask__btn:active,
.pagination-guest-mask .js-refer-link.pagination-guest-mask__btn:active {
    transform: none;
}

.pagination-guest-mask__secondary,
.pagination-guest-mask a.pagination-guest-mask__secondary,
.pagination-guest-mask .js-refer-link.pagination-guest-mask__secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #008767;
    background: transparent;
    border: 1px solid transparent;
    line-height: 1;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    transition: color 0.15s ease, background 0.15s ease;
    transform: none;
}

.pagination-guest-mask__secondary:hover,
.pagination-guest-mask a.pagination-guest-mask__secondary:hover,
.pagination-guest-mask .js-refer-link.pagination-guest-mask__secondary:hover {
    color: #007456;
    background: rgba(0, 135, 103, 0.06);
    transform: none;
}

.wap_page {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #f1f3f4;
}

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

.wap_page a {
    display: inline-block;
    padding: 8px 16px;
    background: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    margin: 0 5px;
    font-size: 14px;
    transition: background-color 0.2s;
}

.wap_page a:hover {
    background: #0056b3;
}

/* 响应式设计 - 历史数据页面 */
@media (max-width: 1024px) {
    .chart-section,
    .filter-section,
    .data-table-section {
        padding: 0 40px;
    }
    
    .filter-options {
        flex-direction: column;
    }
    
    .filter-option {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .chart-section,
    .filter-section,
    .data-table-section {
        padding: 0 20px;
    }
    
    .data-table-container {
        padding: 20px;
    }
    
    .filter-container {
        padding: 20px;
    }
    
    .historical-table {
        font-size: 12px;
    }
    
    .historical-table th,
    .historical-table td {
        padding: 8px 10px;
    }
    
    .pagination {
        flex-direction: column;
        gap: 10px;
    }

    .guest-pagination-wrap {
        min-height: 0;
    }

    .pagination-guest-mask {
        height: auto;
        left: auto;
        right: auto;
        padding: 16px;
    }

    .pagination-guest-mask__inner {
        flex-direction: column;
        align-items: stretch;
    }

    .pagination-guest-mask__actions {
        width: 100%;
    }

    .pagination-guest-mask__btn,
    .pagination-guest-mask a.pagination-guest-mask__btn {
        flex: 1;
    }

    .pagination-guest-mask__secondary,
    .pagination-guest-mask a.pagination-guest-mask__secondary {
        flex: 0 0 auto;
    }
}

/* ========== Summary 双栏 + 侧栏 Overview/Properties ========== */
.summary-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 28px;
    align-items: start;
}

.summary-main {
    min-width: 0;
}

.summary-sidebar {
    position: sticky;
    top: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.summary-sidebar .price-panel {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 18px 18px 16px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

.summary-sidebar .price-panel__title {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 1rem;
    color: #111827;
}

.summary-sidebar .price-panel__title-icon {
    display: inline-block;
    position: relative;
    width: 14px;
    height: 16px;
    flex-shrink: 0;
}

.summary-sidebar .price-panel__title-icon::before,
.summary-sidebar .price-panel__title-icon::after {
    content: '';
    position: absolute;
    top: 1px;
    width: 2px;
    height: 14px;
    border-radius: 1px;
    background: #008767;
    transform: rotate(18deg);
}

.summary-sidebar .price-panel__title-icon::before {
    left: 3px;
}

.summary-sidebar .price-panel__title-icon::after {
    left: 9px;
}

.summary-overview-body p {
    margin: 0 0 0.75rem;
    font-size: 0.88rem;
    line-height: 1.6;
    color: #374151;
}

.summary-overview-body p:last-child {
    margin-bottom: 0;
}

.summary-overview-body.markdown-body {
    font-size: 0.88rem;
    line-height: 1.6;
    color: #374151;
    word-wrap: break-word;
}

.summary-overview-body.markdown-body h1,
.summary-overview-body.markdown-body h2,
.summary-overview-body.markdown-body h3,
.summary-overview-body.markdown-body h4 {
    margin: 0.85em 0 0.4em;
    font-weight: 700;
    color: #111827;
    line-height: 1.35;
}

.summary-overview-body.markdown-body h1 { font-size: 1.15em; }
.summary-overview-body.markdown-body h2 { font-size: 1.08em; }
.summary-overview-body.markdown-body h3 { font-size: 1.02em; }

.summary-overview-body.markdown-body ul,
.summary-overview-body.markdown-body ol {
    margin: 0 0 0.75rem;
    padding-left: 1.35em;
}

.summary-overview-body.markdown-body li {
    margin: 0.2em 0;
}

.summary-overview-body.markdown-body strong {
    font-weight: 700;
    color: #111827;
}

.summary-overview-body.markdown-body a {
    color: #008767;
}

.summary-sidebar .props-list {
    margin: 0;
}

.summary-sidebar .props-row {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    gap: 0.75rem;
    padding: 0.55rem 0;
    border-bottom: 1px dashed #e5e7eb;
    font-size: 0.8rem;
    line-height: 1.5;
}

.summary-sidebar .props-row:last-of-type {
    border-bottom: none;
}

.summary-sidebar .props-row dt {
    color: #8b93a7;
    font-weight: 500;
    white-space: nowrap;
}

.summary-sidebar .props-row dd {
    margin: 0;
    color: #2e3346;
    word-break: break-word;
    overflow-wrap: anywhere;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.78rem;
}

.summary-sidebar .props-row--names {
    align-items: start;
}

.summary-sidebar .prop-names {
    display: flex;
    flex-direction: column;
    gap: 0.28rem;
    font-family: inherit;
}

.summary-sidebar .prop-name-line {
    font-family: inherit;
    font-size: 0.82rem;
    color: #374151;
    line-height: 1.4;
    word-break: break-word;
}

.summary-sidebar .prop-name-line.is-primary {
    font-weight: 600;
    color: #111827;
}

.summary-sidebar .topic-panel__cta {
    display: block;
    margin-top: 1rem;
    padding: 0.55rem 0.9rem;
    font-size: 0.82rem;
    font-weight: 500;
    text-align: center;
    color: #008767;
    background: #fff;
    border: 1px solid #008767;
    border-radius: 6px;
    text-decoration: none;
}

.summary-sidebar .topic-panel__cta:hover {
    background: rgba(0, 135, 103, 0.06);
}

.summary-sidebar .price-timeline__empty {
    margin: 0;
    font-size: 0.85rem;
    color: #6b7280;
    line-height: 1.5;
}

.summary-opinion-panel {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px 24px;
    margin: 0 0 24px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

.summary-opinion-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.summary-opinion-item {
    border: 1px solid #eef0f3;
    border-radius: 8px;
    padding: 12px 14px;
    background: #fafbfc;
}

.summary-opinion-q {
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
}

.summary-opinion-q a {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #111827;
    text-decoration: none;
    word-break: break-word;
}

.summary-opinion-q a:hover {
    color: #008767;
    text-decoration: none;
}

.summary-opinion-a {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 13px;
    line-height: 1.6;
    color: #4b5563;
    white-space: normal;
    word-break: break-word;
}

@media (max-width: 960px) {
    .summary-layout {
        grid-template-columns: 1fr;
    }

    .summary-sidebar {
        position: static;
        order: 2;
    }

    .summary-main {
        order: 1;
    }
}

/* ========== Capacity 页 ========== */
.capacity-page-title {
    font-size: 22px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 20px;
}

.capacity-empty {
    padding: 48px 20px;
    text-align: center;
    color: #6b7280;
    background: #fff;
    border: 1px dashed #e5e7eb;
    border-radius: 12px;
}

.capacity-day-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.capacity-day {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
}

.capacity-day-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    cursor: pointer;
    list-style: none;
    background: #f8faf9;
}

.capacity-day-summary::-webkit-details-marker {
    display: none;
}

.capacity-day[open] .capacity-day-summary {
    border-bottom: 1px solid #e5e7eb;
    background: #f3f8f6;
}

.capacity-day-date {
    font-weight: 700;
    color: #111827;
    font-size: 15px;
}

.capacity-day-count {
    font-size: 12px;
    color: #6b7280;
}

.capacity-day-body {
    padding: 0;
    overflow-x: auto;
}

.capacity-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

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

.capacity-table th {
    background: #fafbfc;
    color: #6b7280;
    font-weight: 600;
    font-size: 12px;
}

.capacity-table tbody tr:last-child td {
    border-bottom: none;
}

.capacity-table .capacity-remark {
    max-width: 280px;
    color: #4b5563;
    word-break: break-word;
}

.capacity-page .feed-more-wrap {
    display: flex;
    justify-content: center;
    margin: 24px 0 8px;
}

.capacity-page .capacity-more-wrap {
    margin-top: 16px;
}

.capacity-page .capacity-more-wrap.guest-locked {
    min-height: 72px;
}

.capacity-page .feed-more-btn {
    appearance: none;
    display: inline-block;
    min-width: 200px;
    padding: 0.65rem 2.25rem;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    color: #008767;
    background: #fff;
    border: 1px solid #008767;
    border-radius: 6px;
    cursor: pointer;
}

.capacity-page .feed-more-btn:hover:not(:disabled) {
    background: rgba(0, 135, 103, 0.06);
}

.capacity-page .feed-more-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.capacity-page .feed-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 12px;
    color: #6b7280;
    font-size: 13px;
}

.capacity-page .feed-loader[hidden] {
    display: none !important;
}

.capacity-page .feed-loader__spinner {
    width: 16px;
    height: 16px;
    border: 2px solid #d1d5db;
    border-top-color: #008767;
    border-radius: 50%;
    animation: capacity-spin 0.7s linear infinite;
}

@keyframes capacity-spin {
    to { transform: rotate(360deg); }
}

