/* ============================================================
   page-taocan-xiangqing.css — 套餐与规格详情页
   ============================================================ */

/* ── 锚点偏移（避免被固定顶栏遮住） ── */
#plan-standard,
#plan-pro,
#price-table,
#addons,
#datacenters {
    scroll-margin-top: 96px;
}

/* ── 英雄区 ── */
.tx-hero {
    background:
        linear-gradient(160deg,
            rgba(232, 244, 255, 0.94) 0%,
            rgba(215, 234, 255, 0.90) 45%,
            rgba(228, 243, 255, 0.93) 100%);
    backdrop-filter: blur(22px) saturate(1.4);
    -webkit-backdrop-filter: blur(22px) saturate(1.4);
    padding: clamp(72px, 10vw, 118px) 0 clamp(48px, 6vw, 72px);
    overflow: hidden;
    position: relative;
    -webkit-mask-image: linear-gradient(to bottom, black 72%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 72%, transparent 100%);
}

.tx-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(26, 111, 255, 0.055) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
}

.tx-hero::after {
    content: '';
    position: absolute;
    top: -60px; right: -80px;
    width: 400px; height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(147, 197, 253, 0.26) 0%, transparent 70%);
    pointer-events: none;
}

.tx-hero__inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
}

.tx-hero__badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 14px;
    border-radius: 999px;
    background: rgba(26, 111, 255, 0.08);
    border: 1px solid rgba(26, 111, 255, 0.20);
    color: #1a6fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.tx-hero__title {
    margin: 0;
    font-size: clamp(30px, 5vw, 50px);
    font-weight: 860;
    color: #0f1d38;
    line-height: 1.1;
    letter-spacing: -0.025em;
}

.tx-hero__sub {
    margin: 0;
    font-size: 16px;
    color: rgba(15, 36, 80, 0.52);
    font-weight: 500;
    max-width: 520px;
    text-align: center;
}

/* ── 主体容器 ── */
.tx-body {
    padding-top: 0;
    padding-bottom: 100px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ── 机型对比卡片 ── */
.tx-plans {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 8px;
}

@media (max-width: 800px) {
    .tx-plans { grid-template-columns: 1fr; }
}

.tx-plan-link {
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: 22px;
}

.tx-plan-link:focus-visible {
    outline: 3px solid #1a6fff;
    outline-offset: 4px;
    border-radius: 22px;
}

.tx-plan {
    height: 100%;
    padding: 28px 26px 24px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(16px) saturate(1.4);
    -webkit-backdrop-filter: blur(16px) saturate(1.4);
    border: 1px solid rgba(200, 220, 245, 0.70);
    box-shadow: 0 4px 24px rgba(15, 27, 50, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.tx-plan-link:hover .tx-plan {
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(26, 111, 255, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.95);
    border-color: rgba(26, 111, 255, 0.28);
}

.tx-plan--featured {
    background: linear-gradient(145deg, rgba(235, 244, 255, 0.92) 0%, rgba(218, 236, 255, 0.88) 100%);
    border-color: rgba(26, 111, 255, 0.22);
}

.tx-plan-link--featured:hover .tx-plan--featured {
    box-shadow: 0 12px 40px rgba(26, 111, 255, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.95);
    border-color: rgba(26, 111, 255, 0.40);
}

.tx-plan__header {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tx-plan__badge {
    display: inline-flex;
    align-items: center;
    width: max-content;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    background: rgba(26, 111, 255, 0.09);
    border: 1px solid rgba(26, 111, 255, 0.18);
    color: #1a6fff;
}

.tx-plan__badge--featured {
    background: rgba(99, 102, 241, 0.09);
    border-color: rgba(99, 102, 241, 0.22);
    color: #6366f1;
}

.tx-plan__name {
    margin: 8px 0 0;
    font-size: 22px;
    font-weight: 860;
    color: #0d2240;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.tx-plan__config {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: rgba(15, 36, 80, 0.45);
}

/* 规格列表 */
.tx-plan__specs {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.tx-plan__specs li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14.5px;
    color: rgba(15, 36, 80, 0.72);
    line-height: 1.4;
}

.tx-plan__specs li strong {
    color: #0d2240;
    font-weight: 750;
}

.tx-spec-icon {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tx-spec-icon i {
    width: 15px;
    height: 15px;
}

.tx-spec-icon--blue   { background: rgba(26,  111, 255, 0.10); color: #1a6fff; }
.tx-spec-icon--teal   { background: rgba(13,  148, 136, 0.10); color: #0d9488; }
.tx-spec-icon--indigo { background: rgba(99,  102, 241, 0.10); color: #6366f1; }
.tx-spec-icon--green  { background: rgba(34,  197,  94, 0.10); color: #16a34a; }
.tx-spec-icon--orange { background: rgba(249, 115,  22, 0.10); color: #ea580c; }

/* 卡片底部 */
.tx-plan__foot {
    padding-top: 16px;
    border-top: 1px solid rgba(26, 111, 255, 0.10);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tx-plan__desc {
    margin: 0;
    font-size: 13.5px;
    color: rgba(15, 36, 80, 0.50);
    line-height: 1.55;
}

.tx-plan__cta {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13.5px;
    font-weight: 800;
    color: #1a6fff;
    transition: gap 0.18s ease;
}

.tx-plan-link:hover .tx-plan__cta {
    gap: 8px;
}

.tx-plan__cta--featured {
    color: #6366f1;
}

/* ── 通用内容区块 ── */
.tx-section {
    padding: 28px 28px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(16px) saturate(1.4);
    -webkit-backdrop-filter: blur(16px) saturate(1.4);
    border: 1px solid rgba(200, 220, 245, 0.70);
    box-shadow: 0 4px 18px rgba(15, 27, 50, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tx-section__head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.tx-section__icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.tx-section__icon--blue   { background: rgba(26,  111, 255, 0.10); color: #1a6fff; }
.tx-section__icon--teal   { background: rgba(13,  148, 136, 0.10); color: #0d9488; }
.tx-section__icon--indigo { background: rgba(99,  102, 241, 0.10); color: #6366f1; }
.tx-section__icon--orange { background: rgba(249, 115,  22, 0.10); color: #ea580c; }

.tx-section__title {
    margin: 0 0 4px;
    font-size: 18px;
    font-weight: 800;
    color: #0d2240;
    letter-spacing: -0.01em;
}

.tx-section__sub {
    margin: 0;
    font-size: 13.5px;
    color: rgba(15, 36, 80, 0.50);
    line-height: 1.55;
}

/* ── 价格表 ── */
.tx-table-wrap {
    overflow-x: auto;
    border-radius: 14px;
    border: 1px solid rgba(200, 220, 245, 0.60);
}

.tx-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14.5px;
}

.tx-table thead tr {
    background: rgba(235, 244, 255, 0.80);
}

.tx-table th {
    padding: 12px 16px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: rgba(15, 36, 80, 0.55);
    text-align: center;
    border-bottom: 1px solid rgba(200, 220, 245, 0.60);
}

.tx-table th:first-child { text-align: left; }

.tx-table tbody tr {
    transition: background 0.15s ease;
}

.tx-table tbody tr:hover {
    background: rgba(235, 244, 255, 0.50);
}

.tx-table tbody tr:not(:last-child) {
    border-bottom: 1px solid rgba(200, 220, 245, 0.45);
}

.tx-table tbody th {
    padding: 14px 16px;
    font-size: 14px;
    font-weight: 700;
    color: #0d2240;
    text-align: left;
    background: transparent;
    white-space: nowrap;
}

.tx-table tbody td {
    padding: 14px 16px;
    text-align: center;
    font-weight: 700;
    color: #1a3060;
    font-size: 14.5px;
}

.tx-table-plan-label {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.05em;
    background: rgba(26, 111, 255, 0.09);
    color: #1a6fff;
    margin-right: 6px;
    vertical-align: middle;
}

.tx-table-plan-label--pro {
    background: rgba(99, 102, 241, 0.09);
    color: #6366f1;
}

.tx-table-caption {
    margin: 12px 0 0;
    font-size: 12.5px;
    color: rgba(15, 36, 80, 0.45);
    line-height: 1.55;
}

/* ── 购买规则列表 ── */
.tx-rules {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tx-rules li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14.5px;
    line-height: 1.65;
    color: rgba(15, 36, 80, 0.65);
}

.tx-rules li strong {
    color: #0d2240;
    font-weight: 750;
}

.tx-rules__icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 7px;
    background: rgba(13, 148, 136, 0.10);
    color: #0d9488;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}

/* ── 数据中心卡片 ── */
.tx-dc-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tx-dc-card {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 14px;
    background: rgba(235, 244, 255, 0.60);
    border: 1px solid rgba(26, 111, 255, 0.12);
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.tx-dc-card:hover {
    background: rgba(220, 237, 255, 0.80);
    border-color: rgba(26, 111, 255, 0.24);
    transform: translateY(-2px);
}

.tx-dc-flag {
    font-size: 20px;
    line-height: 1;
}

.tx-dc-name {
    font-size: 14px;
    font-weight: 800;
    color: #1a3060;
}

/* ── 底部 CTA ── */
.tx-cta {
    text-align: center;
    padding: 36px 24px;
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(235, 244, 255, 0.80) 0%, rgba(218, 236, 255, 0.70) 100%);
    border: 1px solid rgba(26, 111, 255, 0.14);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.tx-cta__text {
    margin: 0;
    font-size: 16px;
    color: rgba(15, 36, 80, 0.58);
    font-weight: 500;
}

.tx-cta__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 13px 28px;
    border-radius: 999px;
    background: #1a6fff;
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    text-decoration: none;
    letter-spacing: -0.01em;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 16px rgba(26, 111, 255, 0.28);
}

.tx-cta__btn:hover {
    background: #1453d6;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(26, 111, 255, 0.35);
}

/* ── 响应式 ── */
@media (max-width: 640px) {
    .tx-section { padding: 20px 18px; }
    .tx-section__head { flex-direction: column; gap: 10px; }
    .tx-plans { gap: 14px; }
    .tx-plan { padding: 22px 18px 20px; }
    .tx-dc-grid { gap: 8px; }
    .tx-dc-card { padding: 8px 14px; }
}
