/* ==========================================================================
   套餐参数 · 公共样式
   --------------------------------------------------------------------------
   对应模板片段 template/package-plan.html（{{template "dnsPackagePlan" . }}），
   DNS_Product.html 与 DNS_table.html 两个页面共用这一份 HTML + 这一份 CSS，
   改一处两页同步，不会再出现"两个页面的套餐表不一样"的情况。

   来源：从 DNS_Product.css 里按"套餐参数区块 + 它要用到的公共件"整段搬过来：
     1) .dp-btn 系列——套餐表下方的行动按钮要用（ --primary-blue 由 global.css 提供）
     2) .main-center / .dp-section-title——套餐区块的版心与章节标题
     3) .taocan-* / .dp-table-*——套餐区块自身，含窄屏横向滚动与首列吸附
   ========================================================================== */

/* ---------------- 按钮（首屏 CTA、套餐区块下方行动按钮共用） ---------------- */
.dp-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 26px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.dp-btn-primary {
    background: linear-gradient(135deg, #1e88e5, #1565c0);
    color: #fff;
    box-shadow: 0 8px 20px rgba(30, 136, 229, 0.32);
}

.dp-btn-primary:hover {
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 14px 26px rgba(30, 136, 229, 0.42);
}

.dp-btn-ghost {
    background: #fff;
    border: 1px solid #90caf9;
    color: var(--primary-blue);
}

.dp-btn-ghost:hover {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    color: #fff;
    transform: translateY(-3px);
}

/* ---------------- 版心与章节标题 ---------------- */
.main-center {
    max-width: 1200px!important;
    margin: 0 auto;
}

.dp-section-title {
    position: relative;
    margin: 0 auto 28px;
    padding-bottom: 12px;
    width: 100%;
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    color: #0f2c4d;
}

.dp-section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 48px;
    height: 3px;
    border-radius: 2px;
    background: linear-gradient(90deg, #1e88e5, #64b5f6);
}

/* ---------------- 套餐参数区块底色 ---------------- */
.taocan {
    padding: 56px 0 72px;
    background: linear-gradient(180deg, #f5f9ff 0%, #e9f2fb 100%);
}

/* 套餐推荐横幅（保留：需要时不改动共用表格就能挂回去） */
.taocan-banner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 36px;
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    color: #fff;
    background:
        linear-gradient(100deg, rgba(13, 71, 161, 0.94) 0%, rgba(30, 136, 229, 0.88) 100%),
        url(../img/DNS_Product/footer1.webp) center / cover no-repeat;
    box-shadow: 0 16px 36px rgba(13, 71, 161, 0.24);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.taocan-banner:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 48px rgba(13, 71, 161, 0.32);
}

.taocan-banner-body h3 {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 700;
}

.taocan-banner-body p {
    margin: 0;
    max-width: 620px;
    font-size: 13px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
}

.taocan-banner-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 26px;
    border-radius: 50px;
    background: #fff;
    color: var(--primary-blue);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

/* ---------------- 套餐参数：功能对比表 ---------------- */
.taocan-subtitle {
    margin: -8px auto 26px;
    max-width: 720px;
    text-align: center;
    font-size: 13px;
    line-height: 1.8;
    color: #6b7a90;
}

/* 外层容器：圆角 + 阴影 + 窄屏横向滚动 */
.dp-table-wrap {
    max-width: 960px;
    margin: 0 auto;
    border-radius: 18px;
    background: #fff;
    border: 1px solid #e6edf6;
    box-shadow: 0 12px 30px rgba(15, 42, 74, 0.08);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.dp-table {
    width: 100%;
    min-width: 660px;
    border-collapse: collapse;
    font-size: 14px;
}

/* 表格标题只给读屏软件，视觉上由 .dp-section-title 承担 */
.dp-table-caption {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* 表头 */
.dp-table thead th {
    padding: 16px 14px;
    font-weight: 600;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    background: linear-gradient(135deg, #1565c0 0%, #1e88e5 100%);
}

.dp-table thead th.dp-table-feature {
    text-align: left;
    padding-left: 24px;
    border-top-left-radius: 16px;
}

.dp-table thead th:last-child {
    border-top-right-radius: 16px;
}

.dp-table-plan {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
}

.dp-table-plan i {
    font-size: 11px;
    color: #ffd54f;
}

/* 推荐列：整列淡蓝底 */
.dp-table-col-hot {
    background: linear-gradient(135deg, #0d47a1 0%, #1565c0 100%);
}

/* 行标题 */
.dp-table tbody th {
    padding: 14px 24px;
    font-weight: 600;
    color: #33415c;
    text-align: left;
    background: #f7fafd;
    border-bottom: 1px solid #eef1f6;
    white-space: nowrap;
}

/* 数据单元格 */
.dp-table tbody td {
    padding: 14px;
    text-align: center;
    color: #546e7a;
    border-bottom: 1px solid #eef1f6;
}

.dp-table tbody tr:last-child th,
.dp-table tbody tr:last-child td {
    border-bottom: none;
}

.dp-table tbody tr {
    transition: background-color 0.22s ease;
}

.dp-table tbody tr:hover {
    background-color: rgba(30, 136, 229, 0.06);
}

.dp-cell-hot {
    background: rgba(30, 136, 229, 0.07);
}

/* 支持 / 不支持 图标 */
.dp-table .dp-yes,
.dp-table .dp-no {
    font-size: 17px;
    line-height: 1;
    vertical-align: middle;
}

.dp-table .dp-yes {
    color: #1e88e5;
}

.dp-table .dp-no {
    color: #cfd8dc;
}

.dp-table-tip {
    display: none;
    margin: 10px 0 0;
    text-align: center;
    font-size: 12px;
    color: #90a4ae;
}

/* 表格下方行动按钮 */
.taocan-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-top: 26px;
}

/* ---------------- 响应式 ---------------- */
/* 窄屏：横向滚动 + 首列吸附，并提示可滑动 */
@media (max-width: 992px) {
    .dp-table-tip {
        display: block;
    }
}

@media (max-width: 768px) {
    .dp-table {
        min-width: 560px;
    }

    .dp-table thead th,
    .dp-table tbody th,
    .dp-table tbody td {
        padding: 12px 14px;
        font-size: 13px;
    }

    /* 首列吸附，滑动时功能名始终可见 */
    .dp-table thead th.dp-table-feature,
    .dp-table tbody th {
        position: sticky;
        left: 0;
        z-index: 2;
    }

    .dp-table thead th.dp-table-feature {
        z-index: 3;
    }

    .taocan-actions .dp-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .dp-btn {
        width: 100%;
        justify-content: center;
    }

    .taocan-banner {
        padding: 24px;
    }
}

/* 尊重系统的"减少动效"设置 */
@media (prefers-reduced-motion: reduce) {
    .dp-btn,
    .taocan-banner {
        transition: none;
    }

    .dp-btn-primary:hover,
    .dp-btn-ghost:hover,
    .taocan-banner:hover {
        transform: none;
    }
}
