:root {
  --brand: #c0392b;
  --brand-dark: #962d22;
  --brand-light: #e74c3c;
  --brand-soft: #fdecea;
  --accent: #f39c12;
  --bg: #f7f4f2;
  --bg-alt: #ffffff;
  --bg-elevated: rgba(255, 255, 255, 0.72);
  --glass: rgba(255, 255, 255, 0.55);
  --glass-border: rgba(255, 255, 255, 0.6);
  --text: #2b2320;
  --text-soft: #5c524d;
  --text-muted: #8a7d76;
  --border: rgba(192, 57, 43, 0.14);
  --shadow-sm: 0 2px 8px rgba(120, 50, 40, 0.06);
  --shadow-md: 0 8px 24px rgba(120, 50, 40, 0.1);
  --shadow-lg: 0 16px 48px rgba(120, 50, 40, 0.16);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --header-h: 68px;
  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

html[data-theme="dark"] {
  --brand: #e05a4a;
  --brand-dark: #c0392b;
  --brand-light: #ff7a68;
  --brand-soft: rgba(224, 90, 74, 0.14);
  --accent: #f5b041;
  --bg: #17110f;
  --bg-alt: #211917;
  --bg-elevated: rgba(38, 28, 25, 0.72);
  --glass: rgba(44, 32, 29, 0.55);
  --glass-border: rgba(255, 255, 255, 0.08);
  --text: #f3e9e6;
  --text-soft: #c9b8b2;
  --text-muted: #94837d;
  --border: rgba(224, 90, 74, 0.22);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 16px 48px 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: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  background-image: radial-gradient(
      circle at 12% 0%,
      rgba(192, 57, 43, 0.07),
      transparent 42%
    ),
    radial-gradient(circle at 88% 8%, rgba(243, 156, 18, 0.06), transparent 40%);
  background-attachment: fixed;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
  overflow-x: hidden;
}

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

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

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 6px;
}

h1,
h2,
h3,
h4 {
  line-height: 1.35;
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.01em;
}

h1 {
  font-size: clamp(1.6rem, 4.2vw, 2.5rem);
  margin: 0 0 1rem;
  background: linear-gradient(120deg, var(--brand), var(--brand-light) 60%, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--brand);
}

h2 {
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  margin: 0 0 1rem;
  position: relative;
  padding-left: 18px;
}

h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.28em;
  bottom: 0.28em;
  width: 5px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--brand), var(--accent));
}

h3 {
  font-size: clamp(1.08rem, 2.2vw, 1.28rem);
  margin: 1.6rem 0 0.6rem;
  color: var(--brand-dark);
}

html[data-theme="dark"] h3 {
  color: var(--brand-light);
}

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

strong {
  color: var(--text);
  font-weight: 700;
}

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

li {
  margin-bottom: 0.5rem;
}

li::marker {
  color: var(--brand);
}

/* ============ 顶部导航 ============ */
#site-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);
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  min-height: var(--header-h);
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}

.brand svg {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(192, 57, 43, 0.3);
  transition: transform 0.4s var(--ease);
}

.brand a:hover svg {
  transform: rotate(-8deg) scale(1.06);
}

.brand-name {
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  background: linear-gradient(120deg, var(--brand), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
}

#main-nav {
  flex: 1 1 auto;
}

#main-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 4px;
  list-style: none;
  margin: 0;
  padding: 0;
  justify-content: center;
}

#main-nav a {
  display: block;
  padding: 7px 11px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-soft);
  border-radius: 999px;
  transition: all 0.25s var(--ease);
  white-space: nowrap;
}

#main-nav a:hover,
#main-nav a:focus-visible {
  color: var(--brand);
  background: var(--brand-soft);
  transform: translateY(-1px);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-search {
  display: flex;
  align-items: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 3px 3px 14px;
  transition: box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}

.site-search:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.14);
}

.site-search input {
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 0.86rem;
  width: 148px;
  padding: 6px 0;
  outline: none;
}

.site-search input::placeholder {
  color: var(--text-muted);
}

.site-search button {
  border: none;
  cursor: pointer;
  padding: 7px 15px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  transition: transform 0.2s var(--ease), filter 0.2s var(--ease);
}

.site-search button:hover {
  filter: brightness(1.08);
  transform: scale(1.03);
}

#theme-toggle,
#menu-toggle {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  font-size: 1.05rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s var(--ease);
}

#theme-toggle:hover,
#menu-toggle:hover {
  background: var(--brand-soft);
  transform: rotate(-10deg) scale(1.08);
}

#menu-toggle {
  display: none;
}

/* ============ 主容器 ============ */
main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px 40px;
}

main > section {
  margin: 0 0 26px;
  padding: 30px clamp(18px, 3vw, 38px);
  background: var(--bg-elevated);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.4s var(--ease), transform 0.4s var(--ease),
    border-color 0.4s var(--ease);
  scroll-margin-top: calc(var(--header-h) + 16px);
}

main > section:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border);
}

/* ============ 轮播 Banner ============ */
#banner {
  padding: 0;
  margin-top: 22px;
  background: transparent;
  border: none;
  box-shadow: none;
  overflow: visible;
}

#banner:hover {
  box-shadow: none;
}

.carousel {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  isolation: isolate;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s var(--ease), visibility 0.7s var(--ease);
}

.slide:first-child {
  position: relative;
}

.slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.slide svg {
  width: 100%;
  height: auto;
  min-height: 200px;
  display: block;
}

.carousel-controls {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  pointer-events: none;
}

.carousel-controls button {
  pointer-events: auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(0, 0, 0, 0.28);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s var(--ease);
}

.carousel-controls button:hover {
  background: rgba(192, 57, 43, 0.85);
  transform: scale(1.1);
}

.carousel-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 9px;
}

.carousel-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.5);
  transition: all 0.3s var(--ease);
}

.carousel-dots button.active {
  width: 28px;
  background: #fff;
}

/* ============ 面包屑 ============ */
.breadcrumb {
  margin: 18px 0 6px;
  padding: 0 4px;
  font-size: 0.86rem;
}

.breadcrumb ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--text-muted);
}

.breadcrumb li {
  margin: 0;
  display: flex;
  align-items: center;
}

.breadcrumb li + li::before {
  content: "›";
  margin: 0 8px;
  color: var(--text-muted);
  opacity: 0.6;
}

.breadcrumb a {
  color: var(--text-soft);
}

.breadcrumb a:hover {
  color: var(--brand);
}

.breadcrumb [aria-current="page"] {
  color: var(--brand);
  font-weight: 600;
}

/* ============ 首屏说明 ============ */
#intro {
  background: linear-gradient(
    135deg,
    var(--bg-elevated),
    rgba(192, 57, 43, 0.06)
  );
  border-left: 4px solid var(--brand);
}

#intro p:last-child {
  margin-bottom: 0;
}

/* ============ 卡片化列表 ============ */
#products ul,
#howto ul,
#howto ol,
#notes ul {
  list-style: none;
  padding-left: 0;
}

#products ul li,
#notes ul li {
  position: relative;
  padding: 12px 16px 12px 44px;
  margin-bottom: 10px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
    border-color 0.3s var(--ease);
}

#products ul li::before,
#notes ul li::before {
  content: "✓";
  position: absolute;
  left: 14px;
  top: 12px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

#products ul li:hover,
#notes ul li:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
  border-color: var(--brand);
}

#howto ol {
  counter-reset: step;
}

#howto ol li {
  position: relative;
  padding: 12px 16px 12px 52px;
  margin-bottom: 10px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  counter-increment: step;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

#howto ol li::before {
  content: counter(step);
  position: absolute;
  left: 14px;
  top: 12px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

#howto ol li:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
}

#howto ul li {
  position: relative;
  padding-left: 22px;
}

#howto ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.72em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
}

/* ============ 客户评价 ============ */
#testimonials blockquote {
  position: relative;
  margin: 0 0 16px;
  padding: 22px 24px 20px 56px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

#testimonials blockquote::before {
  content: "\201C";
  position: absolute;
  left: 16px;
  top: 6px;
  font-size: 3.2rem;
  line-height: 1;
  font-family: Georgia, serif;
  color: var(--brand);
  opacity: 0.35;
}

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

#testimonials blockquote p {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 1rem;
  font-style: italic;
}

#testimonials blockquote footer {
  font-size: 0.86rem;
  color: var(--text-muted);
  text-align: right;
}

/* ============ 新闻 & 文章 ============ */
#news article,
#articles article {
  position: relative;
  margin: 0 0 16px;
  padding: 20px 22px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
    border-color 0.35s var(--ease);
}

#news article::after,
#articles article::after {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--brand), var(--accent));
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}

#news article:hover,
#articles article:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand);
}

#news article:hover::after,
#articles article:hover::after {
  opacity: 1;
}

#news article h3,
#articles article h3 {
  margin-top: 0;
  font-size: 1.06rem;
}

#news article time,
#articles article time {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--brand);
  background: var(--brand-soft);
  padding: 2px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
  font-weight: 600;
}

#articles article p:last-child {
  margin-bottom: 0;
}

#articles article a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--brand-soft);
  transition: all 0.25s var(--ease);
}

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

#articles article a:hover {
  background: var(--brand);
  color: #fff;
}

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

/* ============ FAQ ============ */
#faq details {
  margin-bottom: 12px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

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

#faq summary {
  position: relative;
  cursor: pointer;
  padding: 16px 52px 16px 20px;
  font-weight: 600;
  color: var(--text);
  list-style: none;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}

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

#faq summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease);
}

#faq details[open] summary::after {
  content: "−";
  background: var(--brand);
  color: #fff;
  transform: translateY(-50%) rotate(180deg);
}

#faq summary:hover {
  background: var(--brand-soft);
  color: var(--brand-dark);
}

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

@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============ 联系我们 ============ */
#contact address {
  font-style: normal;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

#contact address p {
  margin: 0;
  padding: 14px 18px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.94rem;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

#contact address p:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

/* ============ 网站地图 & 友情链接 ============ */
#sitemap ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

#sitemap ul li {
  margin: 0;
}

#sitemap ul a {
  display: inline-block;
  padding: 7px 16px;
  font-size: 0.88rem;
  border-radius: 999px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--text-soft);
  transition: all 0.25s var(--ease);
}

#sitemap ul a:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(192, 57, 43, 0.28);
}

/* ============ 页脚 ============ */
#site-footer {
  margin-top: 20px;
  background: linear-gradient(160deg, #2b1c19, #1a100e);
  color: #d9cbc7;
  padding: 44px 20px 28px;
  position: relative;
  overflow: hidden;
}

#site-footer::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -60px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(192, 57, 43, 0.35), transparent 70%);
  pointer-events: none;
}

.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1.6fr;
  gap: 32px;
  position: relative;
  z-index: 1;
}

#site-footer a {
  color: #f0b8ae;
}

#site-footer a:hover {
  color: #fff;
}

.footer-brand p {
  color: #c9b8b2;
  margin: 0 0 8px;
}

.footer-brand strong {
  color: #fff;
  font-size: 1.1rem;
}

#site-footer nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#site-footer nav a {
  font-size: 0.92rem;
  transition: padding-left 0.25s var(--ease), color 0.25s var(--ease);
}

#site-footer nav a:hover {
  padding-left: 6px;
}

.footer-legal h3 {
  font-size: 0.95rem;
  margin: 0 0 6px;
  color: #fff;
}

.footer-legal h3:not(:first-child) {
  margin-top: 16px;
}

.footer-legal p {
  font-size: 0.82rem;
  line-height: 1.7;
  color: #a99a95;
  margin: 0;
}

.footer-legal .copyright {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #8a7d76;
}

/* ============ 返回顶部 ============ */
#back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 900;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  color: #fff;
  font-size: 1.2rem;
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  box-shadow: 0 8px 24px rgba(192, 57, 43, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.9);
  transition: all 0.35s var(--ease);
}

#back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

#back-to-top:hover {
  transform: translateY(-4px) scale(1.06);
  box-shadow: 0 12px 30px rgba(192, 57, 43, 0.55);
}

/* ============ 滚动动画 ============ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============ 响应式 ============ */
@media (max-width: 1080px) {
  .site-search input {
    width: 110px;
  }

  #main-nav a {
    padding: 6px 8px;
    font-size: 0.86rem;
  }
}

@media (max-width: 900px) {
  #main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--glass);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--shadow-md);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s var(--ease);
  }

  #main-nav.open {
    max-height: 80vh;
    overflow-y: auto;
  }

  #main-nav ul {
    flex-direction: column;
    padding: 12px 16px 18px;
    gap: 2px;
  }

  #main-nav a {
    padding: 11px 16px;
    border-radius: 10px;
    font-size: 0.95rem;
  }

  #menu-toggle {
    display: inline-flex;
  }

  .site-search {
    display: none;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

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

  body {
    font-size: 15px;
  }

  .header-inner {
    gap: 10px;
    padding: 0 14px;
  }

  .brand svg {
    width: 34px;
    height: 34px;
  }

  .brand-name {
    font-size: 1.02rem;
  }

  main {
    padding: 0 12px 30px;
  }

  main > section {
    padding: 22px 16px;
    border-radius: var(--radius);
    margin-bottom: 18px;
  }

  #banner {
    margin-top: 14px;
  }

  .carousel {
    border-radius: var(--radius);
  }

  .slide svg {
    min-height: 150px;
  }

  .carousel-controls button {
    width: 36px;
    height: 36px;
    font-size: 1.3rem;
  }

  h2 {
    padding-left: 14px;
  }

  h2::before {
    width: 4px;
  }

  #testimonials blockquote {
    padding: 18px 16px 16px 46px;
  }

  #testimonials blockquote::before {
    font-size: 2.6rem;
    left: 12px;
  }

  #news article,
  #articles article {
    padding: 16px 14px;
  }

  #contact address {
    grid-template-columns: 1fr;
  }

  #back-to-top {
    right: 14px;
    bottom: 14px;
    width: 42px;
    height: 42px;
  }
}

/* ============ 无障碍与动效偏好 ============ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ============ 打印样式 ============ */
@media print {
  #site-header,
  #banner,
  #back-to-top,
  .carousel-controls,
  .carousel-dots {
    display: none !important;
  }

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

  main > section {
    box-shadow: none;
    border: 1px solid #ddd;
    break-inside: avoid;
  }

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