:root {
  --bg: #0d0d1a;
  --bg-2: #14142b;
  --bg-3: #1a1a2e;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-hover: rgba(255, 255, 255, 0.08);
  --glass: rgba(26, 26, 46, 0.65);
  --glass-border: rgba(255, 255, 255, 0.1);
  --text: #eef1f8;
  --text-2: #b8c0d4;
  --text-3: #7c869c;
  --accent: #e94560;
  --accent-2: #ff7a8a;
  --accent-3: #533483;
  --accent-4: #0f3460;
  --accent-5: #16213e;
  --grad-hero: linear-gradient(135deg, #1a1a2e 0%, #16213e 40%, #0f3460 100%);
  --grad-accent: linear-gradient(135deg, #e94560 0%, #533483 100%);
  --grad-card: linear-gradient(160deg, rgba(233, 69, 96, 0.08), rgba(83, 52, 131, 0.06));
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.45);
  --blur: 18px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --maxw: 1180px;
  --header-h: 68px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f4f6fb;
    --bg-2: #ffffff;
    --bg-3: #eef1f8;
    --surface: rgba(26, 26, 46, 0.04);
    --surface-hover: rgba(26, 26, 46, 0.08);
    --glass: rgba(255, 255, 255, 0.72);
    --glass-border: rgba(26, 26, 46, 0.1);
    --text: #16182a;
    --text-2: #4a5270;
    --text-3: #7c869c;
    --grad-hero: linear-gradient(135deg, #e8ecf8 0%, #dfe6f6 40%, #d7e0f5 100%);
    --grad-card: linear-gradient(160deg, rgba(233, 69, 96, 0.07), rgba(83, 52, 131, 0.05));
    --shadow: 0 8px 32px rgba(26, 26, 46, 0.1);
    --shadow-lg: 0 20px 60px rgba(26, 26, 46, 0.16);
  }
}

*,
*::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: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 50% at 15% -5%, rgba(233, 69, 96, 0.14), transparent 60%),
    radial-gradient(ellipse 70% 50% at 90% 0%, rgba(83, 52, 131, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(15, 52, 96, 0.16), transparent 60%);
  background-attachment: fixed;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

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

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

h1,
h2,
h3,
h4 {
  line-height: 1.35;
  margin: 0 0 0.6em;
  font-weight: 700;
  letter-spacing: 0.01em;
}

h1 {
  font-size: clamp(1.7rem, 4.2vw, 2.6rem);
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  background: linear-gradient(120deg, var(--text) 0%, var(--accent-2) 130%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--text);
}

h3 {
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  color: var(--text);
}

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

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

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

li {
  margin-bottom: 0.35em;
}

blockquote {
  margin: 0 0 1.2em;
  padding: 1em 1.3em;
  border-left: 3px solid var(--accent);
  background: var(--surface);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

blockquote p {
  margin: 0;
  color: var(--text);
  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;
}

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

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

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.brand svg {
  border-radius: 10px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.brand:hover svg {
  transform: rotate(-6deg) scale(1.06);
  box-shadow: 0 0 0 4px rgba(233, 69, 96, 0.18);
}

.brand-name {
  background: linear-gradient(120deg, var(--text) 20%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.nav-list a {
  display: inline-block;
  padding: 7px 13px;
  border-radius: 999px;
  color: var(--text-2);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.25s var(--ease), background 0.25s var(--ease), transform 0.25s var(--ease);
}

.nav-list a:hover {
  color: var(--text);
  background: var(--surface-hover);
  transform: translateY(-1px);
}

.site-search {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  padding: 4px 4px 4px 16px;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.site-search:focus-within {
  border-color: rgba(233, 69, 96, 0.55);
  box-shadow: 0 0 0 4px rgba(233, 69, 96, 0.12);
}

.site-search input {
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 0.9rem;
  font-family: inherit;
  padding: 6px 0;
  width: 180px;
  min-width: 0;
  outline: none;
}

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

.site-search button {
  border: 0;
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--grad-accent);
  color: #fff;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), filter 0.25s var(--ease);
}

.site-search button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(233, 69, 96, 0.4);
  filter: brightness(1.08);
}

.site-search button:active {
  transform: translateY(0) scale(0.97);
}

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

main > section {
  position: relative;
  margin: 0 0 32px;
  padding: clamp(22px, 4vw, 44px);
  background: var(--surface);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  box-shadow: var(--shadow);
  animation: rise 0.8s var(--ease) both;
  transition: border-color 0.35s var(--ease), box-shadow 0.35s var(--ease), transform 0.35s var(--ease);
}

main > section:hover {
  border-color: rgba(233, 69, 96, 0.25);
  box-shadow: var(--shadow-lg);
}

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

main > section:nth-of-type(1) { animation-delay: 0.05s; }
main > section:nth-of-type(2) { animation-delay: 0.1s; }
main > section:nth-of-type(3) { animation-delay: 0.15s; }
main > section:nth-of-type(4) { animation-delay: 0.2s; }
main > section:nth-of-type(5) { animation-delay: 0.25s; }
main > section:nth-of-type(6) { animation-delay: 0.3s; }

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  margin: 0 0 20px;
  padding: 12px 4px;
  font-size: 0.85rem;
}

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

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

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

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

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

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

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(20px, 4vw, 44px);
  align-items: center;
  background: var(--grad-hero) !important;
  border-radius: var(--radius-xl) !important;
  overflow: hidden;
  position: relative;
  padding: clamp(26px, 5vw, 56px) !important;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto auto;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(233, 69, 96, 0.35), transparent 65%);
  filter: blur(30px);
  pointer-events: none;
  animation: float 12s ease-in-out infinite;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto auto -40% -20%;
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, rgba(83, 52, 131, 0.4), transparent 65%);
  filter: blur(30px);
  pointer-events: none;
  animation: float 15s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-24px, 20px) scale(1.08); }
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-content h1 {
  background: linear-gradient(120deg, var(--text) 30%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5em;
}

.hero-lead {
  font-size: clamp(0.95rem, 1.6vw, 1.05rem);
  color: var(--text-2);
}

.hero-sub {
  font-size: 0.9rem;
  color: var(--accent-2);
  letter-spacing: 0.04em;
  font-weight: 600;
  margin-bottom: 1.6em;
}

.cta {
  display: inline-block;
  padding: 12px 26px;
  margin: 0 10px 10px 0;
  border-radius: 999px;
  background: var(--grad-accent);
  color: #fff !important;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 8px 24px rgba(233, 69, 96, 0.35);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), filter 0.3s var(--ease);
}

.cta:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 14px 34px rgba(233, 69, 96, 0.5);
  filter: brightness(1.08);
}

.cta:active {
  transform: translateY(-1px) scale(0.99);
}

.cta.secondary {
  background: var(--surface);
  color: var(--text) !important;
  border: 1px solid var(--glass-border);
  box-shadow: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.cta.secondary:hover {
  background: var(--surface-hover);
  border-color: rgba(233, 69, 96, 0.5);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.25);
}

.hero-slider {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 16px;
}

.hero-slider figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.hero-slider figure:hover {
  transform: translateY(-6px) scale(1.015);
  box-shadow: var(--shadow-lg);
}

.hero-slider figure svg {
  width: 100%;
  height: auto;
  border-radius: var(--radius) var(--radius) 0 0;
}

.hero-slider figcaption {
  padding: 10px 16px;
  font-size: 0.85rem;
  color: var(--text-2);
  text-align: center;
  letter-spacing: 0.03em;
}

/* ---------- Meta ---------- */
.meta {
  font-size: 0.82rem;
  color: var(--text-3);
  letter-spacing: 0.02em;
  margin-top: 1em;
  padding-top: 0.8em;
  border-top: 1px dashed var(--glass-border);
}

/* ---------- News & Articles ---------- */
#news article,
#articles article {
  margin: 0 0 18px;
  padding: 20px 22px;
  background: var(--grad-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease), background 0.35s var(--ease);
}

#news article:hover,
#articles article:hover {
  transform: translateY(-4px);
  border-color: rgba(233, 69, 96, 0.35);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
  background: linear-gradient(160deg, rgba(233, 69, 96, 0.13), rgba(83, 52, 131, 0.09));
}

#news article h3,
#articles article h3 {
  color: var(--text);
  transition: color 0.3s var(--ease);
}

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

#news article .meta {
  border-top: 0;
  padding-top: 0;
  margin: 0 0 0.6em;
}

#news article a {
  display: inline-block;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--glass-border);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

#news article a:hover {
  background: var(--grad-accent);
  color: #fff;
  border-color: transparent;
  transform: translateX(3px);
}

#articles article p {
  margin-bottom: 0.8em;
}

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

/* ---------- Contact ---------- */
.contact-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  margin: 1.2em 0;
}

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

.contact-list li:hover {
  background: var(--surface-hover);
  border-color: rgba(233, 69, 96, 0.4);
  transform: translateY(-2px);
}

/* ---------- FAQ ---------- */
#faq details {
  margin: 0 0 12px;
  padding: 4px 20px;
  background: var(--surface);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

#faq details:hover {
  background: var(--surface-hover);
  border-color: rgba(233, 69, 96, 0.3);
}

#faq details[open] {
  background: var(--grad-card);
  border-color: rgba(233, 69, 96, 0.4);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
}

#faq summary {
  cursor: pointer;
  padding: 14px 30px 14px 0;
  font-weight: 600;
  color: var(--text);
  list-style: none;
  position: relative;
  transition: color 0.25s var(--ease);
}

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

#faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  line-height: 22px;
  text-align: center;
  border-radius: 50%;
  background: var(--surface-hover);
  border: 1px solid var(--glass-border);
  color: var(--accent-2);
  font-size: 1.1rem;
  font-weight: 400;
  transition: transform 0.35s var(--ease), background 0.35s var(--ease), color 0.35s var(--ease);
}

#faq details[open] summary {
  color: var(--accent-2);
}

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

#faq summary:hover {
  color: var(--accent-2);
}

#faq details p {
  margin: 0 0 16px;
  padding-top: 4px;
  border-top: 1px solid var(--glass-border);
  padding-top: 14px;
  animation: fadeIn 0.4s var(--ease);
}

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

/* ---------- Sitemap & Links ---------- */
.sitemap-list,
.friend-links {
  list-style: none;
  padding: 0;
  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 18px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--glass-border);
  font-size: 0.9rem;
  color: var(--text-2);
  transition: color 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.sitemap-list a:hover,
.friend-links a:hover {
  color: #fff;
  background: var(--grad-accent);
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(233, 69, 96, 0.35);
}

/* ---------- Footer ---------- */
#site-footer {
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.35) 100%);
  border-top: 1px solid var(--glass-border);
  padding: clamp(30px, 5vw, 56px) 20px 40px;
}

.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1.3fr 1fr;
  gap: clamp(24px, 4vw, 48px);
}

.footer-inner section {
  min-width: 0;
}

#site-footer h2 {
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-2);
  -webkit-text-fill-color: var(--accent-2);
  background: none;
  margin-bottom: 0.9em;
}

#site-footer h3 {
  font-size: 0.9rem;
  color: var(--text);
  margin: 1em 0 0.3em;
}

#site-footer p {
  font-size: 0.85rem;
  color: var(--text-3);
  line-height: 1.7;
  margin-bottom: 0.6em;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
  }

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

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 860px) {
  .header-inner {
    gap: 12px;
  }

  .site-search {
    order: 3;
    width: 100%;
    margin-left: 0;
  }

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

  .nav-list {
    order: 2;
    width: 100%;
    gap: 2px;
  }

  .nav-list a {
    padding: 6px 10px;
    font-size: 0.86rem;
  }
}

@media (max-width: 640px) {
  :root {
    --header-h: 60px;
  }

  body {
    font-size: 15px;
  }

  main {
    padding: 0 14px 60px;
  }

  main > section {
    padding: 20px 18px;
    border-radius: var(--radius);
    margin-bottom: 20px;
  }

  .hero {
    padding: 24px 18px !important;
    border-radius: var(--radius-lg) !important;
  }

  .hero-slider {
    grid-template-columns: 1fr;
  }

  .cta {
    display: block;
    text-align: center;
    margin-right: 0;
  }

  .hero-content .cta {
    margin-bottom: 12px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .contact-list {
    grid-template-columns: 1fr;
  }

  #faq details {
    padding: 2px 16px;
  }

  .sitemap-list a,
  .friend-links a {
    padding: 7px 14px;
    font-size: 0.85rem;
  }
}

@media (max-width: 380px) {
  .nav-list a {
    padding: 5px 8px;
    font-size: 0.8rem;
  }

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

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---------- Print ---------- */
@media print {
  #site-header,
  .site-search,
  .breadcrumb,
  #links,
  #sitemap {
    display: none;
  }

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

  main > section,
  #news article,
  #articles article {
    box-shadow: none;
    border: 1px solid #ccc;
    background: #fff;
    backdrop-filter: none;
  }

  h2 {
    -webkit-text-fill-color: #000;
    color: #000;
    background: none;
  }
}