/* ============================================================
   广州智鹏农业科技有限公司 — 企业官网样式
   Design language: minimal, editorial, generous whitespace
   ============================================================ */

:root {
  --ink: #16211c;
  --ink-soft: #3d4b44;
  --muted: #5f6d65;
  --line: #e4e7df;
  --line-soft: #eef0e9;
  --paper: #fdfdfa;
  --sand: #f5f4ee;
  --sage: #e9f0e5;

  --green-900: #0b3226;
  --green-800: #113f2e;
  --green-700: #1a5540;
  --green-600: #266b50;
  --green-500: #3a8464;
  --gold: #a9854a;
  --gold-ink: #8a6a34; /* 浅底上的金色文字，对比度 4.9:1 */

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;

  --shadow-sm: 0 1px 2px rgba(11, 50, 38, 0.04), 0 10px 24px rgba(11, 50, 38, 0.05);
  --shadow-md: 0 24px 60px rgba(11, 50, 38, 0.11);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --nav-h: 76px;
  --container: 1240px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }

::selection { background: var(--green-700); color: #fff; }

/* ---------------- Accessibility: skip link & focus ---------------- */

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 200;
  padding: 12px 22px;
  background: var(--green-700);
  color: #fff;
  font-size: 0.9rem;
  border-radius: 0 0 8px 8px;
  transition: top 0.25s var(--ease);
}
.skip-link:focus { top: 0; }

:focus-visible {
  outline: 2px solid var(--green-600);
  outline-offset: 3px;
}
.site-header :focus-visible,
.site-footer :focus-visible,
.cta-band :focus-visible,
.section--ink :focus-visible,
.hero :focus-visible { outline-color: #d6e8dc; }

/* ---------------- Typography ---------------- */

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 500;
  line-height: 1.28;
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(2.1rem, 4.6vw, 3.9rem); letter-spacing: 0.02em; }
h2 { font-size: clamp(1.65rem, 2.9vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.4rem); }
h4 { font-size: 1.02rem; }

p { margin: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--green-600);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}
.eyebrow--light { color: rgba(233, 240, 229, 0.75); }

.lead {
  font-size: clamp(1rem, 1.15vw, 1.08rem);
  line-height: 1.95;
  color: var(--ink-soft);
}

.num { font-variant-numeric: tabular-nums; }

/* ---------------- Layout ---------------- */

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

.section { padding: clamp(72px, 9vw, 132px) 0; }
.section--tight { padding: clamp(56px, 6vw, 88px) 0; }
.section--sand { background: var(--sand); }
.section--sage { background: var(--sage); }
.section--ink { background: var(--green-900); color: #eef3ea; }
.section--ink .lead { color: rgba(233, 240, 229, 0.72); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: clamp(40px, 5vw, 68px);
}
.section-head__main { max-width: 640px; }
.section-head h2 { margin-top: 18px; }
.section-head .lead { margin-top: 20px; }

.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---------------- Buttons ---------------- */

.btn {
  --btn-bg: var(--green-700);
  --btn-fg: #fff;
  --btn-bd: var(--green-700);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 50px;
  padding: 0 30px;
  border: 1px solid var(--btn-bd);
  border-radius: 1px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background 0.35s var(--ease), color 0.35s var(--ease),
    border-color 0.35s var(--ease), transform 0.35s var(--ease);
}
.btn svg { width: 15px; height: 15px; transition: transform 0.35s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:hover svg { transform: translateX(4px); }
.btn:active { transform: translateY(0); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--green-800);
  --btn-bd: rgba(17, 63, 46, 0.28);
}
.btn--ghost:hover { --btn-bg: var(--green-800); --btn-fg: #fff; --btn-bd: var(--green-800); }

.btn--light {
  --btn-bg: #fff;
  --btn-fg: var(--green-900);
  --btn-bd: #fff;
}
.btn--light:hover { --btn-bg: transparent; --btn-fg: #fff; }

.btn--outline-light {
  --btn-bg: transparent;
  --btn-fg: #fff;
  --btn-bd: rgba(255, 255, 255, 0.4);
}
.btn--outline-light:hover { --btn-bg: #fff; --btn-fg: var(--green-900); --btn-bd: #fff; }

.btn--block { width: 100%; }
.btn--sm { height: 42px; padding: 0 22px; font-size: 0.85rem; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--green-700);
}
.link-arrow svg { width: 14px; height: 14px; transition: transform 0.35s var(--ease); }
.link-arrow:hover svg { transform: translateX(5px); }

/* ---------------- Header ---------------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease),
    border-color 0.4s var(--ease), color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
  color: #fff;
}
.site-header.is-solid {
  background: #fdfdfa;
  border-bottom-color: var(--line);
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(11, 50, 38, 0.02);
}
.header-inner {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo { display: inline-flex; align-items: center; gap: 12px; }
.logo-mark { width: 34px; height: 34px; flex: none; color: currentColor; }
.logo-mark svg { width: 100%; height: 100%; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-text strong {
  font-size: 1.04rem;
  font-weight: 600;
  letter-spacing: 0.14em;
}
.logo-text em {
  font-style: normal;
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.62;
  margin-top: 5px;
}

.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  position: relative;
  padding: 10px 18px;
  font-size: 0.92rem;
  letter-spacing: 0.05em;
  opacity: 0.82;
  transition: opacity 0.3s var(--ease);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 4px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.nav a:hover { opacity: 1; }
.nav a:hover::after { transform: scaleX(1); }
.nav a.is-active { opacity: 1; }
.nav a.is-active::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 12px; }
[data-auth-slot] { display: inline-flex; align-items: center; }

.header-user {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 8px 0 6px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 0.85rem;
  opacity: 0.9;
  transition: background 0.3s var(--ease);
}
.header-user:hover { background: rgba(255, 255, 255, 0.12); }
.site-header.is-solid .header-user:hover { background: var(--sage); }
.avatar {
  width: 28px;
  height: 28px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green-700);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
}

.btn-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 22px;
  border: 1px solid currentColor;
  border-radius: 1px;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  white-space: nowrap;
  transition: background 0.35s var(--ease), color 0.35s var(--ease),
    border-color 0.35s var(--ease);
}
.site-header:not(.is-solid) .btn-login:hover {
  background: #fff;
  border-color: #fff;
  color: var(--green-900);
}
.site-header.is-solid .btn-login:hover {
  background: var(--green-800);
  border-color: var(--green-800);
  color: #fff;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 10px;
}
.nav-toggle span {
  display: block;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.35s var(--ease), opacity 0.3s var(--ease);
}
.nav-toggle span + span { margin-top: 6px; }
body.menu-open .nav-toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
body.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------------- Hero ---------------- */

.hero {
  position: relative;
  min-height: min(94vh, 900px);
  display: flex;
  align-items: flex-end;
  padding-top: calc(var(--nav-h) + 60px);
  padding-bottom: 64px;
  overflow: hidden;
  color: #fff;
  isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  animation: heroZoom 18s var(--ease) forwards;
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
      180deg,
      rgba(8, 34, 25, 0.72) 0%,
      rgba(8, 34, 25, 0.28) 38%,
      rgba(8, 34, 25, 0.55) 72%,
      rgba(8, 34, 25, 0.88) 100%
    ),
    linear-gradient(90deg, rgba(8, 34, 25, 0.55), transparent 62%);
}

.hero__inner { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 40px; }
.hero__title {
  margin-top: 26px;
  max-width: 15em;
  font-weight: 400;
  letter-spacing: 0.03em;
  line-height: 1.25;
  text-wrap: balance;
}
.hero__title em {
  font-style: normal;
  color: #cfe3c8;
}
.hero__desc {
  margin-top: 26px;
  max-width: 34em;
  font-size: 1.02rem;
  line-height: 1.95;
  color: rgba(255, 255, 255, 0.8);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 42px; }

.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 72px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}
.hero__stat { padding: 26px 26px 0 0; }
.hero__stat + .hero__stat { padding-left: 26px; border-left: 1px solid rgba(255, 255, 255, 0.14); }
.hero__stat b {
  display: block;
  font-size: clamp(1.5rem, 2.4vw, 2.05rem);
  font-weight: 400;
  letter-spacing: 0.02em;
}
.hero__stat b small { font-size: 0.55em; margin-left: 3px; opacity: 0.7; }
.hero__stat span {
  display: block;
  margin-top: 8px;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.62);
}

/* ---------------- Page hero (sub pages) ---------------- */

.page-hero {
  position: relative;
  padding: calc(var(--nav-h) + 96px) 0 88px;
  background: var(--green-900);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.page-hero__media { position: absolute; inset: 0; z-index: -2; }
.page-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg, rgba(9, 38, 28, 0.95) 12%, rgba(9, 38, 28, 0.55) 78%);
}
.page-hero h1 { margin-top: 24px; font-weight: 400; }
.page-hero p {
  margin-top: 22px;
  max-width: 40em;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.9;
}
.crumb {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 44px;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.5);
}
.crumb a:hover { color: #fff; }
.crumb i { font-style: normal; opacity: 0.5; }

/* ---------------- Intro statement ---------------- */

.statement {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(40px, 7vw, 110px);
  align-items: start;
}
.statement__quote {
  font-size: clamp(1.45rem, 2.5vw, 2.05rem);
  line-height: 1.55;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--green-900);
  text-wrap: balance;
}
.statement__body { padding-top: 6px; }
.statement__body p + p { margin-top: 20px; }
.statement__meta {
  display: flex;
  gap: 44px;
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}
.statement__meta div b {
  display: block;
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--green-800);
}
.statement__meta div span { font-size: 0.8rem; color: var(--muted); letter-spacing: 0.06em; }

/* ---------------- Business cards ---------------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.biz-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 42px 38px 38px;
  background: var(--paper);
  transition: background 0.45s var(--ease), transform 0.45s var(--ease);
}
.biz-card:hover { background: #fff; }
.biz-card__index {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: #bd9963;
  font-variant-numeric: tabular-nums;
}
.biz-card__icon {
  width: 44px;
  height: 44px;
  margin: 26px 0 24px;
  color: var(--green-700);
}
.biz-card__icon svg { width: 100%; height: 100%; }
.biz-card h3 { color: var(--green-900); }
.biz-card p {
  margin-top: 14px;
  font-size: 0.92rem;
  line-height: 1.85;
  color: var(--muted);
}
.biz-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
}
.biz-card__tags span {
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  background: var(--sage);
  padding: 5px 11px;
  border-radius: 1px;
}
.biz-card__more {
  margin-top: auto;
  padding-top: 24px;
  font-size: 0.82rem;
  color: var(--green-700);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.biz-card:hover .biz-card__more { opacity: 1; transform: translateY(0); }

/* ---------------- Split blocks ---------------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(36px, 6vw, 96px);
}
.split--reverse .split__media { order: 2; }
.split__media { position: relative; }
.split__media img {
  width: 100%;
  height: clamp(340px, 44vw, 560px);
  object-fit: cover;
}
.split__media--tall img { height: clamp(400px, 52vw, 640px); }
.split__caption {
  position: absolute;
  left: 0;
  bottom: -1px;
  background: var(--paper);
  padding: 16px 24px 0 0;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.split__body h2 { margin-top: 18px; }
.split__body p { margin-top: 22px; }

.point-list { margin-top: 34px; display: grid; gap: 22px; }
.point-list li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 16px;
  font-size: 0.94rem;
  color: var(--ink-soft);
}
.point-list li::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-top: 11px;
  border: 1px solid var(--green-600);
  transform: rotate(45deg);
}
.point-list strong { display: block; color: var(--ink); font-weight: 600; margin-bottom: 4px; }

/* ---------------- Stats band ---------------- */

.stat-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.12);
}
.stat-band div {
  padding: 40px 34px;
  background: var(--green-900);
}
.stat-band b {
  display: block;
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  font-weight: 400;
  color: #fff;
  letter-spacing: 0.01em;
}
.stat-band b small { font-size: 0.45em; margin-left: 4px; color: #a8c7af; }
.stat-band span {
  display: block;
  margin-top: 12px;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: rgba(233, 240, 229, 0.6);
}

/* ---------------- Category index ---------------- */

.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px 56px;
}
.cat-col h3 {
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  color: var(--green-800);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.cat-col ul { margin-top: 18px; display: grid; gap: 10px; }
.cat-col li {
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.7;
  transition: color 0.3s var(--ease);
}
.cat-col li:hover { color: var(--ink); }

/* ---------------- Service rows ---------------- */

.service-row {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(36px, 6vw, 90px);
  align-items: center;
  padding: clamp(56px, 7vw, 96px) 0;
  border-bottom: 1px solid var(--line);
}
.service-row:first-of-type { border-top: 1px solid var(--line); }
.service-row:nth-child(even) .service-row__media { order: 2; }
.service-row__media { overflow: hidden; }
.service-row__media img {
  width: 100%;
  height: clamp(280px, 34vw, 430px);
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}
.service-row:hover .service-row__media img { transform: scale(1.04); }
.service-row__body { max-width: 34em; }
.service-row__index {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--gold-ink);
}
.service-row__body h3 {
  margin-top: 16px;
  font-size: clamp(1.3rem, 2vw, 1.65rem);
  color: var(--green-900);
}
.service-row__body p {
  margin-top: 18px;
  font-size: 0.94rem;
  line-height: 1.9;
  color: var(--ink-soft);
}
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}
.tag-list li {
  font-size: 0.76rem;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  padding: 6px 13px;
  border-radius: 1px;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.tag-list li:hover { border-color: var(--green-600); color: var(--green-700); }

/* ---------------- Process ---------------- */

.process {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.process__step {
  background: var(--paper);
  padding: 38px 26px 34px;
  position: relative;
}
.process__step b {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--gold-ink);
  font-weight: 600;
}
.process__step h3 { font-size: 1.02rem; margin-top: 18px; color: var(--green-900); font-weight: 600; }
.process__step p { margin-top: 12px; font-size: 0.83rem; line-height: 1.8; color: var(--muted); }

/* ---------------- Values ---------------- */

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.value-card {
  padding: 38px 32px;
  background: #fff;
  border: 1px solid var(--line);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.value-card h3 { font-size: 1.02rem; color: var(--green-900); letter-spacing: 0.06em; }
.value-card p { margin-top: 14px; font-size: 0.9rem; color: var(--muted); line-height: 1.85; }

/* ---------------- Timeline ---------------- */

.timeline { border-top: 1px solid var(--line); }
.timeline li {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 40px;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}
.timeline__stage {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  color: var(--green-600);
  padding-top: 4px;
}
.timeline h3 { font-size: 1.02rem; color: var(--green-900); }
.timeline p { margin-top: 10px; font-size: 0.9rem; color: var(--muted); max-width: 52em; }

/* ---------------- CTA band ---------------- */

.cta-band {
  position: relative;
  padding: clamp(64px, 8vw, 110px) 0;
  background: var(--green-900);
  color: #fff;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 82% 12%, rgba(58, 132, 100, 0.35), transparent 55%);
}
.cta-band__inner {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
}
.cta-band h2 { max-width: 18em; font-weight: 400; }
.cta-band p { margin-top: 18px; color: rgba(255, 255, 255, 0.66); max-width: 34em; }
.cta-band__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------------- Footer ---------------- */

.site-footer {
  background: #08251b;
  color: rgba(233, 240, 229, 0.6);
  padding: 78px 0 34px;
  font-size: 0.88rem;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-brand .logo { color: #fff; }
.footer-brand p {
  margin-top: 24px;
  max-width: 26em;
  line-height: 1.9;
  font-size: 0.86rem;
  color: rgba(233, 240, 229, 0.52);
}
.footer-col h2 {
  margin: 0 0 20px;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: #fff;
  font-weight: 500;
}
.footer-col ul { display: grid; gap: 11px; }
.footer-col a { transition: color 0.3s var(--ease); }
.footer-col a:hover { color: #fff; }
.footer-col li { line-height: 1.7; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding-top: 28px;
  font-size: 0.78rem;
  color: #8b9d94;
}
.footer-bottom .links { display: flex; gap: 22px; }

/* ---------------- Forms ---------------- */

.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  margin-bottom: 9px;
}
.field label i { font-style: normal; color: #b4483c; margin-left: 3px; }
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 1px;
  background: #fff;
  font-family: inherit;
  font-size: 0.92rem;
  color: var(--ink);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
.field textarea { min-height: 132px; resize: vertical; line-height: 1.7; }
.field select {
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%2375837b' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  cursor: pointer;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: 0;
  border-color: var(--green-600);
  box-shadow: 0 0 0 3px rgba(38, 107, 80, 0.1);
}
.field input::placeholder,
.field textarea::placeholder { color: #a9b3ac; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field-hint { margin-top: 7px; font-size: 0.76rem; color: var(--muted); }
.field-error {
  margin-top: 7px;
  font-size: 0.78rem;
  color: #b4483c;
  display: none;
}
.field.has-error input,
.field.has-error textarea { border-color: #d9a39c; }
.field.has-error .field-error { display: block; }

.form-note {
  margin-top: 18px;
  font-size: 0.76rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ---------------- Contact ---------------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
}
.contact-list { display: grid; gap: 0; margin-top: 40px; }
.contact-item {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 20px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}
.contact-item:last-child { border-bottom: 1px solid var(--line); }
.contact-item svg { width: 20px; height: 20px; color: var(--green-600); margin-top: 3px; }
.contact-item__label {
  display: block;
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 6px;
}
.contact-item__value { display: block; font-size: 0.98rem; color: var(--ink); line-height: 1.7; }

.form-card {
  background: #fff;
  border: 1px solid var(--line);
  padding: clamp(30px, 4vw, 52px);
  box-shadow: var(--shadow-sm);
}
.form-card h3 { color: var(--green-900); }
.form-card > p { margin-top: 12px; font-size: 0.88rem; color: var(--muted); }

.map-panel {
  position: relative;
  height: 380px;
  background: var(--sage) center/cover no-repeat url("../img/machinery.jpg");
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
}
.map-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(115deg, rgba(9, 38, 28, 0.55), rgba(9, 38, 28, 0.28));
}
.map-panel__card {
  background: #fff;
  border: 1px solid var(--line);
  padding: 30px 34px;
  text-align: center;
  max-width: 380px;
  box-shadow: var(--shadow-sm);
}
.map-panel__card h3 { font-size: 1.02rem; color: var(--green-900); letter-spacing: 0.06em; }
.map-panel__card p { margin-top: 12px; font-size: 0.88rem; color: var(--muted); line-height: 1.8; }

/* ---------------- FAQ ---------------- */

.faq { border-top: 1px solid var(--line); }
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 26px 0;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  font-size: 1rem;
  color: var(--green-900);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.2rem;
  color: var(--green-600);
  line-height: 1;
  transition: transform 0.35s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p {
  margin-top: 14px;
  font-size: 0.9rem;
  line-height: 1.9;
  color: var(--muted);
  max-width: 58em;
}

/* ---------------- Auth ---------------- */

.auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
}
.auth__aside {
  position: relative;
  padding: 48px 56px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.auth__aside img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.auth__aside::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(160deg, rgba(9, 38, 28, 0.9), rgba(9, 38, 28, 0.68));
}
.auth__aside .logo { color: #fff; }
.auth__quote {
  font-size: clamp(1.3rem, 2vw, 1.75rem);
  line-height: 1.7;
  font-weight: 400;
  max-width: 17em;
  letter-spacing: 0.02em;
}
.auth__aside footer {
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.5);
}

.auth__main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 40px 60px;
  background: var(--paper);
}
.auth-card { width: 100%; max-width: 420px; }
.auth-card h1 { font-size: 1.7rem; font-weight: 500; color: var(--green-900); }
.auth-card > p { margin-top: 12px; font-size: 0.9rem; color: var(--muted); }

.auth-tabs {
  display: flex;
  gap: 30px;
  margin: 34px 0 30px;
  border-bottom: 1px solid var(--line);
}
.auth-tabs button {
  position: relative;
  background: none;
  border: 0;
  padding: 0 0 14px;
  font-size: 0.95rem;
  color: var(--muted);
  cursor: pointer;
  letter-spacing: 0.06em;
  transition: color 0.3s var(--ease);
}
.auth-tabs button::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1.5px;
  background: var(--green-700);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.auth-tabs button.is-active { color: var(--green-900); }
.auth-tabs button.is-active::after { transform: scaleX(1); }

.auth-pane { display: none; }
.auth-pane.is-active { display: block; animation: fadeUp 0.5s var(--ease) both; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 26px 0;
  font-size: 0.76rem;
  color: var(--muted);
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}

/* ---------------- Account dashboard ---------------- */

.account {
  padding: calc(var(--nav-h) + 56px) 0 96px;
  background: var(--sand);
  min-height: 100vh;
}
.account-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 44px;
}
.account-head h1,
.account-head__title { font-size: clamp(1.7rem, 3vw, 2.3rem); color: var(--green-900); }
.account-head p { margin-top: 12px; font-size: 0.9rem; color: var(--muted); }
.account-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 28px;
  align-items: start;
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  padding: 32px;
}
.panel h3 { font-size: 1rem; letter-spacing: 0.06em; color: var(--green-900); }
.panel + .panel { margin-top: 28px; }
.profile-head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.profile-head .avatar { width: 52px; height: 52px; font-size: 1.2rem; background: var(--green-700); }
.profile-head strong { display: block; font-size: 1.02rem; }
.profile-head span { font-size: 0.8rem; color: var(--muted); }
.profile-list { display: grid; gap: 16px; }
.profile-list div { display: flex; justify-content: space-between; gap: 16px; font-size: 0.88rem; }
.profile-list dt { color: var(--muted); flex: none; }
.profile-list dd { margin: 0; color: var(--ink); text-align: right; overflow-wrap: anywhere; }
.panel p a { overflow-wrap: anywhere; }

.msg-list { display: grid; gap: 16px; margin-top: 22px; }
.msg-item {
  border: 1px solid var(--line);
  padding: 20px 22px;
  background: var(--paper);
}
.msg-item__top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
}
.msg-item__top strong { font-size: 0.92rem; color: var(--green-900); font-weight: 600; }
.msg-item__top time { font-size: 0.76rem; color: var(--muted); }
.msg-item p { margin-top: 10px; font-size: 0.86rem; color: var(--ink-soft); line-height: 1.8; }
.msg-empty {
  padding: 52px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
  border: 1px dashed var(--line);
  margin-top: 22px;
}

/* ---------------- Toast ---------------- */

.toast-wrap {
  position: fixed;
  left: 50%;
  bottom: 36px;
  transform: translateX(-50%);
  z-index: 999;
  display: grid;
  gap: 10px;
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  background: var(--green-900);
  color: #fff;
  font-size: 0.86rem;
  border-radius: 2px;
  box-shadow: var(--shadow-md);
  animation: toastIn 0.4s var(--ease) both;
}
.toast--error { background: #8d3b30; }
.toast.is-out { animation: toastOut 0.35s var(--ease) both; }
@keyframes toastIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
@keyframes toastOut {
  to { opacity: 0; transform: translateY(10px); }
}

/* ---------------- Reveal animation ---------------- */

.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.js-reveal [data-reveal].is-visible { opacity: 1; transform: none; }
.js-reveal [data-reveal][data-delay="1"] { transition-delay: 0.08s; }
.js-reveal [data-reveal][data-delay="2"] { transition-delay: 0.16s; }
.js-reveal [data-reveal][data-delay="3"] { transition-delay: 0.24s; }
.js-reveal [data-reveal][data-delay="4"] { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------------- Responsive ---------------- */

@media (max-width: 1080px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
  .process { grid-template-columns: repeat(3, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
  .auth { grid-template-columns: 1fr; }
  .auth__aside { display: none; }
  .account-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  :root { --nav-h: 68px; }
  .container, .header-inner, .hero__inner { padding: 0 24px; }

  .nav {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    background: var(--green-900);
    color: #fff;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s var(--ease), visibility 0.4s;
    z-index: 90;
  }
  body.menu-open .nav { opacity: 1; visibility: visible; }
  body.menu-open .site-header { color: #fff; background: transparent; border-color: transparent; }
  .nav a { font-size: 1.35rem; padding: 14px 0; letter-spacing: 0.1em; }
  .nav a::after { display: none; }
  .nav-toggle { display: block; position: relative; z-index: 95; }
  .header-actions { position: relative; z-index: 95; }
  .site-header .logo { position: relative; z-index: 95; }
  .btn-login { padding: 0 16px; font-size: 0.8rem; }

  .hero { min-height: auto; padding-bottom: 48px; }
  .hero__stats { grid-template-columns: 1fr 1fr; gap: 0; margin-top: 48px; }
  .hero__stat { padding: 22px 20px 0 0; }
  .hero__stat:nth-child(odd) { border-left: 0; padding-left: 0; }
  .hero__stat:nth-child(n + 3) { margin-top: 22px; }
  .hero__actions .btn { flex: 1 1 auto; }

  .statement { grid-template-columns: 1fr; gap: 32px; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split--reverse .split__media { order: 0; }
  .split__media img { height: 300px; }
  .split__caption { position: static; padding: 14px 0 0; background: none; }

  .service-row { grid-template-columns: 1fr; gap: 28px; }
  .service-row:nth-child(even) .service-row__media { order: 0; }
  .service-row__media img { height: 240px; }

  .card-grid { grid-template-columns: 1fr; }
  .biz-card { padding: 32px 26px 30px; }
  .biz-card__more { opacity: 1; transform: none; }
  .value-grid { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr 1fr; }
  .stat-band { grid-template-columns: 1fr 1fr; }
  .timeline li { grid-template-columns: 1fr; gap: 10px; }
  .contact-grid { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 34px; }
  .cta-band__inner { flex-direction: column; align-items: flex-start; }
  .field-row { grid-template-columns: 1fr; }
  .page-hero { padding: calc(var(--nav-h) + 60px) 0 56px; }
  .account { padding-top: calc(var(--nav-h) + 36px); }
}

@media (max-width: 520px) {
  .logo-text em { display: none; }
  .logo-text strong { font-size: 0.98rem; }
  .logo-mark { width: 30px; height: 30px; }
  .cat-grid { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr; }
  .hero__stats { grid-template-columns: 1fr; }
  .hero__stat { border-left: 0 !important; padding-left: 0 !important; }
  .hero__stat + .hero__stat { margin-top: 18px; }
  .statement__meta { flex-direction: column; gap: 20px; }
  .form-card { padding: 26px 20px; }
  .account-head .btn { width: 100%; }
}

/* ---------------- Cloud auth additions ---------------- */

.otp-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: start; }
.otp-row .otp-send {
  height: 46px;
  padding: 0 16px;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
  flex: none;
}
.otp-row .otp-send[disabled] { opacity: 0.55; cursor: not-allowed; transform: none; }

.auth-note {
  margin-top: 22px;
  font-size: 0.76rem;
  line-height: 1.75;
  color: var(--muted);
}
.auth-alert {
  margin-top: 22px;
  padding: 12px 14px;
  border: 1px solid #e2c9c3;
  background: #fbf3f1;
  font-size: 0.82rem;
  line-height: 1.7;
  color: #9c4136;
}
.auth-alert[hidden] { display: none; }

.btn--workbuddy {
  background: #fff;
  color: var(--green-900);
  border-color: var(--line);
  font-size: 0.88rem;
}
.btn--workbuddy:hover { background: var(--green-700); color: #fff; border-color: var(--green-700); }

.avatar { overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

.avatar-block { display: flex; align-items: center; gap: 16px; }
.avatar-edit {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: 0.78rem;
  color: var(--green-700);
  border-bottom: 1px solid currentColor;
  cursor: pointer;
  line-height: 1.6;
}
.avatar-edit[disabled] { opacity: 0.5; cursor: not-allowed; }
.avatar-input { display: none; }

.msg-empty a { color: var(--green-700); border-bottom: 1px solid currentColor; }
.msg-item__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  font-size: 0.74rem;
  color: var(--muted);
}
.msg-item__status {
  padding: 2px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  letter-spacing: 0.04em;
}

@media (max-width: 420px) {
  .otp-row { grid-template-columns: 1fr; }
  .otp-row .otp-send { width: 100%; }
}

/* ============================================================
   新闻 / 内容管理
   ============================================================ */

.container--narrow { max-width: 860px; }
.page-hero--short { padding: calc(var(--nav-h) + 72px) 0 64px; }

/* ---------------- 新闻列表 ---------------- */

.news-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 48px;
}

.filter-row { display: flex; flex-wrap: wrap; gap: 4px; }

.filter {
  background: none;
  border: 0;
  padding: 8px 14px;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  cursor: pointer;
  position: relative;
  transition: color 0.3s var(--ease);
}
.filter::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.filter:hover { color: var(--ink); }
.filter.is-active { color: var(--green-700); }
.filter.is-active::after { transform: scaleX(1); }

.news-count { font-size: 0.78rem; letter-spacing: 0.06em; color: var(--muted); }

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 44px 36px;
}

.news-card {
  opacity: 0;
  animation: newsIn 0.6s var(--ease) forwards;
}

@keyframes newsIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

.news-card__link { display: block; height: 100%; }

.news-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--sage);
}
.news-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}
.news-card__link:hover .news-card__media img { transform: scale(1.045); }

.news-card--plain .news-card__link {
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.news-card__body { padding-top: 20px; }
.news-card--plain .news-card__body { padding-top: 0; }

.news-card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.news-tag {
  display: inline-block;
  padding: 2px 9px;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--green-700);
  border: 1px solid rgba(26, 85, 64, 0.22);
  border-radius: 1px;
  background: rgba(233, 240, 229, 0.5);
}

.news-card__title {
  margin-top: 14px;
  font-size: 1.14rem;
  line-height: 1.5;
  color: var(--ink);
  transition: color 0.3s var(--ease);
}
.news-card__link:hover .news-card__title { color: var(--green-700); }

.news-card__desc {
  margin-top: 12px;
  font-size: 0.9rem;
  line-height: 1.85;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card .link-arrow { margin-top: 18px; font-size: 0.78rem; }

.news-state {
  padding: 72px 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 2;
}
.news-state__line {
  display: block;
  width: 44px;
  height: 1px;
  margin: 0 auto 22px;
  background: var(--line);
}

/* 首页新闻预览 */
.home-news {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 32px;
  margin-top: 8px;
}
.home-news .news-card { opacity: 1; animation: none; }
.home-news .news-card__title { font-size: 1.05rem; }

/* ---------------- 文章详情 ---------------- */

.article { padding: calc(var(--nav-h) + 72px) 0 clamp(72px, 8vw, 120px); }

.article__back { font-size: 0.8rem; color: var(--muted); }
.article__back:hover { color: var(--green-700); }

.article__meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 44px;
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.05em;
}

.article__title {
  margin-top: 18px;
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  line-height: 1.35;
  letter-spacing: 0.01em;
}

.article__lead {
  margin-top: 22px;
  padding-left: 20px;
  border-left: 2px solid var(--sage);
  font-size: 0.98rem;
  line-height: 1.95;
  color: var(--ink-soft);
}

.article__cover { margin: 48px 0 0; }
.article__cover img { width: 100%; height: auto; }

.article__body { margin-top: 44px; }
.article__body p {
  font-size: 1.02rem;
  line-height: 2.05;
  color: var(--ink-soft);
}
.article__body p + p { margin-top: 22px; }
.article__body h2 {
  margin: 44px 0 18px;
  font-size: 1.35rem;
  color: var(--green-900);
}
.article__body h3 {
  margin: 36px 0 14px;
  font-size: 1.1rem;
  color: var(--green-900);
}

.article__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 64px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}

.article-state { padding: 160px 0 200px; text-align: center; }
.article-state p { color: var(--muted); font-size: 0.95rem; }
.article-state .btn { margin-top: 24px; }

/* ---------------- 管理后台 ---------------- */

.admin-hero {
  padding: calc(var(--nav-h) + 56px) 0 44px;
  background: var(--sand);
  border-bottom: 1px solid var(--line);
}
.admin-hero__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.admin-hero h1 { margin-top: 16px; font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.admin-hero p {
  margin-top: 14px;
  max-width: 560px;
  font-size: 0.92rem;
  line-height: 1.9;
  color: var(--muted);
}
.admin-hero__actions { display: flex; gap: 10px; flex-wrap: wrap; }

.admin-gate {
  max-width: 640px;
  padding: 56px 0;
}
.admin-gate h2 { margin-top: 18px; font-size: 1.5rem; }
.admin-gate p { margin-top: 18px; color: var(--ink-soft); line-height: 1.95; }
.admin-gate__hint { font-size: 0.88rem; color: var(--muted); }
.admin-gate__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.admin-code {
  display: block;
  margin-top: 10px;
  padding: 12px 16px;
  background: var(--sand);
  border: 1px solid var(--line);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.82rem;
  word-break: break-all;
  color: var(--green-800);
}

.admin-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 40px;
  overflow-x: auto;
}
.admin-tab {
  background: none;
  border: 0;
  padding: 0 4px 16px;
  margin-right: 28px;
  font-size: 0.92rem;
  letter-spacing: 0.05em;
  color: var(--muted);
  cursor: pointer;
  position: relative;
  white-space: nowrap;
}
.admin-tab::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--green-700);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.admin-tab:hover { color: var(--ink); }
.admin-tab.is-active { color: var(--ink); }
.admin-tab.is-active::after { transform: scaleX(1); }

.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.admin-list { border-top: 1px solid var(--line); }

.admin-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line-soft);
}
.admin-row__main { flex: 1 1 420px; min-width: 0; }
.admin-row__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.74rem;
  color: var(--muted);
}
.admin-row__title {
  margin-top: 10px;
  font-size: 1.02rem;
  line-height: 1.55;
  color: var(--ink);
}
.admin-row__desc {
  margin-top: 8px;
  font-size: 0.85rem;
  line-height: 1.8;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.admin-row__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 4px;
}

.pill {
  display: inline-block;
  padding: 1px 9px;
  border-radius: 999px;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  border: 1px solid var(--line);
  color: var(--muted);
}
.pill--live { color: var(--green-700); border-color: rgba(26, 85, 64, 0.25); background: rgba(233, 240, 229, 0.6); }
.pill--draft { color: #8a7040; border-color: rgba(169, 133, 74, 0.3); background: rgba(169, 133, 74, 0.06); }

.link-mini {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: 0.8rem;
  color: var(--green-700);
  cursor: pointer;
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease);
}
.link-mini:hover { border-bottom-color: currentColor; }
.link-mini--danger { color: #b4483c; }

.admin-empty {
  padding: 72px 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.admin-editor, .admin-settings {
  max-width: 780px;
  background: #fff;
  border: 1px solid var(--line);
  padding: clamp(24px, 3.6vw, 44px);
}

.admin-editor__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}
.admin-editor__head h2 { font-size: 1.3rem; }

.admin-muted { font-size: 0.8rem; color: var(--muted); }

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 8px;
  padding-top: 26px;
  border-top: 1px solid var(--line-soft);
}
.admin-actions__hint {
  margin-right: auto;
  font-size: 0.78rem;
  color: var(--muted);
}

.admin-account { margin-top: 6px; }

.cover-row { display: flex; gap: 22px; flex-wrap: wrap; align-items: flex-start; }
.cover-preview {
  width: 200px;
  aspect-ratio: 16 / 10;
  border: 1px dashed var(--line);
  background: var(--sand);
  display: grid;
  place-items: center;
  font-size: 0.76rem;
  color: var(--muted);
  overflow: hidden;
  flex: none;
}
.cover-preview.has-image { border-style: solid; }
.cover-preview img { width: 100%; height: 100%; object-fit: cover; }
.cover-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.cover-hint { flex: 1 1 100%; font-size: 0.74rem; color: var(--muted); line-height: 1.7; }

@media (max-width: 1024px) {
  .news-grid, .home-news { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .news-grid, .home-news { grid-template-columns: 1fr; gap: 36px; }
  .news-toolbar { margin-bottom: 32px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .admin-row__actions { gap: 14px; }
  .admin-actions { flex-direction: column-reverse; align-items: stretch; }
  .admin-actions .btn { width: 100%; }
  .admin-actions__hint { margin: 0 0 6px; }
  .cover-preview { width: 100%; }
}

/* 卡片等高：让「阅读全文」始终贴底对齐 */
.news-card { display: flex; }
.news-card__link { display: flex; flex-direction: column; width: 100%; }
.news-card__body { display: flex; flex-direction: column; flex: 1; }
.news-card .link-arrow { margin-top: auto; padding-top: 18px; }

.article__cover img { max-height: 560px; object-fit: cover; width: 100%; }
