/* ============================================================
   致典家具 · 全局样式 (static/css/style.css)
   设计原则：原生 CSS / 设计 token 化 / 响应式 / 可访问性优先
   注意：--brand 由 base.html 内联 :root 动态注入，此处仅作降级兜底
   ============================================================ */

/* ---------- 1. 设计系统：变量 ---------- */
:root {
  /* 品牌主色（动态覆盖，见 base.html 内联） */
  --brand: #5C3A1E;
  --brand-dark: #4a2f17;
  --brand-gradient: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  --accent: #b8895a;
  --bg: #faf8f4;
  --bg-alt: #f3efe7;
  --text: #3a3a3a;
  --text-light: #8a8a8a;
  --border: #e8e2d6;
  --white: #ffffff;

  /* 圆角 */
  --radius-sm: 6px;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-pill: 30px;
  --radius-pill-sm: 20px;

  /* 阴影 */
  --shadow-sm: 0 2px 12px rgba(0, 0, 0, .06);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, .12);
  --shadow-lg: 0 4px 20px rgba(0, 0, 0, .12);

  /* 间距 */
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;

  /* 过渡 */
  --t-fast: .2s ease;
  --t-base: .3s ease;
  --t-img: transform .4s ease;

  /* 布局 */
  --container: 1200px;
  --header-h: 72px;
}

/* ---------- 2. 基础重置 ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
}

a { color: inherit; text-decoration: none; transition: color var(--t-fast); }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; height: auto; background: var(--bg-alt); }
video { max-width: 100%; display: block; }
button, input, textarea { font-family: inherit; }
button { cursor: pointer; border: none; background: none; }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.3; }

/* ---------- 3. 可访问性 ---------- */
:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  background: var(--brand);
  color: var(--white);
  padding: var(--space-3) var(--space-5);
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- 4. 布局 / 导航 / 页脚 / 按钮 ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }

/* 顶部导航 */
.topbar {
  position: var(--nav-pos); top: 0; z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 18px rgba(45, 74, 62, .06);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.logo { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 700; color: var(--brand); letter-spacing: 2px; }
.logo img { height: 44px; width: auto; }
.nav-menu { display: flex; gap: 6px; }
.nav-menu a { display: block; padding: 8px 16px; font-size: 15px; color: var(--text); border-radius: var(--radius-sm); transition: var(--t-fast); }
.nav-menu a:hover, .nav-menu a.active { color: var(--brand); background: var(--bg-alt); }
.nav-toggle { display: none; font-size: 26px; color: var(--brand); }

/* 页面标题区 */
.page-hero {
  position: relative;
  isolation: isolate;
  background: var(--brand-gradient);
  color: var(--white);
  padding: 56px 0;
  text-align: center;
}
.page-hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  opacity: .16;
  background-image: radial-gradient(circle at 15% 20%, rgba(255,255,255,.35) 0 1px, transparent 1.5px),
    radial-gradient(circle at 80% 70%, rgba(255,255,255,.22) 0 1px, transparent 1.5px);
  background-size: 28px 28px, 36px 36px;
}
.page-hero h1 { font-size: clamp(26px, 4vw, 34px); letter-spacing: 4px; margin-bottom: 10px; }
.page-hero p { font-size: 15px; opacity: .85; }

/* 通用板块 */
.section { padding: calc(var(--section-gap) * 2.6) 0; }
.section-title { text-align: center; margin-bottom: 44px; }
.section-title h2 { font-size: clamp(22px, 3vw, 28px); color: var(--brand); letter-spacing: 3px; }
.section-title .en { font-size: 13px; color: var(--text-light); letter-spacing: 1px; margin-top: 6px; }
.section-title .line { width: 64px; height: 2px; background: var(--accent); margin: 14px auto 0; position: relative; }
.section-title .line::after { content: ''; position: absolute; width: 8px; height: 8px; background: var(--accent); border-radius: 50%; left: 50%; top: 50%; transform: translate(-50%, -50%); box-shadow: 0 0 0 4px var(--bg); }

/* 底部：参考信息分层方案，采用克制的墨绿基调与三层信息结构。 */
.footer {
  --footer-muted: #9aa9a1;
  --footer-line: rgba(214, 221, 216, .12);
  --footer-accent: var(--accent, #c6a87c);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(145deg, #1b2d24 0%, #182a21 100%);
  color: #d6ddd8;
  padding: 64px 0 0;
}
.footer::before,
.footer::after {
  content: '';
  position: absolute;
  pointer-events: none;
  z-index: -1;
}
.footer::before { inset: 0 22px auto; height: 1px; background: linear-gradient(90deg, transparent, rgba(198, 168, 124, .64), transparent); }
.footer::after { display: none; }
.footer .container { position: relative; }
.footer-grid { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(150px,1fr) minmax(220px,1.2fr); gap: clamp(36px, 5vw, 64px); align-items: start; padding-bottom: 48px; }
.footer-grid.has-channels { grid-template-columns: minmax(0,1.4fr) minmax(150px,1fr) minmax(220px,1.2fr); }
.footer-brand { max-width: 520px; }
.footer-brand::after { display: none; }
.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-logo img { width: 40px; height: 40px; flex: none; border-radius: 50%; object-fit: cover; background: rgba(255,255,255,.1); }
.footer-logo span { color: #fff; font-size: 17px; font-weight: 600; letter-spacing: .05em; line-height: 1.45; }
.footer h4 { position: relative; color: #fff; margin-bottom: 20px; padding-bottom: 10px; font-size: 14px; font-weight: 600; letter-spacing: .08em; }
.footer h4::after { content: ''; position: absolute; left: 0; bottom: 0; width: 26px; height: 2px; background: var(--footer-accent); }
.footer a { color: #d6ddd8; display: inline-flex; align-items: center; margin: 0; font-size: 14px; line-height: 1.7; transition: color var(--t-fast), transform var(--t-fast); }
.footer a:hover { color: var(--footer-accent); transform: translateX(4px); }
.footer .slogan { color: #fff; font-size: 20px; font-weight: 500; letter-spacing: .04em; line-height: 1.5; margin-bottom: 12px; }
.footer-desc { max-width: 360px; margin: 0; color: var(--footer-muted); font-size: 14px; line-height: 1.8; }
.footer-nav { min-width: 0; }
.footer-links { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.footer-contact address { display: grid; gap: 8px; font-style: normal; }
.footer-contact address > * { display: block; min-width: 0; font-size: 14px; line-height: 1.7; overflow-wrap: anywhere; }
.footer-contact address > *::before { display: none; }
.footer-contact a { margin: 0; }
.footer-contact address span { color: #d6ddd8; }
.footer-bottom { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 12px; border-top: 1px solid var(--footer-line); margin-top: 0; padding: 24px 0; color: var(--footer-muted); text-align: center; font-size: 12px; line-height: 1.6; }
.footer-bottom span { margin-left: 0 !important; }

/* Footer 渠道区：自媒体保留，官方店铺改用平台标签与文字入口。 */
.footer-channels { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); gap: clamp(24px, 4vw, 52px); min-width: 0; margin: 0; padding: 28px 0; border-top: 1px solid var(--footer-line); border-bottom: 1px solid var(--footer-line); }
.footer-channels.is-single { display: block; }
.footer-social, .footer-stores { min-width: 0; }
.social-list { margin: 0; padding: 0; list-style: none; }
.social-list { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px; }
.social-wrap { position: relative; min-width: 0; }
.social-wrap--icon { flex: 0 0 auto; }
.social-wrap--text { flex: 1 1 180px; max-width: 100%; }
.footer .social-item {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; margin: 0; color: var(--footer-muted); border: 1px solid var(--footer-line);
  border-radius: 12px; background: rgba(255,255,255,.045); transition: var(--t-base);
}
.footer .social-item:hover, .footer .social-item:focus { color: var(--white); border-color: rgba(184, 149, 107, .7); background: rgba(255,255,255,.1); transform: translateY(-2px); }
.social-item--icon { width: calc(var(--social-icon-size) + 12px); height: calc(var(--social-icon-size) + 12px); padding: 5px; }
.social-icon { width: var(--social-icon-size); height: var(--social-icon-size); object-fit: contain; border-radius: max(4px, calc(var(--radius) - 2px)); background: transparent; }
.social-item--text { width: 100%; min-width: 0; max-width: 100%; flex-direction: column; align-items: flex-start; padding: 7px 9px; line-height: 1.35; }
.social-label, .social-account { max-width: 100%; white-space: normal; word-break: normal; overflow-wrap: break-word; }
.social-label { font-size: 14px; color: var(--white); }
.social-account { margin-top: 3px; font-size: 11px; opacity: .72; }
.social-qr {
  position: absolute; right: 0; bottom: calc(100% + 12px); z-index: 30;
  width: min(calc(var(--social-qr-size) + 24px), calc(100vw - 40px)); padding: 12px;
  border-radius: var(--radius); background: #fff; color: #333; box-shadow: var(--shadow-md);
  visibility: hidden; opacity: 0; transform: translateY(8px); pointer-events: none;
  transition: opacity var(--t-fast), transform var(--t-fast), visibility var(--t-fast);
}
.social-qr::after { content: ""; position: absolute; right: 18px; top: 100%; border: 7px solid transparent; border-top-color: #fff; }
.social-qr img { width: var(--social-qr-size); height: var(--social-qr-size); max-width: 100%; margin: 0 auto; object-fit: contain; background: #fff; }
.social-qr span { display: block; margin-top: 7px; color: #555; font-size: 12px; line-height: 1.45; text-align: center; white-space: normal; overflow-wrap: anywhere; }
.social-item:hover .social-qr, .social-item:focus .social-qr { visibility: visible; opacity: 1; transform: translateY(0); }

/* 店铺按平台聚合；避免大面积卡片抢占页脚视觉重心。 */
.footer-stores h4 { margin-bottom: 18px; }
.store-group { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 16px; }
.store-group:last-child { margin-bottom: 0; }
.store-platform { flex: none; padding: 4px 10px; border-radius: 4px; background: rgba(255,255,255,.08); color: #fff; font-size: 13px; font-weight: 600; line-height: 1.45; white-space: nowrap; }
.store-platform.jd { color: #ffd9d9; background: rgba(228, 57, 60, .17); }
.store-platform.tm { color: #ffd8e1; background: rgba(255, 0, 54, .15); }
.store-links { display: flex; flex-wrap: wrap; gap: 8px 16px; min-width: 0; }
.footer .store-link { margin: 0; color: var(--footer-muted); font-size: 14px; line-height: 1.7; text-decoration: none; }
.footer a.store-link:hover, .footer a.store-link:focus { color: var(--footer-accent); transform: none; }
.footer a.store-link::after { content: '↗'; margin-left: 4px; font-size: 11px; opacity: .62; }

/* 按钮 */
.btn {
  display: inline-block; padding: 10px 28px;
  background: var(--brand-gradient); color: var(--white);
  border-radius: var(--radius); font-size: 15px; letter-spacing: 1px;
  box-shadow: 0 8px 18px rgba(45, 74, 62, .16);
  transition: transform var(--t-fast), box-shadow var(--t-fast), filter var(--t-fast); text-align: center;
}
.btn:hover { filter: saturate(1.08) brightness(.94); transform: translateY(-2px); box-shadow: 0 12px 24px rgba(45, 74, 62, .22); }
.btn-outline { background: transparent; border: 1px solid var(--brand); color: var(--brand); }
.btn-outline:hover { background: var(--brand-gradient); color: var(--white); }

/* 主题化细节：金色强调线、柔和悬停与统一可点击反馈 */
.section-title h2::first-letter { color: var(--brand); }
.ui-card:focus-within, .product-card:focus-within, .news-card:focus-within, .case-card:focus-within { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 32%, transparent), var(--shadow-md); }

/* ---------- 5. 首页 ---------- */
/* PC 端控制首屏高度并等比铺满；不会拉伸，必要时仅裁掉少量上下画面。 */
.carousel { position: relative; height: clamp(520px, 50vw, 680px); min-height: 0; overflow: hidden; background: #21170f; }
.carousel-track { display: flex; height: 100%; transition: transform .6s ease; }
.carousel-slide { min-width: 100%; height: 100%; position: relative; }
.carousel-media { width: 100%; height: 100%; object-fit: cover; object-position: center 46%; background: transparent; }
.carousel-video { display: block; }
.carousel-media-empty { background: linear-gradient(135deg, #5C3A1E, #3a2412); }
.carousel-slide .overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.55), transparent 60%); display: flex; align-items: flex-end; }
.carousel-caption { color: #fff; padding: 60px; max-width: var(--container); margin: 0 auto; }
.carousel-caption h2 { font-size: clamp(24px, 4vw, 38px); letter-spacing: 4px; margin-bottom: 10px; }
.carousel-caption p { font-size: 16px; opacity: .9; }
.carousel-dots { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 10; }
.carousel-dots button { width: 10px; height: 10px; padding: 0; border-radius: 50%; background: rgba(255,255,255,.5); cursor: pointer; transition: var(--t-base); }
.carousel-dots button.active { background: #fff; width: 26px; border-radius: 5px; }
.carousel-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.2); color: #fff; font-size: 20px; cursor: pointer; z-index: 10; transition: var(--t-fast); }
.carousel-arrow:hover { background: rgba(255,255,255,.4); }
.carousel-arrow.prev { left: 24px; }
.carousel-arrow.next { right: 24px; }

/* 品牌简介摘要 */
.brand-intro { text-align: center; max-width: 820px; margin: 0 auto; }
.brand-intro .slogan-big { font-size: clamp(24px, 3vw, 30px); color: var(--brand); letter-spacing: 3px; margin-bottom: var(--space-5); }
.brand-intro p { font-size: 16px; color: var(--text-soft); line-height: 2; }

/* 创始人介绍（founder 区块） */
.founder { max-width: 880px; margin: 0 auto var(--space-8); background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: var(--space-8); }
.founder:last-child { margin-bottom: 0; }
.founder-head { display: flex; align-items: center; gap: var(--space-5); margin-bottom: var(--space-5); }
.founder-avatar { width: 96px; height: 96px; flex: none; border-radius: 50%; overflow: hidden; background: var(--bg-alt); }
.founder-avatar img { width: 100%; height: 100%; object-fit: cover; }
.founder-name { font-size: 24px; letter-spacing: 2px; }
.founder-title { font-size: 14px; color: var(--text-soft); margin-top: 4px; }
.founder-body { font-size: 16px; line-height: 2; color: var(--text-soft); }
.founder-section { margin-top: var(--space-5); }
.founder-section h4 { font-size: 17px; letter-spacing: 1px; margin-bottom: var(--space-3); }
.founder-quotes { margin-top: var(--space-5); padding: var(--space-5); border-left: 3px solid var(--brand); background: var(--bg-alt); border-radius: var(--radius); }

/* 产品分类快捷入口 */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-6); }
.cat-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: var(--t-base); }
.cat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.cat-card .thumb { height: 220px; overflow: hidden; }
.cat-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: var(--t-img); }
.cat-card:hover .thumb img { transform: scale(1.05); }
.cat-card .info { padding: var(--space-5); text-align: center; }
.cat-card .info h3 { font-size: 18px; color: var(--brand); margin-bottom: var(--space-2); }

/* 新闻列表（首页） */
.news-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.news-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: var(--t-base); }
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.news-card .cover { height: 180px; background: var(--bg-alt); overflow: hidden; }
.news-card .cover img { width: 100%; height: 100%; object-fit: cover; transition: var(--t-img); }
.news-card:hover .cover img { transform: scale(1.05); }
.news-card .body { padding: var(--space-5); }
.news-card h3 { font-size: 16px; margin-bottom: var(--space-2); line-height: 1.5; }
.news-card .date { font-size: 13px; color: var(--text-light); }

.cta { text-align: center; margin-top: 44px; }

/* ---------- 6. 品牌介绍 ---------- */
.brand-nav { display: flex; gap: var(--space-4); justify-content: center; margin-bottom: 44px; flex-wrap: wrap; }
.brand-nav a { padding: 10px 24px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-pill); font-size: 15px; color: var(--text); transition: var(--t-fast); }
.brand-nav a:hover { border-color: var(--brand); color: var(--brand); }
.story-block { max-width: 860px; margin: 0 auto; background: var(--white); border-radius: var(--radius-lg); padding: var(--space-12); box-shadow: var(--shadow-sm); }
.story-block h2 { font-size: 24px; color: var(--brand); margin-bottom: var(--space-6); padding-left: var(--space-4); border-left: 4px solid var(--brand); }
.story-block .rich { font-size: 16px; line-height: 2; color: var(--text-soft); }
.story-block .rich img { border-radius: var(--radius); margin: var(--space-4) 0; }
.timeline { margin: 32px 0; }
.timeline-item { position: relative; padding-left: 32px; padding-bottom: 28px; border-left: 2px solid var(--border); margin-left: 8px; }
.timeline-item:last-child { border-left-color: transparent; }
.timeline-item::before { content: ''; position: absolute; left: -7px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--brand); }
.timeline-item .year { font-size: 20px; color: var(--brand); font-weight: 700; }
.timeline-item p { color: var(--text-soft); }

/* ---------- 7. 产品中心 / 详情 ---------- */
.products-layout { display: grid; grid-template-columns: 240px 1fr; gap: var(--space-8); }
.sidebar { position: sticky; top: calc(var(--header-h) + 20px); align-self: start; }
.sidebar h3 { font-size: 18px; color: var(--brand); margin-bottom: var(--space-4); }
.sidebar ul { list-style: none; }
.sidebar li a { display: block; padding: 10px 16px; margin-bottom: 6px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 15px; color: var(--text); transition: var(--t-fast); }
.sidebar li a:hover, .sidebar li a.active { background: var(--brand); color: var(--white); border-color: var(--brand); }

.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.product-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: var(--t-base); }
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.product-card .thumb { height: 240px; overflow: hidden; }
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: var(--t-img); }
.product-card:hover .thumb img { transform: scale(1.05); }
.product-card .info { padding: var(--space-5); }
.product-card h3 { font-size: 17px; margin-bottom: var(--space-2); color: var(--text); }
.product-card .material { font-size: 13px; color: var(--brand); margin-bottom: var(--space-2); }
.product-card .desc { font-size: 14px; color: var(--text-light); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.empty { text-align: center; padding: 80px 0; color: var(--text-light); }

/* 产品详情 */
.detail-layout { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-12); }
.gallery { position: relative; }
.gallery-main { height: 480px; border-radius: var(--radius); overflow: hidden; background: var(--bg-alt); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; }
.gallery-thumbs .t { width: 80px; height: 80px; border-radius: var(--radius-sm); overflow: hidden; cursor: pointer; border: 2px solid transparent; opacity: .7; transition: var(--t-fast); }
.gallery-thumbs .t.active { border-color: var(--brand); opacity: 1; }
.gallery-thumbs .t img { width: 100%; height: 100%; object-fit: cover; }
.info h1 { font-size: 28px; color: var(--text); margin-bottom: var(--space-4); }
.meta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: var(--space-5); }
.meta span { padding: 6px 14px; background: var(--bg-alt); border-radius: var(--radius-pill-sm); font-size: 14px; color: var(--brand); }
.spec-table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.spec-table td { padding: 12px 16px; border: 1px solid var(--border); font-size: 15px; }
.spec-table td:first-child { background: var(--bg-alt); width: 120px; color: var(--text-light); }
.rich { margin-top: var(--space-6); line-height: 2; color: #555; }
.rich img { border-radius: var(--radius); margin: var(--space-3) 0; }

.related { margin-top: 64px; }
.related h2 { font-size: 22px; color: var(--brand); text-align: center; margin-bottom: 32px; }
.related h3 { text-align: center; font-size: 20px; color: var(--brand); margin-bottom: var(--space-6); }
.related-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.related-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: var(--t-base); }
.related-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.related-card .thumb, .related-card .cover { height: 180px; overflow: hidden; background: var(--bg-alt); }
.related-card .thumb img, .related-card .cover img { width: 100%; height: 100%; object-fit: cover; transition: var(--t-img); }
.related-card:hover .thumb img, .related-card:hover .cover img { transform: scale(1.05); }
.related-card .info { padding: 14px; text-align: center; font-size: 15px; }
.related-card h4 { font-size: 15px; color: var(--brand); }

/* 面包屑 */
.breadcrumb { font-size: 14px; color: var(--text-light); margin-bottom: var(--space-6); }
.breadcrumb a { transition: color var(--t-fast); }
.breadcrumb a:hover { color: var(--brand); text-decoration: underline; }

/* ---------- 8. 全屋定制 ---------- */
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.case-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: var(--t-base); display: block; }
.case-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.case-card .cover { height: 220px; overflow: hidden; background: var(--bg-alt); }
.case-card .cover img { width: 100%; height: 100%; object-fit: cover; transition: var(--t-img); }
.case-card:hover .cover img { transform: scale(1.05); }
.case-card .body { padding: 22px; }
.case-card .tag { display: inline-block; padding: 2px 12px; background: var(--bg-alt); color: var(--brand); border-radius: var(--radius-pill-sm); font-size: 12px; margin-bottom: 10px; }
.case-card h3 { font-size: 18px; color: var(--brand); margin-bottom: var(--space-2); }
.case-card p { font-size: 14px; color: var(--text-soft); line-height: 1.7; }
.intro-bar { text-align: center; max-width: 760px; margin: 0 auto 48px; color: var(--text-soft); font-size: 15px; line-height: 2; }

/* 定制详情 */
.case-hero { background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%); color: #fff; padding: 48px 0; }
.case-hero .container { max-width: 900px; }
.case-hero h1 { font-size: 30px; letter-spacing: 2px; margin-bottom: 10px; }
.case-hero .meta { font-size: 14px; opacity: .85; }
.case-cover { max-width: 900px; margin: 32px auto 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.case-cover img { width: 100%; display: block; }
.rich-content { max-width: 900px; margin: 0 auto; background: var(--surface); border-radius: var(--radius-lg); padding: var(--space-12); box-shadow: var(--shadow-sm); line-height: 2; color: var(--text-soft); }
.rich-content img { border-radius: var(--radius); margin: var(--space-4) 0; }
.rich-content h1, .rich-content h2, .rich-content h3 { color: var(--brand); margin: 24px 0 12px; }

/* ---------- 9. 新闻 ---------- */
.tag-filter { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 40px; }
.tag-filter a { padding: 8px 22px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-pill); font-size: 14px; color: var(--text); transition: var(--t-fast); }
.tag-filter a:hover, .tag-filter a.active { background: var(--brand); color: var(--white); border-color: var(--brand); }

.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.news-grid .news-card .cover { height: 200px; }
.news-card .meta { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-light); }
.pin-badge { display: inline-block; background: var(--brand); color: #fff; font-size: 12px; padding: 2px 8px; border-radius: 3px; margin-right: 8px; }

/* 新闻详情 */
.article { max-width: 860px; margin: 0 auto; background: var(--surface); border-radius: var(--radius-lg); padding: 56px; box-shadow: var(--shadow-sm); }
.article h1 { font-size: 30px; color: var(--text); margin-bottom: var(--space-5); line-height: 1.4; }
.article .meta { display: flex; gap: 20px; font-size: 14px; color: var(--text-light); padding-bottom: var(--space-5); border-bottom: 1px solid var(--border); margin-bottom: var(--space-6); flex-wrap: wrap; }
.article .content { line-height: 2; color: var(--text-soft); font-size: 16px; }
.article .content img { border-radius: var(--radius); margin: var(--space-4) 0; }
.article .content .article-imported { text-align: justify; text-justify: inter-ideograph; letter-spacing: .02em; }
.article .content .article-imported > *:first-child { margin-top: 0; }
.article .content .article-imported > *:last-child { margin-bottom: 0; }
.article .content .article-imported p { margin: 0 0 1.25em; text-indent: 2em; }
.article .content .article-imported h1,
.article .content .article-imported h2,
.article .content .article-imported h3,
.article .content .article-imported h4,
.article .content .article-imported h5,
.article .content .article-imported h6 { color: var(--brand); line-height: 1.5; letter-spacing: .04em; margin: 1.8em 0 .7em; }
.article .content .article-imported h2 { font-size: 23px; }
.article .content .article-imported h3 { font-size: 19px; }
.article .content .article-imported ul,
.article .content .article-imported ol { margin: 0 0 1.25em 1.4em; padding-left: 1.1em; }
.article .content .article-imported li { margin: .35em 0; padding-left: .2em; }
.article .content .article-imported blockquote { margin: 1.5em 0; padding: .7em 1em; border-left: 3px solid var(--brand); background: var(--bg-alt); color: var(--text); }
.article .content .article-imported blockquote p { margin: 0; text-indent: 0; }
.article .content .article-imported pre { margin: 1.5em 0; padding: 16px; overflow-x: auto; border-radius: var(--radius-sm); background: #292521; color: #f6f0e8; line-height: 1.7; }
.article .content .article-imported code { padding: .12em .35em; border-radius: 3px; background: var(--bg-alt); font-family: Consolas, monospace; font-size: .9em; }
.article .content .article-imported pre code { padding: 0; background: transparent; color: inherit; }
.article .content .article-imported table { width: 100%; margin: 1.5em 0; border-collapse: collapse; font-size: 14px; text-align: left; }
.article .content .article-imported th,
.article .content .article-imported td { padding: 10px 12px; border: 1px solid var(--border); vertical-align: top; }
.article .content .article-imported th { background: var(--bg-alt); color: var(--brand); font-weight: 600; }
.article .content .article-imported td p { margin: 0; text-indent: 0; }
.article .content .article-imported img { display: block; max-width: 100%; height: auto; }
.article-videos { margin-top: var(--space-8); }
.article-videos h2, .media-section h2 { color: var(--brand); font-size: 20px; margin-bottom: var(--space-4); }
.article .tags { margin-top: var(--space-8); display: flex; gap: 10px; flex-wrap: wrap; }
.article .tags span { padding: 6px 14px; background: var(--bg-alt); border-radius: var(--radius-pill-sm); font-size: 13px; color: var(--brand); }
.back { display: inline-block; margin-bottom: var(--space-6); color: var(--text-light); font-size: 14px; transition: color var(--t-fast); }
.back:hover { color: var(--brand); }

/* ---------- 10. 门店 / 联系 ---------- */
.showroom-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.showroom-list { display: grid; gap: var(--space-5); }
.showroom-card { background: var(--white); border-radius: var(--radius); padding: var(--space-6); box-shadow: var(--shadow-sm); display: flex; gap: 18px; align-items: flex-start; cursor: pointer; transition: var(--t-fast); border: 2px solid transparent; }
.showroom-card:hover { border-color: var(--brand); }
.showroom-card.active { border-color: var(--brand); background: var(--bg-alt); }
.showroom-card .thumb { width: 90px; height: 90px; border-radius: var(--radius-sm); overflow: hidden; background: var(--bg-alt); flex-shrink: 0; }
.showroom-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.showroom-card h4 { font-size: 17px; color: var(--brand); margin-bottom: 6px; }
.showroom-card p { font-size: 14px; color: var(--text-soft); line-height: 1.7; }
.showroom-card .row { display: flex; gap: 6px; align-items: center; margin-top: 2px; }
.map-side { position: sticky; top: calc(var(--header-h) + 18px); }
.map-box { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.showroom-map-frame, .showroom-map-empty { display: block; width: 100%; height: 520px; border: 0; }
.showroom-map-frame { background: var(--bg-alt); }
.showroom-map-empty { display: flex; align-items: center; justify-content: center; padding: 24px; background: linear-gradient(135deg,#e8e2d6,#d5cbb5); color: #8a7a5c; font-size: 14px; line-height: 1.7; text-align: center; }

/* 联系页：门店导航后显示全宽留言，门店地址仅在门店卡片中展示。 */
.contact-direct-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5); max-width: 820px; margin: 0 auto var(--space-6); }
.contact-direct-card { display: flex; align-items: center; gap: 14px; min-width: 0; padding: 16px 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); transition: var(--t-fast); }
.contact-direct-card:hover { border-color: var(--brand); transform: translateY(-2px); }
.contact-direct-icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; flex: none; border-radius: 50%; background: var(--bg-alt); font-size: 18px; }
.contact-direct-card small, .contact-direct-card strong { display: block; }
.contact-direct-card small { color: var(--text-light); font-size: 13px; }
.contact-direct-card strong { min-width: 0; color: var(--text); font-size: 16px; font-weight: 600; overflow-wrap: break-word; }
.contact-message-panel { padding: clamp(24px, 4vw, 42px); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.contact-message-heading { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-5); margin-bottom: var(--space-6); }
.contact-message-heading h2 { font-size: clamp(22px, 3vw, 28px); }
.contact-message-heading p { color: var(--text-soft); font-size: 14px; }
.contact-message-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 var(--space-5); }
.contact-message-content { grid-column: 1 / -1; }
.contact-message-actions { display: flex; align-items: center; justify-content: flex-end; gap: var(--space-4); }
.contact-message-actions .btn { min-width: 160px; }
.form-group { margin-bottom: var(--space-4); }
.form-group label { display: block; font-size: 14px; margin-bottom: 6px; color: var(--text); }
.form-group input, .form-group textarea { width: 100%; padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 15px; font-family: inherit; transition: border-color var(--t-fast); }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--brand); }
.form-group textarea { min-height: 120px; resize: vertical; }
.form-msg { margin-top: 14px; text-align: center; font-size: 14px; }
.form-msg.ok { color: #2e7d32; }
.form-msg.err { color: #c62828; }

/* 图片与视频共存的内容展示 */
.media-section { margin: var(--space-12) 0; }
.media-video-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--space-5); }
.content-video { width: 100%; aspect-ratio: 16 / 9; object-fit: contain; border-radius: var(--radius); background: #171411; box-shadow: var(--shadow-sm); }
.media-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #5c3a1e, #a67b4c); color: #fff; font-size: 15px; font-weight: 600; }
.product-card .thumb, .case-card .cover, .news-card .cover { position: relative; }
.media-badge { position: absolute; right: 10px; bottom: 10px; padding: 3px 8px; border-radius: var(--radius-pill-sm); background: rgba(0,0,0,.7); color: #fff; font-size: 12px; line-height: 1.3; }

/* 错误页（404/500） */
.error-page { text-align: center; padding: 120px 0; }
.error-page .code { font-size: 80px; color: var(--brand); margin-bottom: var(--space-5); }
.error-page h2 { color: var(--text); margin-bottom: var(--space-3); }
.error-page p { color: var(--text-light); margin-bottom: var(--space-8); }

/* ---------- 11. 响应式 ---------- */
/* 大屏 / 小桌面 */
@media (max-width: 1180px) {
  .footer-grid.has-channels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-channels { grid-column: 1 / -1; }
}

@media (max-width: 1024px) {
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .products-layout { grid-template-columns: 200px 1fr; gap: var(--space-6); }
  .detail-layout { gap: var(--space-8); }
}

/* 平板 */
@media (max-width: 768px) {
  .nav { height: 60px; }
  .nav-menu { display: none; position: absolute; top: 60px; left: 0; right: 0; flex-direction: column; background: var(--white); border-bottom: 1px solid var(--border); padding: 8px 0; }
  .nav-menu.open { display: flex; }
  .nav-toggle { display: block; }
  .footer-grid, .footer-grid.has-channels { grid-template-columns: 1fr; }
  .footer { padding-top: 48px; }
  .footer-brand { max-width: none; padding: 0 0 26px; border-bottom: 1px solid rgba(216, 201, 184, .14); }
  .footer-brand::after { display: none; }
  .footer-channels { grid-column: auto; grid-template-columns: 1fr; margin-top: 0; }
  .store-group { align-items: flex-start; flex-direction: column; gap: 8px; }
  .store-links { gap: 8px 14px; }
  .social-qr {
    position: fixed; left: 50%; right: auto; bottom: 24px;
    transform: translate(-50%, 8px);
  }
  .social-item:hover .social-qr, .social-item:focus .social-qr { transform: translate(-50%, 0); }
  .social-qr::after { display: none; }
  .page-hero { padding: 36px 0; }

  .carousel { height: auto; min-height: 0; aspect-ratio: var(--carousel-ratio, 3 / 2); }
  .carousel-media { object-fit: contain; object-position: center; }
  .carousel-caption { padding: 24px; }
  .cat-grid, .news-list, .news-grid, .product-grid, .case-grid { grid-template-columns: 1fr 1fr; }
  .related-grid { grid-template-columns: 1fr 1fr; }

  .products-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .detail-layout { grid-template-columns: 1fr; }
  .gallery-main { height: 320px; }
  .showroom-layout { grid-template-columns: 1fr; }
  .map-side { position: static; }
  .showroom-map-frame, .showroom-map-empty { height: 360px; }
  .contact-message-form { grid-template-columns: 1fr 1fr; }
  .contact-message-content { grid-column: 1 / -1; }
  .story-block, .rich-content, .article { padding: 24px; }
  .article h1 { font-size: 24px; }
}

/* 手机 */
@media (max-width: 480px) {
  .footer-channels { grid-template-columns: 1fr; }
  .social-wrap--text { flex-basis: 100%; }
  .contact-direct-list, .contact-message-form { grid-template-columns: 1fr; }
  .contact-message-heading, .contact-message-actions { align-items: stretch; flex-direction: column; }
  .contact-message-actions .btn { width: 100%; }
  .contact-message-content { grid-column: auto; }
  .cat-grid, .news-list, .news-grid, .product-grid, .case-grid, .related-grid { grid-template-columns: 1fr; }
}

/* ---------- 12. 卡片墙组件（cards_wall 区块 / ui-card 卡片） ---------- */
/* 响应式网格：auto-fit + minmax 自适应列数，无需断点即可覆盖桌面/平板/手机/不同浏览器 */
.card-wall-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-6);
  align-items: stretch;
}

/* 首页精选推荐：不同来源的新闻、案例和功能卡共用一套稳定卡片比例，
   避免无图卡被拉出大片空白，或长标题把整行卡片撑变形。 */
.featured-card-grid > .ui-card {
  min-width: 0;
  min-height: 480px;
}
.featured-card-grid .ui-card-cover {
  height: 190px;
  flex: 0 0 190px;
}
.featured-card-grid .ui-card-body { min-height: 0; }
.featured-card-grid .ui-card--news .ui-card-title,
.featured-card-grid .ui-card--image-text .ui-card-title,
.featured-card-grid .ui-card--product .ui-card-title {
  display: -webkit-box;
  min-height: 3em;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.featured-card-grid .ui-card--news .ui-card-text,
.featured-card-grid .ui-card--image-text .ui-card-text,
.featured-card-grid .ui-card--product .ui-card-text {
  display: -webkit-box;
  overflow: hidden;
  flex: none;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}
.featured-card-grid .ui-card--news .ui-card-link,
.featured-card-grid .ui-card--image-text .ui-card-link,
.featured-card-grid .ui-card--product .ui-card-link { margin-top: auto; }
.featured-card-grid .ui-card--feature .ui-card-body,
.featured-card-grid .ui-card--cta .ui-card-body,
.featured-card-grid .ui-card--contact .ui-card-body,
.featured-card-grid .ui-card--testimonial .ui-card-body { justify-content: center; }
.featured-card-grid .ui-card--feature .ui-card-text,
.featured-card-grid .ui-card--contact .ui-card-text,
.featured-card-grid .ui-card--testimonial .ui-card-text { flex: none; }

/* 卡片基础：--card-bg/--card-h/--card-t/--card-a 由后台每卡配色注入，缺省回退主题色 */
.ui-card {
  background: var(--card-bg, var(--white));
  color: var(--card-t, var(--text));
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--t-base);
  display: flex;
  flex-direction: column;
  position: relative;
}
.ui-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

.ui-card-cover { position: relative; height: 200px; overflow: hidden; background: var(--bg-alt); }
.ui-card-cover img { width: 100%; height: 100%; object-fit: cover; transition: var(--t-img); }
.ui-card:hover .ui-card-cover img { transform: scale(1.05); }

.ui-card-badge {
  position: absolute; top: 12px; left: 12px; z-index: 1;
  background: var(--card-a, var(--brand)); color: #fff;
  font-size: 12px; padding: 3px 10px; border-radius: var(--radius-pill-sm);
}
.ui-card-badge--inline { position: static; display: inline-block; margin-bottom: var(--space-3); }

.ui-card-body { padding: var(--space-5); display: flex; flex-direction: column; flex: 1; }
.ui-card-sub { font-size: 13px; color: var(--card-a, var(--brand)); margin-bottom: var(--space-2); letter-spacing: 1px; }
.ui-card-title { font-size: 17px; color: var(--card-h, var(--brand)); line-height: 1.5; margin-bottom: var(--space-2); }
.ui-card-text { font-size: 14px; color: var(--card-t, var(--text)); opacity: .85; line-height: 1.7; flex: 1; }
.ui-card-meta { display: flex; align-items: center; gap: var(--space-3); margin-top: var(--space-3); }
.ui-card-tag { font-size: 12px; color: var(--card-t, var(--text)); opacity: .7; border: 1px solid var(--border); padding: 2px 8px; border-radius: var(--radius-pill-sm); }
.ui-card-date { font-size: 13px; color: var(--card-t, var(--text)); opacity: .6; margin-bottom: var(--space-2); }
.ui-card-link { display: inline-block; margin-top: var(--space-3); font-size: 14px; font-weight: 600; color: var(--card-a, var(--brand)); }
.ui-card-link:hover { text-decoration: underline; }

/* 特性卡：图标圆盘居中 */
.ui-card--feature { text-align: center; }
.ui-card--feature .ui-card-body { align-items: center; }
.ui-card-icon {
  width: 64px; height: 64px; margin-bottom: var(--space-4);
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; border-radius: 50%;
  background: var(--bg-alt); color: var(--card-a, var(--brand));
}

/* 图片画廊卡：纯图 + 渐变说明层 */
.ui-card--gallery { min-height: 260px; }
.ui-card--gallery img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; transition: var(--t-img); }
.ui-card--gallery:hover img { transform: scale(1.05); }
.ui-card-caption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  padding: var(--space-5) var(--space-4) var(--space-4);
  background: linear-gradient(transparent, rgba(0, 0, 0, .62));
  color: #fff;
}
.ui-card-caption .ui-card-title { color: #fff; margin-bottom: 2px; font-size: 16px; }
.ui-card-caption .ui-card-sub { color: rgba(255, 255, 255, .85); margin-bottom: 0; }

/* CTA 卡：品牌底色、居中 */
.ui-card--cta { background: var(--card-bg, var(--brand)); color: var(--card-t, #fff); text-align: center; justify-content: center; }
.ui-card--cta .ui-card-body { align-items: center; padding: var(--space-8) var(--space-5); }
.ui-card--cta .ui-card-title { color: var(--card-h, #fff); font-size: 20px; }
.ui-card--cta .ui-card-sub { color: var(--card-t, rgba(255, 255, 255, .85)); }
.ui-card--cta .ui-card-text { color: var(--card-t, rgba(255, 255, 255, .85)); flex: none; }
.ui-card-btn {
  display: inline-block; margin-top: var(--space-4);
  padding: 10px 26px; border-radius: var(--radius-pill);
  background: #fff; color: var(--card-a, var(--brand));
  font-size: 14px; font-weight: 600; transition: var(--t-fast);
}
.ui-card-btn:hover { background: var(--card-a, var(--brand)); color: #fff; }

/* 评价卡：大引号 + 引用 + 署名 */
.ui-card-quote { font-size: 56px; line-height: 1; color: var(--card-a, var(--brand)); opacity: .25; font-family: Georgia, serif; }
.ui-card-blockquote p { font-size: 15px; line-height: 1.9; color: var(--card-t, var(--text)); }
.ui-card-author { margin-top: var(--space-4); font-size: 14px; display: flex; align-items: baseline; gap: var(--space-2); }
.ui-card-author strong { color: var(--card-h, var(--brand)); }
.ui-card-author span { color: var(--card-t, var(--text)); opacity: .65; font-size: 13px; }

/* 门店联系卡：信息列表 */
.ui-card-info { margin: var(--space-3) 0; }
.ui-card-info li { display: flex; gap: var(--space-3); font-size: 14px; padding: 6px 0; border-bottom: 1px dashed var(--border); }
.ui-card-info li:last-child { border-bottom: none; }
.ui-card-info .k { flex: none; width: 40px; color: var(--card-a, var(--brand)); font-weight: 600; }
.ui-card-actions { display: flex; gap: var(--space-4); flex-wrap: wrap; }

/* 窄屏微调（卡片墙本身自适应，此处仅收紧留白与封面高度） */
@media (max-width: 768px) {
  .card-wall-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--space-4); }
  .ui-card-cover { height: 170px; }
  .featured-card-grid > .ui-card { min-height: 440px; }
  .featured-card-grid .ui-card-cover { height: 170px; flex-basis: 170px; }
}
@media (max-width: 480px) {
  .card-wall-grid { grid-template-columns: 1fr; }
  .ui-card-cover { height: 200px; }
}

/* ---------- 13. 图片画廊（小轮播 + 灯箱放大，产品/案例详情页共用） ---------- */
.gl-stage {
  position: relative;
  height: 480px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-alt);
  outline-offset: 3px;
  touch-action: pan-y; /* 纵向滚动正常，横向滑动交给轮播 */
}
.gl-stage .gl-img {
  width: 100%; height: 100%; object-fit: cover;
  transition: opacity .25s ease;
  user-select: none; -webkit-user-select: none;
  -webkit-user-drag: none;
}
.gl-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(0, 0, 0, .42); color: #fff;
  font-size: 26px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--t-fast);
  z-index: 2;
}
.gl-arrow:hover { background: rgba(0, 0, 0, .68); }
.gl-prev { left: 14px; }
.gl-next { right: 14px; }
.gl-counter {
  position: absolute; right: 14px; bottom: 12px; z-index: 2;
  background: rgba(0, 0, 0, .55); color: #fff;
  font-size: 12px; padding: 3px 12px; border-radius: var(--radius-pill-sm);
  letter-spacing: 1px;
}
.gl-zoom {
  position: absolute; left: 14px; bottom: 12px; z-index: 2;
  background: rgba(0, 0, 0, .55); color: #fff;
  font-size: 12px; padding: 4px 12px; border-radius: var(--radius-pill-sm);
  transition: background var(--t-fast);
}
.gl-zoom:hover { background: rgba(0, 0, 0, .75); }
.gl-thumbs {
  display: flex; gap: 10px; margin-top: 12px;
  overflow-x: auto; padding-bottom: 4px;
  scrollbar-width: thin;
}
.gl-thumb {
  flex: none; width: 80px; height: 80px; padding: 0;
  border-radius: var(--radius-sm); overflow: hidden;
  border: 2px solid transparent; opacity: .65;
  transition: var(--t-fast); background: var(--bg-alt);
}
.gl-thumb:hover { opacity: .9; }
.gl-thumb.active { border-color: var(--brand); opacity: 1; }
.gl-thumb img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }

/* 灯箱（放大视图） */
.lb {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0, 0, 0, .92);
  display: none; align-items: center; justify-content: center;
  touch-action: pan-y;
}
.lb.open { display: flex; }
body.lb-open { overflow: hidden; }
.lb-img {
  max-width: 92vw; max-height: 86vh;
  object-fit: contain;
  box-shadow: 0 12px 48px rgba(0, 0, 0, .6);
  border-radius: var(--radius-sm);
  transition: opacity .2s ease;
  user-select: none; -webkit-user-select: none; -webkit-user-drag: none;
  background: transparent;
}
.lb-close, .lb-arrow {
  position: fixed; z-index: 1001;
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255, 255, 255, .14); color: #fff;
  font-size: 30px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--t-fast);
}
.lb-close:hover, .lb-arrow:hover { background: rgba(255, 255, 255, .3); }
.lb-close { top: 20px; right: 20px; font-size: 32px; }
.lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 20px; top: 50%; transform: translateY(-50%); }
.lb-counter {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  color: rgba(255, 255, 255, .85); font-size: 14px; letter-spacing: 2px;
  background: rgba(255, 255, 255, .1); padding: 4px 16px; border-radius: var(--radius-pill-sm);
}

/* 平板 / 手机适配 */
@media (max-width: 768px) {
  .gl-stage { height: 320px; }
  .gl-arrow { width: 38px; height: 38px; font-size: 22px; }
  .gl-prev { left: 8px; }
  .gl-next { right: 8px; }
  .gl-thumb { width: 64px; height: 64px; }
  .lb-close, .lb-arrow { width: 44px; height: 44px; font-size: 26px; }
  .lb-close { top: 12px; right: 12px; }
  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }
}
