:root {
  --brand: #7B4DFF;
  --brand-2: #9C7BFF;
  --brand-3: #FFB84D;
  --accent: #FF7A9A;
  --bg: #f6f4ff;
  --bg-soft: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.62);
  --bg-glass-strong: rgba(255, 255, 255, 0.82);
  --text: #211a3a;
  --text-soft: #5a5273;
  --text-mute: #8b84a3;
  --border: rgba(123, 77, 255, 0.14);
  --border-strong: rgba(123, 77, 255, 0.28);
  --shadow-sm: 0 4px 16px rgba(60, 32, 140, 0.08);
  --shadow-md: 0 12px 32px rgba(60, 32, 140, 0.12);
  --shadow-lg: 0 24px 60px rgba(60, 32, 140, 0.18);
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 26px;
  --maxw: 1180px;
  --header-h: 68px;
  --grad-hero: linear-gradient(135deg, #7B4DFF 0%, #9C7BFF 42%, #FF7A9A 100%);
  --grad-brand: linear-gradient(135deg, #7B4DFF 0%, #9C7BFF 100%);
  --grad-accent: linear-gradient(135deg, #FF7A9A 0%, #FFB84D 100%);
  --grad-soft: linear-gradient(135deg, rgba(123,77,255,0.10), rgba(255,122,154,0.10));
}

[data-theme="dark"],
body.dark-mode {
  --bg: #0f0b1e;
  --bg-soft: #17122b;
  --bg-glass: rgba(30, 22, 56, 0.62);
  --bg-glass-strong: rgba(30, 22, 56, 0.86);
  --text: #f2eeff;
  --text-soft: #c3bce0;
  --text-mute: #918aad;
  --border: rgba(156, 123, 255, 0.22);
  --border-strong: rgba(156, 123, 255, 0.4);
  --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.6);
  --grad-soft: linear-gradient(135deg, rgba(123,77,255,0.22), rgba(255,122,154,0.18));
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f0b1e;
    --bg-soft: #17122b;
    --bg-glass: rgba(30, 22, 56, 0.62);
    --bg-glass-strong: rgba(30, 22, 56, 0.86);
    --text: #f2eeff;
    --text-soft: #c3bce0;
    --text-mute: #918aad;
    --border: rgba(156, 123, 255, 0.22);
    --border-strong: rgba(156, 123, 255, 0.4);
    --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.6);
    --grad-soft: linear-gradient(135deg, rgba(123,77,255,0.22), rgba(255,122,154,0.18));
  }
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(circle at 12% 8%, rgba(123, 77, 255, 0.16), transparent 42%),
    radial-gradient(circle at 88% 4%, rgba(255, 122, 154, 0.14), transparent 40%),
    radial-gradient(circle at 50% 100%, rgba(255, 184, 77, 0.10), transparent 46%);
  background-attachment: fixed;
  transition: background-color 0.35s ease, color 0.35s ease;
  overflow-x: hidden;
}

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

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

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

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

h2 {
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  position: relative;
  padding-left: 18px;
}

h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.18em;
  bottom: 0.18em;
  width: 6px;
  border-radius: 6px;
  background: var(--grad-brand);
}

h3 {
  font-size: clamp(1.12rem, 1.8vw, 1.32rem);
  margin-top: 1.6em;
}

h4 {
  font-size: 1.05rem;
  color: var(--brand);
}

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

ul, ol {
  margin: 0 0 1em;
  padding-left: 1.3em;
  color: var(--text-soft);
}

li {
  margin-bottom: 0.45em;
}

strong {
  color: var(--text);
}

blockquote {
  margin: 1.4em 0;
  padding: 18px 22px;
  border-left: 4px solid var(--brand);
  background: var(--grad-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

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

blockquote footer {
  font-size: 0.88rem;
  color: var(--text-mute);
}

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

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

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

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 800;
  font-size: 1.08rem;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

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

.brand-logo {
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(123, 77, 255, 0.35);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.brand:hover .brand-logo {
  transform: rotate(-8deg) scale(1.06);
}

.main-nav {
  margin-left: auto;
}

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

.main-nav li {
  margin: 0;
}

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

.main-nav a:hover,
.main-nav a:focus-visible {
  background: var(--grad-soft);
  color: var(--brand);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: var(--bg-glass);
  color: var(--text);
  font-size: 1.3rem;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}

.menu-toggle:hover {
  background: var(--grad-soft);
  transform: scale(1.05);
}

/* ============ Hero ============ */
.hero {
  position: relative;
  max-width: var(--maxw);
  margin: 28px auto 0;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 28px;
  align-items: stretch;
}

.hero-inner {
  position: relative;
  padding: clamp(24px, 4vw, 44px);
  border-radius: var(--radius-lg);
  background: var(--grad-hero);
  color: #fff;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  isolation: isolate;
}

.hero-inner::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto auto;
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.35), transparent 68%);
  border-radius: 50%;
  z-index: -1;
  animation: floatBlob 12s ease-in-out infinite;
}

.hero-inner::after {
  content: "";
  position: absolute;
  inset: auto auto -50% -20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 184, 77, 0.4), transparent 68%);
  border-radius: 50%;
  z-index: -1;
  animation: floatBlob 16s ease-in-out infinite reverse;
}

@keyframes floatBlob {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-18px, 22px) scale(1.12); }
}

.hero h1 {
  color: #fff;
  font-size: clamp(1.5rem, 3.4vw, 2.35rem);
  margin-bottom: 0.5em;
  text-shadow: 0 2px 18px rgba(40, 10, 90, 0.28);
}

.hero-lead {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.98rem;
  margin-bottom: 1.4em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 1.6em;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, background 0.3s ease;
  will-change: transform;
}

.btn-primary {
  background: #fff;
  color: var(--brand);
  box-shadow: 0 10px 26px rgba(20, 0, 60, 0.24);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 16px 34px rgba(20, 0, 60, 0.32);
  color: var(--brand);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: rgba(255, 255, 255, 0.28);
  transform: translateY(-3px) scale(1.03);
  color: #fff;
}

.hero-stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.hero-stats li {
  margin: 0;
  padding: 12px 10px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  text-align: center;
  transition: transform 0.3s ease, background 0.3s ease;
}

.hero-stats li:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.24);
}

.hero-stats .stat-num {
  display: block;
  font-size: clamp(1.15rem, 2.4vw, 1.6rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}

.hero-stats span {
  display: block;
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.86);
  margin-top: 2px;
}

/* ============ Carousel ============ */
.hero-carousel {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-glass-strong);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  min-height: 260px;
  display: flex;
  flex-direction: column;
}

.hero-carousel .slide {
  display: none;
  flex: 1;
  animation: fadeSlide 0.6s ease;
}

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

.hero-carousel .slide svg {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
}

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

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 12px;
  background: var(--bg-glass-strong);
}

.carousel-dots .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: var(--border-strong);
  cursor: pointer;
  padding: 0;
  transition: transform 0.25s ease, background 0.25s ease, width 0.25s ease;
}

.carousel-dots .dot:hover {
  transform: scale(1.25);
  background: var(--brand-2);
}

.carousel-dots .dot.active {
  width: 30px;
  border-radius: 999px;
  background: var(--grad-brand);
}

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

.breadcrumb ol {
  list-style: none;
  margin: 0;
  padding: 10px 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  font-size: 0.86rem;
  border-radius: 999px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.breadcrumb li {
  margin: 0;
  color: var(--text-mute);
}

.breadcrumb li + li::before {
  content: "›";
  margin-right: 6px;
  color: var(--text-mute);
}

.breadcrumb a {
  color: var(--text-soft);
  font-weight: 600;
}

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

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

/* ============ Sections ============ */
.section {
  max-width: var(--maxw);
  margin: 26px auto 0;
  padding: clamp(22px, 3.4vw, 38px);
  border-radius: var(--radius-lg);
  background: var(--bg-glass);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  transition: box-shadow 0.35s ease, transform 0.35s ease, border-color 0.35s ease;
}

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

.section > h2:first-child {
  margin-top: 0;
}

/* ============ News ============ */
.news-list {
  list-style: none;
  margin: 1.2em 0 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.news-list li {
  margin: 0;
  padding: 20px 22px;
  border-radius: var(--radius);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}

.news-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--grad-brand);
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.news-list li:hover::before {
  opacity: 1;
}

.news-list h3 {
  margin: 0 0 6px;
  font-size: 1.06rem;
}

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

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

.meta {
  font-size: 0.82rem;
  color: var(--text-mute);
  margin: 0 0 8px;
  letter-spacing: 0.01em;
}

/* ============ Article Cards ============ */
#articles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

#articles > h2,
#articles > p {
  grid-column: 1 / -1;
}

.article-card {
  display: flex;
  flex-direction: column;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease, border-color 0.35s ease;
  position: relative;
  overflow: hidden;
}

.article-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grad-soft);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.article-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-strong);
}

.article-card:hover::after {
  opacity: 1;
}

.article-card > * {
  position: relative;
  z-index: 1;
}

.article-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

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

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

.article-card p {
  font-size: 0.92rem;
  flex: 1;
}

.read-more {
  align-self: flex-start;
  margin-top: 6px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--grad-soft);
  transition: gap 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

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

.read-more:hover {
  gap: 8px;
  transform: translateX(2px);
}

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

/* ============ HowTo ============ */
#howto ol {
  counter-reset: step;
  list-style: none;
  padding: 0;
  display: grid;
  gap: 12px;
}

#howto ol li {
  counter-increment: step;
  position: relative;
  padding: 14px 18px 14px 58px;
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

#howto ol li:hover {
  transform: translateX(4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

#howto ol li::before {
  content: counter(step);
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--grad-brand);
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
  box-shadow: 0 4px 12px rgba(123, 77, 255, 0.4);
}

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

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

.faq-item h3 {
  margin: 0;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}

.faq-question::after {
  content: "+";
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--grad-soft);
  color: var(--brand);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s ease, color 0.3s ease;
}

.faq-question:hover {
  background: var(--grad-soft);
  color: var(--brand);
}

.faq-question[aria-expanded="true"] {
  color: var(--brand);
}

.faq-question[aria-expanded="true"]::after {
  content: "−";
  transform: rotate(180deg);
  background: var(--grad-brand);
  color: #fff;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s ease, padding 0.35s ease, opacity 0.35s ease;
  opacity: 0;
  padding: 0 20px;
}

.faq-item.open .faq-answer,
.faq-question[aria-expanded="true"] + .faq-answer {
  max-height: 640px;
  opacity: 1;
  padding: 0 20px 18px;
}

.faq-answer p {
  margin: 0;
  font-size: 0.94rem;
}

/* ============ Contact / Sitemap / Legal ============ */
.contact-list,
.sitemap-list,
.friend-links {
  list-style: none;
  padding: 0;
  margin: 1.2em 0;
}

.contact-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.contact-list li {
  margin: 0;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  font-size: 0.92rem;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.contact-list li:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
}

.contact-list strong {
  color: var(--brand);
  margin-right: 4px;
}

.sitemap-list,
.friend-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sitemap-list li,
.friend-links li {
  margin: 0;
}

.sitemap-list a,
.friend-links a {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--text-soft);
  font-size: 0.88rem;
  font-weight: 600;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.sitemap-list a:hover,
.friend-links a:hover {
  background: var(--grad-brand);
  color: #fff;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(123, 77, 255, 0.32);
}

/* ============ Footer ============ */
.site-footer {
  margin-top: 40px;
  padding: 48px 20px 110px;
  background: linear-gradient(160deg, #1c1338 0%, #2a1a52 55%, #3a1f5c 100%);
  color: rgba(255, 255, 255, 0.78);
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: -60% -10% auto auto;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(123, 77, 255, 0.45), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.footer-inner {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}

.footer-brand p:first-child {
  font-size: 1.15rem;
  color: #fff;
  margin-bottom: 6px;
}

.footer-brand p,
.footer-info p,
.footer-meta p {
  font-size: 0.86rem;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

.footer-brand strong {
  color: #fff;
  font-size: 1.15rem;
  letter-spacing: 0.03em;
}

.footer-info {
  border-left: 1px solid rgba(255, 255, 255, 0.14);
  padding-left: 24px;
}

.footer-meta {
  border-left: 1px solid rgba(255, 255, 255, 0.14);
  padding-left: 24px;
}

.footer-meta p:last-child {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.5);
}

/* ============ Floating Controls ============ */
.back-to-top,
.theme-toggle {
  position: fixed;
  right: 20px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--bg-glass-strong);
  color: var(--text);
  font-size: 1.15rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  z-index: 90;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-md);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s ease, box-shadow 0.3s ease;
}

.back-to-top {
  bottom: 84px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
}

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

.theme-toggle {
  bottom: 20px;
}

.back-to-top:hover,
.theme-toggle:hover {
  transform: translateY(-4px) scale(1.08);
  background: var(--grad-brand);
  color: #fff;
  box-shadow: 0 12px 28px rgba(123, 77, 255, 0.42);
}

.theme-toggle:hover {
  transform: scale(1.1) rotate(18deg);
}

/* ============ Search Box ============ */
.search-box {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 6px 6px 14px;
  border-radius: 999px;
  background: var(--bg-glass-strong);
  border: 1px solid var(--border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-md);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.search-box:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(123, 77, 255, 0.18), var(--shadow-md);
}

.search-box label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.search-box input {
  border: none;
  background: transparent;
  color: var(--text);
  font-family: inherit;
  font-size: 0.88rem;
  padding: 8px 4px;
  width: 190px;
  outline: none;
}

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

.search-box button {
  border: none;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--grad-brand);
  color: #fff;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.search-box button:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 18px rgba(123, 77, 255, 0.4);
}

/* ============ Scroll Reveal ============ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

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

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

.hero-inner,
.hero-carousel,
.breadcrumb {
  animation: fadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-carousel { animation-delay: 0.12s; }
.breadcrumb { animation-delay: 0.22s; }

/* ============ Responsive ============ */
@media (max-width: 1080px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .hero-carousel {
    min-height: auto;
  }
  .main-nav ul {
    gap: 0;
  }
  .main-nav a {
    padding: 8px 9px;
    font-size: 0.86rem;
  }
}

@media (max-width: 860px) {
  :root {
    --header-h: 60px;
  }
  .menu-toggle {
    display: grid;
    place-items: center;
  }
  .main-nav {
    position: absolute;
    top: calc(var(--header-h) + 1px);
    left: 0;
    right: 0;
    margin: 0;
    padding: 12px 16px 18px;
    background: var(--bg-glass-strong);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease, visibility 0.3s ease;
  }
  .main-nav.open {
    max-height: 420px;
    opacity: 1;
    visibility: visible;
  }
  .main-nav ul {
    flex-direction: column;
    gap: 4px;
  }
  .main-nav a {
    display: block;
    padding: 11px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
  }
  .hero {
    margin-top: 18px;
    padding: 0 14px;
    gap: 18px;
  }
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .section {
    margin: 18px 14px 0;
    border-radius: var(--radius);
  }
  .breadcrumb {
    margin-top: 16px;
    padding: 0 14px;
  }
  #articles {
    grid-template-columns: 1fr;
  }
  .footer-info,
  .footer-meta {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 18px;
  }
  .search-box {
    left: 14px;
    bottom: 14px;
    padding: 5px 5px 5px 12px;
  }
  .search-box input {
    width: 130px;
    font-size: 0.82rem;
  }
  .search-box button {
    padding: 7px 13px;
    font-size: 0.8rem;
  }
  .back-to-top,
  .theme-toggle {
    right: 14px;
    width: 44px;
    height: 44px;
  }
  .back-to-top {
    bottom: 74px;
  }
  .theme-toggle {
    bottom: 14px;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 15px;
  }
  .header-inner {
    padding: 0 14px;
    gap: 10px;
  }
  .brand-text {
    font-size: 0.98rem;
  }
  .hero-inner {
    padding: 22px 18px;
  }
  .hero-actions {
    flex-direction: column;
  }
  .btn-primary,
  .btn-secondary {
    width: 100%;
    padding: 12px 18px;
  }
  .hero-stats {
    gap: 8px;
  }
  .hero-stats li {
    padding: 10px 6px;
  }
  .section {
    padding: 20px 16px;
  }
  h2 {
    padding-left: 14px;
  }
  h2::before {
    width: 5px;
  }
  .faq-question {
    padding: 15px 16px;
    font-size: 0.94rem;
  }
  .faq-item.open .faq-answer,
  .faq-question[aria-expanded="true"] + .faq-answer {
    padding: 0 16px 16px;
  }
  .article-card {
    padding: 18px;
  }
  .contact-list {
    grid-template-columns: 1fr;
  }
  .site-footer {
    padding: 36px 16px 120px;
  }
  .search-box {
    right: 14px;
    left: 14px;
    justify-content: space-between;
  }
  .search-box input {
    flex: 1;
    width: auto;
  }
}

@media (hover: none) {
  .article-card:hover,
  .news-list li:hover,
  .contact-list li:hover,
  .hero-stats li:hover {
    transform: none;
  }
}

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

@media print {
  .site-header,
  .hero-carousel,
  .back-to-top,
  .theme-toggle,
  .search-box,
  .menu-toggle,
  .carousel-dots {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
  .section {
    box-shadow: none;
    border: 1px solid #ddd;
    break-inside: avoid;
  }
  a {
    color: #000;
  }
}