:root {
  --mango-primary: #ff6b00;
  --mango-primary-dark: #e55a00;
  --mango-primary-light: #ff8c3a;
  --mango-secondary: #ff3b6b;
  --mango-accent: #ffd93d;
  --mango-gradient: linear-gradient(135deg, #ff6b00 0%, #ff3b6b 55%, #a23bff 100%);
  --mango-gradient-soft: linear-gradient(135deg, rgba(255, 107, 0, 0.12), rgba(255, 59, 107, 0.12));
  --bg: #fff8f3;
  --bg-alt: #ffffff;
  --bg-elevated: rgba(255, 255, 255, 0.72);
  --text: #221a14;
  --text-soft: #5c5048;
  --text-muted: #8b7f76;
  --border: rgba(255, 107, 0, 0.16);
  --border-strong: rgba(255, 107, 0, 0.32);
  --shadow-sm: 0 2px 8px rgba(120, 60, 20, 0.06);
  --shadow-md: 0 10px 30px rgba(120, 60, 20, 0.1);
  --shadow-lg: 0 20px 50px rgba(120, 60, 20, 0.16);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --glass: rgba(255, 255, 255, 0.6);
  --glass-border: rgba(255, 255, 255, 0.65);
  --header-h: 68px;
  --container: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14100d;
    --bg-alt: #1c1712;
    --bg-elevated: rgba(36, 29, 23, 0.72);
    --text: #f6efe9;
    --text-soft: #cfc3b8;
    --text-muted: #9a8d81;
    --border: rgba(255, 140, 58, 0.2);
    --border-strong: rgba(255, 140, 58, 0.4);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.6);
    --glass: rgba(36, 29, 23, 0.55);
    --glass-border: rgba(255, 255, 255, 0.08);
  }
}

*,
*::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: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 12% 8%, rgba(255, 107, 0, 0.1), transparent 42%),
    radial-gradient(circle at 88% 18%, rgba(255, 59, 107, 0.09), transparent 46%),
    radial-gradient(circle at 50% 100%, rgba(162, 59, 255, 0.07), transparent 55%);
  background-attachment: fixed;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

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

a:hover {
  color: var(--mango-secondary);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--mango-primary-light);
  outline-offset: 3px;
  border-radius: 6px;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.6em;
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text);
}

h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.15rem, 2.2vw, 1.4rem); }
h4 { font-size: clamp(1.02rem, 1.8vw, 1.15rem); }

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

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

li {
  margin-bottom: 0.4em;
}

blockquote {
  margin: 1.2em 0;
  padding: 1em 1.4em;
  border-left: 4px solid var(--mango-primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: var(--mango-gradient-soft);
  color: var(--text-soft);
  font-style: italic;
}

blockquote p {
  margin: 0;
}

/* ============ Header / Nav ============ */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--glass);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
}

header nav {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

header nav > a[aria-label="芒果视频首页"] {
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  white-space: nowrap;
  background: var(--mango-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  transition: transform 0.3s var(--ease), filter 0.3s var(--ease);
}

header nav > a[aria-label="芒果视频首页"]:hover {
  transform: scale(1.04);
  filter: brightness(1.1);
}

header nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  flex: 1;
  justify-content: flex-end;
}

header nav ul li {
  margin: 0;
}

header nav ul a {
  position: relative;
  display: inline-block;
  padding: 8px 12px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-soft);
  border-radius: 999px;
  transition: color 0.25s var(--ease), background 0.25s var(--ease),
    transform 0.25s var(--ease);
}

header nav ul a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--mango-gradient);
  transform: translateX(-50%);
  transition: width 0.3s var(--ease);
}

header nav ul a:hover {
  color: var(--mango-primary);
  background: var(--mango-gradient-soft);
  transform: translateY(-2px);
}

header nav ul a:hover::after {
  width: 60%;
}

/* ============ Main container ============ */
main {
  display: block;
}

main > nav[aria-label="面包屑导航"] {
  max-width: var(--container);
  margin: 0 auto;
  padding: 18px 24px 4px;
}

main > nav[aria-label="面包屑导航"] ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

main > nav[aria-label="面包屑导航"] li {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

main > nav[aria-label="面包屑导航"] li + li::before {
  content: "›";
  color: var(--text-muted);
}

main > nav[aria-label="面包屑导航"] a {
  color: var(--text-soft);
}

main > nav[aria-label="面包屑导航"] a:hover {
  color: var(--mango-primary);
}

/* ============ Sections shared ============ */
main > section {
  max-width: var(--container);
  margin: 0 auto;
  padding: 48px 24px;
  scroll-margin-top: calc(var(--header-h) + 20px);
}

main > section > h2 {
  position: relative;
  padding-left: 18px;
  margin-bottom: 1.2em;
}

main > section > h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.18em;
  bottom: 0.18em;
  width: 6px;
  border-radius: 6px;
  background: var(--mango-gradient);
  box-shadow: 0 0 14px rgba(255, 107, 0, 0.4);
}

main > section > h3 {
  color: var(--text);
}

/* ============ Hero ============ */
#hero {
  position: relative;
  max-width: none;
  margin: 0;
  padding: 72px 24px 88px;
  overflow: hidden;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  background: var(--mango-gradient);
  isolation: isolate;
}

#hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.28), transparent 40%),
    radial-gradient(circle at 85% 30%, rgba(255, 217, 61, 0.3), transparent 45%),
    radial-gradient(circle at 60% 100%, rgba(162, 59, 255, 0.35), transparent 55%);
  animation: heroGlow 12s ease-in-out infinite alternate;
}

#hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 78%);
  opacity: 0.6;
}

@keyframes heroGlow {
  0% { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.15) translate(-2%, 2%); }
}

#hero > * {
  position: relative;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

#hero h1 {
  color: #fff;
  text-shadow: 0 4px 24px rgba(80, 20, 0, 0.28);
  animation: fadeUp 0.9s var(--ease) both;
}

#hero p {
  color: rgba(255, 255, 255, 0.94);
  font-size: clamp(0.98rem, 1.6vw, 1.12rem);
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeUp 0.9s var(--ease) both;
}

#hero p:nth-of-type(1) { animation-delay: 0.12s; }
#hero p:nth-of-type(2) { animation-delay: 0.24s; }

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

/* ============ Cards: generic section content ============ */
#brand,
#product,
#scenario,
#solution,
#case,
#news,
#article,
#knowledge,
#howto,
#team,
#sitemap,
#links {
  position: relative;
}

#brand > h3,
#product > h3,
#scenario > h3,
#solution > h3,
#case > h3,
#news > h3,
#knowledge > h3,
#howto > h3,
#team > h3 {
  margin-top: 1.6em;
}

/* Brand / intro blocks */
#brand {
  display: block;
}

#brand > h3,
#brand > p {
  max-width: 900px;
}

/* ============ Product advantage cards ============ */
#product h4 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--mango-gradient-soft);
  color: var(--mango-primary-dark);
  border: 1px solid var(--border);
  font-weight: 700;
}

#product h4 + p {
  margin-top: 0.8em;
}

/* ============ Scenario / Solution / Knowledge cards ============ */
#scenario > h3,
#solution > h3,
#knowledge > h3 {
  position: relative;
  padding: 18px 22px;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
    border-color 0.35s var(--ease);
}

#scenario > h3:hover,
#solution > h3:hover,
#knowledge > h3:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

#scenario > h3 + p,
#solution > h3 + p,
#knowledge > h3 + p {
  padding: 0 4px;
}

/* ============ Case / Testimonials ============ */
#case blockquote {
  position: relative;
  padding: 20px 24px 20px 56px;
  border-left: none;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

#case blockquote::before {
  content: "“";
  position: absolute;
  left: 16px;
  top: 4px;
  font-size: 3rem;
  line-height: 1;
  font-weight: 900;
  background: var(--mango-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

#case blockquote:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

#case blockquote p {
  margin: 0;
  font-style: normal;
}

/* ============ News ============ */
#news > h3 {
  position: relative;
  padding: 16px 20px 4px;
  margin-bottom: 0;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-bottom: none;
  box-shadow: var(--shadow-sm);
  transition: color 0.3s var(--ease), background 0.3s var(--ease);
}

#news > h3:hover {
  color: var(--mango-primary);
}

#news > h3 + p {
  margin: 0;
  padding: 6px 20px;
  font-size: 0.82rem;
  color: var(--text-muted);
  background: var(--bg-alt);
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
}

#news > h3 + p + p {
  margin: 0 0 1.4em;
  padding: 4px 20px 18px;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-top: none;
  box-shadow: var(--shadow-sm);
}

/* ============ Article cards ============ */
#article {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  align-items: start;
}

#article > h2 {
  grid-column: 1 / -1;
}

#article article {
  position: relative;
  padding: 22px;
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease),
    border-color 0.4s var(--ease);
}

#article article::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--mango-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}

#article article:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-strong);
}

#article article:hover::before {
  transform: scaleX(1);
}

#article article h3 {
  font-size: 1.08rem;
  margin-bottom: 0.5em;
  transition: color 0.3s var(--ease);
}

#article article:hover h3 {
  color: var(--mango-primary);
}

#article article p {
  font-size: 0.92rem;
  line-height: 1.7;
}

#article article p:first-of-type {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.8em;
}

#article article a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--mango-gradient-soft);
  border: 1px solid var(--border);
  transition: background 0.3s var(--ease), color 0.3s var(--ease),
    transform 0.3s var(--ease);
}

#article article a::after {
  content: "→";
  transition: transform 0.3s var(--ease);
}

#article article a:hover {
  background: var(--mango-gradient);
  color: #fff;
  transform: translateX(2px);
}

#article article a:hover::after {
  transform: translateX(4px);
}

/* ============ FAQ details ============ */
#faq details {
  margin-bottom: 12px;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow 0.35s var(--ease), border-color 0.35s var(--ease),
    transform 0.35s var(--ease);
}

#faq details:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

#faq details[open] {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

#faq summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: 16px 52px 16px 20px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  transition: color 0.3s var(--ease), background 0.3s var(--ease);
  -webkit-tap-highlight-color: transparent;
}

#faq summary::-webkit-details-marker {
  display: none;
}

#faq summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1;
  border-radius: 50%;
  color: #fff;
  background: var(--mango-gradient);
  transition: transform 0.35s var(--ease);
}

#faq details[open] summary {
  color: var(--mango-primary);
  background: var(--mango-gradient-soft);
}

#faq details[open] summary::after {
  transform: translateY(-50%) rotate(135deg);
}

#faq details p {
  margin: 0;
  padding: 4px 20px 18px;
  font-size: 0.94rem;
  animation: fadeUp 0.4s var(--ease) both;
}

/* ============ HowTo ============ */
#howto ol {
  counter-reset: howto;
  list-style: none;
  padding-left: 0;
  display: grid;
  gap: 12px;
}

#howto ol li {
  counter-increment: howto;
  position: relative;
  padding: 14px 18px 14px 60px;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
    border-color 0.35s var(--ease);
}

#howto ol li::before {
  content: counter(howto);
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 800;
  color: #fff;
  border-radius: 50%;
  background: var(--mango-gradient);
  box-shadow: 0 4px 12px rgba(255, 107, 0, 0.35);
}

#howto ol li:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

#howto h3 {
  position: relative;
  padding-left: 16px;
}

#howto h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3em;
  bottom: 0.3em;
  width: 4px;
  border-radius: 4px;
  background: var(--mango-gradient);
}

/* ============ Contact ============ */
#contact p {
  padding: 10px 16px;
  margin: 0 0 8px;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}

#contact p:hover {
  transform: translateX(4px);
  border-color: var(--border-strong);
}

#contact a {
  font-weight: 700;
}

/* ============ Team ============ */
#team h3 {
  position: relative;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: var(--mango-gradient-soft);
  border: 1px solid var(--border);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

#team h3:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

#team h3 + p {
  padding: 0 4px;
}

/* ============ Sitemap / Links ============ */
#sitemap ul,
#links ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

#sitemap ul li,
#links ul li {
  margin: 0;
}

#sitemap ul a,
#links ul a {
  display: inline-block;
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-soft);
  border-radius: 999px;
  background: var(--bg-elevated);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  transition: color 0.3s var(--ease), background 0.3s var(--ease),
    transform 0.3s var(--ease), border-color 0.3s var(--ease);
}

#sitemap ul a:hover,
#links ul a:hover {
  color: #fff;
  background: var(--mango-gradient);
  border-color: transparent;
  transform: translateY(-3px);
}

/* ============ Footer ============ */
footer {
  margin-top: 40px;
  padding: 56px 24px 32px;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  position: relative;
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--mango-gradient);
}

footer > section {
  max-width: var(--container);
  margin: 0 auto 28px;
}

footer > section h2 {
  font-size: 1.05rem;
  margin-bottom: 0.5em;
  color: var(--text);
  position: relative;
  padding-left: 14px;
}

footer > section h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.25em;
  bottom: 0.25em;
  width: 4px;
  border-radius: 4px;
  background: var(--mango-gradient);
}

footer > section p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.6em;
}

footer > p {
  max-width: var(--container);
  margin: 24px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ============ Scroll reveal animation ============ */
main > section,
#article article,
#faq details,
#howto ol li,
#case blockquote {
  animation: reveal 0.8s var(--ease) both;
  animation-timeline: view();
  animation-range: entry 0% entry 35%;
}

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

@supports not (animation-timeline: view()) {
  main > section,
  #article article,
  #faq details,
  #howto ol li,
  #case blockquote {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* ============ Responsive ============ */
@media (max-width: 1024px) {
  header nav {
    padding: 0 18px;
  }

  header nav ul a {
    padding: 7px 10px;
    font-size: 0.85rem;
  }

  main > section {
    padding: 40px 18px;
  }

  #hero {
    padding: 56px 18px 68px;
  }
}

@media (max-width: 768px) {
  :root {
    --header-h: 60px;
  }

  header nav {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 12px 16px;
  }

  header nav > a[aria-label="芒果视频首页"] {
    text-align: center;
    font-size: 1.2rem;
  }

  header nav ul {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 2px;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  header nav ul::-webkit-scrollbar {
    display: none;
  }

  header nav ul a {
    white-space: nowrap;
    padding: 6px 10px;
    font-size: 0.82rem;
  }

  main > nav[aria-label="面包屑导航"] {
    padding: 14px 16px 0;
  }

  main > section {
    padding: 32px 16px;
  }

  main > section > h2 {
    padding-left: 14px;
  }

  main > section > h2::before {
    width: 5px;
  }

  #hero {
    padding: 44px 16px 56px;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  }

  #article {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  #faq summary {
    padding: 14px 48px 14px 16px;
    font-size: 0.95rem;
  }

  #howto ol li {
    padding: 12px 16px 12px 54px;
  }

  #case blockquote {
    padding: 16px 18px 16px 48px;
  }

  #case blockquote::before {
    font-size: 2.4rem;
    left: 12px;
  }

  footer {
    padding: 40px 16px 24px;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 15px;
  }

  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.25rem; }
  h3 { font-size: 1.08rem; }

  #hero {
    padding: 36px 14px 48px;
  }

  #hero h1 {
    line-height: 1.35;
  }

  #sitemap ul a,
  #links ul a {
    padding: 6px 12px;
    font-size: 0.82rem;
  }

  #contact p {
    padding: 8px 12px;
    font-size: 0.9rem;
  }
}

/* ============ Accessibility / motion ============ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ============ Selection & scrollbar ============ */
::selection {
  background: rgba(255, 107, 0, 0.28);
  color: var(--text);
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: linear-gradient(180deg, #ff6b00, #ff3b6b);
  border: 2px solid var(--bg);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #ff8c3a, #ff5c85);
}

/* ============ Print ============ */
@media print {
  header,
  #hero::before,
  #hero::after,
  footer::before {
    display: none;
  }

  body {
    background: #fff;
    color: #000;
  }

  #hero {
    background: #fff;
    color: #000;
    padding: 20px 0;
  }

  #hero h1,
  #hero p {
    color: #000;
    text-shadow: none;
  }

  a {
    color: #000;
    text-decoration: underline;
  }
}