/* =====================================================
   silklabo — Neumorphism Dark Theme
   主色 #c8e0f4 · 辅色 #f5e0e8 · 墨色 #171f26
   ===================================================== */

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

/* ── 变量 ── */
:root {
  --bg: #171f26;
  --bg-light: #1e2830;
  --bg-mid: #222d38;
  --primary: #c8e0f4;
  --secondary: #f5e0e8;
  --text: #d4e5f2;
  --text-muted: #8fa8be;
  --text-dark: #171f26;
  --radius-sm: 10px;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow-out: -5px -5px 15px rgba(255,255,255,0.04), 5px 5px 15px rgba(0,0,0,0.5);
  --shadow-in:  inset -3px -3px 8px rgba(255,255,255,0.04), inset 3px 3px 8px rgba(0,0,0,0.5);
  --shadow-card: -4px -4px 10px rgba(255,255,255,0.03), 4px 4px 12px rgba(0,0,0,0.6);
  --font-title: 'Anton', sans-serif;
  --font-body: 'Epilogue', system-ui, -apple-system, sans-serif;
  --max-w: 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(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; border-radius: var(--radius-sm); }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--secondary); }

/* ── 公告条 ── */
.announce-bar {
  background: linear-gradient(90deg, #c8e0f4 0%, #f5e0e8 100%);
  color: var(--text-dark);
  font-size: 0.82rem;
  font-weight: 600;
  text-align: center;
  padding: 6px 16px;
  letter-spacing: 0.04em;
}

/* ── 页眉 ── */
.site-header {
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.5);
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px 10px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.brand-logo {
  font-family: var(--font-title);
  font-size: 2rem;
  letter-spacing: 0.06em;
  color: var(--primary);
  text-transform: uppercase;
  line-height: 1;
}

.header-logo { width: 40px; height: 40px; object-fit: contain; }

/* ── 导航：header > nav > p > a ── */
.main-nav {
  background: var(--bg-light);
  border-top: 1px solid rgba(200,224,244,0.08);
}

.main-nav > p {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 6px 20px;
}

.main-nav > p > a {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  min-height: 40px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}

.main-nav > p > a:hover,
.main-nav > p > a[aria-current="page"] {
  background: var(--bg-mid);
  color: var(--primary);
  box-shadow: var(--shadow-out);
}

/* ── 网格/噪点底纹 ── */
.hero-grid-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(200,224,244,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200,224,244,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: 0;
}

/* ── Hero（首页） ── */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(160deg, #171f26 60%, #1a2535 100%);
  padding: 80px 24px 120px;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 700px;
}

.hero-title {
  font-family: var(--font-title);
  font-size: clamp(2.8rem, 8vw, 6rem);
  line-height: 1.05;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--primary) 30%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 20px;
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.7;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  min-height: 48px;
  background: linear-gradient(145deg, var(--primary), #a8c8e8);
  color: var(--text-dark);
  font-weight: 700;
  font-size: 1rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-out);
  transition: transform var(--transition), box-shadow var(--transition);
  letter-spacing: 0.03em;
}

.btn-primary:hover {
  color: var(--text-dark);
  transform: scale(1.03);
  box-shadow: -6px -6px 18px rgba(255,255,255,0.06), 6px 6px 18px rgba(0,0,0,0.6);
}

.btn-primary:active {
  transform: scale(0.97);
  box-shadow: var(--shadow-in);
}

.hero-figure {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.hero-figure img.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.15;
  border-radius: 0;
}

.hero-figure--empty {
  background: radial-gradient(ellipse at 60% 40%, rgba(200,224,244,0.06) 0%, transparent 70%);
}

.hero-arc {
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--bg);
  clip-path: ellipse(55% 100% at 50% 100%);
  z-index: 3;
}

/* ── 首页内容区 ── */
.content-section,
.service-body-section,
.cases-body-section,
.faq-body-section,
.about-body-section,
.contact-body-section,
.privacy-body-section,
.default-body-section {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  max-width: var(--max-w);
  margin: 48px auto;
  padding: 0 24px;
}

/* ── aside（左侧） ── */
.home-aside,
.service-aside,
.cases-aside,
.faq-aside,
.about-aside,
.contact-aside,
.privacy-aside,
.default-aside {
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  box-shadow: var(--shadow-card);
  align-self: start;
  position: sticky;
  top: 120px;
}

.home-aside h2,
.service-aside h2,
.cases-aside h2,
.faq-aside h2,
.about-aside h2,
.contact-aside h2,
.privacy-aside h2,
.default-aside h2 {
  font-family: var(--font-title);
  font-size: 1.1rem;
  color: var(--primary);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.aside-nav > p {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 12px;
}

.aside-nav > p > a {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  min-height: 40px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  background: var(--bg-mid);
  box-shadow: var(--shadow-card);
  transition: color var(--transition), background var(--transition);
}

.aside-nav > p > a:hover {
  color: var(--primary);
}

.aside-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.aside-nav-bottom {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(200,224,244,0.08);
}

.back-home {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  min-height: 40px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--secondary);
  border-radius: var(--radius-sm);
  background: var(--bg-mid);
  box-shadow: var(--shadow-card);
  transition: color var(--transition);
}

.back-home:hover { color: var(--primary); }

/* ── 卡片：子页 / 相关 ── */
.child-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: linear-gradient(145deg, var(--bg-mid), var(--bg-light));
  border: 1px solid rgba(200,224,244,0.10);
  color: var(--text);
  font-size: 0.88rem;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  cursor: pointer;
}

.child-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-out);
  border-color: rgba(200,224,244,0.25);
  color: var(--text);
}

.child-card:active {
  transform: scale(0.98);
  box-shadow: var(--shadow-in);
}

.child-card > strong {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
  display: block;
}

.card-desc {
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.card-thumb-wrap { margin-top: 8px; }
.card-thumb { width: 100%; border-radius: 8px; }

/* ── 卡片网格 ── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 20px;
}

/* ── 服务区 / 子版块区 ── */
.services-section,
.children-section,
.cases-children-section {
  max-width: var(--max-w);
  margin: 0 auto 56px;
  padding: 0 24px;
}

.services-section h2,
.children-section h2,
.cases-children-section h2 {
  font-family: var(--font-title);
  font-size: 1.8rem;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

/* ── 正文容器（figure/content-figure） ── */
.content-body,
.service-content,
.cases-content,
.faq-content,
.about-content,
.contact-content,
.privacy-content,
.default-content {
  min-width: 0;
}

.content-figure {
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  box-shadow: var(--shadow-card);
}

/* ── page-content 正文 ── */
.page-content {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.75;
}

.page-content h2 {
  font-family: var(--font-title);
  font-size: 1.5rem;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 2em 0 0.4em;
}

.page-content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--secondary);
  margin: 1.5em 0 0.4em;
}

.page-content p { margin-bottom: 1.1em; }

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

.page-content li { margin-bottom: 0.4em; }

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

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

.page-content strong { color: var(--secondary); font-weight: 700; }

.page-content blockquote {
  border-left: 3px solid var(--primary);
  padding: 8px 16px;
  margin: 1em 0;
  background: var(--bg-mid);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-muted);
}

.page-content code {
  background: var(--bg-mid);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}

.page-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.2em;
  font-size: 0.9rem;
}

.page-content th, .page-content td {
  padding: 10px 14px;
  border: 1px solid rgba(200,224,244,0.12);
  text-align: left;
}

.page-content th {
  background: var(--bg-mid);
  color: var(--primary);
  font-weight: 700;
}

/* ── h2 + .subtitle 标题装饰结构 ── */
h2 + .subtitle,
h2 + p.subtitle,
h2 + p.subhead,
h2 + p.desc,
h2 + p.lead {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 24px;
  font-style: italic;
}

/* ── 页面类型专属 hero（非首页） ── */
.page-hero-section,
.cases-header-section,
.faq-header-section,
.about-intro-section,
.contact-header-section,
.privacy-header-section,
.default-header-section {
  position: relative;
  background: linear-gradient(160deg, #1a2535 0%, #171f26 100%);
  padding: 72px 24px 60px;
  overflow: hidden;
  text-align: center;
}

.page-hero-content,
.about-intro-text {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
}

.page-title {
  font-family: var(--font-title);
  font-size: clamp(1.8rem, 5vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--primary) 30%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
}

.page-hero-figure,
.about-hero-figure {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.service-hero-img,
.about-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.10;
  border-radius: 0;
}

.about-hero-figure--deco,
.page-hero-figure {
  background: radial-gradient(ellipse at 70% 30%, rgba(245,224,232,0.06) 0%, transparent 65%);
}

/* ── 徽章/装饰标签 ── */
.cases-badge,
.contact-badge,
.privacy-badge,
.default-badge {
  display: inline-block;
  margin-top: 20px;
  padding: 6px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--text-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  position: relative;
  z-index: 2;
}

/* ── 日期 ── */
.page-date, .page-date-mod {
  display: inline-block;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 10px;
  margin-right: 12px;
  position: relative;
  z-index: 2;
}

.page-meta {
  position: relative;
  z-index: 2;
  margin-top: 10px;
}

/* ── 主区（首页 / 各内页） ── */
.home-main,
.service-main,
.cases-main,
.faq-main,
.about-main,
.contact-main,
.privacy-main,
.default-main {
  flex: 1;
}

/* ── subtitle 兜底（h2 直接跟 p） ── */
.subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
  font-style: italic;
  line-height: 1.6;
}

/* ── 页脚：footer > p + small ── */
.site-footer {
  background: var(--bg-light);
  border-top: 1px solid rgba(200,224,244,0.08);
  padding: 28px 24px;
  text-align: center;
  margin-top: 64px;
}

.site-footer > p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.site-footer > p a {
  color: var(--primary);
  margin: 0 4px;
  padding: 4px 0;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
}

.site-footer > p a:hover { color: var(--secondary); }

.site-footer > small {
  display: block;
  font-size: 0.78rem;
  color: rgba(140,170,190,0.6);
  line-height: 1.5;
}

/* ── 三栏页脚内 p 支持多行 ── */
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: var(--max-w);
  margin: 0 auto 20px;
  text-align: left;
}

/* ── Scroll Reveal 动效 ── */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.5s ease, transform 0.5s ease;
  }
  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
  .child-card:nth-child(2) { transition-delay: 0.06s; }
  .child-card:nth-child(3) { transition-delay: 0.12s; }
  .child-card:nth-child(4) { transition-delay: 0.18s; }
  .child-card:nth-child(5) { transition-delay: 0.24s; }
  .child-card:nth-child(6) { transition-delay: 0.30s; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  * { transition-duration: 0ms !important; animation-duration: 0ms !important; }
}

/* ── 移动端 ── */
@media (max-width: 768px) {
  .content-section,
  .service-body-section,
  .cases-body-section,
  .faq-body-section,
  .about-body-section,
  .contact-body-section,
  .privacy-body-section,
  .default-body-section {
    grid-template-columns: 1fr;
    margin: 24px auto;
    padding: 0 16px;
  }

  .home-aside,
  .service-aside,
  .cases-aside,
  .faq-aside,
  .about-aside,
  .contact-aside,
  .privacy-aside,
  .default-aside {
    position: static;
  }

  .hero-section { padding: 60px 16px 100px; }

  .hero-title { font-size: clamp(2.2rem, 12vw, 4rem); }

  .brand-row { padding: 12px 16px 8px; }
  .brand-logo { font-size: 1.6rem; }

  .main-nav > p {
    padding: 4px 12px;
    gap: 2px;
  }

  .main-nav > p > a {
    padding: 8px 10px;
    font-size: 0.78rem;
  }

  .content-figure { padding: 20px 18px; }

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

  .services-section,
  .children-section,
  .cases-children-section {
    padding: 0 16px;
    margin-bottom: 36px;
  }

  .page-hero-section,
  .cases-header-section,
  .faq-header-section,
  .about-intro-section,
  .contact-header-section,
  .privacy-header-section,
  .default-header-section {
    padding: 48px 16px 40px;
  }

  .site-footer { padding: 20px 16px; }
}

@media (max-width: 480px) {
  html { font-size: 16px; }
  .page-title { font-size: 1.7rem; }
  .hero-title { font-size: 2rem; }
}
