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

/* ===== 变量 ===== */
:root {
  --c-bg: #1f1726;
  --c-bg2: #2a1f35;
  --c-bg3: #33264a;
  --c-primary: #56228b;
  --c-primary-light: #7a3dbf;
  --c-primary-glow: rgba(86,34,139,0.35);
  --c-accent: #8b4513;
  --c-accent-light: #b05a20;
  --c-text: #e8e0f0;
  --c-text-muted: #a090b8;
  --c-border: rgba(86,34,139,0.3);
  --c-card-bg: rgba(42,31,53,0.9);
  --r-card: 18px;
  --r-btn: 999px;
  --shadow-soft: 0 4px 24px rgba(0,0,0,0.4), 0 1px 6px rgba(86,34,139,0.2);
  --shadow-card: 0 8px 32px rgba(0,0,0,0.5);
  --font: 'DM Sans', system-ui, -apple-system, sans-serif;
  --max-w: 1200px;
  --gap: 2rem;
}

/* ===== 重置 ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  background: var(--c-bg);
  color: var(--c-text);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; border-radius: var(--r-card); }
a { color: var(--c-primary-light); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--c-accent-light); }
ul, ol { list-style: none; }
dt, dd { margin: 0; padding: 0; }

/* ===== 公告条 ===== */
.announce-bar {
  background: linear-gradient(90deg, var(--c-primary) 0%, var(--c-accent) 100%);
  color: #fff;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  padding: 0.45rem 1rem;
  position: sticky;
  top: 0;
  z-index: 200;
}

/* ===== 站点骨架 ===== */
.site-wrap {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ===== 导航 ===== */
.site-header {
  background: rgba(31,23,38,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-border);
  position: sticky;
  top: 2.1rem;
  z-index: 100;
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  min-height: 64px;
}
.site-brand {
  display: flex;
  justify-content: center;
}
.brand-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}
.brand-mark { width: 32px; height: 32px; border-radius: 8px; }
.brand-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--c-text);
  letter-spacing: -0.01em;
}
.header-nav dl {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}
.nav-right dl { justify-content: flex-end; }
.header-nav dt { display: contents; }
.header-nav dt a {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.9rem;
  border-radius: var(--r-btn);
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--c-text-muted);
  background: transparent;
  border: 1px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  min-height: 40px;
  white-space: nowrap;
}
.header-nav dt a:hover {
  background: var(--c-primary-glow);
  border-color: var(--c-border);
  color: var(--c-text);
}

/* ===== Hero 首页 ===== */
.hero-section {
  position: relative;
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 0%, rgba(86,34,139,0.45) 0%, transparent 70%),
              var(--c-bg);
  padding: 5rem 1.5rem 6rem;
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 720px;
}
.hero-h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, #c9a8ff 0%, var(--c-text) 60%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-desc {
  font-size: 1.1rem;
  color: var(--c-text-muted);
  margin-bottom: 2rem;
  line-height: 1.7;
}
.hero-figure {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-figure img.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.18;
  border-radius: 0;
}
.hero-blob {
  background:
    radial-gradient(ellipse 60% 50% at 80% 60%, rgba(139,69,19,0.25) 0%, transparent 70%),
    radial-gradient(ellipse 50% 60% at 20% 40%, rgba(86,34,139,0.3) 0%, transparent 70%);
}
.hero-divider {
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--c-bg);
  clip-path: polygon(0 40%, 100% 0%, 100% 100%, 0 100%);
  z-index: 3;
}

/* ===== CTA 按钮 ===== */
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 2rem;
  border-radius: var(--r-btn);
  background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-accent) 100%);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  min-height: 48px;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 18px rgba(86,34,139,0.5);
}
.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(86,34,139,0.7);
  color: #fff;
}

/* ===== 内容布局（aside 左 + main 右）===== */
.content-section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 3rem 1.5rem;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: var(--gap);
  width: 100%;
}
.content-aside {
  background: var(--c-bg2);
  border-radius: var(--r-card);
  padding: 1.5rem;
  border: 1px solid var(--c-border);
  height: fit-content;
  position: sticky;
  top: 7rem;
  border-left: 3px solid var(--c-accent);
}
.content-aside h2 {
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-text-muted);
  margin-bottom: 0.75rem;
}
.content-aside hr {
  border: none;
  border-top: 1px solid var(--c-border);
  margin-bottom: 1rem;
}
.content-aside nav dl {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.content-aside nav dt { display: contents; }
.content-aside nav dt a {
  display: flex;
  align-items: center;
  padding: 0.5rem 0.75rem;
  border-radius: 10px;
  font-size: 0.9rem;
  color: var(--c-text-muted);
  min-height: 40px;
  transition: background 0.2s, color 0.2s;
}
.content-aside nav dt a:hover {
  background: var(--c-primary-glow);
  color: var(--c-text);
}
.content-main {
  min-width: 0;
}

/* ===== hr 装饰 ===== */
hr {
  border: none;
  border-top: 1px solid var(--c-border);
  margin: 1rem 0;
}
h2 + hr, h3 + hr {
  border-top: 2px solid var(--c-primary);
  margin-bottom: 1.5rem;
}

/* ===== Prose 正文 ===== */
.prose {
  color: var(--c-text);
  line-height: 1.8;
  font-size: 1rem;
}
.prose h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 2rem 0 0.5rem;
  color: var(--c-text);
}
.prose h2 + hr {
  border-top: 2px solid var(--c-primary);
  margin-bottom: 1.25rem;
}
.prose h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 1.5rem 0 0.5rem;
  color: var(--c-text);
}
.prose h3 + hr {
  border-top: 1px solid var(--c-accent);
  margin-bottom: 1rem;
}
.prose p { margin-bottom: 1.1rem; }
.prose ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 1.1rem; }
.prose ol { list-style: decimal; padding-left: 1.5rem; margin-bottom: 1.1rem; }
.prose li { margin-bottom: 0.4rem; }
.prose a { color: var(--c-primary-light); border-bottom: 1px dotted var(--c-primary-light); }
.prose a:hover { color: var(--c-accent-light); }
.prose strong { color: #d4b8ff; font-weight: 700; }
.prose blockquote {
  border-left: 3px solid var(--c-primary);
  padding: 0.75rem 1.25rem;
  background: var(--c-bg2);
  border-radius: 0 12px 12px 0;
  margin: 1.5rem 0;
  color: var(--c-text-muted);
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}
.prose th {
  background: var(--c-bg3);
  padding: 0.6rem 0.9rem;
  text-align: left;
  font-weight: 700;
  border-bottom: 2px solid var(--c-primary);
}
.prose td {
  padding: 0.55rem 0.9rem;
  border-bottom: 1px solid var(--c-border);
}
.prose tr:hover td { background: rgba(86,34,139,0.08); }

/* ===== 日期标签 ===== */
.pub-date {
  display: inline-block;
  font-size: 0.82rem;
  color: var(--c-text-muted);
  margin-bottom: 1rem;
  background: var(--c-bg3);
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
}

/* ===== 卡片列表（子页）===== */
.children-section { margin-top: 3rem; }
.children-section h2 { font-size: 1.4rem; margin-bottom: 0.5rem; }
.child-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.child-card {
  background: var(--c-card-bg);
  border-radius: var(--r-card);
  padding: 1.25rem;
  border: 1px solid var(--c-border);
  border-bottom: 3px solid var(--c-primary);
  box-shadow: var(--shadow-card);
  transition: transform 0.22s, box-shadow 0.22s;
}
.child-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(86,34,139,0.4);
}
.card-figure { margin-bottom: 1rem; }
.card-figure img.card-thumb {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 12px;
}
.child-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.child-card h3 a { color: var(--c-text); }
.child-card h3 a:hover { color: var(--c-primary-light); }
.child-card p { font-size: 0.88rem; color: var(--c-text-muted); line-height: 1.6; }

/* ===== 案例卡片 ===== */
.case-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.case-card {
  background: var(--c-card-bg);
  border-radius: var(--r-card);
  padding: 1.5rem;
  border: 1px solid var(--c-border);
  border-bottom: 3px solid var(--c-accent);
  box-shadow: var(--shadow-card);
  transition: transform 0.22s;
}
.case-card:hover { transform: translateY(-4px); }
.case-fig { margin-bottom: 1rem; }
.case-fig img.case-thumb {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
}
.case-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.5rem; }
.case-card h3 a { color: var(--c-text); }
.case-card h3 a:hover { color: var(--c-accent-light); }
.case-card p { font-size: 0.88rem; color: var(--c-text-muted); line-height: 1.6; margin-bottom: 0.5rem; }
.case-card time { font-size: 0.8rem; color: var(--c-text-muted); }

/* ===== 内页 Hero 区域 ===== */
.inner-hero {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 3rem 1.5rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2rem;
  align-items: center;
}
.inner-hero-text h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}
.inner-hero-fig {
  border-radius: var(--r-card);
  overflow: hidden;
  min-height: 200px;
  background: radial-gradient(ellipse at 50% 50%, rgba(86,34,139,0.4) 0%, rgba(139,69,19,0.2) 100%);
}
.inner-hero-fig img { width: 100%; height: 100%; object-fit: cover; }
.inner-blob, .inner-hero-fig { min-height: 200px; }

/* ===== 关于页 intro ===== */
.about-intro-section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 3rem 1.5rem 1.5rem;
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 3rem;
  align-items: center;
}
.about-intro-fig {
  border-radius: 24px;
  overflow: hidden;
  min-height: 280px;
  background: radial-gradient(ellipse at 30% 70%, rgba(139,69,19,0.35) 0%, rgba(86,34,139,0.3) 100%);
  border: 1px solid var(--c-border);
}
.about-intro-fig img { width: 100%; height: 100%; object-fit: cover; }
.about-blob { width: 100%; height: 100%; min-height: 280px; }
.about-intro-aside h1 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.25;
}
.about-intro-aside p { color: var(--c-text-muted); margin-bottom: 1.5rem; font-size: 1.05rem; }

/* ===== 各页 header article（非首页）===== */
.cases-header-section,
.faq-header-section,
.contact-header-section,
.privacy-header-section,
.default-header-section {
  position: relative;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 3rem 1.5rem 2rem;
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 2rem;
  align-items: center;
}
.cases-header-text h1,
.faq-header-text h1,
.contact-header-text h1,
.privacy-header-text h1,
.default-header-text h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.cases-blob,
.faq-blob,
.contact-blob,
.privacy-blob,
.default-blob {
  width: 160px;
  height: 160px;
  border-radius: 50% 40% 60% 30% / 40% 60% 40% 60%;
  background: radial-gradient(ellipse at 40% 40%, rgba(86,34,139,0.5) 0%, rgba(139,69,19,0.3) 100%);
  flex-shrink: 0;
}

/* ===== content-figure（service 页）===== */
.content-figure {
  margin-bottom: 2rem;
  border-radius: var(--r-card);
  overflow: hidden;
}
.content-figure img { width: 100%; height: auto; border-radius: var(--r-card); }
.fig-placeholder {
  display: block;
  height: 4px;
  background: linear-gradient(90deg, var(--c-primary), var(--c-accent));
  border-radius: 999px;
}

/* ===== 联系表单 ===== */
.contact-form-wrap {
  background: var(--c-bg2);
  border-radius: var(--r-card);
  padding: 2rem;
  border: 1px solid var(--c-border);
  margin-top: 2.5rem;
}
.contact-form-wrap h2 { margin-bottom: 0.5rem; font-size: 1.3rem; }
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}
.contact-form label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--c-text-muted);
  margin-bottom: -0.5rem;
}
.contact-form input,
.contact-form textarea {
  background: var(--c-bg3);
  border: 1px solid var(--c-border);
  border-radius: 12px;
  color: var(--c-text);
  font-family: var(--font);
  font-size: 1rem;
  padding: 0.75rem 1rem;
  width: 100%;
  transition: border-color 0.2s;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--c-primary);
}
.contact-form textarea { resize: vertical; min-height: 120px; }

/* ===== 页脚（极简：仅 p + small）===== */
.site-footer {
  margin-top: auto;
  background: var(--c-bg2);
  border-top: 1px solid var(--c-border);
  padding: 2rem 1.5rem;
  text-align: center;
}
.site-footer p.footer-brand {
  font-size: 0.95rem;
  color: var(--c-text-muted);
  margin-bottom: 0.5rem;
}
.site-footer small.footer-copy {
  font-size: 0.8rem;
  color: var(--c-text-muted);
}
.site-footer small.footer-copy a {
  color: var(--c-text-muted);
  text-decoration: underline;
}
.site-footer small.footer-copy a:hover { color: var(--c-text); }

/* ===== FAQ 样式 ===== */
.faq-prose details {
  background: var(--c-bg2);
  border-radius: 14px;
  border: 1px solid var(--c-border);
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
  cursor: pointer;
  transition: background 0.2s;
}
.faq-prose details:hover { background: var(--c-bg3); }
.faq-prose details[open] { border-color: var(--c-primary); }
.faq-prose summary {
  font-weight: 600;
  font-size: 1rem;
  list-style: none;
  padding-right: 1.5rem;
  position: relative;
}
.faq-prose summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 0;
  color: var(--c-primary-light);
  font-size: 1.2rem;
  line-height: 1;
}
.faq-prose details[open] summary::after { content: '−'; }
.faq-prose details p { margin-top: 0.75rem; color: var(--c-text-muted); font-size: 0.95rem; }

/* ===== 滚动揭示动效 ===== */
@media (prefers-reduced-motion: no-preference) {
  .child-card,
  .case-card,
  .content-section,
  .inner-hero,
  .about-intro-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
  }
  .child-card.visible,
  .case-card.visible,
  .content-section.visible,
  .inner-hero.visible,
  .about-intro-section.visible {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* ===== 响应式 ===== */
@media (max-width: 900px) {
  .header-inner {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
  }
  .nav-left { grid-column: 1 / -1; grid-row: 2; }
  .nav-right { display: none; }
  .site-brand { justify-content: flex-end; }

  .content-section {
    grid-template-columns: 1fr;
  }
  .content-aside {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-start;
  }
  .content-aside nav { flex: 1 1 200px; }

  .inner-hero {
    grid-template-columns: 1fr;
  }
  .inner-hero-fig { min-height: 160px; }

  .about-intro-section {
    grid-template-columns: 1fr;
  }
  .about-intro-fig { min-height: 180px; }
}

@media (max-width: 600px) {
  .hero-section { padding: 3.5rem 1rem 5rem; min-height: 60vh; }
  .header-inner { padding: 0 1rem; }
  .header-nav dl { gap: 0.2rem; }
  .header-nav dt a {
    padding: 0.4rem 0.65rem;
    font-size: 0.78rem;
    min-height: 40px;
  }
  .child-list, .case-list {
    grid-template-columns: 1fr;
  }
  .cases-header-section,
  .faq-header-section,
  .contact-header-section,
  .privacy-header-section,
  .default-header-section {
    grid-template-columns: 1fr;
  }
  .cases-blob, .faq-blob, .contact-blob, .privacy-blob, .default-blob {
    display: none;
  }
  .content-section { padding: 1.5rem 1rem; }
  .announce-bar { font-size: 0.75rem; padding: 0.4rem 0.75rem; }
  .contact-form-wrap { padding: 1.25rem; }
}

/* ===== 打印 ===== */
@media print {
  .announce-bar, .site-header, .content-aside { display: none; }
  body { background: #fff; color: #000; }
  .prose a { text-decoration: underline; color: #000; }
}
