:root {
  --primary: #2b6cb0;
  --primary-dark: #1a4d80;
  --primary-light: #4299e1;
  --accent: #f6ad55;
  --accent-dark: #dd6b20;
  --pink: #ed64a6;
  --pink-light: #fbb6ce;
  --bg: #f7fafc;
  --bg-alt: #edf2f7;
  --card-bg: rgba(255, 255, 255, 0.75);
  --card-border: rgba(255, 255, 255, 0.6);
  --text: #1a202c;
  --text-secondary: #4a5568;
  --text-muted: #718096;
  --header-bg: rgba(255, 255, 255, 0.82);
  --shadow-sm: 0 2px 8px rgba(43, 108, 176, 0.08);
  --shadow-md: 0 8px 24px rgba(43, 108, 176, 0.12);
  --shadow-lg: 0 16px 48px rgba(43, 108, 176, 0.18);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --gradient-hero: linear-gradient(135deg, #2b6cb0 0%, #4299e1 35%, #ed64a6 100%);
  --gradient-accent: linear-gradient(135deg, #f6ad55 0%, #ed64a6 100%);
  --gradient-card: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(237, 242, 247, 0.7));
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

[data-theme="dark"] {
  --primary: #4299e1;
  --primary-dark: #2b6cb0;
  --primary-light: #63b3ed;
  --accent: #f6ad55;
  --accent-dark: #ed8936;
  --pink: #f687b3;
  --pink-light: #fbb6ce;
  --bg: #0f1419;
  --bg-alt: #1a202c;
  --card-bg: rgba(26, 32, 44, 0.72);
  --card-border: rgba(66, 153, 225, 0.18);
  --text: #e2e8f0;
  --text-secondary: #a0aec0;
  --text-muted: #718096;
  --header-bg: rgba(15, 20, 25, 0.85);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
  --gradient-hero: linear-gradient(135deg, #1a365d 0%, #2b6cb0 40%, #9b2c6f 100%);
  --gradient-card: linear-gradient(145deg, rgba(26, 32, 44, 0.9), rgba(15, 20, 25, 0.7));
}

*,
*::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-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(circle at 10% 0%, rgba(66, 153, 225, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 90% 20%, rgba(237, 100, 166, 0.07) 0%, transparent 40%),
    radial-gradient(circle at 50% 100%, rgba(246, 173, 85, 0.06) 0%, transparent 50%);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background-color var(--transition), color var(--transition);
}

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

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

a:hover,
a:focus {
  color: var(--pink);
}

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

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

h1 { font-size: clamp(1.75rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.5rem); }

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

ul, ol {
  margin: 0 0 1rem 1.5rem;
  color: var(--text-secondary);
}

li {
  margin-bottom: 0.5rem;
}

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

blockquote {
  margin: 1.25rem 0;
  padding: 1.25rem 1.5rem;
  border-left: 4px solid var(--pink);
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

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

blockquote p {
  margin-bottom: 0;
  font-style: italic;
  color: var(--text-secondary);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

#site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--header-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--card-border);
  box-shadow: var(--shadow-sm);
  transition: background-color var(--transition), box-shadow var(--transition);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  flex-shrink: 0;
}

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

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

.brand svg {
  filter: drop-shadow(0 2px 6px rgba(43, 108, 176, 0.3));
  transition: transform var(--transition);
}

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

.brand-name {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-slogan {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin: 0;
  letter-spacing: 0.02em;
}

#menu-toggle {
  display: none;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
}

#menu-toggle:hover {
  background: var(--primary);
  color: #fff;
}

#main-nav {
  flex: 1;
}

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

#main-nav a {
  display: block;
  padding: 0.45rem 0.75rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  position: relative;
}

#main-nav a::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gradient-accent);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: width var(--transition);
}

#main-nav a:hover {
  color: var(--primary);
  background: rgba(66, 153, 225, 0.08);
}

#main-nav a:hover::after {
  width: 60%;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
}

#site-search {
  display: flex;
  align-items: center;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: box-shadow var(--transition), border-color var(--transition);
}

#site-search:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.2);
}

#search-input {
  border: none;
  background: transparent;
  padding: 0.5rem 0.9rem;
  font-size: 0.85rem;
  color: var(--text);
  width: 180px;
  font-family: inherit;
}

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

#search-input:focus {
  outline: none;
}

#site-search button {
  border: none;
  background: var(--gradient-accent);
  color: #fff;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: filter var(--transition);
}

#site-search button:hover {
  filter: brightness(1.1);
}

#theme-toggle {
  padding: 0.5rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
  transition: all var(--transition);
}

#theme-toggle:hover {
  color: var(--primary);
  border-color: var(--primary);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.breadcrumb {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

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

.breadcrumb li:not(:last-child)::after {
  content: "›";
  color: var(--text-muted);
  font-weight: 700;
}

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

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

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

main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
}

main section {
  margin-bottom: 3.5rem;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

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

main section > h2 {
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.75rem;
}

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

main section h3 {
  margin: 1.75rem 0 0.75rem;
  color: var(--primary);
}

#hero {
  margin-top: 1.5rem;
  padding: 3rem 2.5rem;
  border-radius: var(--radius-xl);
  background: var(--gradient-hero);
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

#hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

#hero::after {
  content: "";
  position: absolute;
  bottom: -40%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(246, 173, 85, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

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

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

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

.hero-answer {
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.hero-answer strong {
  color: #fff;
}

.banner-carousel {
  position: relative;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 2rem 2.5rem;
  min-height: 180px;
  margin-bottom: 2rem;
  overflow: hidden;
}

.banner-carousel .slide {
  display: none;
  animation: fadeSlide 0.6s ease;
}

.banner-carousel .slide.active {
  display: block;
}

@keyframes fadeSlide {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

.banner-carousel .slide h2 {
  color: #fff;
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.banner-carousel .slide p {
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 0;
  font-size: 0.95rem;
}

.carousel-controls {
  position: absolute;
  bottom: 1rem;
  right: 1.5rem;
  display: flex;
  gap: 0.5rem;
}

.carousel-controls button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.carousel-controls button:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.stat {
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-md);
  padding: 1.25rem 1rem;
  text-align: center;
  transition: transform var(--transition), background var(--transition);
}

.stat:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.22);
}

.stat .num {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.2;
  color: #fff;
  background: linear-gradient(135deg, #fff, #fbb6ce);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat span:last-child {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.85);
}

#brand-intro,
#products,
#solutions,
#cases,
#news,
#articles,
#faq,
#howto,
#contact,
#sitemap,
#links,
#privacy,
#disclaimer,
#copyright {
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}

#brand-intro:hover,
#products:hover,
#solutions:hover,
#cases:hover,
#news:hover,
#articles:hover,
#faq:hover,
#howto:hover,
#contact:hover {
  box-shadow: var(--shadow-md);
}

#brand-intro ul,
#products ul,
#solutions ul,
#howto ul,
#howto ol,
#contact ul,
#sitemap ul,
#links ul,
#news-list {
  list-style: none;
  margin-left: 0;
  padding-left: 0;
}

#brand-intro ul li,
#products ul li,
#solutions ul li,
#howto ul li,
#howto ol li,
#contact ul li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.65rem;
}

#brand-intro ul li::before,
#products ul li::before,
#solutions ul li::before,
#howto ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gradient-accent);
  box-shadow: 0 0 0 3px rgba(246, 173, 85, 0.18);
}

#howto ol {
  counter-reset: howto-step;
}

#howto ol li {
  counter-increment: howto-step;
  padding-left: 2.5rem;
}

#howto ol li::before {
  content: counter(howto-step);
  position: absolute;
  left: 0;
  top: 0.05em;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--gradient-hero);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

#contact ul li {
  padding-left: 0;
  padding-bottom: 0.65rem;
  border-bottom: 1px dashed var(--card-border);
}

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

.news-list {
  display: grid;
  gap: 1rem;
}

.news-list li {
  padding: 1.25rem 1.5rem;
  background: var(--gradient-card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  margin-bottom: 0;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.news-list li:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.news-list h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.news-list h3 a {
  color: var(--text);
}

.news-list h3 a:hover {
  color: var(--primary);
}

.news-list p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

#articles article {
  background: var(--gradient-card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.25rem;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
  overflow: hidden;
}

#articles article::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--gradient-accent);
  opacity: 0;
  transition: opacity var(--transition);
}

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

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

#articles article h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  color: var(--text);
}

#articles article > p:nth-of-type(1) {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

#articles article > p:nth-of-type(2) {
  font-size: 0.92rem;
  margin-bottom: 1rem;
}

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

#articles article > p:last-child a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.4rem 1rem;
  background: var(--gradient-accent);
  color: #fff;
  border-radius: var(--radius-lg);
  transition: transform var(--transition), box-shadow var(--transition), filter var(--transition);
}

#articles article > p:last-child a::after {
  content: "→";
  transition: transform var(--transition);
}

#articles article > p:last-child a:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(237, 100, 166, 0.35);
  filter: brightness(1.05);
  color: #fff;
}

#articles article > p:last-child a:hover::after {
  transform: translateX(4px);
}

.faq-item {
  background: var(--gradient-card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  margin-bottom: 0.85rem;
  overflow: hidden;
  transition: box-shadow var(--transition), border-color var(--transition);
}

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

.faq-item h3 {
  margin: 0;
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 1.1rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: inherit;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: color var(--transition), background var(--transition);
}

.faq-question::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--primary);
  flex-shrink: 0;
  transition: transform var(--transition);
}

.faq-question[aria-expanded="true"] {
  color: var(--primary);
  background: rgba(66, 153, 225, 0.06);
}

.faq-question[aria-expanded="true"]::after {
  transform: rotate(45deg);
}

.faq-question:hover {
  color: var(--primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease;
  padding: 0 1.5rem;
}

.faq-answer.open {
  max-height: 600px;
  padding: 0 1.5rem 1.25rem;
}

.faq-answer p {
  margin: 0;
  font-size: 0.93rem;
  color: var(--text-secondary);
  padding-top: 0.25rem;
  border-top: 1px dashed var(--card-border);
  padding-top: 0.85rem;
}

#sitemap ul,
#links ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.5rem;
}

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

#sitemap a,
#links a {
  display: block;
  padding: 0.5rem 0.85rem;
  background: var(--gradient-card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  transition: all var(--transition);
}

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

#privacy,
#disclaimer,
#copyright {
  padding: 1.75rem 2.5rem;
}

#privacy p,
#disclaimer p,
#copyright p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

footer {
  background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
  color: #cbd5e0;
  margin-top: 2rem;
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] footer {
  background: linear-gradient(135deg, #0a0e13 0%, #1a202c 100%);
}

footer::before {
  content: "";
  position: absolute;
  top: -60%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(66, 153, 225, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 3rem 1.5rem 2rem;
  position: relative;
  z-index: 1;
  text-align: center;
}

.footer-inner p {
  color: #a0aec0;
  font-size: 0.88rem;
  margin-bottom: 0.6rem;
}

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

.footer-inner nav ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  list-style: none;
  margin: 1.25rem 0;
  padding: 0;
}

.footer-inner nav a {
  color: #a0aec0;
  font-size: 0.88rem;
  transition: color var(--transition);
}

.footer-inner nav a:hover {
  color: var(--accent);
}

.footer-inner p:last-child {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #718096;
  font-size: 0.82rem;
}

#back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  padding: 0.75rem 1.1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  background: var(--gradient-hero);
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition);
  font-family: inherit;
}

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

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

@media (max-width: 1024px) {
  .header-inner {
    gap: 1rem;
  }

  #search-input {
    width: 140px;
  }

  #hero {
    padding: 2.5rem 2rem;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  #menu-toggle {
    display: block;
    margin-left: auto;
  }

  #main-nav {
    display: none;
    width: 100%;
    order: 10;
    flex-basis: 100%;
  }

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

  #main-nav ul {
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.75rem 0;
    border-top: 1px solid var(--card-border);
    margin-top: 0.5rem;
  }

  #main-nav a {
    padding: 0.7rem 1rem;
  }

  #main-nav a::after {
    display: none;
  }

  .header-tools {
    order: 11;
    flex-basis: 100%;
    margin-left: 0;
    padding-top: 0.75rem;
    border-top: 1px solid var(--card-border);
    display: none;
  }

  .header-tools.open {
    display: flex;
  }

  #site-search {
    flex: 1;
  }

  #search-input {
    width: 100%;
    flex: 1;
  }

  .breadcrumb {
    padding: 0.5rem 1rem;
    font-size: 0.78rem;
  }
}

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

  main {
    padding: 0 1rem 2rem;
  }

  main section {
    margin-bottom: 2.5rem;
  }

  #hero {
    padding: 2rem 1.5rem;
    border-radius: var(--radius-lg);
    margin-top: 1rem;
  }

  .hero-lead {
    font-size: 1rem;
  }

  .banner-carousel {
    padding: 1.5rem;
    min-height: 160px;
  }

  .banner-carousel .slide h2 {
    font-size: 1.15rem;
  }

  .carousel-controls {
    bottom: 0.6rem;
    right: 0.75rem;
  }

  .carousel-controls button {
    width: 34px;
    height: 34px;
    font-size: 1.2rem;
  }

  .stats {
    gap: 0.75rem;
  }

  .stat {
    padding: 1rem 0.75rem;
  }

  .stat .num {
    font-size: 1.6rem;
  }

  #brand-intro,
  #products,
  #solutions,
  #cases,
  #news,
  #articles,
  #faq,
  #howto,
  #contact,
  #sitemap,
  #links,
  #privacy,
  #disclaimer,
  #copyright {
    padding: 1.75rem 1.25rem;
    border-radius: var(--radius-md);
  }

  #articles article {
    padding: 1.25rem;
  }

  .faq-question {
    padding: 1rem 1.15rem;
    font-size: 0.95rem;
  }

  .faq-answer {
    padding: 0 1.15rem;
  }

  .faq-answer.open {
    padding: 0 1.15rem 1rem;
  }

  #sitemap ul,
  #links ul {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }

  #back-to-top {
    bottom: 1.25rem;
    right: 1.25rem;
    padding: 0.6rem 0.9rem;
    font-size: 0.8rem;
  }

  .footer-inner {
    padding: 2rem 1.25rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .header-inner {
    padding: 0.6rem 1rem;
  }

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

  .brand-slogan {
    font-size: 0.66rem;
  }

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

  .header-tools {
    flex-direction: column;
    align-items: stretch;
  }

  #theme-toggle {
    text-align: center;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat .num {
    font-size: 1.4rem;
  }

  .stat span:last-child {
    font-size: 0.72rem;
  }

  #hero-title {
    font-size: 1.5rem;
  }

  .hero-answer {
    padding: 1rem 1.15rem;
    font-size: 0.88rem;
  }

  .banner-carousel {
    padding: 1.25rem;
  }

  #articles article > p:last-child a {
    font-size: 0.85rem;
    padding: 0.35rem 0.85rem;
  }

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

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

  main section {
    opacity: 1;
    transform: none;
  }
}

@media print {
  #site-header,
  #back-to-top,
  .carousel-controls,
  #menu-toggle,
  .header-tools,
  footer nav {
    display: none !important;
  }

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

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

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