:root {
    /* 核心色彩 - 深空科技风 */
    --bg-deep: #050510;
    /* 极深蓝黑背景 */
    --bg-card: rgba(20, 20, 35, 0.7);
    /* 半透明玻璃卡片 */
    --bg-header: rgba(10, 10, 25, 0.95);
    /* 吸顶表头背景，深色不透明度高 */

    --primary: #f67219;
    /* 品牌橙 - 主色调 */
    --primary-glow: rgba(246, 114, 25, 0.18);

    --accent: #159b9d;
    /* 青绿色 - 辅助强调 */
    --accent-glow: rgba(21, 155, 157, 0.18);

    --highlight: #f67219;
    /* 品牌橙 - 推荐态 */

    --text-main: #f8fafc;
    /* 亮白 */
    --text-muted: #94a3b8;
    /* 灰蓝 */

    --border: rgba(255, 255, 255, 0.1);
    --border-hover: rgba(255, 255, 255, 0.2);

    --success: #10b981;
    /* 翠绿 */
    --danger: #ef4444;
    /* 绯红 */
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'PingFang SC', 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-deep);
    background-image:
        radial-gradient(circle at 15% 50%, rgba(246, 114, 25, 0.06), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(21, 155, 157, 0.05), transparent 25%);
    background-attachment: fixed;
    /* 背景固定，营造深邃感 */
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
    position: relative;
    z-index: 1;
}

/* 头部设计 */
header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

/* 标题流光效果 */
h1 {
    font-size: 3rem;
    font-weight: 800;
    margin: 0 0 16px 0;
    background: linear-gradient(135deg, #fff 0%, #a5b4fc 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(165, 180, 252, 0.3);
    letter-spacing: 1px;
}

h2 {
    font-size: 1.5rem;
    color: var(--accent);
    margin: 0 0 12px 0;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 300;
}

/* 顶部导航导航 */
.top-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.nav-btn {
    padding: 10px 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 30px;
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.nav-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
    transform: translateY(-2px);
}

.nav-btn.active {
    background: var(--primary);
    border-color: var(--primary);
}

/* 报价表容器 - 玻璃拟态 */
.pricing-wrapper {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    overflow: auto;
    position: relative;
}

/* 滚动条美化 */
.pricing-wrapper::-webkit-scrollbar {
    height: 8px;
    width: 8px;
}

.pricing-wrapper::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}

.pricing-wrapper::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.pricing-wrapper::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.pricing-table {
    width: 100%;
    min-width: 1100px;
    border-collapse: separate;
    border-spacing: 0;
}

/* 表头设计 */
.pricing-table thead th {
    position: sticky;
    top: 0;
    z-index: 20;
    background: var(--bg-header);
    backdrop-filter: blur(10px);
    padding: 30px 20px;
    text-align: center;
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
}

/* 功能列表头 */
.pricing-table thead th:first-child {
    left: 0;
    z-index: 30;
    text-align: left;
    width: 280px;
    min-width: 280px;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-main);
    background: var(--bg-header);
    /* 确保不透明遮挡内容 */
    border-right: 1px solid var(--border);
}

/* 版本列宽度调小 */
.pricing-table thead th:not(:first-child) {
    width: 180px;
    min-width: 180px;
}

.plan-name {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-main);
}

.computing-power {
    display: inline-block;
    font-size: 1.2rem;
    color: var(--accent);
    border: 1px solid rgba(21, 155, 157, 0.28);
    background: rgba(21, 155, 157, 0.08);
    padding: 4px 22px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.plan-price {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

/* 推荐/高亮列特殊样式 (如企业版) */
.col-highlight .plan-name {
    color: var(--highlight);
    position: relative;
    display: block;
    width: fit-content;
    margin: 0 auto 8px auto;
}

/* 给高亮列添加一个小皇冠或光点装饰 */
.col-highlight .plan-name::after {
    content: '';
    position: absolute;
    top: -10px;
    right: -10px;
    width: 6px;
    height: 6px;
    background: var(--highlight);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--highlight);
}

/* 表格内容主体 */
.pricing-table tbody td {
    padding: 18px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    text-align: center;
    font-size: 0.95rem;
    transition: background-color 0.2s;
}

/* 鼠标悬停行高亮 */
.pricing-table tbody tr:hover td {
    background-color: rgba(255, 255, 255, 0.03);
    color: var(--text-main);
}

/* 首列固定及样式 */
.pricing-table tbody td:first-child {
    position: sticky;
    left: 0;
    z-index: 10;
    background: #0d0d18;
    /* 稍亮的深色背景，模拟覆盖 */
    border-right: 1px solid var(--border);
    color: var(--text-main);
    font-weight: 500;
    font-size: 1.1rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    text-align: left;
}

.pricing-table tbody tr:hover td:first-child {
    background-color: #151525;
}

/* 状态图标 */
.mark-check {
    color: var(--success);
    font-size: 1.2rem;
    text-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
    /* 绿色荧光 */
}

/* 当 check 包含文字时 */
span.mark-check:not(:empty):not(:contains("✓")) {
    color: var(--text-main);
    font-weight: 600;
    text-shadow: none;
    font-size: 1rem;
}

/* 特殊处理单纯的对号，如果不带文字 */
/* 这里我们利用CSS选择器无法精确匹配文本内容的限制，
   通常依赖HTML结构。但由于HTML已经写死，我们尽量通用。
   如果内容是 "✓"，它看起来就是一个发光的绿色对号。
   如果内容是 "不限量"，它就是白色高亮文字。
*/

.mark-cross {
    color: #475569;
    /* 深灰 */
    font-size: 1.2rem;
}

.feature-info {
    text-align: center;
    color: var(--accent);
    font-size: 0.9rem;
    background: rgba(21, 155, 157, 0.05);
    border-radius: 4px;
}

/* 底部附注区 - 科技面板风格 */
footer {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}

.additional-info,
.notes {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 16px;
    margin-bottom: 24px;
}

.additional-info h3,
.notes h3 {
    color: var(--text-main);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.additional-info h3::before,
.notes h3::before {
    content: '';
    display: block;
    width: 3px;
    height: 18px;
    background: var(--accent);
    margin-right: 12px;
    box-shadow: 0 0 10px var(--accent);
}

.notes ol {
    margin: 0;
    padding-left: 24px;
    color: var(--text-muted);
}

.notes li {
    margin-bottom: 10px;
}

.footer-disclaimer {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 40px;
    opacity: 0.7;
    font-weight: 300;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    header {
        margin-bottom: 30px;
    }

    h1 {
        font-size: 1.8rem;
    }

    /* 调整表头吸顶的高度和内边距，避免遮挡太多 */
    .pricing-table thead th {
        padding: 12px 6px;
    }

    /* 首列固定宽度增加，文字调大 */
    .pricing-table thead th:first-child,
    .pricing-table tbody td:first-child {
        width: 100px;
        min-width: 100px;
        font-size: 0.9rem;
        padding: 12px 8px;
        line-height: 1.3;
        white-space: normal;
        text-align: left;
    }

    /* 版本列宽度调小 */
    .pricing-table thead th:not(:first-child) {
        width: 150px;
        min-width: 150px;
    }

    .pricing-table tbody td {
        padding: 10px 4px;
        font-size: 0.85rem;
    }

    .plan-name {
        font-size: 0.95rem;
    }

    .plan-price {
        font-size: 0.85rem;
    }

    .computing-power {
        font-size: 1.1rem;
        padding: 2px 16px;
    }

    /* 移动端增强滚动提示 */
    .pricing-wrapper {
        border-radius: 12px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    }

    /* 显示滑动提示 - 强制显示，去除复杂动画初始状态 */
    .scroll-hint {
        display: block !important;
        position: fixed;
        bottom: 30px;
        left: 50%;
        transform: translate(-50%, 0);
        /* 初始位置固定 */
        background: rgba(246, 114, 25, 0.95);
        color: #fff;
        padding: 10px 24px;
        border-radius: 30px;
        font-size: 0.9rem;
        font-weight: 500;
        z-index: 2147483647;
        /* Max Z-Index */
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
        white-space: nowrap;
        opacity: 1;
        /* 默认可见 */
        animation: hintDisappear 1s ease-in forwards 10s;
        /* 10秒后消失 */
    }
}

/* 桌面端默认隐藏提示 */
.scroll-hint {
    display: none;
}

@keyframes hintDisappear {
    from {
        opacity: 1;
        pointer-events: none;
    }

    to {
        opacity: 0;
        pointer-events: none;
        visibility: hidden;
    }
}

@media (max-width: 700px) {
    .top-nav {
        flex-wrap: wrap;
        gap: 8px;
    }

    .nav-btn {
        padding: 8px 14px;
        font-size: 0.85rem;
    }
}
