:root {
  --brand: #0f6f6c;
  --brand-dark: #0b5451;
  --brand-light: #137a76;
  --brand-lighter: #1a8a85;
  --accent: #f2c14e;
  --accent-soft: #f6d47a;
  --bg: #f4f9f8;
  --bg-alt: #e8f5f3;
  --surface: #ffffff;
  --surface-glass: rgba(255, 255, 255, 0.72);
  --surface-glass-border: rgba(255, 255, 255, 0.55);
  --text: #1a2b2a;
  --text-soft: #4a5f5d;
  --text-muted: #6b807e;
  --border: #d5e6e4;
  --shadow-sm: 0 2px 8px rgba(15, 111, 108, 0.08);
  --shadow-md: 0 8px 24px rgba(15, 111, 108, 0.12);
  --shadow-lg: 0 16px 48px rgba(15, 111, 108, 0.18);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 30px;
  --max-width: 1200px;
  --header-height: 72px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

[data-theme="dark"] {
  --brand: #2ec4b6;
  --brand-dark: #1a9e92;
  --brand-light: #3ad4c6;
  --brand-lighter: #4fe0d2;
  --accent: #f2c14e;
  --accent-soft: #f6d47a;
  --bg: #0c1615;
  --bg-alt: #101f1e;
  --surface: #162524;
  --surface-glass: rgba(22, 37, 36, 0.72);
  --surface-glass-border: rgba(255, 255, 255, 0.08);
  --text: #e6f2f0;
  --text-soft: #b3c9c6;
  --text-muted: #8aa5a2;
  --border: #223a38;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
}

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

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

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 10% 0%, rgba(15, 111, 108, 0.06) 0%, transparent 40%),
    radial-gradient(circle at 90% 10%, rgba(242, 193, 78, 0.05) 0%, transparent 35%);
  background-attachment: fixed;
  transition: background-color var(--transition), color var(--transition);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

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

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

h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); }

p {
  color: var(--text-soft);
  margin-bottom: 0.9em;
}

ul, ol {
  padding-left: 1.5em;
  color: var(--text-soft);
}

li {
  margin-bottom: 0.4em;
}

blockquote {
  border-left: 4px solid var(--brand);
  background: var(--bg-alt);
  padding: 1em 1.25em;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 1em 0;
  font-style: italic;
  color: var(--text-soft);
}

blockquote p {
  margin-bottom: 0;
}

time {
  font-size: 0.875rem;
  color: var(--text-muted);
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

::selection {
  background: var(--brand);
  color: #fff;
}

/* ===== 跳转链接 ===== */
body > a[href="#main-content"] {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 1000;
  padding: 10px 20px;
  background: var(--brand);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: top var(--transition);
}

body > a[href="#main-content"]:focus {
  top: 16px;
  color: #fff;
}

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

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand svg {
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition);
}

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

.brand-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: 0.02em;
  background: linear-gradient(120deg, var(--brand), var(--brand-lighter));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

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

#main-nav li {
  margin: 0;
}

#main-nav a {
  display: block;
  padding: 8px 12px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-soft);
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition), transform var(--transition);
}

#main-nav a:hover {
  color: var(--brand);
  background: var(--bg-alt);
  transform: translateY(-2px);
}

#site-search {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
  transition: border-color var(--transition), box-shadow var(--transition);
}

#site-search:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(15, 111, 108, 0.15);
}

#site-search label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

#site-search input {
  border: none;
  background: transparent;
  padding: 7px 14px;
  font-size: 0.875rem;
  color: var(--text);
  width: 180px;
  font-family: inherit;
  outline: none;
}

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

#site-search button {
  border: none;
  background: linear-gradient(135deg, var(--brand), var(--brand-lighter));
  color: #fff;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: transform var(--transition), box-shadow var(--transition), filter var(--transition);
}

#site-search button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15, 111, 108, 0.3);
  filter: brightness(1.08);
}

#theme-toggle,
#menu-toggle {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-soft);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: all var(--transition);
}

#theme-toggle:hover,
#menu-toggle:hover {
  border-color: var(--brand);
  color: var(--brand);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

#menu-toggle {
  display: none;
}

/* ===== 面包屑 ===== */
nav[aria-label="面包屑导航"] {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 24px 0;
}

#breadcrumb {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  font-size: 0.85rem;
}

#breadcrumb li {
  margin: 0;
  color: var(--text-muted);
  display: flex;
  align-items: center;
}

#breadcrumb li + li::before {
  content: "/";
  margin: 0 8px;
  color: var(--border);
}

#breadcrumb a {
  color: var(--text-muted);
}

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

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

/* ===== Main ===== */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px 24px 64px;
}

/* ===== 通用 Section ===== */
main > section {
  margin-bottom: 32px;
  padding: 40px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition), background var(--transition);
  scroll-margin-top: calc(var(--header-height) + 20px);
}

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

main > section > h2 {
  position: relative;
  padding-bottom: 14px;
  margin-bottom: 24px;
}

main > section > h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 64px;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
}

main > section h3 {
  margin-top: 28px;
  margin-bottom: 10px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}

main > section h3::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(15, 111, 108, 0.15);
}

main > section > h3:first-of-type {
  margin-top: 0;
}

/* ===== Hero ===== */
#hero {
  position: relative;
  overflow: hidden;
  padding: 56px 40px;
  background:
    linear-gradient(135deg, rgba(15, 111, 108, 0.92) 0%, rgba(26, 138, 133, 0.85) 50%, rgba(13, 59, 58, 0.95) 100%),
    radial-gradient(circle at 80% 20%, rgba(242, 193, 78, 0.35), transparent 50%);
  border: none;
  color: #fff;
}

#hero::before {
  content: "";
  position: absolute;
  top: -60%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(242, 193, 78, 0.3), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: float 8s ease-in-out infinite;
}

#hero::after {
  content: "";
  position: absolute;
  bottom: -40%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-24px) scale(1.05); }
}

#hero > * {
  position: relative;
  z-index: 1;
}

#hero h1 {
  color: #fff;
  margin-bottom: 20px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

#hero .hero-lead {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.05rem;
  max-width: 820px;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 32px;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: all var(--transition);
  border: 2px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
  color: #1a2b2a;
  box-shadow: 0 6px 20px rgba(242, 193, 78, 0.4);
}

.btn-primary:hover {
  color: #1a2b2a;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 28px rgba(242, 193, 78, 0.55);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.24);
  transform: translateY(-3px);
  border-color: #fff;
}

#hero figure {
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  transition: transform var(--transition);
}

#hero figure:hover {
  transform: translateY(-4px) scale(1.005);
}

#hero figure svg {
  display: block;
  width: 100%;
}

#hero figcaption {
  padding: 12px 18px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(0, 0, 0, 0.25);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

/* ===== 产品与服务卡片化 ===== */
#products h3,
#advantages h3,
#solutions h3,
#cases h3,
#howto h3 {
  padding: 14px 18px;
  background: var(--bg-alt);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--brand);
  margin-top: 20px;
}

#products h3::before,
#advantages h3::before,
#solutions h3::before,
#cases h3::before,
#howto h3::before {
  display: none;
}

#products h3 + p,
#advantages h3 + p,
#solutions h3 + p,
#howto h3 + p {
  padding: 0 4px;
}

/* ===== 新闻与文章 ===== */
#news article,
#articles article {
  padding: 22px 26px;
  margin-bottom: 18px;
  background: var(--bg-alt);
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  transition: all var(--transition);
  position: relative;
}

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

#news article:hover,
#articles article:hover {
  background: var(--surface);
  border-color: var(--border);
  box-shadow: var(--shadow-md);
  transform: translateX(6px);
}

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

#news article h3,
#articles article h3 {
  margin: 0 0 8px;
  padding: 0;
  background: none;
  border: none;
  font-size: 1.15rem;
}

#news article h3::before,
#articles article h3::before {
  display: none;
}

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

#news article a,
#articles article a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: 6px;
}

#news article a::after,
#articles article a::after {
  content: "→";
  transition: transform var(--transition);
}

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

/* ===== 客户评价 ===== */
#cases blockquote {
  position: relative;
  padding-left: 52px;
  background: linear-gradient(135deg, var(--bg-alt), var(--surface));
  border-left: none;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

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

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

/* ===== HowTo 列表 ===== */
#howto ol {
  counter-reset: step;
  list-style: none;
  padding-left: 0;
}

#howto ol li {
  counter-increment: step;
  position: relative;
  padding: 14px 18px 14px 58px;
  margin-bottom: 10px;
  background: var(--bg-alt);
  border-radius: var(--radius-md);
  transition: all var(--transition);
}

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

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

/* ===== FAQ ===== */
#faq details {
  margin-bottom: 12px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition);
}

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

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

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

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

#faq summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--surface);
  color: var(--brand);
  font-size: 1.2rem;
  font-weight: 400;
  border: 1px solid var(--border);
  transition: all var(--transition);
}

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

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

#faq details p {
  padding: 0 20px 18px;
  margin: 0;
  animation: fadeIn 0.35s ease;
}

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

/* ===== 联系我们 ===== */
#contact p {
  padding: 10px 16px;
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  border-left: 3px solid var(--brand);
  transition: background var(--transition), transform var(--transition);
}

#contact p:hover {
  background: var(--surface);
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
}

#contact figure {
  margin: 24px 0 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition);
}

#contact figure:hover {
  transform: scale(1.01);
}

#contact figcaption {
  padding: 10px 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
  background: var(--bg-alt);
  text-align: center;
}

/* ===== 团队 ===== */
#team p {
  padding: 8px 0;
}

/* ===== 网站地图 / 友情链接 ===== */
#sitemap ul,
#links ul {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}

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

#sitemap a,
#links a {
  display: block;
  padding: 10px 16px;
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-soft);
  border: 1px solid transparent;
  transition: all var(--transition);
}

#sitemap a:hover,
#links a:hover {
  color: var(--brand);
  background: var(--surface);
  border-color: var(--brand);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* ===== Footer ===== */
#site-footer {
  background: linear-gradient(160deg, #0d3b3a 0%, #0b2b2a 100%);
  color: rgba(255, 255, 255, 0.78);
  padding: 48px 24px 32px;
  margin-top: 24px;
  position: relative;
  overflow: hidden;
}

#site-footer::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(46, 196, 182, 0.15), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
  z-index: 1;
  text-align: center;
}

.footer-inner p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.88rem;
  margin-bottom: 10px;
}

.footer-inner p:first-child {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}

.footer-inner a {
  color: var(--accent);
  font-weight: 500;
}

.footer-inner a:hover {
  color: var(--accent-soft);
  text-decoration: underline;
}

/* ===== 返回顶部 ===== */
#back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 800;
  padding: 12px 18px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--brand-lighter));
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: all var(--transition);
}

#back-to-top:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: var(--shadow-lg);
}

/* ===== 滚动动画 ===== */
main > section {
  animation: revealUp 0.7s cubic-bezier(0.4, 0, 0.2, 1) both;
}

main > section:nth-child(1) { animation-delay: 0.02s; }
main > section:nth-child(2) { animation-delay: 0.06s; }
main > section:nth-child(3) { animation-delay: 0.1s; }
main > section:nth-child(4) { animation-delay: 0.14s; }
main > section:nth-child(5) { animation-delay: 0.18s; }
main > section:nth-child(6) { animation-delay: 0.22s; }
main > section:nth-child(7) { animation-delay: 0.26s; }

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

@supports (animation-timeline: view()) {
  main > section {
    animation: revealUp linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 30%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
  .header-inner {
    gap: 12px;
  }

  #site-search input {
    width: 140px;
  }

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

@media (max-width: 860px) {
  #main-nav {
    order: 5;
    flex-basis: 100%;
    display: none;
  }

  #main-nav.is-open {
    display: block;
    animation: fadeIn 0.3s ease;
  }

  #main-nav ul {
    flex-direction: column;
    gap: 2px;
    padding: 8px 0;
  }

  #main-nav a {
    padding: 12px 16px;
  }

  #menu-toggle {
    display: inline-block;
    margin-left: auto;
  }

  #site-search {
    order: 4;
    flex-basis: 100%;
    margin-top: 4px;
  }

  #site-search input {
    flex: 1;
    width: auto;
  }

  #hero {
    padding: 40px 26px;
  }

  main > section {
    padding: 28px 22px;
    border-radius: var(--radius-md);
  }
}

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

  .header-inner {
    padding: 0 16px;
  }

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

  #theme-toggle,
  #menu-toggle {
    padding: 7px 12px;
    font-size: 0.8rem;
  }

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

  #breadcrumb {
    font-size: 0.78rem;
  }

  main {
    padding: 16px 12px 40px;
  }

  main > section {
    padding: 24px 18px;
    margin-bottom: 20px;
  }

  #hero {
    padding: 32px 20px;
    border-radius: var(--radius-md);
  }

  #hero .hero-lead {
    font-size: 0.95rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
  }

  #news article,
  #articles article {
    padding: 18px;
  }

  #news article:hover,
  #articles article:hover {
    transform: none;
  }

  #cases blockquote {
    padding-left: 44px;
  }

  #howto ol li {
    padding-left: 52px;
  }

  #sitemap ul,
  #links ul {
    grid-template-columns: 1fr 1fr;
  }

  #back-to-top {
    right: 14px;
    bottom: 14px;
    padding: 10px 14px;
    font-size: 0.8rem;
  }

  #site-footer {
    padding: 36px 16px 24px;
  }
}

@media (max-width: 380px) {
  #sitemap ul,
  #links ul {
    grid-template-columns: 1fr;
  }
}

/* ===== 打印 ===== */
@media print {
  #site-header,
  #back-to-top,
  #site-search,
  #theme-toggle,
  #menu-toggle,
  .hero-actions {
    display: none !important;
  }

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

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

  #hero {
    background: #f0f0f0;
    color: #000;
  }

  #hero h1,
  #hero .hero-lead {
    color: #000;
  }
}