@import url('https://fonts.googleapis.com/css2?family=Cormorant:wght@400;500;600;700&family=Montserrat:wght@300;400;500;600;700&display=swap');

/* =====================
   CSS 变量 & 重置
   ===================== */
:root {
  --ice: #c8e0f4;
  --pink: #f5e0e8;
  --ink: #171f26;
  --ice-dark: #a8c4e0;
  --ice-light: #dff0ff;
  --pink-dark: #e0bfcd;
  --ink-light: #2e3c4a;
  --white: #ffffff;
  --shadow-out-1: -6px -6px 16px rgba(255,255,255,0.75);
  --shadow-out-2: 6px 6px 16px rgba(23,31,38,0.18);
  --shadow-in-1: inset 3px 3px 8px rgba(23,31,38,0.14);
  --shadow-in-2: inset -3px -3px 8px rgba(255,255,255,0.7);
  --radius-card: 14px;
  --radius-btn: 10px;
  --font-head: 'Cormorant', 'Noto Serif SC', Georgia, serif;
  --font-body: 'Montserrat', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --bottom-nav-h: 64px;
  --max-prose: 720px;
  --max-layout: 1200px;
  --transition: 150ms ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 17px; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--ice);
  color: var(--ink);
  line-height: 1.65;
  min-height: 100vh;
  padding-bottom: calc(var(--bottom-nav-h) + 24px);
}

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--ink-light); }
img { max-width: 100%; height: auto; display: block; }

/* =====================
   Neumorphism 工具类
   ===================== */
.neu-card {
  background: linear-gradient(145deg, var(--ice-light), var(--ice));
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-out-1), var(--shadow-out-2);
  padding: 1.6rem 1.8rem;
  transition: box-shadow var(--transition), transform var(--transition);
}
.neu-card:hover {
  box-shadow: -8px -8px 20px rgba(255,255,255,0.8), 8px 8px 20px rgba(23,31,38,0.22);
  transform: translateY(-2px);
}
.neu-card--pressed,
.neu-card:active {
  box-shadow: var(--shadow-in-1), var(--shadow-in-2);
  transform: scale(0.99);
}

.sidebar-card--pink {
  background: linear-gradient(145deg, #fdeef4, var(--pink));
}

/* =====================
   按钮
   ===================== */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-btn);
  border: none;
  cursor: pointer;
  transition: box-shadow var(--transition), transform var(--transition);
  min-height: 44px;
  line-height: 1.4;
}
.btn--primary {
  background: linear-gradient(145deg, var(--ice-light), var(--ice-dark));
  color: var(--ink);
  box-shadow: var(--shadow-out-1), var(--shadow-out-2);
}
.btn--primary:hover {
  box-shadow: -4px -4px 10px rgba(255,255,255,0.8), 4px 4px 10px rgba(23,31,38,0.22);
}
.btn--primary:active {
  box-shadow: var(--shadow-in-1), var(--shadow-in-2);
  transform: scale(0.98);
}
.btn--ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: var(--shadow-out-1), var(--shadow-out-2);
  border: 1.5px solid var(--ice-dark);
}
.btn--ghost:hover {
  background: linear-gradient(145deg, rgba(255,255,255,0.5), var(--ice));
}

/* =====================
   全屏遮罩菜单
   ===================== */
.fullscreen-menu {
  position: fixed;
  inset: 0;
  background: linear-gradient(160deg, var(--ice) 0%, var(--pink) 100%);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease;
}
.fullscreen-menu.is-open {
  opacity: 1;
  pointer-events: all;
}
.fullscreen-menu nav ol {
  list-style: none;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.fullscreen-menu nav ol li a {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ink);
  padding: 0.5rem 1rem;
  display: block;
  border-radius: 8px;
  transition: background var(--transition);
}
.fullscreen-menu nav ol li a:hover {
  background: rgba(23,31,38,0.07);
}
.menu-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--ink);
  min-height: 44px;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: var(--shadow-out-1), var(--shadow-out-2);
  background: var(--ice);
}
.menu-search {
  width: 100%;
  max-width: 360px;
  padding: 0 1rem;
}
.menu-search input {
  width: 100%;
  padding: 0.7rem 1.2rem;
  border-radius: 10px;
  border: none;
  background: linear-gradient(145deg, var(--ice-light), var(--ice));
  box-shadow: var(--shadow-in-1), var(--shadow-in-2);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  outline: none;
  min-height: 44px;
}

/* =====================
   底部固定导航条
   ===================== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--bottom-nav-h);
  background: linear-gradient(145deg, var(--ice-light), var(--ice));
  box-shadow: 0 -4px 20px rgba(23,31,38,0.12), 0 -1px 4px rgba(255,255,255,0.5);
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 1.2rem;
  gap: 0.5rem;
}
.bottom-nav__logo {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}
.bottom-nav__center {
  flex: 1;
  display: flex;
  justify-content: center;
}
.bottom-nav__center ol {
  list-style: none;
  display: flex;
  gap: 0.2rem;
}
.bottom-nav__center ol li a {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink);
  padding: 0.5rem 0.6rem;
  border-radius: 8px;
  display: block;
  min-height: 40px;
  display: flex;
  align-items: center;
  transition: background var(--transition);
}
.bottom-nav__center ol li a:hover {
  background: rgba(23,31,38,0.07);
}
.hamburger {
  background: linear-gradient(145deg, var(--ice-light), var(--ice));
  border: none;
  border-radius: 10px;
  width: 44px;
  height: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  box-shadow: var(--shadow-out-1), var(--shadow-out-2);
  transition: box-shadow var(--transition);
  justify-self: end;
}
.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform var(--transition);
}
.hamburger:active {
  box-shadow: var(--shadow-in-1), var(--shadow-in-2);
}

/* =====================
   Hero（首页）
   ===================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding-bottom: calc(var(--bottom-nav-h) + 4rem);
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--ice) 0%, var(--ice-light) 55%, var(--pink) 100%);
}
.hero__slash {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 120px;
  background: var(--ice);
  clip-path: polygon(0 60%, 100% 0, 100% 100%, 0 100%);
  z-index: 0;
}
.hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max-layout);
  margin: 0 auto;
  padding: 2rem 2rem 1rem;
  display: flex;
  justify-content: flex-end;
}
.hero__text {
  max-width: 640px;
  text-align: right;
}
.hero__eyebrow {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--ink-light);
  margin-bottom: 1rem;
  text-transform: uppercase;
}
.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 5.5vw, 4.2rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 1.2rem;
}
.hero__sub {
  font-size: 1.05rem;
  color: var(--ink-light);
  margin-bottom: 2rem;
  max-width: 480px;
  margin-left: auto;
}
.hero__ctas {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}

/* =====================
   页面 Hero（内页）
   ===================== */
.page-hero {
  background: linear-gradient(145deg, var(--ice-light), var(--ice));
  padding: 5rem 2rem 3rem;
  border-bottom: 2px solid var(--ice-dark);
  box-shadow: 0 4px 16px rgba(23,31,38,0.08);
}
.page-hero--cases { border-bottom-color: var(--pink-dark); }
.page-hero--faq { background: linear-gradient(145deg, var(--ice), var(--pink)); }
.page-hero--about { background: linear-gradient(135deg, var(--pink), var(--ice)); }
.page-hero--contact { background: linear-gradient(145deg, var(--ice-light), var(--pink)); }
.page-hero--privacy { background: linear-gradient(145deg, var(--ice), var(--ice-dark)); }
.page-hero__inner {
  max-width: var(--max-layout);
  margin: 0 auto;
}
.page-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
  margin: 0.8rem 0 0.8rem;
}
.page-hero__desc {
  font-size: 1rem;
  color: var(--ink-light);
  max-width: 600px;
}

/* =====================
   Breadcrumb
   ===================== */
.breadcrumb {
  font-size: 0.82rem;
  color: var(--ink-light);
  margin-bottom: 0.5rem;
}
.breadcrumb a { color: var(--ink-light); border-bottom: 1px solid var(--ice-dark); }
.breadcrumb a:hover { color: var(--ink); }

/* =====================
   日期
   ===================== */
.page-date {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--ink-light);
  margin-right: 1rem;
  margin-top: 0.5rem;
}
.page-dates { margin-top: 0.5rem; }

/* =====================
   main / div / article 布局
   ===================== */
main {
  max-width: var(--max-layout);
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2.5rem;
  align-items: start;
}
div {
  min-width: 0;
}
.content-section {
  margin-bottom: 2.5rem;
}
.prose-wrap {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--ink);
}

/* =====================
   侧边栏
   ===================== */
aside.sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: sticky;
  top: 1rem;
}
.sidebar-nav {
  list-style: none;
  margin-top: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.sidebar-nav li a {
  display: block;
  padding: 0.5rem 0.6rem;
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--ink);
  transition: background var(--transition);
  min-height: 40px;
  display: flex;
  align-items: center;
}
.sidebar-nav li a:hover {
  background: rgba(23,31,38,0.07);
}

/* =====================
   卡片网格
   ===================== */
.cards-section {
  margin-bottom: 2.5rem;
}
.cards-section h2 {
  font-family: var(--font-head);
  font-size: 1.7rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--ink);
}
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.4rem;
}
.cards-grid--3 {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}
.service-card h3,
.case-card h3 {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
  color: var(--ink);
}
.service-card p,
.case-card p {
  font-size: 0.9rem;
  color: var(--ink-light);
  margin-bottom: 1rem;
  line-height: 1.6;
}
.card-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 2px solid var(--ice-dark);
  padding-bottom: 1px;
  transition: border-color var(--transition);
}
.card-link:hover { border-color: var(--ink); }

/* =====================
   子页/案例列表
   ===================== */
.child-list-section {
  margin-bottom: 2rem;
}
.child-list-section h2 {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
}
.child-list,
.case-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.child-list li {
  background: linear-gradient(145deg, var(--ice-light), var(--ice));
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-out-1), var(--shadow-out-2);
  padding: 1rem 1.4rem;
  transition: box-shadow var(--transition), transform var(--transition);
}
.child-list li:hover {
  transform: translateX(4px);
  box-shadow: -4px -4px 12px rgba(255,255,255,0.8), 6px 6px 14px rgba(23,31,38,0.18);
}
.child-list li a {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 600;
  display: block;
  margin-bottom: 0.25rem;
}
.child-list li small {
  font-size: 0.85rem;
  color: var(--ink-light);
  display: block;
}
.case-list-item {
  display: flex;
}
.case-list-item__body {
  flex: 1;
}
.case-list-item__title {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 600;
  display: block;
  margin-bottom: 0.3rem;
}
.case-list-item small {
  font-size: 0.85rem;
  color: var(--ink-light);
  display: block;
  margin-bottom: 0.25rem;
}

/* =====================
   FAQ
   ===================== */
.faq-content { }
.faq-entry {
  margin-bottom: 2rem;
}
.faq-cta-section {
  margin-bottom: 2rem;
}
.faq-cta-section h2 {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

/* =====================
   About
   ===================== */
.about-values {
  margin-bottom: 2rem;
}
.about-values h2 {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
}

/* =====================
   Contact Form
   ===================== */
.contact-form-section h2 {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 1.4rem;
}
.neu-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  max-width: 560px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.form-group label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
}
.neu-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  border: none;
  background: linear-gradient(145deg, var(--ice-light), var(--ice));
  box-shadow: var(--shadow-in-1), var(--shadow-in-2);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  outline: none;
  transition: box-shadow var(--transition);
  min-height: 44px;
}
.neu-input:focus {
  box-shadow: inset 4px 4px 10px rgba(23,31,38,0.18), inset -3px -3px 8px rgba(255,255,255,0.7);
}
textarea.neu-input {
  min-height: 120px;
  resize: vertical;
}

/* =====================
   h2/h3 标题样式
   ===================== */
h2 {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 1rem;
}
h2 span {
  display: inline;
}
h3 {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.6rem;
}
h3 span {
  display: inline;
}
.sidebar-card h3 {
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

/* =====================
   Prose（正文内容区）
   ===================== */
.prose-wrap h2 {
  margin-top: 2rem;
  margin-bottom: 0.8rem;
}
.prose-wrap h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.6rem;
}
.prose-wrap p {
  margin-bottom: 1rem;
}
.prose-wrap ul, .prose-wrap ol {
  margin: 0.8rem 0 1rem 1.4rem;
}
.prose-wrap li { margin-bottom: 0.4rem; }
.prose-wrap a {
  color: var(--ink);
  border-bottom: 1.5px solid var(--ice-dark);
}
.prose-wrap a:hover { border-color: var(--ink); }
.prose-wrap table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.92rem;
}
.prose-wrap th, .prose-wrap td {
  border: 1px solid var(--ice-dark);
  padding: 0.6rem 0.8rem;
  text-align: left;
}
.prose-wrap th {
  background: var(--ice-light);
  font-weight: 600;
}
.prose-wrap blockquote {
  border-left: 4px solid var(--ice-dark);
  padding-left: 1rem;
  color: var(--ink-light);
  font-style: italic;
  margin: 1rem 0;
}
.prose-wrap code {
  background: var(--ice-light);
  border-radius: 4px;
  padding: 0.1em 0.4em;
  font-size: 0.9em;
}
.prose-wrap pre {
  background: var(--ink);
  color: var(--ice-light);
  border-radius: 10px;
  padding: 1rem 1.2rem;
  overflow-x: auto;
  margin: 1rem 0;
}
.prose-wrap pre code {
  background: none;
  color: inherit;
  padding: 0;
}

/* =====================
   FAQ 内页专属
   ===================== */
.faq-page .prose-wrap details {
  background: linear-gradient(145deg, var(--ice-light), var(--ice));
  border-radius: 10px;
  box-shadow: var(--shadow-out-1), var(--shadow-out-2);
  margin-bottom: 1rem;
  padding: 1rem 1.2rem;
}
.faq-page .prose-wrap summary {
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  min-height: 40px;
  display: flex;
  align-items: center;
}
.faq-page .prose-wrap summary::-webkit-details-marker { display: none; }

/* =====================
   页脚（极简：仅 p + small）
   ===================== */
footer {
  max-width: var(--max-layout);
  margin: 2rem auto 0;
  padding: 2rem 1.5rem 1rem;
  border-top: 1.5px solid var(--ice-dark);
  text-align: center;
}
footer p {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}
footer p a {
  color: var(--ink);
  border-bottom: 1px solid var(--ice-dark);
  padding: 0.25rem 0.1rem;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
}
footer p a:hover { border-color: var(--ink); }
footer small {
  font-size: 0.78rem;
  color: var(--ink-light);
}

/* =====================
   Scroll Reveal
   ===================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 500ms ease, transform 500ms ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .neu-card { transition: none; }
  .btn { transition: none; }
}

/* =====================
   响应式
   ===================== */
@media (max-width: 900px) {
  main {
    grid-template-columns: 1fr;
  }
  aside.sidebar {
    position: static;
  }
  .cards-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  :root { --bottom-nav-h: 60px; }
  html { font-size: 16px; }

  .hero__inner { padding: 1.5rem 1rem 1rem; }
  .hero__text { max-width: 100%; }
  .hero h1 { font-size: clamp(1.8rem, 8vw, 2.8rem); }
  .hero__ctas { flex-direction: column; align-items: flex-end; }

  .page-hero { padding: 4.5rem 1rem 2rem; }
  .page-hero h1 { font-size: clamp(1.5rem, 6vw, 2.2rem); }

  main { padding: 1.5rem 1rem; gap: 1.5rem; }

  .cards-grid,
  .cards-grid--3 {
    grid-template-columns: 1fr;
  }

  .bottom-nav {
    padding: 0 0.8rem;
  }
  .bottom-nav__center ol li a {
    font-size: 0.75rem;
    padding: 0.4rem 0.5rem;
  }
  .bottom-nav__logo {
    font-size: 0.95rem;
    max-width: 100px;
  }

  .neu-card { padding: 1.2rem 1.3rem; }

  footer { padding: 1.5rem 1rem 0.8rem; }
}

@media (max-width: 375px) {
  .hero__text { text-align: right; }
  .bottom-nav__center { display: none; }
  .bottom-nav { grid-template-columns: 1fr auto; }
}
