/* ============================================================
   Hebei Wanyu Garden Sculpture Engineering Co., Ltd. — 全站样式
   ============================================================ */

:root {
  --ink: #14110e;
  --gold: #bf9b5f;
  --gold-dark: #a68545;
  --bg: #e9e4da;
  --card: #ffffff;
  --muted: #7c756c;
  --line: #ece8e0;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20,17,14,.05), 0 10px 30px rgba(20,17,14,.07);
  --shadow-lg: 0 20px 50px rgba(20,17,14,.15);
  --serif: Georgia, "Times New Roman", "Songti SC", "SimSun", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.2; color: var(--ink); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); text-align: center; margin-bottom: 14px; }
h2::after { content: ""; display: block; width: 48px; height: 2px; background: var(--gold); margin: 14px auto 0; }

/* ===== 顶部导航 ===== */
.site-header {
  background: #17130f;
  border-bottom: 1px solid #2b241b;
  position: sticky; top: 0; z-index: 50;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; padding: 12px 0; gap: 16px; }
.brand {
  font-family: var(--serif); font-size: 1.05rem; font-weight: 700;
  color: #ece2cf; text-decoration: none; letter-spacing: .2px; white-space: normal;
  line-height: 1.3; max-width: 340px;
}
.brand:hover { color: var(--gold); }
.nav { display: flex; gap: 26px; align-items: center; }
.nav a { text-decoration: none; color: #cfc8bd; font-weight: 500; font-size: .95rem; position: relative; padding: 4px 0; }
.nav a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: var(--gold); transition: width .25s ease; }
.nav a:hover::after { width: 100%; }
.nav a:hover { color: var(--gold); }

/* ===== 按钮 ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: 999px; text-decoration: none;
  font-weight: 600; font-size: .95rem; cursor: pointer; border: none;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--ink); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--gold-dark); box-shadow: var(--shadow-lg); }
.btn-whatsapp { background: #25d366; color: #fff; box-shadow: var(--shadow); }
.btn-whatsapp:hover { background: #1eb758; box-shadow: var(--shadow-lg); }

/* ===== 首页 Hero（左文案 + 右轮播大图） ===== */
.hero {
  background: #17130f;
  background-image: radial-gradient(1100px 560px at 78% -8%, rgba(191,155,95,.16), transparent 62%);
  padding: 72px 0;
  overflow: hidden;
}
.hero-inner {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center;
}
.hero-text h1 {
  font-family: var(--serif); font-size: clamp(2rem, 4.5vw, 3.2rem);
  color: #fff; font-weight: 700; letter-spacing: .5px; line-height: 1.15; margin-bottom: 20px;
}
.hero-text .lead { color: rgba(255,255,255,.82); font-size: 1.08rem; max-width: 520px; margin-bottom: 32px; }
.hero-text .cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-media {
  position: relative; width: 100%; max-width: 480px; justify-self: center;
  aspect-ratio: 3 / 4; max-height: 620px;
  border-radius: 18px; overflow: hidden;
  border: 1px solid #33291d; box-shadow: var(--shadow-lg);
  background: #0f0d0a;
}
.hero-slide {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  opacity: 0; transition: opacity .8s ease;
}
.hero-slide.active { opacity: 1; }

/* ===== 通用区块 ===== */
.section { padding: 76px 0; }
.section-alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section .sub { text-align: center; color: var(--muted); margin: -6px 0 36px; font-size: 1rem; }

/* ===== 分类 / 特点卡片（无图标，金色细线） ===== */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 22px; }
.cat-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 36px 26px; text-align: center; text-decoration: none; color: var(--ink);
  box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.cat-img { aspect-ratio: 16 / 10; border-radius: 8px; overflow: hidden; margin-bottom: 16px; }
.cat-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.cat-card:hover .cat-img img { transform: scale(1.06); }
.cat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--gold); }
.cat-card h3 { font-size: 1.22rem; margin-bottom: 8px; color: var(--gold-dark); }
.cat-card p { color: var(--muted); font-size: .94rem; }
.cat-card .link { display: block; margin-top: 14px; color: var(--gold-dark); font-weight: 600; font-size: .9rem; }

/* ===== 产品卡片网格 ===== */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 24px; }
.product-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease;
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.product-img { position: relative; aspect-ratio: 4 / 3; background: #efece6; overflow: hidden; }
.product-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.product-card:hover .product-img img { transform: scale(1.06); }
.img-fallback { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; color: var(--muted); font-size: .9rem; }
.product-info { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-info h3 { font-size: 1.1rem; color: var(--ink); }
.product-info p { color: var(--muted); font-size: .9rem; flex: 1; }
.size { color: var(--muted); font-size: .8rem; letter-spacing: .3px; text-transform: uppercase; }
.price { font-family: var(--serif); font-weight: 700; color: var(--gold-dark); font-size: 1.15rem; }
.price.muted { color: var(--muted); font-family: var(--sans); font-weight: 500; font-size: .9rem; }
.price em.exw { font-style: normal; font-family: var(--sans); font-size: .7rem; color: var(--muted); font-weight: 500; }
.product-info .btn { justify-content: center; margin-top: 4px; }

/* ===== 分类筛选按钮 ===== */
.filter-bar { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 36px; }
.filter-btn {
  padding: 9px 20px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; cursor: pointer; font-weight: 600; color: var(--ink); transition: all .2s ease;
}
.filter-btn:hover { border-color: var(--gold); color: var(--gold-dark); }
.filter-btn.active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ===== 正文 ===== */
.prose { max-width: 760px; margin: 0 auto; }
.prose h1 { margin-bottom: 20px; }
.prose h2 { text-align: left; margin: 34px 0 12px; font-size: 1.5rem; }
.prose h3 { color: var(--ink); margin: 20px 0 8px; font-size: 1.1rem; }
.prose p { margin-bottom: 15px; color: var(--muted); }

/* ===== 联系卡片 ===== */
.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; margin: 34px 0; }
.contact-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 24px; text-align: center; text-decoration: none; color: var(--ink);
  box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease;
}
.contact-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.contact-card h3 { color: var(--ink); margin: 6px 0 4px; }
.contact-card .value { color: var(--muted); font-size: .95rem; }

/* ===== 全球项目画廊 ===== */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 18px; }
.project-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
}
.project-img { aspect-ratio: 4 / 3; background: #efece6; overflow: hidden; }
.project-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.project-card:hover .project-img img { transform: scale(1.06); }
.project-country { padding: 12px 14px; font-family: var(--serif); font-weight: 600; color: var(--ink); font-size: .95rem; text-align: center; }

/* ===== 图库分组 ===== */
.gallery-group { scroll-margin-top: 90px; }
.gallery-group h3 { font-family: var(--serif); font-size: 1.3rem; margin: 36px 0 16px; color: var(--ink); }
.gallery-item { aspect-ratio: 1 / 1; background: #efece6; border-radius: 10px; overflow: hidden; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.gallery-item:hover img { transform: scale(1.05); }

/* ===== 证书/公司照片 ===== */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; margin: 24px 0; }
.photo-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); display: block; }

/* ===== 页脚 ===== */
.site-footer { background: #17130f; color: #cfc8bd; padding: 56px 0 24px; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 28px; }
.site-footer .brand { color: #fff; }
.site-footer .muted { color: #8f877b; }
.footer-contact { display: flex; flex-direction: column; gap: 10px; }
.footer-contact a { color: #cfc8bd; text-decoration: none; }
.footer-contact a:hover { color: #25d366; }
.copyright { text-align: center; color: #6f685d; font-size: .84rem; margin-top: 30px; }

/* ===== 响应式 ===== */
@media (max-width: 720px) {
  .header-inner { flex-wrap: wrap; height: auto; padding: 12px 0; }
  .nav { order: 3; width: 100%; justify-content: center; gap: 18px; flex-wrap: wrap; }
  .hero { padding: 44px 0; }
  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero-media { max-width: 360px; }
  .section { padding: 52px 0; }
}

/* ===== 灯箱 ===== */
.product-img { cursor: zoom-in; }
.project-card { cursor: pointer; }
.gallery-item { cursor: zoom-in; }
.lightbox { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox-backdrop { position: absolute; inset: 0; background: rgba(12,10,8,.88); }
.lightbox-close {
  position: absolute; top: 14px; right: 20px; z-index: 3;
  font-size: 40px; line-height: 1; background: none; border: none; color: #fff; cursor: pointer;
}
.lightbox-close:hover { color: var(--gold); }
.lightbox-body {
  position: relative; z-index: 2; max-width: 92vw; max-height: 88vh; overflow: auto;
  background: #fff; border-radius: 12px; padding: 18px;
}
.lightbox-body img { max-width: 100%; max-height: 76vh; display: block; margin: 0 auto; border-radius: 6px; }
.lightbox-text { margin-top: 16px; text-align: center; }
.lightbox-text h3 { font-family: var(--serif); font-size: 1.4rem; margin-bottom: 8px; }
.lightbox-text p { color: var(--muted); max-width: 620px; margin: 0 auto; }

/* ===== 图库目录 ===== */
.gallery-toc {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 34px;
  position: sticky; top: 78px; z-index: 20; background: rgba(233, 228, 218, .8); backdrop-filter: blur(8px); padding: 12px; border-radius: 12px;
}
.gallery-toc a {
  padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff;
  text-decoration: none; color: var(--ink); font-weight: 600; font-size: .9rem;
}
.gallery-toc a:hover { border-color: var(--gold); color: var(--gold-dark); }

/* ===== 联系页 ===== */
.contact-hero { text-align: center; padding: 10px 0 28px; }
.contact-hero h1 { font-size: 2.1rem; margin-bottom: 10px; }
.contact-form { max-width: 560px; margin: 34px auto 0; }
.contact-form label { display: block; margin: 16px 0 6px; font-weight: 600; font-size: .9rem; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  font-size: .95rem; font-family: var(--sans); background: #fff;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--gold); }
.contact-form textarea { min-height: 120px; resize: vertical; }

/* ===== 工厂视频 ===== */
.video-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin: 20px 0; }
.video-grid video { width: 100%; border-radius: 12px; background: #000; aspect-ratio: 16 / 9; object-fit: cover; box-shadow: var(--shadow); }
@media (max-width: 640px) {
  .video-grid { grid-template-columns: 1fr; }
}

/* ===== 页脚法务链接 ===== */
.legal { text-align: center; margin-top: 10px; font-size: .8rem; color: #8f877b; }
.legal a { color: #8f877b; text-decoration: none; margin: 0 8px; }
.legal a:hover { color: var(--gold); }

/* ===== 汉堡菜单（全局） ===== */
.menu-toggle { display: flex; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.menu-toggle span { width: 24px; height: 2px; background: #cfc8bd; border-radius: 2px; transition: .2s; }
.menu-toggle:hover span { background: var(--gold); }
.menu-overlay { position: fixed; inset: 0; z-index: 300; background: rgba(20,17,14,.97); display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: .3s; overflow: auto; }
.menu-overlay.open { opacity: 1; visibility: visible; }
.menu-close { position: absolute; top: 18px; right: 26px; font-size: 44px; line-height: 1; background: none; border: none; color: #fff; cursor: pointer; z-index: 2; }
.menu-close:hover { color: var(--gold); }
.menu-links { text-align: center; padding: 60px 20px; max-width: 720px; width: 100%; }
.menu-group { display: flex; flex-direction: column; gap: 14px; margin-bottom: 30px; }
.menu-group a { color: #ece2cf; font-family: var(--serif); font-size: 1.7rem; text-decoration: none; }
.menu-group a:hover { color: var(--gold); }
.menu-label { display: block; color: var(--gold); font-size: .8rem; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 12px; }
.menu-cats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 30px; }
.menu-cats a { color: #cfc8bd; text-decoration: none; padding: 8px; border: 1px solid #3a322a; border-radius: 8px; font-size: .9rem; }
.menu-cats a:hover { border-color: var(--gold); color: var(--gold); }
.menu-contact { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ===== 页脚导航 ===== */
.footer-nav { display: flex; gap: 48px; flex-wrap: wrap; }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col h4 { color: #fff; font-family: var(--sans); font-size: .9rem; margin-bottom: 4px; }
.footer-col a { color: #8f877b; text-decoration: none; font-size: .88rem; }
.footer-col a:hover { color: var(--gold); }
