:root {
  --primary: #6c5ce7;
  --primary-light: #a29bfe;
  --primary-dark: #4834d4;
  --accent: #fd79a8;
  --accent-light: #fab1c6;
  --gradient-1: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 50%, #fd79a8 100%);
  --gradient-2: linear-gradient(135deg, #4834d4 0%, #6c5ce7 100%);
  --gradient-3: linear-gradient(135deg, #fd79a8 0%, #e84393 100%);
  --gradient-hero: linear-gradient(160deg, #1a1a2e 0%, #16213e 40%, #0f3460 100%);
  --bg: #f8f9fe;
  --bg-alt: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-glass: rgba(255, 255, 255, 0.25);
  --text: #2d3436;
  --text-light: #636e72;
  --text-lighter: #b2bec3;
  --border: rgba(108, 92, 231, 0.12);
  --shadow-sm: 0 2px 8px rgba(108, 92, 231, 0.08);
  --shadow-md: 0 8px 32px rgba(108, 92, 231, 0.12);
  --shadow-lg: 0 16px 48px rgba(108, 92, 231, 0.18);
  --shadow-hover: 0 20px 60px rgba(108, 92, 231, 0.25);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --glass-border: rgba(255, 255, 255, 0.18);
  --glass-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
  --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.2s ease;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

[data-theme="dark"] {
  --bg: #0d0d1a;
  --bg-alt: #141428;
  --bg-card: rgba(30, 30, 60, 0.75);
  --bg-glass: rgba(30, 30, 60, 0.4);
  --text: #e8e8f0;
  --text-light: #a0a0b8;
  --text-lighter: #5a5a78;
  --border: rgba(162, 155, 254, 0.12);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
  --shadow-hover: 0 20px 60px rgba(108, 92, 231, 0.3);
  --glass-border: rgba(162, 155, 254, 0.1);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  --gradient-hero: linear-gradient(160deg, #0d0d1a 0%, #141428 40%, #1a1a3e 100%);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  font-size: 16px;
  transition: background 0.4s ease, color 0.4s ease;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition-fast);
  position: relative;
}

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

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

ul, ol {
  list-style: none;
}

h1, h2, h3, h4 {
  line-height: 1.3;
  font-weight: 700;
  color: var(--text);
  transition: color 0.4s ease;
}

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

p {
  color: var(--text-light);
  margin-bottom: 1rem;
  transition: color 0.4s ease;
}

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

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

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

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

::-webkit-scrollbar-thumb {
  background: var(--primary-light);
  border-radius: 10px;
  border: 2px solid var(--bg);
}

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

/* ===== HEADER ===== */
header[role="banner"] {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-glass);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

header[role="banner"] > div {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  height: 72px;
}

header[role="banner"] > div > a:first-child {
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
  letter-spacing: -0.5px;
  transition: var(--transition);
  flex-shrink: 0;
}

header[role="banner"] > div > a:first-child:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
}

nav[role="navigation"] {
  flex: 1;
  display: flex;
  justify-content: center;
}

nav[role="navigation"] ul {
  display: flex;
  gap: 4px;
  flex-wrap: nowrap;
}

nav[role="navigation"] ul li a {
  display: inline-block;
  padding: 8px 14px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-light);
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
  white-space: nowrap;
}

nav[role="navigation"] ul li a:hover {
  color: var(--primary);
  background: rgba(108, 92, 231, 0.08);
  transform: translateY(-2px);
}

header[role="banner"] form[role="search"] {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

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

header[role="banner"] form[role="search"] input[type="search"] {
  width: 200px;
  padding: 9px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  color: var(--text);
  font-size: 0.85rem;
  font-family: var(--font);
  transition: var(--transition);
  outline: none;
  backdrop-filter: blur(10px);
}

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

header[role="banner"] form[role="search"] input[type="search"]:focus {
  width: 260px;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(108, 92, 231, 0.12);
}

header[role="banner"] form[role="search"] button[type="submit"] {
  padding: 9px 18px;
  border: none;
  border-radius: var(--radius-xl);
  background: var(--gradient-2);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

header[role="banner"] form[role="search"] button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(108, 92, 231, 0.4);
}

#theme-toggle,
#mobile-menu-btn {
  padding: 8px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  color: var(--text-light);
  font-size: 0.8rem;
  font-weight: 500;
  font-family: var(--font);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  backdrop-filter: blur(10px);
}

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

#mobile-menu-btn {
  display: none;
}

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

nav[aria-label="面包屑导航"] ol {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-lighter);
}

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

nav[aria-label="面包屑导航"] ol li + li::before {
  content: "/";
  color: var(--text-lighter);
  font-size: 0.75rem;
}

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

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

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

/* ===== MAIN ===== */
main[role="main"] {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 60px;
}

main > section {
  margin-top: 48px;
  animation: fadeInUp 0.8s 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; }

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

main > section > h2 {
  position: relative;
  padding-bottom: 16px;
  margin-bottom: 28px;
}

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

main > section > h3 {
  margin: 28px 0 12px;
  color: var(--primary-dark);
}

[data-theme="dark"] main > section > h3 {
  color: var(--primary-light);
}

/* ===== HERO SECTION ===== */
#home {
  position: relative;
  padding: 60px 40px 48px;
  border-radius: var(--radius-xl);
  background: var(--gradient-hero);
  overflow: hidden;
  color: #fff;
  box-shadow: var(--shadow-lg);
}

#home::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(108, 92, 231, 0.4) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 8s ease-in-out infinite;
  pointer-events: none;
}

#home::after {
  content: "";
  position: absolute;
  bottom: -40%;
  left: -15%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(253, 121, 168, 0.3) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 10s ease-in-out infinite reverse;
  pointer-events: none;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

#home h1 {
  position: relative;
  z-index: 1;
  color: #fff;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  margin-bottom: 24px;
  background: linear-gradient(135deg, #fff 0%, #a29bfe 50%, #fd79a8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
}

#home > p {
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.8);
  max-width: 800px;
  font-size: 0.95rem;
  line-height: 1.9;
}

#home > div:first-of-type {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 16px;
  margin: 32px 0 40px;
  flex-wrap: wrap;
}

#home > div:first-of-type a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-xl);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

#home > div:first-of-type a:first-child {
  background: var(--gradient-1);
  color: #fff;
  box-shadow: 0 8px 24px rgba(108, 92, 231, 0.4);
}

#home > div:first-of-type a:first-child:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 16px 40px rgba(108, 92, 231, 0.55);
}

#home > div:first-of-type a:last-child {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
}

#home > div:first-of-type a:last-child:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.5);
}

/* Banner Carousel */
#home > div[aria-label="Banner轮播"] {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 40px 0;
}

#home > div[aria-label="Banner轮播"] > div {
  padding: 28px 24px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: var(--transition);
  cursor: default;
  position: relative;
  overflow: hidden;
}

#home > div[aria-label="Banner轮播"] > div::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-1);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

#home > div[aria-label="Banner轮播"] > div:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.25);
}

#home > div[aria-label="Banner轮播"] > div:hover::before {
  transform: scaleX(1);
}

#home > div[aria-label="Banner轮播"] > div h2 {
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 10px;
}

#home > div[aria-label="Banner轮播"] > div p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  margin-bottom: 0;
}

/* Stats */
#home > div[aria-label="平台数据"] {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

#home > div[aria-label="平台数据"] > div {
  text-align: center;
  padding: 16px 8px;
  border-radius: var(--radius-md);
  transition: var(--transition);
}

#home > div[aria-label="平台数据"] > div:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: scale(1.05);
}

#home > div[aria-label="平台数据"] > div strong {
  display: block;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 4px;
}

#home > div[aria-label="平台数据"] > div span {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}

/* ===== ABOUT SECTION ===== */
#about {
  padding: 40px;
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

#about:hover {
  box-shadow: var(--shadow-md);
}

#about ul {
  margin: 16px 0;
  padding-left: 0;
}

#about ul li {
  position: relative;
  padding: 10px 0 10px 28px;
  color: var(--text-light);
  font-size: 0.925rem;
  border-bottom: 1px solid var(--border);
  transition: var(--transition-fast);
}

#about ul li:last-child {
  border-bottom: none;
}

#about ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gradient-1);
  transition: var(--transition-fast);
}

#about ul li:hover {
  padding-left: 34px;
  color: var(--text);
}

#about ul li:hover::before {
  transform: scale(1.4);
  box-shadow: 0 0 12px rgba(108, 92, 231, 0.5);
}

/* ===== PRODUCTS SECTION ===== */
#products {
  padding: 40px;
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

#products:hover {
  box-shadow: var(--shadow-md);
}

#products > h3 {
  padding: 20px 24px;
  background: linear-gradient(135deg, rgba(108, 92, 231, 0.06) 0%, rgba(253, 121, 168, 0.06) 100%);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--primary);
  margin: 20px 0 12px;
  transition: var(--transition);
}

#products > h3:hover {
  transform: translateX(6px);
  border-left-color: var(--accent);
  background: linear-gradient(135deg, rgba(108, 92, 231, 0.1) 0%, rgba(253, 121, 168, 0.1) 100%);
}

#products ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

#products ul li {
  padding: 20px 24px;
  background: var(--bg-alt);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text-light);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

#products ul li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--gradient-1);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.4s ease;
}

#products ul li:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
  background: var(--bg-card);
}

#products ul li:hover::before {
  transform: scaleY(1);
}

#products ul li strong {
  display: block;
  margin-bottom: 4px;
  color: var(--primary-dark);
  font-size: 0.95rem;
}

[data-theme="dark"] #products ul li strong {
  color: var(--primary-light);
}

/* ===== SOLUTIONS SECTION ===== */
#solutions {
  padding: 40px;
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

#solutions:hover {
  box-shadow: var(--shadow-md);
}

#solutions > h3 {
  margin: 28px 0 12px;
  padding-left: 16px;
  border-left: 4px solid var(--accent);
  transition: var(--transition);
}

#solutions > h3:hover {
  border-left-color: var(--primary);
  padding-left: 22px;
}

#solutions ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

#solutions ul li {
  padding: 20px;
  background: linear-gradient(135deg, rgba(108, 92, 231, 0.04) 0%, rgba(253, 121, 168, 0.04) 100%);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text-light);
  transition: var(--transition);
}

#solutions ul li:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-light);
  background: linear-gradient(135deg, rgba(108, 92, 231, 0.08) 0%, rgba(253, 121, 168, 0.08) 100%);
}

#solutions ul li strong {
  display: block;
  margin-bottom: 6px;
  color: var(--primary-dark);
}

[data-theme="dark"] #solutions ul li strong {
  color: var(--primary-light);
}

/* ===== CASES SECTION ===== */
#cases {
  padding: 40px;
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

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

#cases > h3 {
  margin: 28px 0 12px;
  padding: 16px 20px;
  background: var(--bg-alt);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  transition: var(--transition);
}

#cases > h3:hover {
  transform: translateX(6px);
  border-color: var(--primary-light);
  box-shadow: var(--shadow-sm);
}

#cases ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

#cases ul li {
  padding: 20px 24px;
  background: var(--bg-alt);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text-light);
  font-style: italic;
  position: relative;
  transition: var(--transition);
}

#cases ul li::before {
  content: "\201C";
  position: absolute;
  top: 8px;
  left: 12px;
  font-size: 2.5rem;
  color: var(--primary-light);
  opacity: 0.3;
  font-style: normal;
  line-height: 1;
}

#cases ul li:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

/* ===== NEWS SECTION ===== */
#news {
  padding: 40px;
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

#news:hover {
  box-shadow: var(--shadow-md);
}

#news article {
  padding: 28px;
  margin-bottom: 20px;
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

#news article::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gradient-1);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}

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

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

#news article h3 {
  margin-bottom: 8px;
  font-size: 1.15rem;
  transition: var(--transition-fast);
}

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

#news article time {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--text-lighter);
  margin-bottom: 12px;
  padding: 2px 12px;
  background: rgba(108, 92, 231, 0.06);
  border-radius: var(--radius-xl);
}

#news article p {
  font-size: 0.9rem;
  margin-bottom: 16px;
}

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

#news article a::after {
  content: "\2192";
  transition: transform 0.3s ease;
}

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

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

/* ===== ARTICLES SECTION ===== */
#articles {
  padding: 40px;
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

#articles:hover {
  box-shadow: var(--shadow-md);
}

#articles article {
  padding: 28px;
  margin-bottom: 20px;
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

#articles article::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--gradient-3);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.5s ease;
}

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

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

#articles article h3 {
  margin-bottom: 8px;
  font-size: 1.15rem;
  transition: var(--transition-fast);
}

#articles article:hover h3 {
  color: var(--accent);
}

#articles article time {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--text-lighter);
  margin-bottom: 12px;
  padding: 2px 12px;
  background: rgba(253, 121, 168, 0.08);
  border-radius: var(--radius-xl);
}

#articles article p {
  font-size: 0.9rem;
  margin-bottom: 16px;
}

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

#articles article a::after {
  content: "\2192";
  transition: transform 0.3s ease;
}

#articles article a:hover {
  color: var(--primary);
}

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

/* ===== FAQ SECTION ===== */
#faq {
  padding: 40px;
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

#faq:hover {
  box-shadow: var(--shadow-md);
}

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

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

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

#faq details summary {
  padding: 18px 24px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: var(--transition-fast);
  position: relative;
}

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

#faq details summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--primary);
  transition: transform 0.3s ease;
  flex-shrink: 0;
  line-height: 1;
}

#faq details[open] summary::after {
  content: "\2212";
  transform: rotate(180deg);
}

#faq details summary:hover {
  background: rgba(108, 92, 231, 0.04);
  color: var(--primary);
}

#faq details[open] summary {
  background: rgba(108, 92, 231, 0.06);
  color: var(--primary-dark);
}

[data-theme="dark"] #faq details[open] summary {
  color: var(--primary-light);
}

#faq details p {
  padding: 0 24px 20px;
  font-size: 0.9rem;
  line-height: 1.85;
  animation: slideDown 0.35s ease;
}

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

/* ===== HOWTO SECTION ===== */
#howto {
  padding: 40px;
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

#howto:hover {
  box-shadow: var(--shadow-md);
}

#howto h4 {
  margin: 24px 0 10px;
  padding: 14px 20px;
  background: linear-gradient(135deg, rgba(108, 92, 231, 0.06) 0%, rgba(162, 155, 254, 0.06) 100%);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--primary);
  transition: var(--transition);
}

#howto h4:hover {
  transform: translateX(6px);
  border-left-color: var(--accent);
}

#howto ul {
  margin: 12px 0;
}

#howto ul li {
  position: relative;
  padding: 8px 0 8px 28px;
  font-size: 0.9rem;
  color: var(--text-light);
  transition: var(--transition-fast);
}

#howto ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gradient-2);
  transition: var(--transition-fast);
}

#howto ul li:hover {
  padding-left: 34px;
  color: var(--text);
}

#howto ul li:hover::before {
  transform: scale(1.4);
  box-shadow: 0 0 12px rgba(108, 92, 231, 0.5);
}

/* ===== CONTACT SECTION ===== */
#contact {
  padding: 40px;
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

#contact:hover {
  box-shadow: var(--shadow-md);
}

#contact ul {
  margin: 16px 0;
}

#contact ul li {
  padding: 12px 0;
  font-size: 0.925rem;
  color: var(--text-light);
  border-bottom: 1px solid var(--border);
  transition: var(--transition-fast);
}

#contact ul li:last-child {
  border-bottom: none;
}

#contact ul li:hover {
  padding-left: 12px;
  color: var(--text);
}

#contact ul li strong {
  color: var(--primary-dark);
  margin-right: 8px;
}

[data-theme="dark"] #contact ul li strong {
  color: var(--primary-light);
}

#contact > h3 {
  margin: 28px 0 12px;
}

/* ===== SITEMAP & LINKS ===== */
#sitemap,
#links {
  padding: 40px;
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

#sitemap:hover,
#links:hover {
  box-shadow: var(--shadow-md);
}

#sitemap ul,
#links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

#sitemap ul li a,
#links ul li a {
  display: inline-block;
  padding: 10px 22px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-light);
  transition: var(--transition);
}

#sitemap ul li a:hover,
#links ul li a:hover {
  background: var(--gradient-2);
  color: #fff;
  border-color: transparent;
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(108, 92, 231, 0.35);
}

/* ===== FOOTER ===== */
footer[role="contentinfo"] {
  background: var(--gradient-hero);
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 24px 30px;
  margin-top: 60px;
  position: relative;
  overflow: hidden;
}

footer[role="contentinfo"]::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-1);
}

footer[role="contentinfo"] > section {
  max-width: 1280px;
  margin: 0 auto 32px;
}

footer[role="contentinfo"] > section:first-child {
  max-width: 1280px;
  margin: 0 auto 32px;
}

footer[role="contentinfo"] h2 {
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 10px;
}

footer[role="contentinfo"] h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 3px;
  background: var(--gradient-1);
  border-radius: 3px;
}

footer[role="contentinfo"] p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
  line-height: 1.8;
  max-width: 720px;
}

footer[role="contentinfo"] ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

footer[role="contentinfo"] ul li {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
}

footer[role="contentinfo"] ul li a {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition-fast);
  position: relative;
}

footer[role="contentinfo"] ul li a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--primary-light);
  transition: width 0.3s ease;
}

footer[role="contentinfo"] ul li a:hover {
  color: #fff;
}

footer[role="contentinfo"] ul li a:hover::after {
  width: 100%;
}

footer[role="contentinfo"] > section#privacy,
footer[role="contentinfo"] > section#disclaimer,
footer[role="contentinfo"] > section#copyright {
  max-width: 1280px;
  margin: 0 auto 20px;
  padding: 20px 24px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: var(--transition);
}

footer[role="contentinfo"] > section#privacy:hover,
footer[role="contentinfo"] > section#disclaimer:hover,
footer[role="contentinfo"] > section#copyright:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.12);
}

footer[role="contentinfo"] > section#privacy h2,
footer[role="contentinfo"] > section#disclaimer h2,
footer[role="contentinfo"] > section#copyright h2 {
  font-size: 0.95rem;
  margin-bottom: 10px;
}

footer[role="contentinfo"] > section#privacy p,
footer[role="contentinfo"] > section#disclaimer p,
footer[role="contentinfo"] > section#copyright p {
  font-size: 0.8rem;
  line-height: 1.75;
}

footer[role="contentinfo"] > p:last-of-type {
  max-width: 1280px;
  margin: 24px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
}

footer[role="contentinfo"] > p:last-of-type:last-child {
  margin-bottom: 0;
}

/* ===== BACK TO TOP ===== */
#back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 999;
  width: 52px;
  height: 52px;
  border: none;
  border-radius: 50%;
  background: var(--gradient-2);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(108, 92, 231, 0.4);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.8);
}

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

#back-to-top:hover {
  transform: translateY(-6px) scale(1.1);
  box-shadow: 0 16px 40px rgba(108, 92, 231, 0.55);
}

#back-to-top:active {
  transform: translateY(-2px) scale(1.05);
}

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  nav[role="navigation"] ul li a {
    padding: 8px 10px;
    font-size: 0.8rem;
  }

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

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

@media (max-width: 900px) {
  header[role="banner"] > div {
    height: 64px;
    padding: 0 16px;
    gap: 12px;
  }

  nav[role="navigation"] {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg-glass);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--glass-border);
    padding: 16px;
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
  }

  nav[role="navigation"].open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  nav[role="navigation"] ul {
    flex-direction: column;
    gap: 4px;
  }

  nav[role="navigation"] ul li a {
    display: block;
    padding: 12px 16px;
    font-size: 0.95rem;
    border-radius: var(--radius-md);
  }

  #mobile-menu-btn {
    display: block;
  }

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

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

  #home {
    padding: 40px 24px 32px;
  }

  #home > div[aria-label="Banner轮播"] {
    grid-template-columns: 1fr;
  }

  #home > div[aria-label="平台数据"] {
    grid-template-columns: repeat(2, 1fr);
  }

  #about,
  #products,
  #solutions,
  #cases,
  #news,
  #articles,
  #faq,
  #howto,
  #contact,
  #sitemap,
  #links {
    padding: 28px 20px;
  }

  #products ul,
  #solutions ul,
  #cases ul {
    grid-template-columns: 1fr;
  }
}

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

  header[role="banner"] > div {
    height: 56px;
    padding: 0 12px;
    gap: 8px;
  }

  header[role="banner"] > div > a:first-child {
    font-size: 1.2rem;
  }

  header[role="banner"] form[role="search"] {
    display: none;
  }

  #theme-toggle {
    padding: 6px 10px;
    font-size: 0.7rem;
  }

  #mobile-menu-btn {
    padding: 6px 10px;
    font-size: 0.7rem;
  }

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

  main[role="main"] {
    padding: 0 12px 40px;
  }

  main > section {
    margin-top: 32px;
  }

  main > section > h2 {
    font-size: 1.25rem;
    padding-bottom: 12px;
    margin-bottom: 20px;
  }

  main > section > h2::after {
    width: 48px;
    height: 3px;
  }

  #home {
    padding: 28px 16px 24px;
    border-radius: var(--radius-lg);
  }

  #home h1 {
    font-size: 1.4rem;
    margin-bottom: 16px;
  }

  #home > p {
    font-size: 0.875rem;
  }

  #home > div:first-of-type {
    flex-direction: column;
    margin: 24px 0 28px;
  }

  #home > div:first-of-type a {
    width: 100%;
    justify-content: center;
    padding: 12px 24px;
    font-size: 0.875rem;
  }

  #home > div[aria-label="Banner轮播"] > div {
    padding: 20px 16px;
  }

  #home > div[aria-label="Banner轮播"] > div h2 {
    font-size: 1rem;
  }

  #home > div[aria-label="平台数据"] {
    gap: 8px;
    padding-top: 20px;
  }

  #home > div[aria-label="平台数据"] > div {
    padding: 12px 4px;
  }

  #home > div[aria-label="平台数据"] > div strong {
    font-size: 1.2rem;
  }

  #home > div[aria-label="平台数据"] > div span {
    font-size: 0.7rem;
  }

  #about,
  #products,
  #solutions,
  #cases,
  #news,
  #articles,
  #faq,
  #howto,
  #contact,
  #sitemap,
  #links {
    padding: 20px 14px;
    border-radius: var(--radius-lg);
  }

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

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

  #faq details summary {
    padding: 14px 16px;
    font-size: 0.875rem;
  }

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

  #howto h4 {
    padding: 12px 14px;
    font-size: 0.9rem;
  }

  #contact ul li {
    font-size: 0.85rem;
  }

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

  footer[role="contentinfo"] {
    padding: 40px 16px 24px;
  }

  footer[role="contentinfo"] h2 {
    font-size: 0.95rem;
  }

  footer[role="contentinfo"] ul {
    flex-direction: column;
    gap: 6px;
  }

  footer[role="contentinfo"] > section#privacy,
  footer[role="contentinfo"] > section#disclaimer,
  footer[role="contentinfo"] > section#copyright {
    padding: 16px;
  }

  #back-to-top {
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    font-size: 0.65rem;
  }
}

@media (max-width: 380px) {
  header[role="banner"] > div > a:first-child {
    font-size: 1.05rem;
  }

  #theme-toggle {
    display: none;
  }

  #home h1 {
    font-size: 1.2rem;
  }

  #home > div[aria-label="平台数据"] {
    grid-template-columns: 1fr 1fr;
  }
}

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

/* ===== PRINT ===== */
@media print {
  header[role="banner"],
  nav[aria-label="面包屑导航"],
  #back-to-top,
  #theme-toggle,
  #mobile-menu-btn {
    display: none;
  }

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

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

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