/* ==========================================================
   山东沂南天运机械厂 官网 - style.css
   白色背景 · 品牌红点缀 · 微软雅黑
   ========================================================== */
:root {
  --primary: #c8161e;        /* 品牌红（取自logo） */
  --primary-dark: #a31017;
  --dark: #1f2430;           /* 深灰蓝 */
  --text: #333a45;
  --muted: #6b7280;
  --bg: #ffffff;
  --bg-gray: #f5f6f8;
  --line: #e5e7eb;
  --shadow: 0 8px 30px rgba(31, 36, 48, .08);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
  font-family: "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
  font-size: 16px;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ---------------- 顶部导航 ---------------- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s, border-color .3s;
}
.navbar.scrolled { box-shadow: 0 2px 16px rgba(0,0,0,.08); border-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { width: 85px; height: 85px; object-fit: contain; }
.brand-text strong { display: block; font-size: 18px; color: var(--dark); letter-spacing: 1px; }
.brand-text span { display: block; font-size: 11px; color: var(--muted); letter-spacing: 2px; }

.nav-menu { display: flex; gap: 8px; }
.nav-menu a {
  padding: 8px 18px; font-size: 16px; color: var(--text);
  border-radius: 4px; transition: color .2s;
  position: relative;
}
.nav-menu a:hover { color: var(--primary); }
.nav-menu a.active { color: var(--primary); font-weight: bold; }
.nav-menu a.active::after {
  content: ""; position: absolute; left: 18px; right: 18px; bottom: 2px;
  height: 2px; background: var(--primary); border-radius: 2px;
}
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--dark); margin: 5px 0; }

/* ---------------- Banner ---------------- */
.hero {
  position: relative; height: 100vh; min-height: 560px;
  background: url("../images/banner.jpg") center 30% / cover no-repeat;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(15,20,30,.55), rgba(15,20,30,.35) 45%, rgba(15,20,30,.65));
}
.hero-content { position: relative; z-index: 2; color: #fff; padding-top: 40px; }
.hero-sub { font-size: 18px; letter-spacing: 4px; opacity: .85; margin-bottom: 18px; }
.hero-content h1 {
  font-size: clamp(34px, 5.5vw, 62px); letter-spacing: 6px;
  text-shadow: 0 4px 24px rgba(0,0,0,.4); margin-bottom: 14px;
}
.hero-slogan { font-size: clamp(16px, 2.4vw, 24px); letter-spacing: 8px; opacity: .92; margin-bottom: 22px; }
.hero-desc { font-size: 15px; letter-spacing: 2px; opacity: .75; margin-bottom: 34px; }
.hero-arrow {
  position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.85); z-index: 2;
  animation: bounce 2s infinite;
}
@keyframes bounce { 0%,100% { transform: translate(-50%, 0);} 50% { transform: translate(-50%, 10px);} }

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-block; padding: 12px 36px; font-size: 16px;
  border-radius: 4px; cursor: pointer; transition: all .25s;
  letter-spacing: 2px; border: none;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { border: 1px solid var(--primary); color: var(--primary); background: transparent; }
.btn-outline:hover { background: var(--primary); color: #fff; }

/* ---------------- 通用 Section ---------------- */
.section { padding: 88px 0; }
.section-gray { background: var(--bg-gray); }
.section-dark { background: var(--dark); color: #fff; }
.section-head { text-align: center; margin-bottom: 52px; }
.section-head h2 {
  font-size: 34px; color: var(--dark); letter-spacing: 4px; position: relative;
  display: inline-block; padding-bottom: 16px;
}
.section-head h2::after {
  content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 52px; height: 3px; background: var(--primary); border-radius: 2px;
}
.section-sub { color: var(--muted); font-size: 13px; letter-spacing: 3px; margin-top: 10px; }
.section-head.light h2 { color: #fff; }
.section-head.light .section-sub { color: rgba(255,255,255,.6); }

/* ---------------- 关于我们 ---------------- */
.about-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: start; }
.about-img { position: relative; }
.about-img img {
  width: 100%; height: 420px; object-fit: cover;
  border-radius: 8px; box-shadow: var(--shadow); background: var(--bg-gray);
}
.img-note {
  position: absolute; bottom: 12px; left: 12px;
  background: rgba(31,36,48,.72); color: #fff; font-size: 12px;
  padding: 4px 12px; border-radius: 3px;
}
.about-text h3 { font-size: 24px; color: var(--dark); margin-bottom: 18px; letter-spacing: 2px; }
.about-text p { margin-bottom: 10px; text-align: justify; }
.about-points {
  list-style: none; margin-top: 18px;
  display: grid; gap: 10px;
}
.about-points li {
  padding-left: 26px; position: relative; color: var(--dark);
  font-size: 14px; line-height: 1.7;   /* ← 三条要点字号，改这里 */
}
.about-points li::before {
  content: ""; position: absolute; left: 0; top: 11px;
  width: 8px; height: 8px; background: var(--primary); border-radius: 2px;
}

/* 生产实拍视频 */
.video-block { margin-top: 64px; }
.video-title { text-align: center; font-size: 20px; color: var(--dark); letter-spacing: 2px; margin-bottom: 24px; }
.video-wrap {
  width: 800px; max-width: 100%;
  aspect-ratio: 16 / 9;   /* 桌面端固定 800 × 450，小屏等比缩放 */
  margin: 0 auto;
}
.video-wrap video {
  width: 100%; height: 100%; display: block;
  border-radius: 8px; box-shadow: var(--shadow);
  background: #000; object-fit: contain;
}

/* ---------------- 产品卡片 ---------------- */
.product-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
  margin-bottom: 72px;
}
.product-card {
  background: #fff; border-radius: 8px; overflow: hidden;
  box-shadow: 0 4px 18px rgba(31,36,48,.07);
  transition: transform .3s, box-shadow .3s;
  display: flex; flex-direction: column;
  border: 1px solid var(--line);
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.product-card .pc-img { height: 240px; overflow: hidden; background: var(--bg-gray); }
.product-card .pc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.product-card:hover .pc-img img { transform: scale(1.05); }
.pc-body { padding: 20px 22px 22px; flex: 1; display: flex; flex-direction: column; }
.pc-body h3 { font-size: 18px; color: var(--dark); margin-bottom: 6px; }
.pc-tag { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.pc-link {
  margin-top: auto; align-self: flex-start;
  color: var(--primary); font-size: 15px; letter-spacing: 1px;
  border: none; background: none; cursor: pointer; padding: 0;
  display: inline-flex; align-items: center; gap: 6px;
}
.pc-link:hover { text-decoration: underline; }

/* 砖样展示 */
.brick-showcase {
  display: grid; grid-template-columns: 1fr 1.5fr; gap: 58px; align-items: center;
  background: #fff; border-radius: 10px; padding: 40px;
  box-shadow: var(--shadow); margin-bottom: 72px;
  border-top: 4px solid var(--primary);
}
.brick-img img { border-radius: 8px; width: 100%; object-fit: cover; }
.brick-text h3 { font-size: 26px; color: var(--dark); letter-spacing: 3px; margin-bottom: 10px; }
.brick-badge {
  display: inline-block; background: rgba(200,22,30,.08); color: var(--primary);
  font-size: 13px; padding: 4px 14px; border-radius: 20px; margin-bottom: 18px;
}
.brick-text p { margin-bottom: 12px; text-align: justify; }

/* ---------------- 产品详情（切换式） ---------------- */
.detail-title { font-size: 22px; color: var(--dark); letter-spacing: 2px; margin-bottom: 20px; }
.detail-tabs {
  display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px;
}
.detail-tab {
  flex: 1; min-width: 130px; padding: 12px 10px;
  background: #fff; border: 1px solid var(--line); border-radius: 6px;
  text-align: center; cursor: pointer; transition: all .25s;
}
.detail-tab .dt-name { display: block; font-size: 16px; font-weight: bold; color: var(--dark); letter-spacing: 1px; }
.detail-tab .dt-sub { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.detail-tab:hover { border-color: var(--primary); }
.detail-tab.active {
  background: var(--dark); border-color: var(--dark); color: #fff;
  box-shadow: 0 6px 16px rgba(31,36,48,.25);
}
.detail-tab.active .dt-name { color: #fff; }
.detail-tab.active .dt-sub { color: rgba(255,255,255,.65); }

.detail-panel {
  background: #fff; border-radius: 10px; box-shadow: var(--shadow);
  overflow: hidden; border: 1px solid var(--line);
}
.dp-head {
  background: var(--dark); color: #fff; padding: 22px 32px;
  display: flex; align-items: baseline; gap: 16px;
}
.dp-head h4 { font-size: 24px; letter-spacing: 2px; }
.dp-head span { font-size: 13px; letter-spacing: 3px; color: rgba(255,255,255,.6); }
.dp-body { display: grid; grid-template-columns: 1fr 1.1fr; gap: 0; }
.dp-gallery {
  padding: 28px; background: var(--bg-gray);
  display: grid; gap: 12px; align-content: start;
}
.dp-gallery img {
  width: 100%; border-radius: 6px; cursor: zoom-in;
  border: 1px solid var(--line); background: #fff;
}
.dp-info { padding: 28px 32px; }
.dp-intro { color: var(--muted); margin-bottom: 20px; text-align: justify; }
.dp-spec-title, .dp-output-title {
  font-size: 13px; letter-spacing: 3px; color: var(--primary);
  font-weight: bold; margin: 18px 0 10px;
}
table.spec-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
table.spec-table td {
  padding: 9px 12px; border-bottom: 1px solid var(--line);
}
table.spec-table td:first-child { color: var(--muted); width: 42%; }
table.spec-table td:last-child { color: var(--dark); font-weight: 500; }
table.output-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.output-table th, table.output-table td {
  padding: 8px 6px; border: 1px solid var(--line); text-align: center;
}
table.output-table th { background: var(--bg-gray); color: var(--dark); font-weight: bold; }
.dp-actions { margin-top: 26px; display: flex; gap: 14px; }

/* ---------------- 发货展示 ---------------- */
.cases-intro { max-width: 860px; margin: 0 auto 44px; text-align: justify; }
.cases-intro p { margin-bottom: 12px; }
.delivery-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.delivery-grid figure {
  margin: 0; overflow: hidden; border-radius: 8px; cursor: zoom-in;
  position: relative; background: var(--bg-gray);
}
.delivery-grid img {
  width: 100%; height: 210px; object-fit: cover; transition: transform .4s;
}
.delivery-grid figure:hover img { transform: scale(1.06); }
.delivery-tip { text-align: center; color: var(--muted); font-size: 13px; margin-top: 18px; }

/* ---------------- 联系我们 ---------------- */
.contact-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.contact-card {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  border-radius: 8px; padding: 28px 20px; text-align: center;
  transition: background .25s, transform .25s; display: block;
}
.contact-card:hover { background: rgba(255,255,255,.12); transform: translateY(-4px); }
.contact-card.wide { grid-column: span 4; padding: 24px 20px; }
.contact-icon {
  width: 52px; height: 52px; margin: 0 auto 14px;
  border-radius: 50%; background: rgba(200,22,30,.9);
  display: flex; align-items: center; justify-content: center; color: #fff;
}
.contact-card h4 { font-size: 14px; color: rgba(255,255,255,.65); letter-spacing: 2px; margin-bottom: 8px; font-weight: normal; }
.contact-value { font-size: 19px; color: #fff; font-weight: bold; letter-spacing: 1px; }
.contact-cta {
  text-align: center; margin-top: 40px; color: rgba(255,255,255,.75);
  letter-spacing: 1px;
}

/* ---------------- 页脚 ---------------- */
.footer { background: #14181f; color: rgba(255,255,255,.75); }
.footer-inner {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px;
  padding: 56px 24px 40px;
}
.footer-col h5 { color: #fff; font-size: 16px; margin-bottom: 16px; letter-spacing: 2px; }
.footer-col p { font-size: 14px; margin-bottom: 6px; }
.footer-brand img { width: 76px; margin-bottom: 12px; }
.footer-brand strong { display: block; color: #fff; font-size: 18px; letter-spacing: 2px; margin-bottom: 6px; }
.footer-motto { color: #fff; font-size: 16px !important; letter-spacing: 2px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  text-align: center; padding: 18px 0; font-size: 13px; color: rgba(255,255,255,.45);
}

/* ---------------- 图片放大弹层 ---------------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.85);
  display: none; align-items: center; justify-content: center; padding: 40px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92%; max-height: 90vh; border-radius: 6px; }
.lightbox-close {
  position: absolute; top: 18px; right: 28px; background: none; border: none;
  color: #fff; font-size: 44px; cursor: pointer; line-height: 1;
}

/* ---------------- 响应式 ---------------- */
@media (max-width: 992px) {
  .about-grid, .brick-showcase, .dp-body { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .delivery-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: repeat(2, 1fr); }
  .about-img img { height: 320px; }
  .nav-menu {
    position: absolute; top: 72px; left: 0; right: 0;
    background: #fff; flex-direction: column; padding: 12px 24px 20px;
    box-shadow: 0 12px 24px rgba(0,0,0,.1); display: none;
  }
  .nav-menu.open { display: flex; }
  .nav-toggle { display: block; }
}
@media (max-width: 600px) {
  .product-grid, .delivery-grid, .contact-grid { grid-template-columns: 1fr; }
  .contact-card.wide { grid-column: span 1; }
  .footer-inner { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .detail-tab { min-width: 45%; }
  .brand-text span { display: none; }
}
