/* ==========================================================================
   OUMAX 大凹包装 · 标签专门站
   黄黑白品牌色 / 单页长滚动 / 大气简约 / 色彩鲜艳
   ========================================================================== */

:root {
  --yellow: #f0b32e;
  --yellow-deep: #d99e1b;
  --yellow-soft: #fdf3da;
  --ink: #111111;
  --ink-2: #3a3a3a;
  --muted: #7d7d7d;
  --muted-2: #a5a5a5;
  --line: #e8e6e1;
  --line-soft: #f0eeea;
  --bg: #ffffff;
  --surface-2: #faf9f7;
  --black: #0d0d0d;
  --danger: #c0392b;
  --ok: #1c7a4c;
  --radius: 14px;
  --radius-l: 20px;
  --shadow: 0 2px 4px rgba(0, 0, 0, .04), 0 18px 40px -18px rgba(0, 0, 0, .18);
  --shadow-l: 0 24px 70px -24px rgba(0, 0, 0, .3);
  --maxw: 1200px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Source Han Sans SC", "Noto Sans SC", -apple-system, BlinkMacSystemFont,
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.25; color: var(--ink); }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }

::selection { background: var(--yellow); color: var(--black); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  transition: box-shadow .3s var(--ease), background .3s var(--ease);
}

.site-header.scrolled {
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 1px 0 var(--line), 0 6px 24px -18px rgba(0, 0, 0, .25);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 24px;
}

/* Logo 始终使用原始文件：不变色、不拉伸、不变形，垫白色底托确保任何背景下可见 */
.brand img {
  height: 42px;
  width: auto;
  object-fit: contain;
  transition: height .25s var(--ease);
}
.site-header.scrolled .brand img { height: 38px; }

/* 深色背景上的 logo 底托（与品牌黄一致，logo 原色呈现） */
.logo-chip {
  display: inline-block;
  background: var(--yellow);
  border-radius: 12px;
  padding: 12px 18px;
  line-height: 0;
}

.nav { display: flex; align-items: center; gap: 4px; }

.nav a {
  position: relative;
  padding: 9px 15px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 520;
  color: var(--ink-2);
  transition: color .2s var(--ease), background .2s var(--ease);
}

.nav a:hover { color: var(--ink); }
.nav a.active { color: var(--ink); background: var(--yellow-soft); font-weight: 640; }

/* 跳转大凹包装官网（包装业务站） */
.nav a.nav-ext { color: var(--ink-2); border: 1px solid var(--line); margin-left: 4px; }
.nav a.nav-ext:hover { color: var(--black); border-color: var(--yellow); background: var(--yellow-soft); }
.nav-ext-arrow { display: inline-block; margin-left: 5px; font-size: 12px; opacity: .75; }

.header-cta { flex-shrink: 0; }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid rgba(255, 255, 255, .4);
  border-radius: 12px;
  background: rgba(255, 255, 255, .08);
  align-items: center; justify-content: center;
}
.site-header.scrolled .nav-toggle { border-color: var(--line); background: #fff; }

.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 17px; height: 1.8px; border-radius: 2px;
  content: ""; position: relative;
  background: #fff; transition: transform .25s var(--ease), opacity .2s var(--ease), background .2s var(--ease);
}
.site-header.scrolled .nav-toggle span { background: var(--ink); }
.nav-toggle span::before { position: absolute; transform: translateY(-5.5px); }
.nav-toggle span::after { position: absolute; transform: translateY(5.5px); }
.site-header.scrolled .nav-toggle span::before, .site-header.scrolled .nav-toggle span::after { background: var(--ink); }
body.nav-open .nav-toggle span { background: transparent !important; }
body.nav-open .nav-toggle span::before { transform: translateY(0) rotate(45deg); }
body.nav-open .nav-toggle span::after { transform: translateY(0) rotate(-45deg); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 14.5px;
  font-weight: 620;
  white-space: nowrap;
  transition: transform .18s var(--ease), background .2s var(--ease),
    border-color .2s var(--ease), box-shadow .2s var(--ease), color .2s var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--yellow);
  color: var(--black);
  box-shadow: 0 12px 26px -12px rgba(240, 179, 46, .8);
}
.btn-primary:hover { background: var(--yellow-deep); }

.btn-dark { background: var(--black); color: #fff; }
.btn-dark:hover { background: #2a2a2a; }

.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .6); }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .1); }

.btn-quiet { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-quiet:hover { border-color: var(--ink); }

.btn-lg { padding: 15px 32px; font-size: 15.5px; }

/* ---------- Hero（Apple 式浅色大图） ---------- */

.hero {
  position: relative;
  min-height: 680px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #faf9f7 100%);
}

.hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 1;
}

.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, .96) 6%, rgba(255, 255, 255, .82) 42%, rgba(255, 255, 255, .35) 75%, rgba(255, 255, 255, .1));
}

.hero-inner { position: relative; z-index: 1; padding: 150px 28px 110px; }

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--yellow);
  color: var(--black);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .2em;
  padding: 7px 16px;
  border-radius: 6px;
  margin-bottom: 28px;
}

.hero-title {
  color: var(--ink);
  font-size: clamp(38px, 5.4vw, 68px);
  font-weight: 800;
  letter-spacing: .04em;
  line-height: 1.22;
  max-width: 18em;
}

.hero-title .hl { color: var(--yellow-deep); }

.hero-lead {
  margin-top: 26px;
  font-size: 17px;
  letter-spacing: .06em;
  color: var(--ink-2);
  max-width: 34em;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }

/* ---------- Section head ---------- */

.section { padding: 96px 0; }
.section-tight { padding: 68px 0; }
.section-alt { background: var(--surface-2); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.section-dark { background: var(--black); }

.sec-head { margin-bottom: 54px; }
.sec-head.center { text-align: center; }

.sec-en {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--yellow-deep);
  margin-bottom: 14px;
}

.sec-en::before { content: ""; width: 34px; height: 3px; background: var(--yellow); border-radius: 2px; }
.sec-head.center .sec-en::after { content: ""; width: 34px; height: 3px; background: var(--yellow); border-radius: 2px; }

.sec-title { font-size: clamp(30px, 3.6vw, 44px); letter-spacing: .03em; }

.sec-lead { margin-top: 16px; font-size: 16px; color: var(--muted); max-width: 44em; }
.sec-head.center .sec-lead { margin-left: auto; margin-right: auto; }

/* ---------- Business cards ---------- */

.biz-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }

.biz-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}

.biz-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }

.biz-card.span-2 { grid-column: span 2; }

.biz-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--line-soft); position: relative; }
.biz-card.span-2 .biz-media { aspect-ratio: 21 / 9; }

.biz-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.biz-card:hover .biz-media img { transform: scale(1.05); }

/* 图片加载失败兜底：品牌黄渐变 + 标签纹理 */
.media-fallback {
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,.12) 0 14px, transparent 14px 28px),
    linear-gradient(135deg, #f7d878 0%, #f0b32e 55%, #b07f14 100%);
}

.biz-idx {
  position: absolute;
  top: 14px; left: 14px;
  background: var(--yellow);
  color: var(--black);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .12em;
  padding: 5px 12px;
  border-radius: 6px;
}

.biz-body { padding: 24px 26px 28px; display: flex; flex-direction: column; flex: 1; }

.biz-en { font-size: 11.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--yellow-deep); }

.biz-name { margin-top: 8px; font-size: 21px; letter-spacing: .03em; }

.biz-desc { margin-top: 10px; font-size: 14.5px; color: var(--muted); flex: 1; }

.biz-points { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }

.biz-points span {
  font-size: 12px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--yellow-soft);
  color: #8a6a12;
  font-weight: 560;
}

/* ---------- Materials ---------- */

.mat-wrap { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 52px; align-items: center; }

.mat-photo { border-radius: var(--radius-l); overflow: hidden; box-shadow: var(--shadow-l); }
.mat-photo img { width: 100%; height: 460px; object-fit: cover; }

.mat-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }

.mat-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.mat-item:hover { border-color: var(--yellow); transform: translateY(-2px); }

.mat-name { font-size: 15.5px; font-weight: 700; display: flex; align-items: center; gap: 9px; }

.mat-name::before {
  content: "";
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--yellow);
  flex-shrink: 0;
}

.mat-desc { margin-top: 6px; font-size: 13px; color: var(--muted); line-height: 1.65; }

/* ---------- Stats ---------- */

.stats-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  text-align: center;
}

.stat-v { font-size: clamp(34px, 3.6vw, 46px); font-weight: 800; color: var(--yellow); letter-spacing: .02em; }
.stat-v small { font-size: .5em; font-weight: 700; margin-left: 2px; }
.stat-l { margin-top: 6px; font-size: 14px; color: rgba(255, 255, 255, .72); letter-spacing: .08em; }

/* ---------- Process ---------- */

.flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }

.flow-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: 30px 26px;
  position: relative;
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.flow-item:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.flow-no {
  font-size: 52px;
  font-weight: 800;
  color: var(--yellow);
  letter-spacing: -.02em;
  line-height: 1;
  opacity: .9;
}

.flow-name { margin-top: 14px; font-size: 18px; letter-spacing: .04em; }
.flow-desc { margin-top: 8px; font-size: 14px; color: var(--muted); }

/* ---------- About ---------- */

.about-wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; align-items: center; }

.about-photo { border-radius: var(--radius-l); overflow: hidden; box-shadow: var(--shadow-l); }
.about-photo img { width: 100%; height: 440px; object-fit: cover; }

.about-text .sec-head { margin-bottom: 22px; }
.about-p { font-size: 15.5px; color: var(--ink-2); margin-top: 14px; text-align: justify; }

.about-vals {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px;
}
.about-vals span {
  background: var(--yellow-soft);
  border: 1px solid #f3ddb0;
  color: #8a6a12;
  font-size: 13.5px;
  font-weight: 620;
  padding: 8px 16px;
  border-radius: 8px;
  letter-spacing: .06em;
}

/* ---------- 标签纸卷计算器入口 ---------- */

.calc-banner {
  display: flex;
  align-items: center;
  gap: 22px;
  background: var(--black);
  border-radius: var(--radius-l);
  padding: 26px 30px;
  margin-bottom: 48px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}

.calc-banner:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 50px -18px rgba(240, 179, 46, .45);
}

.calc-icon {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  border-radius: 18px;
  background: rgba(240, 179, 46, .12);
  display: flex;
  align-items: center;
  justify-content: center;
}

.calc-icon svg { width: 46px; height: 46px; }

.calc-body { display: flex; flex-direction: column; gap: 5px; min-width: 0; }

.calc-name {
  color: var(--yellow);
  font-size: 21px;
  font-weight: 800;
  letter-spacing: .04em;
}

.calc-desc { color: rgba(255, 255, 255, .72); font-size: 14px; }

.calc-open {
  margin-left: auto;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--yellow);
  color: var(--black);
  font-size: 14.5px;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 999px;
  transition: background .2s var(--ease), gap .2s var(--ease);
}

.calc-banner:hover .calc-open { background: #ffcb52; gap: 11px; }

/* ---------- Contact ---------- */

.contact-wrap { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 52px; align-items: start; }

.info-card { background: var(--yellow); color: var(--black); border-radius: var(--radius-l); padding: 38px 36px; }

.info-logo { height: 46px; width: auto; }

.info-card .logo-chip { display: block; width: fit-content; margin: 0 auto 24px; }

.info-row { display: flex; gap: 15px; padding: 16px 0; border-bottom: 1px solid rgba(13, 13, 13, .18); }
.info-row:last-child { border-bottom: none; }

.info-k { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: rgba(13, 13, 13, .72); font-weight: 700; padding-top: 3px; white-space: nowrap; }
.info-v { font-size: 15px; color: var(--black); line-height: 1.7; }

.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l); padding: 38px 36px; }

.form-title { font-size: 21px; letter-spacing: .03em; }
.form-sub { margin-top: 8px; font-size: 13.5px; color: var(--muted); }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; margin-top: 24px; }

.field { display: flex; flex-direction: column; gap: 7px; }
.field-full { grid-column: 1 / -1; }

.field label { font-size: 13px; font-weight: 620; color: var(--ink-2); }
.field label .req { color: var(--danger); }

.field input, .field textarea, .field select {
  font: inherit;
  font-size: 14.5px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--ink);
  width: 100%;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}

.field textarea { min-height: 120px; resize: vertical; line-height: 1.65; }

.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--yellow);
  box-shadow: 0 0 0 3px rgba(240, 179, 46, .2);
}

.form-msg {
  margin-top: 16px;
  padding: 13px 16px;
  border-radius: 10px;
  font-size: 14px;
  display: none;
}
.form-msg.show { display: block; }
.form-msg.ok { background: #fdf3da; color: #8a6a12; border: 1px solid #f3ddb0; }
.form-msg.err { background: #fdecea; color: var(--danger); border: 1px solid #f5c6bd; }

/* ---------- Footer ---------- */

.site-footer { background: var(--yellow); color: rgba(13, 13, 13, .78); padding: 58px 0 30px; }

.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; align-items: start; }

.footer-logo { height: 46px; width: auto; }
.footer-desc { font-size: 14px; line-height: 1.8; max-width: 30em; margin-top: 18px; }

.footer-h { color: var(--black); font-size: 13px; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; margin-bottom: 18px; }

.footer-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; font-size: 14px; }
.footer-list a { color: rgba(13, 13, 13, .78); transition: color .2s var(--ease); }
.footer-list a:hover { color: var(--black); }
.footer-list a.footer-ext { color: var(--black); font-weight: 600; }

/* 标签专用站 → 包装主站 引导 */
.footer-cross { border-left: 3px solid var(--yellow); padding-left: 12px; }
.footer-cross b { font-weight: 650; }
.footer-cross a { color: var(--black); font-weight: 600; border-bottom: 1px solid var(--yellow); }
.footer-cross a:hover { background: var(--yellow-soft); }

/* 备案号 */
.footer-icp a { color: rgba(13, 13, 13, .7); transition: color .2s var(--ease); }
.footer-icp a:hover { color: var(--black); }
.footer-icps { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; }
.footer-police a { display: inline-flex; align-items: center; gap: 4px; }
.police-ico { flex: 0 0 auto; opacity: .75; }

.footer-bottom {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid rgba(13, 13, 13, .22);
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: rgba(13, 13, 13, .6);
}

/* ---------- Reveal ---------- */

/* 渐进增强：仅在 JS 可用时才隐藏（脚本异常时内容依然可见，不会"丢失"） */
.reveal { transition: opacity .7s var(--ease), transform .7s var(--ease); }
html.js .reveal { opacity: 0; transform: translateY(22px); }
html.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Toast ---------- */

.toast-wrap {
  position: fixed; bottom: 28px; left: 50%;
  transform: translateX(-50%);
  z-index: 120;
  display: flex; flex-direction: column; gap: 10px; align-items: center;
  pointer-events: none;
}
.toast {
  background: var(--black); color: #fff;
  padding: 12px 20px; border-radius: 999px;
  font-size: 14px; box-shadow: var(--shadow-l);
  animation: toastIn .3s var(--ease);
  max-width: 90vw;
}
.toast.err { background: var(--danger); }
.toast.ok { background: #14691f; }

@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- Responsive ---------- */

@media (max-width: 1000px) {
  .biz-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .biz-card.span-2 { grid-column: span 2; }
  .mat-wrap, .about-wrap, .contact-wrap { grid-template-columns: 1fr; gap: 36px; }
  .mat-photo img { height: 340px; }
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-band { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .container { padding: 0 20px; }
  .section { padding: 64px 0; }
  .hero { min-height: 540px; }
  .hero-inner { padding: 120px 20px 80px; }
  .nav {
    position: fixed;
    inset: 76px 0 auto 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 20px 20px;
    gap: 2px;
    transform: translateY(-140%);
    transition: transform .35s var(--ease);
    box-shadow: var(--shadow);
    z-index: 55;
  }
  body.nav-open .nav { transform: none; }
  .nav a { padding: 13px 14px; border-radius: 12px; font-size: 15.5px; color: var(--ink) !important; }
  .nav a.active { background: var(--yellow-soft); }
  .nav-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .biz-grid { grid-template-columns: 1fr; }
  .biz-card.span-2 { grid-column: span 1; }
  .biz-card.span-2 .biz-media { aspect-ratio: 16 / 10; }
  .mat-list { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .info-card, .form-card { padding: 28px 22px; }
  .calc-banner { flex-wrap: wrap; gap: 16px; padding: 22px 20px; }
  .calc-icon { width: 58px; height: 58px; }
  .calc-icon svg { width: 38px; height: 38px; }
  .calc-open { margin-left: 0; width: 100%; justify-content: center; }
}
