/* 云禾 CORNER · 布局层：页头 / Hero / 按钮 / 区块基底 / 页脚（变量与重置见 base.css） */

/* ---------- 页头 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 247, 242, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
}

.brand-logo {
  display: block;
  height: 52px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 15px;
  color: var(--muted);
}

.nav a {
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav a:hover {
  color: var(--ink);
  border-color: var(--accent);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
}

.nav-toggle span + span {
  margin-top: 7px;
}

/* ---------- Hero ---------- */
.hero {
  padding: 88px 0 64px;
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 32px;
  align-items: start;
}

.hero-main {
  grid-column: 1 / span 7;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 26px;
}

.hero h1 {
  font-size: clamp(2.5rem, 5.4vw, 4.6rem);
  margin-bottom: 28px;
}

.hero h1 em {
  font-style: normal;
  position: relative;
  white-space: nowrap;
}

.hero h1 em::after {
  content: "";
  position: absolute;
  left: -2px;
  right: -2px;
  bottom: 0.08em;
  height: 0.34em;
  background: var(--accent);
  opacity: 0.55;
  z-index: -1;
}

.hero-sub {
  max-width: 46ch;
  color: var(--muted);
  font-size: 17px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

/* 非对称侧栏：下移、左侧细线 */
.hero-side {
  grid-column: 9 / span 4;
  margin-top: 116px;
  padding-left: 24px;
  border-left: 2px solid var(--primary);
}

.side-label {
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--primary);
  margin-bottom: 18px;
}

.side-list li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14px;
}

.side-list li span {
  color: var(--muted);
  min-width: 34px;
}

.side-list li em {
  margin-left: auto;
  font-style: normal;
  font-size: 12px;
  color: var(--primary);
  background: rgba(198, 217, 59, 0.28);
  padding: 1px 8px;
  white-space: nowrap;
}

.side-note {
  margin-top: 18px;
  font-size: 13px;
  color: var(--muted);
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 26px;
  font-size: 15px;
  border-radius: var(--radius);
  border: 1px solid var(--primary);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-solid {
  background: var(--primary);
  color: #f6f7f2;
}

.btn-solid:hover {
  background: #36452f;
}

.btn-line {
  color: var(--primary);
  background: transparent;
}

.btn-line:hover {
  background: rgba(67, 85, 63, 0.08);
}

/* ---------- 通用区块 ---------- */
.section {
  padding: 84px 0;
  border-bottom: 1px solid var(--line);
}

.kicker {
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--muted);
  margin-bottom: 18px;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
}

.section-desc {
  margin-top: 16px;
  color: var(--muted);
  max-width: 58ch;
}

.section-head.offset {
  margin-left: 33%;
  max-width: 640px;
}

/* ---------- 页脚 ---------- */
.site-footer {
  padding: 48px 0 56px;
  background: var(--primary);
  color: #e9ecdf;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px 32px;
  font-size: 14px;
}

.footer-brand {
  font-weight: 600;
  color: #ffffff;
}

/* ---------- 滚动显现 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ---------- 移动端 ---------- */
@media (max-width: 960px) {
  .hero-main {
    grid-column: 1 / -1;
  }
  .hero-side {
    grid-column: 1 / -1;
    margin-top: 8px;
  }
  .section-head.offset {
    margin-left: 0;
  }
}

@media (max-width: 768px) {
  .wrap {
    width: min(var(--wrap), 100% - 32px);
  }
  .nav-toggle {
    display: block;
  }
  .nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0 24px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.28s ease;
  }
  .nav.is-open {
    max-height: 340px;
  }
  .nav a {
    width: 100%;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }
  .nav a:last-child {
    border-bottom: 0;
  }
  .hero {
    padding: 56px 0 48px;
  }
  .section {
    padding: 60px 0;
  }
  .brand-logo {
    height: 42px;
  }
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
