@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700&display=swap');

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

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

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

.body-home {
  padding-bottom: 140px;
}

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

/* ===== 工具 ===== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ===== 底部固定导航 aside ===== */
.nav-aside {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(23, 38, 35, 0.92);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-top: 1px solid rgba(92, 198, 176, 0.18);
  box-shadow: 0 -4px 32px rgba(0, 0, 0, 0.4);
}

.bottom-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
  height: 68px;
  max-width: 960px;
  margin: 0 auto;
}

.bottom-nav ul {
  list-style: none;
  display: flex;
  gap: 0;
  flex: 1;
}

.nav-left {
  justify-content: flex-start;
}

.nav-right {
  justify-content: flex-end;
}

.nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 10px 8px;
  min-height: 48px;
  min-width: 48px;
  color: #d4c4a8;
  text-decoration: none;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.2;
  transition: color 0.2s ease-out, background 0.2s ease-out;
  position: relative;
}

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

.nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav-icon svg {
  transition: transform 0.2s ease-out;
}

.nav-link:hover .nav-icon svg {
  transform: translateY(-2px);
}

.nav-text {
  font-size: 9px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 48px;
  text-align: center;
}

/* 品牌中心按钮 */
.nav-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 14px;
  min-height: 52px;
  min-width: 68px;
  color: #5cc6b0;
  text-decoration: none;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.05em;
  background: rgba(92, 198, 176, 0.12);
  border: 1.5px solid rgba(92, 198, 176, 0.3);
  border-radius: 18px;
  transition: background 0.2s ease-out, border-color 0.2s ease-out, transform 0.2s ease-out;
  flex-shrink: 0;
  margin: 0 4px;
}

.nav-brand:hover,
.nav-brand:focus-visible {
  background: rgba(92, 198, 176, 0.22);
  border-color: #5cc6b0;
  transform: translateY(-2px);
  outline: none;
}

.nav-logo-img img,
.nav-logo-img .logo-img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  border-radius: 6px;
}

.nav-brand-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 60px;
}

/* 搜索栏 */
.nav-search-bar {
  display: flex;
  align-items: center;
  padding: 6px 16px 10px;
  max-width: 960px;
  margin: 0 auto;
  gap: 8px;
}

.search-input {
  flex: 1;
  background: rgba(212, 196, 168, 0.08);
  border: 1px solid rgba(92, 198, 176, 0.2);
  border-radius: 20px;
  padding: 9px 16px;
  color: #d4c4a8;
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s ease-out, background 0.2s ease-out;
  height: 40px;
}

.search-input::placeholder {
  color: rgba(212, 196, 168, 0.4);
}

.search-input:focus {
  border-color: #5cc6b0;
  background: rgba(92, 198, 176, 0.06);
}

.search-btn {
  background: rgba(92, 198, 176, 0.15);
  border: 1px solid rgba(92, 198, 176, 0.25);
  color: #5cc6b0;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s ease-out, transform 0.2s ease-out;
}

.search-btn:hover {
  background: rgba(92, 198, 176, 0.28);
  transform: scale(1.08);
}

/* ===== 主内容 ===== */
.site-main {
  position: relative;
  z-index: 1;
}

.wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Hero ===== */
.hero-section {
  min-height: 70vh;
  display: flex;
  align-items: flex-end;
  padding-top: 40px;
  padding-bottom: 60px;
  position: relative;
}

.hero-article {
  max-width: 640px;
}

.hero-eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #5cc6b0;
  margin-bottom: 20px;
  opacity: 0.8;
}

.hero-title {
  font-size: clamp(2.2rem, 7vw, 4.2rem);
  font-weight: 700;
  line-height: 1.18;
  color: #d4c4a8;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.hero-sub {
  font-size: 1.05rem;
  font-weight: 300;
  color: rgba(212, 196, 168, 0.72);
  line-height: 1.75;
  margin-bottom: 36px;
  max-width: 520px;
}

.hero-cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  padding: 13px 28px;
  background: #5cc6b0;
  color: #172623;
  font-size: 15px;
  font-weight: 700;
  border-radius: 28px;
  text-decoration: none;
  transition: background 0.2s ease-out, transform 0.2s ease-out, box-shadow 0.2s ease-out;
  min-height: 48px;
}

.btn-primary:hover {
  background: #4db8a0;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(92, 198, 176, 0.3);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 13px 28px;
  background: transparent;
  color: #d4c4a8;
  font-size: 15px;
  font-weight: 500;
  border: 1.5px solid rgba(212, 196, 168, 0.3);
  border-radius: 28px;
  text-decoration: none;
  transition: border-color 0.2s ease-out, color 0.2s ease-out, transform 0.2s ease-out;
  min-height: 48px;
}

.btn-ghost:hover {
  border-color: #5cc6b0;
  color: #5cc6b0;
  transform: translateY(-2px);
}

/* ===== 正文内容区 ===== */
.content-section {
  padding-top: 20px;
  padding-bottom: 40px;
}

.content-article {
  width: 100%;
}

.page-content {
  width: 100%;
}

/* ===== page.content 内部的 div 样式 ===== */
.page-content div {
  padding: 56px 0 40px;
  border-top: 1px solid rgba(212, 196, 168, 0.1);
  scroll-margin-top: 160px;
}

.page-content div:first-child {
  border-top: none;
  padding-top: 24px;
}

.page-content h2 {
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 700;
  color: #d4c4a8;
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin-bottom: 12px;
}

.page-content h2 + hr {
  border: none;
  border-top: 2px solid #5cc6b0;
  width: 48px;
  margin: 0 0 28px;
  border-radius: 2px;
}

.page-content h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: #5cc6b0;
  margin: 28px 0 12px;
  line-height: 1.4;
}

.page-content h3 + hr {
  border: none;
  border-top: 1px solid rgba(92, 198, 176, 0.3);
  margin: 0 0 20px;
}

.page-content p {
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(212, 196, 168, 0.88);
  margin-bottom: 18px;
}

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

.page-content li {
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(212, 196, 168, 0.85);
  margin-bottom: 8px;
}

.page-content a {
  color: #5cc6b0;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.18s ease-out, opacity 0.18s ease-out;
}

.page-content a:hover {
  color: #4db8a0;
  opacity: 0.9;
}

.page-content strong {
  font-weight: 700;
  color: #d4c4a8;
}

.page-content blockquote {
  border-left: 3px solid #5cc6b0;
  padding: 12px 20px;
  margin: 24px 0;
  background: rgba(92, 198, 176, 0.06);
  border-radius: 0 12px 12px 0;
  color: rgba(212, 196, 168, 0.78);
  font-style: italic;
}

.page-content img {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  display: block;
  margin: 24px 0;
}

/* 玻璃拟态卡片样式 */
.page-content .card,
.glass-card {
  background: rgba(212, 196, 168, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(92, 198, 176, 0.15);
  border-radius: 28px;
  padding: 28px 32px;
  margin: 24px 0;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(212, 196, 168, 0.08);
  transition: transform 0.25s ease-out, box-shadow 0.25s ease-out;
}

.page-content .card:hover,
.glass-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(212, 196, 168, 0.1);
}

.page-content ol li::marker {
  color: #5cc6b0;
  font-weight: 700;
}

.page-content ul li::marker {
  color: #5cc6b0;
}

/* ===== 页脚 ===== */
.site-footer {
  position: relative;
  z-index: 1;
  background: rgba(15, 26, 23, 0.95);
  border-top: 1px solid rgba(92, 198, 176, 0.12);
  margin-top: 40px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  max-width: 960px;
  margin: 0 auto;
  padding: 52px 24px 40px;
}

.footer-logo-link {
  display: inline-block;
  text-decoration: none;
  margin-bottom: 14px;
}

.footer-logo-link img {
  max-height: 40px;
  width: auto;
  border-radius: 8px;
}

.footer-brand-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: #5cc6b0;
  display: block;
}

.footer-desc {
  font-size: 0.88rem;
  color: rgba(212, 196, 168, 0.55);
  line-height: 1.65;
  margin-top: 10px;
}

.footer-col-title {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #5cc6b0;
  margin-bottom: 10px;
}

.footer-col-title + hr {
  border: none;
  border-top: 1px solid rgba(92, 198, 176, 0.25);
  margin-bottom: 18px;
}

.footer-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav-link {
  color: rgba(212, 196, 168, 0.7);
  text-decoration: none;
  font-size: 0.9rem;
  line-height: 1.5;
  transition: color 0.18s ease-out;
  display: inline-block;
  padding: 4px 0;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
}

.footer-nav-link:hover {
  color: #5cc6b0;
}

.footer-contact-item {
  font-size: 0.88rem;
  color: rgba(212, 196, 168, 0.6);
  margin-bottom: 16px;
  line-height: 1.6;
}

.footer-contact-link {
  color: #5cc6b0;
  text-decoration: none;
}

.footer-contact-link:hover {
  text-decoration: underline;
}

/* 订阅表单 */
.subscribe-label {
  display: block;
  font-size: 0.8rem;
  color: rgba(212, 196, 168, 0.55);
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

.subscribe-row {
  display: flex;
  gap: 8px;
}

.subscribe-input {
  flex: 1;
  background: rgba(212, 196, 168, 0.07);
  border: 1px solid rgba(92, 198, 176, 0.2);
  border-radius: 12px;
  padding: 9px 14px;
  color: #d4c4a8;
  font-family: inherit;
  font-size: 14px;
  outline: none;
  min-height: 44px;
  transition: border-color 0.18s ease-out;
}

.subscribe-input::placeholder {
  color: rgba(212, 196, 168, 0.35);
}

.subscribe-input:focus {
  border-color: #5cc6b0;
}

.subscribe-btn {
  background: #5cc6b0;
  color: #172623;
  border: none;
  border-radius: 12px;
  padding: 9px 18px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  min-height: 44px;
  white-space: nowrap;
  transition: background 0.18s ease-out, transform 0.18s ease-out;
}

.subscribe-btn:hover {
  background: #4db8a0;
  transform: translateY(-1px);
}

/* 页脚底栏 */
.footer-bottom {
  border-top: 1px solid rgba(212, 196, 168, 0.08);
}

.footer-bottom-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-copy {
  font-size: 0.8rem;
  color: rgba(212, 196, 168, 0.4);
}

.footer-bottom-nav {
  display: flex;
  gap: 20px;
}

.footer-bottom-link {
  font-size: 0.8rem;
  color: rgba(212, 196, 168, 0.45);
  text-decoration: none;
  transition: color 0.18s ease-out;
  padding: 8px 4px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
}

.footer-bottom-link:hover {
  color: #5cc6b0;
}

/* ===== 滚动揭示动效 ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease-out, transform 0.55s ease-out;
}

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

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
  .btn-primary:hover,
  .btn-ghost:hover,
  .nav-link:hover .nav-icon svg,
  .nav-brand:hover,
  .glass-card:hover,
  .page-content .card:hover {
    transform: none;
  }
}

/* ===== 响应式 ===== */
@media (max-width: 700px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 36px 18px 28px;
  }

  .hero-section {
    min-height: 75vh;
    padding-top: 28px;
    padding-bottom: 40px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-sub {
    font-size: 0.97rem;
  }

  .hero-cta-row {
    gap: 10px;
  }

  .btn-primary,
  .btn-ghost {
    padding: 11px 20px;
    font-size: 14px;
  }

  .nav-text {
    display: none;
  }

  .nav-brand-text {
    font-size: 10px;
    max-width: 52px;
  }

  .body-home {
    padding-bottom: 150px;
  }

  .wrap {
    padding: 0 16px;
  }

  .footer-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 14px 18px;
  }

  .subscribe-row {
    flex-direction: column;
  }

  .subscribe-btn {
    width: 100%;
  }

  .bottom-nav {
    height: 64px;
  }

  .nav-link {
    min-height: 48px;
    min-width: 44px;
    padding: 10px 6px;
  }
}

@media (min-width: 701px) and (max-width: 960px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

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

@media (min-width: 961px) {
  .nav-text {
    font-size: 10px;
  }

  .hero-section {
    padding-top: 60px;
    padding-bottom: 80px;
  }

  .page-content div {
    scroll-margin-top: 80px;
  }
}

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

/* ===== 选中色 ===== */
::selection {
  background: rgba(92, 198, 176, 0.3);
  color: #d4c4a8;
}

/* ===== 滚动条 ===== */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #172623;
}

::-webkit-scrollbar-thumb {
  background: rgba(92, 198, 176, 0.3);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(92, 198, 176, 0.55);
}
