@import url('https://fonts.googleapis.com/css2?family=Exo:wght@300;400;500;600;700&family=Roboto+Mono:wght@300;400;500;700&display=swap');

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

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

body {
  font-family: 'Exo', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  background-color: #f5ede0;
  color: #172623;
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

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

/* ===== 顶部导航 ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  background: rgba(23, 38, 35, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(92, 198, 176, 0.2);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-text {
  font-family: 'Exo', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: #5cc6b0;
  letter-spacing: 0.04em;
}

.site-logo {
  height: 40px;
  width: auto;
  display: block;
}

.primary-nav {
  display: flex;
  align-items: center;
}

.primary-nav p {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  margin: 0;
}

.primary-nav p a {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  color: #d4c4a8;
  text-decoration: none;
  font-family: 'Exo', sans-serif;
  font-weight: 500;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  border-radius: 6px;
  transition: color 0.25s ease-out, background 0.25s ease-out;
  min-height: 40px;
  white-space: nowrap;
}

.primary-nav p a:hover,
.primary-nav p a:focus-visible {
  color: #5cc6b0;
  background: rgba(92, 198, 176, 0.1);
  outline: none;
}

/* ===== 粘性锚点条 ===== */
.sticky-anchors {
  position: sticky;
  top: 64px;
  z-index: 800;
  background: rgba(212, 196, 168, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(23, 38, 35, 0.12);
  overflow-x: auto;
  scrollbar-width: none;
}

.sticky-anchors::-webkit-scrollbar {
  display: none;
}

.sticky-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  gap: 0;
  align-items: center;
  height: 44px;
}

.anchor-link {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  color: #172623;
  text-decoration: none;
  font-family: 'Roboto Mono', monospace;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  border-right: 1px solid rgba(23, 38, 35, 0.1);
  transition: color 0.2s ease-out, background 0.2s ease-out;
  white-space: nowrap;
  min-height: 40px;
}

.anchor-link:last-child {
  border-right: none;
}

.anchor-link:hover,
.anchor-link:focus-visible {
  color: #5cc6b0;
  background: rgba(92, 198, 176, 0.12);
  outline: none;
}

/* ===== 主体布局 ===== */
.site-main {
  padding-top: 108px;
}

.home-article {
  width: 100%;
}

/* ===== Hero 区块 ===== */
.hero-section {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  overflow: hidden;
  background: linear-gradient(135deg, #172623 0%, #1f3530 40%, #2a4040 100%);
  padding: 80px 5vw 60px;
}

.hero-bg-text {
  position: absolute;
  right: -0.05em;
  bottom: -0.15em;
  font-family: 'Exo', sans-serif;
  font-weight: 700;
  font-size: clamp(180px, 30vw, 360px);
  color: rgba(92, 198, 176, 0.07);
  letter-spacing: -0.05em;
  pointer-events: none;
  user-select: none;
  line-height: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  max-width: 640px;
  gap: 24px;
}

.hero-icon {
  opacity: 0.9;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
}

.hero-eyebrow {
  display: inline-block;
  font-family: 'Roboto Mono', monospace;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: #5cc6b0;
  text-transform: uppercase;
  padding: 4px 12px;
  border: 1px solid rgba(92, 198, 176, 0.4);
  border-radius: 4px;
}

.hero-copy h1 {
  font-family: 'Exo', sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.2;
  color: #f5ede0;
  letter-spacing: -0.02em;
}

.hero-desc {
  font-size: 1.05rem;
  color: rgba(212, 196, 168, 0.85);
  line-height: 1.7;
  max-width: 480px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  padding: 14px 32px;
  background: #5cc6b0;
  color: #172623;
  text-decoration: none;
  font-family: 'Exo', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  border-radius: 28px;
  transition: background 0.25s ease-out, transform 0.2s ease-out, box-shadow 0.25s ease-out;
  box-shadow: 0 4px 20px rgba(92, 198, 176, 0.35);
  min-height: 48px;
}

.hero-cta:hover,
.hero-cta:focus-visible {
  background: #4db5a0;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(92, 198, 176, 0.45);
  outline: none;
}

/* ===== 内容 + 侧边栏布局 ===== */
.content-with-aside {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 80px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
}

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

/* ===== 正文内容样式（page.content 内部） ===== */
.content-main section {
  padding: 60px 0;
  border-bottom: 1px solid rgba(23, 38, 35, 0.1);
  scroll-margin-top: 120px;
}

.content-main section:last-child {
  border-bottom: none;
}

.content-main h2 {
  font-family: 'Exo', sans-serif;
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.25;
  color: #172623;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.content-main h3 {
  font-family: 'Exo', sans-serif;
  font-weight: 600;
  font-size: 1.25rem;
  color: #172623;
  margin: 28px 0 12px;
}

.content-main p {
  font-size: 1rem;
  line-height: 1.8;
  color: #2e4a45;
  margin-bottom: 16px;
}

.content-main ul,
.content-main ol {
  padding-left: 1.5em;
  margin-bottom: 16px;
}

.content-main li {
  font-size: 1rem;
  line-height: 1.75;
  color: #2e4a45;
  margin-bottom: 6px;
}

.content-main strong {
  font-weight: 600;
  color: #172623;
}

.content-main a {
  color: #5cc6b0;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease-out;
}

.content-main a:hover {
  color: #4db5a0;
}

.content-main table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  font-size: 0.9rem;
}

.content-main th,
.content-main td {
  padding: 10px 14px;
  border: 1px solid rgba(23, 38, 35, 0.15);
  text-align: left;
}

.content-main th {
  background: rgba(92, 198, 176, 0.15);
  font-weight: 600;
  color: #172623;
}

.content-main blockquote {
  border-left: 3px solid #5cc6b0;
  padding: 12px 20px;
  margin: 20px 0;
  background: rgba(92, 198, 176, 0.06);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: #3a5a54;
}

/* small + h2/h3 眉题样式 */
.content-main small {
  display: block;
  font-family: 'Roboto Mono', monospace;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: #5cc6b0;
  text-transform: uppercase;
  margin-bottom: 8px;
}

/* ===== 侧边栏 ===== */
.content-aside {
  position: sticky;
  top: 124px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.aside-card {
  background: #eee4d5;
  border-radius: 28px;
  padding: 28px 24px;
  box-shadow: 0 2px 16px rgba(23, 38, 35, 0.08);
}

.aside-card.aside-tip {
  background: linear-gradient(135deg, #172623 0%, #1f3530 100%);
}

.aside-card.aside-tip h3,
.aside-card.aside-tip p {
  color: #d4c4a8;
}

.aside-card.aside-tip .aside-eyebrow {
  color: #5cc6b0;
  border-color: rgba(92, 198, 176, 0.4);
}

.aside-eyebrow {
  display: inline-block;
  font-family: 'Roboto Mono', monospace;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: #5cc6b0;
  text-transform: uppercase;
  border: 1px solid rgba(92, 198, 176, 0.3);
  padding: 2px 8px;
  border-radius: 3px;
  margin-bottom: 12px;
}

.aside-card h3 {
  font-family: 'Exo', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: #172623;
  margin-bottom: 14px;
}

.aside-card p {
  font-size: 0.875rem;
  line-height: 1.65;
  color: #3a5a54;
}

.aside-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.aside-nav-list li a {
  display: block;
  padding: 8px 12px;
  color: #172623;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 10px;
  transition: background 0.2s ease-out, color 0.2s ease-out;
  min-height: 40px;
  display: flex;
  align-items: center;
}

.aside-nav-list li a:hover,
.aside-nav-list li a:focus-visible {
  background: rgba(92, 198, 176, 0.15);
  color: #5cc6b0;
  outline: none;
}

/* ===== 页脚 ===== */
.site-footer {
  background: #172623;
  color: #d4c4a8;
}

.footer-cta-block {
  background: linear-gradient(135deg, #5cc6b0 0%, #3da090 100%);
  padding: 60px 24px;
}

.footer-cta-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.footer-cta-eyebrow {
  display: inline-block;
  font-family: 'Roboto Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(23, 38, 35, 0.7);
  border: 1px solid rgba(23, 38, 35, 0.25);
  padding: 3px 12px;
  border-radius: 4px;
}

.footer-cta-title {
  font-family: 'Exo', sans-serif;
  font-weight: 700;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  color: #172623;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.footer-cta-btn {
  display: inline-flex;
  align-items: center;
  padding: 14px 36px;
  background: #172623;
  color: #5cc6b0;
  text-decoration: none;
  font-family: 'Exo', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  border-radius: 28px;
  transition: background 0.25s ease-out, transform 0.2s ease-out;
  min-height: 48px;
}

.footer-cta-btn:hover,
.footer-cta-btn:focus-visible {
  background: #0f1d1a;
  transform: translateY(-2px);
  outline: none;
}

.footer-main {
  padding: 56px 24px 40px;
}

.footer-cols {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
}

.footer-dl {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-dl dt {
  font-family: 'Exo', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5cc6b0;
  margin-bottom: 4px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(92, 198, 176, 0.2);
}

.footer-dl dt.footer-dt-sep {
  margin-top: 12px;
}

.footer-dl dd {
  font-size: 0.875rem;
  line-height: 1.6;
  color: rgba(212, 196, 168, 0.75);
}

.footer-dl dd a {
  color: rgba(212, 196, 168, 0.75);
  text-decoration: none;
  transition: color 0.2s ease-out;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 2px 0;
}

.footer-dl dd a:hover,
.footer-dl dd a:focus-visible {
  color: #5cc6b0;
  outline: none;
}

.footer-brand-name {
  font-family: 'Exo', sans-serif;
  font-weight: 700;
  font-size: 1.25rem !important;
  color: #f5ede0 !important;
  letter-spacing: 0.04em;
  text-transform: none !important;
  border-bottom: none !important;
  padding-bottom: 0 !important;
}

.footer-brand-desc {
  color: rgba(212, 196, 168, 0.65) !important;
  font-size: 0.875rem !important;
  line-height: 1.65;
}

.footer-logo {
  height: 32px;
  width: auto;
  opacity: 0.7;
  margin-top: 8px;
}

.footer-bottom {
  border-top: 1px solid rgba(92, 198, 176, 0.12);
  padding: 24px;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(212, 196, 168, 0.45);
  line-height: 1.6;
  font-family: 'Roboto Mono', monospace;
}

.footer-bottom .footer-note {
  margin-top: 6px;
  font-size: 0.75rem;
  color: rgba(212, 196, 168, 0.3);
}

/* ===== section scroll-margin (单页锚点) ===== */
section[id] {
  scroll-margin-top: 120px;
}

/* ===== 动效 ===== */
@media (prefers-reduced-motion: no-preference) {
  .content-main section {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  }

  .content-main section.is-visible {
    opacity: 1;
    transform: none;
  }

  .hero-inner {
    animation: heroFadeIn 0.9s ease-out both;
  }

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

  .aside-card {
    opacity: 0;
    transform: translateX(16px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
  }

  .aside-card.is-visible {
    opacity: 1;
    transform: none;
  }
}

/* ===== 移动端响应式 ===== */
@media (max-width: 1024px) {
  .content-with-aside {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .content-aside {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px;
  }

  .aside-card {
    flex: 1 1 260px;
  }

  .footer-cols {
    grid-template-columns: 1fr 1fr;
  }

  .footer-dl--brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .header-inner {
    height: 56px;
    padding: 0 16px;
  }

  .primary-nav p a {
    font-size: 0.78rem;
    padding: 8px 10px;
  }

  .sticky-anchors {
    top: 56px;
  }

  .sticky-inner {
    padding: 0 16px;
  }

  .site-main {
    padding-top: 100px;
  }

  .hero-section {
    min-height: 70vh;
    justify-content: center;
    padding: 60px 24px 48px;
  }

  .hero-inner {
    align-items: center;
    text-align: center;
  }

  .hero-copy {
    align-items: center;
    text-align: center;
  }

  .hero-copy h1 {
    font-size: 2rem;
  }

  .hero-bg-text {
    font-size: 160px;
    right: -10px;
  }

  .content-with-aside {
    padding: 0 16px 60px;
  }

  .content-main section {
    padding: 40px 0;
  }

  .footer-cols {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-main {
    padding: 40px 16px 32px;
  }

  .footer-cta-block {
    padding: 48px 16px;
  }
}

@media (max-width: 480px) {
  .primary-nav {
    display: none;
  }

  .sticky-inner {
    gap: 0;
  }

  .anchor-link {
    padding: 8px 12px;
    font-size: 0.7rem;
  }

  .hero-copy h1 {
    font-size: 1.65rem;
  }

  .hero-desc {
    font-size: 0.95rem;
  }

  .content-aside {
    flex-direction: column;
  }
}

/* ===== 焦点可见性 ===== */
:focus-visible {
  outline: 2px solid #5cc6b0;
  outline-offset: 3px;
}

/* ===== 图片 ===== */
img {
  max-width: 100%;
  height: auto;
  display: block;
}
