/* ===== 上海尚铨包装材料有限公司 官网样式 ===== */

:root {
  --maroon: #7a1f2b;
  --maroon-dark: #5a1620;
  --maroon-darker: #3d0f16;
  --gold: #d9a441;
  --gold-light: #eccb8a;
  --cream: #faf6f0;
  --paper: #f2ead9;
  --charcoal: #2b2420;
  --gray: #6b6259;
  --gray-light: #d8cfc0;
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(43, 36, 32, 0.12);
  --radius: 4px;
  --maxw: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
  color: var(--charcoal);
  background: var(--cream);
  line-height: 1.75;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }

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

ul { list-style: none; }

h1, h2, h3, h4 {
  font-family: "Noto Serif SC", "Songti SC", "SimSun", serif;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* ---------- Top bar ---------- */
.topbar {
  background: var(--maroon-darker);
  color: var(--gray-light);
  font-size: 13px;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 34px;
}
.topbar a { color: var(--gold-light); }
.topbar-links { display: flex; gap: 20px; }

/* ---------- Nav ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 246, 240, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--gray-light);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img { height: 44px; width: auto; }
.brand-text .name {
  font-family: "Noto Serif SC", serif;
  font-size: 19px;
  font-weight: 700;
  color: var(--maroon);
  line-height: 1.2;
}
.brand-text .slogan {
  font-size: 12px;
  color: var(--gray);
  letter-spacing: 0.08em;
}
.nav-links {
  display: flex;
  gap: 8px;
  align-items: center;
}
.nav-links a {
  padding: 10px 18px;
  font-size: 15px;
  font-weight: 500;
  color: var(--charcoal);
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--maroon);
  border-color: var(--gold);
}
.nav-cta {
  background: var(--maroon);
  color: var(--white) !important;
  border-radius: var(--radius);
  padding: 10px 22px !important;
  border-bottom: none !important;
}
.nav-cta:hover { background: var(--maroon-dark); }

.lang-switch {
  border: 1px solid var(--gray-light) !important;
  border-radius: var(--radius);
  padding: 8px 16px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  color: var(--maroon) !important;
  margin-left: 4px;
  letter-spacing: 0.04em;
}
.lang-switch:hover { background: var(--paper); border-color: var(--gold) !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 26px;
  height: 2px;
  background: var(--maroon);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  background: linear-gradient(120deg, rgba(61,15,22,0.88), rgba(90,22,32,0.72)), var(--hero-img, none);
  background-size: cover;
  background-position: center;
  color: var(--white);
}
.hero .container { position: relative; z-index: 2; }
.hero-kicker {
  display: inline-block;
  color: var(--gold-light);
  letter-spacing: 0.3em;
  font-size: 13px;
  margin-bottom: 18px;
  text-transform: uppercase;
}
.hero h1 {
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.25;
  max-width: 820px;
  margin-bottom: 20px;
}
.hero p.lead {
  font-size: 18px;
  max-width: 620px;
  color: #f1e6d8;
  margin-bottom: 34px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.page-hero {
  min-height: 42vh;
}
.page-hero h1 { font-size: clamp(28px, 4vw, 42px); }

/* corrugated divider */
.flute {
  height: 14px;
  width: 100%;
  background-image: repeating-linear-gradient(90deg, var(--gold) 0 10px, transparent 10px 20px);
  opacity: 0.5;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.03em;
  transition: transform 0.2s, background 0.2s, color 0.2s, box-shadow 0.2s;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--gold);
  color: var(--maroon-darker);
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); }
.btn-ghost {
  border-color: rgba(255,255,255,0.6);
  color: var(--white);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-light); transform: translateY(-2px); }
.btn-dark {
  background: var(--maroon);
  color: var(--white);
}
.btn-dark:hover { background: var(--maroon-dark); transform: translateY(-2px); }

/* ---------- Sections ---------- */
section { padding: 96px 0; }
.section-alt { background: var(--paper); }
.section-dark { background: var(--maroon-darker); color: var(--gray-light); }

.section-head { max-width: 680px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker {
  display: block;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.25em;
  font-size: 13px;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.section-head h2 {
  font-size: clamp(26px, 3.4vw, 38px);
  margin-bottom: 16px;
  color: var(--maroon-darker);
}
.section-dark .section-head h2 { color: var(--white); }
.section-head p { color: var(--gray); font-size: 16px; }
.section-dark .section-head p { color: var(--gray-light); }

/* ---------- Grids / Cards ---------- */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }

.stat-card {
  background: var(--white);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 34px 26px;
  box-shadow: var(--shadow);
}
.stat-card .num {
  font-family: "Noto Serif SC", serif;
  font-size: 34px;
  color: var(--maroon);
  font-weight: 700;
}
.stat-card .label { color: var(--gray); font-size: 14px; margin-top: 6px; }

.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 28px;
  box-shadow: var(--shadow);
  transition: transform 0.25s;
}
.feature-card:hover { transform: translateY(-6px); }
.feature-card .icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  display: flex; align-items: center; justify-content: center;
  color: var(--maroon-darker);
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 18px;
}
.feature-card h3 { font-size: 18px; margin-bottom: 10px; color: var(--maroon-darker); }
.feature-card p { color: var(--gray); font-size: 14.5px; }

.photo-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--white);
}
.photo-card img { height: 230px; width: 100%; object-fit: cover; }
.photo-card .cap { padding: 18px 20px; }
.photo-card .cap h3 { font-size: 17px; color: var(--maroon-darker); margin-bottom: 6px; }
.photo-card .cap p { font-size: 13.5px; color: var(--gray); }

/* clients */
.client-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px;
}
.client-strip .logo-box {
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius);
  width: 168px;
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  filter: grayscale(20%);
  transition: filter 0.2s, box-shadow .2s;
}
.client-strip .logo-box:hover { filter: none; box-shadow: var(--shadow); }
.client-strip .logo-box img { max-height: 56px; max-width: 100%; object-fit: contain; }

/* about 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 { color: var(--maroon-darker); margin-bottom: 18px; font-size: clamp(24px,3vw,34px); }
.split p { color: var(--gray); margin-bottom: 14px; }

/* org chart */
.orgchart { text-align: center; }
.org-node {
  display: inline-block;
  background: var(--maroon);
  color: var(--white);
  padding: 14px 30px;
  border-radius: var(--radius);
  font-weight: 700;
  margin: 0 auto 8px;
}
.org-line { width: 2px; height: 28px; background: var(--gray-light); margin: 0 auto; }
.org-row {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.org-dept {
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 16px 16px;
  width: 245px;
  flex: 0 0 245px;
  box-shadow: var(--shadow);
}
.org-dept .head { font-weight: 700; color: var(--maroon-darker); margin-bottom: 4px; }
.org-dept .who { font-size: 13px; color: var(--gray); margin-bottom: 12px; }
.org-dept .subs { font-size: 13px; color: var(--gray); display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.org-dept .subs span { background: var(--paper); border-radius: 3px; padding: 4px 8px; }

/* timeline / equip list */
.equip-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 40px; margin-top: 10px; }
.equip-list li {
  display: flex; align-items: baseline; gap: 10px;
  color: var(--charcoal); font-size: 15.5px; padding: 10px 0;
  border-bottom: 1px dashed var(--gray-light);
}
.equip-list li::before { content: "◆"; color: var(--gold); font-size: 11px; }

/* patents */
.patent-card {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
}
.patent-card img { width: 100%; display: block; border-bottom: 1px solid var(--gray-light); }
.patent-card .cap { padding: 14px 18px; font-size: 14px; color: var(--maroon-darker); font-weight: 600; }

/* CTA band */
.cta-band {
  background: linear-gradient(120deg, var(--maroon-darker), var(--maroon));
  color: var(--white);
  text-align: center;
}
.cta-band h2 { color: var(--white); font-size: clamp(24px,3vw,34px); margin-bottom: 16px; }
.cta-band p { color: var(--gray-light); margin-bottom: 30px; }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 50px; }
.contact-card {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 40px;
}
.contact-item { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--gray-light); }
.contact-item:last-child { border-bottom: none; }
.contact-item .ic {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--paper); color: var(--maroon);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-weight: 700;
}
.contact-item .t1 { font-size: 13px; color: var(--gray); }
.contact-item .t2 { font-size: 16px; font-weight: 600; color: var(--charcoal); }

.form-card {
  background: var(--paper); border-radius: var(--radius); padding: 40px;
}
.form-card h3 { color: var(--maroon-darker); margin-bottom: 22px; font-size: 20px; }
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-size: 13.5px; color: var(--gray); margin-bottom: 6px; }
.form-row input, .form-row textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--gray-light);
  border-radius: var(--radius); font-size: 15px; font-family: inherit; background: var(--white);
}
.form-row textarea { min-height: 110px; resize: vertical; }
.form-note { font-size: 12.5px; color: var(--gray); margin-top: 10px; }

.map-box {
  background: var(--white); border: 1px dashed var(--gray-light); border-radius: var(--radius);
  min-height: 220px; display: flex; align-items: center; justify-content: center;
  color: var(--gray); font-size: 14px; text-align: center; padding: 20px; margin-top: 24px;
}

/* ---------- Footer ---------- */
footer {
  background: var(--maroon-darker);
  color: var(--gray-light);
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 50px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand { display: flex; gap: 12px; margin-bottom: 16px; }
.footer-brand img { height: 40px; }
.footer-brand .name { color: var(--white); font-weight: 700; font-size: 17px; font-family: "Noto Serif SC", serif; }
footer h4 { color: var(--white); font-size: 15px; margin-bottom: 18px; letter-spacing: 0.05em; }
footer p { font-size: 14px; color: var(--gray-light); }
footer ul li { margin-bottom: 10px; font-size: 14px; }
footer ul li a:hover { color: var(--gold-light); }
.footer-bottom {
  text-align: center; padding: 22px 0; font-size: 13px; color: rgba(255,255,255,0.5);
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .topbar { display: none; }
  .nav-links {
    position: absolute; top: 78px; left: 0; right: 0;
    background: var(--cream); flex-direction: column; align-items: stretch;
    padding: 10px 20px 20px; display: none; border-bottom: 1px solid var(--gray-light);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .grid-4, .grid-3, .grid-2, .equip-list, .footer-grid { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
  .brand-text .slogan { display: none; }
}
