:root {
  --bg: #fbf8f1;
  --bg-alt: #f3efe4;
  --surface: #ffffff;
  --ink: #2c3330;
  --ink-soft: #5d6662;
  --line: #e4ded0;
  --green: #4f5f52;
  --green-dark: #3b4a3e;
  --slate: #7d8ea4;
  --slate-dark: #5b6c82;
  --yellow: #f2c200;
  --prod-bg: #dfe7f0; /* 产品图统一底色（浅蓝），与 images/p-*.jpg 底色一致 */
  --radius: 10px;
  --shadow: 0 6px 24px rgba(40, 50, 45, .08);
  --max: 1180px;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Hiragino Sans", "Yu Gothic", system-ui, sans-serif;
}
:lang(ja) { --font: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", "Noto Sans JP", system-ui, sans-serif; }
:lang(en) { --font: "Segoe UI", "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 16px; line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--slate-dark); }
h1, h2, h3 { line-height: 1.35; margin: 0 0 .5em; font-weight: 700; }
p { margin: 0 0 1em; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand img { height: 40px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-size: 19px; font-weight: 700; letter-spacing: .04em; color: var(--green-dark); }
.brand-sub { font-size: 10.5px; color: var(--ink-soft); letter-spacing: .06em; text-transform: uppercase; }
.nav { margin-left: auto; display: flex; gap: 4px; }
.nav a {
  padding: 8px 14px; border-radius: 6px; color: var(--ink); font-size: 15px; font-weight: 500;
}
.nav a:hover { background: var(--bg-alt); color: var(--green-dark); }
.nav a.active { color: var(--green-dark); box-shadow: inset 0 -2px 0 var(--yellow); border-radius: 0; }
.lang-switch { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.lang-switch button {
  border: 0; background: transparent; padding: 5px 11px; font: inherit; font-size: 13px;
  color: var(--ink-soft); cursor: pointer;
}
.lang-switch button.on { background: var(--green); color: #fff; }
.menu-toggle {
  display: none; margin-left: auto; border: 0; background: none; padding: 8px; cursor: pointer;
}
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 560px; display: flex; align-items: center; color: #fff; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background: center/cover no-repeat; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(30, 40, 34, .9) 0%, rgba(30, 40, 34, .72) 50%, rgba(30, 40, 34, .3) 100%);
}
.hero h1, .hero p { text-shadow: 0 2px 10px rgba(0, 0, 0, .35); }
.hero .container { position: relative; z-index: 1; width: 100%; }
.hero-eyebrow { display: inline-block; font-size: 13px; letter-spacing: .2em; color: var(--yellow); margin-bottom: 14px; text-transform: uppercase; }
.hero h1 { font-size: clamp(30px, 5vw, 52px); letter-spacing: .04em; max-width: 680px; }
.hero p { font-size: 18px; max-width: 560px; opacity: .92; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn {
  display: inline-block; padding: 12px 26px; border-radius: 6px; font-weight: 600; font-size: 15px;
  background: var(--yellow); color: #2c2a1c; border: 2px solid var(--yellow);
}
.btn:hover { background: #ffd31f; color: #2c2a1c; }
.btn.ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); }
.btn.ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.btn.dark { background: var(--green); border-color: var(--green); color: #fff; }
.btn.dark:hover { background: var(--green-dark); }

.page-hero { position: relative; color: #fff; padding: 88px 0 72px; overflow: hidden; }
.page-hero .hero-bg { opacity: 1; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(30, 40, 34, .88), rgba(30, 40, 34, .55)); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 8px; }
.page-hero p { opacity: .9; max-width: 640px; margin: 0; }
/* 纯色页头（产品、联系页） */
.page-hero.plain { background: var(--green-dark); padding: 52px 0 46px; }
.page-hero.plain::after { display: none; }
/* 产品页质量说明（无图片，居中） */
.quality-box { max-width: 820px; text-align: center; }
.quality-box .kicker { font-size: 12px; letter-spacing: .22em; color: var(--slate-dark); text-transform: uppercase; }
.quality-box h2 { font-size: clamp(22px, 2.6vw, 30px); color: var(--green-dark); }
.quality-box .btns { justify-content: center; }
@media (min-width: 1000px) { .quality-box { max-width: 1100px; } .quality-box p { white-space: nowrap; } }
/* 生产实力一行显示（宽屏） */
@media (min-width: 900px) { .section-head p.oneline { white-space: nowrap; margin-left: -200px; margin-right: -200px; } }
/* 左文字、右图片的页头：图片完整可见 */
.page-hero.split { background: var(--green-dark); min-height: 340px; display: flex; align-items: center; }
.page-hero.split .hero-bg { left: 44%; }
.page-hero.split::after { background: linear-gradient(90deg, var(--green-dark) 0%, var(--green-dark) 44%, rgba(59, 74, 62, .5) 46%, rgba(59, 74, 62, 0) 50%); }
.page-hero.split .container { width: 100%; }
.page-hero.split p { max-width: 460px; }
@media (max-width: 860px) {
  .page-hero.split .hero-bg { left: 0; }
  .page-hero.split::after { background: rgba(30, 40, 34, .62); }
  .page-hero.split p { max-width: none; }
}

/* ---------- sections ---------- */
section { padding: 84px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-head .kicker { font-size: 12px; letter-spacing: .22em; color: var(--slate-dark); text-transform: uppercase; }
.section-head h2 { font-size: clamp(24px, 3vw, 34px); color: var(--green-dark); margin-top: 6px; }
.section-head h2::after { content: ""; display: block; width: 44px; height: 3px; background: var(--yellow); margin: 14px auto 0; }
.section-head p { color: var(--ink-soft); margin-top: 14px; }

/* stats */
.stats { background: var(--green); color: #fff; padding: 44px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-num { font-size: clamp(30px, 4vw, 42px); font-weight: 700; color: var(--yellow); line-height: 1.1; }
.stat-num small { font-size: .45em; margin-left: 3px; color: #fff; font-weight: 500; }
.stat-label { font-size: 14px; opacity: .88; margin-top: 6px; }

/* category cards */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.cat-card {
  background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  color: var(--ink); display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(40, 50, 45, .14); color: var(--ink); }
.cat-card .img { aspect-ratio: 4 / 3; background: var(--prod-bg) center/contain no-repeat; }
.cat-card .body { padding: 18px 20px 22px; }
.cat-card h3 { font-size: 18px; color: var(--green-dark); margin-bottom: 6px; }
.cat-card p { font-size: 14px; color: var(--ink-soft); margin: 0; }
.more { font-size: 14px; font-weight: 600; color: var(--slate-dark); margin-top: 10px; display: inline-block; }

/* split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); }
.split h2 { font-size: clamp(22px, 2.6vw, 30px); color: var(--green-dark); }
.split .kicker { font-size: 12px; letter-spacing: .22em; color: var(--slate-dark); text-transform: uppercase; }
.check-list { list-style: none; padding: 0; margin: 18px 0 0; }
.check-list li { position: relative; padding-left: 26px; margin-bottom: 10px; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .62em; width: 12px; height: 12px; border-radius: 3px;
  background: var(--yellow); transform: rotate(45deg) scale(.7);
}

/* notice */
.notice {
  display: flex; gap: 26px; align-items: flex-start;
  background: var(--green-dark); color: #fff;
  border: 3px solid var(--yellow); border-radius: 14px; padding: 32px 36px;
  box-shadow: 0 14px 40px rgba(40, 50, 45, .22);
  background-image: repeating-linear-gradient(135deg, rgba(242, 194, 0, .07) 0 14px, transparent 14px 28px);
}
.notice-icon {
  flex: none; width: 64px; height: 64px; border-radius: 50%; background: var(--yellow); color: #2c2a1c;
  display: grid; place-items: center; font-weight: 900; font-size: 34px;
  box-shadow: 0 0 0 8px rgba(242, 194, 0, .22);
}
.notice h3 { font-size: clamp(20px, 2.4vw, 26px); color: var(--yellow); margin-bottom: 10px; letter-spacing: .04em; }
.notice p { margin: 0; color: #eef1ec; font-size: 16px; line-height: 1.8; }
.notice p + p { margin-top: 10px; }
.notice p.warn { color: #fff; font-weight: 700; background: rgba(214, 69, 50, .9); display: inline-block; padding: 6px 14px; border-radius: 6px; }
.tm { font-weight: 800; color: var(--yellow); font-size: 1.08em; }
.notice-band { padding: 0; margin-top: -1px; }
.notice-band .container { padding-top: 48px; padding-bottom: 8px; }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery figure { margin: 0; background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery figcaption { padding: 10px 14px; font-size: 14px; color: var(--ink-soft); }
.gallery .wide { grid-column: span 2; }
.gallery .wide img { aspect-ratio: auto; height: 100%; max-height: 330px; }

/* timeline */
.timeline { position: relative; max-width: 820px; margin: 0 auto; padding-left: 36px; }
.timeline::before { content: ""; position: absolute; left: 10px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.tl-item { position: relative; margin-bottom: 30px; }
.tl-item::before {
  content: ""; position: absolute; left: -32px; top: 6px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--bg); border: 3px solid var(--slate);
}
.tl-item.hl::before { border-color: var(--yellow); background: var(--yellow); }
.tl-year { font-weight: 700; color: var(--slate-dark); font-size: 15px; }
.tl-item h3 { font-size: 17px; margin: 2px 0 4px; color: var(--green-dark); }
.tl-item p { margin: 0; color: var(--ink-soft); font-size: 15px; }

/* culture */
.culture { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.culture-item { background: var(--surface); border-radius: var(--radius); padding: 26px 22px; box-shadow: var(--shadow); border-top: 3px solid var(--green); }
.culture-item .big { font-size: 26px; font-weight: 700; color: var(--green-dark); letter-spacing: .1em; }
.culture-item .en { font-size: 12px; letter-spacing: .16em; color: var(--slate-dark); text-transform: uppercase; }
.culture-item p { font-size: 14px; color: var(--ink-soft); margin: 10px 0 0; }

/* products */
.filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 36px; }
.filters button {
  border: 1px solid var(--line); background: var(--surface); padding: 8px 18px; border-radius: 999px;
  font: inherit; font-size: 14px; cursor: pointer; color: var(--ink);
}
.filters button:hover { border-color: var(--slate); }
.filters button.on { background: var(--green); border-color: var(--green); color: #fff; }
.cat-intro { max-width: 760px; margin: -12px auto 32px; text-align: center; color: var(--ink-soft); font-size: 15px; }
.prod-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.prod {
  background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  display: flex; flex-direction: column; cursor: pointer; transition: transform .2s; border: 0; padding: 0;
  font: inherit; color: inherit; text-align: left;
}
.prod:hover { transform: translateY(-3px); }
.prod .pimg { aspect-ratio: 1 / 1; background: var(--prod-bg); display: grid; place-items: center; overflow: hidden; }
.prod .pimg img { width: 100%; height: 100%; object-fit: contain; }
.prod .pbody { padding: 14px 16px 16px; border-top: 1px solid var(--line); flex: 1; }
.prod .code { font-size: 12px; color: var(--slate-dark); font-weight: 700; letter-spacing: .04em; }
.prod .pname { font-size: 15px; font-weight: 600; margin: 2px 0 6px; line-height: 1.45; }
.prod .pmeta { font-size: 12.5px; color: var(--ink-soft); line-height: 1.55; }
.badge { display: inline-block; font-size: 11px; background: var(--yellow); color: #3a3200; padding: 1px 8px; border-radius: 4px; margin-top: 6px; font-weight: 600; }

.modal { position: fixed; inset: 0; background: rgba(20, 26, 22, .66); display: none; align-items: center; justify-content: center; z-index: 100; padding: 20px; }
.modal.open { display: flex; }
.modal-box { background: var(--surface); border-radius: 12px; max-width: 860px; width: 100%; max-height: 92vh; overflow: auto; display: grid; grid-template-columns: 1.1fr 1fr; position: relative; }
.modal-box img { width: 100%; height: 100%; object-fit: contain; background: var(--prod-bg); }
.modal-info { padding: 32px 28px; }
.modal-info h3 { font-size: 22px; color: var(--green-dark); }
.spec { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 12px; }
.spec th, .spec td { text-align: left; padding: 9px 4px; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec th { width: 34%; color: var(--ink-soft); font-weight: 500; }
.modal-close { position: absolute; top: 10px; right: 12px; border: 0; background: rgba(255, 255, 255, .9); width: 36px; height: 36px; border-radius: 50%; font-size: 22px; cursor: pointer; line-height: 1; }

/* contact */
.contact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.contact-card { background: var(--surface); border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow); }
.contact-card .ic { width: 44px; height: 44px; border-radius: 10px; background: var(--bg-alt); color: var(--green); display: grid; place-items: center; margin-bottom: 14px; }
.contact-card .ic svg { width: 22px; height: 22px; }
.contact-card h3 { font-size: 15px; color: var(--ink-soft); font-weight: 500; margin-bottom: 4px; }
.contact-card .val { font-size: 18px; font-weight: 600; color: var(--ink); word-break: break-word; }
.contact-card .val a { color: var(--ink); }
.contact-card .sub { font-size: 14px; color: var(--ink-soft); margin-top: 6px; }
.address-box { margin-top: 28px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; }
.address-box img { width: 100%; height: 100%; object-fit: cover; min-height: 280px; }
.address-box .inner { padding: 32px 30px; }
.address-box h3 { color: var(--green-dark); font-size: 20px; }

/* footer */
.site-footer { background: #2f3a33; color: rgba(255, 255, 255, .78); padding: 56px 0 24px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.4fr; gap: 40px; }
.site-footer h4 { color: #fff; font-size: 15px; margin: 0 0 14px; }
.site-footer a { color: rgba(255, 255, 255, .78); }
.site-footer a:hover { color: var(--yellow); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-brand img { height: 38px; background: #fff; border-radius: 6px; padding: 4px 6px; }
.footer-brand b { color: #fff; font-size: 17px; }
.copyright { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 40px; padding-top: 18px; font-size: 13px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .cat-grid, .prod-grid { grid-template-columns: repeat(3, 1fr); }
  .culture { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px 16px 16px;
  }
  .nav.open { display: flex; }
  .nav a.active { box-shadow: none; background: var(--bg-alt); border-radius: 6px; }
  .header-inner { gap: 12px; }
  .lang-switch { order: 3; }
  .menu-toggle { order: 4; margin-left: 0; }
  .brand { margin-right: auto; }
  .split, .address-box { grid-template-columns: 1fr; gap: 32px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-grid, .prod-grid, .gallery, .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery .wide { grid-column: span 2; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .modal-box { grid-template-columns: 1fr; }
  .modal-box img { max-height: 46vh; }
  section { padding: 60px 0; }
  .hero { min-height: 480px; }
}
@media (max-width: 520px) {
  .container { padding: 0 16px; }
  .brand-sub { display: none; }
  .brand-name { font-size: 16px; }
  .brand img { height: 32px; }
  .lang-switch button { padding: 4px 8px; font-size: 12px; }
  .cat-grid, .gallery, .contact-grid, .culture { grid-template-columns: 1fr; }
  .gallery .wide { grid-column: auto; }
  .prod-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .prod .pbody { padding: 10px 12px 12px; }
  .notice { flex-direction: column; padding: 20px; }
}
