/* ===== Double A 官网样式 ===== */
:root {
  --green: #007a33;
  --green-light: #00a651;
  --blue: #0072bc;
  --dark: #1a1a1a;
  --gray: #6b6b6b;
  --light: #f5f7f5;
  --white: #ffffff;
  --max-width: 1200px;
}

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

body {
  font-family: "Segoe UI", Arial, "Microsoft YaHei", sans-serif;
  color: var(--dark);
  line-height: 1.6;
  background: var(--white);
}

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

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

/* ===== 顶部导航 ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #eee;
}
.nav .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 92px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.logo {
  display: inline-block;
  height: 65px;
  width: auto;
  vertical-align: middle;
}
.brand-text {
  font-size: 16px;
  font-weight: 700;
  color: #1a6b3c;
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.footer-logo {
  display: inline-block;
  background: #fff;
  padding: 8px 12px;
  border-radius: 8px;
}
.footer-logo .logo { height: 58px; }
.nav-links { display: flex; gap: 26px; list-style: none; }
.nav-links a { font-size: 14px; font-weight: 600; color: #333; transition: color .2s; }
.nav-links a:hover { color: var(--green); }
.nav-toggle { display: none; background: none; border: none; font-size: 26px; cursor: pointer; }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background: linear-gradient(135deg, #e8f5ec 0%, #d4eef7 100%);
  overflow: hidden;
}
.hero-content { position: relative; z-index: 2; max-width: 640px; margin-right: auto; }
.hero h1 { font-size: 40px; font-weight: 800; line-height: 1.2; margin-bottom: 16px; }
.hero .tagline {
  font-size: 22px; font-weight: 700; color: var(--green);
  letter-spacing: 2px; margin-bottom: 18px;
}
.hero p { font-size: 17px; color: var(--gray); margin-bottom: 28px; }
.hero-deco {
  position: absolute; right: -60px; top: 50%; transform: translateY(-50%);
  width: 480px; height: 480px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,166,81,.25), transparent 70%);
}

/* Hero 变体：工厂流水线作背景，左侧展示工厂图，文字居右 */
.hero-bg {
  background-color: #e8f5ec;
  background-image: url(../assets/factory/factory-slitting.jpg);
  background-size: cover;
  background-position: center left;
}
/* 遮罩：右侧不透明保证文字可读，向左逐渐透出工厂背景 */
.hero-bg::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(270deg,
    rgba(232,245,236,.97) 0%,
    rgba(232,245,236,.93) 45%,
    rgba(232,245,236,.55) 78%,
    rgba(232,245,236,.20) 100%);
}
/* 文字区块靠右 */
.hero-bg .hero-content { margin-left: auto; margin-right: 0; }
/* 用 top/bottom + flex 居中（不用 translateY，避免被 .reveal 动画覆盖 transform） */
.hero-visual {
  position: absolute; right: 5%; top: 0; bottom: 0;
  display: flex; align-items: center;
  z-index: 2; width: 330px; max-width: 40vw;
}
.hero-visual img {
  width: 100%; height: auto; display: block;
  border-radius: 18px;
  box-shadow: 0 18px 46px rgba(0,0,0,.22);
}
@media (max-width: 900px) {
  /* 窄屏隐藏产品图，避免挤压文字 */
  .hero-visual { display: none; }
  .hero-bg::before {
    background: linear-gradient(270deg, rgba(232,245,236,.96) 0%, rgba(232,245,236,.85) 100%);
  }
}
.leaf {
  position: absolute; width: 120px; height: 120px; opacity: .6;
}

/* ===== 通用区块 ===== */
.section { padding: 90px 0; }
.section.alt { background: var(--light); }
.section-head { text-align: center; margin-bottom: 48px; }
.section-head .eyebrow {
  display: inline-block; color: var(--green); font-weight: 700;
  letter-spacing: 3px; font-size: 13px; text-transform: uppercase; margin-bottom: 12px;
}
.section-head h2 { font-size: 34px; font-weight: 800; margin-bottom: 14px; }
.section-head p { color: var(--gray); max-width: 620px; margin: 0 auto; }

.btn {
  display: inline-block; padding: 13px 30px; border-radius: 30px;
  font-weight: 700; font-size: 14px; transition: all .25s; cursor: pointer; border: none;
}
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-light); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,122,51,.3); }
.btn-outline { border: 2px solid var(--green); color: var(--green); background: transparent; }
.btn-outline:hover { background: var(--green); color: #fff; }
.learn-more {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--green); font-weight: 700; font-size: 14px; margin-top: 18px;
}
.learn-more::after { content: "→"; transition: transform .2s; }
.learn-more:hover::after { transform: translateX(5px); }

/* ===== 产品卡片网格 ===== */
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border-radius: 14px; overflow: hidden;
  box-shadow: 0 6px 22px rgba(0,0,0,.07); transition: transform .25s, box-shadow .25s;
  border: 1px solid #f0f0f0;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 14px 34px rgba(0,0,0,.12); }
.card .thumb {
  height: 200px; display: flex; align-items: center; justify-content: center;
  font-size: 42px; font-weight: 800; color: #fff; overflow: hidden;
  position: relative;
}
/* 卡片缩略图里的真实产品图：
   原图是 1:1 整图卡（含底部标题+右下角 AI 水印）。
   这里通过 object-position + object-fit:cover 只显示图片"上 60%"，裁掉重复标题和右下水印。 */
.card .thumb > img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 30%;
  display: block;
}
.card .body { padding: 22px; }
.card .body h3 { font-size: 19px; margin-bottom: 8px; }
.card .body p { color: var(--gray); font-size: 14px; }

/* 产品配色 */
.bg-green { background: linear-gradient(135deg, #00a651, #007a33); }
.bg-blue { background: linear-gradient(135deg, #2e9bdd, #0072bc); }
.bg-orange { background: linear-gradient(135deg, #f5a623, #e8821a); }
.bg-purple { background: linear-gradient(135deg, #9b59b6, #6c3a87); }

/* ===== 两栏图文 ===== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.split .visual {
  height: 360px; border-radius: 16px; display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 60px; font-weight: 800;
  position: relative;              /* 为克重角标 .gsm-badge 提供定位上下文 */
}
/* 真实图片占位：.visual 加 .visual-* 修饰类时用图片填满（去掉默认文字色/居中 emoji） */
.split .visual > img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 16px;
  display: block;
}
.split h2 { font-size: 30px; margin-bottom: 16px; }
.split p { color: var(--gray); margin-bottom: 14px; }

/* ===== 数据条 ===== */
.stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 30px; text-align: center; }
.stat .num { font-size: 52px; font-weight: 800; color: var(--green); }
.stat .label { color: var(--gray); font-size: 15px; }
.stats-4 { grid-template-columns: repeat(4,1fr); }

/* ===== 产品页：克重锚点导航 ===== */
.anchor-nav { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 8px; }

/* ===== 产品页：克重角标（贴在 .visual 左上角） ===== */
.gsm-badge {
  position: absolute; top: 14px; left: 14px;
  padding: 8px 16px; border-radius: 999px;
  color: #fff; font-size: 15px; font-weight: 800; letter-spacing: .5px;
  box-shadow: 0 4px 14px rgba(0,0,0,.22);
}
.gsm-70 .gsm-badge { background: linear-gradient(135deg, #00a651, #007a33); }
.gsm-75 .gsm-badge { background: linear-gradient(135deg, #2e9bdd, #0072bc); }
.gsm-80 .gsm-badge { background: linear-gradient(135deg, #f5a623, #e8821a); }

/* ===== 产品页：规格参数表 ===== */
.spec-table {
  width: 100%; border-collapse: collapse; margin: 18px 0 22px;
  font-size: 14px;
}
.spec-table th,
.spec-table td {
  text-align: left; padding: 9px 10px; border-bottom: 1px solid #eee;
  vertical-align: top;
}
.spec-table th {
  width: 42%; color: #555; font-weight: 600; background: #fafbfa;
}
.spec-table td { color: #333; }
.spec-table tr:last-child th,
.spec-table tr:last-child td { border-bottom: none; }

/* ===== 产品页：包装 / 装柜信息 ===== */
.packing-block { margin-top: 46px; }
.packing-block h3,
.variant-block h3 {
  font-size: 20px; margin-bottom: 18px; color: #222;
}
.packing-note { margin-top: 14px; color: var(--gray); font-size: 14px; }

/* ===== 产品页：品牌变体（挂靠对应检测报告） ===== */
.variant-block { margin-top: 40px; }
.variant-list { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; }
.variant {
  display: flex; align-items: center; gap: 16px;
  background: #fff; border: 1px solid #f0f0f0; border-radius: 12px;
  padding: 14px; box-shadow: 0 4px 16px rgba(0,0,0,.05);
}
.variant img {
  width: 62px; height: 82px; object-fit: cover; border-radius: 6px;
  border: 1px solid #e8e8e8; flex-shrink: 0;
}
.variant b { display: block; font-size: 15px; color: #222; margin-bottom: 3px; }
.variant span { font-size: 13px; color: var(--gray); }

/* ===== 响应式补充 ===== */
@media (max-width: 900px) {
  .stats-4 { grid-template-columns: repeat(2,1fr); }
  .variant-list { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .stats-4 { grid-template-columns: 1fr; }
  .spec-table th { width: 46%; }
}

/* ===== 表单 ===== */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 14px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 12px 14px; border: 1px solid #d8d8d8;
  border-radius: 8px; font-size: 14px; font-family: inherit;
}
.form-group input:focus, .form-group textarea:focus { outline: 2px solid var(--green-light); border-color: transparent; }

/* ===== 新闻列表 ===== */
.news-card { display: block; color: inherit; text-decoration: none; }
.news-card .thumb { height: 180px; }
.news-meta { color: var(--green); font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.news-toggle {
  display: inline-block; margin-top: 12px; font-size: 13px; font-weight: 600;
  color: var(--green);
}

/* ===== 新闻详情页 ===== */
.article-wrap { max-width: 860px; }
.article-hero {
  border-radius: 14px; overflow: hidden; margin-bottom: 22px;
  box-shadow: 0 8px 26px rgba(0,0,0,.08);
}
.article-hero img { width: 100%; height: 380px; object-fit: cover; display: block; }
.article-meta { color: var(--green); font-size: 13px; font-weight: 600; margin-bottom: 10px; }
.article-wrap h1 { font-size: 32px; line-height: 1.3; margin-bottom: 16px; }
.article-lead {
  font-size: 17px; color: #444; line-height: 1.6; margin-bottom: 22px;
  padding-left: 14px; border-left: 3px solid var(--green);
}
.article-body p { font-size: 16px; color: #444; line-height: 1.8; margin-bottom: 16px; }
.article-body img {
  width: 100%; display: block; border-radius: 10px; margin: 22px 0;
}
.article-nav {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 38px; padding-top: 24px; border-top: 1px solid #eee;
}

/* ===== 页脚 ===== */
.footer { background: #10261a; color: #cfd8d2; padding: 56px 0 28px; }
.footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer h4 { color: #fff; margin-bottom: 16px; font-size: 15px; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 10px; font-size: 14px; }
.footer ul li a:hover { color: var(--green-light); }
.footer .bottom {
  border-top: 1px solid rgba(255,255,255,.12); margin-top: 36px;
  padding-top: 20px; text-align: center; font-size: 13px; color: #8fa396;
}

/* ===== 二级下拉导航 ===== */
.nav-links .has-sub {
  position: relative;
  /* 把 hover 感应区向下延伸，桥接主菜单与子菜单之间的空隙 */
  padding-bottom: 24px;
  margin-bottom: -24px;
}
.nav-links .has-sub > a::after { content: " ▾"; font-size: 10px; }
.nav-links .sub-menu {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  min-width: 200px; background: #fff; border: 1px solid #eee;
  border-radius: 10px; box-shadow: 0 12px 30px rgba(0,0,0,.12);
  list-style: none; padding: 8px 0; opacity: 0; visibility: hidden;
  transition: opacity .2s, transform .2s; z-index: 200;
}
.nav-links .has-sub:hover .sub-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(6px); }
.nav-links .sub-menu li { padding: 0; }
.nav-links .sub-menu a {
  display: block; padding: 10px 18px; font-size: 13px; font-weight: 600;
  color: #333; white-space: nowrap;
}
.nav-links .sub-menu a:hover { background: var(--light); color: var(--green); }

/* ===== 首页报告左右堆叠翻页 ===== */
.report-stack {
  position: relative;
  height: 440px;
  max-width: 760px;
  margin: 0 auto;
  perspective: 1600px;
}
.report-stack .report-card {
  position: absolute;
  top: 0; left: 50%;
  width: 300px; height: 400px;
  margin-left: -150px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 14px 40px rgba(0,0,0,.18);
  border: 1px solid #e6e6e6;
  overflow: hidden;
  transition: transform .7s cubic-bezier(.4,.1,.2,1), opacity .7s;
  transform-origin: center center;
}
.report-stack .report-card .report-img {
  width: 100%; height: 340px; object-fit: cover; background: #eef2ee;
}
.report-stack .report-card .rc-cap {
  padding: 12px; text-align: center; font-weight: 700; font-size: 15px; color: #333;
}
/* 堆叠层级由 JS 根据当前顺序动态写入 transform / z-index / opacity，
   实现"左右一页压一页"的翻页堆叠效果（写在 .report-card 上的内联样式会覆盖此处默认值） */

/* 报告卡片上方可放一个翻页指示 */
.report-hint {
  text-align: center; color: var(--gray); font-size: 13px; margin-top: 14px;
}
.report-hint b { color: var(--green); }

@media (max-width: 900px) {
  .nav-links .sub-menu {
    position: static; transform: none; opacity: 1; visibility: visible;
    box-shadow: none; border: none; padding: 0 0 6px 16px; min-width: 0;
  }
  .nav-links .has-sub:hover .sub-menu { transform: none; }
  .report-stack { height: 400px; }
  .report-stack .report-card { width: 280px; height: 360px; margin-left: -140px; }
  .report-stack .report-card .report-img { height: 300px; }
}

/* ===== 面包屑 ===== */
.crumbs { font-size: 13px; color: var(--gray); padding: 18px 0; }
.crumbs a:hover { color: var(--green); }

/* ===== 翻书 / 质检报告 ===== */
.book-wrap { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.book {
  position: relative;
  width: 360px;
  height: 480px;
  perspective: 1600px;
  margin: 10px auto;
}
.book .page {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border-radius: 6px 10px 10px 6px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
  transform-origin: left center;
  transition: transform 1s cubic-bezier(.4,.1,.2,1);
  backface-visibility: hidden;
  overflow: hidden;
  border: 1px solid #e3e3e3;
}
/* 已翻过的页贴在左侧（微微错位搭着） */
.book .page.flipped {
  transform: rotateY(-172deg) translateX(6px);
}
.book .page.z1 { z-index: 5; }
.book .page.z2 { z-index: 4; }
.book .page.z3 { z-index: 3; }
.book .page.z4 { z-index: 2; }
.book .page.z5 { z-index: 1; }
.book .page.z0 { z-index: 0; }

/* 内嵌 PDF 报告（模糊，防盗用） */
.report-embed {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
  filter: blur(1.4px);             /* 与当前一致的轻度模糊，防复制 */
  user-select: none;
  background: #fbfdff;
  z-index: 1;
}
.report-embed-fallback {
  position: absolute; inset: 0;
  display: none; align-items: center; justify-content: center;
  text-align: center; color: #b3122b; font-weight: 800; font-size: 18px;
  padding: 20px; background: linear-gradient(135deg, #fbfdff, #eef4f8);
  filter: blur(.8px);
  z-index: 3;
}
/* 报告内翻页控制条 */
.pdf-page-bar {
  position: absolute; left: 0; right: 0; bottom: 8px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  z-index: 10;
  pointer-events: auto;
}
.report-watermark { z-index: 2; }
.pdf-page-bar button {
  border: none; background: rgba(255,255,255,.92); color: #007a33;
  font-weight: 700; font-size: 13px; padding: 5px 12px; border-radius: 20px;
  cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.pdf-page-bar button:disabled { opacity: .4; cursor: default; }
.pdf-page-bar .pg { font-size: 12px; color: #333; background: rgba(255,255,255,.92);
  padding: 4px 10px; border-radius: 20px; }
/* PDF 加载失败时，JS 给 page 加 .no-pdf，显示兜底卡片 */
.page.no-pdf .report-embed-fallback { display: flex; }
.report-card .rc-meta {
  margin: 12px 0 16px;
  padding: 14px;
  border: 1px dashed rgba(0,0,0,.18);
  border-radius: 8px;
  filter: blur(.25px);
}
.report-card .rc-meta div {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; margin: 8px 0; color: #333;
}
.report-card .rc-meta span { color: #666; margin-right: 8px; }
.report-card .rc-meta b { font-weight: 700; letter-spacing: .5px; color: #111; }
.report-card .rc-line {
  height: 12px; border-radius: 3px; background: rgba(0,0,0,.10);
  margin: 12px 0;
}
.report-card .rc-stamp {
  margin-top: auto; align-self: center;
  width: 110px; height: 110px; border-radius: 50%;
  border: 4px solid #b3122b; color: #b3122b;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 14px; text-align: center;
  transform: rotate(-14deg); opacity: .85;
}
.report-watermark {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 60px; font-weight: 900; color: rgba(0,122,51,.06);
  letter-spacing: 4px; pointer-events: none;
}
.book-controls { display: flex; gap: 14px; align-items: center; }
.book-controls .btn { padding: 10px 22px; }
.book-dots { display: flex; gap: 8px; }
.book-dots .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: #cdd5cf; cursor: pointer; transition: background .2s;
}
.book-dots .dot.active { background: var(--green); }
.cert-note {
  max-width: 560px; margin: 0 auto 40px; text-align: center;
  font-size: 13px; color: var(--gray);
}

/* 画廊网格（LOGO/文化墙/合作品牌） */
.gallery { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.gallery-4 { grid-template-columns: repeat(4,1fr); }

/* ===== 首页：公司优势条目 ===== */
.advantage {
  background: #fff; border-radius: 14px; padding: 26px 22px;
  border: 1px solid #f0f0f0; border-top: 4px solid var(--green);
  box-shadow: 0 6px 22px rgba(0,0,0,.06);
  transition: transform .25s, box-shadow .25s;
}
.advantage:hover { transform: translateY(-6px); box-shadow: 0 14px 34px rgba(0,0,0,.12); }
.adv-icon { font-size: 34px; margin-bottom: 12px; line-height: 1; }
.advantage h3 { font-size: 17px; margin-bottom: 8px; color: #222; }
.advantage p { color: var(--gray); font-size: 14px; line-height: 1.6; }

/* ===== 首页：克重产品卡顶部色条（与克重角标配色呼应） ===== */
.card.gsm-70 { border-top: 4px solid #00a651; }
.card.gsm-75 { border-top: 4px solid #2e9bdd; }
.card.gsm-80 { border-top: 4px solid #f5a623; }

/* ===== 首页：出口区域标签 ===== */
.countries {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
  margin-top: 34px;
}
.countries span {
  padding: 9px 20px; border-radius: 999px;
  background: #fff; border: 1px solid #e3e3e3;
  font-size: 14px; font-weight: 600; color: #444;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
  transition: border-color .2s, color .2s;
}
.countries span:hover { border-color: var(--green); color: var(--green); }

@media (max-width: 1100px) { .gallery-4 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px)  { .gallery-4 { grid-template-columns: 1fr; } }
.gallery .g-item {
  background: #fff; border-radius: 14px; overflow: hidden;
  box-shadow: 0 6px 22px rgba(0,0,0,.07); border: 1px solid #f0f0f0;
}
.gallery .g-item img { width: 100%; height: 240px; object-fit: cover; }
.gallery .g-item .cap { padding: 14px 16px; font-weight: 600; font-size: 14px; }
@media (max-width: 900px) { .gallery { grid-template-columns: 1fr; } .book { width: 300px; height: 400px; } }

/* ===== 响应式 ===== */
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2, .split { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .footer .cols { grid-template-columns: 1fr 1fr; }
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0; background: #fff;
    flex-direction: column; gap: 0; max-height: 0; overflow: hidden;
    transition: max-height .3s; box-shadow: 0 8px 20px rgba(0,0,0,.08);
  }
  .nav-links.open { max-height: 360px; }
  /* 移动端屏幕窄，导航条收窄、logo 缩小，避免挤压汉堡菜单 */
  .nav .inner { height: 78px; }
  .logo { height: 46px; }
  .nav-links li { padding: 14px 24px; border-bottom: 1px solid #f0f0f0; }
  .nav-toggle { display: block; }
  .hero h1 { font-size: 30px; }
  .section { padding: 60px 0; }
}