/* ============================================================
   Sunyee Craft Products Factory — 前端样式
   配色：圣诞红 #b6282e / 金色 #d9a441 / 米白 #faf6ef
   ============================================================ */
:root {
  --red: #b6282e;
  --red-dark: #9c1f24;
  --gold: #d9a441;
  --gold-light: #e8d9b0;
  --cream: #faf6ef;
  --ink: #2b2b2b;
  --gray: #6b6b6b;
  --line: #e7e0d4;
  --white: #ffffff;
  --radius: 12px;
  --shadow: 0 8px 30px rgba(0, 0, 0, .08);
  --font-head: Georgia, "Times New Roman", "Songti SC", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Microsoft YaHei", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-dark); }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.25; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(28px, 4vw, 44px); }
h2 { font-size: clamp(24px, 3vw, 34px); }
h3 { font-size: 20px; }
p { margin: 0 0 1em; }

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

/* ---------- 按钮 ---------- */
.btn {
  display: inline-block; padding: 12px 26px; border-radius: 6px; font-size: 15px;
  font-weight: 600; cursor: pointer; border: 2px solid transparent; transition: all .2s;
  text-align: center; line-height: 1.4;
}
.btn-primary { background: var(--red); color: #fff; border-color: var(--red); }
.btn-primary:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--red); border-color: var(--red); }
.btn-outline:hover { background: var(--red); color: #fff; }
.btn-ghost { background: transparent; color: var(--gray); }
.btn-ghost:hover { color: var(--red); }
.btn-lg { padding: 15px 34px; font-size: 16px; }
.btn-light { background: #fff; color: var(--red); border-color: #fff; }
.btn-light:hover { background: var(--cream); border-color: var(--cream); color: var(--red); }

/* ---------- 头部 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.logo img { height: 52px; width: auto; }
.main-nav { display: flex; gap: 8px; }
.main-nav a {
  color: var(--ink); font-weight: 500; padding: 8px 14px; border-radius: 6px; font-size: 15px;
}
.main-nav a:hover { color: var(--red); }
.main-nav a.active { color: var(--red); background: var(--cream); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.lang-switch {
  border: 1.5px solid var(--red); color: var(--red); padding: 6px 14px; border-radius: 20px;
  font-size: 13px; font-weight: 600; white-space: nowrap;
}
.lang-switch:hover { background: var(--red); color: #fff; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; }

/* ---------- 轮播图 ---------- */
.hero { position: relative; overflow: hidden; }
.hero-slider { position: relative; height: min(72vh, 640px); }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease; }
.hero-slide.active { opacity: 1; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(20,10,10,.72) 0%, rgba(20,10,10,.28) 55%, rgba(20,10,10,.05) 100%);
}
.hero-content {
  position: relative; z-index: 2; max-width: 1200px; margin: 0 auto; padding: 0 20px;
  height: 100%; display: flex; flex-direction: column; justify-content: center; color: #fff;
}
.hero-eyebrow {
  display: inline-block; background: var(--gold); color: #fff; padding: 6px 14px; border-radius: 20px;
  font-size: 13px; letter-spacing: 1px; font-weight: 600; margin-bottom: 18px; width: fit-content;
}
.hero-title { color: #fff; font-size: clamp(30px, 5vw, 56px); margin-bottom: 14px; max-width: 720px; text-shadow: 0 2px 20px rgba(0,0,0,.3); }
.hero-subtitle { font-size: clamp(16px, 2vw, 20px); color: rgba(255,255,255,.92); max-width: 620px; margin-bottom: 28px; }
.hero-dots { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 3; }
.hero-dots button { width: 11px; height: 11px; border-radius: 50%; border: 0; background: rgba(255,255,255,.5); cursor: pointer; padding: 0; }
.hero-dots button.active { background: var(--gold); }

/* ---------- 区块通用 ---------- */
.section { padding: 72px 0; }
.section.alt { background: var(--cream); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 44px; }
.section-title { position: relative; padding-bottom: 16px; }
.section-title::after {
  content: ""; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 56px; height: 3px; background: var(--gold); border-radius: 2px;
}
.section-sub { color: var(--gray); font-size: 16px; }

/* ---------- 分类卡片 ---------- */
.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 22px; }
.category-card {
  position: relative; border-radius: var(--radius); overflow: hidden; background: #fff;
  box-shadow: var(--shadow); display: block; color: var(--ink);
}
.category-card img { width: 100%; height: 200px; object-fit: cover; transition: transform .4s; }
.category-card:hover img { transform: scale(1.06); }
.category-card .cat-name {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 16px 14px;
  background: linear-gradient(transparent, rgba(0,0,0,.72)); color: #fff; font-weight: 600; font-size: 17px;
}

/* ---------- 产品网格 ---------- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 26px; }
.product-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.product-card:hover { transform: translateY(-5px); box-shadow: 0 16px 40px rgba(0,0,0,.12); }
.product-card-img { position: relative; background: #fff; aspect-ratio: 1 / 1; overflow: hidden; }
.product-card-img img { width: 100%; height: 100%; object-fit: contain; padding: 14px; transition: transform .4s; }
.product-card:hover .product-card-img img { transform: scale(1.05); }
.badge {
  position: absolute; top: 12px; left: 12px; background: var(--gold); color: #fff; font-size: 12px;
  font-weight: 700; padding: 4px 10px; border-radius: 4px; letter-spacing: .5px;
}
.product-card-body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-card-title { font-family: var(--font-body); font-size: 17px; font-weight: 600; margin: 0; }
.product-card-title a { color: var(--ink); }
.product-card-title a:hover { color: var(--red); }
.product-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.product-meta .tag {
  font-size: 12px; color: var(--gray); background: var(--cream); padding: 3px 10px; border-radius: 20px;
}
.product-card-foot { margin-top: auto; padding-top: 8px; }

/* ---------- 实力/优势 ---------- */
.strength-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 26px; }
.strength-item { background: #fff; border-radius: var(--radius); padding: 30px 26px; box-shadow: var(--shadow); text-align: center; }
.strength-item .s-icon { font-size: 40px; margin-bottom: 14px; }
.strength-item h3 { font-size: 19px; }
.strength-item p { color: var(--gray); font-size: 14.5px; margin: 0; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 22px; text-align: center; }
.stat .num { font-family: var(--font-head); font-size: 42px; font-weight: 700; color: var(--red); }
.stat .lbl { color: var(--gray); font-size: 14px; }

/* ---------- 工厂实景 ---------- */
.factory-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.factory-item { position: relative; border-radius: var(--radius); overflow: hidden; }
.factory-item img { width: 100%; height: 240px; object-fit: cover; }

/* ---------- 案例 ---------- */
.cases-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 26px; }
.case-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.case-card img { width: 100%; height: 200px; object-fit: cover; }
.case-card .case-body { padding: 20px 22px; }
.case-card .case-country { color: var(--gold); font-weight: 700; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; }

/* ---------- 资讯 ---------- */
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 26px; }
.news-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.news-card img { width: 100%; height: 190px; object-fit: cover; }
.news-card .news-body { padding: 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.news-card .news-date { font-size: 13px; color: var(--gray); }
.news-card h3 { font-size: 18px; margin: 0; }
.news-card h3 a { color: var(--ink); }
.news-card h3 a:hover { color: var(--red); }

/* ---------- CTA 横幅 ---------- */
.cta-band { background: linear-gradient(120deg, var(--red-dark), var(--red)); color: #fff; text-align: center; padding: 64px 20px; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.9); max-width: 620px; margin: 0 auto 26px; }

/* ---------- 面包屑 ---------- */
.breadcrumb { background: var(--cream); padding: 14px 0; font-size: 14px; color: var(--gray); }
.breadcrumb a { color: var(--gray); }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb .sep { margin: 0 8px; color: #c9bda6; }

/* ---------- 页面标题 ---------- */
.page-hero { background: linear-gradient(120deg, #2b1a1a, #4a2323); color: #fff; padding: 60px 20px; text-align: center; }
.page-hero h1 { color: #fff; margin-bottom: 10px; }
.page-hero p { color: rgba(255,255,255,.85); max-width: 640px; margin: 0 auto; }

/* ---------- 筛选栏 ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; background: #fff; padding: 18px 22px; border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 30px; }
.filter-group { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.filter-group .flabel { font-weight: 600; font-size: 14px; margin-right: 4px; color: var(--gray); }
.filter-chip { padding: 7px 16px; border-radius: 20px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); font-size: 14px; cursor: pointer; transition: all .2s; }
.filter-chip:hover { border-color: var(--red); color: var(--red); }
.filter-chip.active { background: var(--red); border-color: var(--red); color: #fff; }
.result-count { margin-left: auto; font-size: 14px; color: var(--gray); }

/* ---------- 产品详情 ---------- */
.product-detail { display: grid; grid-template-columns: 1.05fr 1fr; gap: 44px; align-items: start; }
.gallery-main { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.gallery-main img { width: 100%; height: 460px; object-fit: contain; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 10px; margin-top: 12px; }
.gallery-thumbs img { width: 100%; height: 78px; object-fit: cover; border-radius: 6px; cursor: pointer; border: 2px solid transparent; opacity: .7; transition: all .2s; }
.gallery-thumbs img.active, .gallery-thumbs img:hover { border-color: var(--red); opacity: 1; }
.product-info h1 { font-size: 30px; }
.product-info .subline { color: var(--gray); margin-bottom: 18px; }
.spec-table { width: 100%; border-collapse: collapse; margin: 16px 0 22px; }
.spec-table th, .spec-table td { padding: 11px 12px; border-bottom: 1px solid var(--line); font-size: 14.5px; text-align: left; }
.spec-table th { width: 160px; color: var(--gray); font-weight: 600; background: var(--cream); }
.cert-badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }
.cert-badges .cert { background: #eaf4ec; color: #2e7d32; padding: 6px 14px; border-radius: 20px; font-size: 13px; font-weight: 600; }

/* ---------- 关于我们 ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.about-grid img { border-radius: var(--radius); width: 100%; }
.value-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.value-item { text-align: center; padding: 28px 20px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.value-item .v-num { font-family: var(--font-head); font-size: 30px; color: var(--gold); font-weight: 700; }
.timeline { position: relative; padding-left: 30px; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline-item { position: relative; margin-bottom: 26px; }
.timeline-item::before { content: ""; position: absolute; left: -28px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--gold); }
.timeline-item .year { font-family: var(--font-head); font-weight: 700; color: var(--red); font-size: 18px; }

/* ---------- 联系 ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
.contact-info-card { background: var(--cream); border-radius: var(--radius); padding: 30px; }
.contact-info-card li { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.contact-info-card li:last-child { border-bottom: 0; }
.contact-info-card .ic { color: var(--red); font-weight: 700; margin-right: 10px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.form-control { width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 6px; font-size: 15px; font-family: inherit; background: #fff; transition: border-color .2s; }
.form-control:focus { outline: none; border-color: var(--red); }
textarea.form-control { min-height: 130px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.alert { padding: 14px 18px; border-radius: 6px; font-size: 14.5px; margin-bottom: 18px; }
.alert-success { background: #e8f5e9; color: #2e7d32; }
.alert-error { background: #ffebee; color: #c62828; }
.map { border-radius: var(--radius); overflow: hidden; margin-top: 20px; box-shadow: var(--shadow); }
.map iframe { display: block; }

/* ---------- 资讯详情 ---------- */
.news-detail { max-width: 820px; margin: 0 auto; }
.news-detail img.cover { width: 100%; border-radius: var(--radius); margin-bottom: 24px; }
.news-detail .meta { color: var(--gray); font-size: 14px; margin-bottom: 20px; }
.prose { font-size: 16px; line-height: 1.9; }

/* ---------- 隐私 ---------- */
.privacy-content { max-width: 820px; margin: 0 auto; }
.privacy-content h2 { font-size: 22px; margin-top: 32px; }

/* ---------- 页脚 ---------- */
.site-footer { background: #241616; color: #d8cfc2; padding: 60px 0 0; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; }
.footer-col h4 { color: #fff; font-size: 16px; margin-bottom: 18px; font-family: var(--font-body); }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: #d8cfc2; font-size: 14.5px; }
.footer-col ul li a:hover { color: var(--gold); }
.footer-about p { font-size: 14px; color: #b8ad9e; }
.footer-about img { margin-bottom: 16px; }
.contact-list .ic { color: var(--gold); margin-right: 8px; }
.footer-bottom { border-top: 1px solid #3a2a2a; margin-top: 44px; padding: 20px 0; text-align: center; font-size: 13.5px; color: #9a8f80; }
.footer-bottom p { margin: 0; }

/* ---------- Cookie 弹窗 ---------- */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 999; background: #241616; color: #eee;
  box-shadow: 0 -6px 30px rgba(0,0,0,.2); transform: translateY(100%); transition: transform .4s ease;
}
.cookie-banner.show { transform: translateY(0); }
.cookie-inner { max-width: 1200px; margin: 0 auto; padding: 18px 20px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.cookie-inner p { margin: 0; font-size: 14px; flex: 1 1 380px; color: #cfc5b8; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-actions .btn { padding: 9px 18px; font-size: 14px; }
.cookie-actions .btn-outline { color: #fff; border-color: #fff; }
.cookie-actions .btn-outline:hover { background: #fff; color: var(--red); }
.cookie-actions .btn-ghost { color: #cfc5b8; }

/* ---------- 返回顶部 ---------- */
.back-to-top {
  position: fixed; right: 22px; bottom: 22px; width: 46px; height: 46px; border-radius: 50%;
  background: var(--red); color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 22px; opacity: 0; visibility: hidden; transition: all .3s; z-index: 200; box-shadow: 0 6px 20px rgba(0,0,0,.2);
}
.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--red-dark); color: #fff; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .main-nav {
    position: fixed; top: 74px; left: 0; right: 0; background: #fff; flex-direction: column;
    padding: 16px 20px; gap: 4px; box-shadow: 0 20px 40px rgba(0,0,0,.1);
    transform: translateY(-130%); transition: transform .3s ease; z-index: 99;
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav a { padding: 14px 10px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-toggle { display: flex; }
  .product-detail, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .gallery-main img { height: 320px; }
  .hero-slider { height: 60vh; }
}
@media (max-width: 560px) {
  .section { padding: 52px 0; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .filter-bar { flex-direction: column; align-items: flex-start; }
  .result-count { margin-left: 0; }
  .cookie-inner { flex-direction: column; align-items: stretch; text-align: center; }
  .cookie-actions { justify-content: center; }
}
