.section-hero { padding: clamp(70px, 9vw, 130px) clamp(20px, 5vw, 80px) 26px; }
.section-hero .eyebrow { color: var(--red); }
.section-hero h1 { font-family: "Songti SC", "STSong", "SimSun", serif; font-size: clamp(40px, 5vw, 72px); font-weight: 400; letter-spacing: -.04em; margin: 18px 0 16px; }
.section-hero p { max-width: 640px; color: var(--muted); line-height: 1.8; }

.series-tabs { display: flex; gap: 10px; margin-top: 30px; flex-wrap: wrap; }
.series-tab { padding: 11px 24px; border: 1px solid var(--line); border-radius: 999px; background: transparent; cursor: pointer; font-size: 13px; color: var(--muted); }
.series-tab.active { color: #fff; background: var(--ink); border-color: var(--ink); }

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 30px; }
.chip { padding: 8px 15px; border: 1px solid var(--line); border-radius: 999px; background: #fff; cursor: pointer; font-size: 12px; color: var(--muted); }
.chip.active { color: #fff; background: var(--ink); border-color: var(--ink); }

/* 较大的色卡预览便于辨认纹理。 */
.mat-swatch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; padding: 0 clamp(20px, 5vw, 80px); }
.hot-swatch-note { display:block; margin-top:4px; color:var(--muted); font-size:12px; }
.mat-swatch { display: block; text-decoration: none; color: inherit; min-width: 0; }
.mat-swatch-img { position: relative; width: 100%; aspect-ratio: 1 / 1; border-radius: 14px; overflow: hidden; background: #ddd8ce; transition: transform .18s ease, box-shadow .18s ease; }
.mat-swatch-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mat-swatch:hover .mat-swatch-img { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(20,20,16,.16); }
.mat-swatch:focus-visible .mat-swatch-img { outline: 2px solid var(--ink, #171714); outline-offset: 3px; }

.mat-category-index { margin: 18px clamp(20px, 5vw, 80px) 34px; padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.58); }
.mat-category-head { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 16px; }
.mat-category-head h2 { margin-top: 6px; font-size: 20px; letter-spacing: -.02em; }
.mat-category-tip { color: var(--muted); font-size: 12px; }
.mat-category-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.mat-category-link { display: grid; grid-template-columns: 1fr auto; gap: 3px 12px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 11px; background: #fff; color: var(--ink); text-align: left; cursor: pointer; transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease; }
.mat-category-link:hover, .mat-category-link:focus-visible { border-color: var(--ink); transform: translateY(-2px); box-shadow: 0 8px 18px rgba(20,20,16,.08); outline: none; }
.mat-category-link.active { border-color: var(--ink); background: var(--ink); color: #fff; box-shadow: 0 8px 18px rgba(20,20,16,.14); }
.mat-category-link.active .mat-category-en, .mat-category-link.active .mat-category-count { color: rgba(255,255,255,.72); }
.mat-category-zh { font-size: 14px; font-weight: 650; }
.mat-category-en { grid-column: 1 / -1; color: var(--muted); font-size: 11px; }
.mat-category-count { grid-column: 1 / -1; margin-top: 4px; color: var(--muted); font-size: 11px; }
.mat-category-count b { float: right; color: var(--ink); font-size: 14px; }
.mat-group { margin: 0 clamp(20px, 5vw, 80px) 16px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.48); overflow: hidden; scroll-margin-top: 20px; }
.mat-group-head { display: flex; align-items: center; gap: 12px; min-height: 68px; padding: 14px 20px; cursor: pointer; list-style: none; }
.mat-group-head::-webkit-details-marker { display: none; }
.mat-group-head::marker { display: none; }
.mat-group-title { display: flex; align-items: baseline; flex-wrap: wrap; gap: 9px; min-width: 0; }
.mat-group-title strong { font-size: 19px; font-weight: 650; }
.mat-group-title small { color: var(--muted); font-size: 11px; letter-spacing: .02em; }
.mat-group-count { margin-left: auto; color: var(--muted); font-size: 12px; white-space: nowrap; }
.mat-group-chevron { color: var(--muted); font-size: 21px; line-height: 1; transition: transform .18s ease; }
.mat-group[open] .mat-group-chevron { transform: rotate(180deg); }
.mat-group-body { padding: 0 0 20px; }
.mat-group-label { margin: 0; padding: 0 20px 15px; color: var(--muted); font-size: 12px; }
@media (max-width: 640px) {
  .mat-category-index { padding: 16px; }
  .mat-category-head { align-items: start; flex-direction: column; gap: 6px; }
  .mat-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mat-group { margin-left: 12px; margin-right: 12px; }
  .mat-group-head { min-height: 60px; padding: 12px 15px; }
  .mat-group-title strong { font-size: 17px; }
  .mat-group-label { padding-left: 15px; padding-right: 15px; }
}

.mat-loading { padding: 18px clamp(20px, 5vw, 80px) 80px; color: var(--muted); font-size: 13px; }
.mat-loading-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 14px; margin-top: 14px; }
.mat-loading-card { display: block; aspect-ratio: 1; border-radius: 14px; background: linear-gradient(100deg, #e4e0d7 25%, #f4f1eb 38%, #e4e0d7 55%); background-size: 240% 100%; animation: mat-shimmer 1.2s infinite linear; }
@keyframes mat-shimmer { to { background-position: -140% 0; } }
.empty-state { padding: 80px 20px; text-align: center; color: var(--muted); }
.empty-state h2 { margin-bottom: 10px; color: var(--ink); }
.empty-state .primary-button { margin-top: 20px; }

/* 分类预览：查看全部按钮（与全站品牌蓝 CTA 一致） */
.mat-group-foot { display: flex; justify-content: center; margin-top: 16px; padding: 0 clamp(20px, 5vw, 80px); }
.group-more {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 12px 24px;
  border-radius: 999px; background: #0066cc; color: #fff;
  font-size: 15px; font-weight: 600; text-decoration: none; letter-spacing: .01em;
  transition: background .18s ease;
}
.group-more:hover { background: #0077ed; }
@media (max-width: 640px) { .group-more { width: 100%; } }

/* 单系列全量页：返回链接 + 标题 */
.back-link {
  display: inline-flex; align-items: center; gap: 6px;
  margin: 0 0 18px; padding: 0 clamp(20px, 5vw, 80px);
  color: #0066cc; font-size: 15px; font-weight: 600; text-decoration: none;
}
.single-head { display: flex; align-items: baseline; gap: 12px; padding: 0 clamp(20px, 5vw, 80px); margin-bottom: 18px; }
.single-head h2 { font-size: clamp(22px, 3vw, 30px); font-weight: 700; letter-spacing: -.02em; }
.single-head span { color: var(--muted); font-size: 14px; }

/* 详情页：左大场景图 + 右信息/色卡网格（参考 designtex 布局） */
.dt { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(28px, 4vw, 64px); padding: clamp(34px, 5vw, 80px) clamp(20px, 5vw, 80px) 30px; align-items: start; }
.dt-media { position: sticky; top: 24px; }
.dt-main { position: relative; width: 100%; aspect-ratio: 1 / 1; border-radius: 18px; overflow: hidden; background: #e9e4d8; box-shadow: var(--shadow, 0 18px 50px rgba(20,20,16,.12)); cursor: zoom-in; }
.dt-main img { width: 100%; height: 100%; object-fit: contain; display: block; }
.dt-empty { width: 100%; height: 100%; display: grid; place-items: center; color: var(--muted); font-size: 15px; }
.dt-main-tag { position: absolute; left: 14px; bottom: 14px; padding: 6px 12px; border-radius: 999px; background: rgba(23,23,20,.72); color: #fff; font-size: 12px; letter-spacing: .04em; }
.dt-strip { display: flex; gap: 12px; margin-top: 14px; }
.dt-thumb { width: 92px; padding: 0; border: 2px solid transparent; border-radius: 12px; overflow: hidden; background: #e9e4d8; cursor: pointer; position: relative; line-height: 0; }
.dt-thumb img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; }
.dt-thumb span { position: absolute; bottom: 0; left: 0; right: 0; font-size: 10px; line-height: 1.5; background: rgba(23,23,20,.7); color: #fff; text-align: center; padding: 2px 0; }
.dt-thumb.active { border-color: var(--ink, #171714); }

.dt-panel h1 { font-family: "Songti SC", "STSong", serif; font-size: clamp(32px, 4vw, 50px); font-weight: 400; letter-spacing: -.04em; margin: 10px 0 14px; }
.dt-code-row { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.dt-code { font-size: 14px; color: var(--muted); }
.dt-code b { color: var(--ink); font-size: 16px; margin-left: 4px; font-weight: 600; }
.dt-hex { width: 22px; height: 22px; border-radius: 6px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.dt-panel .desc { color: var(--muted); line-height: 1.9; margin: 0 0 18px; }
.dt-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.dt-tag { padding: 7px 13px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 12px; color: var(--ink); }

/* 同系列花色网格 */
.dt-similar { padding: 10px clamp(20px, 5vw, 80px) 30px; }
.dt-similar-head { margin-bottom: 18px; }
.dt-similar-head h2 { font-size: clamp(20px, 2.4vw, 26px); font-weight: 700; letter-spacing: -.02em; }
.dt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 16px; }
.dt-swatch { text-decoration: none; color: var(--ink); }
.dt-swatch-img { width: 100%; aspect-ratio: 1 / 1; border-radius: 12px; overflow: hidden; background: #ddd8ce; transition: transform .18s ease, box-shadow .18s ease; }
.dt-swatch-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dt-swatch:hover .dt-swatch-img { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(20,20,16,.16); }
.dt-swatch-code { display: block; margin-top: 8px; font-size: 12px; color: var(--muted); text-align: center; letter-spacing: .04em; }

/* 灯箱 */
.dt-lightbox { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 24px; background: rgba(12,12,10,.88); backdrop-filter: blur(8px); }
.dt-lightbox[hidden] { display: none; }
.dt-lightbox img { max-width: 92vw; max-height: 92vh; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.dt-lightbox-close { position: absolute; top: 20px; right: 24px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255,255,255,.16); color: #fff; font-size: 24px; cursor: pointer; }
.detail-actions { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.detail-actions .secondary-button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px; border: 1px solid var(--ink); border-radius: 999px; background: transparent; color: var(--ink); font-size: 14px; font-weight: 600; text-decoration: none; transition: background .18s ease, color .18s ease, transform .18s ease; }
.detail-actions .secondary-button:hover, .detail-actions .secondary-button:focus-visible { background: var(--ink); color: #fff; transform: translateY(-1px); outline: none; }
.detail-cta { margin: 6px 0 4px; }
.detail-cta .primary-button { text-decoration: none; display: inline-flex; align-items: center; }
.spec-block { display: grid; margin-top: 18px; border-top: 1px solid var(--line); }
.spec-row { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; padding: 13px 2px; border-bottom: 1px solid var(--line); }
.spec-row span { color: var(--muted); font-size: 13px; flex: none; }
.spec-row b { font-weight: 600; font-size: 15px; text-align: right; }
.detail-note { margin-top: 18px; padding: 14px 16px; border-radius: 12px; background: rgba(23,23,20,.05); color: var(--muted); font-size: 13px; line-height: 1.7; }

.video-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding: 10px clamp(20px, 5vw, 80px) 80px; }
.video-card { cursor: pointer; border: 0; background: transparent; text-align: left; padding: 0; }
.video-cover { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #222; }
.video-cover img { width: 100%; height: 100%; object-fit: cover; }
.video-cover .ph { width: 100%; height: 100%; display: grid; place-items: center; color: #fff; font-size: 16px; }
.video-cover .play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 54px; height: 54px; border-radius: 50%; background: rgba(255, 255, 255, .92); display: grid; place-items: center; color: #111; font-size: 20px; }
.video-card h3 { margin: 14px 0 4px; font-size: 15px; }
.video-card small { color: var(--muted); font-size: 12px; }

.video-modal { position: fixed; z-index: 100; inset: 0; display: none; place-items: center; padding: 22px; background: rgba(12, 12, 10, .82); backdrop-filter: blur(10px); }
.video-modal.open { display: grid; }
.video-modal .panel { width: min(960px, 100%); background: #000; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.video-modal header { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; background: #1c1c1a; color: #fff; }
.video-modal .close { border: 0; background: rgba(255, 255, 255, .15); color: #fff; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; font-size: 20px; }
.video-modal iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; display: block; }
.video-modal .ext { width: 100%; aspect-ratio: 16 / 9; display: grid; place-items: center; color: #fff; gap: 16px; padding: 40px; text-align: center; }
.video-modal .ext h3 { font-size: 20px; }
.video-modal .ext p { color: #b9b6ad; }

@media (max-width: 900px) {
  .mat-swatch-grid { grid-template-columns: repeat(auto-fill, minmax(145px, 1fr)); gap: 10px; }
  .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dt { grid-template-columns: 1fr; }
  .dt-media { position: static; }
}

#dimensionFilter { min-width: 130px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.showcase-toolbar { grid-template-columns: auto minmax(200px, 1fr) auto auto; }

.entry-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; padding: 0 clamp(20px, 5vw, 80px); margin: 10px 0 40px; }
.entry-card { display: block; padding: 22px; border: 1px solid var(--line); border-radius: 12px; background: #fff; text-decoration: none; color: var(--ink); transition: 180ms ease; }
.entry-card:hover { border-color: var(--ink); transform: translateY(-2px); }
.entry-card span { font-size: 16px; font-weight: 700; }
.entry-card small { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; line-height: 1.5; }
@media (max-width: 560px) {
  .video-grid { grid-template-columns: 1fr; }
}
