/* ============================================================
   常见问题页专属样式 - 布艺配饰风 · 手风琴 + 侧边联系卡
   ============================================================ */

/* ---------- 精简 Banner（无大图，插画式） ---------- */
.faq-banner {
    position: relative; padding: 130px 0 50px; overflow: hidden;
    background: linear-gradient(180deg, var(--cream-2), var(--cream));
}
.faq-banner::before {
    content: ""; position: absolute; inset: 0;
    background-image:
        radial-gradient(circle at 8% 20%, rgba(226,196,188,.28), transparent 38%),
        radial-gradient(circle at 92% 78%, rgba(189,211,176,.28), transparent 38%);
    z-index: 0;
}
.faq-banner::after {
    /* 底部缝线分割 */
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
    background: repeating-linear-gradient(90deg, var(--lotus) 0 10px, transparent 10px 20px);
    z-index: 1;
}
.faq-banner-grid {
    display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center;
    position: relative; z-index: 2;
}
.faq-banner .fb-copy .tag-label { margin-bottom: 20px; }
.faq-banner .fb-copy h1 { margin-bottom: 16px; }
.faq-banner .fb-copy h1 em { font-style: normal; color: var(--lotus-deep); position: relative; }
.faq-banner .fb-copy h1 em::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 10px;
    background: var(--sage-soft); z-index: -1; border-radius: 6px;
}
.faq-banner .fb-copy p { max-width: 460px; font-size: 1.04rem; }
.fb-visual { display: flex; justify-content: center; align-items: center; }
.fb-visual svg {
    width: 220px; height: 180px; transform: rotate(-3deg);
    filter: drop-shadow(0 14px 30px rgba(74,69,64,.18));
    animation: floaty 5s ease-in-out infinite;
}
@keyframes floaty {
    0%, 100% { transform: rotate(-3deg) translateY(0); }
    50% { transform: rotate(-3deg) translateY(-10px); }
}

/* ---------- 主体两栏 ---------- */
.faq-layout {
    display: grid; grid-template-columns: 1.6fr 1fr; gap: 44px; align-items: start;
}

/* 分类标签 */
.faq-tabs {
    display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px;
    padding-bottom: 22px; border-bottom: 1px dashed var(--line);
}
.ftab {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 9px 18px; border-radius: 30px; cursor: pointer;
    background: var(--white); border: 1.5px solid var(--line);
    color: var(--ink-soft); font-size: .9rem; font-weight: 500;
    transition: all .3s;
}
.ftab svg { width: 16px; height: 16px; }
.ftab:hover { border-color: var(--lotus); color: var(--lotus-deep); transform: translateY(-2px); }
.ftab.active {
    background: var(--lotus-deep); border-color: var(--lotus-deep); color: var(--white);
    box-shadow: 0 8px 20px -10px rgba(199,156,146,.7);
}

/* 手风琴 */
.faq-accordion { display: flex; flex-direction: column; gap: 14px; }
.faq-item {
    background: var(--white); border-radius: var(--radius);
    border: 1px solid var(--line); overflow: hidden;
    transition: border-color .3s, box-shadow .3s, transform .3s;
    position: relative;
}
.faq-item::before {
    /* 左侧布艺色块标记（按分类着色） */
    content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
    background: var(--lotus-deep);
}
.faq-item[data-cat="flow"]::before { background: var(--lotus-deep); }
.faq-item[data-cat="price"]::before { background: var(--sage-deep); }
.faq-item[data-cat="tech"]::before { background: var(--lotus); }
.faq-item[data-cat="domain"]::before { background: var(--sage); }
.faq-item:hover { border-color: var(--lotus); box-shadow: var(--shadow-sm); }
.faq-item.open { border-color: var(--lotus); box-shadow: var(--shadow-sm); }

.faq-q {
    width: 100%; display: grid; grid-template-columns: 48px 1fr 40px; align-items: center; gap: 14px;
    padding: 22px 26px 22px 24px; background: transparent; text-align: left; cursor: pointer;
    font-family: var(--f-serif); font-size: 1.04rem; font-weight: 600; color: var(--ink);
    line-height: 1.5; transition: background .3s;
}
.faq-q:hover { background: var(--cream-2); }
.q-no {
    font-family: var(--f-serif); font-size: 1.1rem; color: var(--lotus-deep); font-weight: 600;
    letter-spacing: 1px;
}
.faq-item[data-cat="price"] .q-no,
.faq-item[data-cat="domain"] .q-no { color: var(--sage-deep); }
.q-text { padding-right: 10px; }

/* + 号按钮（旋转动画） */
.q-plus {
    position: relative; width: 28px; height: 28px; border-radius: 50%;
    background: var(--lotus-soft); flex-shrink: 0; transition: background .4s, transform .4s;
}
.q-plus::before, .q-plus::after {
    content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    background: var(--lotus-deep); border-radius: 2px; transition: background .4s;
}
.q-plus::before { width: 12px; height: 2px; }
.q-plus::after { width: 2px; height: 12px; }
.faq-item.open .q-plus { transform: rotate(135deg); background: var(--lotus-deep); }
.faq-item.open .q-plus::before, .faq-item.open .q-plus::after { background: var(--white); }
.faq-item[data-cat="price"] .q-plus,
.faq-item[data-cat="domain"] .q-plus { background: var(--sage-soft); }
.faq-item[data-cat="price"] .q-plus::before, .faq-item[data-cat="price"] .q-plus::after,
.faq-item[data-cat="domain"] .q-plus::before, .faq-item[data-cat="domain"] .q-plus::after { background: var(--sage-deep); }
.faq-item[data-cat="price"].open .q-plus,
.faq-item[data-cat="domain"].open .q-plus { background: var(--sage-deep); }

/* 答案区（max-height 过渡） */
.faq-a {
    max-height: 0; overflow: hidden; transition: max-height .45s ease;
}
.faq-a-inner {
    padding: 0 26px 24px 86px; position: relative;
}
.faq-a-inner::before {
    content: "答"; position: absolute; left: 28px; top: 2px;
    width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
    background: var(--cream-2); color: var(--ink-mute); font-size: .82rem; font-family: var(--f-serif);
}
.faq-a-inner p { font-size: .94rem; color: var(--ink-soft); line-height: 1.9; }

.faq-empty { text-align: center; padding: 30px; color: var(--ink-mute); font-size: .92rem; }
.faq-empty a { color: var(--lotus-deep); text-decoration: underline; }

/* ---------- 侧边联系卡 ---------- */
.faq-aside { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 20px; }

.contact-card {
    position: relative; padding: 34px 30px; border-radius: var(--radius-lg);
    background: linear-gradient(165deg, var(--sage-soft), var(--cream));
    border: 1px solid var(--sage); box-shadow: var(--shadow); overflow: hidden;
}
.cc-deco {
    position: absolute; right: -30px; top: -30px; width: 110px; height: 110px;
    border-radius: 50%; background: rgba(255,255,255,.4);
}
.contact-card .tag-label { position: relative; z-index: 2; margin-bottom: 16px; }
.contact-card h3 { position: relative; z-index: 2; margin-bottom: 10px; font-size: 1.35rem; }
.contact-card > p { position: relative; z-index: 2; font-size: .92rem; margin-bottom: 22px; }
.cc-list { position: relative; z-index: 2; margin-bottom: 24px; }
.cc-list li {
    display: flex; align-items: center; gap: 14px; padding: 12px 0;
    border-bottom: 1px dashed var(--sage);
}
.cc-list li:last-child { border-bottom: none; }
.cc-ic {
    width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
    display: grid; place-items: center; background: var(--white); color: var(--sage-deep);
    box-shadow: var(--shadow-sm);
}
.cc-ic svg { width: 22px; height: 22px; }
.cc-list strong { display: block; font-family: var(--f-serif); font-size: 1.05rem; color: var(--ink); font-weight: 600; }
.cc-list small { font-size: .78rem; color: var(--ink-mute); }
.cc-btn { position: relative; z-index: 2; width: 100%; justify-content: center; }

/* 热门问题卡 */
.hot-card {
    background: var(--white); border-radius: var(--radius); padding: 26px 28px;
    border: 1px solid var(--line);
}
.hot-card h4 { font-size: 1.05rem; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px dashed var(--line); }
.hot-card ol { counter-reset: hot; display: flex; flex-direction: column; gap: 10px; }
.hot-card li { counter-increment: hot; display: flex; align-items: center; gap: 12px; }
.hot-card li::before {
    content: counter(hot, decimal-leading-zero);
    font-family: var(--f-serif); font-size: .85rem; color: var(--lotus-deep); font-weight: 600;
    width: 26px; height: 26px; border-radius: 50%; background: var(--lotus-soft);
    display: grid; place-items: center; flex-shrink: 0;
}
.hot-card li a { font-size: .92rem; color: var(--ink-soft); transition: color .3s, padding-left .3s; }
.hot-card li a:hover { color: var(--lotus-deep); padding-left: 4px; }

/* 报价链接条 */
.quote-link {
    display: flex; align-items: center; gap: 14px;
    background: var(--lotus-soft); border-radius: var(--radius); padding: 18px 22px;
    border: 1px dashed var(--lotus);
}
.ql-ic { width: 38px; height: 38px; flex-shrink: 0; }
.ql-ic svg { width: 38px; height: 38px; }
.quote-link strong { display: block; font-size: .95rem; color: var(--ink); margin-bottom: 4px; }
.quote-link a { font-size: .88rem; color: var(--lotus-deep); font-weight: 600; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
    .faq-layout { grid-template-columns: 1fr; gap: 30px; }
    .faq-aside { position: static; }
}
@media (max-width: 760px) {
    .faq-banner-grid { grid-template-columns: 1fr; gap: 24px; text-align: center; }
    .faq-banner .fb-copy p { margin: 0 auto; }
    .fb-visual svg { width: 180px; height: 150px; }
    .faq-q { grid-template-columns: 36px 1fr 32px; gap: 10px; padding: 18px 18px 18px 18px; font-size: .98rem; }
    .q-no { font-size: 1rem; }
    .q-plus { width: 24px; height: 24px; }
    .q-plus::before { width: 10px; }
    .q-plus::after { height: 10px; }
    .faq-a-inner { padding: 0 18px 20px 64px; }
    .faq-a-inner::before { left: 20px; width: 26px; height: 26px; }
    .contact-card, .hot-card { padding: 24px 22px; }
}
@media (max-width: 480px) {
    .faq-banner { padding: 120px 0 36px; }
    .ftab { padding: 8px 14px; font-size: .85rem; }
}
