﻿/* ============================================
   地球胶板 - 全站样式（黑金奢华版）
   深邃黑 / 奢华金 / 高端商务
   ============================================ */

/* ---------- 变量 ---------- */
:root {
    --primary: #0d0d0d;
    --primary-light: #1a1a1a;
    --primary-mid: #2a2a2a;
    --accent: #c9a96e;
    --accent-hover: #ddb978;
    --accent-glow: rgba(201,169,110,.25);
    --text: #1a1a1a;
    --text-light: #6b7280;
    --border: #e5e7eb;
    --border-dark: rgba(255,255,255,.08);
    --bg: #f5f5f5;
    --bg-subtle: #fafafa;
    --white: #ffffff;
    --radius: 10px;
    --radius-sm: 6px;
    --shadow-sm: 0 2px 12px rgba(0,0,0,.06);
    --shadow-md: 0 8px 30px rgba(0,0,0,.08);
    --shadow-lg: 0 20px 60px rgba(0,0,0,.12);
    --transition: all .25s ease;
}

/* ---------- 基础重置 ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    font-size: 15px;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
button { cursor: pointer; border: none; background: none; font-family: inherit; font-size: inherit; }
input[type="radio"], input[type="checkbox"] { display: none; }

/* ---------- 容器 ---------- */
.container-narrow { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: 1160px; margin: 0 auto; padding: 0 28px; }


/* ============================================
   顶部导航 - 深色黑金风格
   ============================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--primary);
    border-bottom: 1px solid var(--border-dark);
}

.header-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 32px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--white);
}
.logo span { color: var(--accent); }

.main-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link {
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255,255,255,.7);
    border-radius: var(--radius-sm);
    position: relative;
    transition: var(--transition);
}
.nav-link:hover,
.nav-link.active { color: var(--white); }
.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -18px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

.nav-dropdown { position: relative; }
.nav-dropdown .arrow {
    display: inline-block;
    width: 0; height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    margin-left: 5px;
    vertical-align: middle;
    opacity: .5;
}
.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    min-width: 180px;
    background: var(--primary-mid);
    border-radius: var(--radius);
    box-shadow: 0 12px 40px rgba(0,0,0,.35);
    padding: 10px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    border: 1px solid var(--border-dark);
}
.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
.dropdown-menu a {
    display: block;
    padding: 10px 16px;
    font-size: 13px;
    color: rgba(255,255,255,.65);
    border-radius: 8px;
    transition: var(--transition);
}
.dropdown-menu a:hover {
    background: rgba(201,169,110,.12);
    color: var(--accent);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.icon-btn {
    width: 38px; height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: rgba(255,255,255,.6);
    transition: var(--transition);
}
.icon-btn:hover { background: rgba(255,255,255,.08); color: var(--accent); }

.lang-switch {
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255,255,255,.55);
    border: 1px solid var(--border-dark);
    border-radius: 20px;
    transition: var(--transition);
}
.lang-switch:hover { border-color: var(--accent); color: var(--accent); }


/* ---------- 搜索遮罩层 ---------- */
.search-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 9999;
    background: rgba(13,13,13,.96);
    backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}
.search-overlay.show {
    opacity: 1;
    visibility: visible;
}
.search-inner {
    position: relative;
    width: 600px;
    max-width: 90%;
}
.search-inner input {
    width: 100%;
    padding: 20px 60px 20px 28px;
    font-size: 18px;
    border: 2px solid var(--border-dark);
    border-radius: 50px;
    outline: none;
    background: rgba(255,255,255,.06);
    color: var(--white);
    transition: var(--transition);
}
.search-inner input::placeholder { color: rgba(255,255,255,.3); }
.search-inner input:focus { border-color: var(--accent); }
.search-inner .close-search {
    position: absolute;
    right: 16px; top: 50%;
    transform: translateY(-50%);
    font-size: 28px;
    color: rgba(255,255,255,.4);
}


/* ============================================
   面包屑
   ============================================ */
.breadcrumb-bar {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
}
.breadcrumb-bar a { color: var(--text-light); font-size: 13px; }
.breadcrumb-bar a:hover { color: var(--accent); }
.breadcrumb-bar .sep { margin: 0 8px; color: #ccc; font-size: 11px; }
.breadcrumb-bar .current { color: var(--text); font-size: 13px; font-weight: 500; }


/* ============================================
   产品主体展示区
   ============================================ */
.product-main { padding: 48px 0; }

.product-showcase {
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    margin-bottom: 40px;
}

.product-showcase .container-wide {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    padding: 32px 28px;
    max-width: 1480px;
    align-items: start;
}


/* ---- 左侧：图片区 ---- */
.gallery-area { display: flex; flex-direction: column; gap: 18px; }

.gallery-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.toolbar-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ---- 产品信息区 ---- */
.product-info {
    margin-top: 12px;
    padding-top: 20px;
    border-top: 1px dashed var(--border);
}
.info-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}
.info-actions .btn-primary,
.info-actions .btn-outline {
    flex: 1;
    padding: 13px 20px;
    font-size: 14px;
    text-align: center;
}

/* ---- 规格表（右侧产品参数） ---- */
.spec-table {
    margin-top: 24px;
    border-top: 1px solid var(--border);
    padding-top: 20px;
}
.spec-row {
    display: flex;
    align-items: baseline;
    padding: 9px 0;
    border-bottom: 1px solid rgba(0,0,0,.04);
}
.spec-row:last-child {
    border-bottom: none;
}
.spec-label {
    min-width: 72px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: 0.3px;
    flex-shrink: 0;
    padding-top: 4px;
}
.spec-value {
    font-size: 14px;
    color: #444;
    font-weight: 400;
}

/* 可选的规格选项（尺寸/厚度） */
.spec-options {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.spec-opt {
    padding: 5px 14px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-light);
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
    user-select: none;
    transition: var(--transition);
}
.spec-opt:hover {
    border-color: var(--accent);
    color: var(--accent);
}
.spec-opt.active {
    background: rgba(201,169,110,.1);
    border-color: var(--accent);
    color: var(--accent);
    font-weight: 600;
}

.toolbar-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 500;
    color: var(--white);
    background: linear-gradient(135deg, var(--accent), #b8944d);
    border-radius: 8px;
    transition: var(--transition);
}
.toolbar-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(201,169,110,.35);
}

.toolbar-right { display: flex; gap: 6px; }
.tool-icon {
    width: 38px; height: 38px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 8px;
    color: var(--text-light);
    border: 1px solid var(--border);
    transition: var(--transition);
}
.tool-icon:hover { color: var(--accent); border-color: var(--accent); background: #fdf8ee; }

/* ---- 主图区：双图布局（正面大图 + 侧面小图） ---- */
.main-image-box {
    aspect-ratio: auto;
    min-height: 440px;
    border-radius: var(--radius);
    background: linear-gradient(145deg, #fafbfc, #f0f2f5);
    display: flex;
    align-items: center;         /* 垂直居中 */
    justify-content: center;
    overflow: hidden;
    border: 1px solid var(--border);
    position: relative;
}

.image-pair {
    display: flex;
    align-items: center;         /* 主图和侧图都垂直居中，各自保持原尺寸 */
    gap: 16px;
    width: 100%;
    padding: 20px;
}

.img-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.img-main img {
    max-width: 85%;
    max-height: 88%;
    object-fit: contain;
    transition: transform .4s ease;
}
.main-image-box:hover .img-main img { transform: scale(1.04); }

/* 右侧侧视图 - 固定小尺寸，在主图右侧居中显示 */
.img-side {
    width: 110px;
    height: 260px;
    display: none;
    position: relative;
    border-radius: 6px !important;
    overflow: hidden !important;
    flex-shrink: 0;
}
.img-side.has-img { display: block !important; }
.img-side img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    margin: auto;
    transition: transform .3s ease;
}
.img-side:hover img { transform: scale(1.05); }

.side-label {
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    font-weight: 600;
    color: rgba(255,255,255,.8);
    background: linear-gradient(135deg, var(--accent), #b8944d);
    padding: 2px 10px;
    border-radius: 10px;
    pointer-events: none;
}

.view-tabs {
    display: flex;
    gap: 8px;
}
.view-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 11px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-light);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}
.view-tab:hover { color: var(--primary); border-color: #ccc; }
.view-tab.active {
    color: var(--accent);
    background: #fdf8ee;
    border-color: var(--accent);
}


/* ---- 颜色选择器 ---- */
.color-picker {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 20px;
    border: 1px solid var(--border);
}

.picker-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.material-tabs { display: inline-flex; background: var(--white); border-radius: 8px; padding: 3px; border: 1px solid var(--border); }
.m-tab {
    padding: 7px 22px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-light);
    border-radius: 6px;
    transition: var(--transition);
}
.m-tab.active {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(13,13,13,.15);
}
.m-tab:not(.active):hover { color: var(--primary); }

.picker-hint { font-size: 12px; color: #bbb; }

.color-grid {
    display: flex !important;
    flex-wrap: wrap;
    gap: 10px;
}

.color-swatch {
    width: 36px; height: 36px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid transparent;
    background: var(--white);
    padding: 2px;
    transition: var(--transition);
    position: relative;
}
.color-swatch:hover { transform: scale(1.1); }
.color-swatch.active {
    border-color: var(--accent);
    box-shadow: 0 0 0 2.5px rgba(201,169,110,.15);
}
.color-swatch img {
    width: 100%; height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* 颜色分组（圈料/脾料同行显示） */
.color-row {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}
.color-row:last-child {
    margin-bottom: 0;
}
.color-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    white-space: nowrap;
    flex-shrink: 0;
}


/* ---- 右侧：信息区 ---- */
.info-area { display: flex; flex-direction: column; gap: 16px; padding-top: 8px; }

.tag-row { display: flex; gap: 8px; flex-wrap: wrap; }
.tag {
    padding: 5px 14px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-light);
    background: var(--bg);
    border-radius: 20px;
    border: 1px solid var(--border);
}
.tag-primary {
    background: rgba(201,169,110,.1);
    color: var(--accent);
    border-color: rgba(201,169,110,.2);
}

.product-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.share-row {
    display: flex;
    align-items: center;
    gap: 10px;
}
.share-label { font-size: 13px; color: var(--text-light); }
.share-icons { display: flex; gap: 6px; }
.share-icon {
    width: 32px; height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bg);
    color: var(--text-light);
    transition: var(--transition);
}
.share-icon:hover { 
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}
.share-icon.fb:hover { background:#1877F2; color:#fff; }
.share-icon.li:hover { background:#0077B5; color:#fff; }
.share-icon.wx:hover { background:#07C160; color:#fff; }
.share-icon.wb:hover { background:#E6162D; color:#fff; }


/* ---- 订单表单 ---- */
.order-form {
    margin-top: 12px;
    padding-top: 24px;
    border-top: 1px dashed var(--border);
}

.form-group { margin-bottom: 22px; }
.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.form-value {
    font-size: 14px;
    color: var(--text);
    padding: 8px 0;
}

.option-list { display: flex; flex-wrap: wrap; gap: 10px; }
.checkbox-list { display: flex; flex-wrap: wrap; gap: 12px; }

/* 单选按钮样式 */
.opt-radio {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
    transition: var(--transition);
}
.opt-radio:hover { border-color: #bbb; }
.opt-radio.checked {
    border-color: var(--primary);
    background: rgba(26,26,46,.04);
}
.opt-mark {
    width: 17px; height: 17px;
    border: 2px solid #ccc;
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
    transition: var(--transition);
}
.opt-radio.checked .opt-mark {
    border-color: var(--primary);
}
.opt-radio.checked .opt-mark::after {
    content: '';
    position: absolute;
    top: 3px; left: 3px;
    width: 7px; height: 7px;
    background: var(--primary);
    border-radius: 50%;
}
.opt-text { font-size: 14px; font-weight: 500; }

/* 复选框样式 */
.opt-check {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    font-size: 14px;
    color: var(--text);
    cursor: pointer;
    user-select: none;
    transition: var(--transition);
}
.check-mark {
    width: 18px; height: 18px;
    border: 2px solid #ccc;
    border-radius: 4px;
    position: relative;
    flex-shrink: 0;
    transition: var(--transition);
}
.opt-check.checked .check-mark {
    background: var(--primary);
    border-color: var(--primary);
}
.opt-check.checked .check-mark::after {
    content: '';
    position: absolute;
    top: 2px; left: 5px;
    width: 5px; height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.form-actions {
    display: flex;
    gap: 14px;
    margin-top: 28px;
}

.btn-primary {
    flex: 1;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    color: var(--white);
    background: linear-gradient(135deg, var(--accent), #b8944d);
    border-radius: 10px;
    transition: var(--transition);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(201,169,110,.35);
}

.btn-outline {
    flex: 1;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    color: var(--primary);
    background: var(--white);
    border: 2px solid var(--primary);
    border-radius: 10px;
    transition: var(--transition);
}
.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}


/* ============================================
   产品细节展示
   ============================================ */
.detail-gallery {
    padding: 52px 0;
}
.sec-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 28px;
    position: relative;
    padding-left: 16px;
}
.sec-title::before {
    content: '';
    position: absolute;
    left: 0; top: 4px;
    width: 4px; height: 20px;
    background: linear-gradient(180deg, var(--accent), #b8944d);
    border-radius: 2px;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
.detail-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.detail-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.card-img {
    height: 320px;
    background: linear-gradient(145deg, #fafbfc, #f0f2f5);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.card-img img {
    max-width: 82%;
    max-height: 85%;
    object-fit: contain;
}
.card-caption {
    text-align: center;
    padding: 14px;
    font-size: 14px;
    color: var(--text-light);
    border-top: 1px solid var(--border);
}


/* ============================================
   同系列产品推荐
   ============================================ */
.related-products {
    padding: 20px 0 64px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}
.related-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.related-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}
.rc-img {
    height: 200px;
    background: linear-gradient(145deg, #fafbfc, #f0f2f5);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.rc-img img {
    max-width: 75%;
    max-height: 80%;
    object-fit: contain;
    transition: transform .35s ease;
}
.related-card:hover .rc-img img { transform: scale(1.06); }
.rc-info { padding: 16px; text-align: center; }
.rc-info h3 { font-size: 15px; font-weight: 600; color: var(--primary); margin-bottom: 4px; }
.rc-info p { font-size: 13px; color: var(--text-light); margin: 0; }


/* ============================================
   镜框选择弹窗（Modal）
   ============================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0,0,0,.55);
    backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.modal-dialog {
    width: 620px;
    max-width: 100%;
    max-height: 85vh;
    background: var(--white);
    border-radius: 16px;
    padding: 36px 32px 28px;
    position: relative;
    box-shadow: var(--shadow-lg);
    animation: modalIn .3s ease;
}
@keyframes modalIn {
    from { opacity: 0; transform: scale(.95) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close {
    position: absolute;
    top: 14px; right: 16px;
    width: 34px; height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #aaa;
    border-radius: 50%;
    transition: var(--transition);
}
.modal-close:hover { background: var(--bg); color: var(--text); }

.modal-title {
    text-align: center;
    font-size: 19px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 28px;
}

.frame-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.frame-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 12px 16px;
    border: 2px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    position: relative;
    transition: var(--transition);
    user-select: none;
    background: var(--white);
}
.frame-item:hover {
    border-color: var(--accent);
    background: #fdf8ee;
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(201,169,110,.15);
}
.frame-item:has(input:checked) {
    border-color: var(--accent);
    background: #fdf8ee;
    box-shadow: 0 4px 14px rgba(201,169,110,.2);
}
/* 镜框图片区域 - 只显示图片无文字 */
.frame-thumb {
    width: 100%;
    height: 120px;
    background: linear-gradient(145deg, #fafbfc, #f5f6f8);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 8px;
}
.frame-thumb img {
    max-width: 95%;
    max-height: 105px;
    object-fit: contain;
    transition: transform .25s ease;
}
.frame-item:hover .frame-thumb img {
    transform: scale(1.06);
}
.frame-tick {
    position: absolute;
    top: -1px; right: -1px;
    width: 26px; height: 26px;
    background: var(--accent);
    border-radius: 0 11px 0 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0;
    transform: scale(.5);
    transition: var(--transition);
}
.frame-item:has(input:checked) .frame-tick { opacity: 1; transform: scale(1); }

.modal-footer {
    text-align: center;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}
.btn-modal-confirm {
    padding: 12px 56px;
    font-size: 15px;
    font-weight: 600;
    color: var(--white);
    background: linear-gradient(135deg, var(--accent), #b8944d);
    border-radius: 10px;
    transition: var(--transition);
}
.btn-modal-confirm:hover { background: linear-gradient(135deg, #ddb978, #c9a96e); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(201,169,110,.25); }


/* ============================================
   页脚 - 深色黑金版
   ============================================ */
.site-footer {
    background: #0a0a0a;
    color: rgba(255,255,255,.7);
    position: relative;
}
.site-footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent 5%, var(--accent) 50%, transparent 95%);
}

.footer-top { padding: 60px 0 44px; }
.footer-cols {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.2fr;
    gap: 52px;
}
.f-logo {
    font-size: 26px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 16px;
    letter-spacing: -0.3px;
}
.f-logo span { color: var(--accent); }
.f-desc {
    font-size: 14px;
    line-height: 1.85;
    color: rgba(255,255,255,.45);
}
.f-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 18px;
    letter-spacing: .5px;
}
.f-col a {
    display: block;
    font-size: 14px;
    color: rgba(255,255,255,.5);
    margin-bottom: 10px;
    transition: all .2s ease;
}
.f-col a:hover { color: var(--accent); padding-left: 4px; }
.f-col p { font-size: 14px; color: rgba(255,255,255,.45); margin-bottom: 8px; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.06);
    padding: 20px 0;
    text-align: center;
    font-size: 13px;
    color: rgba(255,255,255,.35);
}


/* ---------- 回到顶部按钮 ---------- */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 46px; height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    color: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(201,169,110,.25);
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: var(--transition);
    z-index: 900;
}
.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.back-to-top:hover {
    background: var(--accent-hover);
    transform: translateY(-3px);
}


/* ============================================
   响应式
   ============================================ */
@media (max-width: 1024px) {
    .product-showcase .container-wide {
        grid-template-columns: 1fr;
        gap: 36px;
        padding: 32px 24px;
    }
    .product-showcase .container-wide { max-width: 1160px; }
    .gallery-area { order: 1; }
    .info-area { order: 2; }
    .main-image-box { max-width: 420px; margin: 0 auto; }
    .related-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-cols { grid-template-columns: 1fr 1fr; gap: 32px; }
    .f-brand { grid-column: span 2; }
}

@media (max-width: 768px) {
    .header-inner { padding: 0 16px; height: 58px; }
    .main-nav { display: none; }
    .logo { font-size: 18px; }
    .lang-switch { display: none; }

    .product-showcase .container-wide { padding: 24px 18px; }
    .main-image-box { min-height: 300px; }
    .image-pair { flex-direction: column-reverse; gap: 8px; }
    .img-side { width: 80px !important; height: 140px !important; border-radius: 10px !important; }
    
    .product-title { font-size: 26px; }
    .form-actions { flex-direction: column; }
    
    .detail-grid { grid-template-columns: 1fr; }
    .card-img { height: 240px; }
    .related-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
    
    .modal-dialog { padding: 28px 20px 22px; }
    .frame-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .frame-thumb { height: 90px; }
    .frame-thumb img { max-height: 80px; }
    
    .footer-cols { grid-template-columns: 1fr; gap: 24px; }
    .f-brand { grid-column: auto; }
    
    .back-to-top { bottom: 20px; right: 20px; width: 40px; height: 40px; }
}

@media (max-width: 480px) {
    .related-grid { grid-template-columns: 1fr; }
    .option-list { flex-direction: column; }
    .color-swatch { width: 44px; height: 44px; }
}


/* ============================================
   首页特有样式
   ============================================ */

/* ---- Hero 主视觉区 ---- */
.hero-section {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #0d0d0d 0%, #1a1a1a 40%, #2a2a2a 100%);
    z-index: 0;
}
.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(201,169,110,.12) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(201,169,110,.08) 0%, transparent 50%);
}
.hero-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
    padding: 60px 0;
}
.hero-subtitle {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 20px;
}
.hero-title {
    font-size: 56px;
    font-weight: 800;
    color: var(--white);
    line-height: 1.12;
    letter-spacing: -1.5px;
    margin-bottom: 24px;
}
.hero-title .accent {
    background: linear-gradient(135deg, #c9a96e, #ddb978);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-desc {
    font-size: 17px;
    line-height: 1.8;
    color: rgba(255,255,255,.6);
    margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 16px; }

.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    padding: 16px 36px;
    font-size: 15px;
    font-weight: 600;
    color: var(--white);
    background: linear-gradient(135deg, var(--accent), #b8944d);
    border-radius: 50px;
    transition: all .3s ease;
}
.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(201,169,110,.35);
}

.btn-hero-outline {
    display: inline-flex;
    align-items: center;
    padding: 16px 36px;
    font-size: 15px;
    font-weight: 600;
    color: var(--white);
    border: 2px solid rgba(255,255,255,.25);
    border-radius: 50px;
    transition: all .3s ease;
}
.btn-hero-outline:hover {
    border-color: rgba(255,255,255,.55);
    background: rgba(255,255,255,.08);
}

/* 滚动提示 */
.hero-scroll-hint {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 1;
}
.hero-scroll-hint span {
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255,255,255,.35);
}
.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255,255,255,.5), transparent);
    animation: scrollPulse 1.8s infinite;
}
@keyframes scrollPulse {
    0%, 100% { opacity: .3; transform: scaleY(.6); transform-origin: top; }
    50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
}


/* ---- 产品分类导航（首页）---- */
.category-nav {
    padding: 70px 0;
    background: var(--white);
}
.text-center { text-align: center; }
.category-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 18px;
}
.cat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 14px;
    border-radius: var(--radius);
    transition: all .3s ease;
    text-decoration: none;
    color: inherit;
}
.cat-card:hover {
    background: var(--bg);
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}
.cat-icon {
    width: 90px;
    height: 90px;
    border-radius: 16px;
    background: linear-gradient(145deg, #fafbfc, #f0f2f5);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    overflow: hidden;
    border: 1px solid var(--border);
}
.cat-icon img { max-width: 68%; max-height: 75%; object-fit: contain; }
.cat-card h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 3px;
}
.cat-card p {
    font-size: 12px;
    color: var(--text-light);
    margin: 0;
}
.cat-more { text-align: center; margin-top: 28px; }
.btn-more {
    display: inline-block;
    padding: 12px 32px;
    font-size: 14px;
    font-weight: 500;
    color: var(--primary);
    border: 1.5px solid var(--border);
    border-radius: 30px;
    transition: all .25s ease;
}
.btn-more:hover {
    border-color: var(--primary);
    background: var(--primary);
    color: var(--white);
}


/* ---- 精选产品展示 ---- */
.featured-products {
    padding: 30px 0 64px;
    background: var(--bg);
}
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}
.view-all {
    font-size: 14px;
    font-weight: 500;
    color: var(--accent);
    transition: color .2s;
}
.view-all:hover { color: var(--accent-hover); }

.featured-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}
.fp-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all .3s ease;
    text-decoration: none;
    color: inherit;
}
.fp-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}
.fp-large {
    grid-row: span 2;
}
.fp-img {
    height: 200px;
    background: linear-gradient(145deg, #fafbfc, #f0f2f5);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.fp-large .fp-img {
    height: calc(100% - 76px);
}
.fp-img img {
    max-width: 75%;
    max-height: 82%;
    object-fit: contain;
    transition: transform .35s ease;
}
.fp-card:hover .fp-img img { transform: scale(1.06); }
.fp-info { padding: 16px; }
.fp-tag {
    display: inline-block;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 600;
    color: var(--accent);
    background: rgba(201,169,110,.1);
    border-radius: 20px;
    margin-bottom: 8px;
}
.fp-info h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 4px;
}
.fp-info p {
    font-size: 13px;
    color: var(--text-light);
    margin: 0;
}


/* ---- 品牌优势 ---- */
.advantages-section {
    padding: 64px 0;
    background: var(--white);
}
.advantages-section .sec-title {
    text-align: center;
    padding-left: 0;
}
.advantages-section .sec-title::before {
    left: 50%;
    transform: translateX(-50%);
}

.adv-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 26px;
}
.adv-card {
    padding: 32px 24px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    text-align: center;
    transition: all .3s ease;
}
.adv-card:hover {
    border-color: transparent;
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}
.adv-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(201,169,110,.12), rgba(201,169,110,.06));
    color: var(--accent);
}
.adv-card h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
}
.adv-card p {
    font-size: 13.5px;
    color: var(--text-light);
    line-height: 1.7;
}


/* ---- 数据统计 ---- */
.stats-section {
    padding: 48px 0;
    background: linear-gradient(135deg, #0d0d0d, #1a1a1a);
}
.stats-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
}
.stat-item { text-align: center; }
.stat-num {
    font-size: 42px;
    font-weight: 800;
    color: var(--white);
}
.stat-suffix {
    font-size: 22px;
    font-weight: 700;
    color: var(--accent);
}
.stat-label {
    display: block;
    font-size: 13px;
    color: rgba(255,255,255,.5);
    margin-top: 4px;
}
.stat-divider {
    width: 1px;
    height: 44px;
    background: rgba(255,255,255,.15);
}


/* ---- CTA 行动号召 ---- */
.cta-section {
    padding: 80px 0;
    background: var(--bg);
}
.cta-box {
    text-align: center;
    padding: 60px 40px;
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow-md);
}
.cta-box h2 {
    font-size: 30px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
}
.cta-box p {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 30px;
}
.cta-buttons { display: flex; justify-content: center; gap: 16px; }

.btn-cta {
    display: inline-block;
    padding: 14px 36px;
    font-size: 15px;
    font-weight: 600;
    color: var(--white);
    background: linear-gradient(135deg, var(--accent), #b8944d);
    border-radius: 10px;
    transition: all .3s ease;
}
.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(201,169,110,.35);
}
.btn-cta-outline {
    display: inline-block;
    padding: 14px 36px;
    font-size: 15px;
    font-weight: 600;
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 10px;
    transition: all .3s ease;
}
.btn-cta-outline:hover {
    background: var(--primary);
    color: var(--white);
}


/* 首页响应式 */
@media (max-width: 1024px) {
    .hero-title { font-size: 44px; }
    .category-grid { grid-template-columns: repeat(4, 1fr); }
    .featured-grid { grid-template-columns: repeat(3, 1fr); }
    .adv-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
    .stats-row { gap: 28px; flex-wrap: wrap; }
    .stat-divider { display: none; }
}

@media (max-width: 768px) {
    .hero-section { min-height: auto; padding: 80px 0; }
    .hero-title { font-size: 34px; }
    .hero-subtitle { font-size: 11px; letter-spacing: 3px; }
    .hero-actions { flex-direction: column; }
    .btn-hero-primary, .btn-hero-outline { justify-content: center; }
    
    .category-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
    .cat-icon { width: 70px; height: 70px; border-radius: 12px; }
    
    .featured-grid { grid-template-columns: repeat(2, 1fr); }
    .fp-large { grid-row: span 1; }
    .fp-large .fp-img { height: 180px; }
    
    .adv-grid { grid-template-columns: 1fr; }
    
    .cta-box { padding: 40px 24px; }
    .cta-box h2 { font-size: 24px; }
    .cta-buttons { flex-direction: column; }
    
    .stat-num { font-size: 32px; }
    .hero-scroll-hint { display: none; }
}


/* ============================================
   产品系列列表页样式（products/*.html）
   ============================================ */

/* 页面横幅 */
.page-banner {
    background: linear-gradient(135deg, #0d0d0d 0%, #1a1a1a 50%, #2a2a2a 100%);
    padding: 50px 0;
    text-align: center;
    position: relative;
}
.page-banner::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.banner-inner h1 {
    font-size: 34px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}
.banner-desc {
    font-size: 15px;
    color: rgba(255,255,255,.55);
}

/* 筛选工具栏 */
.catalog-toolbar {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
    position: sticky;
    top: 64px;
    z-index: 90;
}
.toolbar-left {
    flex: 1;
}
.result-count {
    font-size: 14px;
    color: var(--text-light);
}
.result-count strong {
    color: var(--primary);
    font-weight: 700;
}
.toolbar-right {
    display: flex;
    gap: 4px;
}
.sort-btn {
    padding: 7px 18px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-light);
    border: 1px solid var(--border);
    border-radius: 20px;
    background: transparent;
    cursor: pointer;
    transition: all .2s ease;
}
.sort-btn:hover,
.sort-btn.active {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(201,169,110,.08);
}

/* ---- 主内容区布局：侧栏 + 产品列表 ---- */
.catalog-toolbar .container-wide,
.catalog-main .container-wide {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.catalog-main {
    padding: 28px 0 50px;
}
.catalog-main .container-wide {
    display: flex;
    align-items: flex-start;
    gap: 32px;
}

/* 左侧筛选侧边栏 */
.sidebar {
    width: 240px;
    min-width: 240px;
    position: sticky;
    top: 92px;
    max-height: calc(100vh - 112px);
    overflow-y: auto;
}
.filter-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px 18px;
    box-shadow: var(--shadow-sm);
}
.filter-header h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.filter-group {
    margin-bottom: 20px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border);
}
.filter-group:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}
.filter-group h5 {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 10px;
}
.filter-options {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.filter-options label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    font-size: 13.5px;
    color: var(--text-light);
    border-radius: 8px;
    cursor: pointer;
    transition: all .2s ease;
}
.filter-options label:hover {
    background: var(--bg);
    color: var(--text);
}
.filter-options input[type="checkbox"] {
    width: 15px;
    height: 15px;
    accent-color: var(--accent);
}

/* 右侧产品列表区 */
.product-list-area {
    flex: 1;
    min-width: 0; /* 防止flex溢出 */
}

/* 系列分组区块 */
.product-series-block {
    margin-bottom: 48px;
}
.series-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--border);
}
.series-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
}
.series-count {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-light);
    background: var(--bg);
    padding: 3px 12px;
    border-radius: 12px;
}

/* 4列产品网格 */
.product-grid-4col {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* 产品卡片（系列页专用） */
.prod-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    color: inherit;
    transition: all .3s ease;
}
.prod-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}
.prod-img {
    position: relative;
    height: 200px;
    background: linear-gradient(145deg, #fafbfc, #f0f2f5);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.prod-img img {
    max-width: 78%;
    max-height: 86%;
    object-fit: contain;
    transition: transform .35s ease;
}
.prod-card:hover .prod-img img {
    transform: scale(1.05);
}
.prod-overlay {
    position: absolute;
    inset: 0;
    background: rgba(13,13,13,.75);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .25s ease;
}
.prod-card:hover .prod-overlay {
    opacity: 1;
}
.view-detail {
    display: inline-block;
    padding: 8px 24px;
    font-size: 13px;
    font-weight: 600;
    color: var(--white);
    border: 2px solid var(--white);
    border-radius: 25px;
    transform: translateY(8px);
    transition: transform .25s ease;
}
.prod-card:hover .view-detail {
    transform: translateY(0);
}
.prod-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 700;
    color: var(--white);
    background: var(--accent);
    border-radius: 10px;
    letter-spacing: 0.5px;
}
.prod-badge.hot {
    background: linear-gradient(135deg, #c9a96e, #b8944d);
}
.prod-info {
    padding: 14px 16px;
}
.prod-info h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 3px;
}
.prod-code {
    font-size: 12.5px;
    color: var(--text-light);
    margin: 0;
}

/* 颜色筛选点 */
.color-filter-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}
.color-filter-dot {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 50%;
    border: 3px solid transparent;
    cursor: pointer;
    transition: all .2s ease;
    outline: none;
}
.color-filter-dot.active {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--primary);
}
.color-filter-dot:hover {
    transform: scale(1.1);
}

/* 分页 */
.pagination-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 40px;
    padding: 30px 0 10px;
}
.page-btn {
    min-width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 500;
    color: var(--primary);
    border: 1px solid var(--border);
    border-radius: 8px;
    text-decoration: none;
    transition: all .2s ease;
}
.page-btn:hover:not(.disabled):not(.active) {
    border-color: var(--accent);
    color: var(--accent);
}
.page-btn.active {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
}
.page-btn.disabled {
    color: #ccc;
    pointer-events: none;
    opacity: .5;
}

/* 系列页响应式 */
@media (max-width: 1024px) {
    .product-grid-4col { grid-template-columns: repeat(3, 1fr); }
    .series-header h2 { font-size: 20px; }
}
@media (max-width: 768px) {
    .catalog-main { flex-direction: column; }
    .sidebar { 
        position: static !important; 
        width: 100% !important; 
        margin-bottom: 24px;
    }
    .product-grid-4col { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .prod-img { height: 160px; }
    .banner-inner h1 { font-size: 26px; }
    .toolbar-right { display: none; } /* 移动端隐藏排序 */
}
