:root {
  --primary: #e63946;
  --primary-dark: #c1121f;
  --primary-light: #ff6b7a;
  --secondary: #457b9d;
  --accent: #f4a261;
  --dark: #1d3557;
  --darker: #0f1b2d;

  --bg-body: #f7f8fc;
  --bg-card: #ffffff;
  --bg-card-hover: #fefefe;
  --bg-glass: rgba(255, 255, 255, 0.72);
  --bg-glass-border: rgba(255, 255, 255, 0.45);
  --bg-header: rgba(255, 255, 255, 0.82);
  --bg-footer: #1d3557;
  --bg-code: #f0f2f8;
  --bg-section-alt: #f0f2fa;

  --text-primary: #1a1a2e;
  --text-secondary: #4a4a6a;
  --text-muted: #8888a8;
  --text-inverse: #ffffff;
  --text-link: #e63946;

  --border-color: #e2e4ee;
  --border-light: rgba(0, 0, 0, 0.06);

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.16);
  --shadow-glow: 0 0 24px rgba(230, 57, 70, 0.3);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-pill: 50px;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-mono: "SF Mono", "Fira Code", "Fira Mono", "Roboto Mono", monospace;

  --transition-fast: 0.18s ease;
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);

  --header-height: 72px;
  --max-width: 1200px;
  --content-width: 860px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-body: #0d1117;
    --bg-card: #161b22;
    --bg-card-hover: #1c2129;
    --bg-glass: rgba(22, 27, 34, 0.78);
    --bg-glass-border: rgba(255, 255, 255, 0.08);
    --bg-header: rgba(13, 17, 23, 0.85);
    --bg-footer: #0a0e14;
    --bg-code: #1c2129;
    --bg-section-alt: #11161d;

    --text-primary: #e6edf3;
    --text-secondary: #b1bac4;
    --text-muted: #6e7681;
    --text-inverse: #0d1117;
    --text-link: #ff6b7a;

    --border-color: #2d333b;
    --border-light: rgba(255, 255, 255, 0.06);

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 24px rgba(230, 57, 70, 0.2);
  }
}

*,
*::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%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-primary);
  background-color: var(--bg-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
}

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

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

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

a:hover {
  color: var(--primary-dark);
  opacity: 0.9;
}

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

ul,
ol {
  padding-left: 1.5em;
}

li {
  margin-bottom: 0.4em;
}

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

/* ========== HEADER ========== */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-header);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--bg-glass-border);
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.06);
  transition: background var(--transition-base), box-shadow var(--transition-base);
}

header > div {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  height: var(--header-height);
}

header > div > a:first-child {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  flex-shrink: 0;
  transition: transform var(--transition-bounce);
}

header > div > a:first-child:hover {
  transform: scale(1.04);
  color: var(--primary);
  opacity: 1;
}

header > div > a:first-child svg {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(230, 57, 70, 0.35);
  transition: transform var(--transition-bounce), box-shadow var(--transition-base);
}

header > div > a:first-child:hover svg {
  transform: rotate(-6deg) scale(1.08);
  box-shadow: 0 4px 16px rgba(230, 57, 70, 0.5);
}

header nav {
  flex: 1;
}

header nav ul {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

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

header nav ul li {
  margin: 0;
  flex-shrink: 0;
}

header nav ul li a {
  display: block;
  padding: 6px 12px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-pill);
  white-space: nowrap;
  transition: all var(--transition-fast);
  position: relative;
}

header nav ul li a::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 60%;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: transform var(--transition-base);
}

header nav ul li a:hover {
  color: var(--primary);
  background: rgba(230, 57, 70, 0.08);
  opacity: 1;
}

header nav ul li a:hover::after {
  transform: translateX(-50%) scaleX(1);
}

header form {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
  position: relative;
}

header form label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

header form input[type="search"] {
  width: 180px;
  padding: 8px 14px;
  font-size: 0.85rem;
  font-family: inherit;
  color: var(--text-primary);
  background: var(--bg-glass);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-pill) 0 0 var(--radius-pill);
  outline: none;
  transition: all var(--transition-base);
}

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

header form input[type="search"]:focus {
  width: 240px;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.12);
}

header form button {
  padding: 8px 18px;
  font-size: 0.85rem;
  font-family: inherit;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border: none;
  border-radius: 0 var(--radius-pill) var(--radius-pill) 0;
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
}

header form button:hover {
  background: linear-gradient(135deg, var(--primary-dark), #9b0e1a);
  box-shadow: 0 2px 12px rgba(230, 57, 70, 0.4);
}

header form button:active {
  transform: scale(0.97);
}

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

/* ========== HERO ========== */
#hero {
  position: relative;
  margin: 32px 0 40px;
  padding: 56px 48px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, #1d3557 0%, #457b9d 40%, #e63946 100%);
  background-size: 200% 200%;
  animation: heroGradient 12s ease infinite;
  color: #fff;
  overflow: hidden;
  box-shadow: var(--shadow-xl), 0 0 60px rgba(230, 57, 70, 0.15);
}

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

#hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: heroOrb 8s ease-in-out infinite alternate;
}

#hero::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(244, 162, 97, 0.18) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: heroOrb 10s ease-in-out infinite alternate-reverse;
}

@keyframes heroOrb {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(40px, -30px) scale(1.15); }
}

#hero h1 {
  position: relative;
  z-index: 1;
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
  animation: fadeInUp 0.7s ease both;
}

#hero > p {
  position: relative;
  z-index: 1;
  font-size: 1.05rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.92);
  max-width: 720px;
  margin-bottom: 16px;
  animation: fadeInUp 0.7s ease 0.1s both;
}

#hero > p strong {
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
  padding: 1px 8px;
  border-radius: 4px;
}

#hero > div {
  position: relative;
  z-index: 1;
  margin: 32px 0;
  animation: fadeInUp 0.7s ease 0.2s both;
}

#hero > div svg {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
  transition: transform var(--transition-slow), box-shadow var(--transition-slow);
}

#hero > div svg:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

#hero > ul {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  animation: fadeInUp 0.7s ease 0.3s both;
}

#hero > ul li {
  margin: 0;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  color: rgba(255, 255, 255, 0.95);
  transition: all var(--transition-base);
  cursor: default;
}

#hero > ul li:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* ========== BREADCRUMB ========== */
nav[aria-label="面包屑导航"] {
  margin: 0 0 32px;
}

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

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

nav[aria-label="面包屑导航"] ol li + li::before {
  content: "/";
  color: var(--text-muted);
  opacity: 0.5;
}

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

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

/* ========== SECTIONS ========== */
main > section {
  margin-bottom: 48px;
  padding: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

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

main > section h2 {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 3px solid transparent;
  border-image: linear-gradient(90deg, var(--primary), var(--accent)) 1;
  border-image-slice: 1;
  border-bottom-style: solid;
  border-bottom-width: 3px;
  letter-spacing: -0.01em;
  position: relative;
}

main > section h2::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 3px;
  z-index: 1;
}

main > section h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 28px 0 12px;
  padding-left: 14px;
  border-left: 4px solid var(--primary);
  line-height: 1.4;
}

main > section p {
  color: var(--text-secondary);
  margin-bottom: 14px;
  line-height: 1.85;
}

main > section ul,
main > section ol {
  color: var(--text-secondary);
  margin-bottom: 16px;
}

main > section ul li,
main > section ol li {
  margin-bottom: 8px;
  line-height: 1.7;
}

main > section ul li strong,
main > section ol li strong {
  color: var(--text-primary);
}

/* ========== BRAND SECTION ========== */
#brand ul {
  list-style: none;
  padding: 0;
}

#brand ul li {
  position: relative;
  padding: 10px 16px 10px 40px;
  margin-bottom: 8px;
  background: var(--bg-section-alt);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--primary);
  transition: all var(--transition-base);
}

#brand ul li::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(230, 57, 70, 0.4);
}

#brand ul li:hover {
  background: rgba(230, 57, 70, 0.06);
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
}

/* ========== PRODUCTS SECTION ========== */
#products ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
  list-style: none;
  padding: 0;
}

#products ul li {
  padding: 14px 18px;
  background: var(--bg-section-alt);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  font-size: 0.92rem;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

#products ul li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, var(--primary), var(--accent));
  opacity: 0;
  transition: opacity var(--transition-base);
}

#products ul li:hover {
  background: var(--bg-card);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(230, 57, 70, 0.2);
}

#products ul li:hover::before {
  opacity: 1;
}

/* ========== SOLUTIONS SECTION ========== */
#solutions h3 {
  margin-top: 24px;
}

#solutions p {
  padding-left: 4px;
}

/* ========== CASES SECTION ========== */
#cases blockquote {
  margin: 16px 0;
  padding: 20px 24px;
  background: var(--bg-section-alt);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  position: relative;
  transition: all var(--transition-base);
}

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

#cases blockquote:hover {
  background: rgba(230, 57, 70, 0.04);
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
}

#cases blockquote p {
  margin: 0;
  font-style: italic;
  color: var(--text-secondary);
  position: relative;
  z-index: 1;
}

/* ========== NEWS & ARTICLES ========== */
#news article,
#articles article {
  padding: 22px 24px;
  margin-bottom: 16px;
  background: var(--bg-section-alt);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

#news article::before,
#articles article::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--secondary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-slow);
}

#news article:hover,
#articles article:hover {
  background: var(--bg-card);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(230, 57, 70, 0.15);
}

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

#news article h3,
#articles article h3 {
  font-size: 1.05rem;
  margin: 0 0 8px;
  padding-left: 0;
  border-left: none;
  color: var(--text-primary);
  transition: color var(--transition-fast);
}

#news article:hover h3,
#articles article:hover h3 {
  color: var(--primary);
}

#news article time,
#articles article time {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  font-weight: 500;
}

#news article p,
#articles article p {
  font-size: 0.92rem;
  margin-bottom: 10px;
}

#news article a,
#articles article a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  transition: all var(--transition-fast);
}

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

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

#news article a:hover,
#articles article a:hover {
  color: var(--primary-dark);
  opacity: 1;
}

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

#faq details[open] {
  background: var(--bg-card);
  border-color: rgba(230, 57, 70, 0.2);
  box-shadow: var(--shadow-md);
}

#faq details:hover {
  border-color: rgba(230, 57, 70, 0.25);
}

#faq details summary {
  padding: 16px 20px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all var(--transition-fast);
  user-select: none;
}

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

#faq details summary::before {
  content: "+";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  min-width: 22px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 700;
  transition: all var(--transition-base);
  line-height: 1;
}

#faq details[open] summary::before {
  content: "\2212";
  background: var(--primary-dark);
  transform: rotate(180deg);
}

#faq details summary:hover {
  color: var(--primary);
  background: rgba(230, 57, 70, 0.04);
}

#faq details p {
  padding: 0 20px 18px 52px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.8;
  animation: fadeIn 0.3s ease;
}

/* ========== HOWTO ========== */
#howto ol {
  counter-reset: howto-step;
  list-style: none;
  padding: 0;
}

#howto ol li {
  counter-increment: howto-step;
  position: relative;
  padding: 16px 20px 16px 60px;
  margin-bottom: 12px;
  background: var(--bg-section-alt);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  transition: all var(--transition-base);
}

#howto ol li::before {
  content: counter(howto-step);
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(230, 57, 70, 0.3);
  transition: transform var(--transition-bounce);
}

#howto ol li:hover {
  background: var(--bg-card);
  transform: translateX(6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(230, 57, 70, 0.15);
}

#howto ol li:hover::before {
  transform: translateY(-50%) scale(1.12);
}

#howto ul {
  list-style: none;
  padding: 0;
}

#howto ul li {
  position: relative;
  padding: 8px 12px 8px 32px;
  margin-bottom: 6px;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
}

#howto ul li::before {
  content: "\2713";
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.85rem;
}

#howto ul li:hover {
  background: rgba(230, 57, 70, 0.05);
}

/* ========== CONTACT ========== */
#contact address {
  font-style: normal;
  padding: 24px 28px;
  background: var(--bg-section-alt);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  margin-bottom: 20px;
}

#contact address p {
  margin-bottom: 8px;
  font-size: 0.95rem;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

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

#contact address a {
  font-weight: 600;
}

/* ========== SITEMAP & LINKS ========== */
#sitemap ul,
#links ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px;
  list-style: none;
  padding: 0;
}

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

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

#sitemap ul li a:hover,
#links ul li a:hover {
  background: rgba(230, 57, 70, 0.06);
  color: var(--primary);
  border-color: rgba(230, 57, 70, 0.2);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  opacity: 1;
}

/* ========== FOOTER ========== */
footer {
  margin-top: 64px;
  background: var(--bg-footer);
  color: rgba(255, 255, 255, 0.85);
  padding: 56px 24px 40px;
}

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

footer > section:last-child {
  margin-bottom: 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(230, 57, 70, 0.5);
  display: inline-block;
}

footer p {
  font-size: 0.88rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 8px;
}

footer a {
  color: var(--primary-light);
}

footer a:hover {
  color: #fff;
}

/* ========== ANIMATIONS ========== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-24px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

main > section {
  animation: fadeInUp 0.6s ease both;
}

main > section:nth-child(1) { animation-delay: 0.05s; }
main > section:nth-child(2) { animation-delay: 0.1s; }
main > section:nth-child(3) { animation-delay: 0.15s; }
main > section:nth-child(4) { animation-delay: 0.2s; }
main > section:nth-child(5) { animation-delay: 0.25s; }
main > section:nth-child(6) { animation-delay: 0.3s; }
main > section:nth-child(7) { animation-delay: 0.35s; }
main > section:nth-child(8) { animation-delay: 0.4s; }
main > section:nth-child(9) { animation-delay: 0.45s; }
main > section:nth-child(10) { animation-delay: 0.5s; }

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-body);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--primary), var(--primary-dark));
  border-radius: 10px;
  border: 2px solid var(--bg-body);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* ========== RESPONSIVE: TABLET ========== */
@media (max-width: 1024px) {
  :root {
    --header-height: 64px;
  }

  header > div {
    padding: 0 16px;
    gap: 12px;
  }

  header form input[type="search"] {
    width: 140px;
  }

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

  #hero {
    padding: 40px 32px;
  }

  #hero h1 {
    font-size: 1.8rem;
  }

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

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

/* ========== RESPONSIVE: MOBILE ========== */
@media (max-width: 768px) {
  :root {
    --header-height: 60px;
  }

  header > div {
    flex-wrap: wrap;
    height: auto;
    padding: 10px 16px;
    gap: 8px;
  }

  header > div > a:first-child {
    font-size: 1.1rem;
  }

  header > div > a:first-child svg {
    width: 34px;
    height: 34px;
  }

  header nav {
    order: 3;
    width: 100%;
    flex: none;
  }

  header nav ul {
    gap: 0;
    padding-bottom: 4px;
  }

  header nav ul li a {
    padding: 5px 10px;
    font-size: 0.8rem;
  }

  header form {
    margin-left: auto;
  }

  header form input[type="search"] {
    width: 120px;
    padding: 6px 10px;
    font-size: 0.8rem;
  }

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

  header form button {
    padding: 6px 12px;
    font-size: 0.8rem;
  }

  main {
    padding: 0 12px;
  }

  #hero {
    margin: 16px 0 24px;
    padding: 28px 20px;
    border-radius: var(--radius-lg);
  }

  #hero h1 {
    font-size: 1.35rem;
    margin-bottom: 14px;
  }

  #hero > p {
    font-size: 0.9rem;
  }

  #hero > div {
    margin: 20px 0;
  }

  #hero > ul {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: 20px;
  }

  #hero > ul li {
    padding: 10px 12px;
    font-size: 0.78rem;
  }

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

  main > section h2 {
    font-size: 1.3rem;
    margin-bottom: 16px;
  }

  main > section h3 {
    font-size: 1.05rem;
    margin: 22px 0 10px;
  }

  main > section p {
    font-size: 0.9rem;
  }

  #products ul {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  #products ul li {
    padding: 12px 14px;
    font-size: 0.85rem;
  }

  #faq details summary {
    padding: 13px 16px;
    font-size: 0.88rem;
  }

  #faq details p {
    padding: 0 16px 14px 48px;
    font-size: 0.85rem;
  }

  #howto ol li {
    padding: 14px 16px 14px 52px;
  }

  #howto ol li::before {
    left: 12px;
    width: 28px;
    height: 28px;
    font-size: 0.78rem;
  }

  #contact address {
    padding: 18px 16px;
  }

  #contact address p {
    font-size: 0.85rem;
    flex-direction: column;
    gap: 2px;
  }

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

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

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

  #news article h3,
  #articles article h3 {
    font-size: 0.95rem;
  }

  #cases blockquote {
    padding: 16px 16px 16px 20px;
  }

  footer {
    padding: 40px 16px 32px;
    margin-top: 40px;
  }

  footer h2 {
    font-size: 1rem;
  }

  footer p {
    font-size: 0.82rem;
  }
}

/* ========== RESPONSIVE: SMALL MOBILE ========== */
@media (max-width: 480px) {
  header > div > a:first-child span {
    display: none;
  }

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

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

  #hero {
    padding: 22px 16px;
  }

  #hero h1 {
    font-size: 1.15rem;
  }

  #hero > ul {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }

  #hero > ul li {
    padding: 8px 8px;
    font-size: 0.72rem;
  }

  main > section {
    padding: 20px 14px;
  }

  main > section h2 {
    font-size: 1.15rem;
  }

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

/* ========== REDUCED MOTION ========== */
@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;
  }

  #hero {
    animation: none;
    background: linear-gradient(135deg, #1d3557, #457b9d, #e63946);
  }
}

/* ========== PRINT ========== */
@media print {
  header,
  footer,
  nav[aria-label="面包屑导航"],
  #hero > div,
  header form {
    display: none;
  }

  body {
    background: #fff;
    color: #000;
    font-size: 12pt;
  }

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

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

  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: #666;
  }
}