﻿/* 苏州新升源材料科技有限公司 - 企业官网 */
:root {
  --brand: #0b6e4f;
  --brand-dark: #08543c;
  --brand-light: #e8f6f0;
  --accent: #1f9d6a;
  --ink: #17211c;
  --muted: #5b6b63;
  --line: #e4ece8;
  --bg: #f7faf8;
  --card: #ffffff;
  --warn: #c9891a;
  --shadow: 0 12px 40px rgba(11, 40, 28, 0.08);
  --radius: 18px;
  --max: 1160px;
  --header-h: 76px;
  --font: "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea { font: inherit; }
.container { width: min(var(--max), calc(100% - 2rem)); margin: 0 auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

/* Top bar */
.topbar {
  background: linear-gradient(90deg, #064433, #0b6e4f 55%, #12855f);
  color: #eaf7f1;
  font-size: 0.9rem;
}
.topbar .container {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: 0.55rem 0; flex-wrap: wrap;
}
.topbar a { color: #fff; opacity: 0.95; }
.topbar a:hover { opacity: 1; text-decoration: underline; }
.topbar-right { display: flex; gap: 1.25rem; flex-wrap: wrap; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(11,110,79,0.08);
}
.nav-wrap {
  min-height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand {
  display: flex; align-items: center; gap: 0.75rem; min-width: 0;
}
.brand img {
  width: auto;
  height: 42px;
  max-width: 168px;
  object-fit: contain;
  object-position: left center;
  border-radius: 8px;
  background: transparent;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: 1.05rem; color: var(--brand-dark); letter-spacing: 0.02em; }
.brand-text span { font-size: 0.78rem; color: var(--muted); }

.nav {
  display: flex; align-items: center; gap: 0.25rem;
}
.nav a {
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  color: #2a3a33;
  font-weight: 600;
  font-size: 0.95rem;
  transition: 0.2s ease;
}
.nav a:hover, .nav a.active {
  background: var(--brand-light);
  color: var(--brand-dark);
}
.nav .cta {
  margin-left: 0.4rem;
  background: var(--brand);
  color: #fff !important;
  box-shadow: 0 8px 20px rgba(11,110,79,0.22);
}
.nav .cta:hover { background: var(--brand-dark); }

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  width: 44px; height: 44px;
  cursor: pointer;
  align-items: center; justify-content: center;
}
.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block; width: 18px; height: 2px; background: var(--ink); position: relative;
}
.menu-toggle span::before, .menu-toggle span::after {
  content: ""; position: absolute; left: 0;
}
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 15%, rgba(31,157,106,0.18), transparent 30%),
    linear-gradient(135deg, #06291f 0%, #0b6e4f 48%, #146b54 100%);
  color: #fff;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
  padding: 4.5rem 0 4rem;
}
.hero-kicker {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  font-size: 0.88rem;
  margin-bottom: 1rem;
}
.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.2;
  letter-spacing: 0.01em;
}
.hero p {
  margin: 0 0 1.5rem;
  color: rgba(255,255,255,0.88);
  font-size: 1.05rem;
  max-width: 36rem;
}
.hero-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  border: none;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s ease;
}
.btn-primary { background: #fff; color: var(--brand-dark); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(0,0,0,0.15); }
.btn-ghost {
  background: transparent; color: #fff;
  border: 1px solid rgba(255,255,255,0.35);
}
.btn-ghost:hover { background: rgba(255,255,255,0.1); }
.btn-brand { background: var(--brand); color: #fff; }
.btn-brand:hover { background: var(--brand-dark); }
.btn-outline {
  background: #fff; color: var(--brand-dark);
  border: 1px solid rgba(11,110,79,0.2);
}
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }

.hero-card {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 24px;
  padding: 1rem;
  box-shadow: 0 20px 50px rgba(0,0,0,0.18);
  backdrop-filter: blur(8px);
}
.hero-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 1920 / 650;
  max-height: 280px;
  object-fit: cover;
  object-position: center;
  border-radius: 18px;
  background: #fff;
}
.hero-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem;
  margin-top: 0.9rem;
}
.hero-stats div {
  background: rgba(255,255,255,0.1);
  border-radius: 14px;
  padding: 0.75rem;
  text-align: center;
}
.hero-stats strong { display: block; font-size: 1.2rem; }
.hero-stats span { font-size: 0.78rem; color: rgba(255,255,255,0.8); }

/* Sections */
.section { padding: 4.2rem 0; }
.section-head {
  display: flex; justify-content: space-between; align-items: end;
  gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap;
}
.section-head h2 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.6rem, 2.5vw, 2.1rem);
}
.section-head p { margin: 0; color: var(--muted); max-width: 38rem; }
.eyebrow {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.cards-4, .cards-3, .cards-2 {
  display: grid; gap: 1.2rem;
}
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(11,40,28,0.12); }
.card .thumb {
  aspect-ratio: 1 / 1;
  background: linear-gradient(180deg, #f5faf7, #eaf4ef);
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 0.85rem;
}
.card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
.card .body { padding: 1.15rem 1.2rem 1.35rem; }
.card h3 { margin: 0 0 0.45rem; font-size: 1.05rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.card .meta {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 0.9rem; color: var(--brand); font-weight: 700; font-size: 0.9rem;
}
.tag {
  display: inline-flex;
  background: var(--brand-light);
  color: var(--brand-dark);
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
}

.feature {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 2rem; align-items: center;
}
.feature-copy h2 { margin: 0.2rem 0 0.9rem; font-size: clamp(1.6rem, 2.5vw, 2.2rem); }
.feature-copy p { color: var(--muted); margin: 0 0 1rem; }
.value-list { display: grid; gap: 0.8rem; margin: 1.2rem 0 0; padding: 0; list-style: none; }
.value-list li {
  display: grid; grid-template-columns: 40px 1fr; gap: 0.8rem; align-items: start;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 0.9rem 1rem;
}
.value-list .icon {
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--brand-light); color: var(--brand-dark); font-weight: 800;
}
.feature-visual {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  min-height: 420px;
  max-height: 560px;
  background: linear-gradient(180deg, #eef7f2, #dcefe5);
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
}
.feature-visual img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  max-height: 560px;
  object-fit: cover;
  object-position: center top;
}
.feature-badge {
  position: absolute; left: 1rem; bottom: 1rem;
  background: rgba(255,255,255,0.95);
  border-radius: 16px; padding: 0.9rem 1rem;
  box-shadow: var(--shadow); max-width: 16rem;
}
.feature-badge strong { display: block; color: var(--brand-dark); }

/* Category chips */
.chips { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1.4rem; }
.chip {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  border-radius: 999px;
  padding: 0.5rem 0.95rem;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: 0.2s ease;
}
.chip:hover, .chip.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

/* Page hero */
.page-hero {
  background:
    linear-gradient(120deg, rgba(6,41,31,0.88), rgba(11,110,79,0.82)),
    url("../images/banners/factory.jpg") center/cover no-repeat;
  color: #fff;
  padding: 3.4rem 0;
}
.page-hero h1 { margin: 0.2rem 0 0.6rem; font-size: clamp(1.8rem, 3vw, 2.5rem); }
.page-hero p { margin: 0; color: rgba(255,255,255,0.88); max-width: 40rem; }
.breadcrumb {
  display: flex; gap: 0.45rem; flex-wrap: wrap;
  font-size: 0.9rem; color: rgba(255,255,255,0.78); margin-bottom: 0.6rem;
}
.breadcrumb a { color: #fff; }

.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.4rem;
}
.prose h2, .prose h3 { color: var(--brand-dark); }
.prose p { color: #31443b; }
.prose ul { color: #31443b; padding-left: 1.2rem; }
.prose li { margin: 0.35rem 0; }

.contact-grid {
  display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 1.4rem;
}
.contact-item {
  display: grid; grid-template-columns: 44px 1fr; gap: 0.85rem;
  padding: 1rem 0; border-bottom: 1px solid var(--line);
}
.contact-item:last-child { border-bottom: 0; }
.contact-item .icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--brand-light); color: var(--brand-dark);
  display: grid; place-items: center; font-weight: 800;
}
.contact-item strong { display: block; margin-bottom: 0.15rem; }
.contact-item span, .contact-item a { color: var(--muted); }

.form-grid { display: grid; gap: 0.9rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
label { display: block; font-weight: 700; margin-bottom: 0.35rem; font-size: 0.92rem; }
input, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.8rem 0.9rem;
  background: #fbfdfc;
  outline: none;
  transition: 0.2s ease;
}
input:focus, textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(31,157,106,0.12);
  background: #fff;
}
textarea { min-height: 140px; resize: vertical; }
.form-note { color: var(--muted); font-size: 0.88rem; margin-top: 0.4rem; }
.form-success {
  display: none;
  margin-top: 0.9rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: var(--brand-light);
  color: var(--brand-dark);
  font-weight: 700;
}
.form-success.show { display: block; }

/* Product detail */
.product-detail {
  display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 1.5rem; align-items: start;
}
.product-gallery {
  background: linear-gradient(180deg, #f7fbf9, #eef6f1);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
  padding: 1.4rem;
  min-height: 360px;
}
.product-gallery img {
  width: 100%;
  max-width: 480px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  object-position: center;
  background: transparent;
}
.product-info h1 { margin: 0 0 0.6rem; font-size: 1.8rem; }
.product-info .lead { color: var(--muted); margin: 0 0 1rem; }
.spec-list { list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: 0.55rem; }
.spec-list li {
  display: flex; gap: 0.55rem; align-items: flex-start;
  background: #f5faf7; border-radius: 12px; padding: 0.7rem 0.85rem;
}
.spec-list li::before { content: "✓"; color: var(--brand); font-weight: 800; }

/* News */
.news-list { display: grid; gap: 1rem; }
.news-item {
  display: grid; grid-template-columns: 140px 1fr; gap: 1rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
}
.news-item .date {
  background: linear-gradient(160deg, #0b6e4f, #12855f);
  color: #fff; display: grid; place-items: center; text-align: center; padding: 1rem;
}
.news-item .date strong { font-size: 1.5rem; display: block; }
.news-item .content { padding: 1.1rem 1.1rem 1.1rem 0; }
.news-item h3 { margin: 0 0 0.4rem; }
.news-item p { margin: 0; color: var(--muted); }

/* Footer */
.site-footer {
  background: #0a1f18;
  color: rgba(255,255,255,0.86);
  padding: 3rem 0 1.4rem;
  margin-top: 2rem;
}
.footer-grid {
  display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.1fr; gap: 1.5rem;
  margin-bottom: 2rem;
}
.site-footer h4 { margin: 0 0 0.9rem; color: #fff; font-size: 1rem; }
.site-footer p, .site-footer a { color: rgba(255,255,255,0.78); }
.site-footer a:hover { color: #fff; }
.footer-links { display: grid; gap: 0.45rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1rem;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: 0.9rem; color: rgba(255,255,255,0.62);
}
.footer-bottom a { color: rgba(255,255,255,0.72); }

/* Floating contact */
.float-contact {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 90;
  display: grid; gap: 0.55rem;
}
.float-contact a {
  width: 52px; height: 52px; border-radius: 16px;
  display: grid; place-items: center;
  background: var(--brand); color: #fff; font-weight: 800;
  box-shadow: 0 10px 24px rgba(11,110,79,0.28);
}
.float-contact a.mail { background: #1a6fbf; }

/* Filters for products */
.product-card[hidden] { display: none !important; }

/* Utilities */
.muted { color: var(--muted); }
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.stack { display: grid; gap: 0.8rem; }
.pill-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.8rem 0 0; }

@media (max-width: 980px) {
  .hero-grid, .feature, .contact-grid, .product-detail { grid-template-columns: 1fr; }
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .cards-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-card img { max-height: 200px; }
  .feature-visual, .feature-visual img { min-height: 300px; max-height: 420px; }
  .brand img { height: 36px; max-width: 140px; }
  .product-gallery { min-height: 280px; padding: 1rem; }
}

@media (max-width: 760px) {
  .menu-toggle { display: inline-flex; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    display: none; flex-direction: column; align-items: stretch;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 0.75rem; box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .nav a { border-radius: 12px; }
  .nav .cta { margin-left: 0; text-align: center; }
  .cards-4, .cards-3, .cards-2 { grid-template-columns: 1fr; }
  .hero-grid { padding: 2.8rem 0 2.4rem; }
  .hero-stats { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .news-item { grid-template-columns: 1fr; }
  .news-item .content { padding: 0 1.1rem 1.1rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .topbar { display: none; }
}


.contact-cta {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.2rem;
  align-items: center;
}
@media (max-width: 760px) {
  .contact-cta { grid-template-columns: 1fr; }
  .contact-cta > div:last-child { justify-content: flex-start !important; }
}


/* image fit fixes */
.brand {
  align-items: center;
}
.brand-text {
  min-width: 0;
}
.page-hero {
  background-size: cover;
  background-position: center;
}
@media (max-width: 760px) {
  .hero-card img {
    max-height: 180px;
  }
}


/* About page image layout */
.page-hero--about {
  background:
    linear-gradient(120deg, rgba(6,41,31,0.88), rgba(11,110,79,0.78)),
    url("../images/banners/hero-1.jpg") center/cover no-repeat;
}

.about-intro {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: start;
}

.about-copy h2 {
  margin: 0.2rem 0 0.9rem;
  font-size: clamp(1.55rem, 2.4vw, 2.1rem);
}

.about-highlights {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.about-highlight {
  display: grid;
  gap: 0.2rem;
  padding: 0.95rem 1rem;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(11, 40, 28, 0.04);
}

.about-highlight strong {
  color: var(--brand-dark);
  font-size: 0.95rem;
}

.about-highlight span {
  color: var(--muted);
  line-height: 1.55;
}

.about-photos {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 0.9rem;
  align-items: end;
}

.about-photo {
  margin: 0;
  background: linear-gradient(180deg, #f5faf7, #e8f3ed);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem;
}

.about-photo img {
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: contain;
  object-position: center;
  display: block;
  border-radius: 16px;
}

.about-photo--secondary {
  margin-bottom: 1.6rem;
}

.about-photo--secondary img {
  max-height: 360px;
}

.about-values .card {
  height: 100%;
}

@media (max-width: 980px) {
  .about-intro {
    grid-template-columns: 1fr;
  }
  .about-photos {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }
  .about-photo--secondary {
    margin-bottom: 0;
  }
  .about-photo img,
  .about-photo--secondary img {
    max-height: 420px;
  }
}

@media (max-width: 760px) {
  .about-photos {
    grid-template-columns: 1fr;
  }
  .about-photo img,
  .about-photo--secondary img {
    max-height: 480px;
  }
}
