:root {
  --primary: #f5a623;
  --primary-dark: #d98c0f;
  --primary-light: #ffc85c;
  --secondary: #7c5cff;
  --accent: #00d4aa;
  --bg: #f7f8fc;
  --bg-alt: #ffffff;
  --bg-elevated: #ffffff;
  --text: #1a1d29;
  --text-secondary: #5a6072;
  --text-muted: #8b91a4;
  --border: rgba(26, 29, 41, 0.08);
  --border-strong: rgba(26, 29, 41, 0.14);
  --shadow-sm: 0 2px 8px rgba(26, 29, 41, 0.06);
  --shadow-md: 0 8px 24px rgba(26, 29, 41, 0.08);
  --shadow-lg: 0 16px 48px rgba(26, 29, 41, 0.12);
  --glass-bg: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.6);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1200px;
  --header-height: 72px;
}

[data-theme="dark"] {
  --bg: #0d0f16;
  --bg-alt: #141824;
  --bg-elevated: #1a1f2e;
  --text: #eef1f8;
  --text-secondary: #a8b0c4;
  --text-muted: #6b7389;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --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);
  --glass-bg: rgba(20, 24, 36, 0.72);
  --glass-border: rgba(255, 255, 255, 0.08);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d0f16;
    --bg-alt: #141824;
    --bg-elevated: #1a1f2e;
    --text: #eef1f8;
    --text-secondary: #a8b0c4;
    --text-muted: #6b7389;
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.16);
    --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);
    --glass-bg: rgba(20, 24, 36, 0.72);
    --glass-border: rgba(255, 255, 255, 0.08);
  }
}

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

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 60% at 10% -10%, rgba(245, 166, 35, 0.10), transparent 60%),
    radial-gradient(ellipse 60% 50% at 95% 5%, rgba(124, 92, 255, 0.10), transparent 55%),
    radial-gradient(ellipse 50% 40% at 50% 100%, rgba(0, 212, 170, 0.06), transparent 60%);
  background-attachment: fixed;
  transition: background-color var(--transition), color var(--transition);
  overflow-x: hidden;
  min-height: 100vh;
}

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

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

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

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

h1 {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.35rem, 2.8vw, 1.9rem);
}

h3 {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

h4 {
  font-size: 1.05rem;
}

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

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

li {
  color: var(--text-secondary);
  margin-bottom: 0.35em;
}

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

blockquote {
  border-left: 4px solid var(--primary);
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1rem 1.4rem;
  margin: 1rem 0;
  box-shadow: var(--shadow-sm);
}

blockquote p {
  margin: 0;
  font-style: italic;
}

.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(--glass-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition), box-shadow var(--transition);
}

#site-header:hover {
  box-shadow: var(--shadow-sm);
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  color: var(--text);
  font-weight: 800;
  transition: transform var(--transition);
}

.brand-logo:hover {
  transform: translateY(-2px);
  color: var(--text);
}

.brand-logo svg {
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(245, 166, 35, 0.4);
  transition: transform var(--transition), box-shadow var(--transition);
}

.brand-logo:hover svg {
  transform: rotate(-6deg) scale(1.05);
  box-shadow: 0 6px 20px rgba(245, 166, 35, 0.55);
}

.brand-name {
  font-size: 1.2rem;
  letter-spacing: 0.02em;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
}

.main-nav {
  flex: 1;
  min-width: 0;
}

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

.main-nav ul::-webkit-scrollbar {
  display: none;
}

.main-nav li {
  margin: 0;
  flex-shrink: 0;
}

.main-nav a {
  display: block;
  padding: 8px 12px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  white-space: nowrap;
  position: relative;
  transition: color var(--transition), background var(--transition);
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.main-nav a:hover {
  color: var(--text);
  background: rgba(245, 166, 35, 0.08);
}

.main-nav a:hover::after {
  transform: scaleX(1);
}

.site-search {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 4px;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.site-search:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(245, 166, 35, 0.15);
}

.site-search input {
  border: none;
  background: transparent;
  padding: 6px 12px;
  font-size: 0.88rem;
  color: var(--text);
  outline: none;
  width: 150px;
  transition: width var(--transition);
}

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

.site-search input:focus {
  width: 200px;
}

.site-search button {
  border: none;
  cursor: pointer;
  padding: 7px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 999px;
  transition: transform var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}

.site-search button:hover {
  transform: scale(1.04);
  box-shadow: 0 4px 14px rgba(245, 166, 35, 0.4);
}

#theme-toggle,
#menu-toggle {
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  color: var(--text-secondary);
  cursor: pointer;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 999px;
  transition: all var(--transition);
  flex-shrink: 0;
  white-space: nowrap;
}

#theme-toggle:hover,
#menu-toggle:hover {
  color: var(--primary-dark);
  border-color: var(--primary);
  background: rgba(245, 166, 35, 0.1);
  transform: translateY(-1px);
}

#menu-toggle {
  display: none;
}

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

section {
  margin: 56px 0;
  scroll-margin-top: calc(var(--header-height) + 16px);
}

section > h2 {
  position: relative;
  padding-left: 20px;
  margin-bottom: 24px;
}

section > h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 1.1em;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--primary), var(--secondary));
  box-shadow: 0 0 12px rgba(245, 166, 35, 0.5);
}

section > article {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 4vw, 40px);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}

section > article:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

section article h3 {
  margin-top: 28px;
  margin-bottom: 10px;
  color: var(--text);
}

section article h3:first-child {
  margin-top: 0;
}

section article h4 {
  margin-top: 18px;
  margin-bottom: 8px;
  color: var(--primary-dark);
}

section article p {
  margin-bottom: 12px;
}

section article p:last-child {
  margin-bottom: 0;
}

.hero {
  margin-top: 40px;
  position: relative;
}

.banner-carousel {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  min-height: 420px;
  background: linear-gradient(135deg, #1a1d29 0%, #2d2145 45%, #7c5cff 100%);
  box-shadow: var(--shadow-lg);
  isolation: isolate;
}

.banner-carousel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(245, 166, 35, 0.45), transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(0, 212, 170, 0.35), transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(124, 92, 255, 0.3), transparent 60%);
  z-index: -1;
  animation: auroraShift 14s ease-in-out infinite alternate;
}

@keyframes auroraShift {
  0% { transform: scale(1) translate(0, 0); opacity: 1; }
  50% { transform: scale(1.15) translate(2%, -2%); opacity: 0.85; }
  100% { transform: scale(1.05) translate(-2%, 2%); opacity: 1; }
}

.banner-slide {
  display: none;
  padding: clamp(28px, 6vw, 72px);
  color: #fff;
  position: relative;
  z-index: 2;
  animation: fadeSlideIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

.banner-slide h1,
.banner-slide h2 {
  color: #fff;
  margin-bottom: 16px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
  max-width: 820px;
}

.banner-slide p {
  color: rgba(255, 255, 255, 0.88);
  max-width: 760px;
  font-size: clamp(0.95rem, 1.6vw, 1.08rem);
  margin-bottom: 28px;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.25);
}

.cta {
  display: inline-block;
  padding: 13px 32px;
  font-size: 0.98rem;
  font-weight: 700;
  color: #1a1d29;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(245, 166, 35, 0.45);
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}

.cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.55) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.7s ease;
}

.cta:hover {
  color: #1a1d29;
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 32px rgba(245, 166, 35, 0.6);
}

.cta:hover::after {
  transform: translateX(120%);
}

.banner-controls {
  position: absolute;
  right: clamp(16px, 4vw, 40px);
  bottom: clamp(16px, 4vw, 32px);
  display: flex;
  gap: 10px;
  z-index: 3;
}

.banner-controls button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  font-size: 0;
  cursor: pointer;
  position: relative;
  transition: all var(--transition);
}

.banner-controls button::before {
  font-size: 1rem;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.banner-controls button[aria-label="上一张"]::before {
  content: "‹";
  font-size: 1.6rem;
  line-height: 1;
}

.banner-controls button[aria-label="下一张"]::before {
  content: "›";
  font-size: 1.6rem;
  line-height: 1;
}

.banner-controls button:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: scale(1.1);
  border-color: rgba(255, 255, 255, 0.6);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.stat-item {
  background: var(--glass-bg);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 24px 16px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
  overflow: hidden;
}

.stat-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
  opacity: 0;
  transition: opacity var(--transition);
}

.stat-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.stat-item:hover::before {
  opacity: 1;
}

.stat-number {
  display: block;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  display: block;
  margin-top: 6px;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.breadcrumb {
  margin: 32px 0 0;
}

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

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

.breadcrumb li + li::before {
  content: "/";
  color: var(--text-muted);
  opacity: 0.5;
}

.breadcrumb a {
  color: var(--text-secondary);
  padding: 2px 4px;
  border-radius: 6px;
  transition: all var(--transition);
}

.breadcrumb a:hover {
  color: var(--primary-dark);
  background: rgba(245, 166, 35, 0.1);
}

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

#product {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

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

#product > article {
  grid-column: 1 / -1;
}

#product > aside {
  background: linear-gradient(135deg, rgba(245, 166, 35, 0.08), rgba(124, 92, 255, 0.08));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 4vw, 36px);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

#product > aside::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 166, 35, 0.18), transparent 70%);
  pointer-events: none;
}

#product > aside h3 {
  margin-top: 0;
  margin-bottom: 16px;
  position: relative;
}

#product > aside ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

#product > aside li {
  position: relative;
  padding-left: 30px;
  margin: 0;
  font-size: 0.95rem;
  transition: transform var(--transition);
}

#product > aside li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.15);
}

#product > aside li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: calc(0.55em + 5px);
  width: 6px;
  height: 3px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}

#product > aside li:hover {
  transform: translateX(4px);
}

#news > p {
  margin-bottom: 24px;
  max-width: 800px;
}

#news article {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 3.5vw, 32px);
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
  overflow: hidden;
}

#news article::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--primary), var(--secondary));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform var(--transition);
}

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

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

#news article h3 {
  margin-top: 0;
  margin-bottom: 8px;
}

#news article h3 a {
  color: var(--text);
  transition: color var(--transition);
}

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

#news article .meta {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  font-weight: 500;
}

#news article > a:last-child {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary-dark);
  margin-top: 4px;
  transition: gap var(--transition), color var(--transition);
}

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

#news article > a:last-child:hover {
  gap: 10px;
  color: var(--primary);
}

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

#howto article ol,
#howto article ul {
  margin-bottom: 16px;
}

#howto article ol {
  counter-reset: step;
  list-style: none;
  padding-left: 0;
}

#howto article ol li {
  counter-increment: step;
  position: relative;
  padding-left: 44px;
  margin-bottom: 14px;
  min-height: 32px;
  display: flex;
  align-items: center;
}

#howto article ol li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(245, 166, 35, 0.35);
}

#howto article ul li {
  position: relative;
  padding-left: 26px;
  list-style: none;
}

#howto article ul li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 0.7em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--primary);
  transform: rotate(45deg);
}

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

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

#faq details[open] {
  border-color: var(--primary);
  box-shadow: 0 4px 20px rgba(245, 166, 35, 0.12);
  background: var(--bg-elevated);
}

#faq summary {
  cursor: pointer;
  padding: 18px 52px 18px 22px;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  list-style: none;
  position: relative;
  transition: color var(--transition), background var(--transition);
  user-select: none;
}

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

#faq summary::after {
  content: "";
  position: absolute;
  right: 22px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--primary-dark);
  border-bottom: 2px solid var(--primary-dark);
  transform: translateY(-70%) rotate(45deg);
  transition: transform var(--transition);
}

#faq details[open] summary::after {
  transform: translateY(-30%) rotate(-135deg);
}

#faq summary:hover {
  color: var(--primary-dark);
  background: rgba(245, 166, 35, 0.05);
}

#faq details[open] summary {
  color: var(--primary-dark);
  border-bottom: 1px solid var(--border);
}

#faq details > p {
  padding: 18px 22px;
  margin: 0;
  font-size: 0.95rem;
  animation: fadeSlideIn 0.35s ease;
}

#contact article p {
  line-height: 2;
}

#contact article h3 {
  margin-top: 24px;
}

#sitemap nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin-bottom: 32px;
}

#sitemap nav li {
  margin: 0;
}

#sitemap nav a {
  display: inline-block;
  padding: 8px 18px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: all var(--transition);
}

#sitemap nav a:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(245, 166, 35, 0.35);
}

#sitemap > h2:not(:first-child) {
  margin-top: 36px;
}

.friend-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  list-style: none;
  padding: 0;
}

.friend-links li {
  margin: 0;
}

.friend-links a {
  display: inline-block;
  padding: 8px 18px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  background: var(--bg-alt);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.friend-links a:hover {
  color: var(--primary-dark);
  border-color: var(--primary);
  border-style: solid;
  background: rgba(245, 166, 35, 0.06);
}

#site-footer {
  margin-top: 80px;
  padding: clamp(40px, 6vw, 64px) 24px 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

#site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent), var(--primary));
  background-size: 200% 100%;
  animation: gradientFlow 6s linear infinite;
}

@keyframes gradientFlow {
  0% { background-position: 0% 0; }
  100% { background-position: 200% 0; }
}

#site-footer > div {
  max-width: var(--max-width);
  margin: 0 auto;
}

#site-footer h2 {
  font-size: 1.1rem;
  margin-bottom: 14px;
  color: var(--text);
  position: relative;
  padding-bottom: 10px;
}

#site-footer h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 32px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}

#site-footer h3 {
  font-size: 0.95rem;
  margin: 16px 0 6px;
  color: var(--text);
}

#site-footer p {
  font-size: 0.9rem;
  line-height: 1.8;
  margin-bottom: 10px;
}

.footer-about,
.footer-links,
.footer-legal {
  padding-bottom: 32px;
}

.footer-about {
  max-width: 900px;
}

.footer-links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin: 0;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  position: relative;
  transition: color var(--transition);
}

.footer-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition);
}

.footer-links a:hover {
  color: var(--primary-dark);
}

.footer-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.footer-legal {
  border-top: 1px solid var(--border);
  padding-top: 28px;
}

.footer-legal p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-copyright {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  text-align: center;
}

.footer-copyright p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.footer-copyright p:last-child {
  margin-bottom: 0;
}

#back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 999;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-size: 0;
  box-shadow: 0 8px 24px rgba(245, 166, 35, 0.45);
  transition: transform var(--transition), box-shadow var(--transition), opacity var(--transition);
  opacity: 0;
  visibility: hidden;
}

#back-to-top::before {
  content: "↑";
  font-size: 1.4rem;
  font-weight: 700;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

#back-to-top:hover {
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 12px 32px rgba(245, 166, 35, 0.6);
}

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

@media (prefers-reduced-motion: no-preference) {
  section,
  .hero,
  #news article,
  .stat-item {
    animation: revealUp 0.7s cubic-bezier(0.4, 0, 0.2, 1) both;
  }

  section:nth-of-type(2) { animation-delay: 0.05s; }
  section:nth-of-type(3) { animation-delay: 0.1s; }
  section:nth-of-type(4) { animation-delay: 0.15s; }
  section:nth-of-type(5) { animation-delay: 0.2s; }

  @keyframes revealUp {
    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;
  }
}

@media (max-width: 1080px) {
  .header-top {
    flex-wrap: wrap;
    height: auto;
    padding: 12px 20px;
    gap: 12px;
  }

  .main-nav {
    order: 3;
    width: 100%;
    flex-basis: 100%;
  }

  .main-nav ul {
    gap: 2px;
  }

  .site-search input {
    width: 120px;
  }

  .site-search input:focus {
    width: 160px;
  }

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

@media (max-width: 860px) {
  :root {
    --header-height: 64px;
  }

  .header-top {
    gap: 10px;
  }

  .site-search {
    order: 2;
    flex: 1;
    min-width: 0;
  }

  .site-search input {
    width: 100%;
    min-width: 0;
  }

  .site-search input:focus {
    width: 100%;
  }

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

  #menu-toggle {
    display: inline-block;
  }

  .main-nav {
    display: none;
  }

  .main-nav.open,
  #site-header.nav-open .main-nav {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 8px 0;
    overflow: visible;
  }

  .main-nav a {
    padding: 12px 16px;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
  }

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

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

  .banner-carousel {
    min-height: 380px;
  }

  .banner-controls {
    bottom: 16px;
    right: 16px;
  }

  .banner-controls button {
    width: 38px;
    height: 38px;
  }

  main {
    padding: 0 16px;
  }

  section {
    margin: 40px 0;
  }

  #product {
    grid-template-columns: 1fr;
  }

  .footer-copyright p {
    font-size: 0.78rem;
  }

  #back-to-top {
    width: 46px;
    height: 46px;
    right: 16px;
    bottom: 16px;
  }
}

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

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

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

  .banner-carousel {
    min-height: 340px;
    border-radius: var(--radius-lg);
  }

  .banner-slide {
    padding: 24px 20px 72px;
  }

  .banner-slide p {
    font-size: 0.92rem;
  }

  .cta {
    padding: 11px 24px;
    font-size: 0.9rem;
  }

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

  .stat-item {
    padding: 18px 12px;
  }

  section > article {
    padding: 18px;
    border-radius: var(--radius-md);
  }

  #news article {
    padding: 18px;
  }

  #faq summary {
    padding: 16px 44px 16px 18px;
    font-size: 0.95rem;
  }

  #faq details > p {
    padding: 16px 18px;
    font-size: 0.9rem;
  }

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

  #howto article ol li::before {
    width: 28px;
    height: 28px;
    font-size: 0.82rem;
  }

  #sitemap nav ul,
  .friend-links {
    gap: 8px;
  }

  #sitemap nav a,
  .friend-links a {
    padding: 7px 14px;
    font-size: 0.82rem;
  }

  .footer-links ul {
    gap: 8px 18px;
  }

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

@media (max-width: 380px) {
  .hero-stats {
    grid-template-columns: 1fr;
  }

  .site-search input {
    font-size: 0.82rem;
  }

  .site-search button {
    padding: 7px 12px;
    font-size: 0.8rem;
  }
}

::selection {
  background: rgba(245, 166, 35, 0.35);
  color: var(--text);
}

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

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

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

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

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

@media print {
  #site-header,
  #back-to-top,
  .banner-controls,
  .site-search,
  #theme-toggle,
  #menu-toggle {
    display: none !important;
  }

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

  section {
    break-inside: avoid;
  }
}