/* 首页装修版 · 简约大气样式 */

/* ★ Astra 的 .ast-container 是 flex，自定义页面必须显式占满整行，否则会被挤成半宽 */
.site-content > .ast-container { flex-wrap: wrap; }
.pd-home, .pd-faq-page { width: 100% !important; flex: 1 1 100% !important; max-width: 100% !important; }
.pd-home .pd-wrap { width: 100%; }
.pd-faq-page .pd-wrap { width: 100%; }

.pd-home { --pd-accent: #c8a15a; }
.pd-home * { box-sizing: border-box; }
.pd-wrap { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.pd-center { text-align: center; margin-top: 34px; }

/* 通用标题 */
.pd-h2 {
    font-size: 28px; line-height: 1.3; text-align: center;
    margin: 0 0 8px; letter-spacing: .2px; color: #111827; font-weight: 600;
}
.pd-h2::after {
    content: ""; display: block; width: 46px; height: 3px;
    background: var(--pd-accent); margin: 14px auto 0;
}

/* ---------- ① 大图 / 轮播 ---------- */
.pd-hero { position: relative; overflow: hidden; background: #0f172a; }
.pd-slide {
    position: relative; min-height: 520px; background-size: cover; background-position: center;
    display: none; align-items: center;
}
.pd-slide.is-active { display: flex; }
.pd-slide::before {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,.62) 0%, rgba(0,0,0,.35) 45%, rgba(0,0,0,.05) 100%);
}
.pd-slide-inner { position: relative; z-index: 2; max-width: 1240px; margin: 0 auto; padding: 0 20px; width: 100%; }
.pd-slide-inner h1 {
    color: #fff; font-size: 46px; line-height: 1.18; margin: 0 0 14px;
    font-weight: 700; letter-spacing: .2px; max-width: 620px;
    text-shadow: 0 2px 16px rgba(0,0,0,.55), 0 1px 3px rgba(0,0,0,.4);
}
.pd-slide-inner p {
    color: rgba(255,255,255,.95); font-size: 17px; margin: 0 0 26px; max-width: 560px;
    text-shadow: 0 1px 10px rgba(0,0,0,.5);
}
.pd-slide-empty { background: linear-gradient(120deg, #111827, #1f2937); }

.pd-dots { position: absolute; left: 0; right: 0; bottom: 20px; text-align: center; z-index: 3; }
.pd-dot {
    width: 30px; height: 4px; border: 0; margin: 0 4px; padding: 0; cursor: pointer;
    background: rgba(255,255,255,.45); border-radius: 2px; transition: .25s;
}
.pd-dot.is-active { background: var(--pd-accent); width: 44px; }

/* 按钮 */
.pd-btn {
    display: inline-block; padding: 13px 30px; border-radius: 4px;
    background: var(--pd-accent); color: #fff !important; font-size: 15px; font-weight: 600;
    text-decoration: none !important; letter-spacing: .3px; transition: .2s;
    border: 1px solid var(--pd-accent);
}
.pd-btn:hover { filter: brightness(.92); transform: translateY(-1px); }
.pd-btn-ghost { background: transparent; color: #111827 !important; border-color: #d1d5db; }
.pd-btn-ghost:hover { background: #111827; color: #fff !important; border-color: #111827; }
.pd-btn-wa { background: #25d366; border-color: #25d366; }

/* ---------- 区块间距 ---------- */
.pd-sec { padding: 72px 0; }
.pd-sec:nth-of-type(even) { background: #fafafa; }

/* ---------- ② 分类墙 ---------- */
.pd-cat-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 22px; margin-top: 42px;
}
.pd-cat { text-decoration: none !important; display: block; text-align: center; }
.pd-cat-img {
    display: block; width: 100%; aspect-ratio: 1 / 1; border-radius: 8px;
    background: #eef0f3 center/cover no-repeat; transition: .28s;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.pd-cat:hover .pd-cat-img { transform: translateY(-4px); box-shadow: 0 12px 26px rgba(0,0,0,.13); }
.pd-cat-name {
    display: block; margin-top: 13px; font-size: 15px; font-weight: 600; color: #111827;
}
.pd-cat-count { display: block; margin-top: 3px; font-size: 12px; color: #6b7280; }

/* ---------- ③ 产品卡片 ---------- */
.pd-prod-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 24px; margin-top: 42px;
}
.pd-prod {
    display: block; text-decoration: none !important; background: #fff;
    border: 1px solid #eceef1; border-radius: 8px; overflow: hidden; transition: .25s;
}
.pd-prod:hover { border-color: #d8dbe0; box-shadow: 0 14px 30px rgba(0,0,0,.10); transform: translateY(-4px); }
.pd-prod-img {
    display: block; width: 100%; aspect-ratio: 1 / 1; background: #f4f5f7 center/cover no-repeat;
}
.pd-prod-body { display: block; padding: 15px 16px 18px; }
.pd-prod-name {
    display: block; font-size: 14.5px; font-weight: 600; color: #111827; line-height: 1.45;
    height: 42px; overflow: hidden;
}
.pd-prod-price { display: block; margin-top: 8px; font-size: 16px; font-weight: 700; color: var(--pd-accent); }
.pd-prod-price del { color: #6b7280; font-weight: 400; font-size: 13px; margin-right: 5px; }
.pd-prod-price ins { text-decoration: none; }
.pd-prod-more { display: block; margin-top: 10px; font-size: 12.5px; color: #6b7280; }
.pd-prod:hover .pd-prod-more { color: var(--pd-accent); }

/* ---------- ④ 公司实力 ---------- */
.pd-about-inner { display: flex; gap: 52px; align-items: center; flex-wrap: wrap; }
.pd-about-img {
    flex: 1 1 420px; min-width: 300px; min-height: 340px; border-radius: 10px;
    background: #e9ecef center/cover no-repeat;
}
.pd-about-text { flex: 1 1 420px; min-width: 300px; }
.pd-about-text h2 { font-size: 27px; color: #111827; margin: 0 0 16px; font-weight: 600; }
.pd-about-text h2::after {
    content: ""; display: block; width: 46px; height: 3px; background: var(--pd-accent); margin-top: 14px;
}
.pd-about-body { font-size: 15.5px; line-height: 1.85; color: #4b5563; margin-top: 22px; }
.pd-stats { display: flex; gap: 40px; margin-top: 30px; flex-wrap: wrap; }
.pd-stat b { display: block; font-size: 32px; color: var(--pd-accent); font-weight: 700; line-height: 1.1; }
.pd-stat span { font-size: 13px; color: #6b7280; }

/* ---------- ⑤ 底部联系条 ---------- */
.pd-cta { background: #111827; color: #fff; padding: 64px 0; text-align: center; }
.pd-cta h2 { color: #fff; font-size: 27px; margin: 0 0 12px; font-weight: 600; }
.pd-cta p { color: rgba(255,255,255,.7); margin: 0 0 28px; font-size: 15px; }

/* ---------- WhatsApp 浮动按钮 ---------- */
.pd-wa-float {
    position: fixed; right: 22px; bottom: 22px; z-index: 9999;
    width: 58px; height: 58px; border-radius: 50%; background: #25d366;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 24px rgba(37,211,102,.42); transition: .2s;
}
.pd-wa-float:hover { transform: scale(1.07); }

/* ---------- 手机端 ---------- */
@media (max-width: 900px) {
    .pd-slide { min-height: 420px; }
    .pd-slide-inner h1 { font-size: 30px; }
    .pd-slide-inner p { font-size: 15px; }
    .pd-sec { padding: 46px 0; }
    .pd-h2 { font-size: 22px; }
    .pd-about-inner { gap: 26px; }
    .pd-about-text h2 { font-size: 22px; }
    .pd-stats { gap: 24px; }
    .pd-stat b { font-size: 26px; }
    .pd-cat-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .pd-prod-grid { grid-template-columns: repeat(2, 1fr); gap: 13px; }
    .pd-prod-name { font-size: 13px; height: 38px; }
    .pd-wa-float { right: 14px; bottom: 14px; width: 52px; height: 52px; }
    .pd-gal-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 26px; }
    .pd-gal-item:first-child { grid-column: span 2; grid-row: span 1; }
    .pd-faq-hero { padding: 40px 18px 36px; }
    .pd-faq-hero h1 { font-size: 23px; }
    .pd-faq-q { padding: 15px 16px; font-size: 14.5px; }
    .pd-faq-a { padding: 0 16px; }
    .pd-faq-a .inner { padding-bottom: 16px; font-size: 13.5px; }
}

/* ---------- ③·补 实拍图展柜 ---------- */
.pd-sec-sub { text-align: center; color: #6b7280; font-size: 14px; margin: 10px 0 0; }
.pd-gal-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 16px; margin-top: 40px;
}
.pd-gal-item {
    display: block; aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden;
    background: #eef0f3 center/cover no-repeat; transition: .28s;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.pd-gal-item:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(0,0,0,.14); }
/* 图片少于 3 张时居中 */
.pd-gal-grid:has(.pd-gal-item:nth-child(1):last-child) { grid-template-columns: minmax(0, 620px); justify-content: center; }
.pd-gal-grid:has(.pd-gal-item:nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 860px; margin-left: auto; margin-right: auto; }

/* 图片放大（灯箱） */
#pd-lb {
    position: fixed; inset: 0; background: rgba(0,0,0,.88); z-index: 999999;
    display: none; align-items: center; justify-content: center; padding: 40px;
}
#pd-lb.on { display: flex; }
#pd-lb img { max-width: 94vw; max-height: 90vh; border-radius: 6px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
#pd-lb .x {
    position: absolute; top: 18px; right: 26px; color: #fff; font-size: 34px;
    cursor: pointer; line-height: 1; opacity: .8;
}
#pd-lb .x:hover { opacity: 1; }

/* ---------- FAQ 页面 ---------- */
.pd-faq-hero { background: #111827; color: #fff; padding: 62px 20px 56px; text-align: center; }
.pd-faq-hero h1 { color: #fff; font-size: 32px; margin: 0 0 12px; font-weight: 600; }
.pd-faq-hero p { color: rgba(255,255,255,.72); font-size: 15px; max-width: 620px; margin: 0 auto; line-height: 1.8; }
.pd-faq-page .pd-wrap { max-width: 860px; }
.pd-faq-list { margin: 46px 0 10px; }
.pd-faq-item {
    background: #fff; border: 1px solid #eceef1; border-radius: 8px;
    margin-bottom: 12px; overflow: hidden; transition: .2s;
}
.pd-faq-item.open { border-color: #ffd9c2; box-shadow: 0 6px 20px rgba(238,111,45,.08); }
.pd-faq-q {
    width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
    padding: 18px 22px; font-size: 15.5px; font-weight: 600; color: #111827;
    display: flex; justify-content: space-between; align-items: center; gap: 16px;
    font-family: inherit; line-height: 1.5;
}
.pd-faq-q i {
    flex: 0 0 auto; width: 11px; height: 11px; border-right: 2px solid #6b7280;
    border-bottom: 2px solid #6b7280; transform: rotate(45deg); transition: .25s; margin-top: -4px;
}
.pd-faq-item.open .pd-faq-q i { transform: rotate(-135deg); margin-top: 4px; border-color: #ee6f2d; }
.pd-faq-item.open .pd-faq-q { color: #ee6f2d; }
.pd-faq-a { padding: 0 22px; }
.pd-faq-a .inner { padding: 0 0 20px; font-size: 14.5px; line-height: 1.85; color: #4b5563; }
.pd-faq-a .inner p { margin: 0 0 10px; }
.pd-faq-empty { text-align: center; padding: 70px 0; color: #6b7280; }
.pd-faq-cta { text-align: center; padding: 42px 20px 70px; }
.pd-faq-cta h3 { font-size: 21px; color: #111827; margin: 0 0 8px; font-weight: 600; }
.pd-faq-cta p { color: #6b7280; font-size: 14px; margin: 0 0 22px; }
.pd-faq-cta .acts { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
