:root {
  --primary: #6d28d9;
  --primary-light: #8b5cf6;
  --primary-dark: #4c1d95;
  --accent: #ec4899;
  --accent-light: #f472b6;
  --gradient-banner: linear-gradient(135deg, #6d28d9 0%, #8b5cf6 40%, #ec4899 100%);
  --gradient-card: linear-gradient(145deg, rgba(139, 92, 246, 0.12), rgba(236, 72, 153, 0.08));
  --bg: #faf8ff;
  --bg-alt: #f1ecfb;
  --surface: #ffffff;
  --surface-glass: rgba(255, 255, 255, 0.65);
  --text: #1f1a2e;
  --text-secondary: #4a4458;
  --text-muted: #6b6478;
  --border: rgba(109, 40, 217, 0.14);
  --border-glass: rgba(255, 255, 255, 0.5);
  --shadow-sm: 0 2px 8px rgba(76, 29, 149, 0.06);
  --shadow-md: 0 8px 24px rgba(76, 29, 149, 0.1);
  --shadow-lg: 0 16px 48px rgba(76, 29, 149, 0.16);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 999px;
  --container: 1240px;
  --pad-x: 20px;
  --section-gap: 48px;
  --card-gap: 16px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0a1a;
    --bg-alt: #16102a;
    --surface: #1a1330;
    --surface-glass: rgba(26, 19, 48, 0.7);
    --text: #f0ecf9;
    --text-secondary: #c9c2dc;
    --text-muted: #9a92b0;
    --border: rgba(139, 92, 246, 0.22);
    --border-glass: rgba(139, 92, 246, 0.28);
    --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);
    --surface-glass: rgba(26, 19, 48, 0.72);
  }
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  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: 15px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(circle at 12% 8%, rgba(139, 92, 246, 0.1), transparent 42%),
    radial-gradient(circle at 88% 92%, rgba(236, 72, 153, 0.08), transparent 42%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

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

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

ul,
ol {
  padding-left: 1.4em;
  margin: 0 0 1em;
}

li {
  margin-bottom: 0.4em;
}

p {
  margin: 0 0 1em;
}

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

h1 {
  font-size: 1.9rem;
}

h2 {
  font-size: 1.5rem;
}

h3 {
  font-size: 1.06rem;
  font-weight: 700;
}

/* 跳转链接 */
body > a[href="#main-content"] {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  padding: 12px 24px;
  background: var(--primary);
  color: #fff;
  border-radius: 0 0 var(--radius-sm) 0;
  font-size: 14px;
}

body > a[href="#main-content"]:focus {
  left: 0;
}

/* ============ 容器 ============ */
header > div,
main > section,
main > nav,
footer > div {
  width: 100%;
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

/* ============ Header ============ */
header[role="banner"] {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface-glass);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--border-glass);
  box-shadow: var(--shadow-sm);
}

header[role="banner"] > div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding-top: 10px;
  padding-bottom: 10px;
}

header[role="banner"] > div > a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--text);
  flex-shrink: 0;
}

header[role="banner"] > div > a img {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  box-shadow: var(--shadow-sm);
}

header[role="banner"] nav {
  order: 3;
  width: 100%;
}

header[role="banner"] nav ul {
  list-style: none;
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  margin: 0;
  padding: 4px 0;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

header[role="banner"] nav ul::-webkit-scrollbar {
  display: none;
}

header[role="banner"] nav li {
  margin: 0;
  flex-shrink: 0;
}

header[role="banner"] nav a {
  display: inline-block;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: var(--radius-full);
  white-space: nowrap;
  transition: all var(--transition);
}

header[role="banner"] nav a:hover {
  color: #fff;
  background: var(--gradient-banner);
  transform: translateY(-1px);
}

/* 搜索表单 */
header[role="banner"] form[role="search"] {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  flex-shrink: 0;
}

header[role="banner"] form[role="search"] label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

header[role="banner"] form[role="search"] input[type="search"] {
  width: 130px;
  height: 42px;
  padding: 0 14px;
  font-size: 13px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  transition: all var(--transition);
  font-family: inherit;
}

header[role="banner"] form[role="search"] input[type="search"]::placeholder {
  color: var(--text-muted);
}

header[role="banner"] form[role="search"] input[type="search"]:focus {
  width: 180px;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.18);
  outline: none;
}

header[role="banner"] form[role="search"] button {
  height: 42px;
  padding: 0 20px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: var(--gradient-banner);
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  font-family: inherit;
  transition: all var(--transition);
  white-space: nowrap;
}

header[role="banner"] form[role="search"] button:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  filter: brightness(1.06);
}

header[role="banner"] form[role="search"] button:active {
  transform: translateY(0);
}

/* ============ Hero ============ */
#hero {
  position: relative;
  margin-top: 20px;
  padding-top: 32px;
  padding-bottom: 32px;
  border-radius: var(--radius-lg);
  background: var(--gradient-banner);
  background-size: 200% 200%;
  animation: gradientShift 14s ease infinite;
  color: #fff;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

#hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.18), transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.12), transparent 40%);
  pointer-events: none;
}

#hero > div {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

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

#hero p {
  color: rgba(255, 255, 255, 0.92);
  font-size: 15px;
  line-height: 1.78;
  max-width: 780px;
}

#hero p:last-child {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 1.4em;
  margin-bottom: 0;
}

#hero p:last-child a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 28px;
  font-size: 14px;
  font-weight: 700;
  border-radius: var(--radius-full);
  transition: all var(--transition);
}

#hero p:last-child a:first-child {
  color: var(--primary-dark);
  background: #fff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.16);
}

#hero p:last-child a:first-child:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.24);
}

#hero p:last-child a:last-child {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

#hero p:last-child a:last-child:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: translateY(-2px);
}

#hero > div:last-child {
  margin-top: 24px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
  background: rgba(255, 255, 255, 0.1);
}

#hero > div:last-child img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s ease;
}

#hero > div:last-child:hover img {
  transform: scale(1.03);
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ============ 面包屑 ============ */
main > nav[aria-label="面包屑导航"] {
  margin-top: 20px;
}

main > nav[aria-label="面包屑导航"] ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 10px 16px;
  font-size: 13px;
  color: var(--text-muted);
  background: var(--surface-glass);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
}

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

main > nav[aria-label="面包屑导航"] li + li::before {
  content: "/";
  margin-right: 6px;
  color: var(--text-muted);
  opacity: 0.6;
}

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

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

main > nav[aria-label="面包屑导航"] [aria-current="page"] {
  color: var(--primary);
  font-weight: 700;
}

/* ============ 通用 Section ============ */
main > section {
  margin-top: var(--section-gap);
}

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

main > section > h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 1.1em;
  border-radius: var(--radius-full);
  background: var(--gradient-banner);
}

main > section > h3 {
  margin-top: 1.6em;
  color: var(--primary-dark);
}

@media (prefers-color-scheme: dark) {
  main > section > h3 {
    color: var(--primary-light);
  }
}

main > section > p {
  color: var(--text-secondary);
  max-width: 920px;
}

/* ============ 关于/品牌 ============ */
#about {
  padding: 28px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

#about p {
  color: var(--text-secondary);
}

#about h3 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

#about h3::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

#about p:last-child {
  margin-top: 1.4em;
  padding: 14px 18px;
  font-size: 13px;
  color: var(--text-muted);
  background: var(--bg-alt);
  border-left: 3px solid var(--primary-light);
  border-radius: var(--radius-sm);
}

/* ============ 产品卡片 ============ */
#products > h3 {
  padding: 18px 20px;
  margin-top: 18px;
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

#products > h3:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

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

/* 产品优势段落突出 */
#products > h3:last-of-type {
  background: var(--gradient-banner);
  color: #fff;
  border: none;
}

#products > h3:last-of-type + p {
  padding: 20px;
  background: var(--surface-glass);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

/* ============ 解决方案 ============ */
#solutions > h3 {
  padding: 16px 20px;
  margin-top: 18px;
  font-size: 1.02rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary-light);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

#solutions > h3:hover {
  border-left-color: var(--accent);
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}

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

/* ============ 案例 ============ */
#cases h3 {
  padding: 16px 20px;
  margin-top: 18px;
  margin-bottom: 0;
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

#cases h3 + p {
  margin: 0;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  color: var(--text-secondary);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}

#cases h3 + p:hover {
  box-shadow: var(--shadow-md);
}

#cases h3:last-of-type {
  background: var(--gradient-banner);
  color: #fff;
  border: none;
}

#cases h3:last-of-type + p {
  padding: 14px 20px;
  font-size: 14px;
  font-style: italic;
  color: var(--text-secondary);
  border-left: 3px solid var(--accent);
  border-radius: 0;
  margin-bottom: 0;
}

#cases h3:last-of-type ~ p {
  border-radius: var(--radius-sm);
  margin-top: 12px;
  background: var(--bg-alt);
}

/* ============ 新闻 ============ */
#news article {
  padding: 20px;
  margin-top: 16px;
  background: var(--surface-glass);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

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

#news article h3 {
  margin-bottom: 0.4em;
  color: var(--primary-dark);
}

@media (prefers-color-scheme: dark) {
  #news article h3 {
    color: var(--primary-light);
  }
}

#news article p {
  margin-bottom: 0.5em;
  color: var(--text-secondary);
  font-size: 14px;
}

#news article p:nth-of-type(1) {
  font-size: 12.5px;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ============ 文章 ============ */
#articles > p {
  margin-bottom: 1.4em;
}

#articles article {
  position: relative;
  padding: 20px;
  margin-top: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition),
    border-color var(--transition);
}

#articles article::after {
  content: "→";
  position: absolute;
  top: 18px;
  right: 20px;
  font-size: 18px;
  color: var(--primary-light);
  opacity: 0;
  transform: translateX(-6px);
  transition: all var(--transition);
}

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

#articles article:hover::after {
  opacity: 1;
  transform: translateX(0);
}

#articles article h3 {
  padding-right: 28px;
  margin-bottom: 0.5em;
}

#articles article p {
  margin-bottom: 0.5em;
  font-size: 14px;
  color: var(--text-secondary);
}

#articles article p:nth-of-type(1) {
  font-size: 12.5px;
  color: var(--text-muted);
  font-weight: 600;
}

#articles article a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--primary);
}

#articles article a:hover {
  color: var(--accent);
  gap: 8px;
}

/* ============ HowTo ============ */
#howto {
  padding: 28px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

#howto h3 {
  margin-top: 1.4em;
}

#howto ol {
  counter-reset: howto;
  list-style: none;
  padding-left: 0;
  margin: 0 0 1.2em;
}

#howto ol li {
  counter-increment: howto;
  position: relative;
  padding: 14px 18px 14px 54px;
  margin-bottom: 12px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 14.5px;
  transition: all var(--transition);
}

#howto ol li::before {
  content: counter(howto);
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  background: var(--gradient-banner);
  border-radius: 50%;
  box-shadow: 0 3px 10px rgba(109, 40, 217, 0.3);
}

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

#howto p {
  color: var(--text-secondary);
}

/* ============ FAQ ============ */
#faq h3 {
  padding: 16px 20px;
  margin-top: 14px;
  margin-bottom: 0;
  font-size: 1rem;
  background: var(--surface-glass);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  cursor: default;
  transition: all var(--transition);
}

#faq h3 + p {
  margin: 0;
  padding: 16px 20px;
  color: var(--text-secondary);
  font-size: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  box-shadow: var(--shadow-sm);
}

#faq h3:hover + p {
  border-color: var(--primary-light);
}

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

/* ============ 联系我们 ============ */
#contact {
  padding: 28px 20px;
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

#contact ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.2em;
  display: grid;
  gap: 10px;
}

#contact li {
  position: relative;
  padding: 12px 16px 12px 40px;
  margin: 0;
  font-size: 14px;
  color: var(--text-secondary);
  background: var(--surface-glass);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  word-break: break-word;
}

#contact li::before {
  content: "•";
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: var(--primary-light);
  line-height: 1;
}

#contact li:hover {
  transform: translateX(4px);
  border-color: var(--primary-light);
}

#contact h3 {
  margin-top: 1.2em;
}

#contact p {
  color: var(--text-secondary);
  font-size: 14px;
}

/* ============ 网站地图 ============ */
#sitemap ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

#sitemap li {
  margin: 0;
}

#sitemap a {
  display: block;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

#sitemap a:hover {
  color: #fff;
  background: var(--gradient-banner);
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ============ 友情链接 ============ */
#friend-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
}

#friend-links li {
  margin: 0;
}

#friend-links a {
  display: inline-block;
  font-size: 13.5px;
  color: var(--text-secondary);
  text-decoration: none;
  line-height: 1.7;
  transition: color var(--transition);
}

#friend-links a:hover,
#friend-links a:focus-visible {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ============ Footer ============ */
footer[role="contentinfo"] {
  margin-top: var(--section-gap);
  padding-top: 36px;
  padding-bottom: 32px;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}

footer[role="contentinfo"] > div {
  display: grid;
  gap: 24px;
}

footer[role="contentinfo"] h2 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5em;
  color: var(--primary-dark);
}

@media (prefers-color-scheme: dark) {
  footer[role="contentinfo"] h2 {
    color: var(--primary-light);
  }
}

footer[role="contentinfo"] p {
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 0.8em;
}

footer[role="contentinfo"] p:last-child {
  margin-bottom: 0;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 12.5px;
}

/* ============ 滚动动画 ============ */
@media (prefers-reduced-motion: no-preference) {
  main > section {
    animation: fadeUp 0.7s cubic-bezier(0.4, 0, 0.2, 1) both;
  }

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

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

@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;
  }
}

/* ============ 响应式：≥ 480px ============ */
@media (min-width: 480px) {
  h1 {
    font-size: 2.1rem;
  }

  h2 {
    font-size: 1.6rem;
  }

  #sitemap ul {
    grid-template-columns: repeat(3, 1fr);
  }

  #friend-links ul {
    gap: 12px 26px;
  }
}

/* ============ 响应式：≥ 720px ============ */
@media (min-width: 720px) {
  :root {
    --pad-x: 32px;
    --section-gap: 64px;
    --card-gap: 20px;
  }

  body {
    font-size: 16px;
  }

  h1 {
    font-size: 2.4rem;
  }

  h2 {
    font-size: 1.7rem;
  }

  h3 {
    font-size: 1.12rem;
  }

  header[role="banner"] > div {
    flex-wrap: nowrap;
    gap: 20px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  header[role="banner"] nav {
    order: 0;
    width: auto;
    flex: 1;
    min-width: 0;
  }

  header[role="banner"] nav ul {
    justify-content: center;
    padding: 0;
  }

  header[role="banner"] form[role="search"] input[type="search"] {
    width: 170px;
  }

  header[role="banner"] form[role="search"] input[type="search"]:focus {
    width: 220px;
  }

  #hero {
    margin-top: 28px;
    padding-top: 48px;
    padding-bottom: 48px;
  }

  #hero p {
    font-size: 16px;
  }

  #about,
  #howto,
  #contact {
    padding: 36px 32px;
  }

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

  #cases h3,
  #faq h3 {
    padding: 18px 24px;
  }

  #cases h3 + p,
  #faq h3 + p {
    padding: 18px 24px;
  }

  #contact ul {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  #sitemap ul {
    grid-template-columns: repeat(5, 1fr);
  }

  footer[role="contentinfo"] > div {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 40px;
  }

  footer[role="contentinfo"] > div > p:last-child {
    grid-column: 1 / -1;
  }
}

/* ============ 响应式：≥ 1100px ============ */
@media (min-width: 1100px) {
  :root {
    --pad-x: 40px;
    --section-gap: 72px;
    --card-gap: 22px;
  }

  h1 {
    font-size: 2.75rem;
  }

  h2 {
    font-size: 1.85rem;
  }

  h3 {
    font-size: 1.15rem;
  }

  #hero {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  #hero > div:last-child {
    margin-top: 32px;
  }

  #about,
  #howto,
  #contact {
    padding: 44px 40px;
  }

  #products {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--card-gap);
    align-items: start;
  }

  #products > h2,
  #products > p:first-of-type,
  #products > h3:last-of-type,
  #products > h3:last-of-type + p {
    grid-column: 1 / -1;
  }

  #products > h3 {
    margin-top: 0;
  }

  #solutions > h3 {
    margin-top: 20px;
  }

  #news {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--card-gap);
  }

  #news > h2,
  #news > p {
    grid-column: 1 / -1;
  }

  #news article {
    margin-top: 0;
  }

  #articles {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--card-gap);
  }

  #articles > h2,
  #articles > p {
    grid-column: 1 / -1;
  }

  #articles article {
    margin-top: 0;
  }

  #cases {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 var(--card-gap);
  }

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

  #cases h3 {
    margin-top: 18px;
  }

  #cases h3:last-of-type,
  #cases h3:last-of-type + p,
  #cases h3:last-of-type ~ p {
    grid-column: 1 / -1;
  }

  #sitemap ul {
    grid-template-columns: repeat(9, 1fr);
  }

  #sitemap a {
    text-align: center;
    padding: 12px 8px;
    font-size: 13px;
  }

  #friend-links ul {
    gap: 14px 32px;
  }

  footer[role="contentinfo"] > div {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px 48px;
  }
}

/* ============ 响应式：≥ 1240px ============ */
@media (min-width: 1240px) {
  header[role="banner"] form[role="search"] input[type="search"] {
    width: 200px;
  }

  header[role="banner"] form[role="search"] input[type="search"]:focus {
    width: 260px;
  }
}

/* ============ 窄屏 320px 保障 ============ */
@media (max-width: 360px) {
  :root {
    --pad-x: 16px;
  }

  body {
    font-size: 15px;
  }

  h1 {
    font-size: 1.7rem;
  }

  h2 {
    font-size: 1.35rem;
  }

  header[role="banner"] > div > a span {
    font-size: 0.95rem;
  }

  header[role="banner"] form[role="search"] input[type="search"] {
    width: 100px;
  }

  header[role="banner"] form[role="search"] button {
    padding: 0 14px;
  }

  #hero p:last-child a {
    padding: 0 20px;
  }

  #sitemap ul {
    grid-template-columns: repeat(2, 1fr);
  }

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

/* ============ 打印优化 ============ */
@media print {
  header[role="banner"],
  footer[role="contentinfo"],
  #friend-links,
  #sitemap {
    display: none;
  }

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

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