/* ==========================================================================
   谧锶馫坊 · Ms Aromatico — 全站共用样式
   （每个页面自己的 <style> 只放该页独有的样式，其余都在这里统一维护）

   设计基调：手作香坊的田野笔记本，不是 app 仪表盘。
   用发丝线代替卡片投影，用一枚放大的品牌字作为全站签名印记。
   ========================================================================== */

:root {
  --bg: #FBF3EA;
  --pink: #E3B7B4;
  --pink-deep: #cf9793;
  --brown: #B99671;
  --brown-deep: #8f7048;
  --dark: #362E2B;
  --text: #45372f;
  --text-soft: #93816f;
  --moss: #8B9574;
  --line: rgba(185, 150, 113, 0.35);
  --card-bg: #fffaf4;
  --radius-lg: 16px;
  --radius-md: 8px;
  --radius-sm: 4px;
  --shadow-sm: 0 1px 3px rgba(54, 46, 43, 0.06);
  --shadow-md: 0 6px 20px rgba(54, 46, 43, 0.1);
  --shadow-lift: 0 10px 26px rgba(54, 46, 43, 0.14);
  --font-display: 'ZCOOL KuaiLe', 'Microsoft YaHei', cursive, sans-serif;
  --font-body: 'Noto Serif SC', 'Songti SC', 'SimSun', serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.9;
  font-weight: 400;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  letter-spacing: 0.5px;
  color: var(--brown-deep);
  font-weight: normal;
}

p, li { color: var(--text); }

a { color: inherit; }

/* ---------- 顶部导航 ---------- */

header {
  background-color: rgba(251, 243, 234, 0.92);
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
}

.logo-link {
  display: flex;
  align-items: center;
  height: 50px;
  width: 150px;
  overflow: hidden;
  border-radius: 8px;
  position: relative;
  left: -20px;
}

.logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.lang-toggle {
  display: flex;
  background: transparent;
  border-radius: 20px;
  padding: 0.3rem;
  cursor: pointer;
  border: 1px solid var(--line);
}

.lang-toggle span {
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.85rem;
  transition: all 0.3s ease;
  color: var(--text-soft);
  font-family: var(--font-display);
}

.lang-toggle span.active {
  background: var(--brown);
  color: var(--card-bg);
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  z-index: 20;
  background: none;
  border: none;
}

.menu-toggle span {
  width: 28px;
  height: 3px;
  background-color: var(--dark);
  border-radius: 2px;
  transition: all 0.3s ease;
  display: block;
}

.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(7px, 7px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -7px); }

nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  padding: 5rem 2rem 2rem;
  box-shadow: -1px 0 0 var(--line);
  transition: right 0.4s ease;
  z-index: 15;
}

nav.active { right: 0; }

nav a {
  margin-bottom: 1.5rem;
  text-decoration: none;
  color: var(--dark);
  font-weight: 500;
  transition: color 0.2s ease;
  font-family: var(--font-display);
  font-size: 1.1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--line);
}

nav a:hover { color: var(--brown-deep); }

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(54, 46, 43, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
  z-index: 12;
}

.overlay.active { opacity: 1; visibility: visible; }

/* ---------- 正文容器：发丝线代替卡片投影 ---------- */

.section,
.content,
.info,
.contact-card {
  max-width: 920px;
  margin: 0 auto 3rem;
  padding: 2.4rem 0 0;
  background: transparent;
  border-top: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
}

.content { max-width: 920px; text-align: left; }

/* ---------- 通用标题/正文 ---------- */

.section h2, .content h2, .contact h2 {
  font-size: 2.2rem;
  text-align: center;
  margin: 0 0 1.6rem;
  color: var(--brown-deep);
}

.section h3, .content h3 {
  font-size: 1.35rem;
  margin: 2.2rem 0 0.9rem;
}

.section p, .content p { font-size: 1.02rem; }

/* ---------- 通用按钮：素色墨字，不是白字 app 按钮 ---------- */

.btn {
  display: inline-block;
  background-color: var(--pink);
  color: var(--dark);
  border: 1px solid var(--pink-deep);
  padding: 0.8rem 1.8rem;
  border-radius: 25px;
  font-size: 1rem;
  cursor: pointer;
  margin-top: 1rem;
  text-decoration: none;
  font-family: var(--font-display);
  transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
}

.btn:hover {
  background-color: var(--brown);
  border-color: var(--brown-deep);
  color: var(--card-bg);
  transform: translateY(-2px);
}

/* ---------- 页脚 ---------- */

footer {
  text-align: center;
  padding: 2.5rem 2rem 3rem;
  color: var(--text-soft);
  font-size: 0.9rem;
  font-family: var(--font-display);
  border-top: 1px solid var(--line);
  margin-top: 2rem;
}

footer a {
  margin: 0 0.5rem;
  text-decoration: none;
  color: var(--dark);
  transition: color 0.3s;
}

footer a:hover { color: var(--brown-deep); }

/* ---------- 全站签名印记：放大的品牌字水印（纯 CSS，不占用任何可编辑内容） ---------- */

.seal {
  position: relative;
}

.seal::before {
  content: attr(data-seal);
  position: absolute;
  top: -1.5rem;
  right: -0.5rem;
  font-family: var(--font-display);
  font-size: 11rem;
  line-height: 1;
  color: var(--brown);
  opacity: 0.07;
  z-index: 0;
  pointer-events: none;
  user-select: none;
}

.seal > * { position: relative; z-index: 1; }

@media (max-width: 720px) {
  .seal::before { font-size: 7rem; top: -1rem; right: -0.3rem; }
}

/* ---------- 唯一的入场动效：只用在首页 Hero 上 ---------- */

@media (prefers-reduced-motion: no-preference) {
  .hero-reveal {
    animation: revealUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

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

@media (max-width: 640px) {
  .section, .content, .info { padding-top: 1.8rem; margin-left: 1rem; margin-right: 1rem; margin-bottom: 2.2rem; }
  .section h2, .content h2, .contact h2 { font-size: 1.85rem; }
}
