:root {
  --brand: #1a73e8;
  --brand-2: #0f9d58;
  --brand-3: #db4437;
  --brand-4: #7b5cff;
  --bg: #f4f7fc;
  --bg-soft: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.72);
  --bg-glass-strong: rgba(255, 255, 255, 0.88);
  --text: #16223a;
  --text-soft: #4a5876;
  --text-mute: #7b87a3;
  --border: rgba(22, 34, 58, 0.1);
  --border-strong: rgba(22, 34, 58, 0.18);
  --shadow-sm: 0 2px 8px rgba(22, 34, 58, 0.06);
  --shadow-md: 0 10px 30px rgba(22, 34, 58, 0.1);
  --shadow-lg: 0 24px 60px rgba(22, 34, 58, 0.16);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --header-h: 72px;
  --maxw: 1200px;
  --grad-hero: linear-gradient(135deg, #1a73e8 0%, #7b5cff 45%, #db4437 100%);
  --grad-soft: linear-gradient(135deg, rgba(26, 115, 232, 0.12), rgba(123, 92, 255, 0.12));
  --grad-card: linear-gradient(160deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.55));
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

html[data-theme="dark"] {
  --bg: #0b1120;
  --bg-soft: #121a2e;
  --bg-glass: rgba(18, 26, 46, 0.66);
  --bg-glass-strong: rgba(18, 26, 46, 0.86);
  --text: #e8edf7;
  --text-soft: #b3bfd6;
  --text-mute: #8492ad;
  --border: rgba(232, 237, 247, 0.12);
  --border-strong: rgba(232, 237, 247, 0.22);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.55);
  --grad-card: linear-gradient(160deg, rgba(24, 34, 58, 0.92), rgba(18, 26, 46, 0.6));
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) {
    --bg: #0b1120;
    --bg-soft: #121a2e;
    --bg-glass: rgba(18, 26, 46, 0.66);
    --bg-glass-strong: rgba(18, 26, 46, 0.86);
    --text: #e8edf7;
    --text-soft: #b3bfd6;
    --text-mute: #8492ad;
    --border: rgba(232, 237, 247, 0.12);
    --border-strong: rgba(232, 237, 247, 0.22);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.55);
    --grad-card: linear-gradient(160deg, rgba(24, 34, 58, 0.92), rgba(18, 26, 46, 0.6));
  }
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(1100px 520px at 8% -8%, rgba(26, 115, 232, 0.16), transparent 62%),
    radial-gradient(900px 480px at 96% 4%, rgba(123, 92, 255, 0.14), transparent 60%),
    radial-gradient(800px 520px at 50% 100%, rgba(15, 157, 88, 0.1), transparent 65%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: var(--brand);
  text-decoration: none;
  transition: color 0.25s var(--ease), opacity 0.25s var(--ease);
}

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

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

h1 { font-size: clamp(1.65rem, 3.6vw, 2.5rem); }
h2 { font-size: clamp(1.35rem, 2.6vw, 1.9rem); }
h3 { font-size: clamp(1.1rem, 1.9vw, 1.32rem); }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1em; color: var(--text-soft); }

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

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

time { color: var(--text-mute); font-variant-numeric: tabular-nums; }

:focus-visible {
  outline: 3px solid rgba(26, 115, 232, 0.55);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection {
  background: rgba(26, 115, 232, 0.22);
  color: var(--text);
}

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

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 2000;
  padding: 10px 18px;
  background: var(--brand);
  color: #fff;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-weight: 600;
  box-shadow: var(--shadow-md);
  transition: top 0.25s var(--ease);
}

.skip-link:focus {
  top: 0;
  color: #fff;
}

/* ============ Header ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-glass);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-md);
  background: var(--bg-glass-strong);
}

.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  min-height: var(--header-h);
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand { flex: 0 0 auto; }

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  border-radius: var(--radius-sm);
}

.brand-logo {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(26, 115, 232, 0.35);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.brand-link:hover .brand-logo {
  transform: rotate(-6deg) scale(1.06);
  box-shadow: 0 10px 26px rgba(26, 115, 232, 0.5);
}

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

.brand-sub {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-mute);
  padding: 2px 8px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  white-space: nowrap;
}

.main-nav { flex: 1 1 auto; }

.main-nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  display: inline-block;
  padding: 8px 12px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-soft);
  border-radius: 999px;
  position: relative;
  transition: color 0.25s var(--ease), background 0.25s var(--ease), transform 0.25s var(--ease);
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-hero);
  transform: translateX(-50%);
  transition: width 0.3s var(--ease);
}

.main-nav a:hover {
  color: var(--brand);
  background: rgba(26, 115, 232, 0.08);
  transform: translateY(-1px);
}

.main-nav a:hover::after { width: 55%; }

.header-tools {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

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

.site-search:focus-within {
  border-color: rgba(26, 115, 232, 0.6);
  box-shadow: 0 0 0 4px rgba(26, 115, 232, 0.14);
}

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

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

.site-search button,
.theme-toggle,
.menu-toggle {
  border: 0;
  cursor: pointer;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--grad-hero);
  background-size: 160% 160%;
  transition: background-position 0.45s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  white-space: nowrap;
}

.site-search button:hover,
.theme-toggle:hover,
.menu-toggle:hover {
  background-position: 100% 50%;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(26, 115, 232, 0.3);
}

.theme-toggle {
  color: var(--brand);
  background: rgba(26, 115, 232, 0.1);
  border: 1px solid rgba(26, 115, 232, 0.28);
}

.theme-toggle:hover {
  color: #fff;
  background: var(--grad-hero);
  background-size: 160% 160%;
}

.menu-toggle { display: none; }

/* ============ Mobile menu ============ */
.mobile-menu {
  border-top: 1px solid var(--border);
  background: var(--bg-glass-strong);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  padding: 8px 20px 16px;
  animation: slideDown 0.3s var(--ease);
}

.mobile-menu[hidden] { display: none; }

.mobile-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}

.mobile-menu a {
  display: block;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-soft);
  font-weight: 500;
  background: transparent;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}

.mobile-menu a:hover {
  color: var(--brand);
  background: rgba(26, 115, 232, 0.1);
  transform: translateX(4px);
}

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

/* ============ Breadcrumb ============ */
.breadcrumb {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 16px 20px 0;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.85rem;
  color: var(--text-mute);
}

.breadcrumb li { display: inline-flex; align-items: center; gap: 8px; }

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

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

.breadcrumb a:hover { color: var(--brand); background: rgba(26, 115, 232, 0.08); }

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

/* ============ Main layout ============ */
main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px 40px;
}

.section {
  margin-top: clamp(40px, 6vw, 72px);
  padding: clamp(22px, 3.4vw, 40px);
  background: var(--grad-card);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.4s var(--ease), transform 0.4s var(--ease), border-color 0.4s var(--ease);
}

.section::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--grad-hero);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

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

.section:hover::before { opacity: 1; }

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

.section > h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.18em;
  bottom: 0.18em;
  width: 6px;
  border-radius: 999px;
  background: var(--grad-hero);
  box-shadow: 0 0 16px rgba(26, 115, 232, 0.5);
}

.section h3 {
  margin-top: 1.6em;
  padding-bottom: 0.4em;
  border-bottom: 1px dashed var(--border);
}

.section h3:first-of-type { margin-top: 1.1em; }

.section p { max-width: 78ch; }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}

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

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ============ Hero ============ */
.hero {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(20px, 3vw, 40px);
  align-items: stretch;
}

.hero-banner {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  min-height: 320px;
  box-shadow: var(--shadow-lg);
  background: var(--grad-hero);
  isolation: isolate;
}

.hero-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, 0.28) 100%);
  pointer-events: none;
  z-index: 2;
}

.banner-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 0.8s var(--ease), transform 1.2s var(--ease);
  z-index: 1;
}

.banner-slide.is-active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}

.banner-slide[hidden] { display: block; }

.banner-svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner-controls {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 3;
  display: flex;
  gap: 8px;
}

.banner-prev,
.banner-next {
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: #fff;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease), border-color 0.25s var(--ease);
}

.banner-prev:hover,
.banner-next:hover {
  background: rgba(255, 255, 255, 0.34);
  border-color: rgba(255, 255, 255, 0.7);
  transform: translateY(-2px);
}

.hero-text {
  padding: clamp(20px, 3vw, 34px);
  border-radius: var(--radius-xl);
  background: var(--grad-card);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-text h1 {
  background: linear-gradient(120deg, var(--text) 20%, var(--brand) 55%, var(--brand-4) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero-lead {
  font-size: 0.98rem;
  color: var(--text-soft);
  line-height: 1.85;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 8px 0 14px;
}

.stat {
  text-align: center;
  padding: 12px 6px;
  border-radius: var(--radius-md);
  background: rgba(26, 115, 232, 0.07);
  border: 1px solid rgba(26, 115, 232, 0.16);
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.stat:hover {
  transform: translateY(-4px);
  background: rgba(26, 115, 232, 0.13);
  box-shadow: 0 10px 24px rgba(26, 115, 232, 0.2);
}

.stat-num {
  display: block;
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
}

.stat-label {
  display: block;
  font-size: 0.72rem;
  color: var(--text-mute);
  line-height: 1.4;
  margin-top: 2px;
}

.hero-update {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-mute);
}

/* ============ Products ============ */
.products h3 {
  position: relative;
  padding-left: 14px;
  border-bottom: 0;
}

.products h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--grad-hero);
  box-shadow: 0 0 0 4px rgba(26, 115, 232, 0.14);
}

/* ============ Cases / blockquote ============ */
.cases blockquote {
  margin: 16px 0;
  padding: 16px 20px 16px 24px;
  border-left: 4px solid var(--brand);
  border-radius: var(--radius-md);
  background: var(--grad-soft);
  position: relative;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

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

.cases blockquote p {
  margin: 0;
  font-style: italic;
  color: var(--text-soft);
}

/* ============ News ============ */
.news-item {
  padding: 18px 20px;
  margin: 14px 0;
  border-radius: var(--radius-md);
  background: var(--bg-glass);
  border: 1px solid var(--border);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.news-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(26, 115, 232, 0.35);
}

.news-item h3 { margin: 0 0 6px; font-size: 1.08rem; }
.news-item p { margin: 0; font-size: 0.94rem; }
.news-item time { font-weight: 600; color: var(--brand); }

/* ============ Article cards ============ */
.articles {
  display: grid;
  gap: 18px;
}

.article-card {
  padding: 22px;
  border-radius: var(--radius-lg);
  background: var(--bg-glass-strong);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

.article-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--grad-hero);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.4s var(--ease);
}

.article-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(26, 115, 232, 0.4);
}

.article-card:hover::before { transform: scaleY(1); }

.article-card h3 { margin: 0 0 6px; font-size: 1.12rem; }

.article-card h3 a {
  color: var(--text);
  background-image: linear-gradient(var(--brand), var(--brand));
  background-repeat: no-repeat;
  background-size: 0 2px;
  background-position: 0 100%;
  transition: background-size 0.35s var(--ease), color 0.25s var(--ease);
}

.article-card h3 a:hover {
  color: var(--brand);
  background-size: 100% 2px;
}

.article-card .meta {
  font-size: 0.8rem;
  color: var(--text-mute);
  margin: 0 0 10px;
}

.article-card .summary {
  font-size: 0.94rem;
  color: var(--text-soft);
  margin: 0 0 12px;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--brand);
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(26, 115, 232, 0.3);
  background: rgba(26, 115, 232, 0.06);
  transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.read-more::after {
  content: "→";
  transition: transform 0.25s var(--ease);
}

.read-more:hover {
  background: var(--grad-hero);
  color: #fff;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(26, 115, 232, 0.3);
}

.read-more:hover::after { transform: translateX(3px); }

/* ============ FAQ ============ */
.faq-item {
  margin: 12px 0;
  border-radius: var(--radius-md);
  background: var(--bg-glass);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.faq-item:hover {
  border-color: rgba(26, 115, 232, 0.32);
  box-shadow: var(--shadow-sm);
}

.faq-item[open] {
  background: var(--bg-glass-strong);
  border-color: rgba(26, 115, 232, 0.42);
  box-shadow: var(--shadow-md);
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 52px 16px 20px;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  position: relative;
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
  user-select: none;
}

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

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  line-height: 24px;
  text-align: center;
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--brand);
  border-radius: 50%;
  border: 1px solid rgba(26, 115, 232, 0.32);
  background: rgba(26, 115, 232, 0.08);
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
}

.faq-item[open] summary::after {
  content: "−";
  transform: translateY(-50%) rotate(180deg);
  background: var(--grad-hero);
  color: #fff;
  border-color: transparent;
}

.faq-item summary:hover { color: var(--brand); }

.faq-item > p {
  margin: 0;
  padding: 0 20px 18px;
  font-size: 0.94rem;
  color: var(--text-soft);
  animation: fadeIn 0.35s var(--ease);
}

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

/* ============ HowTo ============ */
.howto h4 {
  margin-top: 1.4em;
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 14px;
  border-radius: 999px;
  background: rgba(26, 115, 232, 0.08);
  border: 1px solid rgba(26, 115, 232, 0.2);
  font-size: 0.95rem;
}

.howto h4::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.2);
}

/* ============ Contact ============ */
.contact-list {
  list-style: none;
  margin: 0 0 1.2em;
  padding: 0;
  display: grid;
  gap: 10px;
}

.contact-list li {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: var(--bg-glass);
  border: 1px solid var(--border);
  font-size: 0.94rem;
  color: var(--text-soft);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.contact-list li:hover {
  transform: translateX(4px);
  border-color: rgba(26, 115, 232, 0.35);
  box-shadow: var(--shadow-sm);
}

.contact-list a {
  font-weight: 600;
  word-break: break-all;
}

/* ============ Sitemap ============ */
.sitemap-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}

.sitemap-list a {
  display: block;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  background: var(--bg-glass);
  border: 1px solid var(--border);
  color: var(--text-soft);
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}

.sitemap-list a:hover {
  transform: translateY(-3px);
  background: var(--grad-hero);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 10px 24px rgba(26, 115, 232, 0.3);
}

/* ============ Footer ============ */
.site-footer {
  margin-top: 60px;
  background: linear-gradient(180deg, rgba(26, 115, 232, 0.07), rgba(123, 92, 255, 0.06));
  border-top: 1px solid var(--border);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 40px 20px 24px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 1.3fr;
  gap: 32px;
}

.footer-brand .footer-name {
  font-size: 1.3rem;
  font-weight: 800;
  background: var(--grad-hero);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  margin: 0 0 8px;
}

.footer-brand p { font-size: 0.9rem; color: var(--text-soft); margin: 0 0 6px; }

.footer-links h2,
.footer-legal h2 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 12px;
  letter-spacing: 0.02em;
}

.footer-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.footer-links a {
  color: var(--text-soft);
  font-size: 0.9rem;
  display: inline-block;
  padding: 2px 0;
  transition: color 0.25s var(--ease), transform 0.25s var(--ease);
}

.footer-links a:hover {
  color: var(--brand);
  transform: translateX(4px);
}

.footer-legal p {
  font-size: 0.84rem;
  color: var(--text-mute);
  line-height: 1.8;
  margin: 0 0 8px;
}

.footer-legal a { color: var(--text-soft); }
.footer-legal a:hover { color: var(--brand); }

.footer-meta {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 16px 20px 28px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-mute);
  text-align: center;
}

/* ============ Back to top ============ */
.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 900;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--grad-hero);
  background-size: 160% 160%;
  box-shadow: 0 10px 28px rgba(26, 115, 232, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.94);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s var(--ease), background-position 0.45s var(--ease);
}

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

.back-to-top:hover {
  background-position: 100% 50%;
  transform: translateY(-3px) scale(1.03);
}

/* ============ Responsive ============ */
@media (max-width: 1080px) {
  .header-inner { gap: 12px; }
  .main-nav a { padding: 8px 9px; font-size: 0.88rem; }
  .site-search input { width: 120px; }
  .hero { grid-template-columns: 1fr; }
  .hero-banner { min-height: 260px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-legal { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .main-nav { display: none; }
  .menu-toggle { display: inline-block; }
  .site-search { display: none; }
  .header-inner { justify-content: space-between; }
  .brand-sub { display: none; }
  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-banner { min-height: 220px; border-radius: var(--radius-lg); }
  .hero-text { border-radius: var(--radius-lg); }
  .section { border-radius: var(--radius-md); }
}

@media (max-width: 600px) {
  body { font-size: 15.5px; }
  .header-inner { padding: 8px 14px; min-height: 64px; }
  .brand-logo { width: 34px; height: 34px; }
  .brand-name { font-size: 1rem; }
  .theme-toggle, .menu-toggle { padding: 7px 12px; font-size: 0.8rem; }
  .breadcrumb { padding: 12px 14px 0; }
  main { padding: 0 14px 28px; }
  .hero { margin-top: 14px; gap: 16px; }
  .hero-banner { min-height: 180px; }
  .banner-controls { right: 10px; bottom: 10px; }
  .banner-prev, .banner-next { padding: 6px 11px; font-size: 0.76rem; }
  .hero-text { padding: 18px; }
  .hero-lead { font-size: 0.92rem; }
  .section { padding: 18px 16px; margin-top: 36px; }
  .section > h2 { padding-left: 14px; }
  .section > h2::before { width: 5px; }
  .article-card { padding: 16px; }
  .faq-item summary { padding: 14px 46px 14px 16px; font-size: 0.95rem; }
  .faq-item > p { padding: 0 16px 14px; }
  .sitemap-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; padding: 28px 14px 18px; }
  .footer-meta { padding: 14px 14px 22px; }
  .back-to-top { right: 14px; bottom: 14px; padding: 10px 15px; font-size: 0.78rem; }
  .contact-list li { padding: 10px 13px; font-size: 0.9rem; }
  .news-item { padding: 14px 15px; }
  .stat-num { font-size: 1.1rem; }
}

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

/* ============ Print ============ */
@media print {
  .site-header,
  .mobile-menu,
  .banner-controls,
  .back-to-top,
  .theme-toggle,
  .menu-toggle,
  .site-search,
  .site-footer {
    display: none !important;
  }
  body { background: #fff; color: #000; }
  .section { box-shadow: none; border: 1px solid #ddd; break-inside: avoid; }
  a { color: #000; text-decoration: underline; }
}