/* 大枝 DAZHI ｜ 内容层版式
   影像、口感档案、茶山、年份陈化。依赖 site.css，后加载覆盖。 */

/* ---------- 影像通用 ---------- */
.photo { position: relative; overflow: hidden; background: var(--card); }
.photo img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
  filter: saturate(.84) contrast(.97);
}
.photo.is-warm img { filter: saturate(.78) contrast(.96) brightness(1.02); }
.photo.pos-left img { object-position: 34% center; }
.photo.pos-right img { object-position: 68% center; }
.photo.pos-top img { object-position: center 32%; }

figure.fig { margin: 0; }
.fig figcaption {
  font-size: 11px; letter-spacing: 1.5px; line-height: 22px;
  color: var(--muted); margin-top: 12px;
}
.fig figcaption .tag { color: var(--moss); margin-right: 10px; }

.source-note {
  font-size: 11px; letter-spacing: 1px; line-height: 24px;
  color: var(--muted); margin: 24px 0 0; max-width: 780px;
}

/* ---------- 首屏 / 命题影像位 ---------- */
.hero-visual { height: 520px; background: var(--card); }
.hero-visual .photo { height: 100%; }
.topic-visual { height: 360px; background: var(--card); }
.topic-visual .photo { height: 100%; }

/* ---------- 四味系列：2×2 图文档案 ---------- */
.tea-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.tea-card { padding: 0; gap: 0; min-height: 0; }
.tea-card:hover { transform: none; }
.tea-card .tea-media { height: 264px; overflow: hidden; background: var(--paper-2); }
.tea-card .tea-media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: saturate(.84) contrast(.97);
  transition: transform .9s var(--ease);
}
.tea-card:hover .tea-media img { transform: scale(1.035); }
.tea-card .tea-body { padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.tea-card .tea-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.tea-card .tea-head .glyph { font-size: 44px; }
.tea-card .tea-name { font-size: 13px; letter-spacing: 2px; color: var(--moss); }
.tea-card .desc { min-height: 0; font-size: 13px; line-height: 26px; }
.tea-card .bar { width: 48px; }

.taste-list { display: grid; border-top: 1px solid var(--line); }
.taste-row {
  display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 18px;
  padding: 11px 0; border-bottom: 1px solid var(--line);
  font-size: 12px; line-height: 23px; letter-spacing: .5px;
}
.taste-row .k { color: var(--moss); letter-spacing: 2px; }
.taste-row .v { color: var(--body); }

.spec-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 24px; padding-top: 4px;
}
.spec-grid div { font-size: 11px; letter-spacing: 1px; line-height: 20px; color: var(--body); }
.spec-grid b {
  font-family: var(--latin); font-weight: 400; color: var(--gold);
  margin-right: 10px; letter-spacing: 1px;
}
.tea-card .axis { width: 100%; max-width: 220px; height: 12px; }
.tea-card .tag { margin: 0; }

/* ---------- 图文分栏 ---------- */
.split {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 72px; align-items: center;
}
.split .photo { height: 440px; }
.split .split-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.split .split-copy h2 { font-size: 30px; font-weight: 300; letter-spacing: 5px; margin: 0; }
.split .split-copy .lead { max-width: none; }
.split.flip .photo { order: 2; }

/* ---------- 数据表 ---------- */
.data-table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.data-table th, .data-table td {
  text-align: left; padding: 18px 12px; font-weight: 300;
  border-bottom: 1px solid var(--line); vertical-align: top;
}
.data-table th { font-size: 11px; letter-spacing: 2px; color: var(--moss); border-bottom-color: var(--line-2); }
.data-table td { font-size: 13px; letter-spacing: 1px; line-height: 24px; color: var(--body); }
.data-table td:first-child { font-size: 15px; font-weight: 400; color: var(--ink); }
.data-table th:first-child, .data-table td:first-child { padding-left: 0; }
.data-table tr:last-child td { border-bottom-color: var(--line-2); }

/* ---------- 茶山档案 ---------- */
.mountain-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.mountain-card {
  background: var(--card); padding: 36px;
  display: flex; flex-direction: column; gap: 14px;
}
.mountain-card .mc-no { font-family: var(--latin); font-size: 11px; letter-spacing: 2px; color: var(--gold); }
.mountain-card .mc-bar { height: 2px; width: 48px; background: var(--gold); }
.mountain-card .mc-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; }
.mountain-card h3 { font-size: 32px; font-weight: 200; letter-spacing: 7px; margin: 0; }
.mountain-card .mc-region { font-size: 11px; letter-spacing: 2px; color: var(--moss); white-space: nowrap; }
.mountain-card .mc-taste { font-size: 13px; line-height: 27px; letter-spacing: .5px; color: var(--body); margin: 4px 0 0; }
.mc-kv { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 12px; line-height: 22px; }
.mc-kv .k { color: var(--moss); letter-spacing: 2px; }
.mc-kv .v { color: var(--body); }

/* ---------- 年份四阶 ---------- */
.aging-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.aging-cell { border-top: 1px solid var(--line-2); padding-top: 22px; }
.aging-cell .yr { font-family: var(--latin); font-size: 11px; letter-spacing: 2px; color: var(--gold); }
.aging-cell h4 { font-size: 19px; font-weight: 300; letter-spacing: 3px; margin: 14px 0 12px; }
.aging-cell p { font-size: 12px; line-height: 25px; letter-spacing: .5px; color: var(--body); margin: 0; }

/* ---------- 区块节奏 ---------- */
.band-alt { background: var(--paper-2); }
.band-head { display: flex; flex-direction: column; gap: 16px; margin-bottom: 40px; }
.band-head .rule { margin-top: 14px; }

/* ---------- 响应式 ---------- */
@media (max-width: 1200px) {
  .split { gap: 48px; }
  .split .photo { height: 380px; }
  .mountain-grid { gap: 20px; }
  .mountain-card { padding: 28px; }
}
@media (max-width: 900px) {
  .tea-grid { grid-template-columns: 1fr; }
  .tea-card .tea-media { height: 300px; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .split.flip .photo { order: 0; }
  .split .photo { height: 320px; }
  .mountain-grid { grid-template-columns: 1fr; }
  .aging-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-visual { height: 340px; }
  .topic-visual { height: 280px; }
}
@media (max-width: 600px) {
  :root { --pad: 24px; }
  .hero-visual { height: 240px; }
  .topic-visual { height: 220px; }
  .tea-card .tea-media { height: 220px; }
  .tea-card .tea-body { padding: 24px; }
  .tea-card .tea-head .glyph { font-size: 36px; }
  .spec-grid { grid-template-columns: 1fr; gap: 8px; }
  .split .photo { height: 240px; }
  .mountain-card { padding: 24px; }
  .mountain-card h3 { font-size: 26px; letter-spacing: 4px; }
  .mountain-card .mc-head { flex-direction: column; gap: 6px; }
  .aging-grid { grid-template-columns: 1fr; }
  /* 窄屏把五列参数表改成卡片式标签排版，避免每格折行 */
  .data-table thead { display: none; }
  .data-table tbody tr { display: block; padding: 18px 0 22px; border-bottom: 1px solid var(--line-2); }
  .data-table tbody tr:last-child { border-bottom: 0; }
  .data-table td {
    display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 12px;
    border-bottom: 0; padding: 6px 0; font-size: 13px; line-height: 22px; letter-spacing: 0;
  }
  .data-table td:first-child { display: block; font-size: 17px; font-weight: 400; color: var(--ink); padding: 0 0 12px; }
  .data-table td:first-child::before { content: none; }
  .data-table td::before { color: var(--moss); font-size: 11px; letter-spacing: 2px; line-height: 22px; }
  .data-table td:nth-child(2)::before { content: "水温"; }
  .data-table td:nth-child(3)::before { content: "投茶"; }
  .data-table td:nth-child(4)::before { content: "出汤"; }
  .data-table td:nth-child(5)::before { content: "器具"; }
}
