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

/* ===== 基础变量 ===== */
:root {
  --primary: #eb879c;
  --secondary: #ffb6c1;
  --dark: #26171a;
  --dark-80: rgba(38,23,26,0.8);
  --dark-60: rgba(38,23,26,0.6);
  --dark-20: rgba(38,23,26,0.12);
  --light: #fff8f9;
  --light-card: #fff0f3;
  --text-main: #26171a;
  --text-muted: #7a4a55;
  --text-light: #fff8f9;
  --radius-card: 18px;
  --radius-btn: 40px;
  --radius-sm: 8px;
  --shadow-soft: 0 2px 8px rgba(235,135,156,0.13), 0 6px 24px rgba(38,23,26,0.07);
  --shadow-hover: 0 4px 16px rgba(235,135,156,0.22), 0 8px 32px rgba(38,23,26,0.10);
  --transition: 220ms cubic-bezier(.4,0,.2,1);
  --bottom-nav-h: 64px;
  --font-head: 'Amatic SC', 'Georgia', serif;
  --font-body: 'Cabin', 'Helvetica Neue', Arial, sans-serif;
}

/* ===== 重置 ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  font-size: 16px;
  background: var(--dark);
}
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-main);
  background: var(--light);
  min-height: 100vh;
  overflow-x: hidden;
}

/* scroll-margin for fixed bottom nav */
section[id] { scroll-margin-top: calc(var(--bottom-nav-h) + 12px); }

a { color: inherit; text-decoration: none; }
ul, menu { list-style: none; }
img { display: block; max-width: 100%; height: auto; }
address { font-style: normal; }
summary { list-style: none; cursor: pointer; }
summary::-webkit-details-marker { display: none; }

/* ===== 站点容器 ===== */
.site-wrap {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding-bottom: var(--bottom-nav-h);
}

/* ===== 全屏遮罩导航 ===== */
.nav-overlay {
  position: fixed;
  top: 0; left: 0;
  z-index: 200;
}

.nav-toggle {
  position: fixed;
  top: 16px; left: 16px;
  z-index: 210;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: var(--shadow-soft);
  transition: background var(--transition), transform var(--transition);
  color: #fff;
  font-size: 1.1rem;
}
.nav-toggle:hover, .nav-toggle:focus-visible {
  background: var(--dark);
  transform: scale(1.07);
  outline: 2px solid var(--primary);
}
.nav-toggle:focus-visible { outline-offset: 2px; }

.hamburger-icon {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 22px;
}
.hamburger-icon span {
  display: block;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.close-icon { display: none; font-size: 1.3rem; font-weight: 700; line-height: 1; }

details[open] .nav-toggle { background: var(--dark); }
details[open] .hamburger-icon { display: none; }
details[open] .close-icon { display: block; }

.overlay-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(38,23,26,0.72);
  backdrop-filter: blur(6px);
  z-index: 201;
}
details[open] .overlay-backdrop { display: block; }

.overlay-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 202;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 80px 24px 40px;
}
details[open] .overlay-menu {
  display: flex;
}

.overlay-menu li {
  width: 100%;
  max-width: 360px;
  border-bottom: 1px solid rgba(235,135,156,0.18);
  animation: staggerIn 280ms both;
}
.overlay-menu li:nth-child(1) { animation-delay: 30ms; }
.overlay-menu li:nth-child(2) { animation-delay: 70ms; }
.overlay-menu li:nth-child(3) { animation-delay: 110ms; }
.overlay-menu li:nth-child(4) { animation-delay: 150ms; }
.overlay-menu li:nth-child(5) { animation-delay: 190ms; }
.overlay-menu li:nth-child(6) { animation-delay: 230ms; }
.overlay-menu li:nth-child(7) { animation-delay: 270ms; }

@keyframes staggerIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.overlay-menu li a {
  display: block;
  padding: 18px 8px;
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  color: var(--secondary);
  letter-spacing: 0.04em;
  transition: color var(--transition), padding-left var(--transition);
}
.overlay-menu li a:hover,
.overlay-menu li a:focus-visible {
  color: #fff;
  padding-left: 16px;
  outline: none;
}

/* ===== 底部固定导航条 ===== */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--bottom-nav-h);
  z-index: 100;
  background: var(--dark);
  box-shadow: 0 -2px 16px rgba(38,23,26,0.18);
  border-top: 1.5px solid rgba(235,135,156,0.18);
}
.bottom-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 12px;
  gap: 4px;
}

.bottom-nav-left,
.bottom-nav-right {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
}
.bottom-nav-right { justify-content: flex-end; }

.bottom-nav-left li a,
.bottom-nav-right li a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 6px 8px;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  color: rgba(255,182,193,0.8);
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}
.bottom-nav-left li a:hover,
.bottom-nav-right li a:hover,
.bottom-nav-left li a:focus-visible,
.bottom-nav-right li a:focus-visible {
  color: #fff;
  background: rgba(235,135,156,0.14);
  outline: 2px solid var(--primary);
  outline-offset: 1px;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 6px 14px;
  background: var(--primary);
  color: #fff !important;
  border-radius: var(--radius-btn);
  font-size: 0.78rem;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(235,135,156,0.28);
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
  white-space: nowrap;
}
.cta-btn:hover, .cta-btn:focus-visible {
  background: var(--dark);
  box-shadow: var(--shadow-hover);
  transform: translateY(-1px);
  outline: 2px solid var(--primary);
  outline-offset: 1px;
}

.bottom-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: 50%;
  box-shadow: 0 2px 12px rgba(235,135,156,0.32);
  margin: 0 6px;
  transition: transform var(--transition), box-shadow var(--transition);
}
.bottom-brand:hover, .bottom-brand:focus-visible {
  transform: scale(1.08);
  box-shadow: var(--shadow-hover);
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.bottom-brand .brand-text {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
}
.bottom-brand .brand-logo { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }

/* ===== Hero ===== */
.hero-section {
  position: relative;
  min-height: 45vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  background: linear-gradient(160deg, var(--dark) 0%, #3d1a22 60%, #26171a 100%);
  padding: 0 0 0 0;
}

.hero-deco-text {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-head);
  font-size: clamp(6rem, 22vw, 18rem);
  font-weight: 700;
  color: rgba(235,135,156,0.07);
  letter-spacing: 0.06em;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media .hero-img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.22;
}
.hero-media-placeholder {
  background: radial-gradient(ellipse at 70% 60%, rgba(235,135,156,0.18) 0%, transparent 70%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 48px 28px 40px;
  max-width: 680px;
}

.hero-eyebrow {
  margin-bottom: 10px;
}
.hero-eyebrow small {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--primary);
  background: rgba(235,135,156,0.12);
  padding: 3px 12px;
  border-radius: var(--radius-btn);
  border: 1px solid rgba(235,135,156,0.28);
}

.hero-h1 {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 7vw, 4rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}

.hero-sub {
  font-size: 1rem;
  color: rgba(255,182,193,0.85);
  line-height: 1.65;
  margin-bottom: 28px;
  max-width: 480px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 32px;
  background: var(--primary);
  color: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-btn);
  box-shadow: 0 3px 16px rgba(235,135,156,0.38);
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
}
.hero-cta:hover, .hero-cta:focus-visible {
  background: #d4637a;
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* ===== 内容布局：aside 左 + main 右 ===== */
.content-layout {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  max-width: 1200px;
  margin: 48px auto 0;
  padding: 0 20px;
  width: 100%;
}

.content-aside {
  flex: 0 0 220px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: sticky;
  top: 16px;
}

.aside-card {
  background: var(--light-card);
  border-radius: var(--radius-card);
  padding: 20px 18px;
  box-shadow: var(--shadow-soft);
  border-bottom: 3px solid var(--primary);
}

.aside-card small {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--primary);
  margin-bottom: 6px;
  text-transform: none;
}

.aside-title {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 14px;
}

.aside-nav-list li { margin-bottom: 2px; }
.aside-nav-list li a {
  display: block;
  padding: 7px 10px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition), padding-left var(--transition);
}
.aside-nav-list li a:hover,
.aside-nav-list li a:focus-visible {
  background: rgba(235,135,156,0.10);
  color: var(--primary);
  padding-left: 16px;
  outline: none;
}

.aside-brand-card { background: linear-gradient(135deg, var(--dark) 0%, #3d1a22 100%); }
.aside-brand-name {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 8px;
}
.aside-brand-desc { font-size: 0.8rem; color: rgba(255,182,193,0.7); line-height: 1.6; }

/* ===== 主内容区 ===== */
.content-main {
  flex: 1;
  min-width: 0;
}

.main-article { width: 100%; }

.page-content-section {
  /* 正文内容容器 */
}

/* 正文内 section 样式 */
.page-content-section section {
  background: var(--light-card);
  border-radius: var(--radius-card);
  padding: 36px 32px;
  margin-bottom: 32px;
  box-shadow: var(--shadow-soft);
  border-bottom: 3px solid var(--secondary);
  transition: box-shadow var(--transition), transform var(--transition);
}
.page-content-section section:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.page-content-section section small {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 6px;
  background: rgba(235,135,156,0.10);
  padding: 2px 10px;
  border-radius: 20px;
}

.page-content-section h2 {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 16px;
  letter-spacing: 0.03em;
  line-height: 1.2;
}

.page-content-section h3 {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-muted);
  margin: 20px 0 10px;
  letter-spacing: 0.02em;
}

.page-content-section p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-main);
  margin-bottom: 14px;
}

.page-content-section ul,
.page-content-section ol {
  padding-left: 1.4em;
  margin-bottom: 14px;
}
.page-content-section li {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-main);
  margin-bottom: 6px;
}

.page-content-section a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition);
}
.page-content-section a:hover { color: var(--dark); }

.page-content-section strong { font-weight: 600; color: var(--dark); }
.page-content-section em { font-style: italic; color: var(--text-muted); }

.page-content-section blockquote {
  border-left: 3px solid var(--primary);
  padding: 12px 20px;
  margin: 18px 0;
  background: rgba(235,135,156,0.06);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 1rem;
  color: var(--text-muted);
}

/* ===== 页脚 ===== */
.site-footer {
  background: var(--dark);
  color: var(--text-light);
  margin-top: 60px;
}

.footer-cta-block {
  text-align: center;
  padding: 56px 24px 48px;
  background: linear-gradient(135deg, #3d1a22 0%, var(--dark) 100%);
  border-top: 2px solid rgba(235,135,156,0.18);
  border-bottom: 1px solid rgba(235,135,156,0.12);
}
.footer-cta-block small {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--primary);
  margin-bottom: 10px;
  border: 1px solid rgba(235,135,156,0.28);
  padding: 3px 14px;
  border-radius: 20px;
}
.footer-cta-title {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 700;
  color: #fff;
  margin: 0 auto 24px;
  max-width: 520px;
  letter-spacing: 0.04em;
}
.footer-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 36px;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius-btn);
  box-shadow: 0 3px 16px rgba(235,135,156,0.3);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.footer-cta-btn:hover, .footer-cta-btn:focus-visible {
  background: #d4637a;
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 28px 32px;
}

.footer-col small {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--primary);
  margin-bottom: 12px;
}

.footer-col-brand .footer-logo { margin-bottom: 12px; }
.footer-col-brand .brand-text {
  font-family: var(--font-head);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--secondary);
}
.footer-col-brand .brand-logo { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; }
.footer-slogan {
  font-size: 0.88rem;
  color: rgba(255,182,193,0.65);
  line-height: 1.65;
  max-width: 220px;
}

.footer-col-nav ul li { margin-bottom: 4px; }
.footer-col-nav ul li a,
.footer-col-contact ul li a {
  display: block;
  padding: 6px 0;
  font-size: 0.88rem;
  color: rgba(255,182,193,0.7);
  min-height: 40px;
  display: flex;
  align-items: center;
  transition: color var(--transition), padding-left var(--transition);
}
.footer-col-nav ul li a:hover,
.footer-col-contact ul li a:hover,
.footer-col-nav ul li a:focus-visible,
.footer-col-contact ul li a:focus-visible {
  color: #fff;
  padding-left: 6px;
  outline: none;
}

.footer-col-contact address small { margin-bottom: 12px; }
.footer-col-contact ul li span {
  display: flex;
  align-items: center;
  min-height: 40px;
  font-size: 0.88rem;
  color: rgba(255,182,193,0.55);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 18px 28px;
  border-top: 1px solid rgba(235,135,156,0.10);
  max-width: 1100px;
  margin: 0 auto;
}
.footer-copy {
  font-size: 0.8rem;
  color: rgba(255,182,193,0.45);
}
.footer-bottom-links {
  display: flex;
  gap: 20px;
}
.footer-bottom-links li a {
  font-size: 0.8rem;
  color: rgba(255,182,193,0.45);
  min-height: 40px;
  display: flex;
  align-items: center;
  transition: color var(--transition);
}
.footer-bottom-links li a:hover { color: var(--primary); }

/* ===== 响应式 ===== */
@media (max-width: 900px) {
  .content-layout {
    flex-direction: column;
    padding: 0 14px;
    margin-top: 32px;
    gap: 18px;
  }
  .content-aside {
    position: static;
    flex: none;
    width: 100%;
    flex-direction: row;
    overflow-x: auto;
    gap: 12px;
    padding-bottom: 4px;
  }
  .aside-card { flex: 0 0 240px; }
  .footer-cols {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    padding: 36px 20px 24px;
  }
  .footer-col-brand { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .bottom-nav-left li a,
  .bottom-nav-right li a {
    font-size: 0.65rem;
    padding: 4px 5px;
  }
  .bottom-nav-left { gap: 0; }
  .bottom-nav-right { gap: 0; }
  .cta-btn { padding: 6px 10px; font-size: 0.7rem; }
  .bottom-brand { width: 48px; height: 48px; }

  .hero-content { padding: 36px 18px 32px; }
  .hero-h1 { font-size: 2.1rem; }
  .hero-sub { font-size: 0.93rem; }

  .page-content-section section { padding: 24px 18px; }
  .page-content-section h2 { font-size: 1.5rem; }

  .footer-cols {
    grid-template-columns: 1fr;
    padding: 28px 18px 20px;
  }
  .footer-col-brand { grid-column: auto; }
  .footer-cta-block { padding: 40px 18px 36px; }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 18px;
  }

  .content-aside { flex-direction: column; }
  .aside-card { flex: none; width: 100%; }
}

/* ===== 无障碍：减弱动效 ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ===== 焦点样式 ===== */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
