/* 国参集团官网首页 —— 依据 01-首页.psd 还原
   字体：GuoshenSans/GuoshenSerif 品牌字体（随 PSD 交付，子集化自托管）
   设计稿画布 1920px，内容容器 1320px，页头容器 1448px */

@font-face {
  font-family: 'Guoshen Sans';
  src: url('../fonts/guoshen-sans-400.woff2') format('woff2');
  font-weight: 400; font-display: swap;
}
@font-face {
  font-family: 'Guoshen Sans';
  src: url('../fonts/guoshen-sans-500.woff2') format('woff2');
  font-weight: 500; font-display: swap;
}
@font-face {
  font-family: 'Guoshen Sans';
  src: url('../fonts/guoshen-sans-550.woff2') format('woff2');
  font-weight: 550; font-display: swap;
}
@font-face {
  font-family: 'Guoshen Sans';
  src: url('../fonts/guoshen-sans-600.woff2') format('woff2');
  font-weight: 600; font-display: swap;
}
@font-face {
  font-family: 'Guoshen Serif';
  src: url('../fonts/guoshen-serif-400.woff2') format('woff2');
  font-weight: 400; font-display: swap;
}
@font-face {
  font-family: 'Guoshen Serif';
  src: url('../fonts/guoshen-serif-500.woff2') format('woff2');
  font-weight: 500; font-display: swap;
}
@font-face {
  font-family: 'Guoshen Serif';
  src: url('../fonts/guoshen-serif-600.woff2') format('woff2');
  font-weight: 600; font-display: swap;
}
@font-face {
  font-family: 'Guoshen Serif';
  src: url('../fonts/guoshen-serif-650.woff2') format('woff2');
  font-weight: 650; font-display: swap;
}
@font-face {
  font-family: 'Guoshen Serif';
  src: url('../fonts/guoshen-serif-700.woff2') format('woff2');
  font-weight: 700; font-display: swap;
}

:root {
  --red: #ed252a;          /* 品牌红：logo / 导航高亮（PSD 取色） */
  --accent: #796857;       /* 卡片标签 / 阅读全文 棕色 */
  --tan: #ad8963;          /* 标签栏高亮下划线 */
  --ink: #282725;          /* 主文字 */
  --gray: #bdb9b4;         /* 摘要文字 */
  --cream: #faf8f4;        /* 新闻区米白底 */
  --footer-bg: #292826;    /* 页脚深底 */
  --bar-bg: #2d2c28;       /* 页脚底条 */
  --serif: 'Guoshen Serif', 'Noto Serif SC', 'Songti SC', SimSun, serif;
  --sans: 'Guoshen Sans', 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); font-weight: 400; color: var(--ink); background: #fff; -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column; }
/* sticky footer：内容短于视口时 footer 也贴底（含缩放页，zoom 占位参与 flex 计算） */
.site-footer { margin-top: auto; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { background: none; border: 0; cursor: pointer; font: inherit; color: inherit; }

.container { width: 1320px; max-width: 92%; margin: 0 auto; }

/* ======== 顶部导航 ======== */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; }
.header-inner { width: 1448px; max-width: 94%; height: 92px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.brand img { height: 56px; width: auto; }
.site-nav { display: flex; gap: 40px; }
.site-nav a { position: relative; font-size: 15px; font-weight: 500; color: var(--ink); padding: 8px 0; transition: color .2s; }
.site-nav a:hover { color: var(--red); }
/* 导航激活态（全站统一，原 06-新闻资讯.psd 标准）：棕字 #795939 + 全字宽 1px 棕线 */
.site-nav a.active { color: #795939; font-weight: 600; }
.site-nav a.active::after {
  content: ""; position: absolute; left: 50%; bottom: 2px; transform: translateX(-50%);
  width: 100%; height: 1px; background: #795939;
}
.nav-toggle { display: none; padding: 4px; }
.nav-toggle img { width: 40px; height: auto; display: block; }
.nav-toggle:hover img { content: url('../icons/022_Mobile_打开导航菜单_悬停@2x.png'); }

/* ======== 首屏轮播 ======== */
.hero { position: relative; height: 770px; overflow: hidden; background: #0c0f0a; }
.hero-bg {
  position: absolute; inset: 0; background-size: 100% 100%; background-position: center;
  opacity: 0; transition: opacity 1s ease;
}
.hero-bg.is-active { opacity: 1; }
/* 第二张轮播（产业园）：左侧暗化渐变，参数自 01-首页_产业园轮播.psd 反推 */
.hero-bg--shade::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg,
    rgba(0, 0, 0, .70) 0%, rgba(0, 0, 0, .52) 25%,
    rgba(0, 0, 0, .36) 48%, rgba(0, 0, 0, .14) 62%, rgba(0, 0, 0, 0) 75%);
}
.hero-layer { position: relative; height: 100%; }
.hero-text {
  position: absolute; left: 0; right: 0; top: 130px;
  color: #fff; opacity: 0; transform: translateY(18px);
  transition: opacity .9s ease, transform .9s ease; pointer-events: none;
}
.hero-text.is-active { opacity: 1; transform: none; }
.hero-label { font-size: 16px; font-weight: 500; letter-spacing: 6px; opacity: .92; }
.hero-title {
  margin-top: 26px;
  font-family: var(--serif); font-weight: 700;
  font-size: 76px; line-height: 1.32; letter-spacing: 4px;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .28);
}
.hero-tagline { margin-top: 30px; font-size: 17px; letter-spacing: 8px; opacity: .9; }

.hero-ctrl {
  position: absolute; left: 0; right: 0; bottom: 20px;
  display: flex; align-items: flex-end; justify-content: space-between;
  color: #fff;
}
.ctrl-left { display: flex; align-items: center; gap: 9px; }
.hero-num { font-family: var(--serif); font-weight: 400; font-size: 32px; line-height: 1; }
.hero-num em { font-style: normal; display: inline-block; min-width: 2ch; }
.hero-num i { font-style: normal; font-family: var(--sans); font-size: 18px; opacity: .65; margin-left: 4px; }
.ctrl-btn { width: 44px; height: 44px; background: center / 44px no-repeat; }
.btn-prev { margin-left: 133px; background-image: url('../icons/001_PC_上一张_默认@2x.png'); }
.btn-prev:hover { background-image: url('../icons/001_PC_上一张_悬停@2x.png'); }
.btn-next { background-image: url('../icons/002_PC_下一张_默认@2x.png'); }
.btn-next:hover { background-image: url('../icons/002_PC_下一张_悬停@2x.png'); }
.btn-pause { background-image: url('../icons/003_PC_暂停轮播_默认@2x.png'); }
.btn-pause:hover { background-image: url('../icons/003_PC_暂停轮播_悬停@2x.png'); }
/* 官方无"播放"带圈切图：按官方按钮规格画圈（44px 圆 + 1px 半透明白描边） */
.btn-pause.is-paused,
.btn-pause.is-paused:hover {
  background-image: url('../icons/Play_白色.svg');
  background-size: 15px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .6);
}
.btn-pause.is-paused:hover { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .9); }
.ctrl-more {
  display: inline-flex; align-items: center; gap: 10px;
  color: #fff; font-size: 15px; letter-spacing: 2px; opacity: .92; transition: opacity .2s;
}
.ctrl-more:hover { opacity: 1; }
/* 首屏：裸白下箭头（设计稿无圆圈） */
.hero .ctrl-more img { width: 20px; height: 20px; }
/* 横幅：白色实心圆盘 + 镂空右箭头（设计稿样式） */
.ctrl-more .disc {
  width: 26px; height: 26px; flex: none;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 26 26"><mask id="m"><rect width="26" height="26" fill="white"/><path d="M10.2 8.2l4.8 4.8-4.8 4.8" fill="none" stroke="black" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"/></mask><circle cx="13" cy="13" r="13" fill="white" mask="url(%23m)"/></svg>') center / contain no-repeat;
}

/* ======== 新闻资讯 ======== */
.news { background: var(--cream); padding: 42px 0 96px; }
.news-tabs { display: flex; gap: 46px; }
.tab {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 2px 14px; font-size: 17px; color: #6d6a63;
  border-bottom: 2px solid transparent;
}
.tab img { width: 19px; height: 19px; }
.tab.is-active { color: var(--ink); font-weight: 600; border-bottom-color: var(--tan); }
.tab:hover { color: var(--ink); }

.news-grid {
  margin-top: 46px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px 30px;
}
.news-card { display: flex; flex-direction: column; }
.card-pic { overflow: hidden; aspect-ratio: 419 / 260; }
.card-pic img { width: 100%; height: 100%; object-fit: fill; transition: transform .5s ease; }
.news-card:hover .card-pic img { transform: scale(1.045); }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 24px 0 0; }
.card-label { color: var(--accent); font-size: 13px; letter-spacing: 1px; padding: 0 22px; }
.card-title { margin-top: 10px; padding: 0 22px; font-family: var(--sans); font-weight: 600; font-size: 20px; line-height: 1.55; color: var(--ink); }
.card-title a:hover { color: var(--red); }
.card-excerpt {
  margin-top: 14px; margin-bottom: 26px; padding: 0 22px;
  font-size: 13px; line-height: 1.85; color: #766653;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.card-foot {
  margin-top: auto; padding: 16px 22px 26px;
  border-top: 0; /* 与新闻列表页一致：分隔线在"阅读全文"下方 */
  border-bottom: 1px solid #e2dacf;
  display: flex; align-items: center; justify-content: space-between;
}
.card-foot a { font-size: 13px; color: var(--accent); letter-spacing: 1px; }
.card-foot a:hover { color: var(--red); }
.card-foot .go {
  position: relative;
  width: 26px; height: 26px;
  border: 1px solid rgba(120, 92, 66, .45); border-radius: 50%;
  transition: all .25s;
}
.card-foot .go::before {
  content: ""; position: absolute; inset: 0; margin: auto; width: 13px; height: 13px;
  background-color: var(--accent);
  -webkit-mask: url('../icons/ArrowUpRight_驼棕.svg') center / 18px no-repeat;
  mask: url('../icons/ArrowUpRight_驼棕.svg') center / 18px no-repeat;
  transition: background-color .25s;
}
.news-card:hover .go { background: var(--red); border-color: var(--red); }
.news-card:hover .go::before { background-color: #fff; }
.news-empty { grid-column: 1 / -1; padding: 60px 0; text-align: center; color: var(--gray); }

/* ======== 全宽横幅 ======== */
.banner { position: relative; background-size: 100% 100%; background-position: center; color: #fff; }
.banner-ginseng { height: 454px; margin-bottom: 26px; background-image: url('../images/banner-ginseng.webp'); }
.banner-mountains { height: 461px; margin-bottom: 24px; background-image: url('../images/banner-mountains.webp'); }
.banner-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; position: relative; }
.banner-text { align-self: center; }
.banner-label { font-size: 14px; font-weight: 500; letter-spacing: 5px; opacity: .85; }
.banner-title {
  margin-top: 20px;
  font-family: var(--serif); font-weight: 650;
  font-size: 46px; line-height: 1.5; letter-spacing: 5px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, .35);
}
.banner-title span { display: block; }
.banner-title .indent { padding-left: 64px; }
.banner .ctrl-more { position: absolute; right: 0; bottom: 39px; }
/* ======== 页脚 ======== */
.site-footer { background: var(--footer-bg); color: #cfcac2; }
.footer-grid {
  display: grid; grid-template-columns: 120px 1.2fr 1.35fr .9fr .9fr;
  gap: 32px; padding: 56px 0 52px;
}
.f-qr img { display: block; width: 116px; height: auto; }
.f-name { font-family: var(--serif); font-weight: 650; font-size: 32px; letter-spacing: 4px; color: #e8e1d5; }
.f-sub { margin-top: 8px; font-family: var(--serif); font-weight: 650; font-size: 11px; letter-spacing: 5px; color: #b8a78f; }
.f-slogan { margin-top: 18px; font-family: var(--serif); font-weight: 600; font-size: 24px; letter-spacing: 3px; color: #e8e1d5; }
.f-label { font-size: 14px; color: #c7b394; letter-spacing: 2px; }
.f-value { margin: 6px 0 14px; font-size: 13px; letter-spacing: 1px; color: #aaa69f; }
.f-links { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.f-links a { display: inline-flex; align-items: center; gap: 12px; font-size: 14px; letter-spacing: 2px; color: #ccc5b9; transition: color .2s; }
.f-links a::after {
  content: ""; width: 26px; height: 26px; flex: none;
  border: 1px solid #4a473f; border-radius: 50%;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M7 7h10v10M7 17 17 7" fill="none" stroke="%238d897f" stroke-width="2"/></svg>') center / 18px no-repeat;
  transition: all .25s;
}
.f-links a:hover { color: #fff; }
.f-links a:hover::after { border-color: var(--red); background-color: var(--red); }
.footer-bar { background: var(--bar-bg); border-top: 1px solid rgba(255, 255, 255, .07); }
.bar-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 80px; font-size: 12px; color: #a29c93; letter-spacing: 1px;
}
.bar-inner a { display: inline-flex; align-items: center; gap: 8px; color: #d2c6b4; }
.bar-inner a:hover { color: #fff; }
.bar-inner img { width: 13px; height: 13px; }

/* 窄视口 zoom 缩放态（footer.php 加 .f-zoom）：字号整体放大约 1.3 倍补偿缩小 */
.f-zoom .f-name { font-size: 42px; }
.f-zoom .f-sub { font-size: 14px; }
.f-zoom .f-slogan { font-size: 31px; }
.f-zoom .f-label { font-size: 18px; }
.f-zoom .f-value { font-size: 17px; }
.f-zoom .f-links a { font-size: 18px; }
.f-zoom .f-links a::after { width: 32px; height: 32px; background-size: 22px; }
.f-zoom .bar-inner { font-size: 15px; }
.f-zoom .bar-inner img { width: 17px; height: 17px; }

/* ======== 响应式 ======== */
@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .site-nav {
    display: none; position: absolute; top: 92px; left: 0; right: 0;
    background: #fff; flex-direction: column; gap: 0;
    padding: 8px 4%; box-shadow: 0 12px 24px rgba(0, 0, 0, .08);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 13px 0; border-bottom: 1px solid #f0ede6; }
  .site-nav a.active::after { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-bg, .hero-text, .card-pic img { transition: none; }
}
