@import url('https://fonts.googleapis.com/css2?family=Atkinson+Hyperlegible:wght@400;700&family=Crimson+Pro:wght@400;500;600;700&display=swap');

/* ===== 设计令牌 ===== */
:root {
  --teal:       #5cc6b0;
  --teal-dark:  #3fa890;
  --teal-soft:  rgba(92,198,176,0.15);
  --sand:       #d4c4a8;
  --sand-light: #f0ead8;
  --sand-mid:   #c9b894;
  --ink:        #172623;
  --ink-80:     rgba(23,38,35,0.80);
  --ink-40:     rgba(23,38,35,0.40);
  --ink-10:     rgba(23,38,35,0.07);
  --terracotta: #c67b5c;
  --terracotta-soft: rgba(198,123,92,0.12);
  --olive:      #6b7b3c;
  --cream:      #faf7f0;
  --white:      #ffffff;

  --font-body:  'Atkinson Hyperlegible', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
  --font-serif: 'Crimson Pro', 'Noto Serif SC', Georgia, serif;

  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  18px;
  --radius-xl:  28px;

  --shadow-soft: 0 4px 20px rgba(23,38,35,0.10), 0 1px 4px rgba(23,38,35,0.06);
  --shadow-lift: 0 8px 32px rgba(23,38,35,0.14), 0 2px 8px rgba(23,38,35,0.08);

  --nav-h: 64px;
  --header-h: 56px;
  --transition: 0.28s ease-out;

  --content-max: 1100px;
  --text-max: 72ch;
}

/* ===== 基础重置 ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-bottom: calc(var(--nav-h) + 12px);
  font-size: 17px;
  -webkit-text-size-adjust: 100%;
}

body, .nature-body {
  font-family: var(--font-body);
  background-color: var(--cream);
  color: var(--ink);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

/* 谷物纹理叠层 */
.nature-body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.032;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* ===== 页面包裹 ===== */
.page-wrapper {
  position: relative;
  z-index: 1;
  padding-bottom: calc(var(--nav-h) + 16px);
}

/* ===== 站头 ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 24px;
  height: var(--header-h);
  background: rgba(250,247,240,0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--sand);
}

.brand-link {
  text-decoration: none;
  flex-shrink: 0;
}
.logo-img { display: block; height: 36px; width: auto; object-fit: contain; }
.logo-text {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.brand-tagline {
  font-size: 0.78rem;
  color: var(--ink-40);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===== Hero ===== */
.hero-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: 70vh;
  max-height: 780px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--ink) 0%, #1e3530 60%, #223d38 100%);
  position: relative;
}

.hero-collage {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 0;
}

.hero-img-slot {
  position: relative;
  overflow: hidden;
}

.hero-slot-main {
  flex: 3;
  min-height: 70vh;
}

.hero-slot-accent {
  flex: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 32px;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.82;
  transition: opacity var(--transition), transform 0.6s ease-out;
}
.hero-img:hover { opacity: 0.92; transform: scale(1.03); }

.hero-placeholder-1 {
  width: 100%;
  height: 100%;
  min-height: 400px;
  background: linear-gradient(160deg, #2a4a44 0%, #1a3530 50%, #3d6b5e 100%);
}
.hero-placeholder-2 {
  width: 100%;
  height: 200px;
  background: linear-gradient(160deg, #3d5e3a 0%, #2a4a3d 100%);
}

.hero-badge {
  position: absolute;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 5px 12px;
  border-radius: 99px;
  white-space: nowrap;
}
.badge-warm {
  background: var(--terracotta);
  color: var(--white);
  top: 20px;
  right: 16px;
}
.badge-teal {
  background: var(--teal);
  color: var(--ink);
  bottom: 20px;
  left: 16px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 48px 40px 72px;
  background: linear-gradient(135deg, rgba(23,38,35,0.96) 0%, rgba(23,38,35,0.88) 100%);
}

.hero-h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--sand-light);
  line-height: 1.25;
  margin-bottom: 18px;
  text-align: left;
}

.hero-lead {
  font-size: 1rem;
  color: rgba(212,196,168,0.80);
  max-width: 36ch;
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 32px;
  background: var(--teal);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-xl);
  text-decoration: none;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  min-height: 48px;
}
.hero-cta:hover {
  background: var(--teal-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(92,198,176,0.35);
}

/* ===== 主内容区 ===== */
.main-content {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 48px 24px 32px;
}

.content-article { width: 100%; }

.content-with-aside {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 40px;
  align-items: start;
}

.content-primary { min-width: 0; }

.page-sections { width: 100%; }

/* ===== page.content 内元素样式 ===== */
.page-sections section {
  margin-bottom: 64px;
  scroll-margin-top: calc(var(--header-h) + var(--nav-h) + 16px);
}

.page-sections h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
  line-height: 1.3;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--sand);
  position: relative;
}
.page-sections h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 48px;
  height: 2px;
  background: var(--teal);
}

.page-sections h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink);
  margin: 28px 0 10px;
}

.page-sections p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--ink-80);
  margin-bottom: 16px;
  max-width: var(--text-max);
}

.page-sections ul, .page-sections ol {
  padding-left: 1.5em;
  margin-bottom: 18px;
}
.page-sections li {
  margin-bottom: 8px;
  line-height: 1.75;
  color: var(--ink-80);
}

.page-sections a {
  color: var(--teal-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition);
}
.page-sections a:hover { color: var(--terracotta); }

.page-sections strong { color: var(--ink); font-weight: 700; }
.page-sections em { font-style: italic; color: var(--ink-80); }

.page-sections blockquote {
  margin: 24px 0;
  padding: 16px 24px;
  background: var(--teal-soft);
  border-left: 4px solid var(--teal);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--ink);
}

.page-sections table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  font-size: 0.92rem;
}
.page-sections th, .page-sections td {
  padding: 10px 14px;
  border: 1px solid var(--sand);
  text-align: left;
}
.page-sections th {
  background: var(--sand-light);
  font-weight: 700;
}
.page-sections tr:nth-child(even) td { background: rgba(212,196,168,0.18); }

/* section 卡片化 */
.page-sections section {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(212,196,168,0.4);
  transition: box-shadow var(--transition), transform var(--transition);
}
.page-sections section:hover {
  box-shadow: var(--shadow-lift);
  transform: translateY(-2px);
}

/* ===== 侧边栏 ===== */
.content-aside {
  position: sticky;
  top: calc(var(--header-h) + 16px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.aside-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(212,196,168,0.4);
}

.aside-title, .aside-tip-title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}

.aside-card .subtitle,
.aside-tip .subtitle {
  font-size: 0.78rem;
  color: var(--ink-40);
  margin-bottom: 14px;
}

.aside-nav { margin-top: 8px; }

.aside-nav-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  counter-reset: aside-counter;
}
.aside-nav-list li { counter-increment: aside-counter; }
.aside-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--ink-80);
  font-size: 0.9rem;
  transition: background var(--transition), color var(--transition);
  min-height: 40px;
}
.aside-link::before {
  content: counter(aside-counter, decimal-leading-zero);
  font-family: var(--font-serif);
  font-size: 0.75rem;
  color: var(--teal);
  font-weight: 700;
  flex-shrink: 0;
}
.aside-link:hover {
  background: var(--teal-soft);
  color: var(--ink);
}

.aside-tip-body {
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--ink-80);
}
.aside-tip {
  background: linear-gradient(135deg, var(--terracotta-soft), rgba(212,196,168,0.15));
  border-color: rgba(198,123,92,0.2);
}

/* ===== 页脚 ===== */
.site-footer {
  background: var(--ink);
  color: var(--sand);
  margin-top: 64px;
}

.footer-cta-block {
  text-align: center;
  padding: 64px 24px 48px;
  background: linear-gradient(135deg, #1e3530 0%, #223d38 100%);
  border-bottom: 1px solid rgba(212,196,168,0.1);
}

.footer-cta-title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--sand-light);
  margin-bottom: 10px;
}

.footer-cta-block .subtitle {
  color: rgba(212,196,168,0.65);
  margin-bottom: 28px;
  font-size: 1rem;
}

.footer-cta-btn {
  display: inline-flex;
  align-items: center;
  padding: 14px 40px;
  background: var(--teal);
  color: var(--ink);
  font-weight: 700;
  font-size: 1rem;
  border-radius: var(--radius-xl);
  text-decoration: none;
  min-height: 48px;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.footer-cta-btn:hover {
  background: var(--teal-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(92,198,176,0.3);
}

.footer-cols {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  padding: 48px 40px;
  max-width: var(--content-max);
  margin: 0 auto;
}

.footer-col-title {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--sand-light);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(212,196,168,0.15);
}

.footer-brand { display: flex; flex-direction: column; gap: 10px; }
.footer-logo { height: 32px; width: auto; object-fit: contain; }
.footer-logo-text {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--sand-light);
}
.footer-desc { font-size: 0.85rem; color: rgba(212,196,168,0.6); line-height: 1.6; }

.footer-nav-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  counter-reset: footer-counter;
}
.footer-nav-list li { counter-increment: footer-counter; }
.footer-nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  text-decoration: none;
  color: rgba(212,196,168,0.75);
  font-size: 0.9rem;
  min-height: 40px;
  transition: color var(--transition);
}
.footer-nav-link::before {
  content: counter(footer-counter, decimal-leading-zero) '.';
  font-family: var(--font-serif);
  font-size: 0.72rem;
  color: var(--teal);
  flex-shrink: 0;
}
.footer-nav-link:hover { color: var(--sand-light); }

.footer-about-text {
  font-size: 0.88rem;
  line-height: 1.7;
  color: rgba(212,196,168,0.65);
}
.footer-contact {
  margin-top: 12px;
  font-size: 0.85rem;
  color: rgba(212,196,168,0.6);
}
.footer-contact-label { color: var(--teal); font-weight: 700; }

.footer-bottom {
  text-align: center;
  padding: 20px 24px;
  border-top: 1px solid rgba(212,196,168,0.1);
}
.footer-copyright {
  font-size: 0.78rem;
  color: rgba(212,196,168,0.4);
}

/* ===== 底部固定导航条 ===== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(23,38,35,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(92,198,176,0.2);
  height: var(--nav-h);
}

.bottom-nav-inner {
  display: flex;
  align-items: center;
  height: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 16px;
  gap: 8px;
}

.bottom-brand {
  text-decoration: none;
  flex-shrink: 0;
  padding: 8px 12px;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.bottom-brand-mark {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--teal);
  white-space: nowrap;
}

.bottom-nav-list {
  list-style: none;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
  flex: 1;
}
.bottom-nav-list::-webkit-scrollbar { display: none; }

.nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 10px;
  min-height: 52px;
  min-width: 52px;
  text-decoration: none;
  color: rgba(212,196,168,0.65);
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}
.nav-link:hover, .nav-link:focus-visible {
  color: var(--teal);
  background: rgba(92,198,176,0.08);
}

.nav-icon {
  font-size: 1rem;
  line-height: 1;
}
.nav-label {
  font-size: 0.65rem;
  letter-spacing: 0.01em;
}

/* ===== 滚动出现动效 ===== */
.scroll-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease-out, transform 0.55s ease-out;
}
.scroll-reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  html { scroll-behavior: auto; }
  .scroll-reveal { opacity: 1; transform: none; }
  .hero-img:hover { transform: none; }
}

/* ===== 字号/副标题 ===== */
.subtitle {
  font-size: 0.9rem;
  color: var(--ink-40);
  margin-bottom: 20px;
  line-height: 1.5;
}

/* ===== 响应式 ===== */

/* 大屏 */
@media (min-width: 1200px) {
  .bottom-nav-inner { padding: 0 32px; }
  .nav-label { font-size: 0.7rem; }
}

/* 中屏 */
@media (max-width: 900px) {
  .content-with-aside {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .content-aside {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .footer-cols {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    padding: 40px 24px;
  }
}

/* 小屏 */
@media (max-width: 640px) {
  :root { --nav-h: 60px; --header-h: 50px; }

  .hero-wrap {
    grid-template-columns: 1fr;
    min-height: auto;
    max-height: none;
  }
  .hero-collage {
    height: 240px;
    order: 1;
  }
  .hero-slot-main { flex: 3; }
  .hero-slot-accent { flex: 2; }
  .hero-copy {
    order: 2;
    padding: 32px 20px 40px;
  }
  .hero-h1 { font-size: 1.6rem; }
  .hero-lead { font-size: 0.92rem; max-width: 100%; }

  .main-content { padding: 28px 16px 24px; }

  .page-sections article { padding: 22px 18px; margin-bottom: 24px; }

  .content-aside { grid-template-columns: 1fr; }

  .footer-cols {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 32px 20px;
  }
  .footer-cta-block { padding: 44px 20px 36px; }

  .bottom-nav-inner { padding: 0 8px; gap: 4px; }
  .nav-link { padding: 6px 7px; min-width: 44px; min-height: 48px; }
  .nav-label { font-size: 0.6rem; }
  .bottom-brand-mark { font-size: 0.75rem; }

  .brand-tagline { display: none; }

  .aside-card { padding: 18px; }
}

@media (max-width: 380px) {
  .nav-label { display: none; }
  .nav-link { min-width: 40px; }
  .nav-icon { font-size: 1.1rem; }
}

/* ===== 焦点可见性 ===== */
:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ===== 打印 ===== */
@media print {
  .bottom-nav, .site-header { display: none; }
  .page-wrapper { padding-bottom: 0; }
}
