/* Explain: Styles for reusable UI components, including gallery and case card elements. */
/* ── 顶部导航 ───────────────────────────────── */
.site-header {
    border-bottom: 1px solid transparent;
    background: linear-gradient(180deg, rgba(24, 19, 15, 0.66) 0%, rgba(24, 19, 15, 0) 100%);
    transition: background 450ms ease, box-shadow 450ms ease, border-color 450ms ease;
}

.site-header.is-scrolled {
    border-bottom-color: var(--rule-color);
    background: rgba(26, 21, 16, 0.88);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(24px) saturate(140%);
    -webkit-backdrop-filter: blur(24px) saturate(140%);
}

.brand-word {
    font-family: var(--font-logo);
    font-size: clamp(1.2rem, 1rem + 0.7vw, 1.62rem);
    font-weight: 500;
    letter-spacing: 0.3em;
    line-height: 1;
    color: var(--text-color);
    text-shadow: 0 2px 26px rgba(0, 0, 0, 0.6);
}

.brand-sub {
    margin-top: 0.5rem;
    color: var(--logo-subtitle-color);
    font-size: 0.54rem;
    font-weight: 500;
    letter-spacing: 0.32em;
    line-height: 1;
    text-transform: uppercase;
}

.footer-brand {
    font-family: var(--font-logo);
    font-size: clamp(2.1rem, 1.2rem + 4.2vw, 4.6rem);
    font-weight: 400;
    letter-spacing: 0.14em;
    line-height: 1;
    color: var(--text-color);
}

/* ── 眉标与序号 ─────────────────────────────── */
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    color: var(--primary-color);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.28em;
    text-transform: uppercase;
}

.section-kicker::before {
    display: inline-block;
    width: 2.2rem;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color));
    content: "";
}

.kicker-num {
    color: var(--text-dim);
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.28em;
}

/* ── 容器与卡片 ─────────────────────────────── */
.glass-panel {
    border: 1px solid var(--glass-border);
    background: linear-gradient(160deg, rgba(42, 33, 24, 0.72), rgba(24, 19, 15, 0.58));
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.media-frame {
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    background: var(--surface-raised);
}

.media-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.arch-frame {
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: var(--surface-raised);
}

.arch-frame-large {
    height: min(70vh, 640px);
    min-height: 420px;
    border-radius: 999px 999px 0.75rem 0.75rem;
}

.category-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    background: var(--surface-raised);
    transition: border-color 500ms ease, transform 500ms ease;
}

.category-card:hover {
    border-color: var(--glass-border);
    transform: translateY(-4px);
}

.product-card {
    display: flex;
    height: 100%;
    flex-direction: column;
    border: 0;
    background: transparent;
}

.product-media {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 0.75rem;
    background: var(--surface-raised);
}

.product-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
}

.product-card:hover .product-media img {
    transform: scale(1.05);
}

/* ── 场景序号列表 ───────────────────────────── */
.index-row {
    display: grid;
    grid-template-columns: 2.25rem minmax(0, 1fr) 5rem;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid var(--rule-color);
    padding-block: 1.5rem;
    transition: background 500ms ease;
}

.index-row:hover {
    background: linear-gradient(90deg, rgba(200, 166, 98, 0.07), transparent 65%);
}

.index-no {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    letter-spacing: 0.12em;
    color: var(--text-dim);
}

.index-thumb {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 0.5rem;
    background: var(--surface-raised);
}

@media (min-width: 1024px) {
    .index-row {
        grid-template-columns: 3.5rem minmax(0, 1fr) 15rem 1.5rem;
        gap: 2.5rem;
        padding-block: 2.3rem;
    }
}

/* ── 流程与工序 ─────────────────────────────── */
.process-step {
    display: grid;
    grid-template-columns: 3rem minmax(0, 1fr);
    gap: 1.25rem;
    align-items: start;
    border-top: 1px solid var(--rule-color);
    padding-block: 1.75rem;
    background: transparent;
    transition: border-color 500ms ease;
}

.process-step:hover {
    border-top-color: var(--glass-border);
}

.process-step-highlight {
    border-top-color: var(--glass-border);
    background: linear-gradient(90deg, rgba(200, 166, 98, 0.08), transparent 70%);
}

.step-index {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    line-height: 1.2;
    color: var(--primary-color);
}

.stat-card {
    border-top: 1px solid var(--rule-color);
    border-radius: 0;
    background: transparent;
    padding: 1.4rem 0 0;
    transition: border-color 500ms ease;
}

.stat-card:hover {
    border-top-color: var(--glass-border);
}

.contact-detail {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    border-top: 1px solid var(--rule-color);
    border-radius: 0;
    background: transparent;
    padding: 1.1rem 0 0;
}

.contact-detail i {
    margin-top: 0.3rem;
    color: var(--primary-color);
}

/* ── 表单 ───────────────────────────────────── */
.inquiry-form {
    border-top: 1px solid var(--rule-color);
    border-radius: 0;
    padding: clamp(1.75rem, 4vw, 2.5rem) 0 0;
}

.form-label {
    display: block;
    margin-bottom: 0.4rem;
    color: var(--text-dim);
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.24em;
    text-transform: uppercase;
}

.field {
    width: 100%;
    min-height: 2.9rem;
    padding: 0.7rem 0;
    border: 0;
    border-bottom: 1px solid var(--border-color);
    border-radius: 0;
    background: transparent;
    color: var(--text-color);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 300;
    line-height: 1.6;
    transition: border-color 350ms ease;
}

.field::placeholder {
    color: var(--text-dim);
    opacity: 1;
}

.field:focus {
    border-bottom-color: var(--primary-color);
    outline: none;
}

.field-area {
    min-height: 7.5rem;
    resize: vertical;
}

.form-status {
    min-height: 1.25rem;
    font-size: 0.82rem;
    letter-spacing: 0.02em;
}

.form-status.success {
    color: #A8CE9F;
}

.form-status.error {
    color: #E3A190;
}

/* ── 产品中心控件 ───────────────────────────── */
.filter-chip {
    display: inline-flex;
    min-height: 2.5rem;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: transparent;
    padding: 0 1.1rem;
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    transition: background 300ms ease, color 300ms ease, border-color 300ms ease;
}

.filter-chip:hover {
    border-color: var(--primary-color);
    color: var(--text-color);
}

.filter-chip.is-active {
    border-color: var(--primary-color);
    background: rgba(200, 166, 98, 0.12);
    color: var(--primary-color);
}

.gallery-thumb {
    width: 5.4rem;
    height: 4.1rem;
    overflow: hidden;
    border: 1px solid transparent;
    border-radius: 0.6rem;
    background: var(--surface-raised);
    transition: border-color 300ms ease, transform 300ms ease;
}

.gallery-thumb:hover {
    transform: translateY(-2px);
}

.gallery-thumb.is-active {
    border-color: var(--primary-color);
}

.spec-row {
    display: grid;
    grid-template-columns: 6rem 1fr;
    gap: 0.75rem;
    border-bottom: 1px solid var(--rule-color);
    padding-bottom: 0.7rem;
}

.spec-row dt {
    color: var(--text-muted);
    font-size: 0.8rem;
    letter-spacing: 0.08em;
}

.spec-row dd {
    margin: 0;
    color: var(--text-color);
    font-weight: 400;
}

.rich-text p {
    margin: 0 0 1rem;
}

.rich-text p:last-child {
    margin-bottom: 0;
}

.rich-text ul {
    margin: 0 0 1rem 1.2rem;
    list-style: disc;
}

/* ── 按钮 ───────────────────────────────────── */
.btn-gold {
    display: inline-flex;
    min-height: 3rem;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    border: 1px solid var(--primary-color);
    border-radius: 999px;
    background: var(--primary-color);
    padding: 0.85rem 1.9rem;
    color: #0A0A09;
    font-family: var(--font-body);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    transition: background 300ms ease, border-color 300ms ease, transform 300ms ease, box-shadow 300ms ease;
}

.btn-gold:hover {
    border-color: var(--primary-hover);
    background: var(--primary-hover);
    box-shadow: var(--shadow-button);
    transform: translateY(-2px);
}

.btn-outline-gold {
    display: inline-flex;
    min-height: 3rem;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    background: transparent;
    padding: 0.85rem 1.9rem;
    color: var(--text-color);
    font-family: var(--font-body);
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    transition: border-color 300ms ease, color 300ms ease, background 300ms ease, transform 300ms ease;
}

.btn-outline-gold:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-text {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--primary-color);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    transition: color 300ms ease, gap 300ms ease;
}

.btn-text:hover {
    gap: 0.95rem;
    color: var(--primary-hover);
}

/* ── 导航与语言 ─────────────────────────────── */
.nav-link {
    position: relative;
    padding-bottom: 3px;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 300ms ease;
}

.nav-link::after {
    position: absolute;
    inset-inline-start: 0;
    bottom: 0;
    width: 0;
    height: 1px;
    background: var(--primary-color);
    content: "";
    transition: width 300ms ease;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link:hover::after {
    width: 100%;
}

.icon-btn {
    width: 2.75rem;
    height: 2.75rem;
    min-height: 2.75rem;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: transparent;
    color: var(--text-color);
    transition: border-color 300ms ease, color 300ms ease, background 300ms ease;
}

.icon-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.lang-menu {
    display: none;
    position: absolute;
    inset-inline-end: 0;
    top: calc(100% + 0.6rem);
    z-index: 60;
    width: 11.5rem;
    padding: 0.4rem;
    border: 1px solid var(--glass-border);
    border-radius: 0.9rem;
    background: rgba(30, 24, 19, 0.98);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(20px);
}

.lang-menu.is-open {
    display: block;
}

.lang-item {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    border: 0;
    border-radius: 0.6rem;
    background: transparent;
    padding: 0.6rem 0.75rem;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 0.84rem;
    text-align: start;
    transition: background 200ms ease, color 200ms ease;
}

.lang-item:hover {
    background: rgba(200, 166, 98, 0.12);
    color: var(--text-color);
}

.lang-item.is-active {
    color: var(--primary-color);
    font-weight: 700;
}

.lang-item.is-active::after {
    font-size: 0.7rem;
    content: "\2713";
}

@media (max-width: 767px) {
    .section-kicker::before {
        width: 1.5rem;
    }

    .arch-frame-large {
        height: 460px;
    }
}

/* ── 居中导航与品牌标识 ─────────────────────── */
.nav-link-gold {
    color: var(--primary-color);
}

.nav-link-gold:hover {
    color: var(--primary-hover);
}

/* ── 案例展示与成品家具 ─────────────────────── */
.case-card {
    display: flex;
    flex-direction: column;
}

.case-cover {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    background: var(--surface-raised);
}

.case-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
}

.case-card:hover .case-cover img {
    transform: scale(1.04);
}

.case-thumb {
    width: 6.5rem;
    height: 4.8rem;
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    background: var(--surface-raised);
    transition: border-color 300ms ease, transform 300ms ease;
}

.case-thumb:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.case-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-tile {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: 0.6rem;
    background: var(--surface-raised);
}

.gallery-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery-tile:hover img {
    transform: scale(1.06);
}

.gallery-tile-label {
    position: absolute;
    inset-inline-start: 0;
    top: 0;
    max-width: 100%;
    padding: 1rem 1.1rem 1.7rem;
    background: linear-gradient(180deg, rgba(18, 14, 10, 0.86) 0%, rgba(18, 14, 10, 0) 100%);
    color: var(--text-color);
    font-size: clamp(1.2rem, 0.95rem + 1.5vw, 2.3rem);
    font-weight: 500;
    letter-spacing: 0.04em;
    line-height: 1.1;
    text-align: start;
    transition: color 300ms ease;
}

.gallery-tile:hover .gallery-tile-label {
    color: var(--primary-color);
}

.masonry-tile {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: 0.6rem;
    background: var(--surface-raised);
}

.masonry-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
}

.masonry-tile:hover img {
    transform: scale(1.05);
}

/* ── 图片灯箱 ───────────────────────────────── */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 90;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    background: rgba(10, 8, 6, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.lightbox.is-open {
    display: flex;
}

.lightbox-inner {
    position: relative;
    display: flex;
    max-width: min(92vw, 1100px);
    max-height: 86vh;
    align-items: center;
    justify-content: center;
}

.lightbox-inner img {
    max-width: 100%;
    max-height: 86vh;
    border-radius: 0.6rem;
    object-fit: contain;
    opacity: 0;
    transition: opacity 400ms ease;
}

.lightbox-inner img.is-ready {
    opacity: 1;
}

.lightbox-spinner {
    position: absolute;
    width: 2.25rem;
    height: 2.25rem;
    border: 2px solid rgba(201, 169, 106, 0.35);
    border-top-color: var(--primary-color);
    border-radius: 999px;
    animation: lightboxSpin 900ms linear infinite;
}

@keyframes lightboxSpin {
    to {
        transform: rotate(360deg);
    }
}

.lightbox-close {
    position: absolute;
    top: 1.25rem;
    inset-inline-end: 1.25rem;
    z-index: 2;
    display: inline-flex;
    width: 2.9rem;
    height: 2.9rem;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    background: rgba(30, 24, 19, 0.85);
    color: var(--text-color);
    transition: border-color 300ms ease, color 300ms ease;
}

.lightbox-close:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}