/* ============================================================
   澜启科技 官网 · 全局样式
   设计系统：颜色 / 字体 / 间距 / 组件 / 响应式
   ============================================================ */

:root {
  /* 品牌色 · 京美姬植物养发（自然绿 + 暖琥珀） */
  --primary: #2f7d4f;
  --primary-dark: #1e5c38;
  --primary-light: #eaf5ed;
  --accent: #b4762e;
  --accent-soft: #fbf1e2;
  --warm: #c98a3c;

  /* 中性色 */
  --ink: #0f172a;
  --body: #475569;
  --muted: #94a3b8;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-soft: #f8fafc;

  /* 设计变量 */
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px rgba(15, 23, 42, .07);
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, .12);
  --maxw: 1200px;
  --nav-h: 72px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--body);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }

h1, h2, h3, h4 { color: var(--ink); line-height: 1.25; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); letter-spacing: -.01em; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.container { width: min(100% - 40px, var(--maxw)); margin-inline: auto; }
.section { padding: 88px 0; }
.section-soft { background: var(--bg-soft); }
.section-tight { padding: 56px 0; }

/* 跳转链接（可访问性） */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--primary); color: #fff; padding: 10px 18px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: var(--radius-sm); font-weight: 600;
  border: 1px solid transparent; cursor: pointer; transition: .25s ease;
  font-size: .95rem; line-height: 1.2; text-align: center;
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 8px 20px rgba(47, 125, 79, .22); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(47, 125, 79, .3); }
.btn-outline { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-light { background: #fff; color: var(--primary); }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.35); }
.btn-ghost:hover { background: rgba(255,255,255,.22); }
.btn-sm { padding: 9px 18px; font-size: .85rem; }
.btn-group { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- 通用标题区 ---------- */
.section-head { max-width: 720px; margin: 0 auto 52px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.eyebrow {
  display: inline-block; color: var(--primary); font-weight: 700; font-size: .82rem;
  letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px;
}
.section-head p { font-size: 1.05rem; color: var(--body); }

/* ---------- 导航栏 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--nav-h);
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; color: var(--ink); letter-spacing: -.01em; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px; flex: none;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 1.05rem;
}
.brand-sub { color: var(--muted); font-weight: 500; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; }
.brand-logo { height: 42px; width: auto; display: block; flex: none; }
.site-footer .brand-logo { height: 38px; }

/* 产品实拍图库 */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.gallery-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.gallery-item img { width: 100%; height: 210px; object-fit: contain; display: block; background: #fff; padding: 14px; }
.gallery-item figcaption { padding: 0 16px 16px; font-size: .86rem; color: var(--muted); text-align: center; }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.nav-menu { display: flex; align-items: center; gap: 4px; }
.nav-menu a {
  padding: 9px 15px; border-radius: 8px; font-size: .92rem; font-weight: 600; color: var(--body);
  transition: .2s ease; white-space: nowrap;
}
.nav-menu a:hover { color: var(--primary); background: var(--primary-light); }
.nav-menu a.active { color: var(--primary); background: var(--primary-light); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.menu-toggle {
  display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 9px;
  background: #fff; cursor: pointer; padding: 0; place-items: center;
}
.menu-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); margin: 4px auto; border-radius: 2px; transition: .25s; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(135deg, #1e5c38 0%, #2f7d4f 55%, #6b9e5c 100%);
  padding: 100px 0 110px;
}
.hero::before, .hero::after {
  content: ''; position: absolute; border-radius: 50%; pointer-events: none;
}
.hero::before { width: 560px; height: 560px; right: -160px; top: -200px; background: rgba(255,255,255,.07); }
.hero::after { width: 340px; height: 340px; left: -120px; bottom: -180px; background: rgba(255,255,255,.05); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; position: relative; z-index: 1; }
.hero h1 { color: #fff; margin-bottom: 22px; }
.hero h1 .hl { color: #bae6fd; }
.hero-lead { font-size: 1.12rem; color: rgba(255,255,255,.86); max-width: 560px; margin-bottom: 34px; }
.hero-visual { position: relative; }
.hero-card {
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25);
  border-radius: 20px; padding: 28px; backdrop-filter: blur(8px); box-shadow: var(--shadow-lg);
}
.hero-card h4 { color: #fff; margin-bottom: 18px; }
.metric-row { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.16); }
.metric-row:last-child { border-bottom: 0; }
.metric-row span { color: rgba(255,255,255,.8); font-size: .9rem; }
.metric-row strong { color: #fff; font-size: 1.25rem; }

/* ---------- 数据条 ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { text-align: center; padding: 30px 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.stat-num { font-size: 2.2rem; font-weight: 800; color: var(--primary); line-height: 1.1; }
.stat-label { color: var(--body); font-size: .9rem; margin-top: 8px; }

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

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow); transition: .3s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: #bfdbfe; }
.card-icon {
  width: 52px; height: 52px; border-radius: 13px; display: grid; place-items: center;
  background: var(--primary-light); color: var(--primary); margin-bottom: 20px; font-size: 1.4rem;
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--body); font-size: .94rem; margin: 0; }
.card-link { display: inline-flex; align-items: center; gap: 6px; color: var(--primary); font-weight: 600; font-size: .9rem; margin-top: 18px; }
.card-link:hover { gap: 10px; }

/* ---------- 内容分栏 ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split-visual {
  background: linear-gradient(145deg, var(--primary-light), var(--accent-soft));
  border: 1px solid #bfdbfe; border-radius: 22px; min-height: 340px; padding: 36px;
  display: flex; flex-direction: column; justify-content: center; gap: 16px;
}
.split-visual .chip {
  background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px;
  box-shadow: var(--shadow); font-weight: 600; color: var(--ink); font-size: .92rem;
}
.check-list li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.check-list li::before {
  content: '✓'; flex: none; width: 22px; height: 22px; border-radius: 50%;
  background: var(--primary-light); color: var(--primary); font-weight: 800; font-size: .8rem;
  display: grid; place-items: center; margin-top: 3px;
}

/* ---------- 页头 Banner ---------- */
.page-banner {
  background: linear-gradient(135deg, #1e5c38, #2f7d4f); color: #fff;
  padding: 70px 0 76px; text-align: center; position: relative; overflow: hidden;
}
.page-banner::after { content:''; position:absolute; width:420px; height:420px; right:-100px; top:-220px; border-radius:50%; background: rgba(255,255,255,.06); }
.page-banner h1 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.9rem); margin-bottom: 12px; position: relative; }
.page-banner p { color: rgba(255,255,255,.82); font-size: 1.05rem; margin: 0; position: relative; }
.breadcrumb { font-size: .85rem; color: rgba(255,255,255,.7); margin-bottom: 18px; position: relative; }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }

/* ---------- 时间线 ---------- */
.timeline { position: relative; max-width: 760px; margin: 0 auto; }
.timeline::before { content:''; position:absolute; left: 17px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline-item { position: relative; padding-left: 58px; margin-bottom: 32px; }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-year {
  position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%;
  background: var(--primary); color: #fff; display: grid; place-items: center;
  font-size: .72rem; font-weight: 800; z-index: 1;
}
.timeline-item h3 { font-size: 1.1rem; margin-bottom: 4px; }
.timeline-item p { margin: 0; font-size: .94rem; }

/* ---------- 新闻 ---------- */
.news-filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 36px; }
.filter-btn {
  padding: 9px 20px; border: 1px solid var(--line); border-radius: 999px; background: #fff;
  color: var(--body); font-weight: 600; font-size: .88rem; cursor: pointer; transition: .2s;
}
.filter-btn:hover { border-color: var(--primary); color: var(--primary); }
.filter-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.news-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.news-thumb {
  height: 160px; display: grid; place-items: center; font-size: 2.6rem; color: #fff;
  background: linear-gradient(135deg, var(--primary), #6b9e5c);
}
.news-thumb.alt { background: linear-gradient(135deg, #1e5c38, #4a8a6a); }
.news-thumb.warm { background: linear-gradient(135deg, #a3672a, #d9a35a); }
.news-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.news-meta { display: flex; align-items: center; gap: 12px; font-size: .8rem; color: var(--muted); margin-bottom: 10px; }
.news-tag { color: var(--primary); background: var(--primary-light); padding: 3px 10px; border-radius: 999px; font-weight: 600; }
.news-body h3 { font-size: 1.08rem; }
.news-body p { font-size: .9rem; margin-bottom: 16px; flex: 1; }
.news-card[hidden] { display: none; }

/* ---------- 联系表单 ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.contact-info { display: grid; gap: 16px; }
.info-item {
  display: flex; gap: 16px; align-items: flex-start; padding: 20px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.info-icon {
  width: 44px; height: 44px; flex: none; border-radius: 11px; background: var(--primary-light);
  color: var(--primary); display: grid; place-items: center; font-size: 1.15rem;
}
.info-item h4 { font-size: .98rem; margin-bottom: 3px; }
.info-item p { margin: 0; font-size: .9rem; color: var(--body); }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .88rem; color: var(--ink); margin-bottom: 7px; }
.field label .req { color: #dc2626; }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-family: inherit; font-size: .92rem; color: var(--ink); background: #fff; transition: .2s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(29,78,216,.12); }
.field textarea { resize: vertical; min-height: 120px; }
.field .err { color: #dc2626; font-size: .8rem; margin-top: 5px; display: none; }
.field.invalid .err { display: block; }
.field.invalid input, .field.invalid textarea { border-color: #dc2626; }
.form-note { font-size: .8rem; color: var(--muted); margin: 0 0 16px; }
.form-msg { margin-top: 16px; padding: 12px 16px; border-radius: 8px; font-size: .9rem; display: none; }
.form-msg.ok { display: block; background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }

/* ---------- CTA 横幅 ---------- */
.cta-band {
  background: linear-gradient(135deg, #1e5c38, #2f7d4f); color: #fff;
  border-radius: 22px; padding: 52px 48px; text-align: center; position: relative; overflow: hidden;
}
.cta-band h2 { color: #fff; margin-bottom: 12px; }
.cta-band p { color: rgba(255,255,255,.85); max-width: 620px; margin: 0 auto 26px; }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--ink); color: #cbd5e1; padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; }
.site-footer .brand { color: #fff; margin-bottom: 16px; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 18px; }
.site-footer a:hover { color: #fff; }
.footer-links li { margin-bottom: 10px; font-size: .9rem; }
.footer-contact li { margin-bottom: 12px; font-size: .9rem; display: flex; gap: 10px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 22px 0; text-align: center; font-size: .82rem; color: #94a3b8; }
.footer-bottom a { color: #94a3b8; }
.footer-bottom a:hover { color: #fff; }

/* ---------- 动画 ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-grid { gap: 36px; }
}

@media (max-width: 860px) {
  .nav-menu {
    display: none; position: absolute; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px; background: #fff;
    border-bottom: 1px solid var(--line); padding: 14px 20px 20px; box-shadow: var(--shadow);
  }
  .nav-menu.open { display: flex; }
  .nav-menu a { padding: 12px 14px; }
  .menu-toggle { display: grid; }
  .nav-cta .btn { display: none; }
  .hero-grid, .split, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 76px 0 84px; }
  .hero-visual { display: none; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 64px 0; }
}

@media (max-width: 560px) {
  .stats { grid-template-columns: 1fr 1fr; gap: 14px; }
  .stat-num { font-size: 1.7rem; }
  .grid-4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .cta-band { padding: 40px 24px; }
  .btn-group .btn { width: 100%; }
  .news-filters { justify-content: flex-start; }
}

/* ---------- 可访问性 ---------- */
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
