:root {
  --bg: #0e0e1a;
  --bg-alt: #151527;
  --bg-card: rgba(255, 255, 255, 0.05);
  --bg-card-hover: rgba(255, 255, 255, 0.09);
  --glass: rgba(255, 255, 255, 0.07);
  --glass-border: rgba(255, 255, 255, 0.12);
  --text: #e8e8f0;
  --text-muted: #a0a0b8;
  --text-dim: #6e6e88;
  --accent: #ff6b35;
  --accent2: #f7c948;
  --accent3: #ff3d71;
  --gradient: linear-gradient(135deg, #ff6b35 0%, #f7c948 50%, #ff3d71 100%);
  --gradient-soft: linear-gradient(135deg, rgba(255, 107, 53, 0.15) 0%, rgba(247, 201, 72, 0.1) 50%, rgba(255, 61, 113, 0.15) 100%);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  --shadow-hover: 0 16px 48px rgba(255, 107, 53, 0.15);
  --transition: 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f5f3f0;
    --bg-alt: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.75);
    --bg-card-hover: rgba(255, 255, 255, 0.95);
    --glass: rgba(255, 255, 255, 0.6);
    --glass-border: rgba(0, 0, 0, 0.08);
    --text: #1a1a2e;
    --text-muted: #555570;
    --text-dim: #8888a0;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 16px 48px rgba(255, 107, 53, 0.18);
    --gradient-soft: linear-gradient(135deg, rgba(255, 107, 53, 0.08) 0%, rgba(247, 201, 72, 0.06) 50%, rgba(255, 61, 113, 0.08) 100%);
  }
}

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

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

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

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 60% at 10% 0%, rgba(255, 107, 53, 0.12), transparent 60%),
    radial-gradient(ellipse 60% 50% at 90% 20%, rgba(247, 201, 72, 0.08), transparent 55%),
    radial-gradient(ellipse 70% 60% at 50% 100%, rgba(255, 61, 113, 0.08), transparent 60%);
  pointer-events: none;
}

::selection {
  background: rgba(255, 107, 53, 0.35);
  color: var(--text);
}

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

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

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

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

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

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

h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
  position: relative;
  padding-left: 1rem;
}

h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15em;
  bottom: 0.15em;
  width: 4px;
  border-radius: 2px;
  background: var(--gradient);
}

h3 {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  margin-bottom: 0.6rem;
  color: var(--text);
}

h4 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
}

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

ul {
  list-style: none;
}

header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  background: var(--glass);
  border-bottom: 1px solid var(--glass-border);
  transition: background var(--transition), box-shadow var(--transition);
}

header:hover {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.5rem clamp(1rem, 4vw, 3rem);
  font-size: 0.8rem;
  color: var(--text-dim);
  border-bottom: 1px solid var(--glass-border);
  background: var(--bg-alt);
}

.topbar span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar span:first-child {
  color: var(--text-muted);
  font-weight: 500;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  padding: 0.6rem clamp(1rem, 4vw, 3rem);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

nav::-webkit-scrollbar {
  display: none;
}

nav a {
  position: relative;
  padding: 0.45rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: 999px;
  white-space: nowrap;
  transition: color var(--transition), background var(--transition), transform var(--transition);
}

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

nav a:hover {
  color: var(--text);
  background: var(--bg-card);
  transform: translateY(-1px);
}

nav a:hover::after {
  width: 40%;
}

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 3rem);
}

section {
  padding: clamp(2rem, 5vw, 4rem) 0;
  border-bottom: 1px solid var(--glass-border);
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

section:nth-child(1) { animation-delay: 0.05s; }
section:nth-child(2) { animation-delay: 0.1s; }
section:nth-child(3) { animation-delay: 0.15s; }
section:nth-child(4) { animation-delay: 0.2s; }
section:nth-child(5) { animation-delay: 0.25s; }
section:nth-child(6) { animation-delay: 0.3s; }
section:nth-child(7) { animation-delay: 0.35s; }
section:nth-child(8) { animation-delay: 0.4s; }
section:nth-child(9) { animation-delay: 0.45s; }
section:nth-child(10) { animation-delay: 0.5s; }
section:nth-child(11) { animation-delay: 0.55s; }
section:nth-child(12) { animation-delay: 0.6s; }
section:nth-child(13) { animation-delay: 0.65s; }
section:nth-child(14) { animation-delay: 0.7s; }
section:nth-child(15) { animation-delay: 0.75s; }

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

#home {
  padding-top: clamp(2.5rem, 6vw, 5rem);
  border-bottom: none;
}

#home h1 {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1.25rem;
  text-wrap: balance;
}

#home > p {
  font-size: 1.05rem;
  max-width: 820px;
  margin-bottom: 2rem;
  color: var(--text-muted);
}

.banner {
  position: relative;
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1.5rem, 4vw, 3rem);
  border-radius: var(--radius-lg);
  background: var(--gradient);
  overflow: hidden;
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.25), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.15), transparent 45%);
  pointer-events: none;
}

.banner::after {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
  transform: rotate(25deg);
  animation: shimmer 6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes shimmer {
  0%, 100% { transform: translateX(-100%) rotate(25deg); }
  50% { transform: translateX(100%) rotate(25deg); }
}

.banner:hover {
  transform: translateY(-4px) scale(1.005);
  box-shadow: 0 24px 60px rgba(255, 107, 53, 0.35);
}

.banner h2 {
  position: relative;
  color: #fff;
  padding-left: 0;
  margin-bottom: 0.75rem;
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.banner h2::before {
  display: none;
}

.banner p {
  position: relative;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1rem;
  margin-bottom: 0;
  max-width: 640px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.stats p {
  position: relative;
  padding: 1.5rem 1.25rem;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  text-align: center;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  margin: 0;
  transition: transform var(--transition), background var(--transition), border-color var(--transition), box-shadow var(--transition);
  overflow: hidden;
}

.stats p::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient);
  opacity: 0;
  transition: opacity var(--transition);
}

.stats p:hover {
  transform: translateY(-6px);
  background: var(--bg-card-hover);
  border-color: rgba(255, 107, 53, 0.4);
  box-shadow: var(--shadow-hover);
}

.stats p:hover::before {
  opacity: 1;
}

#about h3,
#drama h3,
#featured h3,
#solutions h3,
#cases h3,
#news h3,
#howto h3,
#contact h3 {
  margin-top: 1.5rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--glass-border);
}

#about h3:first-of-type,
#drama h3:first-of-type,
#featured h3:first-of-type,
#solutions h3:first-of-type,
#cases h3:first-of-type,
#news h3:first-of-type,
#howto h3:first-of-type,
#contact h3:first-of-type {
  margin-top: 0;
}

#drama h4 {
  margin-top: 1rem;
  color: var(--accent2);
  font-weight: 600;
}

#drama h4::before {
  content: "▸ ";
  color: var(--accent);
}

#featured,
#solutions {
  position: relative;
}

#featured > h3 + p,
#solutions > h3 + p {
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  background: var(--gradient-soft);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform var(--transition), box-shadow var(--transition);
}

#featured > h3 + p:hover,
#solutions > h3 + p:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow);
}

#cases p {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border-left: 3px solid var(--accent);
  margin-bottom: 0.75rem;
  transition: background var(--transition), transform var(--transition), border-color var(--transition);
}

#cases p:hover {
  background: var(--bg-card-hover);
  transform: translateX(6px);
  border-color: var(--accent2);
}

#cases h3 + p {
  border-left-color: var(--accent2);
}

#cases h3 + p + p {
  border-left-color: var(--accent3);
}

#cases h3 + p + p + p {
  border-left-color: var(--accent);
}

#cases > p {
  font-style: italic;
  color: var(--text-muted);
  border-left: 3px solid var(--accent3);
  background: var(--gradient-soft);
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.6rem;
  transition: transform var(--transition), background var(--transition);
}

#cases > p:hover {
  transform: translateX(6px);
  background: var(--bg-card-hover);
}

#news h3 + p {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 0.35rem;
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
}

#news h3 {
  margin-bottom: 0.4rem;
}

#news h3 + p + p {
  margin-bottom: 1.25rem;
}

#articles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  align-items: start;
}

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

#articles article {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform var(--transition), background var(--transition), border-color var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}

#articles article::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

#articles article:hover {
  transform: translateY(-6px);
  background: var(--bg-card-hover);
  border-color: rgba(255, 107, 53, 0.35);
  box-shadow: var(--shadow-hover);
}

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

#articles article h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  color: var(--text);
  transition: color var(--transition);
}

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

#articles article p {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 0.75rem;
}

#articles article p:first-of-type {
  display: inline-block;
  font-size: 0.75rem;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: var(--gradient-soft);
  border: 1px solid var(--glass-border);
  color: var(--accent2);
  align-self: flex-start;
}

#articles article a {
  margin-top: auto;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: gap var(--transition), color var(--transition);
}

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

#articles article a:hover {
  gap: 0.6rem;
  color: var(--accent2);
}

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

#faq h3 {
  padding: 0.9rem 1.25rem;
  margin-top: 0.75rem;
  margin-bottom: 0;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text);
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  cursor: pointer;
  position: relative;
  padding-right: 2.5rem;
  transition: background var(--transition), color var(--transition);
}

#faq h3::after {
  content: "+";
  position: absolute;
  right: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--accent);
  transition: transform var(--transition), color var(--transition);
}

#faq h3:hover {
  background: var(--bg-card-hover);
  color: var(--accent);
}

#faq h3 + p {
  padding: 0.9rem 1.25rem;
  margin-bottom: 0;
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  border-top: none;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  transition: background var(--transition);
}

#faq h3:hover + p {
  background: rgba(255, 255, 255, 0.04);
}

#howto p {
  padding-left: 1rem;
  border-left: 2px solid var(--glass-border);
  transition: border-color var(--transition), padding-left var(--transition);
}

#howto p:hover {
  border-color: var(--accent);
  padding-left: 1.4rem;
}

#howto h3:last-of-type + p {
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  background: var(--gradient-soft);
  border: 1px solid var(--glass-border);
  border-left: 3px solid var(--accent);
}

#contact p {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.95rem;
}

#contact p:hover {
  color: var(--text);
}

#sitemap ul,
#links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

#sitemap li a,
#links li a {
  display: inline-block;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  transition: color var(--transition), background var(--transition), border-color var(--transition), transform var(--transition);
}

#sitemap li a:hover,
#links li a:hover {
  color: var(--text);
  background: var(--gradient-soft);
  border-color: rgba(255, 107, 53, 0.4);
  transform: translateY(-2px);
}

footer {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  border-top: 1px solid var(--glass-border);
}

footer section {
  padding: 1.25rem;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 1;
  transform: none;
  animation: none;
  border-bottom: none;
  transition: transform var(--transition), background var(--transition), border-color var(--transition);
}

footer section:hover {
  transform: translateY(-4px);
  background: var(--bg-card-hover);
  border-color: rgba(255, 107, 53, 0.3);
}

footer h2 {
  font-size: 0.95rem;
  padding-left: 0.75rem;
  margin-bottom: 0.6rem;
  color: var(--text);
}

footer h2::before {
  width: 3px;
}

footer p {
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-bottom: 0.35rem;
  line-height: 1.6;
}

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

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

  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
    font-size: 0.72rem;
  }

  nav {
    padding: 0.5rem 1rem;
    gap: 0.15rem;
  }

  nav a {
    padding: 0.4rem 0.7rem;
    font-size: 0.8rem;
  }

  h2 {
    padding-left: 0.85rem;
  }

  .banner {
    padding: 1.5rem 1.25rem;
    border-radius: var(--radius);
  }

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

  .stats p {
    padding: 1.1rem 0.75rem;
    font-size: 0.85rem;
  }

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

  #faq h3 {
    padding: 0.8rem 1rem;
    padding-right: 2.2rem;
    font-size: 0.9rem;
  }

  #faq h3 + p {
    padding: 0.8rem 1rem;
    font-size: 0.85rem;
  }

  footer {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  #contact p {
    font-size: 0.88rem;
  }
}

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

  .topbar span:last-child {
    display: none;
  }

  nav a {
    font-size: 0.75rem;
    padding: 0.35rem 0.6rem;
  }

  #sitemap li a,
  #links li a {
    padding: 0.4rem 0.8rem;
    font-size: 0.78rem;
  }
}

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

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

@media print {
  header,
  nav,
  footer,
  .banner,
  .stats {
    display: none;
  }

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

  body::before {
    display: none;
  }

  section {
    opacity: 1;
    transform: none;
    page-break-inside: avoid;
  }
}