:root {
  --brand: #ff6b35;
  --brand-2: #ff9f1c;
  --brand-3: #2ec4b6;
  --brand-4: #3a86ff;
  --accent: #e63946;
  --bg: #f6f7fb;
  --bg-soft: #ffffff;
  --bg-elev: rgba(255, 255, 255, 0.72);
  --text: #23252b;
  --text-soft: #5a5f6b;
  --line: rgba(35, 37, 43, 0.1);
  --shadow: 0 10px 30px rgba(35, 37, 43, 0.08);
  --shadow-lg: 0 20px 50px rgba(35, 37, 43, 0.14);
  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 28px;
  --maxw: 1180px;
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

[data-theme="dark"] {
  --bg: #14161c;
  --bg-soft: #1c1f27;
  --bg-elev: rgba(30, 33, 42, 0.72);
  --text: #eef0f5;
  --text-soft: #a6acba;
  --line: rgba(255, 255, 255, 0.12);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.55);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #14161c;
    --bg-soft: #1c1f27;
    --bg-elev: rgba(30, 33, 42, 0.72);
    --text: #eef0f5;
    --text-soft: #a6acba;
    --line: rgba(255, 255, 255, 0.12);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.55);
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(900px 500px at 8% -10%, rgba(255, 107, 53, 0.14), transparent 60%),
    radial-gradient(800px 500px at 100% 0%, rgba(46, 196, 182, 0.12), transparent 55%),
    radial-gradient(700px 600px at 50% 110%, rgba(58, 134, 255, 0.1), transparent 60%);
  background-attachment: fixed;
  overflow-x: hidden;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease);
}

img,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--brand);
  text-decoration: none;
  transition: color 0.25s var(--ease), opacity 0.25s var(--ease);
}

a:hover,
a:focus-visible {
  color: var(--accent);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(255, 107, 53, 0.55);
  outline-offset: 3px;
  border-radius: 6px;
}

h1, h2, h3, h4 {
  line-height: 1.35;
  margin: 0 0 0.6em;
  font-weight: 800;
  letter-spacing: 0.2px;
}

h1 { font-size: clamp(1.7rem, 3.6vw, 2.7rem); }
h2 { font-size: clamp(1.35rem, 2.4vw, 1.9rem); }
h3 { font-size: clamp(1.12rem, 1.7vw, 1.32rem); }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1em; color: var(--text-soft); }

ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
li { color: var(--text-soft); }

strong { color: var(--text); }

::selection {
  background: rgba(255, 107, 53, 0.28);
  color: var(--text);
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--brand), var(--brand-2));
  border-radius: 999px;
  border: 2px solid var(--bg);
}

/* ============ 跳到主要内容 ============ */
body > header > a[href="#main"] {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 999;
  padding: 10px 18px;
  background: var(--brand);
  color: #fff;
  border-radius: 999px;
  font-weight: 700;
  transition: top 0.3s var(--ease);
}
body > header > a[href="#main"]:focus {
  top: 14px;
}

/* ============ Header ============ */
body > header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  background: var(--bg-elev);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 4px 24px rgba(20, 22, 28, 0.06);
}

body > header > div {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

body > header > div > a[href="https://miaomanhuaqu.cn/"] {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--text);
  letter-spacing: 0.5px;
  white-space: nowrap;
}
body > header > div > a[href="https://miaomanhuaqu.cn/"] svg {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(255, 107, 53, 0.35);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
body > header > div > a[href="https://miaomanhuaqu.cn/"]:hover svg {
  transform: rotate(-8deg) scale(1.06);
  box-shadow: 0 12px 26px rgba(255, 107, 53, 0.5);
}
body > header > div > a[href="https://miaomanhuaqu.cn/"] span {
  background: linear-gradient(120deg, var(--brand), var(--brand-2) 55%, var(--brand-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* 主导航 */
body > header nav[aria-label="主导航"] {
  flex: 1 1 320px;
  min-width: 0;
}
body > header nav[aria-label="主导航"] ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
body > header nav[aria-label="主导航"] a {
  display: inline-block;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-soft);
  position: relative;
  transition: color 0.25s var(--ease), background 0.25s var(--ease), transform 0.25s var(--ease);
}
body > header nav[aria-label="主导航"] a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 3px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  transform: translateX(-50%);
  transition: width 0.3s var(--ease);
}
body > header nav[aria-label="主导航"] a:hover,
body > header nav[aria-label="主导航"] a:focus-visible {
  color: var(--brand);
  background: rgba(255, 107, 53, 0.1);
  transform: translateY(-1px);
}
body > header nav[aria-label="主导航"] a:hover::after {
  width: 60%;
}

/* 搜索表单 */
body > header form[role="search"] {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 260px;
  max-width: 360px;
  margin-left: auto;
}
body > header form[role="search"] label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
body > header form[role="search"] input[type="search"] {
  flex: 1;
  min-width: 0;
  padding: 10px 16px;
  font: inherit;
  font-size: 0.92rem;
  color: var(--text);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}
body > header form[role="search"] input[type="search"]::placeholder {
  color: var(--text-soft);
  opacity: 0.8;
}
body > header form[role="search"] input[type="search"]:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.16);
}
body > header form[role="search"] button[type="submit"] {
  padding: 10px 18px;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  border: none;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(255, 107, 53, 0.32);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), filter 0.25s var(--ease);
}
body > header form[role="search"] button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(255, 107, 53, 0.45);
  filter: brightness(1.05);
}
body > header form[role="search"] button[type="submit"]:active {
  transform: translateY(0);
}

/* 暗黑模式按钮 */
body > header > div > button[type="button"] {
  padding: 10px 16px;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
body > header > div > button[type="button"]:hover {
  transform: translateY(-2px);
  border-color: var(--brand);
  color: var(--brand);
  box-shadow: var(--shadow);
}

/* ============ 面包屑 ============ */
body > nav[aria-label="面包屑导航"] {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px 20px 0;
}
body > nav[aria-label="面包屑导航"] ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  font-size: 0.88rem;
}
body > nav[aria-label="面包屑导航"] li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-soft);
}
body > nav[aria-label="面包屑导航"] li + li::before {
  content: "/";
  color: var(--text-soft);
  opacity: 0.55;
}
body > nav[aria-label="面包屑导航"] li[aria-current="page"] {
  color: var(--text);
  font-weight: 700;
}

/* ============ Main 通用 ============ */
main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 24px 20px 60px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

main > section,
main > nav {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 3.4vw, 40px);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}

main > section::before,
main > nav::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2), var(--brand-3), var(--brand-4));
  opacity: 0.9;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease);
}
main > section:hover::before,
main > nav:hover::before {
  transform: scaleX(1);
}

main > section:hover,
main > nav:hover {
  box-shadow: var(--shadow-lg);
}

/* 滚动进入动画 */
main > section,
main > nav,
main > section > article,
main > section > blockquote,
main > section > details {
  animation: riseIn 0.7s var(--ease) both;
}

main > section:nth-of-type(1) { animation-delay: 0.02s; }
main > section:nth-of-type(2) { animation-delay: 0.06s; }
main > section:nth-of-type(3) { animation-delay: 0.1s; }
main > section:nth-of-type(4) { animation-delay: 0.14s; }
main > section:nth-of-type(5) { animation-delay: 0.18s; }
main > section:nth-of-type(6) { animation-delay: 0.22s; }
main > section:nth-of-type(7) { animation-delay: 0.26s; }
main > section:nth-of-type(8) { animation-delay: 0.3s; }
main > section:nth-of-type(9) { animation-delay: 0.34s; }
main > section:nth-of-type(10) { animation-delay: 0.38s; }
main > section:nth-of-type(11) { animation-delay: 0.42s; }
main > section:nth-of-type(12) { animation-delay: 0.46s; }
main > section:nth-of-type(13) { animation-delay: 0.5s; }
main > section:nth-of-type(14) { animation-delay: 0.54s; }

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(26px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes shimmer {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

/* ============ Hero ============ */
main > section[aria-labelledby="hero-title"] {
  background:
    radial-gradient(700px 380px at 0% 0%, rgba(255, 107, 53, 0.22), transparent 60%),
    radial-gradient(600px 400px at 100% 10%, rgba(46, 196, 182, 0.2), transparent 60%),
    linear-gradient(135deg, rgba(255, 107, 53, 0.08), rgba(58, 134, 255, 0.08));
  border: 1px solid rgba(255, 107, 53, 0.18);
  padding: clamp(26px, 4vw, 52px);
}

main > section[aria-labelledby="hero-title"] h1 {
  background: linear-gradient(120deg, var(--brand), var(--brand-2) 45%, var(--accent) 80%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.1);
}

main > section[aria-labelledby="hero-title"] > p:first-of-type {
  font-size: 1.06rem;
  color: var(--text);
  max-width: 60ch;
}

/* Banner 轮播 */
main > section[aria-labelledby="hero-title"] > div[aria-label="Banner轮播"] {
  margin-top: 26px;
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 6px 4px 18px;
  scrollbar-width: thin;
  scrollbar-color: var(--brand) transparent;
}
main > section[aria-labelledby="hero-title"] > div[aria-label="Banner轮播"]::-webkit-scrollbar {
  height: 8px;
}
main > section[aria-labelledby="hero-title"] > div[aria-label="Banner轮播"]::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  border-radius: 999px;
}

main > section[aria-labelledby="hero-title"] figure {
  margin: 0;
  flex: 0 0 min(86%, 620px);
  scroll-snap-align: center;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
  position: relative;
}
main > section[aria-labelledby="hero-title"] figure:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: var(--shadow-lg);
}
main > section[aria-labelledby="hero-title"] figure svg {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.7s var(--ease);
}
main > section[aria-labelledby="hero-title"] figure:hover svg {
  transform: scale(1.04);
}
main > section[aria-labelledby="hero-title"] figure figcaption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  background: rgba(20, 22, 28, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* ============ 页面内锚点导航 ============ */
main > nav[aria-label="页面内锚点导航"] {
  background: var(--bg-elev);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  border: 1px solid var(--line);
}
main > nav[aria-label="页面内锚点导航"] h2 {
  font-size: 1.05rem;
  letter-spacing: 1px;
  color: var(--text-soft);
  text-transform: uppercase;
  margin-bottom: 14px;
}
main > nav[aria-label="页面内锚点导航"] ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
main > nav[aria-label="页面内锚点导航"] a {
  display: inline-block;
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-soft);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: transform 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
main > nav[aria-label="页面内锚点导航"] a:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(255, 107, 53, 0.3);
}

/* ============ 章节内容排版 ============ */
main > section > h2 {
  display: inline-block;
  position: relative;
  padding-bottom: 10px;
  margin-bottom: 20px;
}
main > section > h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 56px;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2), var(--brand-3));
  background-size: 200% 100%;
  animation: shimmer 4s linear infinite;
}
main > section > h3 {
  margin-top: 26px;
  padding-left: 14px;
  position: relative;
  color: var(--text);
}
main > section > h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.18em;
  bottom: 0.18em;
  width: 5px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--brand), var(--brand-2));
}
main > section > h4 {
  margin-top: 20px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}
main > section > h4::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-3);
  box-shadow: 0 0 0 4px rgba(46, 196, 182, 0.18);
  flex: 0 0 auto;
}

main > section p {
  max-width: 78ch;
}

/* ============ 文章列表 ============ */
main > section[aria-labelledby="articles-title"] {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
main > section[aria-labelledby="articles-title"] > p {
  margin-bottom: 4px;
}
main > section[aria-labelledby="articles-title"] article {
  padding: 20px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, var(--bg-soft), rgba(255, 107, 53, 0.03));
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}
main > section[aria-labelledby="articles-title"] article::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--brand), var(--brand-3));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.4s var(--ease);
}
main > section[aria-labelledby="articles-title"] article:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(255, 107, 53, 0.35);
}
main > section[aria-labelledby="articles-title"] article:hover::after {
  transform: scaleY(1);
}
main > section[aria-labelledby="articles-title"] article h3 {
  margin: 0 0 6px;
  font-size: 1.12rem;
  padding-left: 0;
}
main > section[aria-labelledby="articles-title"] article h3::before {
  display: none;
}
main > section[aria-labelledby="articles-title"] article h3 a {
  color: var(--text);
  background-image: linear-gradient(120deg, var(--brand), var(--brand-2));
  background-size: 0% 2px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size 0.35s var(--ease), color 0.3s var(--ease);
}
main > section[aria-labelledby="articles-title"] article h3 a:hover {
  color: var(--brand);
  background-size: 100% 2px;
}
main > section[aria-labelledby="articles-title"] article time {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--brand);
  background: rgba(255, 107, 53, 0.1);
  padding: 2px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}
main > section[aria-labelledby="articles-title"] article p {
  margin-bottom: 10px;
  font-size: 0.95rem;
}
main > section[aria-labelledby="articles-title"] article > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 107, 53, 0.35);
  transition: gap 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
}
main > section[aria-labelledby="articles-title"] article > a::after {
  content: "→";
  transition: transform 0.3s var(--ease);
}
main > section[aria-labelledby="articles-title"] article > a:hover {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  border-color: transparent;
  transform: translateY(-2px);
}
main > section[aria-labelledby="articles-title"] article > a:hover::after {
  transform: translateX(4px);
}

/* ============ 客户评价 ============ */
main > section[aria-labelledby="cases-title"] blockquote {
  margin: 16px 0;
  padding: 18px 22px 18px 56px;
  position: relative;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(46, 196, 182, 0.08), rgba(58, 134, 255, 0.06));
  border: 1px solid var(--line);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
main > section[aria-labelledby="cases-title"] blockquote::before {
  content: "\201C";
  position: absolute;
  left: 16px;
  top: 2px;
  font-size: 3.4rem;
  line-height: 1;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--brand);
  opacity: 0.55;
}
main > section[aria-labelledby="cases-title"] blockquote:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
main > section[aria-labelledby="cases-title"] blockquote p {
  margin: 0;
  color: var(--text);
  font-style: italic;
}

/* ============ FAQ ============ */
main > section[aria-labelledby="faq-title"] details {
  margin: 12px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
  overflow: hidden;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}
main > section[aria-labelledby="faq-title"] details:hover {
  border-color: rgba(255, 107, 53, 0.4);
  box-shadow: var(--shadow);
}
main > section[aria-labelledby="faq-title"] details[open] {
  border-color: rgba(255, 107, 53, 0.5);
  box-shadow: var(--shadow);
  background: linear-gradient(160deg, var(--bg-soft), rgba(255, 107, 53, 0.04));
}
main > section[aria-labelledby="faq-title"] summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 52px 16px 20px;
  font-weight: 700;
  color: var(--text);
  position: relative;
  transition: color 0.3s var(--ease), background 0.3s var(--ease);
}
main > section[aria-labelledby="faq-title"] summary::-webkit-details-marker {
  display: none;
}
main > section[aria-labelledby="faq-title"] summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--brand);
  border-radius: 50%;
  background: rgba(255, 107, 53, 0.12);
  transition: transform 0.35s var(--ease), background 0.35s var(--ease), color 0.35s var(--ease);
}
main > section[aria-labelledby="faq-title"] details[open] summary::after {
  content: "−";
  transform: translateY(-50%) rotate(180deg);
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
}
main > section[aria-labelledby="faq-title"] summary:hover {
  color: var(--brand);
  background: rgba(255, 107, 53, 0.05);
}
main > section[aria-labelledby="faq-title"] details p {
  margin: 0;
  padding: 0 20px 18px;
  font-size: 0.95rem;
  animation: riseIn 0.45s var(--ease) both;
}

/* ============ 使用教程 HowTo ============ */
main > section[aria-labelledby="howto-title"] {
  counter-reset: howto;
}
main > section[aria-labelledby="howto-title"] h4 {
  counter-increment: howto;
  padding: 12px 16px 12px 52px;
  border-radius: var(--radius-sm);
  background: linear-gradient(120deg, rgba(255, 107, 53, 0.07), rgba(46, 196, 182, 0.05));
  border: 1px solid var(--line);
  position: relative;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
main > section[aria-labelledby="howto-title"] h4::before {
  content: counter(howto);
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  font-size: 0.82rem;
  color: #fff;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 6px 14px rgba(255, 107, 53, 0.32);
}
main > section[aria-labelledby="howto-title"] h4:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow);
}

/* ============ 注意事项 ============ */
main > section[aria-labelledby="notes-title"] {
  background: linear-gradient(135deg, rgba(230, 57, 70, 0.06), rgba(255, 159, 28, 0.06));
  border-color: rgba(230, 57, 70, 0.22);
}
main > section[aria-labelledby="notes-title"] > h2::after {
  background: linear-gradient(90deg, var(--accent), var(--brand-2));
}
main > section[aria-labelledby="notes-title"] p {
  color: var(--text);
  padding-left: 16px;
  border-left: 3px solid var(--accent);
  border-radius: 2px;
}

/* ============ 联系我们 ============ */
main > section[aria-labelledby="contact-title"] {
  background:
    radial-gradient(600px 300px at 100% 0%, rgba(58, 134, 255, 0.1), transparent 60%),
    var(--bg-soft);
}
main > section[aria-labelledby="contact-title"] p {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
  padding: 10px 0;
  margin: 0;
  border-bottom: 1px dashed var(--line);
  font-size: 0.95rem;
}
main > section[aria-labelledby="contact-title"] p:last-of-type {
  border-bottom: none;
}
main > section[aria-labelledby="contact-title"] p > a {
  font-weight: 700;
  color: var(--brand);
  position: relative;
}
main > section[aria-labelledby="contact-title"] p > a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
main > section[aria-labelledby="contact-title"] p > a:hover::after {
  transform: scaleX(1);
}

/* ============ 网站地图 / 友情链接 ============ */
main > section[aria-labelledby="sitemap-title"] ul,
main > section[aria-labelledby="links-title"] ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
}
main > section[aria-labelledby="sitemap-title"] a,
main > section[aria-labelledby="links-title"] a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-soft);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: transform 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
main > section[aria-labelledby="sitemap-title"] a::before,
main > section[aria-labelledby="links-title"] a::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  flex: 0 0 auto;
  transition: transform 0.3s var(--ease);
}
main > section[aria-labelledby="sitemap-title"] a:hover,
main > section[aria-labelledby="links-title"] a:hover {
  color: var(--brand);
  border-color: rgba(255, 107, 53, 0.4);
  background: rgba(255, 107, 53, 0.06);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
main > section[aria-labelledby="sitemap-title"] a:hover::before,
main > section[aria-labelledby="links-title"] a:hover::before {
  transform: scale(1.5);
}

/* ============ Footer ============ */
body > footer {
  margin-top: 20px;
  padding: clamp(32px, 5vw, 60px) 20px 40px;
  background:
    linear-gradient(180deg, rgba(20, 22, 28, 0.02), rgba(20, 22, 28, 0.06)),
    var(--bg-soft);
  border-top: 1px solid var(--line);
  position: relative;
}
body > footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2), var(--brand-3), var(--brand-4), var(--brand));
  background-size: 200% 100%;
  animation: shimmer 6s linear infinite;
}
body > footer > section {
  max-width: var(--maxw);
  margin: 0 auto 22px;
  padding: 18px 22px;
  border-radius: var(--radius);
  background: var(--bg-elev);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border: 1px solid var(--line);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
body > footer > section:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
body > footer > section h2 {
  font-size: 1rem;
  margin-bottom: 8px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}
body > footer > section h2::before {
  content: "";
  width: 6px;
  height: 18px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--brand), var(--brand-2));
  flex: 0 0 auto;
}
body > footer > section p {
  margin: 0;
  font-size: 0.9rem;
}
body > footer > p {
  max-width: var(--maxw);
  margin: 0 auto 8px;
  padding: 0 22px;
  font-size: 0.85rem;
  color: var(--text-soft);
}
body > footer > p:nth-last-of-type(1) {
  margin-bottom: 16px;
}
body > footer > a[href="#main"] {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 10px 20px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(255, 107, 53, 0.35);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), filter 0.3s var(--ease);
}
body > footer > a[href="#main"]::before {
  content: "↑";
  font-size: 1rem;
}
body > footer > a[href="#main"]:hover {
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(255, 107, 53, 0.5);
  filter: brightness(1.06);
}

/* ============ 响应式 ============ */
@media (max-width: 1024px) {
  body > header > div {
    gap: 12px;
  }
  body > header nav[aria-label="主导航"] {
    order: 3;
    flex-basis: 100%;
  }
  body > header nav[aria-label="主导航"] ul {
    justify-content: flex-start;
    gap: 2px;
  }
  body > header form[role="search"] {
    flex-basis: 240px;
  }
}

@media (max-width: 768px) {
  :root {
    --header-h: 64px;
  }
  body > header > div {
    padding: 10px 16px;
  }
  body > header > div > a[href="https://miaomanhuaqu.cn/"] {
    font-size: 1.05rem;
  }
  body > header > div > a[href="https://miaomanhuaqu.cn/"] svg {
    width: 34px;
    height: 34px;
  }
  body > header form[role="search"] {
    order: 4;
    flex-basis: 100%;
    max-width: none;
    margin-left: 0;
  }
  body > header nav[aria-label="主导航"] ul {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  body > header nav[aria-label="主导航"] ul::-webkit-scrollbar {
    display: none;
  }
  body > header nav[aria-label="主导航"] a {
    white-space: nowrap;
    font-size: 0.86rem;
    padding: 6px 10px;
  }
  body > header > div > button[type="button"] {
    padding: 8px 12px;
    font-size: 0.8rem;
  }

  main {
    padding: 16px 14px 44px;
    gap: 18px;
  }
  main > section,
  main > nav {
    border-radius: var(--radius);
    padding: 20px 18px;
  }
  main > section > h3 {
    margin-top: 20px;
  }
  main > section[aria-labelledby="hero-title"] figure {
    flex-basis: 90%;
  }
  main > section[aria-labelledby="hero-title"] figure figcaption {
    font-size: 0.72rem;
    padding: 4px 10px;
  }
  main > section[aria-labelledby="articles-title"] article {
    padding: 16px;
  }
  main > section[aria-labelledby="articles-title"] article:hover {
    transform: translateY(-3px);
  }
  main > section[aria-labelledby="sitemap-title"] ul,
  main > section[aria-labelledby="links-title"] ul {
    grid-template-columns: 1fr 1fr;
  }
  body > footer {
    padding: 28px 14px 36px;
  }
  body > footer > section {
    padding: 16px;
  }
  body > footer > p {
    padding: 0 6px;
  }
  body > footer > a[href="#main"] {
    margin-left: 6px;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 15px;
  }
  main > section[aria-labelledby="sitemap-title"] ul,
  main > section[aria-labelledby="links-title"] ul {
    grid-template-columns: 1fr;
  }
  main > section[aria-labelledby="faq-title"] summary {
    padding: 14px 46px 14px 16px;
    font-size: 0.95rem;
  }
  main > section[aria-labelledby="faq-title"] details p {
    padding: 0 16px 16px;
  }
  main > section[aria-labelledby="cases-title"] blockquote {
    padding: 16px 16px 16px 46px;
  }
  main > section[aria-labelledby="cases-title"] blockquote::before {
    left: 10px;
    font-size: 2.6rem;
  }
  main > section[aria-labelledby="hero-title"] > div[aria-label="Banner轮播"] {
    gap: 12px;
  }
}

/* ============ 动效偏好 ============ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============ 打印 ============ */
@media print {
  body {
    background: #fff;
    color: #000;
  }
  body > header,
  body > footer > a[href="#main"],
  main > nav[aria-label="页面内锚点导航"] {
    display: none;
  }
  main > section,
  main > nav {
    box-shadow: none;
    border: 1px solid #ccc;
    break-inside: avoid;
  }
}
</｜｜DSML｜｜ parameter>
</invoke>