/* 项目页通用样式 - 统一使用 */

body { font-family: 'Noto Sans SC', sans-serif; }

/* 导航 */
#nav { position: fixed; top: 0; left: 0; right: 0; z-index: 200; padding: 28px 56px; display: flex; justify-content: space-between; align-items: center; backdrop-filter: blur(20px); background: rgba(10,9,8,0.85); border-bottom: 1px solid rgba(242,236,224,0.06); }
.nav-logo { font-family: 'Noto Serif SC', serif; font-size: 14px; font-weight: 300; letter-spacing: 0.18em; }
.nav-back { font-family: 'JetBrains Mono', monospace; font-size: 9px; letter-spacing: 0.25em; color: rgba(242,236,224,0.4); transition: color 0.3s; }
.nav-back:hover { color: rgba(242,236,224,0.9); }

/* Hero */
.proj-hero { position: relative; height: 90vh; min-height: 560px; overflow: hidden; }
.proj-hero video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.55; animation: heroZoom 12s linear infinite alternate; }
.proj-hero img.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.55; animation: heroZoom 12s linear infinite alternate; }
@keyframes heroZoom { from { transform: scale(1.06); } to { transform: scale(1.14); } }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,9,8,0.92) 0%, rgba(10,9,8,0.3) 55%, rgba(10,9,8,0.5) 100%); }
.proj-hero .hero-c { position: absolute; bottom: 0; left: 0; right: 0; z-index: 2; padding: 60px 56px; }

.hero-eyebrow { font-family: 'JetBrains Mono', monospace; font-size: 9px; letter-spacing: 0.4em; color: #c0392b; text-transform: uppercase; margin-bottom: 16px; }
.hero-ttl { font-family: 'Noto Serif SC', serif; font-size: clamp(36px, 6vw, 80px); font-weight: 300; line-height: 1.05; margin-bottom: 12px; }
.hero-sub { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.18em; color: rgba(242,236,224,0.4); margin-bottom: 18px; }
.hero-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.hero-tag { font-family: 'JetBrains Mono', monospace; font-size: 9px; letter-spacing: 0.14em; color: rgba(242,236,224,0.45); border: 1px solid rgba(242,236,224,0.12); padding: 6px 14px; }

/* 主视频区 */
.main-video-section { padding: 100px 56px; }
.main-video-inner { max-width: 1100px; margin: 0 auto; }
.video-label { font-family: 'JetBrains Mono', monospace; font-size: 9px; letter-spacing: 0.4em; color: #c0392b; text-transform: uppercase; margin-bottom: 16px; }
.main-video-section video { width: 100%; aspect-ratio: 16/9; object-fit: cover; background: #0a0a08; display: block; }
.video-caption { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: rgba(242,236,224,0.35); margin-top: 12px; line-height: 1.6; }

/* 影像区 */
.media-gallery { padding: 0 56px 80px; }
.media-gallery-inner { max-width: 1100px; margin: 0 auto; }
.media-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.media-item { position: relative; overflow: hidden; background: #111009; aspect-ratio: 16/9; cursor: pointer; }
.media-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out), opacity 0.4s; }
.media-item:hover img { transform: scale(1.05); }
.media-item-label { position: absolute; bottom: 0; left: 0; right: 0; padding: 12px 14px; background: linear-gradient(to top, rgba(10,9,8,0.85), transparent); font-family: 'JetBrains Mono', monospace; font-size: 9px; letter-spacing: 0.2em; color: rgba(242,236,224,0.5); }
.media-item-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 40px; height: 40px; border: 1px solid rgba(242,236,224,0.4); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; opacity: 0; transition: opacity 0.3s; }
.media-item:hover .media-item-play { opacity: 1; }

/* 古画对比区 */
.compare-section { padding: 0 56px 80px; }
.compare-inner { max-width: 1100px; margin: 0 auto; }
.compare-label { font-family: 'JetBrains Mono', monospace; font-size: 9px; letter-spacing: 0.4em; color: #c0392b; text-transform: uppercase; margin-bottom: 28px; }
.compare-group { margin-bottom: 48px; }
.compare-title { font-family: 'Noto Serif SC', serif; font-size: 18px; font-weight: 300; color: rgba(242,236,224,0.7); margin-bottom: 16px; }
.compare-row { display: grid; gap: 6px; align-items: start; }
.compare-row-grid-4 { grid-template-columns: repeat(4, 1fr); }
.compare-row-grid-2 { grid-template-columns: 1fr 1fr; }
.compare-row-grid-1 { grid-template-columns: 1fr; }
.compare-col { overflow: hidden; background: #111009; }
.compare-col img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; transition: transform 1s var(--ease-out); }
.compare-col:hover img { transform: scale(1.03); }
.compare-tag { font-family: 'JetBrains Mono', monospace; font-size: 8px; letter-spacing: 0.25em; color: rgba(242,236,224,0.25); text-transform: uppercase; margin-bottom: 8px; }
.compare-caption { font-family: 'JetBrains Mono', monospace; font-size: 9px; color: rgba(242,236,224,0.3); margin-top: 10px; line-height: 1.6; }
/* 演示影像 */
.video-gallery { padding: 72px 56px; }
.video-gallery-inner { max-width: 1100px; margin: 0 auto; }
.video-gallery-label { font-family: "JetBrains Mono", monospace; font-size: 9px; letter-spacing: 0.4em; color: #c0392b; text-transform: uppercase; margin-bottom: 24px; }
.video-gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.video-item video { width: 100%; aspect-ratio: 16/9; object-fit: cover; background: #111009; display: block; }
.video-item-label { font-family: "JetBrains Mono", monospace; font-size: 10px; color: rgba(242,236,224,0.35); margin-top: 12px; line-height: 1.6; }

/* 信息栏 */
.info-bar { padding: 56px 56px; border-top: 1px solid rgba(242,236,224,0.06); border-bottom: 1px solid rgba(242,236,224,0.06); }
.info-bar-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; align-items: start; }
.info-brief { font-size: 14px; line-height: 2.0; color: rgba(242,236,224,0.5); max-width: 520px; }
.info-item .info-l { font-family: 'JetBrains Mono', monospace; font-size: 9px; letter-spacing: 0.3em; color: #c0392b; text-transform: uppercase; margin-bottom: 8px; }
.info-item .info-v { font-size: 13px; color: rgba(242,236,224,0.7); }

/* 正文 */
.proj-body { padding: 100px 56px; max-width: 1100px; margin: 0 auto; }
.proj-body h3 { font-family: 'Noto Serif SC', serif; font-size: 9px; letter-spacing: 0.35em; color: #c0392b; text-transform: uppercase; margin: 56px 0 20px; font-weight: 400; }
.proj-body h3:first-of-type { margin-top: 0; }
.proj-body p { font-size: 15px; line-height: 2.1; color: rgba(242,236,224,0.55); max-width: 640px; margin-bottom: 16px; }

/* 流程 */
.flow { display: flex; align-items: stretch; margin-top: 28px; }
.flow-n { flex: 1; background: rgba(242,236,224,0.04); border: 1px solid rgba(242,236,224,0.07); padding: 18px 14px; text-align: center; font-size: 12px; color: rgba(242,236,224,0.7); line-height: 1.5; min-width: 0; }
.flow-n span { display: block; font-family: 'JetBrains Mono', monospace; font-size: 9px; color: rgba(242,236,224,0.3); margin-top: 6px; letter-spacing: 0.1em; }
.flow-ar { width: 36px; display: flex; align-items: center; justify-content: center; color: #c0392b; font-size: 14px; flex-shrink: 0; }

/* 过程 */
.process-list { display: flex; flex-direction: column; gap: 72px; margin-top: 0; }
.proc-item { display: grid; grid-template-columns: 160px 1fr; gap: 40px; align-items: start; }
.proc-num { font-family: 'JetBrains Mono', monospace; font-size: 9px; letter-spacing: 0.25em; color: #c0392b; text-transform: uppercase; padding-top: 4px; }
.proc-img { margin-top: 20px; display: grid; gap: 6px; }
.proc-img-grid-2 { grid-template-columns: 1fr 1fr; }
.proc-img-grid-1 { grid-template-columns: 1fr; }
.proc-img video { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; background: #111009; transition: opacity 0.3s; }
.proc-img img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; background: #111009; transition: opacity 0.3s; }
.proc-img img:hover { opacity: 0.85; }
.proc-caption { font-family: 'JetBrains Mono', monospace; font-size: 9px; color: rgba(242,236,224,0.3); margin-top: 10px; line-height: 1.6; }

/* 备注 */
.proj-note { margin-top: 72px; padding-top: 32px; border-top: 1px solid rgba(242,236,224,0.06); font-family: 'JetBrains Mono', monospace; font-size: 10px; color: rgba(242,236,224,0.28); line-height: 1.9; }

/* 页脚 */
footer { padding: 32px 56px; border-top: 1px solid rgba(242,236,224,0.06); display: flex; justify-content: space-between; align-items: center; }
footer p { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.15em; color: rgba(242,236,224,0.2); }


/* 古籍数字转译页面样式 */
.purpose-section, .meaning-section, .translation-section {
  padding: 64px 56px;
  border-bottom: 1px solid rgba(242,236,224,0.06);
}
.purpose-inner, .meaning-inner, .translation-inner {
  max-width: 900px;
  margin: 0 auto;
}
.section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.4em;
  color: #c0392b;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.purpose-section p, .meaning-section p, .translation-section p {
  font-size: 15px;
  line-height: 2.0;
  color: rgba(242,236,224,0.55);
  margin-bottom: 20px;
}

.core-statement {
  padding: 48px 56px;
  background: rgba(192,57,43,0.06);
  border-left: 2px solid #c0392b;
}
.core-statement p {
  font-family: 'Noto Serif SC', serif;
  font-size: 18px;
  font-weight: 300;
  color: rgba(242,236,224,0.8);
  line-height: 1.8;
  max-width: 800px;
}

.ancient-section, .garden-section {
  padding: 72px 56px;
}
.ancient-inner, .garden-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.ancient-section .section-label, .garden-section .section-label {
  font-family: 'Noto Serif SC', serif;
  font-size: 22px;
  font-weight: 300;
  color: rgba(242,236,224,0.8);
  letter-spacing: 0.1em;
  text-transform: none;
  margin-bottom: 24px;
}
.ancient-section > div > p, .garden-section > div > p {
  font-size: 14px;
  line-height: 2.0;
  color: rgba(242,236,224,0.45);
  margin-bottom: 20px;
  max-width: 800px;
}

.contrast-group {
  margin: 48px 0;
}
.contrast-title {
  font-family: 'Noto Serif SC', serif;
  font-size: 16px;
  color: rgba(242,236,224,0.7);
  margin-bottom: 20px;
}
.contrast-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.contrast-col {
  overflow: hidden;
  background: #111009;
}
.contrast-col img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}
.contrast-caption {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  color: rgba(242,236,224,0.3);
  margin-top: 10px;
}
.contrast-desc {
  font-size: 13px;
  color: rgba(242,236,224,0.35);
  line-height: 1.9;
  font-style: italic;
}

.garden-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.garden-group-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.3em;
  color: #c0392b;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.garden-imgs {
  display: grid;
  gap: 8px;
}
.garden-imgs img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: #111009;
}

.method-section {
  padding: 72px 56px;
}
.method-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.method-note {
  font-size: 14px;
  line-height: 2.0;
  color: rgba(242,236,224,0.4);
  margin-top: 40px;
  max-width: 800px;
}

.applications-section {
  padding: 72px 56px;
  background: rgba(242,236,224,0.02);
}
.applications-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.applications-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 40px;
}
.application-item {
  padding: 24px;
  border: 1px solid rgba(242,236,224,0.08);
}
.application-n {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  color: #c0392b;
  letter-spacing: 0.2em;
  margin-bottom: 12px;
}
.application-title {
  font-family: 'Noto Serif SC', serif;
  font-size: 16px;
  color: rgba(242,236,224,0.7);
  margin-bottom: 12px;
}
.application-desc {
  font-size: 12px;
  line-height: 1.8;
  color: rgba(242,236,224,0.35);
}

/* ================================================
   ancient-painting.html 字体排版优化
   ================================================ */

/* --- 说明正文 --- */
.proj-body { padding: 80px 56px; max-width: 1100px; margin: 0 auto; }

/* 小标题：Noto Serif SC，宋体，突出 */
.body-section-title,
.proj-body h3 {
  font-family: 'Noto Serif SC', serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: rgba(242,236,224,0.88);
  letter-spacing: 0.05em;
  margin: 52px 0 16px;
  line-height: 1.3;
  border-left: none;
  padding-left: 0;
}
.proj-body h3:first-of-type { margin-top: 0; }

/* 首段引导文字：略大，略重，但安静 */
.proj-body p.body-lead,
.proj-body p:first-of-type {
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.8;
  color: rgba(242,236,224,0.65);
  max-width: 660px;
  margin-bottom: 14px;
}

/* 后续段落 */
.proj-body p {
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 0.9rem;
  line-height: 1.75;
  color: rgba(242,236,224,0.48);
  max-width: 640px;
  margin-bottom: 12px;
}

/* --- 流程 --- */
.flow { display: flex; align-items: stretch; margin-top: 24px; gap: 0; }
.flow-n {
  flex: 1;
  background: rgba(242,236,224,0.03);
  border: 1px solid rgba(242,236,224,0.07);
  padding: 22px 16px;
  text-align: center;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.flow-step-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 8px;
  letter-spacing: 0.35em;
  color: #c0392b;
  display: block;
}
.flow-step-title {
  font-family: 'Noto Serif SC', serif;
  font-size: 1.1rem;
  font-weight: 500;
  color: rgba(242,236,224,0.88);
  display: block;
  letter-spacing: 0.04em;
}
.flow-step-desc {
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 0.8rem;
  line-height: 1.75;
  color: rgba(242,236,224,0.38);
  display: block;
  margin-top: 2px;
}
.flow-ar {
  width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(242,236,224,0.15);
  font-size: 16px;
  flex-shrink: 0;
}

/* --- 对比区标题（画作名）--- */
.compare-label-sm {
  font-family: 'Noto Serif SC', serif;
  font-size: 1.5rem;
  font-weight: 500;
  color: rgba(242,236,224,0.92);
  letter-spacing: 0.06em;
  margin-bottom: 14px;
  padding-left: 16px;
  border-left: 2px solid rgba(192,57,43,0.55);
  line-height: 1.3;
}

/* 引导文字 */
.compare-intro {
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 0.85rem;
  line-height: 1.85;
  color: rgba(242,236,224,0.38);
  font-style: normal;
  margin-bottom: 28px;
  max-width: 680px;
  padding-left: 16px;
}

/* compare-section 间距收紧 */
.compare-section { padding: 0 56px 60px; }
.compare-group { margin-bottom: 56px; }

/* compare-tag（琴/棋/书/画） */
.compare-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 8px;
  letter-spacing: 0.3em;
  color: rgba(242,236,224,0.22);
  text-transform: uppercase;
  margin-bottom: 10px;
  display: block;
}

/* figure 图注：低调、辅助 */
.figure { margin: 0; }
.figure img { width: 100%; display: block; }
.figure-caption {
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 0.78rem;
  font-weight: 300;
  color: rgba(242,236,224,0.28);
  margin-top: 8px;
  line-height: 1.6;
  letter-spacing: 0.02em;
}

/* ================================================
   平板端 761~1024px
   ================================================ */
@media (min-width: 761px) and (max-width: 1024px) {
  .proj-body { padding: 72px 40px; }
  .proj-body h3 { font-size: 1.2rem; }
  .proj-body p.body-lead,
  .proj-body p:first-of-type { font-size: 0.9rem; }
  .proj-body p { font-size: 0.85rem; }
  .compare-label-sm { font-size: 1.3rem; }
  .compare-intro { font-size: 0.8rem; }
  .compare-section { padding: 0 40px 52px; }
}

/* ================================================
   手机端 ≤760px
   ================================================ */
@media (max-width: 760px) {
  /* 导航 */
  #nav { padding: 20px 24px; }
  .nav-logo img { height: 40px; }
  .nav-back { font-size: 8px; }

  /* 正文 */
  .proj-body { padding: 56px 24px; }
  .body-section-title,
  .proj-body h3 { margin: 40px 0 12px; font-size: 1.15rem; }
  .proj-body p.body-lead,
  .proj-body p:first-of-type { font-size: 0.88rem; }
  .proj-body p { font-size: 0.85rem; line-height: 1.72; }

  /* 流程 */
  .flow-step-title { font-size: 1rem; }
  .flow-step-desc { font-size: 0.75rem; }

  /* 对比区 */
  .compare-label-sm { font-size: 1.2rem; padding-left: 12px; }
  .compare-intro { font-size: 0.8rem; margin-bottom: 20px; }
  .compare-section { padding: 0 24px 48px; }
  .figure-caption { font-size: 0.72rem; }

  /* 其他区块 */
  .purpose-section, .meaning-section, .translation-section,
  .ancient-section, .garden-section, .method-section,
  .applications-section {
    padding: 48px 24px;
  }
  .contrast-row {
    grid-template-columns: 1fr;
  }
  .garden-grid {
    grid-template-columns: 1fr;
  }
  .applications-grid {
    grid-template-columns: 1fr 1fr;
  }
  .core-statement {
    padding: 32px 24px;
  }
  .core-statement p {
    font-size: 15px;
  }
}

/* ================================================
   手机端 ≤480px
   ================================================ */
@media (max-width: 480px) {
  .applications-grid {
    grid-template-columns: 1fr;
  }
  .section-label {
    font-size: 8px;
  }
}
