/* ============================================================
   山月茗堂 SHANYUE MINGTANG TEA — 全站样式
   色系：茶绿 #33523F / 深墨绿 #22332A / 米白 #F7F3EA
        暖金 #B08D57 / 正文墨色 #2A2E2B
   ============================================================ */

/* ---------- 基础与变量 ---------- */
:root {
  --green: #33523F;
  --green-deep: #22332A;
  --cream: #F7F3EA;
  --cream-dark: #EFE8D8;
  --gold: #B08D57;
  --ink: #2A2E2B;
  --ink-light: #5C615D;
  --white: #FFFFFF;
  --line: #DDD5C4;
  --serif: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --sans: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --header-h: 76px;
  --shadow: 0 8px 30px rgba(34, 51, 42, 0.10);
  --transition: all 0.35s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink);
  background-color: var(--cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; transition: var(--transition); }

ul, ol { list-style: none; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; color: var(--green-deep); line-height: 1.4; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- 通用区块 ---------- */
.section { padding: 96px 0; }

.section--tint { background-color: var(--cream-dark); }
.section--dark { background-color: var(--green-deep); }
.section--dark h2, .section--dark h3 { color: var(--cream); }

.section-head { text-align: center; margin-bottom: 56px; }

.section-head .en {
  display: block;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 4px;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-head h2 { font-size: 34px; letter-spacing: 4px; }

.section-head .divider {
  width: 56px;
  height: 2px;
  background: var(--gold);
  margin: 18px auto 0;
  position: relative;
}

.section-head .divider::before,
.section-head .divider::after {
  content: "";
  position: absolute;
  top: -2px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}
.section-head .divider::before { left: -14px; }
.section-head .divider::after { right: -14px; }

.section-head p { margin-top: 16px; color: var(--ink-light); font-size: 15px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-block;
  padding: 13px 38px;
  font-size: 15px;
  letter-spacing: 3px;
  border: 1px solid var(--green);
  color: var(--green);
  background: transparent;
  cursor: pointer;
  font-family: var(--sans);
  transition: var(--transition);
}

.btn:hover { background: var(--green); color: var(--cream); }

.btn--gold { border-color: var(--gold); color: var(--gold); }
.btn--gold:hover { background: var(--gold); color: var(--white); }

.btn--light { border-color: rgba(247, 243, 234, 0.7); color: var(--cream); }
.btn--light:hover { background: var(--cream); color: var(--green-deep); }

/* ---------- 头部导航 ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: transparent;
  transition: var(--transition);
}

.site-header.scrolled,
.site-header.header-solid {
  background: rgba(247, 243, 234, 0.96);
  box-shadow: 0 2px 18px rgba(34, 51, 42, 0.12);
  backdrop-filter: blur(6px);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo { display: flex; flex-direction: column; line-height: 1.2; }

.logo .logo-cn {
  font-family: var(--serif);
  font-size: 26px;
  letter-spacing: 6px;
  color: var(--cream);
  transition: var(--transition);
}

.logo .logo-en {
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--gold);
  text-transform: uppercase;
}

.site-header.scrolled .logo-cn,
.site-header.header-solid .logo-cn { color: var(--green-deep); }

.main-nav ul { display: flex; align-items: center; gap: 8px; }

.main-nav a {
  display: block;
  padding: 10px 18px;
  font-size: 15px;
  letter-spacing: 2px;
  color: rgba(247, 243, 234, 0.92);
  position: relative;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 4px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after { transform: scaleX(1); }

.main-nav a:hover, .main-nav a.active { color: var(--gold); }

.site-header.scrolled .main-nav a,
.site-header.header-solid .main-nav a { color: var(--green-deep); }

.site-header.scrolled .main-nav a:hover,
.site-header.scrolled .main-nav a.active,
.site-header.header-solid .main-nav a:hover,
.site-header.header-solid .main-nav a.active { color: var(--gold); }

/* 汉堡按钮 */
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  z-index: 1002;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--cream);
  margin: 5px auto;
  transition: var(--transition);
}

.site-header.scrolled .nav-toggle span,
.site-header.header-solid .nav-toggle span { background: var(--green-deep); }

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 首页轮播 ---------- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 560px;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.2s ease, visibility 1.2s ease;
}

.hero-slide.active { opacity: 1; visibility: visible; z-index: 1; }

.hero-slide .hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.08);
  transition: transform 6s ease;
}

.hero-slide.active .hero-bg { transform: scale(1); }

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(34, 51, 42, 0.35), rgba(34, 51, 42, 0.55));
}

.hero-caption {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--cream);
  padding: 0 24px;
}

.hero-caption .hero-en {
  font-size: 14px;
  letter-spacing: 6px;
  color: var(--gold);
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s ease 0.3s, transform 0.9s ease 0.3s;
}

.hero-caption h1 {
  font-size: 52px;
  letter-spacing: 10px;
  color: var(--cream);
  margin: 18px 0 20px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s ease 0.55s, transform 0.9s ease 0.55s;
}

.hero-caption p {
  font-size: 17px;
  letter-spacing: 3px;
  color: rgba(247, 243, 234, 0.88);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s ease 0.8s, transform 0.9s ease 0.8s;
}

.hero-caption .btn {
  margin-top: 36px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s ease 1.05s, transform 0.9s ease 1.05s, background 0.35s ease, color 0.35s ease;
}

.hero-slide.active .hero-caption .hero-en,
.hero-slide.active .hero-caption h1,
.hero-slide.active .hero-caption p,
.hero-slide.active .hero-caption .btn {
  opacity: 1;
  transform: translateY(0);
}

/* 箭头 */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(247, 243, 234, 0.45);
  border-radius: 50%;
  background: rgba(34, 51, 42, 0.25);
  color: var(--cream);
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.hero-arrow:hover { background: var(--gold); border-color: var(--gold); }

.hero-prev { left: 32px; }
.hero-next { right: 32px; }

/* 指示点 */
.hero-dots {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 12px;
}

.hero-dots button {
  width: 34px;
  height: 3px;
  border: none;
  background: rgba(247, 243, 234, 0.4);
  cursor: pointer;
  transition: var(--transition);
}

.hero-dots button.active { background: var(--gold); }

/* ---------- 首页：品牌简介 ---------- */
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.intro-text .en {
  display: block;
  font-size: 13px;
  letter-spacing: 4px;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.intro-text h2 { font-size: 36px; letter-spacing: 4px; margin-bottom: 24px; }

.intro-text p { color: var(--ink-light); margin-bottom: 18px; text-align: justify; }

.intro-text .btn { margin-top: 16px; }

.intro-img { position: relative; }

.intro-img img { width: 100%; box-shadow: var(--shadow); }

.intro-img::before {
  content: "";
  position: absolute;
  top: -20px;
  right: -20px;
  width: 100%;
  height: 100%;
  border: 1px solid var(--gold);
  z-index: -1;
}

/* ---------- 产品宫格 ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.product-card {
  background: var(--white);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: var(--transition);
  display: block;
}

.product-card:hover { box-shadow: var(--shadow); transform: translateY(-6px); }

.product-card .thumb { overflow: hidden; aspect-ratio: 4 / 3; }

.product-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.product-card:hover .thumb img { transform: scale(1.08); }

.product-card .info { padding: 22px 24px 26px; }

.product-card .info h3 { font-size: 20px; letter-spacing: 2px; margin-bottom: 8px; }

.product-card .info p {
  font-size: 14px;
  color: var(--ink-light);
  margin-bottom: 14px;
  min-height: 44px;
}

.tag {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 2px;
  padding: 3px 14px;
  border: 1px solid var(--gold);
  color: var(--gold);
}

/* ---------- 茶园与工艺 ---------- */
.craft-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 64px;
}

.craft-item { position: relative; overflow: hidden; }

.craft-item img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.craft-item:hover img { transform: scale(1.05); }

.craft-item .caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 22px 26px;
  background: linear-gradient(to top, rgba(34, 51, 42, 0.85), transparent);
  color: var(--cream);
}

.craft-item .caption h3 { color: var(--cream); font-size: 20px; letter-spacing: 3px; }

.craft-item .caption p { font-size: 13px; color: rgba(247, 243, 234, 0.85); }

.craft-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  text-align: center;
}

.step { padding: 40px 28px; border: 1px solid var(--line); background: var(--white); transition: var(--transition); }

.step:hover { border-color: var(--gold); box-shadow: var(--shadow); }

.step .num {
  font-family: var(--serif);
  font-size: 40px;
  color: var(--gold);
  display: block;
  margin-bottom: 12px;
}

.step h3 { font-size: 19px; letter-spacing: 3px; margin-bottom: 10px; }

.step p { font-size: 14px; color: var(--ink-light); }

/* ---------- 新闻卡片 ---------- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.news-card {
  background: var(--white);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: var(--transition);
  display: block;
}

.news-card:hover { box-shadow: var(--shadow); transform: translateY(-6px); }

.news-card .thumb { overflow: hidden; aspect-ratio: 16 / 10; }

.news-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.news-card:hover .thumb img { transform: scale(1.07); }

.news-card .info { padding: 22px 24px 26px; }

.news-card time {
  font-size: 13px;
  letter-spacing: 1px;
  color: var(--gold);
  display: block;
  margin-bottom: 8px;
}

.news-card h3 { font-size: 18px; letter-spacing: 1px; margin-bottom: 10px; }

.news-card p { font-size: 14px; color: var(--ink-light); }

.section-more { text-align: center; margin-top: 48px; }

/* ---------- 页脚 ---------- */
.site-footer {
  background: var(--green-deep);
  color: rgba(247, 243, 234, 0.75);
  padding: 72px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 56px;
}

.footer-brand .logo-cn {
  font-family: var(--serif);
  font-size: 26px;
  letter-spacing: 6px;
  color: var(--cream);
  display: block;
}

.footer-brand .logo-en {
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--gold);
  text-transform: uppercase;
  display: block;
  margin: 4px 0 18px;
}

.footer-brand p { font-size: 14px; line-height: 1.9; }

.footer-col h4 {
  color: var(--cream);
  font-size: 16px;
  letter-spacing: 3px;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 28px;
  height: 1px;
  background: var(--gold);
}

.footer-col ul li { margin-bottom: 10px; font-size: 14px; }

.footer-col ul li a:hover { color: var(--gold); }

.footer-contact li { display: flex; gap: 8px; font-size: 14px; }

.footer-bottom {
  border-top: 1px solid rgba(247, 243, 234, 0.14);
  padding: 22px 0;
  text-align: center;
  font-size: 13px;
  color: rgba(247, 243, 234, 0.5);
}

.footer-bottom a:hover { color: var(--gold); }

/* ---------- 子页横幅 ---------- */
.page-banner {
  position: relative;
  height: 380px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.page-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(34, 51, 42, 0.6);
}

.page-banner .banner-text { position: relative; z-index: 2; color: var(--cream); }

.page-banner .banner-text .en {
  display: block;
  font-size: 13px;
  letter-spacing: 5px;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.page-banner h1 {
  font-size: 40px;
  letter-spacing: 8px;
  color: var(--cream);
}

.breadcrumb {
  padding: 18px 0;
  font-size: 13px;
  color: var(--ink-light);
  border-bottom: 1px solid var(--line);
}

.breadcrumb a:hover { color: var(--gold); }

.breadcrumb span { margin: 0 8px; color: var(--gold); }

/* ---------- 关于我们 ---------- */
.about-lead {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.about-lead h2 { font-size: 30px; letter-spacing: 4px; margin-bottom: 24px; }

.about-lead p { color: var(--ink-light); text-align: justify; margin-bottom: 16px; }

.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.philo-item {
  text-align: center;
  padding: 44px 24px;
  border: 1px solid var(--line);
  background: var(--white);
  transition: var(--transition);
}

.philo-item:hover { border-color: var(--gold); box-shadow: var(--shadow); }

.philo-item .char {
  font-family: var(--serif);
  font-size: 52px;
  color: var(--green);
  display: block;
  margin-bottom: 14px;
}

.philo-item h3 { font-size: 17px; letter-spacing: 3px; margin-bottom: 10px; }

.philo-item p { font-size: 13px; color: var(--ink-light); }

/* 时间线 */
.timeline {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  padding: 20px 0;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--line);
  transform: translateX(-0.5px);
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 0 48px 48px 0;
}

.timeline-item:nth-child(even) {
  margin-left: 50%;
  padding: 0 0 48px 48px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  top: 8px;
  right: -7px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--cream);
  border: 3px solid var(--gold);
}

.timeline-item:nth-child(even)::before { right: auto; left: -7px; }

.timeline-item .year {
  font-family: var(--serif);
  font-size: 24px;
  color: var(--gold);
  display: block;
  margin-bottom: 6px;
}

.timeline-item h3 { font-size: 17px; letter-spacing: 2px; margin-bottom: 6px; }

.timeline-item p { font-size: 14px; color: var(--ink-light); }

.timeline-item:nth-child(odd) { text-align: right; }

/* 图文双栏（关于页基地/工艺） */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 72px;
}

.feature-row:last-child { margin-bottom: 0; }

.feature-row.reverse .feature-img { order: 2; }

.feature-img img { width: 100%; box-shadow: var(--shadow); }

.feature-text .en {
  display: block;
  font-size: 12px;
  letter-spacing: 4px;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.feature-text h3 { font-size: 26px; letter-spacing: 3px; margin-bottom: 18px; }

.feature-text p { font-size: 15px; color: var(--ink-light); margin-bottom: 14px; text-align: justify; }

/* ---------- 产品中心筛选 ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 52px;
}

.filter-btn {
  padding: 9px 26px;
  font-size: 14px;
  letter-spacing: 2px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink-light);
  cursor: pointer;
  font-family: var(--sans);
  transition: var(--transition);
}

.filter-btn:hover { border-color: var(--gold); color: var(--gold); }

.filter-btn.active {
  background: var(--green);
  border-color: var(--green);
  color: var(--cream);
}

.filter-empty {
  text-align: center;
  color: var(--ink-light);
  padding: 40px 0;
  display: none;
}

/* ---------- 新闻列表页 ---------- */
.news-list { max-width: 920px; margin: 0 auto; }

.news-list-item {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 36px;
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
}

.news-list-item .thumb { overflow: hidden; aspect-ratio: 16 / 10; }

.news-list-item .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.news-list-item:hover .thumb img { transform: scale(1.06); }

.news-list-item time {
  font-size: 13px;
  color: var(--gold);
  letter-spacing: 1px;
  display: block;
  margin-bottom: 8px;
}

.news-list-item h2 { font-size: 21px; letter-spacing: 2px; margin-bottom: 12px; }

.news-list-item h2 a:hover { color: var(--gold); }

.news-list-item p { font-size: 14px; color: var(--ink-light); margin-bottom: 14px; }

.text-link {
  font-size: 14px;
  letter-spacing: 2px;
  color: var(--green);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
}

.text-link:hover { color: var(--gold); }

/* ---------- 文章详情 ---------- */
.article-wrap { max-width: 820px; margin: 0 auto; }

.article-head { text-align: center; margin-bottom: 40px; }

.article-head h1 { font-size: 32px; letter-spacing: 3px; margin-bottom: 16px; }

.article-meta { font-size: 13px; color: var(--ink-light); letter-spacing: 1px; }

.article-meta span { margin: 0 10px; }

.article-cover { margin-bottom: 40px; box-shadow: var(--shadow); }

.article-body p {
  margin-bottom: 22px;
  color: var(--ink);
  text-align: justify;
  font-size: 16px;
}

.article-body p:first-of-type::first-letter {
  font-family: var(--serif);
  font-size: 44px;
  line-height: 1;
  color: var(--green);
  float: left;
  margin: 4px 10px 0 0;
}

.article-foot {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- 联系我们 ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.contact-card {
  text-align: center;
  padding: 40px 22px;
  background: var(--white);
  border: 1px solid var(--line);
  transition: var(--transition);
}

.contact-card:hover { border-color: var(--gold); box-shadow: var(--shadow); }

.contact-card .icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
}

.contact-card h3 { font-size: 17px; letter-spacing: 3px; margin-bottom: 8px; }

.contact-card p { font-size: 14px; color: var(--ink-light); }

.contact-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: stretch;
}

.contact-form {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 44px 40px;
}

.contact-form h2 { font-size: 24px; letter-spacing: 3px; margin-bottom: 8px; }

.contact-form .form-tip { font-size: 14px; color: var(--ink-light); margin-bottom: 28px; }

.form-group { margin-bottom: 22px; }

.form-group label {
  display: block;
  font-size: 14px;
  letter-spacing: 2px;
  margin-bottom: 8px;
  color: var(--green-deep);
}

.form-group label em { color: var(--gold); font-style: normal; margin-left: 4px; }

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--line);
  background: var(--cream);
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--white);
}

.form-group textarea { resize: vertical; min-height: 130px; }

.map-placeholder {
  border: 1px dashed var(--gold);
  background: var(--cream-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 420px;
  padding: 40px;
  color: var(--ink-light);
}

.map-placeholder .map-icon { font-size: 44px; font-family: var(--serif); color: var(--gold); margin-bottom: 16px; }

.map-placeholder h3 { font-size: 18px; letter-spacing: 3px; margin-bottom: 8px; }

.map-placeholder p { font-size: 13px; line-height: 2; }

/* ---------- 返回顶部 ---------- */
.back-top {
  position: fixed;
  right: 28px;
  bottom: 32px;
  z-index: 900;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: var(--green);
  color: var(--cream);
  font-size: 18px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.back-top.show { opacity: 1; visibility: visible; transform: translateY(0); }

.back-top:hover { background: var(--gold); }

/* ---------- 滚动渐入动画 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 992px) {
  .product-grid, .news-grid, .craft-steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .philosophy-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-split { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
}

@media (max-width: 768px) {
  /* 汉堡菜单 */
  .nav-toggle { display: block; }

  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(78vw, 320px);
    height: 100vh;
    background: var(--green-deep);
    transition: right 0.4s ease;
    z-index: 1001;
    padding-top: calc(var(--header-h) + 20px);
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.25);
  }

  .main-nav.open { right: 0; }

  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; }

  .main-nav a {
    padding: 16px 32px;
    font-size: 16px;
    color: rgba(247, 243, 234, 0.9) !important;
    border-bottom: 1px solid rgba(247, 243, 234, 0.08);
  }

  .main-nav a::after { display: none; }

  .main-nav a.active, .main-nav a:hover { color: var(--gold) !important; }

  .nav-mask {
    position: fixed;
    inset: 0;
    background: rgba(34, 51, 42, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
  }

  .nav-mask.show { opacity: 1; visibility: visible; }

  /* 布局转单列 */
  .intro-grid, .craft-grid, .feature-row { grid-template-columns: 1fr; gap: 40px; }
  .feature-row.reverse .feature-img { order: 0; }
  .product-grid, .news-grid, .craft-steps, .philosophy-grid, .contact-grid { grid-template-columns: 1fr; }
  .news-list-item { grid-template-columns: 1fr; gap: 18px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }

  /* 轮播自适应 */
  .hero { height: 78vh; min-height: 480px; }
  .hero-caption h1 { font-size: 32px; letter-spacing: 6px; }
  .hero-caption p { font-size: 14px; }
  .hero-arrow { display: none; }
  .hero-prev, .hero-next { display: none; }

  .section { padding: 60px 0; }
  .section-head h2 { font-size: 26px; }
  .page-banner { height: 260px; }
  .page-banner h1 { font-size: 28px; letter-spacing: 5px; }
  .article-head h1 { font-size: 24px; }

  /* 时间线转单侧 */
  .timeline::before { left: 10px; }
  .timeline-item, .timeline-item:nth-child(even) {
    width: 100%;
    margin-left: 0;
    padding: 0 0 40px 40px;
    text-align: left;
  }
  .timeline-item::before, .timeline-item:nth-child(even)::before {
    left: 4px;
    right: auto;
  }

  .contact-form { padding: 32px 24px; }
  .back-top { right: 16px; bottom: 20px; }
}

/* v4 WebP <picture> 包装：透明填充容器，保持原有 img 布局与 hover 效果零变化 */
.thumb picture, .craft-item picture, .feature-img picture, .intro-img picture, .article-cover picture {
  display: block;
  width: 100%;
  height: 100%;
}
.article-cover picture { height: auto; }
