@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600&family=Cormorant+Garamond:ital,wght@0,300;0,500;0,700;1,300;1,500&family=Crimson+Pro:ital,wght@0,300;0,400;0,600;1,300;1,400&display=swap');

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

html {
  scroll-behavior: smooth;
  font-size: 18px;
  scroll-padding-top: 80px;
}

:root {
  --bg:      #F5F0E8;
  --ink:     #3B2A1A;
  --gold:    #B8962E;
  --ink-60:  rgba(59,42,26,0.6);
  --ink-20:  rgba(59,42,26,0.12);
  --gold-20: rgba(184,150,46,0.18);
  --gold-60: rgba(184,150,46,0.6);
  --nav-h:   68px;
  --radius:  10px;
  --font-serif: 'Cormorant Garamond', 'Crimson Pro', Georgia, serif;
  --font-display: 'Cinzel', 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Crimson Pro', 'Cormorant Garamond', Georgia, serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  overflow-x: hidden;
}

/* ===== 滚动边距 ===== */
section[id] {
  scroll-margin-top: calc(var(--nav-h) + 16px);
}

/* ===== 动效关键帧 ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes typing {
  from { width: 0; }
  to   { width: 100%; }
}

@keyframes blink {
  0%, 100% { border-color: var(--gold); }
  50%       { border-color: transparent; }
}

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

@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--gold-60); }
  50%       { box-shadow: 0 0 0 6px transparent; }
}

@keyframes dotBlink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

@keyframes goldShimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}

@keyframes revealLetter {
  from { opacity: 0; transform: translateY(20px) rotateX(-30deg); }
  to   { opacity: 1; transform: translateY(0) rotateX(0); }
}

/* ===== 全局减弱动效 ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ===== 页面包装 ===== */
.page-wrapper {
  min-height: 100vh;
  padding-bottom: calc(var(--nav-h) + 16px);
}

/* ===== 底部固定导航 ===== */
.nav-aside {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 12px 12px;
}

.bottom-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--ink);
  border-radius: 9999px;
  padding: 10px 16px;
  gap: 8px;
  box-shadow: 0 -4px 32px rgba(59,42,26,0.25), 0 2px 16px rgba(59,42,26,0.15);
  border: 1px solid var(--gold-60);
}

.nav-left,
.nav-right {
  display: flex;
  list-style: none;
  gap: 4px;
  flex-wrap: nowrap;
  align-items: center;
}

.nav-brand {
  flex-shrink: 0;
  text-align: center;
}

.nav-logo-link {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 4px 8px;
  min-height: 40px;
}

.nav-logo-img {
  height: 32px;
  width: auto;
  display: block;
}

.nav-logo-text {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.06em;
  white-space: nowrap;
  text-transform: uppercase;
}

.nav-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  min-height: 40px;
  border-radius: 9999px;
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--bg);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.25s var(--ease-out), color 0.25s;
}

.nav-pill:hover,
.nav-pill:focus-visible {
  background: var(--gold);
  color: var(--ink);
  outline: none;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 45vh;
  background: var(--ink);
  display: flex;
  align-items: flex-end;
  padding: 48px 24px 80px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 20% 50%, rgba(184,150,46,0.12) 0%, transparent 70%),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 39px,
      rgba(184,150,46,0.04) 40px
    );
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold-20);
  border: 1px solid var(--gold-60);
  border-radius: 9999px;
  padding: 6px 14px;
  margin-bottom: 20px;
  animation: badgePulse 2.5s ease-in-out infinite;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  animation: dotBlink 1.5s ease-in-out infinite;
}

.badge-text {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--gold);
  text-transform: uppercase;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.05;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-line {
  display: block;
  font-size: clamp(2.8rem, 10vw, 6rem);
  color: transparent;
  background: linear-gradient(
    120deg,
    var(--gold) 0%,
    #e8c96e 40%,
    var(--gold) 60%,
    #c9a440 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  animation: heroFadeIn 0.9s var(--ease-out) both, goldShimmer 4s linear 1s infinite;
}

.hero-line--italic {
  font-style: italic;
  font-weight: 300;
  animation-delay: 0.2s, 1s;
}

.hero-sub {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: rgba(245,240,232,0.75);
  max-width: 480px;
  line-height: 1.6;
  animation: heroFadeIn 0.9s var(--ease-out) 0.4s both;
}

/* 弧形底边 */
.hero-arc {
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--bg);
  border-radius: 50% 50% 0 0 / 60px 60px 0 0;
  z-index: 3;
}

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

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

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

.content-article {
  width: 100%;
}

.page-content {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--ink);
}

/* ===== 正文内部元素样式 ===== */
.page-content h2,
.page-content h3 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  margin: 2.5em 0 0.8em;
  letter-spacing: 0.02em;
  line-height: 1.25;
}

.page-content h2 {
  font-size: clamp(1.4rem, 4vw, 2rem);
  position: relative;
  padding-left: 18px;
}

.page-content h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.2em;
  bottom: 0.2em;
  width: 4px;
  background: var(--gold);
  border-radius: 2px;
}

.page-content h3 {
  font-size: 1.2rem;
  color: var(--gold);
}

.page-content p {
  margin-bottom: 1.2em;
  font-size: 1rem;
  line-height: 1.8;
}

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

.page-content li {
  margin-bottom: 0.5em;
  line-height: 1.7;
}

.page-content a {
  color: var(--gold);
  text-decoration: underline;
  text-decoration-color: var(--gold-60);
  transition: color 0.2s;
}

.page-content a:hover {
  color: var(--ink);
}

.page-content strong {
  font-weight: 600;
  color: var(--ink);
}

.page-content blockquote {
  border-left: 3px solid var(--gold);
  padding: 12px 20px;
  margin: 1.5em 0;
  background: var(--gold-20);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
}

.page-content section {
  padding: 48px 0;
  border-bottom: 1px solid var(--ink-20);
  position: relative;
}

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

.page-content section:nth-child(even) {
  background: none;
}

/* section 标题装饰 */
.page-content section > h2:first-child,
.page-content section > h3:first-child {
  margin-top: 0;
}

/* ===== Scroll Reveal ===== */
.page-content section,
.page-content h2,
.page-content h3,
.page-content p,
.page-content ul,
.page-content ol,
.page-content blockquote {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out);
}

.page-content .is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== 眉题 small ===== */
small {
  display: block;
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}

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

.footer-cta {
  text-align: center;
  padding: 56px 24px 48px;
  border-bottom: 1px solid rgba(245,240,232,0.1);
  position: relative;
  overflow: hidden;
}

.footer-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 60% at 50% 100%, rgba(184,150,46,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.footer-cta small {
  color: var(--gold);
  position: relative;
  z-index: 1;
}

.footer-cta-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 5vw, 2.8rem);
  font-weight: 600;
  color: var(--bg);
  margin: 8px 0 28px;
  letter-spacing: 0.03em;
  position: relative;
  z-index: 1;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 36px;
  background: var(--gold);
  color: var(--ink);
  border-radius: 9999px;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  min-height: 48px;
  transition: background 0.25s var(--ease-out), transform 0.2s;
  position: relative;
  z-index: 1;
}

.cta-btn:hover {
  background: #c9a440;
  transform: translateY(-2px);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px 32px;
  padding: 20px 24px;
  text-align: center;
}

.footer-address {
  font-style: normal;
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--gold);
  text-transform: uppercase;
}

.footer-links {
  list-style: none;
  display: flex;
  gap: 20px;
}

.footer-links li a {
  color: rgba(245,240,232,0.6);
  font-size: 0.85rem;
  text-decoration: none;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 4px 0;
  transition: color 0.2s;
}

.footer-links li a:hover {
  color: var(--gold);
}

.footer-copy {
  width: 100%;
  font-size: 0.8rem;
  color: rgba(245,240,232,0.4);
  font-family: var(--font-body);
  line-height: 1.5;
}

/* ===== 卡片（兜底） ===== */
.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 4px 24px rgba(59,42,26,0.1);
  overflow: hidden;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(59,42,26,0.16);
}

/* ===== 聚焦可见性 ===== */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

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

/* ===== 分隔线 ===== */
hr {
  border: none;
  border-top: 1px solid var(--ink-20);
  margin: 2em 0;
}

/* ===== 断点 768px ===== */
@media (min-width: 768px) {
  html { font-size: 18px; }

  .hero {
    padding: 56px 48px 90px;
    min-height: 45vh;
  }

  .nav-pill {
    font-size: 0.72rem;
    padding: 8px 14px;
  }

  .nav-logo-text {
    font-size: 0.8rem;
  }

  .wrap {
    padding: 0 32px;
  }

  .content-section {
    padding: 56px 0;
  }

  .footer-bottom {
    justify-content: space-between;
    padding: 20px 40px;
  }

  .footer-copy {
    width: auto;
  }
}

/* ===== 断点 1024px ===== */
@media (min-width: 1024px) {
  .nav-aside {
    padding: 0 32px 16px;
  }

  .bottom-nav {
    padding: 10px 24px;
    gap: 12px;
  }

  .nav-left,
  .nav-right {
    gap: 6px;
  }

  .nav-pill {
    font-size: 0.75rem;
    padding: 10px 16px;
  }

  .hero {
    padding: 64px 80px 96px;
  }
}

/* ===== 移动端精细调整 ===== */
@media (max-width: 480px) {
  html { font-size: 16px; }

  .nav-pill {
    font-size: 0.58rem;
    padding: 8px 7px;
    letter-spacing: 0.02em;
  }

  .nav-logo-text {
    font-size: 0.6rem;
  }

  .bottom-nav {
    padding: 8px 10px;
    gap: 4px;
  }

  .hero {
    min-height: 45vh;
    padding: 40px 20px 72px;
  }

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

  .footer-cta {
    padding: 40px 20px 36px;
  }

  .page-content section {
    padding: 36px 0;
  }
}
