/* ============================================
   特价筛选页面独立样式 (special.css)
   与首页表格风格保持一致：黑表头、米色行、紧凑布局
   灰色圆角阴影悬浮容器，支持亮色/暗色模式
   ============================================ */
/* ========== 页面整体 ========== */
.special-page {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
    padding: 16px 12px;
    max-width: 1400px;
    margin: 0 auto;
}
.special-page *,
.special-page *::before,
.special-page *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
/* ========== 页面头部（灰色圆角阴影悬浮） ========== */
.special-header {
    text-align: center;
    padding: 20px 16px;
    margin-bottom: 14px;
    background: #f5f5f5;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.12);
    border: 1px solid #e5e7eb;
}
[data-theme="dark"] .special-header {
    background: #1e293b;
    box-shadow: 0 2px 12px rgba(0,0,0,0.4);
    border-color: #334155;
}
.special-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #1f2937;
}
[data-theme="dark"] .special-title {
    color: #f1f5f9;
}
.special-title i {
    font-size: 1.4rem;
    color: #ef4444;
}
.special-desc {
    color: #6b7280;
    font-size: 0.9rem;
}
[data-theme="dark"] .special-desc {
    color: #94a3b8;
}
/* ========== 筛选栏（灰色圆角阴影悬浮） ========== */
.special-filter-bar {
    margin-bottom: 12px;
    background: #f5f5f5;
    border-radius: 12px;
    padding: 14px 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.12);
    border: 1px solid #e5e7eb;
}
[data-theme="dark"] .special-filter-bar {
    background: #1e293b;
    box-shadow: 0 2px 12px rgba(0,0,0,0.4);
    border-color: #334155;
}
.special-filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
}
.special-filter-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.special-filter-item label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 4px;
}
[data-theme="dark"] .special-filter-item label {
    color: #94a3b8;
}
.special-filter-item label i {
    font-size: 0.85rem;
    color: #3b82f6;
}
.special-filter-item input,
.special-filter-item select {
    padding: 6px 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #fff;
    color: #1f2937;
    font-size: 0.85rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    width: 160px;
}
[data-theme="dark"] .special-filter-item input,
[data-theme="dark"] .special-filter-item select {
    background: #0f172a;
    border-color: #475569;
    color: #e2e8f0;
}
.special-filter-item input:focus,
.special-filter-item select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59,130,246,0.15);
}
/* 排序按钮 */
.special-sort-btns .sort-btns {
    display: flex;
    gap: 6px;
}
.sort-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #fff;
    color: #6b7280;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    text-decoration: none !important;
}
[data-theme="dark"] .sort-btn {
    background: #0f172a;
    border-color: #475569;
    color: #94a3b8;
}
.sort-btn:hover {
    border-color: #3b82f6;
    color: #3b82f6;
}
.sort-btn.active {
    background: #3b82f6;
    color: #fff !important;
    border-color: #3b82f6;
}
/* 筛选按钮 */
.special-filter-submit {
    padding: 6px 16px;
    background: #3b82f6;
    color: #fff !important;
    border: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: background 0.2s;
    height: fit-content;
    margin-left: auto;
}
.special-filter-submit:hover {
    background: #2563eb;
}
/* ========== 结果统计栏 ========== */
.special-result-bar {
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 4px;
}
.special-result-count {
    font-size: 0.85rem;
    color: #6b7280;
}
[data-theme="dark"] .special-result-count {
    color: #94a3b8;
}
.special-result-count strong {
    color: #ef4444;
    font-size: 1rem;
}
.special-reset-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: transparent;
    color: #3b82f6 !important;
    border: 1px solid #3b82f6;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none !important;
}
.special-reset-btn:hover {
    background: #3b82f6;
    color: #fff !important;
}
/* ========== 表格容器（灰色圆角阴影悬浮） ========== */
.special-table-wrapper {
    background: #f5f5f5;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.12);
    border: 1px solid #e5e7eb;
    overflow: hidden;
    padding: 4px;
}
[data-theme="dark"] .special-table-wrapper {
    background: #1e293b;
    box-shadow: 0 2px 12px rgba(0,0,0,0.4);
    border-color: #334155;
}
/* ========== 表格（与首页完全一致） ========== */
.special-table {
    width: 100%;
    border-collapse: collapse;
    background: #1a1a1a;
    border: 1px solid #444;
    box-shadow: 0 0 15px rgba(0,0,0,0.6);
    table-layout: fixed;
    font-size: 13px;
}
.special-table th,
.special-table td {
    white-space: nowrap;
    text-align: center;
    vertical-align: middle;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 13px;
}
/* 表头 — 黑色背景 */
.special-table th {
    background: #272525;
    color: #fff;
    padding: 10px 4px;
    font-weight: bold;
    border: 1px solid #444;
}
/* 列宽分配（与首页一致） */
.special-table th:nth-child(1), .special-table td:nth-child(1) { width: 10%; }  /* 服务商名称 */
.special-table th:nth-child(2), .special-table td:nth-child(2) { width: 4%; }   /* 地区 */
.special-table th:nth-child(3), .special-table td:nth-child(3) { width: 4%; }   /* 线路 */
.special-table th:nth-child(4), .special-table td:nth-child(4) { width: 3%; }   /* 内存 */
.special-table th:nth-child(5), .special-table td:nth-child(5) { width: 3%; }   /* CPU */
.special-table th:nth-child(6), .special-table td:nth-child(6) { width: 5%; }   /* 硬盘 */
.special-table th:nth-child(7), .special-table td:nth-child(7) { width: 4%; }   /* 流量 */
.special-table th:nth-child(8), .special-table td:nth-child(8) { width: 4%; }   /* 带宽 */
.special-table th:nth-child(9), .special-table td:nth-child(9) { width: 3%; }   /* 防御 */
.special-table th:nth-child(10), .special-table td:nth-child(10) { width: 5%; }  /* 价格 */
.special-table th:nth-child(11), .special-table td:nth-child(11) { width: 18%; } /* 描述 */
.special-table th:nth-child(12), .special-table td:nth-child(12) { width: 8%; }  /* 操作 */
/* 数据行 — 米色背景（与首页普通区一致） */
.special-table tbody tr {
    border: 1px solid #c8c0a0;
}
.special-table tbody td {
    background: #e8e0c8;
    color: #222;
    border: 1px solid #c8c0a0;
    padding: 5px 4px;
}
.special-table tbody tr:hover td {
    background: #ddd5b8;
}
/* ========== 服务商名称列 ========== */
.special-table td.special-name {
    text-align: left !important;
    padding-left: 8px;
    white-space: nowrap;
}
.special-table td.special-name a {
    color: #000;
    text-decoration: none;
    font-weight: normal;
    height: 20px;
    line-height: 20px;
    font-size: 13px;
}
.special-table td.special-name a:hover {
    color: #49F18C;
}
.special-table td.special-name .tag,
.special-table td.special-name .cert-badge,
.special-table td.special-name a {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
}
/* ========== 标签徽章（与首页一致） ========== */
.special-table .combo-badge {
    display: inline-flex;
    align-items: stretch;
    height: 20px;
    flex-shrink: 0;
    border-radius: 3px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    margin-right: 4px;
    vertical-align: middle;
}
.special-table .combo-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    color: #fff;
    border-radius: 3px;
}
.special-table .combo-tag.tag-top {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    animation: spGlowing 2s ease-in-out infinite;
}
.special-table .combo-tag.tag-promo-flash {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    font-weight: bold;
    animation: spPulse 2s ease-in-out infinite;
    box-shadow: 0 2px 4px rgba(239,68,68,0.4);
}
.special-table .combo-tag.tag-promo-new {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    color: #fff;
    font-weight: bold;
    animation: spPulse 3s ease-in-out infinite;
    box-shadow: 0 2px 4px rgba(6,182,212,0.4);
}
.special-table .combo-tag.tag-normal {
    background: #67727f;
    color: #fff;
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}
.special-table .combo-tag.tag-ending {
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #fff;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(249,115,22,0.4);
}
@keyframes spGlowing {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}
@keyframes spPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}
/* ========== 价格列高亮 ========== */
.special-table td.special-price {
    font-weight: 700;
    color: #dc2626 !important;
    white-space: nowrap;
}
/* ========== 描述列 ========== */
.special-table td.special-desc {
    text-align: left !important;
    padding-left: 6px;
    padding-right: 6px;
    font-size: 12px;
    color: #444;
    overflow: hidden;
    max-width: 0;
}
.special-table td.special-desc .desc-text {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: help;
}
/* ========== 操作按钮（与首页一致） ========== */
.special-table td.special-actions {
    white-space: nowrap;
    text-align: center !important;
}
.special-buy-btn {
    display: inline-block;
    padding: 3px 10px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    margin-right: 4px;
    transition: all 0.2s ease;
}
.special-buy-btn:hover {
    background: linear-gradient(135deg, #d97706, #b45309);
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(245,158,11,0.4);
}
.special-detail-btn {
    color: #444 !important;
    text-decoration: none !important;
    display: inline-block;
    padding: 3px 8px;
    background: rgba(0,0,0,0.08);
    border-radius: 4px;
    font-size: 12px;
}
.special-detail-btn:hover {
    text-decoration: underline !important;
}
/* ========== 空状态 ========== */
.special-empty {
    text-align: center;
    padding: 3rem 2rem;
    color: #6b7280;
}
[data-theme="dark"] .special-empty {
    color: #94a3b8;
}
.special-empty i {
    font-size: 3rem;
    opacity: 0.4;
    display: block;
    margin-bottom: 1rem;
}
.special-empty p {
    font-size: 1rem;
}
/* ========== 响应式 — 手机端 ========== */
@media (max-width: 768px) {
    .special-page {
        padding: 8px 4px;
    }
    .special-header {
        padding: 14px 10px;
        margin-bottom: 10px;
    }
    .special-title {
        font-size: 1.2rem;
    }
    .special-filter-bar {
        padding: 10px;
    }
    .special-filter-form {
        flex-direction: column;
        gap: 8px;
    }
    .special-filter-item input,
    .special-filter-item select {
        width: 100%;
    }
    .special-sort-btns .sort-btns {
        flex-direction: row;
    }
    .special-filter-submit {
        margin-left: 0;
        width: 100%;
        justify-content: center;
    }
    .special-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 2px;
    }
    .special-table {
        table-layout: auto;
        min-width: 900px;
    }
    /* 第一列固定 */
    .special-table th:nth-child(1),
    .special-table td:nth-child(1) {
        position: sticky;
        left: 0;
        z-index: 2;
        min-width: 130px;
        max-width: 160px;
    }
    .special-table th:nth-child(1) {
        background: #272525;
    }
    .special-table td:nth-child(1) {
        background: #e8e0c8;
        box-shadow: 2px 0 6px rgba(0,0,0,0.15);
        clip-path: inset(0 -12px 0 0);
    }
    .special-table th,
    .special-table td {
        padding: 8px 6px;
        font-size: 12px;
    }
    .special-table .combo-tag {
        padding: 0 4px;
        font-size: 9px;
    }
    .special-table .combo-badge {
        height: 16px;
    }
    .special-buy-btn,
    .special-detail-btn {
        padding: 4px 8px;
        font-size: 11px;
        margin: 1px;
    }
}