/* ============================================
   纹藏·贵州 - Guizhou Pattern Library
   配色：朱红 + 米白 + 苗绣蓝靛 + 黄铜金
   ============================================ */

:root {
  --red-900: #5a0e0a;
  --red-700: #7a1410;
  --red-500: #b81d1d;
  --red-400: #e23a2e;
  --red-300: #ef6a5d;
  --paper:   #f6efe3;
  --paper-2: #fbf6ec;
  --ink:     #1f1410;
  --ink-2:   #3a2620;
  --muted:   #8a6a5a;
  --line:    #e6d8c4;
  --indigo:  #1c3a6e;
  --indigo-2:#274a86;
  --gold:    #d6a64b;
  --gold-2:  #b78236;
  --bg:      #faf6ee;
  --shadow:  0 10px 30px rgba(122, 20, 16, .12);
  --shadow-lg: 0 24px 60px rgba(122, 20, 16, .18);
  --radius:  14px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Noto Serif SC", "Songti SC", "STSong", "Source Han Serif SC", "PingFang SC", "Microsoft YaHei", serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ================= 导航 ================= */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #16315f;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(207, 224, 255, .2);
}
.nav-inner {
  max-width: 1320px; margin: 0 auto;
  display: flex; align-items: center; gap: 28px;
  padding: 12px 28px;
}
.brand {
  display: flex; align-items: center; gap: 10px; cursor: pointer;
  flex: 0 0 auto; white-space: nowrap;
}
.brand-mark { display: inline-flex; align-items: center; flex: 0 0 auto; }
.brand-mark img {
  height: 44px; width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.25));
}
.site-footer .brand-mark img {
  height: 20px; width: auto;
}
.site-header .brand-text {
  font-size: 19px; font-weight: 700; color: #f6efe3;
  letter-spacing: 1px; white-space: nowrap;
}
.site-footer .brand-text {
  font-size: 20px; font-weight: 700; color: #f6efe3;
  letter-spacing: 2px;
}
.primary-nav { display: flex; gap: 4px; flex: 1; margin-left: 18px; }
.primary-nav a {
  position: relative;
  padding: 8px 14px; border-radius: 8px;
  color: rgba(246, 239, 227, .9); font-size: 15px;
  transition: background .2s, color .2s;
}
.primary-nav a:hover { background: rgba(214, 166, 75, .15); color: #e8c36a; }
.primary-nav a.active {
  color: #e8c36a; font-weight: 700;
}
.primary-nav a { white-space: nowrap; }
.primary-nav a.active::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: 2px;
  height: 2px; background: #e8c36a; border-radius: 2px;
}
/* 导航增加「团队动态」后共 7 项，中等屏宽下压缩间距，避免挤压右侧工具区 */
@media (max-width: 1280px) {
  .nav-inner { gap: 16px; padding: 12px 18px; }
  .primary-nav { margin-left: 6px; gap: 2px; }
  .primary-nav a { padding: 8px 10px; font-size: 14px; }
  .site-header .brand-text { font-size: 16px; letter-spacing: .5px; }
}
@media (max-width: 1100px) {
  .site-header .brand-text { font-size: 15px; letter-spacing: 0; }
  .site-header .brand-mark img { height: 38px; }
}
@media (max-width: 900px) {
  .site-header .brand-text { font-size: 14px; }
  .site-header .brand-mark img { height: 34px; }
}
.nav-tools { display: flex; align-items: center; gap: 12px; }
.icon-btn {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(207, 224, 255, .6); background: transparent;
  color: #cfe0ff; display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all .2s;
}
.icon-btn:hover { background: rgba(207, 224, 255, .15); color: #fff; border-color: #fff; }
.nav-search { display: flex; align-items: center; }
.nav-search-input {
  width: 0; padding: 0; border: 0; opacity: 0; height: 36px;
  border-radius: 18px; background: rgba(255, 247, 232, .95); color: var(--ink);
  font: inherit; font-size: 14px; outline: none; margin-left: 0;
  transition: width .25s ease, opacity .25s ease, padding .2s ease, margin-left .2s ease;
}
.nav-search.open .nav-search-input {
  width: 210px; opacity: 1; padding: 0 14px; margin-left: 8px;
  border: 1px solid #d6a64b;
}
.nav-search-input::placeholder { color: var(--muted); }
.ghost-btn, .solid-btn, .gold-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 18px; border-radius: 999px; font-size: 14px;
  cursor: pointer; border: 1px solid transparent;
  transition: all .2s; font-family: inherit;
}
.nav-tools .ghost-btn { background: transparent; color: #e8c36a; border-color: rgba(232, 195, 106, .7); }
.nav-tools .ghost-btn:hover { background: rgba(232, 195, 106, .12); color: #ffe7a8; }
.ghost-btn { background: transparent; color: var(--red-500); border-color: var(--red-400); }
.ghost-btn:hover { background: rgba(226,58,46,.08); }
.solid-btn { background: var(--red-500); color: #fff; box-shadow: 0 4px 12px rgba(226,58,46,.25); }
.solid-btn:hover { background: var(--red-400); transform: translateY(-1px); }
.gold-btn { background: linear-gradient(135deg, #e8c36a, #d6a64b); color: #1a1206; font-weight: 700; box-shadow: 0 4px 12px rgba(214,166,75,.3); }
.gold-btn:hover { filter: brightness(1.05); transform: translateY(-1px); }
.solid-btn.big, .ghost-btn.big, .gold-btn.big { padding: 12px 28px; font-size: 15px; }
.login-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: linear-gradient(135deg, #d6a64b 0%, #b78236 100%);
  color: #1f1410;
  border: 1px solid #d6a64b;
  border-radius: 999px;
  padding: 9px 22px;
  font-size: 15px; font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
  transition: background .2s, transform .2s, box-shadow .2s;
}
.login-btn:hover { background: linear-gradient(135deg, #e8c36a 0%, #d6a64b 100%); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0, 0, 0, .35); }
.login-btn.logged { background: transparent; color: #e8c36a; border-color: #e8c36a; }

/* ================= 英雄区 ================= */
.hero {
  position: relative; overflow: hidden;
  min-height: 620px;
  display: flex; flex-direction: column; justify-content: center;
  color: #fff7e8;
  isolation: isolate;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -2;
  background:
    url('assets/hero-bg.jpg') center / cover no-repeat;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(0,0,0,.15) 0%, rgba(0,0,0,.45) 70%, rgba(0,0,0,.55) 100%);
}
.hero-content {
  width: min(980px, calc(100% - 180px)); max-width: 100%;
  margin: 0 auto; padding: 120px 0 40px;
  position: relative; z-index: 2;
  text-align: center;
}
.hero-left { display: inline-block; text-align: left; min-width: 0; }
.kicker {
  letter-spacing: 4px; text-transform: uppercase;
  font-size: 13px; color: var(--gold);
  margin: 0 0 18px;
}
.hero-title {
  font-size: clamp(56px, 8.5vw, 112px);
  line-height: 1.04; margin: 0 0 22px;
  font-weight: 800; letter-spacing: 6px;
  text-shadow: 0 4px 30px rgba(0,0,0,.45);
}
.hero-title .title-accent {
  display: block;
  background: linear-gradient(120deg, #ffe7a8 0%, #ffb14d 60%, #ffe7a8 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-style: italic;
}
.hero-sub {
  font-size: 15px; max-width: 620px; line-height: 1.9;
  color: rgba(255, 247, 232, .9);
  margin: 0 auto 32px;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; }

.hero-stats {
  position: relative; z-index: 2;
  max-width: 1320px; margin: 0 auto; padding: 0 28px 70px;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.stat {
  display: flex; flex-direction: column; align-items: flex-start;
  padding: 18px 22px; border-radius: 12px;
  background: rgba(255, 247, 232, .08);
  border: 1px solid rgba(255, 210, 122, .3);
  backdrop-filter: blur(4px);
  transition: transform .2s, background .2s;
}
.stat:hover { transform: translateY(-3px); background: rgba(255, 247, 232, .15); }
.stat b {
  font-size: 30px; font-weight: 800; color: #ffe7a8;
  display: flex; align-items: baseline; gap: 2px;
}
.stat b span { font-size: 14px; color: #ffb14d; margin-left: 2px; }
.stat span:last-child { font-size: 13px; color: rgba(255,247,232,.8); letter-spacing: 1px; }

/* ================= 走马灯 ================= */
.strip {
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  position: relative;
}
.strip::before, .strip::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 60px; z-index: 2;
  pointer-events: none;
}
.strip::before { left: 0; background: linear-gradient(90deg, var(--paper), transparent); }
.strip::after  { right: 0; background: linear-gradient(-90deg, var(--paper), transparent); }
.strip-track {
  display: flex; gap: 14px; padding: 18px 0;
  animation: scroll 40s linear infinite;
  width: max-content;
}
.strip-track:hover { animation-play-state: paused; }
.strip-item {
  width: 110px; height: 110px; flex-shrink: 0;
  border-radius: 10px; overflow: hidden;
  background: #fff; box-shadow: var(--shadow);
}
.strip-item img { width: 100%; height: 100%; display: block; object-fit: cover; }
@keyframes scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ================= 通用区头 ================= */
.section-head {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1320px; margin: 0 auto; padding: 0 28px 18px;
  gap: 16px;
}
.section-title {
  font-size: 32px; margin: 0 0 30px;
  color: var(--ink);
  text-align: center; position: relative;
}
.section-title::before, .section-title::after {
  content: ''; display: inline-block; width: 60px; height: 2px;
  background: var(--red-400); vertical-align: middle; margin: 0 18px;
}

.search-box {
  display: flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--line);
  border-radius: 999px; padding: 8px 18px;
  width: 360px; color: var(--muted);
  transition: border-color .2s, box-shadow .2s;
}
.search-box:focus-within {
  border-color: var(--red-400);
  box-shadow: 0 0 0 4px rgba(226, 58, 46, .12);
}
.search-box input {
  flex: 1; border: 0; outline: none; background: transparent;
  font: inherit; font-size: 14px; color: var(--ink);
}
.search-box input::placeholder { color: var(--muted); }

/* ================= 纹样库 ================= */
.library { padding: 70px 0 60px; }
.filters {
  max-width: 1320px; margin: 0 auto 28px; padding: 0 28px;
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
}
.chip {
  font: inherit; font-size: 14px; cursor: pointer;
  padding: 10px 26px; border-radius: 999px;
  background: #fff; color: var(--ink-2);
  border: 1px solid var(--line);
  transition: all .2s;
  position: relative;
}
.chip:hover { border-color: var(--red-400); color: var(--red-500); }
.chip.active {
  background: var(--red-500); color: #fff; border-color: var(--red-500);
  box-shadow: 0 4px 12px rgba(226, 58, 46, .3);
}
.chip.active::before, .chip.active::after {
  content: ''; position: absolute; top: 50%; transform: translateY(-50%);
  width: 6px; height: 6px; background: #fff; border-radius: 50%;
}
.chip.active::before { left: 8px; }
.chip.active::after  { right: 8px; }

.result-count {
  max-width: 1320px; margin: 0 auto 18px; padding: 0 28px;
  font-size: 13px; color: var(--muted); letter-spacing: .5px;
}
.result-count:empty { display: none; }

.grid {
  max-width: 1320px; margin: 0 auto; padding: 0 28px;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.card {
  background: #fff; border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s;
  cursor: pointer; position: relative;
  border: 1px solid var(--line);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--red-300);
}
.card-art {
  position: relative; aspect-ratio: 1 / 1;
  background: var(--paper-2);
  overflow: hidden;
}
.card-art img { width: 100%; height: 100%; display: block; object-fit: cover; }
.card-line-toggle:hover { background: var(--red-500); transform: translateY(-1px); }
/* 已收录线稿的纹样：卡片内「色彩版 / 线稿」左右并排对比展示 */
.card-art-pair {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px;
  aspect-ratio: 1 / 0.6;
  background: #fff;
}
.card-pair-cell { position: relative; overflow: hidden; background: var(--paper-2); }
.card-pair-cell.is-line { background: #fff; }
.card-pair-cell img { width: 100%; height: 100%; display: block; object-fit: contain; }
.card-pair-label {
  position: absolute; left: 6px; bottom: 6px;
  background: rgba(0,0,0,.5); color: #fff;
  font-size: 10px; letter-spacing: 1px; line-height: 1.6;
  padding: 1px 8px; border-radius: 999px;
  backdrop-filter: blur(3px); pointer-events: none;
}
.card-tag {
  position: absolute; top: 10px; left: 10px;
  background: rgba(0,0,0,.55); color: #fff;
  font-size: 11px; letter-spacing: 1px;
  padding: 3px 10px; border-radius: 999px;
  backdrop-filter: blur(4px);
}
.card-fav {
  position: absolute; top: 10px; right: 10px;
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255,255,255,.9); border: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--red-400); transition: all .2s;
}
.card-fav:hover { background: var(--red-500); color: #fff; }
.card-fav.active { background: var(--red-500); color: #fff; }
.card-body { padding: 14px 16px 16px; }
.card-title {
  font-size: 16px; font-weight: 700; color: var(--ink);
  margin: 0 0 6px;
}
.card-meta {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--muted);
}
.card-meta .dot { width: 4px; height: 4px; background: var(--red-400); border-radius: 50%; }

.loadmore { text-align: center; margin-top: 36px; }

/* ================= 特色专题 ================= */
.topics { padding: 70px 0; background: var(--paper); }
.topic-grid {
  max-width: 1320px; margin: 0 auto; padding: 0 28px;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.topic {
  position: relative; aspect-ratio: 4 / 3;
  border-radius: var(--radius); overflow: hidden;
  background: var(--ink-2); color: #fff;
  cursor: pointer; transition: transform .25s;
  box-shadow: var(--shadow);
}
.topic:hover { transform: translateY(-4px); }
.topic-bg {
  position: absolute; inset: 0;
  transition: transform .5s;
}
.topic:hover .topic-bg { transform: scale(1.06); }
.topic-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,.7) 100%);
}
.topic-text {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 18px 20px; z-index: 2;
}
.topic-text h3 { margin: 0 0 4px; font-size: 20px; }
.topic-text p { margin: 0; font-size: 13px; color: rgba(255,255,255,.85); }
.topic-num {
  position: absolute; top: 14px; right: 18px; z-index: 2;
  font-size: 12px; letter-spacing: 1px;
  background: rgba(255,255,255,.18); backdrop-filter: blur(6px);
  padding: 3px 10px; border-radius: 999px;
}
.topic-go {
  position: absolute; left: 20px; bottom: 14px; z-index: 3;
  font-size: 13px; font-weight: 700; letter-spacing: 1px; color: #e8c36a;
  opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s;
}
.topic:hover .topic-go, .topic:focus-visible .topic-go {
  opacity: 1; transform: translateY(0);
}
.topic:focus-visible { outline: 2px solid #e8c36a; outline-offset: 2px; }

/* ================= 关于 ================= */
.about { padding: 80px 28px; max-width: 1320px; margin: 0 auto; }
.about-card {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px;
  background: #fff; border-radius: 24px; padding: 60px;
  box-shadow: var(--shadow); position: relative; overflow: hidden;
  border: 1px solid var(--line);
}
.about-card::before {
  content: ''; position: absolute; left: -80px; top: -80px;
  width: 240px; height: 240px; border-radius: 50%;
  background: radial-gradient(circle, rgba(226, 58, 46, .08), transparent 70%);
}
.about-text h2 {
  font-size: 38px; line-height: 1.2; margin: 8px 0 22px;
  color: var(--red-700);
}
.about-text p { color: var(--ink-2); font-size: 15px; }
.about-text p b { color: var(--red-500); }
.about-actions { margin-top: 24px; display: flex; gap: 12px; }
.about-art {
  position: relative; min-height: 360px;
  border-radius: 16px; overflow: hidden;
  background: radial-gradient(circle at 30% 30%, #fff7e8, #f3d8b8);
}

/* ================= 页脚 ================= */
.site-footer {
  background: var(--ink); color: rgba(255,247,232,.78);
  margin-top: 0;
}
.footer-inner {
  max-width: 1320px; margin: 0 auto; padding: 60px 28px 30px;
  display: grid; grid-template-columns: 1.2fr 2fr; gap: 50px;
}
.footer-line { color: rgba(255,247,232,.6); font-size: 14px; margin-top: 14px; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.footer-cols h4 { color: #ffe7a8; font-size: 15px; margin: 0 0 14px; letter-spacing: 2px; }
.footer-cols a {
  display: block; padding: 4px 0;
  font-size: 14px; color: rgba(255,247,232,.7);
  transition: color .2s;
}
.footer-cols a:hover { color: var(--gold); }
.footer-bottom {
  text-align: center; padding: 20px 28px;
  border-top: 1px solid rgba(255,247,232,.1);
  font-size: 12px; color: rgba(255,247,232,.5);
  letter-spacing: 1px;
}

/* ================= 浮动工具 ================= */
.floating-tools {
  position: fixed; right: 22px; bottom: 30px; z-index: 40;
  display: flex; flex-direction: column; gap: 10px;
}
.float-btn {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--red-500); color: #fff; border: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px rgba(226,58,46,.35);
  transition: transform .2s, background .2s;
}
.float-btn:hover { transform: scale(1.08); background: var(--red-400); }

/* ================= 模态框 ================= */
.modal-mask {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(20, 8, 6, .55);
  backdrop-filter: blur(6px);
  display: none; align-items: center; justify-content: center;
  padding: 24px;
  animation: fadeIn .25s ease;
}
.modal-mask.show { display: flex; }
.modal {
  background: #fff; border-radius: 18px;
  width: min(960px, 100%);
  max-height: 90vh; overflow: hidden;
  display: grid; grid-template-columns: 1.1fr 1fr;
  position: relative; box-shadow: 0 30px 80px rgba(0,0,0,.4);
  animation: zoomIn .25s ease;
}
.modal-close {
  position: absolute; top: 14px; right: 14px; z-index: 5;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(0,0,0,.6); color: #fff; border: 0;
  font-size: 22px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.modal-art { background: var(--paper-2); min-height: 360px; display: flex; align-items: center; justify-content: center; overflow: hidden; position: relative; }
.modal-art img, .modal-art svg { width: 100%; height: 100%; object-fit: contain; }
/* 弹窗内的「色彩版 / 线稿」左右并排对比 */
.modal-pair {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px;
  width: 100%; min-height: 360px; background: #fff;
}
.modal-pair-cell { position: relative; background: var(--paper-2); min-height: 360px; overflow: hidden; }
.modal-pair-cell.is-line { background: #fff; }
.modal-pair-cell img { width: 100%; height: 100%; object-fit: contain; display: block; }
/* 弹窗内「线稿版」切换按钮 */
.modal-line-toggle {
  position: absolute; right: 14px; bottom: 14px;
  background: rgba(0,0,0,.62); color: #fff;
  border: 0; cursor: pointer;
  font-size: 12px; letter-spacing: 1px;
  padding: 6px 16px; border-radius: 999px;
  backdrop-filter: blur(4px);
  transition: background .2s, transform .2s;
}
.modal-line-toggle:hover { background: var(--red-500); transform: translateY(-1px); }
.modal-info { padding: 36px 32px; overflow-y: auto; }
.modal-cat { color: var(--red-500); font-size: 12px; letter-spacing: 2px; margin: 0 0 8px; }
.modal-info h3 { font-size: 26px; margin: 0 0 12px; color: var(--ink); }
.modal-desc { color: var(--ink-2); font-size: 14px; line-height: 1.8; }
.modal-meta {
  margin: 22px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
  padding: 16px; background: var(--paper-2); border-radius: 10px;
}
.modal-meta div { display: flex; flex-direction: column; }
.modal-meta dt { font-size: 11px; color: var(--muted); letter-spacing: 1px; }
.modal-meta dd { margin: 4px 0 0; font-size: 14px; color: var(--ink); font-weight: 600; }
.modal-actions { display: flex; gap: 10px; flex-wrap: wrap; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes zoomIn {
  from { opacity: 0; transform: scale(.92); }
  to   { opacity: 1; transform: scale(1); }
}

/* ================= 登录 / 注册 弹窗 ================= */
.auth-mask {
  position: fixed; inset: 0; z-index: 1200;
  background: rgba(6, 14, 30, .6);
  backdrop-filter: blur(4px);
  display: none; align-items: center; justify-content: center;
  padding: 20px;
  animation: fadeIn .2s ease;
}
.auth-mask.open { display: flex; }
.auth-modal {
  position: relative;
  width: 380px; max-width: 100%;
  background: linear-gradient(180deg, #143057, #0c1c38);
  border: 1px solid rgba(207, 224, 255, .25);
  border-radius: 18px;
  padding: 30px 28px 22px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
  color: #eaf2ff;
  box-sizing: border-box;
  animation: zoomIn .25s ease;
}
.auth-close {
  position: absolute; top: 14px; right: 16px;
  background: transparent; border: 0; color: #cfe0ff;
  font-size: 26px; line-height: 1; cursor: pointer;
}
.auth-close:hover { color: #fff; }
.auth-head { text-align: center; margin-bottom: 20px; }
.auth-logo { display: inline-flex; margin-bottom: 10px; }
.auth-head h3 { margin: 0; font-size: 19px; color: #fff; letter-spacing: 1px; }
.auth-sub { margin: 6px 0 0; font-size: 12.5px; color: rgba(207, 224, 255, .8); }
.auth-tabs {
  display: flex; gap: 6px; background: rgba(0, 0, 0, .25);
  padding: 4px; border-radius: 12px; margin-bottom: 18px;
}
.auth-tab {
  flex: 1; padding: 9px 0; border: 0; border-radius: 9px;
  background: transparent; color: #cfe0ff; font-size: 13.5px; font-weight: 600;
  cursor: pointer; transition: background .2s, color .2s;
}
.auth-tab.active { background: rgba(207, 224, 255, .18); color: #fff; }
.auth-form { display: none; }
.auth-form.active { display: block; }
.auth-label { display: block; font-size: 12px; color: rgba(207, 224, 255, .85); margin: 12px 0 6px; }
.auth-field {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(207, 224, 255, .25);
  border-radius: 10px; padding: 0 12px;
  transition: border-color .2s;
}
.auth-field:focus-within { border-color: #cfe0ff; }
.auth-field input {
  flex: 1; background: transparent; border: 0; outline: none;
  color: #fff; font-size: 14px; padding: 12px 0;
}
.auth-field input::placeholder { color: rgba(207, 224, 255, .45); }
.auth-prefix { color: #cfe0ff; font-size: 13px; opacity: .8; }
.auth-code-btn {
  flex: none; background: transparent; border: 0; color: #cfe0ff;
  font-size: 12.5px; font-weight: 600; cursor: pointer; white-space: nowrap;
  padding-left: 10px; border-left: 1px solid rgba(207, 224, 255, .25);
}
.auth-code-btn:disabled { color: rgba(207, 224, 255, .4); cursor: default; }
.auth-submit {
  width: 100%; margin-top: 18px; padding: 13px 0;
  background: #cfe0ff; color: #0c1c38; border: 0; border-radius: 12px;
  font-size: 15px; font-weight: 700; cursor: pointer;
  transition: transform .15s, box-shadow .2s;
}
.auth-submit:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(207, 224, 255, .3); }
.auth-submit.ghost { background: rgba(207, 224, 255, .14); color: #cfe0ff; border: 1px solid rgba(207, 224, 255, .4); }
.auth-tip { margin: 10px 0 0; font-size: 11.5px; color: rgba(207, 224, 255, .6); text-align: center; }
.auth-foot { margin: 16px 0 0; font-size: 11px; color: rgba(207, 224, 255, .5); text-align: center; }
.auth-logged { text-align: center; padding: 8px 0; }
.auth-avatar {
  width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 12px;
  background: linear-gradient(135deg, #3a6cc4, #1b3f7a);
  color: #fff; font-size: 22px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid #cfe0ff;
}
.auth-welcome { font-size: 15px; margin: 0 0 4px; color: #eaf2ff; }
.auth-welcome b { color: #fff; }

/* ============ 定制服务 / 合作咨询 弹窗 ============ */
.auth-modal.svc-wide { width: 440px; }
.auth-field select {
  flex: 1; background: transparent; border: 0; outline: none;
  color: #fff; font-size: 14px; padding: 12px 0; font-family: inherit;
}
.auth-field select option { color: #1c1c1c; background: #fff; }
.auth-field.svc-area { align-items: stretch; }
.auth-field.svc-area textarea {
  flex: 1; background: transparent; border: 0; outline: none;
  color: #fff; font-size: 14px; padding: 12px 0; resize: vertical;
  min-height: 84px; line-height: 1.7; font-family: inherit;
}
.auth-field textarea::placeholder,
.auth-field select:invalid { color: rgba(207, 224, 255, .45); }

/* 合作咨询：方式选择 */
.consult-choices { display: flex; flex-direction: column; gap: 12px; margin-top: 6px; }
.consult-choice {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  text-align: left; padding: 16px 18px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(207, 224, 255, .25);
  border-radius: 14px; color: #eaf2ff; cursor: pointer;
  font-size: 16px; font-weight: 600; transition: all .2s;
}
.consult-choice:hover { background: rgba(207, 224, 255, .14); border-color: #cfe0ff; transform: translateY(-1px); }
.consult-choice span { font-size: 12.5px; font-weight: 400; color: rgba(207, 224, 255, .7); }

/* 在线咨询：聊天 */
.chat-top {
  display: flex; align-items: center; gap: 10px;
  padding-bottom: 12px; margin-bottom: 12px;
  border-bottom: 1px solid rgba(207, 224, 255, .18);
}
.chat-back { background: transparent; border: 0; color: #cfe0ff; font-size: 13px; cursor: pointer; padding: 0; }
.chat-back:hover { color: #fff; }
.chat-title { color: #fff; font-size: 14px; font-weight: 600; }
.chat-box {
  height: 300px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px;
  padding: 4px 2px;
}
.chat-msg {
  max-width: 82%; padding: 10px 13px; border-radius: 14px;
  font-size: 13.5px; line-height: 1.65; word-break: break-word;
}
.chat-msg.staff { align-self: flex-start; background: rgba(255, 255, 255, .1); color: #eaf2ff; border-bottom-left-radius: 4px; }
.chat-msg.me { align-self: flex-end; background: #cfe0ff; color: #0c1c38; border-bottom-right-radius: 4px; }
.chat-input-row { display: flex; gap: 8px; margin-top: 12px; }
.chat-input-row input {
  flex: 1; background: rgba(255, 255, 255, .08); border: 1px solid rgba(207, 224, 255, .25);
  border-radius: 10px; color: #fff; font-size: 14px; padding: 11px 12px; outline: none; font-family: inherit;
}
.chat-input-row input::placeholder { color: rgba(207, 224, 255, .45); }
.chat-input-row input:focus { border-color: #cfe0ff; }
.chat-send {
  background: #cfe0ff; color: #0c1c38; border: 0; border-radius: 10px;
  padding: 0 18px; font-weight: 700; cursor: pointer; font-size: 14px;
}
.chat-send:hover { transform: translateY(-1px); }
.chat-box::-webkit-scrollbar { width: 6px; }
.chat-box::-webkit-scrollbar-thumb { background: rgba(207, 224, 255, .3); border-radius: 3px; }

/* 电话咨询 */
.phone-show { margin: 6px 0 2px; }
.phone-number {
  display: block; font-size: 30px; font-weight: 800; color: #fff;
  letter-spacing: 2px; text-decoration: none;
}
.phone-number:hover { color: #cfe0ff; }

/* ================= 响应式 ================= */
@media (max-width: 1100px) {
  .grid, .topic-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-stats { grid-template-columns: repeat(4, 1fr); }
  .about-card { grid-template-columns: 1fr; padding: 40px; }
  .modal { grid-template-columns: 1fr; max-height: 95vh; overflow-y: auto; }
  .modal-art { min-height: 240px; }
}
@media (max-width: 960px) {
  .nav-tools { gap: 8px; }
  .nav-tools .ghost-btn { display: none; }
}
@media (max-width: 768px) {
  .nav-inner { padding: 12px 16px; gap: 12px; }
  .primary-nav { display: none; }
  .hero-content { width: 100%; padding: 90px 16px 40px; box-sizing: border-box; }
  .hero-actions { justify-content: center; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); padding: 0 16px 50px; }
  .grid, .topic-grid { grid-template-columns: repeat(2, 1fr); padding: 0 16px; }
  .section-head { flex-direction: column; align-items: stretch; padding: 0 16px 16px; }
  .search-box { width: 100%; }
  .filters { padding: 0 16px; }
  .footer-inner { grid-template-columns: 1fr; padding: 40px 16px 20px; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
  .about-card { padding: 24px; }
  .about-text h2 { font-size: 28px; }
}
@media (max-width: 480px) {
  .grid, .topic-grid { grid-template-columns: 1fr; }
  .hero-title { letter-spacing: 2px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stat { padding: 12px 10px; }
  .stat b { font-size: 22px; }
  .nav-tools .ghost-btn, .nav-tools .solid-btn { display: none; }
  .nav-search.open .nav-search-input { width: 150px; }
  .floating-tools { right: 10px; bottom: 16px; }
}

/* ============================================
   练泥工艺 / 产品介绍 板块
   ============================================ */
.craft-section,
.products-section {
  padding: 70px 28px;
  max-width: 1320px;
  margin: 0 auto;
}
.craft-section { background: transparent; }
.products-section { background: transparent; }

.placeholder-box {
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  background: var(--paper-2);
  min-height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--muted);
  transition: border-color .2s;
}
.placeholder-box:hover { border-color: var(--gold-2); }
.placeholder-tip {
  margin: 0;
  font-size: 22px;
  letter-spacing: 6px;
  color: var(--ink-2);
  font-weight: 700;
}
.placeholder-sub {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}
@media (max-width: 768px) {
  .craft-section, .products-section { padding: 50px 16px; }
  .placeholder-box { min-height: 220px; }
}

/* ---------- 产品介绍卡片 ---------- */
.products-section .product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}
.product-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.product-img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--paper-2);
}
.product-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.product-card:hover .product-img img { transform: scale(1.05); }
.product-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.product-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
}
.product-head h3 {
  margin: 0; font-size: 18px; color: var(--ink);
}
.product-price {
  color: var(--red-500); font-weight: 700; font-size: 18px; white-space: nowrap;
}
.product-price i { font-style: normal; font-size: 12px; font-weight: 400; color: var(--muted); }
.product-desc {
  margin: 0; font-size: 13.5px; line-height: 1.75; color: var(--ink-2);
}
@media (max-width: 640px) {
  .products-section .product-grid { grid-template-columns: 1fr; }
}

/* ---------- 产品详情页 ---------- */
.pd-main { max-width: 1320px; margin: 0 auto; padding: 28px 28px 70px; }
.pd-crumb { font-size: 13px; color: var(--muted); margin-bottom: 18px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pd-crumb a { color: var(--muted); }
.pd-crumb a:hover { color: var(--red-500); }
.pd-crumb b { color: var(--ink); font-weight: 600; }
.pd-card {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
}
.pd-media { border-radius: 10px; overflow: hidden; background: var(--paper-2); }
.pd-media img { width: 100%; display: block; object-fit: cover; }
.pd-info { display: flex; flex-direction: column; gap: 14px; }
.pd-kicker { margin: 0; font-size: 13px; letter-spacing: 3px; color: var(--gold-2); }
.pd-info h1 { margin: 0; font-size: 34px; line-height: 1.25; color: var(--ink); }
.pd-price { color: var(--red-500); font-size: 30px; font-weight: 700; }
.pd-price i { font-style: normal; font-size: 14px; font-weight: 400; color: var(--muted); margin-left: 2px; }
.pd-row { display: flex; gap: 14px; font-size: 14px; color: var(--ink-2); border-top: 1px dashed var(--line); padding-top: 12px; }
.pd-label { color: var(--muted); min-width: 48px; }
.pd-desc { margin: 0; font-size: 15px; line-height: 1.9; color: var(--ink-2); }
.pd-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.pd-nav { display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 16px; margin-top: 6px; }
.pd-arrow { font-size: 14px; color: var(--muted); }
.pd-arrow:hover { color: var(--red-500); }
.pd-recommend { padding-top: 60px; }
@media (max-width: 860px) {
  .pd-main { padding: 20px 16px 50px; }
  .pd-card { grid-template-columns: 1fr; gap: 22px; padding: 18px; }
  .pd-info h1 { font-size: 26px; }
  .pd-price { font-size: 24px; }
}

/* ---------- 练泥工艺 · 流程图 ---------- */
.craft-section { padding: 70px 28px 80px; max-width: 1320px; margin: 0 auto; }
.craft-sub { text-align: center; color: var(--muted); font-size: 14.5px; margin: 10px 0 34px; }

.craft-stage {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
  margin-bottom: 44px;
}
.craft-player { border-radius: 12px; overflow: hidden; background: #17100d; }
.craft-player video { width: 100%; max-height: 460px; display: block; object-fit: contain; background: #17100d; }
.craft-stage-info { display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.craft-badge {
  align-self: flex-start;
  font-size: 12px; letter-spacing: 2px;
  color: var(--red-700); background: rgba(184, 29, 29, .08);
  border: 1px solid rgba(184, 29, 29, .25);
  border-radius: 999px; padding: 4px 14px;
}
.craft-stage-info h3 { margin: 0; font-size: 30px; color: var(--ink); }
.craft-stage-info p { margin: 0; font-size: 14.5px; line-height: 1.9; color: var(--ink-2); }
.craft-stage-nav { display: flex; gap: 10px; margin-top: 6px; }
.craft-arrow {
  font: inherit; font-size: 13.5px; cursor: pointer;
  color: var(--ink-2); background: var(--paper-2);
  border: 1px solid var(--line); border-radius: 8px;
  padding: 8px 16px; transition: all .2s;
}
.craft-arrow:hover { color: var(--red-500); border-color: var(--red-300); }

/* 流程轴：6 节点横向排列，顶部连线 */
.craft-flow {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(6, 1fr);
  counter-reset: step;
}
.craft-step {
  position: relative; cursor: pointer;
  padding: 52px 10px 16px; text-align: center;
  border-radius: 12px; transition: background .2s;
}
.craft-step:hover { background: var(--paper-2); }
/* 贯穿连线 */
.craft-flow::before {
  content: ""; position: absolute;
  top: 25px; left: 8%; right: 8%; height: 2px;
  background: var(--line);
}
.craft-step::before {
  content: counter(step, decimal-leading-zero);
  counter-increment: step;
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  z-index: 1;
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12.5px; font-weight: 700;
  color: var(--muted); background: var(--paper-2);
  border: 2px solid var(--line);
  transition: all .25s;
}
.craft-step.active::before {
  color: #fff; background: var(--red-500);
  border-color: var(--red-500);
  box-shadow: 0 0 0 5px rgba(184, 29, 29, .15);
}
.craft-step .craft-step-name {
  display: block; font-size: 17px; font-weight: 700; color: var(--ink);
  margin-bottom: 4px;
}
.craft-step.active .craft-step-name { color: var(--red-500); }
.craft-step .craft-step-brief {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  font-size: 12px; line-height: 1.7; color: var(--muted);
}
/* 节点间小箭头 */
.craft-step:not(:last-child)::after {
  content: ""; position: absolute;
  top: 22px; right: -6px;
  border: 5px solid transparent; border-left-color: var(--line);
}
.craft-step.active:not(:last-child)::after { border-left-color: var(--red-500); }

@media (max-width: 900px) {
  .craft-section { padding: 50px 16px 60px; }
  .craft-stage { grid-template-columns: 1fr; padding: 14px; gap: 18px; }
  .craft-stage-info h3 { font-size: 24px; }
  .craft-flow { grid-template-columns: repeat(3, 1fr); gap: 10px 6px; }
  .craft-flow::before { display: none; }
  .craft-step { padding: 44px 6px 12px; }
  .craft-step:not(:last-child)::after { display: none; }
}
@media (max-width: 480px) {
  .craft-flow { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- 产品分类标签 ---------- */
.cat-tabs {
  display: flex; justify-content: center; gap: 14px; flex-wrap: wrap;
  margin: 0 0 26px;
}
.cat-tab {
  font: inherit; cursor: pointer; text-align: center;
  min-width: 220px; padding: 12px 22px;
  background: #fff; color: var(--ink-2);
  border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow);
  transition: transform .2s, border-color .2s, box-shadow .2s;
  display: flex; flex-direction: column; gap: 3px;
}
.cat-tab:hover { transform: translateY(-2px); border-color: var(--red-300); }
.cat-tab b { font-size: 17px; color: var(--ink); }
.cat-tab span { font-size: 12.5px; color: var(--red-500); font-weight: 700; }
.cat-tab em {
  font-style: normal; font-size: 11.5px; color: var(--muted); letter-spacing: .5px;
}
.cat-tab.active {
  background: linear-gradient(180deg, #fff, var(--paper-2));
  border-color: var(--red-500);
  box-shadow: 0 10px 26px rgba(184, 29, 29, .18);
}
.cat-tab.active b { color: var(--red-500); }
.cat-tab.active em { color: var(--red-400); }
@media (max-width: 560px) {
  .cat-tab { min-width: 0; flex: 1 1 140px; padding: 10px 12px; }
  .cat-tab em { display: none; }
}
.pd-ref {
  font-style: normal; font-size: 12px; font-weight: 400; color: var(--muted);
  border: 1px solid var(--line); border-radius: 6px; padding: 2px 8px; margin-left: 10px;
  vertical-align: middle;
}

/* ---------- 牙舟陶子分类 ---------- */
.sub-tabs {
  display: flex; justify-content: center; gap: 10px; flex-wrap: wrap;
  margin: -8px 0 24px;
}
.sub-tabs[hidden] { display: none; }
.sub-tab {
  font: inherit; cursor: pointer;
  padding: 7px 20px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); color: var(--ink-2);
  font-size: 14px; transition: all .2s;
  display: flex; align-items: baseline; gap: 6px;
}
.sub-tab b { font-weight: 600; }
.sub-tab span { font-size: 12px; color: var(--muted); }
.sub-tab:hover { border-color: var(--red-300); color: var(--red-500); }
.sub-tab.active {
  background: var(--red-500); border-color: var(--red-500); color: #fff;
  box-shadow: 0 6px 18px rgba(184, 29, 29, .25);
}
.sub-tab.active span { color: rgba(255, 255, 255, .85); }

/* ================= 饰品 · 展会风采展示块 ================= */
.jewelry-showcase {
  grid-column: 1 / -1;
  margin-top: 10px;
  background: linear-gradient(135deg, #fbf6ec 0%, #f6efe3 60%, #f0e4d0 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 26px 24px;
  display: none;
}
.jewelry-showcase.is-visible { display: block; }
.jewelry-showcase .showcase-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.jewelry-showcase .showcase-photos figure {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 10px 26px rgba(90, 14, 10, .10);
  background: #fff;
}
.jewelry-showcase .showcase-photos img {
  width: 100%; height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}
.jewelry-showcase .showcase-text { margin-top: 18px; text-align: center; }
.jewelry-showcase .showcase-tag {
  display: inline-block;
  font-size: 13px; letter-spacing: 2px;
  color: var(--red-700);
  background: rgba(184, 29, 29, .08);
  border: 1px solid rgba(184, 29, 29, .25);
  border-radius: 999px;
  padding: 4px 14px;
}
.jewelry-showcase h3 {
  margin: 12px 0 8px;
  font-size: 22px;
  color: var(--ink);
}
.jewelry-showcase p {
  margin: 0 auto;
  max-width: 760px;
  font-size: 15px;
  line-height: 1.9;
  color: var(--ink-2);
}
@media (max-width: 720px) {
  .jewelry-showcase { padding: 18px 14px; }
  .jewelry-showcase .showcase-photos { grid-template-columns: 1fr; }
  .jewelry-showcase h3 { font-size: 19px; }
}

/* =====================
   纹样使用教程 #guide（横向一排 5 张卡片，不在导航栏）
   ===================== */
.flow-block {
  max-width: 1240px;
  margin: 0 auto 48px;
}
.flow-title {
  margin: 0 0 8px;
  text-align: center;
  font-size: 24px;
  letter-spacing: 2px;
  color: var(--ink);
}
.flow-sub {
  margin: 0 0 26px;
  text-align: center;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--muted);
}

/* 展示区左半：图片按比例完整显示，不裁切 */
.flow-player {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  padding: 10px;
  background: #fdfaf3;
}
.flow-player img {
  display: block;
  max-width: 100%;
  max-height: 440px;
  object-fit: contain;
  border-radius: 6px;
  opacity: 1;
}

/* ---------- 纹样使用教程：横向一排 5 张卡片 ---------- */
.guide-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}
.guide-card {
  margin: 0;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.guide-card:hover {
  transform: translateY(-4px);
  border-color: var(--red-300);
  box-shadow: 0 12px 26px rgba(23, 16, 13, .12);
}
.guide-card-media {
  position: relative;
  height: 230px;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fdfaf3;
  border-bottom: 1px solid var(--line);
}
.guide-card-media img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 6px;
}
.guide-card-body { padding: 15px 16px 18px; }
.guide-card-body h4 {
  margin: 0 0 8px;
  font-size: 15.5px;
  color: var(--ink);
}
.guide-card-body p {
  margin: 0;
  font-size: 13px;
  line-height: 1.85;
  color: var(--ink-2);
}

@media (max-width: 1240px) {
  .guide-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .flow-block { margin-bottom: 36px; }
  .flow-title { font-size: 20px; }
  .flow-sub { font-size: 12.5px; margin-bottom: 18px; }
  .flow-player { min-height: 260px; }
  .flow-player img { max-height: 320px; }
  .guide-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .guide-card-media { height: 200px; }
}
@media (max-width: 480px) {
  .guide-row { grid-template-columns: 1fr; }
}

/* =====================
   团队动态 #team
   （内容待补充，占位样式）
   ===================== */
.team {
  padding: 72px 28px;
  background: var(--bg);
}
.team .section-title {
  text-align: center;
  margin: 0 0 8px;
}
.team-sub {
  text-align: center;
  margin: 0 0 36px;
  font-size: 14px;
  letter-spacing: 1px;
  color: var(--muted);
}
/* ---------- 团队动态：横向时间轴（一排两个时间段） ---------- */
.timeline {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 34px;
  row-gap: 40px;
  align-items: start;
}
.tl-item {
  position: relative;
  display: block;
  padding-top: 54px;
}

/* 横向轴线：向右延伸一格间距，与相邻卡片首尾相接 */
.tl-item::before {
  content: "";
  position: absolute;
  top: 40px;
  left: 0;
  right: -34px;
  height: 2px;
  background: var(--line);
}
.tl-item:nth-child(2n)::before,
.tl-item:last-child::before { right: 0; }

/* 日期（轴线上方，与圆点左对齐） */
.tl-when {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: baseline;
  gap: 8px;
  text-align: left;
}
.tl-md {
  display: block;
  font-size: 21px;
  font-weight: 700;
  color: var(--red-500);
  letter-spacing: .5px;
  line-height: 1.2;
}
.tl-y {
  display: block;
  margin-top: 2px;
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: 1.5px;
}

/* 轴：横线 + 圆点 */
.tl-rail {
  position: absolute;
  top: 40px;
  left: 14px;
  width: 0;
  height: 0;
}
.tl-dot {
  position: absolute;
  top: -6.5px; left: -6.5px;
  width: 13px; height: 13px;
  border-radius: 50%;
  background: var(--red-500);
  box-shadow: 0 0 0 4px rgba(184, 29, 29, .14);
}

/* 内容卡 */
.tl-card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 24px 22px;
  display: flex;
  flex-direction: column;
  transition: box-shadow .25s ease, transform .25s ease;
}
.tl-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.tl-tag {
  display: inline-block;
  align-self: flex-start;
  margin-bottom: 10px;
  padding: 3px 12px;
  border-radius: 999px;
  background: rgba(184, 29, 29, .1);
  color: var(--red-500);
  font-size: 12px;
  letter-spacing: 1px;
}
.tl-title {
  margin: 0 0 12px;
  font-size: 20px;
  line-height: 1.55;
  color: var(--ink);
}
.tl-date-line {
  margin: 0 0 6px;
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: .5px;
}
.tl-source {
  margin: 0 0 14px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--muted);
}
.tl-media {
  display: grid;
  gap: 10px;
  margin: 0 0 16px;
}
.tl-media-1 { grid-template-columns: minmax(0, 1fr); max-width: 620px; }
.tl-media-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tl-media-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tl-media-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tl-figure { margin: 0; }
.tl-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 10px;
  background: var(--paper);
  border: 1px solid var(--line);
  cursor: zoom-in;
  transition: transform .25s ease;
}
.tl-media-1 .tl-figure img { aspect-ratio: 16 / 9; }
.tl-figure img:hover { transform: scale(1.015); }
.tl-figure figcaption {
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
}
.tl-body-wrap { position: relative; }
.tl-body {
  font-size: 14.5px;
  line-height: 1.95;
  color: var(--ink-2);
}
.tl-body p { margin: 0 0 12px; }
.tl-body p:last-child { margin-bottom: 0; }
/* 折叠态：最多显示 5 行 */
.tl-body.clamped {
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tl-more {
  margin-top: 10px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 13.5px;
  color: var(--red-500);
  letter-spacing: .5px;
}
.tl-more:hover { text-decoration: underline; }
.tl-foot { margin-top: auto; padding-top: 16px; }
.tl-origin {
  display: inline-block;
  padding: 7px 16px;
  border: 1px solid var(--red-500);
  border-radius: 999px;
  color: var(--red-500);
  font-size: 13px;
  letter-spacing: .5px;
  transition: background .2s, color .2s;
}
.tl-origin:hover { background: var(--red-500); color: #fff; }

/* 图片灯箱 */
.tl-lightbox {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(20, 12, 8, .82);
  padding: 40px;
  cursor: zoom-out;
}
.tl-lightbox.open { display: flex; }
.tl-lightbox img {
  max-width: min(1100px, 92vw);
  max-height: 88vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .45);
}
.tl-lightbox .tl-lb-close {
  position: absolute;
  top: 22px; right: 30px;
  width: 40px; height: 40px;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 900px) {
  .timeline { grid-template-columns: minmax(0, 1fr); row-gap: 34px; }
  .tl-item::before { right: 0; }
  .tl-md { font-size: 18px; }
  .tl-card { padding: 18px 18px 20px; }
  .tl-title { font-size: 18px; }
}
@media (max-width: 640px) {
  .team { padding: 52px 18px; }
  .tl-md { font-size: 17px; }
  .tl-media-3, .tl-media-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tl-media-1 .tl-figure img { aspect-ratio: 3 / 2; }
}
