/* ==========================================================================
   TIANYI 产品详情页（detail_product.html）
   依赖 style.css 中的设计令牌（--gc-*）
   ========================================================================== */

/* ---------- BREADCRUMB ---------- */
.pd-head {
    background: var(--gc-navy);
    padding: 128px 0 22px;
    font-family: var(--gc-font);
}
.pd-head__inner { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.pd-breadcrumb { font-size: 13px; color: rgba(255, 255, 255, .55); }
.pd-breadcrumb a { color: rgba(255, 255, 255, .55); }
.pd-breadcrumb a:hover { color: var(--gc-gold); }
.pd-breadcrumb__sep { margin: 0 9px; color: rgba(255, 255, 255, .3); }
.pd-breadcrumb > span:last-child { color: rgba(255, 255, 255, .85); }

/* ---------- MAIN ---------- */
.pd-main { background: #fff; padding: 56px 0 64px; }
.pd-main__inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 56px;
    align-items: start;
}

/* Gallery */
.pd-gallery__main {
    position: relative;
    aspect-ratio: 1 / 1;
    background: var(--gc-cream);
    border: 1px solid var(--gc-line);
    border-radius: var(--gc-radius);
    overflow: hidden;
}
.pd-gallery__main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pd-gallery__ph {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(29, 32, 28, .18);
    background: linear-gradient(135deg, #F4EFE4, #E4DCCD);
}
.pd-gallery__thumbs {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-top: 14px;
}
.pd-thumb {
    padding: 0;
    aspect-ratio: 1 / 1;
    background: var(--gc-cream);
    border: 2px solid var(--gc-line);
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color .2s ease;
}
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pd-thumb:hover { border-color: rgba(166, 58, 46, .5); }
.pd-thumb.is-active { border-color: var(--gc-gold); }

/* Summary */
.pd-summary__cat {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--gc-gold);
    margin-bottom: 14px;
}
.pd-summary__cat:hover { color: var(--gc-gold-light); }
.pd-title {
    font-family: var(--gc-serif);
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    font-weight: 700;
    line-height: 1.18;
    color: var(--gc-navy);
    margin: 0 0 18px;
}
.pd-pn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    background: var(--gc-cream);
    border: 1px solid var(--gc-line);
    border-radius: 100px;
    padding: 7px 16px;
    margin-bottom: 20px;
}
.pd-pn span { color: var(--gc-muted); font-weight: 600; }
.pd-pn strong { color: var(--gc-navy); }
.pd-desc { font-size: 16px; line-height: 1.8; color: var(--gc-text); margin: 0 0 26px; }
.pd-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- TABS ---------- */
.pd-tabs { background: var(--gc-cream); padding: 64px 0 76px; }
.pd-tabs__inner { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

.pd-tabs__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    border-bottom: 1px solid var(--gc-line);
    margin-bottom: 34px;
}
.pd-tab {
    position: relative;
    padding: 15px 24px;
    font-family: var(--gc-font);
    font-size: 15px;
    font-weight: 600;
    color: var(--gc-muted);
    background: transparent;
    border: 0;
    cursor: pointer;
    transition: color .2s ease;
}
.pd-tab::after {
    content: '';
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: -1px;
    height: 3px;
    background: var(--gc-gold);
    transform: scaleX(0);
    transition: transform .22s ease;
}
.pd-tab:hover { color: var(--gc-navy); }
.pd-tab.is-active { color: var(--gc-navy); }
.pd-tab.is-active::after { transform: scaleX(1); }

.pd-panel { display: none; background: #fff; border: 1px solid var(--gc-line); border-radius: var(--gc-radius); padding: 38px 42px; }
.pd-panel.is-active { display: block; }

/* Rich text (功能特点 / 技术指标 / 详情) —— 字段原样输出 */
.pd-rich { font-size: 16px; line-height: 1.9; color: var(--gc-text); }
.pd-rich h2 { margin-top: 34px; font-size: 26px; }
.pd-rich h3 { margin-top: 26px; font-size: 21px; }
.pd-rich p { margin: 0 0 1em; }
.pd-rich img { max-width: 100%; height: auto; border-radius: var(--gc-radius); margin: 20px 0; }
.pd-rich ul, .pd-rich ol { margin: 0 0 1em; padding-left: 1.3em; }
.pd-rich table { width: 100%; border-collapse: collapse; margin: 22px 0; font-size: 15px; }
.pd-rich th { background: var(--gc-navy); color: #fff; text-align: left; padding: 12px 14px; }
.pd-rich td { padding: 12px 14px; border: 1px solid var(--gc-line); }
.pd-rich tr:nth-child(even) td { background: var(--gc-cream); }

/* Downloads */
.pd-downloads { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.pd-download { margin: 0; }
.pd-download__link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--gc-cream);
    border: 1px solid var(--gc-line);
    border-radius: var(--gc-radius);
    transition: border-color .2s ease, background .2s ease;
}
.pd-download__link:hover { border-color: var(--gc-gold); background: #fff; }
.pd-download__icon {
    flex: none;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gc-navy);
    color: var(--gc-gold);
    border-radius: 10px;
}
.pd-download__body { flex: 1; min-width: 0; }
.pd-download__name { display: block; font-weight: 600; color: var(--gc-navy); font-size: 15px; }
.pd-download__meta { display: block; margin-top: 3px; font-size: 12.5px; color: var(--gc-muted); }
.pd-download__go {
    flex: none;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--gc-gold);
}

/* Empty */
.pd-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    padding: 64px 24px;
    background: #fff;
    border: 1px dashed var(--gc-line);
    border-radius: var(--gc-radius);
}
.pd-empty__title { margin: 0; font-family: var(--gc-serif); font-size: 22px; color: var(--gc-navy); }
.pd-empty__desc { margin: 0; font-size: 14px; color: var(--gc-muted); max-width: 460px; }

/* ---------- DETAIL IMAGES ---------- */
.pd-detail { background: #fff; padding: 64px 0 76px; font-family: var(--gc-font); }
.pd-detail__inner { max-width: 1000px; margin: 0 auto; padding: 0 24px; }
.pd-detail__head { text-align: center; margin-bottom: 34px; }
.pd-detail__eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--gc-gold);
    margin: 0 0 8px;
}
.pd-detail__head h2 {
    font-family: var(--gc-serif);
    font-size: clamp(1.6rem, 2.8vw, 2.2rem);
    font-weight: 700;
    color: var(--gc-navy);
    margin: 0;
}
.pd-detail__body { font-size: 15px; line-height: 1.8; color: var(--gc-text); }
.pd-detail__body p { margin: 0 0 14px; }
.pd-detail__body img,
.pd-detail__img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 0 18px;
    border-radius: 6px;
}
.pd-detail__body p > img:only-child { margin-bottom: 0; }
.pd-detail__specs { margin: 0 0 44px; }
.pd-detail__specs-title {
    margin: 0 0 14px;
    font-family: var(--gc-serif);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--gc-navy);
}
.pd-detail__specs table { margin: 0; }

/* ---------- CTA（小入口，不放表单） ---------- */
.pd-cta { background: var(--gc-navy); font-family: var(--gc-font); padding: 44px 0; }
.pd-cta__inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}
.pd-cta__copy { min-width: 0; }
.pd-cta__eyebrow {
    margin: 0 0 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--gc-gold);
}
.pd-cta__copy h2 {
    margin: 0 0 8px;
    font-family: var(--gc-serif);
    font-size: clamp(1.4rem, 2.4vw, 1.9rem);
    font-weight: 700;
    line-height: 1.25;
    color: #fff;
}
.pd-cta__copy p { margin: 0; max-width: 640px; font-size: 14px; line-height: 1.7; color: rgba(255, 255, 255, .58); }
.pd-cta__actions { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; flex: 0 0 auto; }
.pd-cta__note { font-size: 12px; color: rgba(255, 255, 255, .42); }

/* Product inquiry dialog */
.pd-inquiry-open { overflow: hidden; }
.pd-inquiry-modal { position: fixed; inset: 0; z-index: 1200; display: none; align-items: center; justify-content: center; padding: 24px; }
.pd-inquiry-modal.is-open { display: flex; }
.pd-inquiry-modal__backdrop { position: absolute; inset: 0; background: rgba(15, 21, 19, .72); }
.pd-inquiry-modal__panel { position: relative; width: min(100%, 640px); max-height: min(90vh, 820px); overflow: auto; padding: 34px; background: #fff; border-radius: 6px; box-shadow: 0 24px 80px rgba(0, 0, 0, .28); }
.pd-inquiry-modal__panel h2 { margin: 0 40px 8px 0; font-family: var(--gc-serif); font-size: 26px; line-height: 1.25; color: var(--gc-navy); }
.pd-inquiry-modal__product { margin: 0 0 22px; color: var(--gc-muted); font-size: 14px; overflow-wrap: anywhere; }
.pd-inquiry-modal__close { position: absolute; top: 14px; right: 16px; width: 36px; height: 36px; border: 0; background: transparent; color: var(--gc-muted); font-size: 30px; line-height: 1; cursor: pointer; }
.pd-inquiry-modal__close:hover { color: var(--gc-navy); }
.pd-inquiry-modal__close:focus-visible, .pd-inquiry-modal a:focus-visible, .pd-inquiry-modal button:focus-visible { outline: 2px solid var(--gc-gold); outline-offset: 3px; }
.pd-inquiry-modal .gc-form__field { margin-bottom: 12px; }
.pd-inquiry-modal .gc-form textarea { min-height: 96px; }
.pd-inquiry-modal .gc-form__msg { scroll-margin: 16px; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 980px) {
    .pd-main__inner { grid-template-columns: 1fr; gap: 36px; }
    .pd-cta__inner { flex-direction: column; align-items: flex-start; gap: 22px; }
    .pd-cta__actions { align-items: flex-start; }
}
@media (max-width: 768px) {
    .pd-head { padding: 108px 0 18px; }
    .pd-panel { padding: 26px 20px; }
    .pd-tab { padding: 13px 16px; font-size: 14px; }
    .pd-tab::after { left: 16px; right: 16px; }
    .pd-inquiry-modal { padding: 12px; }
    .pd-inquiry-modal__panel { max-height: 94vh; padding: 26px 20px; }
    .pd-inquiry-modal__panel h2 { font-size: 22px; }
}

