/* ==========================================================================
   域名注册官网 · 前台样式
   设计基调：企业级 SaaS / 蓝白 / 克制。无大面积渐变、无装饰性色块堆砌。
   ========================================================================== */

:root {
    --ds-brand: #165DFF;
    --ds-brand-hover: #0E42D2;
    --ds-brand-active: #0A34A6;
    --ds-brand-weak: #EDF3FF;
    --ds-brand-line: #BEDAFF;

    --ds-text: #1D2129;
    --ds-text-2: #4E5969;
    --ds-text-3: #86909C;
    --ds-text-4: #A9AEB8;

    --ds-line: #E5E8EF;
    --ds-line-2: #F0F2F5;
    --ds-bg: #FFFFFF;
    --ds-bg-soft: #F7F8FA;

    --ds-success: #00A870;
    --ds-success-weak: #E6F7F0;
    --ds-warning: #FF8F1F;
    --ds-warning-weak: #FFF3E5;
    --ds-danger: #E34D59;
    --ds-danger-weak: #FCE9EB;
    --ds-info: #165DFF;

    --ds-radius-s: 4px;
    --ds-radius: 6px;
    --ds-radius-l: 10px;
    --ds-shadow: 0 1px 3px rgba(29, 33, 41, .06);
    --ds-shadow-l: 0 4px 16px rgba(29, 33, 41, .08);
}

* { box-sizing: border-box; }

html, body, div, span, h1, h2, h3, h4, h5, h6, p, a, em, img,
strong, ul, ol, li, form, label, table, tbody, thead, tr, th, td,
input, select, textarea, button, dl, dt, dd, header, footer, nav, section, article {
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
                 "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: var(--ds-text);
    background: var(--ds-bg);
    -webkit-font-smoothing: antialiased;
}

a { color: var(--ds-text); text-decoration: none; transition: color .15s; }
a:hover { color: var(--ds-brand); }
ul, ol { list-style: none; }
img { border: 0; max-width: 100%; vertical-align: middle; }
table { border-collapse: collapse; border-spacing: 0; width: 100%; }
input, select, textarea, button { font-family: inherit; font-size: inherit; outline: none; }

/* 移动端禁止横向滑动：任何超宽元素都不能把页面顶宽 */
html, body { max-width: 100%; overflow-x: hidden; }
.ds-wrap, .ds-header .ds-wrap, .ds-section, .ds-hero { max-width: 100%; }
table, .ds-table-wrap, .mc-table-wrap { max-width: 100%; }
textarea { max-width: 100%; }
button { cursor: pointer; border: 0; background: none; }

.ds-wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.ds-wrap-narrow { max-width: 960px; }

/* ---------------------------------- 顶部 --------------------------------- */

.ds-topbar {
    height: 34px;
    background: var(--ds-bg-soft);
    border-bottom: 1px solid var(--ds-line);
    color: var(--ds-text-3);
    font-size: 12px;
}
.ds-topbar .ds-wrap { display: flex; align-items: center; height: 34px; justify-content: space-between; }
.ds-topbar-left span { margin-right: 18px; }
.ds-topbar-right a { color: var(--ds-text-3); margin-left: 16px; }
.ds-topbar-right a:hover { color: var(--ds-brand); }

.ds-header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: 64px;
    background: #fff;
    border-bottom: 1px solid var(--ds-line);
}
.ds-header .ds-wrap {
    height: 64px;
    display: flex;
    align-items: center;
}
.ds-logo { display: flex; align-items: center; flex-shrink: 0; }
/* 站点 LOGO：取后台「站点配置 → 网站LOGO」 */
.ds-logo-img {
    display: block;
    height: 34px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
}

.ds-nav { display: flex; margin-left: 36px; flex: 1; }
.ds-nav > li { position: relative; }
.ds-nav > li > a {
    display: block;
    height: 64px;
    line-height: 64px;
    padding: 0 16px;
    font-size: 14px;
    color: var(--ds-text-2);
}
.ds-nav > li > a:hover, .ds-nav > li.is-active > a { color: var(--ds-brand); }
.ds-nav > li.is-active > a { font-weight: 500; }
.ds-nav > li.is-active > a::after {
    content: "";
    display: block;
    position: absolute;
    left: 16px; right: 16px; bottom: 0;
    height: 2px;
    background: var(--ds-brand);
}

/* 操作按钮（我的域名 / 控制台 / 登录 / 免费注册）始终靠右 */
.ds-header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-shrink: 0; margin-left: auto; }
.ds-header-user { display: flex; align-items: center; gap: 8px; }
.ds-header-user img { width: 28px; height: 28px; border-radius: 50%; }

/* --------------------------------- 按钮 --------------------------------- */

.ds-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 36px;
    padding: 0 16px;
    border-radius: var(--ds-radius);
    font-size: 14px;
    border: 1px solid transparent;
    transition: all .15s;
    white-space: nowrap;
}
.ds-btn-primary { background: var(--ds-brand); color: #fff; }
.ds-btn-primary:hover { background: var(--ds-brand-hover); color: #fff; }
.ds-btn-primary:active { background: var(--ds-brand-active); }
.ds-btn-outline { background: #fff; border-color: var(--ds-brand-line); color: var(--ds-brand); }
.ds-btn-outline:hover { border-color: var(--ds-brand); background: var(--ds-brand-weak); color: var(--ds-brand-hover); }
.ds-btn-default { background: #fff; border-color: var(--ds-line); color: var(--ds-text-2); }
.ds-btn-default:hover { border-color: var(--ds-text-4); color: var(--ds-text); }
.ds-btn-ghost { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .5); color: #fff; }
.ds-btn-ghost:hover { background: rgba(255, 255, 255, .26); color: #fff; }
.ds-btn-lg { height: 46px; padding: 0 26px; font-size: 15px; }
.ds-btn-sm { height: 30px; padding: 0 12px; font-size: 13px; }
.ds-btn-block { width: 100%; }
.ds-btn[disabled] { opacity: .55; cursor: not-allowed; }

.ds-link { color: var(--ds-brand); }
.ds-link:hover { color: var(--ds-brand-hover); text-decoration: underline; }

/* 蓝色主按钮：任何状态下文字统一为白色
   （含 a 标签的 link/visited、悬停、聚焦、激活、禁用、只读） */
.ds-btn-primary,
a.ds-btn-primary,
a.ds-btn-primary:link,
a.ds-btn-primary:visited,
button.ds-btn-primary,
.ds-btn-primary:hover,
.ds-btn-primary:focus,
.ds-btn-primary:focus-visible,
.ds-btn-primary:active,
.ds-btn-primary:visited:hover,
.ds-btn-primary[disabled],
.ds-btn-primary[disabled]:hover,
.ds-btn-primary[disabled]:focus,
.ds-btn-primary[disabled]:active,
.ds-btn-primary.is-disabled,
.ds-btn-primary.is-disabled:hover,
.ds-btn-primary.is-loading,
.ds-btn-primary.is-loading:hover {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}

/* --------------------------------- 区块 --------------------------------- */

.ds-section { padding: 64px 0; }
.ds-section-soft { background: var(--ds-bg-soft); }
.ds-section-head { margin-bottom: 32px; }
.ds-section-head.is-center { text-align: center; }
.ds-eyebrow {
    display: inline-block;
    font-size: 12px;
    letter-spacing: 1px;
    color: var(--ds-brand);
    background: var(--ds-brand-weak);
    border-radius: 3px;
    padding: 3px 8px;
    margin-bottom: 12px;
}
.ds-section-title { font-size: 26px; font-weight: 600; line-height: 1.4; letter-spacing: .2px; }
.ds-section-desc { margin-top: 10px; font-size: 14px; color: var(--ds-text-3); max-width: 640px; }
.ds-section-head.is-center .ds-section-desc { margin-left: auto; margin-right: auto; }

.ds-grid { display: grid; gap: 20px; }
.ds-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ds-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ds-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* --------------------------------- 卡片 --------------------------------- */

.ds-card {
    background: #fff;
    border: 1px solid var(--ds-line);
    border-radius: var(--ds-radius);
    transition: box-shadow .18s, border-color .18s;
}
.ds-card-hover:hover { box-shadow: var(--ds-shadow-l); border-color: var(--ds-brand-line); }
.ds-card-body { padding: 22px; }
.ds-card-title { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.ds-card-text { font-size: 13px; color: var(--ds-text-3); line-height: 1.75; }

.ds-icobox {
    width: 40px; height: 40px;
    border-radius: var(--ds-radius);
    background: var(--ds-brand-weak);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 14px;
    color: var(--ds-brand);
    font-weight: 600;
    font-size: 13px;
    border: 1px solid var(--ds-brand-line);
}

/* --------------------------------- 首页 --------------------------------- */

.ds-hero {
    background: linear-gradient(180deg, #F2F6FF 0%, #FFFFFF 100%);
    border-bottom: 1px solid var(--ds-line);
    padding: 66px 0 58px;
}
.ds-hero-title { font-size: 34px; font-weight: 600; line-height: 1.35; letter-spacing: .3px; }
.ds-hero-sub { margin-top: 14px; font-size: 15px; color: var(--ds-text-2); }
.ds-hero-tags { margin-top: 16px; display: flex; gap: 8px; flex-wrap: wrap; }
.ds-hero-tag {
    font-size: 12px; color: var(--ds-text-2);
    border: 1px solid var(--ds-line); background: #fff;
    border-radius: 3px; padding: 3px 10px;
}

.ds-searchbox {
    margin-top: 30px;
    background: #fff;
    border: 1px solid var(--ds-line);
    border-radius: var(--ds-radius-l);
    box-shadow: var(--ds-shadow-l);
    padding: 24px;
}
.ds-search-row { display: flex; gap: 12px; align-items: stretch; }
.ds-search-input {
    flex: 1 1 auto;
    min-width: 0;
    height: 48px;
    border: 1px solid var(--ds-line);
    border-radius: var(--ds-radius);
    padding: 0 16px;
    font-size: 15px;
    transition: border-color .15s;
}
.ds-search-input:focus { border-color: var(--ds-brand); }
.ds-search-input::placeholder { color: var(--ds-text-4); }
.ds-search-btn { height: 48px; padding: 0 30px; font-size: 15px; }

.ds-suffix-bar { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ds-suffix-label { font-size: 13px; color: var(--ds-text-3); margin-right: 2px; }
.ds-suffix-chip {
    display: inline-flex; align-items: center; gap: 5px;
    height: 28px; padding: 0 12px;
    border: 1px solid var(--ds-line);
    border-radius: 14px;
    font-size: 13px; color: var(--ds-text-2);
    background: #fff;
    cursor: pointer;
    user-select: none;
    transition: all .15s;
}
.ds-suffix-chip:hover { border-color: var(--ds-brand-line); }
.ds-suffix-chip.is-on {
    border-color: var(--ds-brand);
    background: var(--ds-brand-weak);
    color: var(--ds-brand-hover);
    font-weight: 500;
}
.ds-suffix-price { color: var(--ds-text-4); font-size: 12px; }

.ds-hero-note { margin-top: 14px; font-size: 12px; color: var(--ds-text-4); }

.ds-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--ds-line); }
.ds-stat { padding: 26px 20px; text-align: center; border-right: 1px solid var(--ds-line); }
.ds-stat:last-child { border-right: 0; }
.ds-stat-num { font-size: 26px; font-weight: 600; color: var(--ds-brand); line-height: 1.2; }
.ds-stat-num small { font-size: 14px; font-weight: 400; margin-left: 2px; }
.ds-stat-label { margin-top: 6px; font-size: 13px; color: var(--ds-text-3); }

/* ------------------------------ 热门后缀条 ------------------------------- */

.ds-hot { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.ds-hot-item {
    border: 1px solid var(--ds-line);
    border-radius: var(--ds-radius);
    background: #fff;
    padding: 16px 14px;
    text-align: center;
    transition: all .18s;
}
.ds-hot-item:hover { border-color: var(--ds-brand); box-shadow: var(--ds-shadow); }
.ds-hot-tld { font-size: 17px; font-weight: 600; }
.ds-hot-price { margin-top: 6px; font-size: 13px; color: var(--ds-danger); }
.ds-hot-note { margin-top: 2px; font-size: 12px; color: var(--ds-text-4); }

/* -------------------------------- 流程 ---------------------------------- */

.ds-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.ds-step { position: relative; padding: 0 24px; }
.ds-step:first-child { padding-left: 0; }
.ds-step-no {
    width: 30px; height: 30px; border-radius: 50%;
    background: var(--ds-brand-weak); color: var(--ds-brand);
    border: 1px solid var(--ds-brand-line);
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 600; margin-bottom: 12px;
}
.ds-step-title { font-size: 15px; font-weight: 600; }
.ds-step-text { margin-top: 6px; font-size: 13px; color: var(--ds-text-3); line-height: 1.7; }
.ds-step::after {
    content: "";
    position: absolute; top: 15px; right: 0;
    width: 24px; height: 1px; background: var(--ds-line);
}
.ds-step:last-child::after { display: none; }

/* -------------------------------- 表格 ---------------------------------- */

.ds-table { border: 1px solid var(--ds-line); border-radius: var(--ds-radius); overflow: hidden; background: #fff; }
.ds-table table th, .ds-table table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--ds-line-2); }
.ds-table table th { background: var(--ds-bg-soft); font-size: 13px; font-weight: 600; color: var(--ds-text-2); }
.ds-table table td { font-size: 13px; color: var(--ds-text-2); }
.ds-table table tbody tr:last-child td { border-bottom: 0; }
.ds-table table tbody tr:hover td { background: #FAFBFC; }
.ds-table .is-right { text-align: right; }
.ds-table .is-center { text-align: center; }
.ds-tld { font-weight: 600; color: var(--ds-text); }

/* 宽表在桌面端允许局部滚动，窄屏由 JS 转卡片后取消 */
.ds-result-scroll { overflow-x: auto; }

/* -------------------------------- 徽标 ---------------------------------- */

.ds-badge {
    display: inline-block;
    font-size: 12px;
    line-height: 18px;
    padding: 0 7px;
    border-radius: 3px;
    border: 1px solid transparent;
    white-space: nowrap;
}
.ds-badge-success { color: var(--ds-success); background: var(--ds-success-weak); border-color: #B9EAD9; }
.ds-badge-warning { color: var(--ds-warning); background: var(--ds-warning-weak); border-color: #FFDCAF; }
.ds-badge-danger  { color: var(--ds-danger);  background: var(--ds-danger-weak);  border-color: #F7C3C8; }
.ds-badge-info    { color: var(--ds-info);    background: var(--ds-brand-weak);   border-color: var(--ds-brand-line); }
.ds-badge-default { color: var(--ds-text-3);  background: var(--ds-line-2);       border-color: var(--ds-line); }

/* ------------------------------ 查询结果页 ------------------------------- */

.ds-query { padding: 28px 0 60px; }
.ds-query-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.ds-query-title { font-size: 20px; font-weight: 600; }
.ds-query-desc { font-size: 13px; color: var(--ds-text-3); margin-top: 4px; }

/* 列表页筛选条：桌面横排，窄屏自动纵向铺满 */
.ds-filter { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ds-filter .ds-input, .ds-filter .ds-select { width: auto; }
.ds-filter .ds-input { width: 180px; }
.ds-filter .ds-select { width: 150px; }

.ds-panel { background: #fff; border: 1px solid var(--ds-line); border-radius: var(--ds-radius); }
.ds-panel + .ds-panel { margin-top: 20px; }
.ds-panel-head {
    padding: 14px 20px;
    border-bottom: 1px solid var(--ds-line);
    display: flex; align-items: center; justify-content: space-between;
}
.ds-panel-title { font-size: 15px; font-weight: 600; }
.ds-panel-body { padding: 20px; }

.ds-form-row { display: flex; gap: 16px; flex-wrap: wrap; align-items: flex-start; }
.ds-field { display: flex; flex-direction: column; gap: 6px; }
.ds-field-label { font-size: 13px; color: var(--ds-text-2); font-weight: 500; }
.ds-input, .ds-select, .ds-textarea {
    height: 38px;
    border: 1px solid var(--ds-line);
    border-radius: var(--ds-radius);
    padding: 0 12px;
    background: #fff;
    color: var(--ds-text);
    width: 100%;
    transition: border-color .15s;
}
.ds-textarea { height: auto; padding: 10px 12px; resize: vertical; line-height: 1.7; }
.ds-input:focus, .ds-select:focus, .ds-textarea:focus { border-color: var(--ds-brand); }
.ds-input::placeholder, .ds-textarea::placeholder { color: var(--ds-text-4); }

.ds-result-row { display: flex; align-items: center; gap: 10px; }
.ds-domain-name { font-size: 15px; font-weight: 600; }
.ds-price { font-weight: 600; color: var(--ds-danger); }
.ds-price-muted { color: var(--ds-text-4); font-weight: 400; }

.ds-cartbar {
    position: sticky; bottom: 0;
    margin-top: 20px;
    background: #fff;
    border: 1px solid var(--ds-brand-line);
    border-radius: var(--ds-radius);
    box-shadow: var(--ds-shadow-l);
    padding: 14px 20px;
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; flex-wrap: wrap;
}
.ds-cartbar-info { font-size: 13px; color: var(--ds-text-3); }
.ds-cartbar-info strong { color: var(--ds-danger); font-size: 18px; font-weight: 600; margin: 0 2px; }
.ds-cartbar-actions { display: flex; gap: 10px; }

.ds-empty { padding: 56px 20px; text-align: center; color: var(--ds-text-4); font-size: 13px; }
.ds-empty-title { font-size: 15px; color: var(--ds-text-2); margin-bottom: 6px; }

/* --------------------------- 首页内嵌查询结果 ---------------------------- */

.ds-result { margin-top: 20px; text-align: left; scroll-margin-top: 16px; }
.ds-result[hidden] { display: none; }
.ds-result .ds-panel-head { gap: 10px; flex-wrap: wrap; }
.ds-result-count { font-size: 12px; font-weight: 400; color: var(--ds-text-3); margin-left: 6px; }
.ds-result-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.ds-result-foot {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; flex-wrap: wrap;
    padding: 12px 20px; border-top: 1px solid var(--ds-line);
    background: #FCFCFD; border-radius: 0 0 var(--ds-radius) var(--ds-radius);
    font-size: 13px; color: var(--ds-text-3);
}
.ds-result-foot strong { color: var(--ds-danger); font-size: 16px; font-weight: 600; margin: 0 2px; }
.ds-result-tip { padding: 16px 20px; }

/* -------------------------------- 方案 ---------------------------------- */

.ds-solu-nav { display: flex; gap: 8px; border-bottom: 1px solid var(--ds-line); margin-bottom: 28px; flex-wrap: wrap; }
.ds-solu-nav a {
    padding: 8px 16px;
    font-size: 14px;
    color: var(--ds-text-2);
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}
.ds-solu-nav a.is-active { color: var(--ds-brand); border-bottom-color: var(--ds-brand); font-weight: 500; }

.ds-solu-block { padding: 30px 0; border-bottom: 1px dashed var(--ds-line); }
.ds-solu-block:last-child { border-bottom: 0; }
.ds-solu-block h3 { font-size: 18px; font-weight: 600; margin-bottom: 10px; }
.ds-solu-block p { font-size: 14px; color: var(--ds-text-2); line-height: 1.9; margin-bottom: 12px; }
.ds-solu-list li { position: relative; padding-left: 16px; font-size: 13px; color: var(--ds-text-2); line-height: 2; }
.ds-solu-list li::before {
    content: ""; position: absolute; left: 0; top: 12px;
    width: 5px; height: 5px; border-radius: 50%; background: var(--ds-brand);
}

.ds-compare td:first-child { font-weight: 500; color: var(--ds-text); }

/* -------------------------------- 帮助 ---------------------------------- */

.ds-help-layout { display: grid; grid-template-columns: 220px 1fr; gap: 28px; padding: 32px 0 60px; align-items: start; }
.ds-help-side { position: sticky; top: 84px; }
.ds-help-cat { border: 1px solid var(--ds-line); border-radius: var(--ds-radius); background: #fff; overflow: hidden; }
.ds-help-cat-title { padding: 12px 16px; font-size: 13px; font-weight: 600; background: var(--ds-bg-soft); border-bottom: 1px solid var(--ds-line); }
.ds-help-cat a { display: block; padding: 10px 16px; font-size: 13px; color: var(--ds-text-2); border-bottom: 1px solid var(--ds-line-2); }
.ds-help-cat a:last-child { border-bottom: 0; }
.ds-help-cat a:hover, .ds-help-cat a.is-active { color: var(--ds-brand); background: var(--ds-brand-weak); }

.ds-help-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.ds-help-item {
    border: 1px solid var(--ds-line); border-radius: var(--ds-radius);
    padding: 16px 18px; background: #fff;
}
.ds-help-item:hover { border-color: var(--ds-brand-line); }
.ds-help-item h3 { font-size: 15px; font-weight: 500; margin-bottom: 6px; }
.ds-help-item p { font-size: 13px; color: var(--ds-text-3); line-height: 1.7; }
.ds-help-meta { margin-top: 10px; font-size: 12px; color: var(--ds-text-4); }

.ds-article { padding: 32px 0 60px; }
.ds-article-head { border-bottom: 1px solid var(--ds-line); padding-bottom: 18px; margin-bottom: 24px; }
.ds-crumb { font-size: 12px; color: var(--ds-text-4); margin-bottom: 12px; }
.ds-crumb a { color: var(--ds-text-3); }
.ds-article-title { font-size: 24px; font-weight: 600; line-height: 1.4; }
.ds-article-meta { margin-top: 10px; font-size: 12px; color: var(--ds-text-4); }
.ds-article-body { font-size: 14px; color: var(--ds-text-2); line-height: 2; }
.ds-article-body h3 { font-size: 16px; color: var(--ds-text); margin: 24px 0 10px; font-weight: 600; }
.ds-article-body p { margin-bottom: 14px; }
.ds-article-body ol { padding-left: 20px; list-style: decimal; margin-bottom: 14px; }
.ds-article-body ul { padding-left: 20px; list-style: disc; margin-bottom: 14px; }
.ds-article-body li { margin-bottom: 6px; }

/* -------------------------------- FAQ ---------------------------------- */

.ds-faq { border: 1px solid var(--ds-line); border-radius: var(--ds-radius); background: #fff; }
.ds-faq-item { border-bottom: 1px solid var(--ds-line-2); }
.ds-faq-item:last-child { border-bottom: 0; }
.ds-faq-q {
    padding: 16px 20px; cursor: pointer;
    font-size: 14px; font-weight: 500;
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.ds-faq-q:hover { color: var(--ds-brand); }
.ds-faq-q .ds-faq-arrow { color: var(--ds-text-4); font-size: 12px; transition: transform .18s; }
.ds-faq-item.is-open .ds-faq-arrow { transform: rotate(180deg); }
.ds-faq-a { display: none; padding: 0 20px 18px; font-size: 13px; color: var(--ds-text-3); line-height: 1.9; }

/* ------------------------------- 关于/联系 ------------------------------- */

.ds-about-block { display: grid; grid-template-columns: 200px 1fr; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--ds-line-2); }
.ds-about-block:last-child { border-bottom: 0; }
.ds-about-key { font-size: 14px; font-weight: 600; color: var(--ds-text); }
.ds-about-val { font-size: 14px; color: var(--ds-text-2); line-height: 1.9; }

.ds-contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ds-contact-card { border: 1px solid var(--ds-line); border-radius: var(--ds-radius); padding: 20px; background: #fff; }
.ds-contact-card h4 { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.ds-contact-card p { font-size: 13px; color: var(--ds-text-3); line-height: 1.9; }
.ds-contact-card .ds-num { font-size: 20px; font-weight: 600; color: var(--ds-brand); margin-top: 4px; }

/* -------------------------------- CTA ---------------------------------- */

.ds-cta { background: var(--ds-brand); color: #fff; padding: 46px 0; }
.ds-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.ds-cta-title { font-size: 22px; font-weight: 600; }
.ds-cta-desc { margin-top: 8px; font-size: 14px; opacity: .82; }

/* -------------------------------- 页脚 ---------------------------------- */

.ds-footer { background: #1D2129; color: #A9AEB8; font-size: 13px; padding: 44px 0 0; }
.ds-footer a { color: #A9AEB8; }
.ds-footer a:hover { color: #fff; }
.ds-footer-top { display: grid; grid-template-columns: 260px repeat(4, 1fr); gap: 24px; padding-bottom: 32px; }
.ds-footer-brand { margin-bottom: 12px; }
/* 页脚为深色底，LOGO 反白处理，避免深色 LOGO 看不清 */
.ds-footer-logo {
    display: block;
    height: 30px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: .92;
}
.ds-footer-intro { font-size: 12px; line-height: 1.9; color: #86909C; }
.ds-footer-col h5 { color: #fff; font-size: 13px; font-weight: 600; margin-bottom: 14px; }
.ds-footer-col li { margin-bottom: 9px; }
.ds-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .1);
    padding: 16px 0 24px;
    font-size: 12px;
    color: #86909C;
    display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}

/* -------------------------------- 提示 ---------------------------------- */

.ds-notice {
    border: 1px solid var(--ds-brand-line);
    background: var(--ds-brand-weak);
    border-radius: var(--ds-radius);
    padding: 12px 16px;
    font-size: 13px;
    color: var(--ds-text-2);
    line-height: 1.8;
}
.ds-notice-warning { border-color: #FFDCAF; background: var(--ds-warning-weak); }
.ds-notice-danger { border-color: #F7C3C8; background: var(--ds-danger-weak); }

.ds-loading { padding: 40px 0; text-align: center; color: var(--ds-text-4); font-size: 13px; }

.ds-pager { display: flex; gap: 6px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }
.ds-pager a, .ds-pager span {
    min-width: 32px; height: 32px; padding: 0 10px;
    border: 1px solid var(--ds-line); border-radius: var(--ds-radius);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 13px; color: var(--ds-text-2); background: #fff;
}
.ds-pager a:hover { border-color: var(--ds-brand); color: var(--ds-brand); }
.ds-pager .is-cur { background: var(--ds-brand); border-color: var(--ds-brand); color: #fff; }

/* ------------------------------ 浮层组件 ------------------------------- */

.ds-toast {
    display: none;
    position: fixed;
    left: 50%;
    top: 88px;
    transform: translateX(-50%);
    z-index: 9999;
    max-width: 80%;
    padding: 10px 18px;
    border-radius: var(--ds-radius);
    font-size: 13px;
    color: #fff;
    background: rgba(29, 33, 41, .92);
    box-shadow: var(--ds-shadow-l);
}
.ds-toast-ok { background: var(--ds-success); }
.ds-toast-err { background: var(--ds-danger); }

.ds-modal { display: none; position: fixed; inset: 0; z-index: 9998; }
.ds-modal-mask { position: absolute; inset: 0; background: rgba(29, 33, 41, .45); }
.ds-modal-box {
    position: relative;
    width: 480px;
    max-width: calc(100% - 32px);
    margin: 12vh auto 0;
    background: #fff;
    border-radius: var(--ds-radius-l);
    box-shadow: var(--ds-shadow-l);
    overflow: hidden;
}
.ds-modal-hd {
    padding: 14px 18px;
    border-bottom: 1px solid var(--ds-line);
    display: flex; align-items: center; justify-content: space-between;
    font-size: 15px; font-weight: 600;
}
.ds-modal-close { color: var(--ds-text-3); font-size: 20px; line-height: 1; }
.ds-modal-close:hover { color: var(--ds-text); }
.ds-modal-bd { padding: 18px; font-size: 13px; }

/* ------------------------------ 响应式 --------------------------------- */

/*
 * 断点说明
 * 1100px  平板横屏：栅格收敛
 * 900px   平板竖屏：侧栏落下、页脚两列
 * 760px   手机：全部纵向流式，表格转卡片，禁止横向滚动
 * 400px   小屏：进一步压缩留白与字号
 */

@media (max-width: 1100px) {
    .ds-grid-4 { grid-template-columns: repeat(2, 1fr); }
    .ds-hot { grid-template-columns: repeat(3, 1fr); }
    .ds-steps { grid-template-columns: repeat(2, 1fr); gap: 24px 0; }
    .ds-step:nth-child(2n)::after { display: none; }
    .ds-footer-top { grid-template-columns: repeat(2, 1fr); gap: 28px 20px; }
    .ds-footer-top > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
    .ds-help-layout { grid-template-columns: 1fr; gap: 18px; padding: 22px 0 40px; }
    .ds-help-side { position: static; }
    /* 文档分类改为可换行标签，避免纵向长列表挤占首屏 */
    .ds-help-cat {
        display: flex; flex-wrap: wrap; gap: 8px;
        padding: 12px; overflow: visible;
    }
    .ds-help-cat-title {
        width: 100%; padding: 0 0 4px;
        background: none; border: 0;
        color: var(--ds-text-3);
    }
    .ds-help-cat a {
        padding: 5px 12px; border: 1px solid var(--ds-line);
        border-radius: 14px; font-size: 12px;
    }
    .ds-help-cat a:last-child { border-bottom: 1px solid var(--ds-line); }
}

@media (max-width: 760px) {
    .ds-topbar { display: none; }

    /* ------------------------------ 头部 ------------------------------ */
    .ds-header { position: static; height: auto; }
    .ds-header .ds-wrap {
        height: auto; padding: 10px 14px;
        flex-wrap: wrap; gap: 10px; align-items: center;
    }
    .ds-logo { order: 1; min-width: 0; }
    .ds-logo-img { height: 28px; max-width: 46vw; }
    .ds-header-actions { order: 2; margin-left: auto; gap: 8px; }
    .ds-header-actions .ds-btn { height: 32px; padding: 0 12px; font-size: 13px; }
    .ds-header nav { order: 3; width: 100%; }
    .ds-nav {
        margin-left: 0; width: 100%;
        display: flex; flex-wrap: wrap; gap: 6px;
        border-top: 1px solid var(--ds-line-2);
        padding-top: 8px;
    }
    .ds-nav > li > a {
        height: 32px; line-height: 32px; padding: 0 12px;
        font-size: 13px; border-radius: 16px;
        background: var(--ds-bg-soft);
    }
    .ds-nav > li.is-active > a { background: var(--ds-brand-weak); }
    .ds-nav > li.is-active > a::after { display: none; }

    /* ---------------------------- 首屏 Hero --------------------------- */
    .ds-hero { padding: 26px 0 24px; }
    .ds-hero-title { font-size: 25px; line-height: 1.4; letter-spacing: 0; }
    .ds-hero-sub { margin-top: 10px; font-size: 14px; line-height: 1.8; }
    .ds-hero-tags { margin-top: 12px; gap: 6px; }
    .ds-hero-tag { font-size: 12px; padding: 3px 8px; border-radius: 3px; }

    /* 查询框是首页第一功能：输入框与按钮放大，热区不低于 52px */
    .ds-searchbox {
        margin-top: 18px; padding: 16px 14px;
        border-radius: 12px;
        box-shadow: 0 6px 24px rgba(22, 93, 255, .10);
    }
    .ds-search-row { flex-direction: column; gap: 10px; }
    .ds-search-input {
        flex: 0 0 auto; width: 100%;
        height: 56px; padding: 0 16px;
        font-size: 17px;              /* ≥16px，避免 iOS 聚焦自动放大页面 */
        border-width: 1.5px; border-radius: 10px;
    }
    .ds-search-btn {
        width: 100%; height: 54px;
        padding: 0 18px; font-size: 17px; font-weight: 600;
        letter-spacing: .5px; border-radius: 10px;
    }
    .ds-hero-note { margin-top: 10px; font-size: 12px; line-height: 1.7; }

    /* --------------------------- 首页内嵌结果 -------------------------- */
    .ds-result { margin-top: 16px; }
    .ds-result .ds-panel-head { padding: 12px 14px; }
    .ds-result-foot { padding: 12px 14px; }
    .ds-result-foot .ds-btn { width: 100%; }

    /* ------------------------------ 统计 ------------------------------ */
    .ds-stats { grid-template-columns: repeat(2, 1fr); }
    .ds-stat { padding: 18px 12px; }
    .ds-stat:nth-child(2n) { border-right: 0; }
    .ds-stat:nth-child(-n + 2) { border-bottom: 1px solid var(--ds-line); }
    .ds-stat-num { font-size: 22px; }

    /* ------------------------------ 区块 ------------------------------ */
    .ds-section { padding: 36px 0; }
    .ds-section-head { margin-bottom: 20px; }
    .ds-section-title { font-size: 20px; line-height: 1.45; }
    .ds-section-desc { font-size: 13px; }
    .ds-grid { gap: 12px; }
    .ds-grid-2, .ds-grid-3, .ds-grid-4 { grid-template-columns: 1fr; }
    .ds-card-body { padding: 16px; }
    .ds-card-title { font-size: 15px; }

    .ds-hot { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .ds-hot-item { padding: 14px 10px; }
    .ds-hot-tld { font-size: 16px; }

    .ds-steps { grid-template-columns: 1fr; gap: 20px; }
    .ds-step { padding: 0; }
    .ds-step::after { display: none; }

    /* ---------------------------- 查询/列表页 -------------------------- */
    .ds-query { padding: 18px 0 40px; }
    .ds-query-head { flex-direction: column; align-items: stretch; gap: 12px; }
    .ds-query-title { font-size: 19px; }
    .ds-query-head .ds-link { display: inline-block; font-size: 13px; }

    .ds-filter { width: 100%; flex-direction: column; align-items: stretch; gap: 8px; }
    .ds-filter .ds-input, .ds-filter .ds-select { width: 100%; }

    .ds-panel-head { padding: 12px 14px; flex-wrap: wrap; gap: 8px; }
    .ds-panel-body { padding: 14px; }
    .ds-form-row { gap: 12px; }
    .ds-field { width: 100%; }
    .ds-field[style*="min-width"] { min-width: 0 !important; }

    .ds-suffix-bar { gap: 6px; }
    .ds-suffix-chip { height: 30px; padding: 0 10px; font-size: 12px; }
    .ds-suffix-price { font-size: 11px; }

    /* 结算条：改为文档流内，避免遮挡底部内容 */
    .ds-cartbar {
        position: static;
        flex-direction: column; align-items: stretch; gap: 10px;
        padding: 14px; margin-top: 16px;
    }
    .ds-cartbar-info { line-height: 1.8; }
    .ds-cartbar-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
    .ds-cartbar-actions .ds-btn { width: 100%; }

    /* ------------------------------ 方案 ------------------------------ */
    .ds-solu-nav { gap: 6px; margin-bottom: 18px; }
    .ds-solu-nav a { padding: 7px 12px; font-size: 13px; }
    .ds-solu-block { padding: 22px 0; }
    .ds-solu-block h3 { font-size: 17px; }
    .ds-solu-block p { font-size: 13px; line-height: 1.85; }
    .ds-solu-list li { font-size: 13px; line-height: 1.9; }

    /* ------------------------------ 帮助 ------------------------------ */
    .ds-help-list { grid-template-columns: 1fr; gap: 10px; }
    .ds-help-item { padding: 14px; }
    .ds-article { padding: 18px 0 40px; }
    .ds-article-title { font-size: 20px; }
    .ds-article-body { font-size: 14px; line-height: 1.9; }

    /* ---------------------------- 关于/联系 --------------------------- */
    .ds-about-block { grid-template-columns: 1fr; gap: 4px; padding: 14px 0; }
    .ds-contact-grid { grid-template-columns: 1fr; gap: 12px; }
    .ds-contact-card { padding: 16px; }
    .ds-contact-card .ds-num { font-size: 18px; word-break: break-all; }

    /* ------------------------------ CTA ------------------------------- */
    .ds-cta { padding: 30px 0; }
    .ds-cta-inner { flex-direction: column; align-items: stretch; gap: 16px; }
    .ds-cta-title { font-size: 19px; }
    .ds-cta .ds-btn { width: 100%; }

    /* ------------------------------ 页脚 ------------------------------ */
    .ds-footer { padding: 32px 0 0; }
    .ds-footer-top { grid-template-columns: 1fr 1fr; gap: 22px 16px; padding-bottom: 22px; }
    .ds-footer-top > div:first-child { grid-column: 1 / -1; }
    .ds-footer-bottom { flex-direction: column; gap: 8px; line-height: 1.7; }

    /* -------------------------- 表格转卡片 ---------------------------- */
    .ds-table { border: 0; border-radius: 0; background: transparent; overflow: visible; }
    .ds-table table { width: 100%; }
    .ds-result-scroll { overflow: visible; }

    table.ds-card-table { display: block; width: 100%; min-width: 0 !important; border: 0; }
    table.ds-card-table thead { display: none; }
    table.ds-card-table tbody { display: block; }
    table.ds-card-table tr {
        display: block;
        padding: 4px 14px;
        margin-bottom: 10px;
        border: 1px solid var(--ds-line);
        border-radius: 10px;
        background: #fff;
        box-shadow: 0 1px 2px rgba(29, 33, 41, .04);
    }
    table.ds-card-table tr:last-child { margin-bottom: 0; }
    table.ds-card-table tbody tr:hover td { background: transparent; }
    table.ds-card-table td {
        display: flex; align-items: flex-start; justify-content: space-between;
        flex-wrap: wrap;
        gap: 6px 10px; width: auto; border: 0; padding: 9px 0;
        text-align: right; white-space: normal;
        overflow-wrap: anywhere; word-break: break-word;
    }
    table.ds-card-table td + td { border-top: 1px dashed var(--ds-line-2); }
    table.ds-card-table td::before {
        content: attr(data-th);
        flex: 0 0 76px; text-align: left;
        color: var(--ds-text-3); font-weight: 400;
        white-space: normal;
    }
    /* 价格表/对比表：第一列（后缀、能力项）作为卡片标题行 */
    .ds-table table.ds-card-table td:first-child {
        display: block; text-align: left; padding: 10px 0 6px;
        font-size: 15px;
    }
    .ds-table table.ds-card-table td:first-child::before { content: none; }
    /* 纯复选框单元格：不显示列名 */
    table.ds-card-table td.ds-td-pick {
        display: block; text-align: left;
        padding: 8px 0 0; border-top: 0;
    }
    table.ds-card-table td.ds-td-pick::before { content: none; }
    table.ds-card-table td .ds-btn { margin: 2px 0; }
    table.ds-card-table td[colspan] { display: block; text-align: center; padding: 16px 0; }
    table.ds-card-table td[colspan]::before { content: none; }
    table.ds-card-table td:empty { display: none; }
    table.ds-card-table td > * { max-width: 100%; }

    .ds-hide-mobile { display: none !important; }
}

@media (max-width: 400px) {
    .ds-wrap { padding: 0 12px; }
    .ds-hero-title { font-size: 22px; }
    .ds-hero-tag:nth-child(n + 4) { display: none; }
    .ds-search-input { height: 52px; font-size: 16px; }
    .ds-search-btn { height: 50px; font-size: 16px; }
    .ds-section-title { font-size: 19px; }
    .ds-footer-top { grid-template-columns: 1fr; }
}
