/* ============================================================
   域名服务器配套页 - 独有样式
   布艺配饰风 · 横向流程 / 三档规格 / 手风琴
   ============================================================ */

/* ---------- Banner 定制 ---------- */
.ds-banner { position: relative; }
.ds-banner::after {
    /* 右下斜向布艺渐层，区别于通用 banner */
    content: ""; position: absolute; left: 0; bottom: 0; width: 38%; height: 60%;
    background: linear-gradient(45deg, rgba(189,211,176,.22), transparent);
    z-index: 0;
}
.ds-banner .pb-grid { position: relative; z-index: 2; }

/* 漂浮域名节点装饰 */
.ds-dot {
    position: absolute; width: 12px; height: 12px; border-radius: 50%;
    background: var(--lotus); z-index: 1; opacity: .55;
    box-shadow: 0 0 0 6px rgba(226,196,188,.18);
}
.ds-dot.d1 { top: 22%; left: 8%; }
.ds-dot.d2 { top: 64%; left: 44%; background: var(--sage); box-shadow: 0 0 0 6px rgba(189,211,176,.18); }
.ds-dot.d3 { top: 30%; right: 6%; background: var(--sage); box-shadow: 0 0 0 6px rgba(189,211,176,.18); }

/* 标题高亮 */
.ds-banner h1 em { font-style: normal; color: var(--lotus-deep); position: relative; }
.ds-banner h1 em::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 10px;
    background: var(--sage-soft); z-index: -1; border-radius: 6px;
}

/* 能力 chips */
.ds-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.ds-chip {
    font-size: .82rem; color: var(--ink-soft); padding: 7px 16px;
    background: var(--white); border: 1px dashed var(--lotus);
    border-radius: 2px 14px 14px 2px; box-shadow: var(--shadow-sm);
}

/* banner 第二个浮签 */
.ds-banner .pb-tag-2 {
    top: 14px; right: -8px; left: auto; bottom: auto; background: var(--sage-soft);
    transform: rotate(4deg);
}

/* ---------- 横向流程步骤 ---------- */
.ds-flow { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
/* 连接线：虚线带箭头 */
.flow-line {
    position: absolute; top: 39px; left: 11%; right: 11%; height: 2px; z-index: 0;
    background: repeating-linear-gradient(90deg, var(--lotus) 0 9px, transparent 9px 18px);
}
.flow-line::before, .flow-line::after {
    content: ""; position: absolute; top: -4px; width: 0; height: 0;
    border-top: 5px solid transparent; border-bottom: 5px solid transparent;
}
.flow-line::before { left: -4px; border-right: 7px solid var(--lotus); }
.flow-line::after { right: -4px; border-left: 7px solid var(--lotus); }

.flow-step { text-align: center; position: relative; z-index: 1; }
.flow-node {
    width: 78px; height: 78px; margin: 0 auto 22px; border-radius: 50%;
    background: var(--white); border: 2px dashed var(--lotus-deep);
    display: grid; place-items: center; position: relative;
    box-shadow: var(--shadow-sm); transition: transform .4s;
}
.flow-step:nth-child(even) .flow-node { border-color: var(--sage-deep); }
.flow-node svg { width: 34px; height: 34px; }
.flow-no {
    position: absolute; top: -10px; right: -10px; width: 28px; height: 28px;
    border-radius: 50%; background: var(--lotus-deep); color: var(--white);
    font-family: var(--f-serif); font-size: .82rem; font-weight: 600;
    display: grid; place-items: center; box-shadow: var(--shadow-sm);
}
.flow-step:nth-child(even) .flow-no { background: var(--sage-deep); }
.flow-step:hover .flow-node { transform: translateY(-6px) rotate(-4deg); }

.flow-card {
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 22px 18px; box-shadow: var(--shadow-sm); position: relative;
}
.flow-card::before {
    /* 缝线小尾巴 */
    content: ""; position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
    width: 2px; height: 14px; background: var(--lotus); opacity: .5;
}
.flow-card h4 { margin-bottom: 8px; font-size: 1.1rem; }
.flow-card p { font-size: .86rem; color: var(--ink-soft); margin-bottom: 12px; }
.flow-tag {
    display: inline-block; font-size: .74rem; letter-spacing: 1px; color: var(--lotus-deep);
    background: var(--lotus-soft); padding: 4px 12px; border-radius: 20px;
}
.flow-step:nth-child(even) .flow-tag { color: var(--sage-deep); background: var(--sage-soft); }

/* ---------- 三档配置规格 ---------- */
.ds-plan-sec { background: var(--cream-2); }
.ds-plan-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start;
}
.plan-card {
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
    padding: 36px 30px; position: relative; box-shadow: var(--shadow-sm);
    transition: transform .4s, box-shadow .4s;
}
.plan-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
/* 中间档突出：上移 + 描边 + 渐变 */
.plan-card.featured {
    transform: translateY(-22px);
    border: 2px solid var(--lotus-deep);
    background: linear-gradient(180deg, var(--lotus-soft), var(--white) 40%);
    box-shadow: var(--shadow); z-index: 2;
}
.plan-card.featured:hover { transform: translateY(-30px); }

/* 推荐缎带 */
.ribbon {
    position: absolute; top: 18px; right: -10px; z-index: 3;
    background: var(--lotus-deep); color: var(--white); font-size: .76rem;
    letter-spacing: 2px; padding: 6px 16px; border-radius: 4px 4px 4px 0;
    box-shadow: var(--shadow-sm);
}
.ribbon::after {
    content: ""; position: absolute; bottom: -6px; right: 0;
    border: 5px solid transparent; border-top-color: var(--lotus-deep); border-right-color: var(--lotus-deep);
}

.plan-head { margin-bottom: 22px; border-bottom: 1px dashed var(--line); padding-bottom: 18px; }
.plan-tier { display: block; font-family: var(--f-serif); font-size: 1.4rem; color: var(--ink); font-weight: 600; }
.plan-card.featured .plan-tier { color: var(--lotus-deep); }
.plan-for { font-size: .82rem; color: var(--ink-mute); }

.plan-price { margin-bottom: 26px; font-family: var(--f-serif); color: var(--lotus-deep); font-weight: 600; }
.plan-price .cur { font-size: 1.2rem; vertical-align: top; }
.plan-price { font-size: 2.6rem; line-height: 1; }
.plan-price small { font-size: .9rem; color: var(--ink-mute); font-family: var(--f-sans); font-weight: 400; margin-left: 4px; }

.plan-feat { margin-bottom: 28px; }
.plan-feat li {
    display: flex; align-items: flex-start; gap: 10px; padding: 9px 0;
    font-size: .92rem; color: var(--ink-soft); border-bottom: 1px solid rgba(228,217,202,.4);
}
.plan-feat li svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 4px; }
.plan-feat li.no { color: var(--ink-mute); text-decoration: line-through; text-decoration-color: var(--cream-3); }
.plan-feat li.no svg { stroke: var(--cream-3); }

.plan-btn { width: 100%; justify-content: center; }

/* ---------- 常见问题手风琴 ---------- */
.ds-faq-sec { background: var(--cream-2); }
.ds-faq { display: flex; flex-direction: column; gap: 14px; }
.faq-item {
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden; transition: box-shadow .3s, border-color .3s; box-shadow: var(--shadow-sm);
}
.faq-item.open { border-color: var(--lotus); box-shadow: var(--shadow); }
.faq-q {
    width: 100%; display: grid; grid-template-columns: 44px 1fr 24px; align-items: center; gap: 14px;
    padding: 20px 24px; text-align: left; font-size: 1rem; color: var(--ink); font-weight: 500;
}
.faq-idx { font-family: var(--f-serif); color: var(--lotus-deep); font-weight: 600; }
.faq-t { line-height: 1.5; }
.faq-ico {
    width: 18px; height: 18px; position: relative; justify-self: end;
}
.faq-ico::before, .faq-ico::after {
    content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
    background: var(--lotus-deep); transition: transform .35s, opacity .35s;
}
.faq-ico::before { width: 14px; height: 2px; }
.faq-ico::after { width: 2px; height: 14px; }
.faq-item.open .faq-ico::after { transform: translate(-50%,-50%) rotate(90deg); opacity: 0; }
.faq-item.open .faq-ico::before { background: var(--sage-deep); }

.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s ease; }
.faq-item.open .faq-a { max-height: 320px; }
.faq-a p { padding: 0 24px 24px 82px; font-size: .92rem; color: var(--ink-soft); line-height: 1.85; }

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
    .ds-flow { grid-template-columns: repeat(2, 1fr); gap: 40px 20px; }
    .flow-line { display: none; }
    .ds-plan-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
    .plan-card.featured { transform: none; }
    .plan-card.featured:hover { transform: translateY(-8px); }
}
@media (max-width: 560px) {
    .ds-flow { grid-template-columns: 1fr; gap: 36px; }
    .flow-card::before { display: none; }
    .faq-q { grid-template-columns: 36px 1fr 20px; padding: 18px 18px; gap: 10px; }
    .faq-a p { padding: 0 18px 20px 64px; }
    .ds-chip { font-size: .76rem; padding: 6px 12px; }
    .ds-banner .pb-tag-2 { right: 0; }
}
