/* ============================================================
   WXVPS 价格表 — 界面设计系统
   方向：清爽现代（浅色 + 鲜明强调）
   主色 #1668dc（品牌蓝）· 强调 #f97316（暖橙）· 中性偏品牌色
   ============================================================ */

/* ---------- 设计令牌 ---------- */
:root {
    /* 品牌色 */
    --brand: #1668dc;
    --brand-strong: #0c4fa8;
    --brand-soft: #eaf2fe;
    --accent: #f97316;
    --accent-soft: #fff4ea;
    --ok: #10b981;

    /* 中性色（偏冷，避免纯黑纯白） */
    --bg: #f4f6fa;
    --surface: #ffffff;
    --text: #101828;
    --text-2: #475467;
    --text-3: #98a2b3;
    --line: #e4e7ec;

    /* 阴影 / 圆角 */
    --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.06);
    --shadow-md: 0 6px 16px rgba(16, 24, 40, 0.08);
    --shadow-lg: 0 16px 40px rgba(16, 24, 40, 0.12);
    --r-sm: 8px;
    --r-md: 12px;
    --r-lg: 16px;
    --r-full: 999px;

    /* 动效 */
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ---------- 基础 ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
        "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    color: var(--text);
    background:
        radial-gradient(1200px 400px at 50% -100px, var(--brand-soft), transparent 70%),
        var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img, svg { vertical-align: middle; }
button { font-family: inherit; }

/* 布局 */
.auto { width: 100%; min-height: 100vh; }
.con { width: 100%; }
.container { max-width: 1200px; margin: 0 auto; padding: 24px; }

/* ---------- 顶部品牌条 ---------- */
.site-header {
    /* 不吸顶：随页面滚动消失，让表格表头吸顶到视口最顶部 */
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}

.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 12px;
    padding-bottom: 12px;
}

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--brand), var(--brand-strong));
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.5px;
    box-shadow: var(--shadow-sm);
}

.brand-name { font-size: 18px; font-weight: 700; line-height: 1.2; display: flex; flex-direction: column; }
.brand-name small { font-size: 11px; font-weight: 500; color: var(--text-3); letter-spacing: 0.02em; }

.site-header-actions { display: flex; align-items: center; gap: 12px; }
.header-qq { font-size: 13px; color: var(--text-2); }

.btn-ghost {
    display: inline-flex;
    align-items: center;
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 600;
    color: var(--brand);
    background: var(--brand-soft);
    border: 1px solid transparent;
    border-radius: var(--r-full);
    text-decoration: none;
    transition: background 0.25s var(--ease-out), color 0.25s var(--ease-out), transform 0.2s var(--ease-out);
}
.btn-ghost:hover { background: color-mix(in srgb, var(--brand-soft) 60%, var(--brand)); color: #fff; transform: translateY(-1px); }

/* ---------- 顶部提示条 ---------- */
.notice {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 12px;
    background: linear-gradient(90deg, var(--brand-soft), #f2f8ff);
    border: 1px solid color-mix(in srgb, var(--brand) 18%, var(--line));
    border-radius: var(--r-md);
    padding: 12px 20px;
    margin-bottom: 20px;
    font-size: 13.5px;
    color: var(--text-2);
    text-align: center;
}
.notice-icon { color: var(--brand); flex-shrink: 0; }
.notice strong { color: var(--brand-strong); }
.notice-qq { color: var(--accent); font-weight: 600; text-decoration: none; }
.notice-qq:hover { text-decoration: underline; }

/* ---------- Hero 区 ---------- */
.hero {
    text-align: center;
    padding: 40px 0 8px;
    animation: rise 0.5s var(--ease-out) both;
}

.hero-eyebrow {
    display: inline-block;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--brand);
    background: var(--brand-soft);
    border: 1px solid color-mix(in srgb, var(--brand) 20%, transparent);
    border-radius: var(--r-full);
    padding: 4px 14px;
    margin-bottom: 16px;
}

.hero h1 {
    font-size: clamp(1.75rem, 4.5vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.25;
    color: var(--text);
    margin-bottom: 12px;
}

.hero-sub {
    font-size: clamp(0.92rem, 1.8vw, 1.05rem);
    color: var(--text-2);
    max-width: 640px;
    margin: 0 auto 20px;
}
.hero-sub .price-range { color: var(--accent); font-weight: 700; }

/* 快捷入口 */
.quick-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }

.quick-link {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-2);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-full);
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    transition: all 0.25s var(--ease-out);
}
.quick-link:hover { color: var(--brand); border-color: var(--brand); background: var(--brand-soft); transform: translateY(-1px); }

/* ---------- 搜索区 ---------- */
.search-container {
    position: relative;
    display: flex;
    align-items: center;
    max-width: 580px;
    margin: 0 auto 8px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-full);
    box-shadow: var(--shadow-md);
    padding: 4px 8px 4px 18px;
    transition: border-color 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}
.search-container:focus-within {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 15%, transparent), var(--shadow-md);
}
.search-icon { color: var(--text-3); flex-shrink: 0; }

.search-container input[type="text"] {
    flex: 1;
    height: 44px;
    padding: 0 12px;
    font-size: 15px;
    border: none;
    outline: none;
    background: transparent;
    color: var(--text);
}
.search-container input::placeholder { color: var(--text-3); }

.search-hint {
    flex-shrink: 0;
    font-family: inherit;
    font-size: 11.5px;
    color: var(--text-3);
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    padding: 3px 8px;
    margin-right: 6px;
}

/* 搜索反馈 */
.result-info {
    max-width: 580px;
    margin: 6px auto 0;
    text-align: center;
    font-size: 13px;
    color: var(--text-2);
    animation: fade 0.25s var(--ease-out) both;
}
.result-info.is-empty { color: var(--accent); font-weight: 600; }

/* ---------- 筛选面板 ---------- */
.filter-panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-sm);
    padding: 24px;
    margin-bottom: 28px;
}

.title_pro {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 18px;
    padding-left: 12px;
    border-left: 4px solid var(--brand);
    border-radius: 2px;
}

.nav-group { margin-bottom: 18px; }
.nav-group:last-child { margin-bottom: 0; }

.nav-group-title {
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--text-3);
    margin-bottom: 10px;
}

.province ul {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
    gap: 8px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.province button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 36px;
    padding: 0 14px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text-2);
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--r-full);
    cursor: pointer;
    transition: all 0.25s var(--ease-out);
}
.province button:hover {
    color: var(--brand);
    border-color: var(--brand);
    background: var(--brand-soft);
    transform: translateY(-1px);
}
.province button.active {
    color: #fff;
    background: var(--brand);
    border-color: var(--brand);
    box-shadow: 0 4px 12px color-mix(in srgb, var(--brand) 35%, transparent);
}

/* ---------- 价格表格 ---------- */
.section {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-sm);
    padding: 8px;
    margin-bottom: 24px;
    animation: rise 0.4s var(--ease-out);
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    text-align: left;
    padding: 14px 18px 12px;
    margin: 0 0 8px;
    border-left: 4px solid var(--brand);
    border-radius: 2px;
    background: linear-gradient(90deg, var(--brand-soft), transparent 60%);
}

/* 表格水平滚动容器：
   注意：桌面端不设 overflow，保证表头 position:sticky 相对视口吸顶；
   移动端才启用 overflow-x（见媒体查询），此时表头吸顶降级为固定末列（右列仍固定） */
.table-scroll {
    -webkit-overflow-scrolling: touch;
    border-radius: var(--r-md);
}

.cloudtable-info {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-variant-numeric: tabular-nums;
}

.cloudtable-info th {
    background: #fafbfc;
    padding: 13px 16px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-2);
    text-align: center;
    border-bottom: 1px solid #eef1f5;
    white-space: nowrap;
}

.cloudtable-info td {
    padding: 12px 16px;
    font-size: 13.5px;
    color: var(--text);
    border-bottom: 1px solid #f4f6fa;
    text-align: center;
    transition: background-color 0.2s var(--ease-out);
}

.cloudtable-info tbody tr:hover td { background: var(--brand-soft); }
.cloudtable-info tbody tr:last-child td { border-bottom: none; }

/* 柔和细条纹（方案 2）：由 JS 按"可见行"驱动（.is-alt），
   筛选/搜索/分区后依然规则交替，避免 :nth-child 按隐藏行占位导致连色 */
.cloudtable-info tbody tr.is-alt td { background: #f8fafc; }

/* 价格徽章 */
.price {
    display: inline-block;
    padding: 2px 10px;
    font-weight: 700;
    color: var(--brand-strong);
    background: var(--brand-soft);
    border-radius: 999px;
    font-size: 14.5px;
    white-space: nowrap;
}

/* 表头吸顶到视口最顶部 + 固定最后一列 */
.cloudtable-info thead tr { position: sticky; top: 0; z-index: 20; box-shadow: 0 1px 0 var(--line); }
.cloudtable-info tbody tr td:last-child,
.cloudtable-info thead tr th:last-child {
    position: sticky;
    right: 0;
    background: var(--surface);
    z-index: 10;
    box-shadow: -4px 0 12px rgba(16, 24, 40, 0.06);
}
.cloudtable-info thead tr th:last-child { top: 0; z-index: 30; background: #fafbfc; }
/* 固定末列背景与斑马纹/Hover 同步 */
.cloudtable-info tbody tr.is-alt td:last-child { background: #f8fafc; }
.cloudtable-info tbody tr:hover td:last-child { background: var(--brand-soft); }

/* 购买按钮 */
.product-info-btn { display: flex; justify-content: center; }
.product-info-btn a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 30px;
    padding: 0 14px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    background: var(--brand);
    border: none;
    border-radius: var(--r-full);
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.25s var(--ease-out);
}
.product-info-btn a:hover {
    background: var(--brand-strong);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px color-mix(in srgb, var(--brand) 35%, transparent);
}

/* ---------- 回到顶部 ---------- */
.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 200;
    width: 44px;
    height: 44px;
    font-size: 18px;
    color: var(--brand);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 50%;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: all 0.25s var(--ease-out);
}
.back-to-top:hover { color: #fff; background: var(--brand); border-color: var(--brand); transform: translateY(-2px); }

/* ---------- 动效 ---------- */
@keyframes rise {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
    .container { padding: 16px; }
    .province ul { grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); }
}

@media (max-width: 768px) {
    .container { padding: 12px; }
    .hero { padding-top: 28px; }
    .header-qq { display: none; }
    .search-hint { display: none; }
    .filter-panel { padding: 16px; }
    .province ul { grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 6px; }
    .province button { height: 32px; font-size: 12.5px; padding: 0 10px; }
    .section-title { font-size: 17px; }
    /* 移动端启用水平滚动容器（表头吸顶降级为固定末列） */
    .table-scroll { overflow-x: auto; }
    .cloudtable-info { min-width: 720px; white-space: nowrap; }
    .cloudtable-info th, .cloudtable-info td { padding: 10px 12px; font-size: 12.5px; }
    .product-info-btn a { padding: 0 10px; font-size: 12px; }
    .back-to-top { right: 16px; bottom: 16px; width: 40px; height: 40px; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.6rem; }
    .notice { font-size: 12.5px; padding: 10px 14px; }
    .province ul { grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); }
    .quick-link { font-size: 12px; padding: 5px 12px; }
}
