@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400;0,600;0,700;0,800;1,400&display=swap');

/* ===== CSS 自定义属性 ===== */
:root {
  --color-primary: #eb879c;
  --color-secondary: #ffb6c1;
  --color-dark: #26171a;
  --color-dark-80: rgba(38,23,26,0.8);
  --color-dark-40: rgba(38,23,26,0.4);
  --color-bg: #fff5f7;
  --color-bg-card: #ffffff;
  --color-bg-nav: rgba(255,245,247,0.95);
  --color-text: #2d1a1e;
  --color-text-muted: #7a5560;
  --color-border: rgba(235,135,156,0.25);
  --shadow-sm: 0 2px 6px rgba(235,135,156,0.15), 0 1px 2px rgba(38,23,26,0.06);
  --shadow-md: 0 4px 16px rgba(235,135,156,0.18), 0 2px 6px rgba(38,23,26,0.08);
  --shadow-lg: 0 8px 32px rgba(235,135,156,0.22), 0 3px 10px rgba(38,23,26,0.10);
  --radius-card: 18px;
  --radius-btn: 10px;
  --radius-sm: 8px;
  --font: 'Plus Jakarta Sans', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', system-ui, sans-serif;
  --header-h: 64px;
  --transition: 220ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== 重置 ===== */
*, *::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: var(--font);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  font-size: 1rem;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: 3px;
}
ul, ol { list-style: none; }

/* ===== 顶部导航 ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: var(--color-bg-nav);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  z-index: 100;
  border-bottom: 1px solid var(--color-border);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.brand-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  text-decoration: none;
}
.brand-logo { height: 32px; width: auto; }
.brand-name {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--color-dark);
  letter-spacing: -0.02em;
}
#main-nav { margin-left: auto; }
#main-nav ol {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
#main-nav ol li a {
  display: flex;
  align-items: center;
  padding: 0.5rem 0.75rem;
  min-height: 40px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
  text-decoration: none;
}
#main-nav ol li a:hover {
  background: rgba(235,135,156,0.12);
  color: var(--color-primary);
}
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
  margin-left: auto;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--color-dark);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  background: linear-gradient(135deg, #fff0f3 0%, #ffe4ea 60%, #ffd6df 100%);
  position: relative;
  overflow: hidden;
}
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  width: 100%;
}
.hero-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}
.hero-text h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--color-dark);
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}
.hero-desc {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 2rem;
}
.hero-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 2rem;
  min-height: 48px;
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  border-radius: var(--radius-btn);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  text-decoration: none;
}
.hero-btn:hover {
  background: #d9728a;
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
  text-decoration: none;
  color: #fff;
}
.hero-media {
  flex: 0 0 45%;
  max-width: 520px;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero-img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius-card);
}

/* ===== 主体布局 main > article.wrap > section > div ===== */
main {
  padding: 3rem 0 4rem;
}
.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
}

/* ===== 侧边栏（左侧）===== */
.page-aside {
  flex: 0 0 220px;
  width: 220px;
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
  background: var(--color-bg-card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-md);
  padding: 1.5rem 1.25rem;
  border: 1px solid var(--color-border);
}
.aside-eyebrow {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  text-transform: none;
  margin-bottom: 0.75rem;
}
.page-aside ul {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.page-aside ul li a {
  display: flex;
  align-items: center;
  padding: 0.5rem 0.75rem;
  min-height: 40px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-text-muted);
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
  text-decoration: none;
}
.page-aside ul li a:hover {
  background: rgba(235,135,156,0.1);
  color: var(--color-primary);
}

/* ===== 内容区 section > div ===== */
.content-section {
  flex: 1;
  min-width: 0;
}
.page-content {
  width: 100%;
}

/* ===== 正文内 section 区块（page.content 里的 <section>）===== */
.page-content section {
  background: var(--color-bg-card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-md);
  padding: 2.5rem 2rem;
  margin-bottom: 2.5rem;
  border: 1px solid var(--color-border);
  scroll-margin-top: calc(var(--header-h) + 1.5rem);
  transition: box-shadow var(--transition), transform var(--transition);
}
.page-content section:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.page-content section:last-child { margin-bottom: 0; }

/* 标题装饰：small 眉题 + h2/h3 */
.page-content small {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  margin-bottom: 0.4rem;
}
.page-content h2 {
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 800;
  color: var(--color-dark);
  line-height: 1.3;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}
.page-content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-dark);
  line-height: 1.4;
  margin-top: 1.5rem;
  margin-bottom: 0.6rem;
}
.page-content p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--color-text);
  margin-bottom: 1rem;
}
.page-content p:last-child { margin-bottom: 0; }
.page-content ul, .page-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}
.page-content ul { list-style: disc; }
.page-content ol { list-style: decimal; }
.page-content li {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 0.4rem;
  color: var(--color-text);
}
.page-content a {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.page-content a:hover { color: #d9728a; }
.page-content strong { font-weight: 700; color: var(--color-dark); }
.page-content em { font-style: italic; color: var(--color-text-muted); }
.page-content img {
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  margin: 1rem 0;
}
.page-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}
.page-content th, .page-content td {
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--color-border);
  text-align: left;
}
.page-content th {
  background: rgba(235,135,156,0.1);
  font-weight: 700;
  color: var(--color-dark);
}
.page-content blockquote {
  border-left: 3px solid var(--color-primary);
  padding-left: 1rem;
  margin: 1rem 0;
  color: var(--color-text-muted);
  font-style: italic;
}

/* ===== 页脚 footer（仅 p + small）===== */
footer {
  background: var(--color-dark);
  color: rgba(255,255,255,0.85);
}
.footer-top {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem 2rem;
  display: flex;
  gap: 3rem;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
}
.footer-brand-name {
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.5rem;
}
.footer-brand small {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
  max-width: 320px;
  display: block;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.footer-eyebrow {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}
.footer-contact p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
}
.footer-contact a {
  color: var(--color-secondary);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
footer > .footer-bottom p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  margin: 0;
}
footer > .footer-bottom small {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

/* ===== 动效：Stagger + Hover Micro-interaction ===== */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.page-content section {
  animation: fadeSlideUp 0.35s ease both;
}
.page-content section:nth-child(1) { animation-delay: 0.05s; }
.page-content section:nth-child(2) { animation-delay: 0.10s; }
.page-content section:nth-child(3) { animation-delay: 0.15s; }
.page-content section:nth-child(4) { animation-delay: 0.20s; }
.page-content section:nth-child(5) { animation-delay: 0.25s; }
.page-content section:nth-child(6) { animation-delay: 0.30s; }
.page-content section:nth-child(7) { animation-delay: 0.35s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ===== 响应式 ===== */
@media (max-width: 900px) {
  .wrap {
    flex-direction: column;
  }
  .page-aside {
    flex: none;
    width: 100%;
    position: static;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.25rem;
  }
  .aside-eyebrow { width: 100%; margin-bottom: 0.25rem; }
  .page-aside ul {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.25rem;
  }
  .hero-inner {
    flex-direction: column-reverse;
    padding: 2.5rem 1.5rem;
    gap: 2rem;
  }
  .hero-media {
    flex: none;
    max-width: 100%;
    width: 100%;
  }
  .hero-text {
    align-items: center;
    text-align: center;
  }
  .hero-desc { text-align: center; }
  .hero-text h1 { text-align: center; }
  .footer-top { flex-direction: column; gap: 1.5rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  :root { --header-h: 56px; }
  .nav-toggle { display: flex; }
  #main-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--color-bg-nav);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    padding: 0.75rem 0;
    z-index: 99;
  }
  #main-nav.is-open { display: block; }
  #main-nav ol {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  #main-nav ol li a {
    padding: 0.75rem 1.5rem;
    min-height: 48px;
    font-size: 1rem;
    border-radius: 0;
  }
  .hero-section { min-height: auto; padding-top: var(--header-h); }
  .hero-inner { padding: 2rem 1rem; }
  .page-content section { padding: 1.75rem 1.25rem; }
  .footer-top { padding: 2rem 1rem 1.5rem; }
  .footer-bottom { padding: 1rem; }
}

/* ===== scroll-margin-top for 单页 section ===== */
section[id] {
  scroll-margin-top: calc(var(--header-h) + 1rem);
}
