:root {
  --color-primary: #8b1e1e;
  --color-primary-dark: #6f1515;
  --color-primary-soft: #a83232;
  --color-text: #2b2b2b;
  --color-text-muted: #6b6560;
  --color-cream: #f6f1e8;
  --color-cream-deep: #efe6d8;
  --color-white: #ffffff;
  --color-line: #e5ddd0;
  --font-display: "阿里妈妈东方大楷", "Alimama DongFangDaKai", "Noto Serif SC", "Songti SC", serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --sketch-right: url("/static/theme/uplod/zoujingdabayou.png");
  --container: 1180px;
  --header-h: 78px;
  --radius: 4px;
  --shadow-soft: 0 12px 40px rgba(60, 40, 20, 0.08);
  --transition: 0.35s ease;
}

@font-face {
  font-family: "阿里妈妈东方大楷";
  src: url("/static/home/fonts/Alimama_DongFangDaKai_Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.75;
  background: var(--color-cream);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

button {
  font: inherit;
  cursor: pointer;
  border: 0;
  background: none;
}

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

.section {
  padding: 88px 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 42px;
}

.section-title .en {
  display: block;
  color: var(--color-primary);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.section-title .zh {
  margin: 0;
  font-family: var(--font-display);
  font-size: 36px;
  letter-spacing: 0.06em;
}

.section-desc {
  margin: 10px 0 0;
  color: var(--color-text);
  font-size: 14px;
  letter-spacing: 0.08em;
  font-weight: 500;
}

.section-more {
  color: var(--color-primary);
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: opacity var(--transition);
}

.section-more:hover {
  opacity: 0.75;
}

.section-more svg {
  width: 14px;
  height: 14px;
}

.more-pill {
  height: 36px;
  padding: 0 14px 0 16px;
  border: 1px solid rgba(139, 30, 30, 0.35);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  gap: 8px;
  flex-shrink: 0;
}

.more-pill .btn-go {
  width: 18px;
  height: 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 128px;
  height: 44px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 14px;
  letter-spacing: 0.08em;
  transition: all var(--transition);
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--color-primary-dark);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.95);
  color: var(--color-primary);
  border: 1px solid rgba(255, 255, 255, 0.95);
  gap: 10px;
  padding-right: 14px;
}

.btn-ghost:hover {
  background: #fff;
}

.btn-go {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

.btn-outline {
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
  background: transparent;
}

.btn-outline:hover {
  background: var(--color-primary);
  color: #fff;
}

.play-btn {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 30px rgba(139, 30, 30, 0.35);
  transition: transform var(--transition), background var(--transition);
  z-index: 2;
}

.play-btn:hover {
  transform: translate(-50%, -50%) scale(1.06);
  background: var(--color-primary-dark);
}

.play-btn svg {
  width: 22px;
  height: 22px;
  margin-left: 3px;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  background: rgba(246, 241, 232, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.site-header.is-scrolled {
  border-bottom-color: var(--color-line);
  box-shadow: 0 6px 24px rgba(50, 30, 10, 0.06);
}

.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-logo img {
  height: 100px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  position: relative;
  font-size: 15px;
  color: var(--color-text);
  letter-spacing: 0.08em;
  padding: 6px 0;
}

.nav-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width var(--transition);
}

.nav-menu a:hover::after,
.nav-menu a.is-active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--color-text);
  transition: background var(--transition);
}

.icon-btn:hover {
  background: rgba(139, 30, 30, 0.08);
}

.icon-btn svg {
  width: 18px;
  height: 18px;
}

.header-contact {
  height: 38px;
  line-height: 38px;
  min-width: 98px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--color-primary);
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.06em;
}

.header-contact:hover {
  background: var(--color-primary-dark);
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  place-items: center;
  flex-shrink: 0;
  border: 1px solid rgba(43, 43, 43, 0.28);
  border-radius: 8px;
  color: var(--color-text);
}

/* 桌面端不需要遮罩 */
.nav-mask {
  display: none;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  position: relative;
  transition: background 0.25s ease;
}

.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: transform 0.25s ease, top 0.25s ease;
}

.menu-toggle span::before {
  top: -6px;
}

.menu-toggle span::after {
  top: 6px;
}

.menu-toggle.is-open span {
  background: transparent;
}

.menu-toggle.is-open span::before {
  top: 0;
  transform: rotate(45deg);
}

.menu-toggle.is-open span::after {
  top: 0;
  transform: rotate(-45deg);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #fff;
  margin-top: 0;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #3a2a1c;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(255, 252, 246, 0.12) 0%,
    rgba(255, 252, 246, 0.08) 40%,
    rgba(20, 10, 5, 0.18) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: calc(var(--header-h) + 40px) 20px 80px;
  max-width: 900px;
}

.hero-title {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: clamp(34px, 5.2vw, 58px);
  font-weight: 400;
  letter-spacing: 0.1em;
  line-height: 1.35;
  color: var(--color-primary);
}

.hero-subtitle {
  margin: 0 0 34px;
  font-family: var(--font-display);
  font-size: clamp(24px, 1.8vw, 17px);
  font-weight: 200;
  letter-spacing: 0.18em;
  color: #1a1a1a;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.hero-actions .btn {
  min-width: 136px;
  height: 46px;
  font-size: 15px;
  letter-spacing: 0.06em;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Dam */
.dam-section {
  position: relative;
  background: var(--color-white);
  overflow: hidden;
}

/* 线稿从视口左侧铺开 */
.dam-section::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: min(52vw, 680px);
  height: min(78%, 520px);
  background: url("/static/theme/uplod/zoujingdabaa.png") left center / contain no-repeat;
  opacity: 0.9;
  pointer-events: none;
  z-index: 0;
}

/* 线稿从视口右侧铺开 */
.dam-section::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: min(52vw, 680px);
  height: min(78%, 520px);
  background: url("/static/theme/uplod/zoujingdabayou.png") right center / contain no-repeat;
  opacity: 0.9;
  pointer-events: none;
  z-index: 0;
}

.dam-inner {
  position: relative;
  z-index: 1;
  width: min(100% - 48px, 1280px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) minmax(320px, 1.08fr);
  gap: clamp(28px, 4vw, 48px);
  align-items: center;
}

.dam-copy {
  position: relative;
  padding-left: 0;
  max-width: 520px;
}

.dam-copy .section-title {
  margin-bottom: 20px;
}

.dam-title {
  position: relative;
  z-index: 1;
  padding-top: 4px;
  padding-bottom: 14px;
}

.dam-title .zh {
  position: relative;
  display: inline-block;
}

.dam-title .zh::after {
  content: "";
  display: block;
  width: 36px;
  height: 3px;
  margin-top: 12px;
  background: var(--color-primary);
  border-radius: 2px;
}

.dam-content {
  color: var(--color-text);
  margin-bottom: 28px;
  white-space: pre-line;
  line-height: 1.9;
}

.dam-content p {
  margin: 0 0 14px;
  white-space: normal;
}

.dam-section .btn-primary {
  gap: 10px;
  padding-right: 14px;
}

.btn-go-light {
  /* go_look_bai 本身为浅色箭头，无需反色 */
  filter: none;
}

.dam-media {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-soft);
}

.dam-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Products */
.product-section {
  position: relative;
  overflow: hidden;
  background-color: #f7f2ea;
  background-image: url("/static/theme/uplod/chanpinjieshaobj.png");
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
}

.product-inner {
  position: relative;
  z-index: 1;
  width: min(100% - 48px, 1200px);
}

.product-section .section-head {
  align-items: flex-start;
  margin-bottom: 36px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

/* 首页产品横向滑动 */
.product-slider {
  position: relative;
}

.product-track {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 8px 4px 18px;
  margin: 0 -4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.product-track::-webkit-scrollbar {
  display: none;
}

.product-track .product-card {
  flex: 0 0 calc((100% - 44px) / 3);
  max-width: calc((100% - 44px) / 3);
  scroll-snap-align: start;
}

.product-slider.has-overflow::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 18px;
  width: 88px;
  background: linear-gradient(90deg, rgba(247, 242, 234, 0) 0%, rgba(247, 242, 234, 0.72) 55%, rgba(247, 242, 234, 0.92) 100%);
  pointer-events: none;
  z-index: 2;
}

.product-slide-next {
  position: absolute;
  right: 8px;
  top: 42%;
  transform: translateY(-50%);
  z-index: 3;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: rgba(139, 30, 30, 0.55);
  background: rgba(255, 255, 255, 0.38);
  border: 1px solid rgba(139, 30, 30, 0.18);
  backdrop-filter: blur(6px);
  box-shadow: 0 8px 20px rgba(60, 40, 20, 0.08);
  transition: color 0.25s ease, background 0.25s ease, opacity 0.25s ease, border-color 0.25s ease;
}

.product-slide-next svg {
  width: 22px;
  height: 22px;
}

.product-slide-next:hover {
  color: var(--color-primary);
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(139, 30, 30, 0.35);
}

.product-slide-next[hidden] {
  display: none !important;
}

.product-card {
  display: block;
  background: var(--color-white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(70, 45, 20, 0.08);
  transition: transform var(--transition), box-shadow var(--transition);
  color: inherit;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(70, 45, 20, 0.12);
}

.product-card .thumb {
  position: relative;
  aspect-ratio: 4 / 3.2;
  overflow: hidden;
  background: #efe8dc;
}

.product-card .thumb > img:not(.thumb-logo) {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card .thumb-logo {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 58px;
  height: 58px;
  object-fit: contain;
  z-index: 2;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.product-card .body {
  position: relative;
  padding: 18px 20px 20px;
}

.product-card h3 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.product-card .sub {
  margin: 0 0 14px;
  color: #8a837a;
  font-size: 13px;
}

.product-card .price {
  color: var(--color-primary);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.product-card .price em {
  font-style: normal;
  font-size: 14px;
  margin-right: 2px;
}

.product-card .go {
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: transparent;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.product-card .go img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-card .go svg {
  display: none;
}

.product-empty,
.news-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--color-text-muted);
  padding: 40px 0;
}

/* Brand */
.brand-section {
  padding: 0;
}

.brand-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 560px;
}

.brand-left {
  position: relative;
  background: #8b1e1e;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 72px 64px;
  overflow: hidden;
}

/* 村景底图 */
.brand-left::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--brand-bg, none);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  z-index: 0;
}

/* 红色半透明遮罩，透出底图 */
.brand-left::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(120, 22, 22, 0.72);
  z-index: 0;
  pointer-events: none;
}

.brand-left-inner {
  position: relative;
  z-index: 1;
  max-width: 460px;
  text-align: center;
}

.brand-crown {
  display: block;
  width: 56px;
  height: auto;
  margin: 0 auto 18px;
  object-fit: contain;
  /* 黑底白线图标，在红底上透出白色皇冠 */
  mix-blend-mode: screen;
}

.brand-name {
  margin: 0 0 22px;
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 400;
  letter-spacing: 0.18em;
  color: #fff;
  line-height: 1.3;
}

.brand-left .text {
  color: rgba(255, 255, 255, 0.95);
  font-size: 14px;
  line-height: 1.95;
  text-align: center;
  white-space: pre-line;
}

.brand-left .text p {
  margin: 0 0 14px;
  white-space: normal;
  color: inherit;
}

.brand-right {
  position: relative;
  background-color: #ffffff;
  padding: 72px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  background-image: url("/static/theme/uplod/zoujingdabaa.png");
  background-position: left center;
  background-size: cover;
  background-repeat: no-repeat;
}

.brand-right > .reveal {
  position: relative;
  z-index: 1;
}

.brand-right .section-title {
  margin-bottom: 22px;
}

.brand-right .section-title .zh {
  display: inline-block;
}

.brand-right .section-title .zh::after {
  content: "";
  display: block;
  width: 36px;
  height: 3px;
  margin-top: 12px;
  background: var(--color-primary);
  border-radius: 2px;
}

.brand-right .intro {
  color: var(--color-text-muted);
  margin-bottom: 36px;
  max-width: 520px;
  white-space: pre-line;
}

.brand-right .intro p {
  margin: 0 0 12px;
  white-space: normal;
}

.brand-icons {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.brand-icon-item {
  text-align: center;
}

.brand-icon-item .icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: var(--color-white);
  color: var(--color-primary);
  display: grid;
  place-items: center;
  box-shadow: 0 8px 20px rgba(80, 40, 20, 0.08);
  overflow: hidden;
}

.brand-icon-item .icon img {
  /* width: 28px;
  height: 28px; */
  object-fit: contain;
}

.brand-icon-item .icon svg {
  width: 24px;
  height: 24px;
}

.brand-icon-item span {
  display: block;
  font-size: 12px;
  color: var(--color-text);
  letter-spacing: 0.04em;
}

/* Craft */
.craft-section {
  position: relative;
  overflow: hidden;
  background-color: #f3ebe0;
  border-top: 2px solid var(--color-primary);
}

/* 背景图贴视口左边 */
.craft-section::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: min(46vw, 620px);
  background: url("/static/theme/uplod/zhizuogongyubj.png") left center / auto 100% no-repeat;
  pointer-events: none;
  z-index: 0;
}

.craft-section > .container {
  position: relative;
  z-index: 1;
}

.craft-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: start;
}

.craft-copy {
  position: relative;
  background: none;
  padding: 0; 
}

.craft-copy .section-title {
  margin-bottom: 22px;
}

.craft-title .zh {
  display: inline-block;
}

.craft-title .zh::after {
  content: "";
  display: block;
  width: 36px;
  height: 3px;
  margin-top: 12px;
  background: var(--color-primary);
  border-radius: 2px;
}

.craft-content {
  color: var(--color-text);
  margin-bottom: 28px;
  white-space: pre-line;
  line-height: 1.9;
}

.craft-content p {
  margin: 0 0 12px;
  white-space: normal;
}

/* 缩略图：中间放大 */
.craft-thumbs {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  height: 210px;
  padding: 8px 4px;
}

.craft-thumbs .thumb {
  flex: 0 0 auto;
  width: 26%;
  max-width: 150px;
  height: 78%;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.45);
  box-shadow: 0 6px 18px rgba(60, 40, 20, 0.1);
  transition: transform 0.25s ease, height 0.25s ease, box-shadow 0.25s ease;
}

.craft-thumbs .thumb.is-center,
.craft-thumbs .thumb:nth-child(2) {
  width: 34%;
  max-width: 190px;
  height: 100%;
  z-index: 2;
  box-shadow: 0 12px 28px rgba(60, 40, 20, 0.18);
}

.craft-thumbs .thumb:not(.is-center):not(:nth-child(2)) {
  opacity: 0.92;
}

.craft-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.craft-media {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 1 / 1.05;
  box-shadow: 0 10px 32px rgba(60, 40, 20, 0.12);
  background: rgba(255, 255, 255, 0.35);
}

.craft-media img {
  width: 100%;
  height: 100%;
  /* object-fit: cover; */
}

/* News */
.news-section {
  position: relative;
  overflow: hidden;
  background: #ffffff;
}

/* 背景图贴左侧，模仿制作工艺 */
.news-section::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: min(46vw, 620px);
  background: url("/static/theme/uplod/zoujingdabaa.png") left center / auto 100% no-repeat;
  pointer-events: none;
  z-index: 0;
  opacity: 0.85;
}

.news-section > .container {
  position: relative;
  z-index: 1;
}

.news-section .section-head {
  position: relative;
  background: none;
  align-items: flex-start;
  margin-bottom: 36px;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.news-card {
  background: transparent;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
  transition: transform var(--transition);
}

.news-card:hover {
  transform: translateY(-4px);
}

.news-card .thumb {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #efe8dc;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(60, 40, 20, 0.08);
}

.news-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-card .body {
  padding: 14px 4px 8px;
}

.news-card h3 {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  min-height: auto;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--color-text);
}

.news-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #9a9086;
  font-size: 12px;
}

.news-meta .date,
.news-meta .views {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.news-meta svg {
  width: 14px;
  height: 14px;
}

/* Footer */
.site-footer {
  background: var(--color-cream) center top / 100% auto no-repeat;
  background-image: url("/static/theme/uplod/footer-pattern.png");
}

.footer-main {
  padding: 64px 0 40px;
  background: transparent;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 2.4fr 0.85fr;
  gap: 48px;
  align-items: start;
}

.footer-brand .brand-logo img {
  height: 120px;
  max-width: 200px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px 20px;
}

.footer-col h4 {
  margin: 0 0 18px;
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text);
}

.footer-col a {
  display: block;
  color: #6d655c;
  font-size: 13px;
  line-height: 1.4;
  margin-bottom: 12px;
  transition: color var(--transition);
}

.footer-col a:last-child {
  margin-bottom: 0;
}

.footer-col a:hover {
  color: var(--color-primary);
}

.footer-qr {
  text-align: center;
  justify-self: end;
}

.footer-qr p {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
}

.footer-qr .qr-box {
  width: 118px;
  height: 118px;
  margin: 0 auto;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(60, 48, 36, 0.06);
}

.footer-qr .qr-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.footer-bottom {
  border-top: 1px solid rgba(154, 144, 134, 0.28);
  padding: 18px 0 28px;
  color: #9a9086;
  font-size: 12px;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-copy {
  margin: 0;
  line-height: 1.6;
}

.footer-icp {
  margin-left: 8px;
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

.footer-legal a {
  color: #9a9086;
  transition: color var(--transition);
}

.footer-legal a:hover {
  color: var(--color-primary);
}

/* Video modal */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.video-modal.is-open {
  display: flex;
}

.video-modal-mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
}

.video-modal-body {
  position: relative;
  width: min(960px, 100%);
  background: #000;
  border-radius: 8px;
  overflow: hidden;
}

.video-modal-body video {
  width: 100%;
  display: block;
  max-height: 80vh;
}

.video-modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: #fff;
  font-size: 28px;
  line-height: 1;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
  .dam-inner,
  .craft-grid,
  .brand-split,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .dam-section::before {
    width: min(90vw, 520px);
    height: 280px;
    top: 40px;
    transform: none;
    opacity: 0.55;
  }

  .dam-section::after {
    width: min(90vw, 520px);
    height: 240px;
    top: auto;
    bottom: 24px;
    transform: none;
    opacity: 0.45;
  }

  .dam-copy {
    max-width: none;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-track .product-card {
    flex-basis: calc((100% - 22px) / 2);
    max-width: calc((100% - 22px) / 2);
  }

  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .brand-icons {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .craft-media {
    aspect-ratio: 16 / 10;
    max-height: 420px;
  }

  .footer-links {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-qr {
    justify-self: start;
  }

  .footer-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  :root {
    --header-h: 64px;
  }

  .section {
    padding: 64px 0;
  }

  .section-title .zh {
    font-size: 28px;
  }

  .site-header .container {
    gap: 12px;
  }

  .brand-logo img {
    height: 52px;
    max-width: 140px;
  }

  .header-actions {
    margin-left: auto;
    gap: 8px;
    position: relative;
    z-index: 102;
  }

  .header-actions .icon-btn {
    display: none;
  }

  .header-contact {
    display: none;
  }

  .menu-toggle {
    display: grid;
    width: 44px;
    height: 44px;
  }

  /* 遮罩：点空白处关闭 */
  .nav-mask {
    display: block;
    position: fixed;
    inset: var(--header-h) 0 0;
    z-index: 98;
    background: rgba(30, 22, 14, 0.36);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
  }

  body.nav-open .nav-mask {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-menu {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    width: 100%;
    max-height: min(70vh, 420px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: #fffaf3;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 8px 0 calc(12px + env(safe-area-inset-bottom, 0px));
    border-bottom: 1px solid var(--color-line);
    border-radius: 0;
    box-shadow: 0 16px 32px rgba(50, 30, 10, 0.14);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s ease;
    z-index: 101;
  }

  .nav-menu.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
  }

  .nav-menu li {
    border-bottom: 1px solid rgba(229, 221, 208, 0.7);
  }

  .nav-menu li:last-child {
    border-bottom: 0;
  }

  .nav-menu a {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 52px;
    padding: 14px 24px;
    font-size: 16px;
    letter-spacing: 0.12em;
    text-align: left;
    -webkit-tap-highlight-color: rgba(139, 30, 30, 0.12);
  }

  .nav-menu a:active {
    background: rgba(139, 30, 30, 0.06);
  }

  .nav-menu a.is-active {
    color: var(--color-primary);
    font-weight: 600;
    background: rgba(139, 30, 30, 0.05);
  }

  .nav-menu a::after {
    display: none;
  }

  body.nav-open {
    overflow: hidden;
    touch-action: none;
  }

  .product-grid,
  .news-grid,
  .brand-icons,
  .craft-thumbs {
    grid-template-columns: 1fr 1fr;
  }

  .product-track .product-card {
    flex-basis: 82%;
    max-width: 82%;
  }

  .brand-left,
  .brand-right {
    padding: 48px 28px;
  }

  .brand-icons {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 18px;
  }

  .brand-icon-item:nth-child(4),
  .brand-icon-item:nth-child(5) {
    grid-column: span 1;
  }
}

@media (max-width: 520px) {
  .product-grid,
  .news-grid {
    grid-template-columns: 1fr;
  }

  .product-track .product-card {
    flex-basis: 88%;
    max-width: 88%;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 180px;
  }
}
