/* ==========================================================================
   湖南火源农业科技有限公司 官网
   配色取自公司 logo：火焰红 / 金 / 墨绿 / 水蓝（仅水产相关场景使用）
   ========================================================================== */

:root {
  --green-950: #0e2a18;
  --green-900: #143520;
  --green-800: #1b4429;
  --green-600: #2e6b3f;
  --green-100: #eaf0e6;
  --red: #d0362c;
  --red-dark: #b02a21;
  --gold: #c9a227;
  --blue: #2e86ab;
  --ink: #1a231c;
  --muted: #5a6b5d;
  --paper: #fbfaf5;
  --line: #dcd9cd;
  --font-display: "Songti SC", "Noto Serif SC", "Source Han Serif SC", "STZhongsong", "SimSun", serif;
  --font-body: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --shadow-card: 0 10px 30px rgba(20, 53, 32, 0.10);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.8;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

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

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.container { width: min(1160px, calc(100% - 48px)); margin: 0 auto; }

/* ===== 顶部导航 ===== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background-color 0.35s ease, box-shadow 0.35s ease;
}
.site-header.is-solid {
  background: rgba(251, 250, 245, 0.96);
  box-shadow: 0 1px 0 var(--line), 0 8px 24px rgba(20, 53, 32, 0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo {
  width: 46px;
  height: 46px;
  object-fit: cover;
  border-radius: 6px;
  background: #fff;
  padding: 2px;
}
.brand-name { display: flex; flex-direction: column; line-height: 1.25; }
.brand-name strong {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 0.14em;
  color: #fff;
  transition: color 0.35s ease;
}
.brand-name small {
  font-size: 10px;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.72);
  transition: color 0.35s ease;
}
.site-header.is-solid .brand-name strong { color: var(--green-900); }
.site-header.is-solid .brand-name small { color: var(--muted); }

.site-nav { display: flex; gap: 40px; }
.nav-link {
  position: relative;
  font-size: 15px;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.88);
  padding: 6px 0;
  transition: color 0.3s ease;
}
.site-header.is-solid .nav-link { color: var(--ink); }
.nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--red);
  transform: translateX(-50%);
  transition: width 0.3s ease;
}
.nav-link:hover,
.nav-link.is-active { color: #fff; }
.site-header.is-solid .nav-link:hover,
.site-header.is-solid .nav-link.is-active { color: var(--green-800); }
.nav-link.is-active::after,
.nav-link:hover::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: #fff;
  transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease;
}
.site-header.is-solid .nav-toggle span { background: var(--green-900); }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: url("../img/hero.jpg") center 62% / cover no-repeat;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(110% 90% at 18% 42%, rgba(14, 42, 24, 0.88) 0%, rgba(14, 42, 24, 0.42) 52%, rgba(14, 42, 24, 0.10) 100%),
    linear-gradient(to bottom, rgba(14, 42, 24, 0.30) 0%, rgba(14, 42, 24, 0.18) 55%, rgba(11, 33, 19, 0.72) 100%);
}
.hero-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 44px;
  padding-top: 76px;
}
.hero-vertical {
  writing-mode: vertical-rl;
  font-family: var(--font-display);
  font-size: 17px;
  letter-spacing: 0.52em;
  color: rgba(255, 255, 255, 0.82);
  border-left: 1px solid rgba(201, 162, 39, 0.65);
  padding-left: 16px;
  height: 290px;
  flex: none;
}
.hero-copy { max-width: 700px; }
.hero-eyebrow {
  font-size: 15px;
  letter-spacing: 0.42em;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 22px;
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 5.4vw, 64px);
  line-height: 1.22;
  letter-spacing: 0.06em;
  margin-bottom: 26px;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.35);
}
.hero-dot { color: var(--gold); }
.hero-sub {
  font-size: 17px;
  line-height: 2.1;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 40px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 13px 34px;
  font-size: 15px;
  letter-spacing: 0.18em;
  border-radius: 3px;
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--red);
  color: #fff;
  border: 1px solid var(--red);
}
.btn-primary:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.65);
  color: #fff;
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.14); border-color: #fff; }

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0.85;
}
.hero-scroll-line {
  width: 1px;
  height: 44px;
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.9));
  animation: scrollPulse 2.2s ease-in-out infinite;
  transform-origin: top;
}
.hero-scroll-text { font-size: 10px; letter-spacing: 0.4em; color: rgba(255, 255, 255, 0.75); }
@keyframes scrollPulse {
  0% { transform: scaleY(0); }
  55% { transform: scaleY(1); }
  100% { transform: scaleY(1); opacity: 0; }
}

/* ===== 通用 section ===== */
.section { padding: 96px 0; }
.section-head { margin-bottom: 48px; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  letter-spacing: 0.34em;
  color: var(--red);
  margin-bottom: 12px;
}
.eyebrow-flame {
  width: 10px;
  height: 10px;
  flex: none;
  background:
    radial-gradient(circle at 50% 62%, var(--gold) 0 34%, transparent 35%),
    conic-gradient(from -50deg at 50% 88%, var(--red) 0 52deg, transparent 52deg) ;
  clip-path: polygon(50% 0, 82% 46%, 68% 52%, 92% 58%, 74% 100%, 50% 84%, 26% 100%, 8% 58%, 32% 52%, 18% 46%);
  opacity: 0.9;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 4vw, 42px);
  letter-spacing: 0.14em;
  color: var(--green-900);
}
.sub-title {
  font-family: var(--font-display);
  font-size: 21px;
  letter-spacing: 0.18em;
  color: var(--green-800);
  margin: 56px 0 24px;
  padding-left: 14px;
  border-left: 3px solid var(--gold);
}
.sub-title:first-of-type { margin-top: 0; }

/* ===== 公司简介 ===== */
.section-about { background: var(--paper); }
.stats {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 56px;
}
.stat {
  padding: 26px 12px;
  text-align: center;
  border-left: 1px solid var(--line);
}
.stat:first-child { border-left: 0; }
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 40px;
  line-height: 1.2;
  color: var(--green-800);
}
.stat-num small { font-size: 18px; margin-left: 2px; color: var(--gold); }
.stat-label {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  letter-spacing: 0.22em;
  color: var(--muted);
}
.about-grid {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: 52px;
  align-items: start;
}
.about-text p { margin-bottom: 20px; text-align: justify; }
.about-text p:last-child { margin-bottom: 0; }
.about-figure { position: relative; margin: 0; }
.about-figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: var(--shadow-card);
}
.about-figure figcaption {
  margin-top: 14px;
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-align: center;
}
.about-figure::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 18px;
  left: 18px;
  right: -18px;
  bottom: -18px;
  border: 1px solid rgba(201, 162, 39, 0.5);
  border-radius: 4px;
}

/* ===== 公司展示 ===== */
.section-showcase { background: var(--green-100); }
.biz-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.biz-card {
  margin: 0;
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.biz-card:hover { transform: translateY(-6px); box-shadow: 0 18px 44px rgba(20, 53, 32, 0.16); }
.biz-card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.biz-card figcaption { padding: 22px 24px 26px; }
.biz-card h4 {
  font-family: var(--font-display);
  font-size: 19px;
  letter-spacing: 0.14em;
  color: var(--green-900);
  margin-bottom: 10px;
}
.biz-card p { font-size: 14px; line-height: 1.9; color: var(--muted); }

.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.svc-card {
  background: #fff;
  border-radius: 4px;
  padding: 30px 28px;
  box-shadow: var(--shadow-card);
}
.svc-icon {
  display: inline-flex;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--green-100);
  color: var(--green-700, var(--green-600));
  margin-bottom: 18px;
}
.svc-icon svg { width: 26px; height: 26px; }
.svc-card h4 {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.1em;
  color: var(--green-900);
  margin-bottom: 10px;
}
.svc-card p { font-size: 14px; line-height: 1.9; color: var(--muted); }

.patent-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.patent-card {
  margin: 0;
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.patent-card:hover { transform: translateY(-6px); box-shadow: 0 18px 44px rgba(20, 53, 32, 0.16); }
.patent-thumb {
  position: relative;
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  background: #fff;
  cursor: zoom-in;
}
.patent-thumb img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; }
.patent-zoom {
  position: absolute;
  inset: auto 0 0 0;
  padding: 12px 0;
  text-align: center;
  font-size: 13px;
  letter-spacing: 0.2em;
  color: #fff;
  background: linear-gradient(to top, rgba(14, 42, 24, 0.82), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.patent-card:hover .patent-zoom { opacity: 1; }
.patent-card figcaption { padding: 20px 24px 24px; }
.patent-card h4 {
  font-family: var(--font-display);
  font-size: 17px;
  letter-spacing: 0.06em;
  line-height: 1.6;
  color: var(--green-900);
  margin-bottom: 10px;
  min-height: 54px;
}
.patent-meta { font-size: 12.5px; color: var(--muted); line-height: 1.9; }

/* ===== 联系方式 ===== */
.section-contact {
  background:
    radial-gradient(90% 130% at 85% 20%, rgba(201, 162, 39, 0.14) 0%, transparent 55%),
    linear-gradient(160deg, var(--green-800) 0%, var(--green-950) 100%);
  color: #fff;
  padding: 88px 0;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 48px;
  align-items: center;
}
.eyebrow-light { color: var(--gold); }
.section-contact .section-title { color: #fff; }
.contact-lead {
  margin: 18px 0 36px;
  font-size: 16px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.82);
}
.contact-list { list-style: none; }
.contact-list li {
  display: flex;
  align-items: baseline;
  gap: 22px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.contact-list li:first-child { border-top: 1px solid rgba(255, 255, 255, 0.14); }
.contact-label {
  flex: none;
  width: 132px;
  font-size: 13px;
  letter-spacing: 0.22em;
  color: var(--gold);
}
.contact-value { font-size: 16px; letter-spacing: 0.04em; color: rgba(255, 255, 255, 0.94); }
.contact-value a:hover { color: var(--gold); }
.contact-brand { text-align: center; }
.contact-brand img {
  width: min(240px, 70%);
  margin: 0 auto 18px;
  border-radius: 8px;
  background: #fff;
  padding: 14px;
  opacity: 0.96;
}
.contact-brand p { font-size: 13px; letter-spacing: 0.2em; color: rgba(255, 255, 255, 0.6); }

/* ===== 页脚 ===== */
.site-footer {
  background: #0a2113;
  color: rgba(255, 255, 255, 0.55);
  padding: 22px 0;
  font-size: 12.5px;
  letter-spacing: 0.06em;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.footer-beian { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-beian a:hover { color: var(--gold); }

/* ===== 证书放大层 ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: rgba(10, 33, 19, 0.88);
}
.lightbox[hidden] { display: none; }
.lightbox img {
  max-height: calc(100vh - 96px);
  max-width: min(760px, 92vw);
  border-radius: 4px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}
.lightbox-close {
  position: absolute;
  top: 18px;
  right: 26px;
  font-size: 40px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.85);
  background: none;
  border: 0;
  cursor: pointer;
}
.lightbox-close:hover { color: #fff; }

/* ===== 入场动画 ===== */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* 首屏文案用纯 CSS 动画，不依赖 JS，保证任何环境下都可见 */
@keyframes heroIn {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: none; }
}
@keyframes heroFade {
  from { opacity: 0; }
  to { opacity: 1; }
}
/* 竖排文字仅做透明度淡入：竖排书写模式与位移动画组合在部分渲染器下不绘制 */
.hero-vertical { animation: heroFade 1.2s 0.2s ease both; }
.hero-eyebrow { animation: heroIn 0.8s 0.25s ease both; }
.hero-title { animation: heroIn 0.9s 0.38s ease both; }
.hero-sub { animation: heroIn 0.9s 0.52s ease both; }
.hero-actions { animation: heroIn 0.9s 0.66s ease both; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-vertical, .hero-eyebrow, .hero-title, .hero-sub, .hero-actions { animation: none; }
  .hero-scroll-line { animation: none; }
  .biz-card, .patent-card { transition: none; }
}

/* ===== 响应式 ===== */
@media (max-width: 960px) {
  .section { padding: 72px 0; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat { border-left: 0; border-top: 1px solid var(--line); }
  .stat:nth-child(-n+2) { border-top: 0; }
  .stat:nth-child(even) { border-left: 1px solid var(--line); }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .biz-grid, .svc-grid, .patent-grid { grid-template-columns: 1fr 1fr; }
  .hero-vertical { display: none; }
  .contact-brand { order: -1; }
  .contact-brand img { width: 180px; }
}

@media (max-width: 640px) {
  body { font-size: 15px; }
  .header-inner { height: 64px; }
  .brand-logo { width: 38px; height: 38px; }
  .brand-name strong { font-size: 17px; }
  .brand-name small { display: none; }

  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(251, 250, 245, 0.98);
    box-shadow: 0 16px 30px rgba(20, 53, 32, 0.14);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
  }
  .site-nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .site-nav .nav-link {
    color: var(--ink);
    padding: 16px 24px;
    border-top: 1px solid var(--line);
  }
  .site-nav .nav-link::after { display: none; }
  .site-nav .nav-link.is-active { color: var(--red); }

  .hero-inner { padding-top: 90px; }
  .hero-title { font-size: clamp(34px, 10vw, 44px); }
  .hero-sub br { display: none; }

  .stats { margin-bottom: 44px; }
  .stat-num { font-size: 32px; }
  .biz-grid, .svc-grid, .patent-grid { grid-template-columns: 1fr; }
  .contact-list li { flex-direction: column; gap: 4px; }
  .contact-label { width: auto; }
  .footer-inner { flex-direction: column; text-align: center; }
}
