/* 临沂宏泰纸塑 - 原版复刻样式 */
:root {
  --sidebar-w: 220px;
  --green: #2e7d32;
  --green-dark: #1b5e20;
  --accent: #4caf50;
  --text: #333;
  --text-light: #666;
  --muted: #999;
  --line: #e5e5e5;
  --bg: #fff;
  --footer-bg: #1a1a1a;
  --font: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

button,
input,
textarea {
  font-family: inherit;
}

.container {
  width: min(1200px, 92%);
  margin: 0 auto;
}

/* ========== 首页左侧栏 ========== */
.home-layout {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  width: var(--sidebar-w);
  height: 100vh;
  z-index: 100;
  display: flex;
  flex-direction: column;
  color: #fff;
  background: linear-gradient(180deg, rgba(20, 60, 90, 0.55), rgba(10, 40, 60, 0.72)),
    url("../assets/images/sidebar_bg.jpg") center / cover no-repeat;
}

.sidebar-logo {
  padding: 28px 22px 10px;
}

.sidebar-logo img {
  width: 160px;
  height: auto;
}

.sidebar-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 28px;
  gap: 22px;
}

.sidebar-nav a {
  position: relative;
  font-size: 16px;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.92);
  transition: 0.25s;
  padding-left: 14px;
}

.sidebar-nav a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 0;
  height: 1px;
  background: #fff;
  transform: translateY(-50%);
  transition: 0.25s;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
  color: #fff;
}

.sidebar-nav a:hover::before,
.sidebar-nav a.active::before {
  width: 8px;
}

.sidebar-scroll {
  padding: 0 0 36px 28px;
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0.85;
}

.sidebar-scroll span {
  writing-mode: vertical-rl;
  font-size: 11px;
  letter-spacing: 3px;
}

.mouse {
  width: 18px;
  height: 28px;
  border: 1.5px solid #fff;
  border-radius: 10px;
  position: relative;
}

.mouse::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 6px;
  width: 3px;
  height: 6px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: #fff;
  animation: mouse 1.4s infinite;
}

@keyframes mouse {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(8px);
  }
}

.home-main {
  margin-left: var(--sidebar-w);
  flex: 1;
  width: calc(100% - var(--sidebar-w));
}

/* ========== 全屏轮播 ========== */
.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.hero-track {
  height: 100%;
  display: flex;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.18);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 0 24px;
  max-width: 900px;
}

.hero-content .sub {
  font-size: 18px;
  letter-spacing: 4px;
  margin-bottom: 18px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.hero-content h1 {
  font-size: clamp(28px, 4.2vw, 48px);
  font-weight: 600;
  letter-spacing: 4px;
  line-height: 1.35;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  margin-bottom: 28px;
}

.btn-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  color: #fff;
  font-size: 13px;
  letter-spacing: 2px;
  transition: 0.3s;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(4px);
}

.btn-more:hover {
  background: #fff;
  color: #222;
}

.hero-nav {
  position: absolute;
  right: 28px;
  bottom: 48px;
  z-index: 5;
  display: flex;
  gap: 12px;
}

.hero-nav button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-size: 18px;
  transition: 0.25s;
}

.hero-nav button:hover {
  background: rgba(255, 255, 255, 0.2);
}

.hero-dots {
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: 0.25s;
}

.hero-dots span.active {
  background: #fff;
  transform: scale(1.25);
}

/* ========== 浮动侧栏 ========== */
.float-tools {
  position: fixed;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.float-tools a {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 18px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  transition: 0.25s;
}

.float-tools a:hover {
  transform: scale(1.08);
}

.ft-service {
  background: #e53935;
}
.ft-mail {
  background: #1e88e5;
}
.ft-chat {
  background: #43a047;
}

/* ========== 通用区块 ========== */
.section {
  padding: 80px 0;
}

.section-head {
  text-align: center;
  margin-bottom: 48px;
}

.section-head h2 {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.section-head p {
  color: var(--text-light);
  font-size: 15px;
}

.section-head .en {
  display: block;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 3px;
  margin-top: 6px;
  text-transform: uppercase;
}

/* About on home */
.about-block {
  background: #f7f8f6;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.about-media {
  position: relative;
  overflow: hidden;
}

.about-media img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.about-copy h3 {
  font-size: 28px;
  margin-bottom: 8px;
}

.about-copy .slogan {
  color: var(--green);
  margin-bottom: 18px;
  font-size: 15px;
}

.about-copy .desc {
  color: var(--text-light);
  font-size: 14px;
  line-height: 1.9;
  margin-bottom: 28px;
  display: -webkit-box;
  -webkit-line-clamp: 8;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.stat {
  text-align: center;
  padding: 12px 4px;
  border-top: 2px solid var(--green);
  background: #fff;
}

.stat .num {
  font-size: 28px;
  font-weight: 700;
  color: var(--green-dark);
  line-height: 1.2;
}

.stat .num small {
  font-size: 13px;
  font-weight: 500;
  margin-left: 2px;
}

.stat .label {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

/* Products */
.product-cats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.product-card {
  position: relative;
  overflow: hidden;
  background: #111;
  min-height: 280px;
}

.product-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: 0.5s;
  opacity: 0.88;
}

.product-card:hover img {
  transform: scale(1.06);
  opacity: 1;
}

.product-card .cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 22px 20px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.72));
  color: #fff;
  font-size: 18px;
  letter-spacing: 2px;
}

/* News */
.news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.news-item {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 18px;
  background: #fff;
  border: 1px solid var(--line);
  transition: 0.3s;
  overflow: hidden;
}

.news-item:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transform: translateY(-3px);
}

.news-item img {
  width: 180px;
  height: 140px;
  object-fit: cover;
}

.news-body {
  padding: 16px 16px 16px 0;
}

.news-body .date {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 6px;
}

.news-body h4 {
  font-size: 16px;
  margin-bottom: 8px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-body p {
  font-size: 13px;
  color: var(--text-light);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Feature tiles */
.feature-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
}

.feature-item {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  color: #fff;
}

.feature-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.5s;
}

.feature-item:hover img {
  transform: scale(1.08);
}

.feature-item .mask {
  position: absolute;
  inset: 0;
  background: rgba(20, 50, 40, 0.45);
  display: flex;
  align-items: flex-end;
  padding: 20px;
  font-size: 16px;
  letter-spacing: 2px;
}

/* ========== 内页顶栏 ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 150;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  height: var(--header-h);
}

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

.logo img {
  height: 42px;
  width: auto;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.top-nav a {
  padding: 8px 12px;
  font-size: 14px;
  color: #333;
  position: relative;
  transition: 0.2s;
}

.top-nav a:hover,
.top-nav a.active {
  color: var(--green);
}

.top-nav a.active::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 2px;
  height: 2px;
  background: var(--green);
}

.lang-btn,
.phone-hot {
  font-size: 13px;
  color: var(--green-dark) !important;
  font-weight: 600;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: #333;
}

/* Page banner */
.page-banner {
  height: 280px;
  background: center / cover no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
}

.page-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}

.page-banner-inner {
  position: relative;
  z-index: 1;
}

.page-banner h1 {
  font-size: 40px;
  letter-spacing: 4px;
  margin-bottom: 6px;
}

.page-banner .en {
  letter-spacing: 4px;
  opacity: 0.85;
  font-size: 14px;
}

.breadcrumb {
  background: #f5f5f5;
  padding: 14px 0;
  font-size: 13px;
  color: var(--muted);
}

.breadcrumb a:hover {
  color: var(--green);
}

.sub-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0 36px;
}

.sub-tabs a {
  padding: 8px 18px;
  border: 1px solid var(--line);
  font-size: 14px;
  transition: 0.2s;
}

.sub-tabs a:hover,
.sub-tabs a.active {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

/* About page */
.about-page-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 48px;
}

.about-page-grid img {
  width: 100%;
  height: 360px;
  object-fit: cover;
}

.about-page-text h2 {
  font-size: 24px;
  margin-bottom: 16px;
}

.about-page-text p {
  color: var(--text-light);
  font-size: 14px;
  line-height: 2;
  margin-bottom: 16px;
  text-align: justify;
}

.motto-bar {
  margin: 24px 0;
  padding: 18px 22px;
  background: linear-gradient(90deg, #e8f5e9, #f1f8e9);
  border-left: 4px solid var(--green);
  color: var(--green-dark);
  font-weight: 600;
  letter-spacing: 1px;
}

/* Product grid */
.prod-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.prod-item {
  border: 1px solid var(--line);
  overflow: hidden;
  transition: 0.3s;
  background: #fff;
}

.prod-item:hover {
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

.prod-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #fafafa;
}

.prod-item h4 {
  padding: 14px 12px;
  text-align: center;
  font-size: 15px;
  font-weight: 500;
}

/* Equip / honor grids */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: 0.35s;
}

.gallery-grid img:hover {
  transform: scale(1.02);
}

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

.honor-grid img {
  width: 100%;
  height: 320px;
  object-fit: contain;
  background: #fafafa;
  border: 1px solid var(--line);
  padding: 12px;
}

/* Contact */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

.contact-list li {
  display: flex;
  gap: 10px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}

.contact-list strong {
  min-width: 56px;
  color: var(--green-dark);
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  border: 1px solid var(--line);
  padding: 12px 14px;
  font-size: 14px;
  outline: none;
  transition: 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--green);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.btn-submit {
  background: var(--green);
  color: #fff;
  border: none;
  padding: 12px 36px;
  cursor: pointer;
  font-size: 15px;
  letter-spacing: 2px;
  transition: 0.25s;
}

.btn-submit:hover {
  background: var(--green-dark);
}

.map-placeholder {
  height: 280px;
  background: linear-gradient(135deg, #e8f5e9, #e3f2fd),
    url("../assets/images/factory.jpg") center / cover;
  background-blend-mode: soft-light;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  font-size: 16px;
}

/* Service steps */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 36px;
}

.step {
  text-align: center;
  padding: 28px 16px;
  border: 1px solid var(--line);
  transition: 0.3s;
}

.step:hover {
  border-color: var(--green);
  box-shadow: 0 8px 24px rgba(46, 125, 50, 0.12);
}

.step .n {
  width: 48px;
  height: 48px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 700;
}

/* Apps */
.app-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.app-card {
  border: 1px solid var(--line);
  overflow: hidden;
}

.app-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.app-card h3 {
  padding: 18px 16px 6px;
  font-size: 17px;
}

.app-card p {
  padding: 0 16px 20px;
  font-size: 13px;
  color: var(--text-light);
}

/* Footer */
.site-footer {
  background: var(--footer-bg);
  color: rgba(255, 255, 255, 0.78);
  padding: 56px 0 24px;
  font-size: 13px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 32px;
  margin-bottom: 36px;
}

.site-footer h4 {
  color: #fff;
  font-size: 16px;
  margin-bottom: 16px;
  letter-spacing: 1px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.footer-links a:hover {
  color: #fff;
}

.footer-contact li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.footer-qr {
  display: flex;
  gap: 16px;
}

.footer-qr figure {
  text-align: center;
}

.footer-qr img {
  width: 88px;
  height: 88px;
  object-fit: cover;
  background: #fff;
  margin: 0 auto 6px;
}

.footer-qr figcaption {
  font-size: 12px;
  opacity: 0.7;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 18px;
  text-align: center;
  font-size: 12px;
  opacity: 0.65;
}

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 40px;
  transform: translateX(-50%) translateY(20px);
  background: rgba(0, 0, 0, 0.82);
  color: #fff;
  padding: 12px 22px;
  border-radius: 4px;
  opacity: 0;
  pointer-events: none;
  transition: 0.3s;
  z-index: 999;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ========== 响应式 ========== */
@media (max-width: 1100px) {
  .prod-grid,
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .feature-row {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 960px) {
  :root {
    --sidebar-w: 0px;
  }

  .sidebar {
    transform: translateX(-100%);
    transition: 0.3s;
    width: 240px;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .home-main {
    margin-left: 0;
    width: 100%;
  }

  .page-home .home-main {
    padding-top: 56px;
  }

  .page-home .hero {
    height: calc(100vh - 56px);
  }

  .home-mobile-bar {
    display: flex !important;
  }

  .about-grid,
  .about-page-grid,
  .contact-wrap,
  .news-grid {
    grid-template-columns: 1fr;
  }

  .news-item {
    grid-template-columns: 120px 1fr;
  }

  .news-item img {
    width: 120px;
    height: 110px;
  }

  .product-cats,
  .steps,
  .app-cards,
  .honor-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .menu-toggle {
    display: flex;
  }

  .top-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 16px 20px;
    border-bottom: 1px solid var(--line);
    display: none;
    max-height: calc(100vh - var(--header-h));
    overflow: auto;
  }

  .top-nav.open {
    display: flex;
  }

  .top-nav a {
    padding: 12px 8px;
    border-bottom: 1px solid #f0f0f0;
  }

  .top-nav a.active::after {
    display: none;
  }

  .page-banner {
    height: 200px;
  }

  .page-banner h1 {
    font-size: 28px;
  }

  .hero-dots {
    display: none;
  }

  .float-tools {
    right: 10px;
    gap: 8px;
  }

  .float-tools a {
    width: 42px;
    height: 42px;
  }
}

.home-mobile-bar {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  z-index: 120;
  background: rgba(15, 40, 60, 0.92);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  color: #fff;
}

.home-mobile-bar img {
  height: 32px;
}

.home-mobile-bar .hamb {
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}

.home-mobile-bar .hamb span {
  height: 2px;
  width: 22px;
  background: #fff;
  display: block;
}

.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 90;
}

.sidebar-backdrop.show {
  display: block;
}

@media (max-width: 640px) {
  .section {
    padding: 56px 0;
  }

  .prod-grid,
  .gallery-grid,
  .product-cats,
  .steps,
  .app-cards,
  .honor-grid,
  .feature-row,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-content .sub {
    font-size: 14px;
    letter-spacing: 2px;
  }

  .hero-content h1 {
    font-size: 22px;
    letter-spacing: 2px;
  }

  .about-media img {
    height: 240px;
  }

  .news-item {
    grid-template-columns: 1fr;
  }

  .news-item img {
    width: 100%;
    height: 160px;
  }

  .news-body {
    padding: 0 14px 16px;
  }

  .hero-nav {
    right: 14px;
    bottom: 24px;
  }

  .footer-qr {
    justify-content: flex-start;
  }
}
