:root {
  --primary: #6C5CE7;
  --primary-dark: #5A4BD1;
  --primary-light: #A29BFE;
  --accent: #FD79A8;
  --accent-light: #FDCB6E;
  --bg: #F5F6FA;
  --bg-alt: #FFFFFF;
  --bg-card: rgba(255, 255, 255, 0.72);
  --bg-glass: rgba(255, 255, 255, 0.55);
  --bg-glass-border: rgba(255, 255, 255, 0.6);
  --text: #2D3436;
  --text-secondary: #636E72;
  --text-muted: #B2BEC3;
  --border: rgba(108, 92, 231, 0.12);
  --shadow-sm: 0 2px 8px rgba(108, 92, 231, 0.08);
  --shadow: 0 8px 32px rgba(108, 92, 231, 0.12);
  --shadow-lg: 0 16px 48px rgba(108, 92, 231, 0.18);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --radius-full: 999px;
  --gradient-hero: linear-gradient(135deg, #6C5CE7 0%, #A29BFE 40%, #FD79A8 100%);
  --gradient-card: linear-gradient(135deg, rgba(108, 92, 231, 0.06), rgba(253, 121, 168, 0.06));
  --gradient-accent: linear-gradient(135deg, #FD79A8, #FDCB6E);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --max-width: 1200px;
  --nav-height: 64px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0F0F1A;
    --bg-alt: #1A1A2E;
    --bg-card: rgba(26, 26, 46, 0.78);
    --bg-glass: rgba(26, 26, 46, 0.6);
    --bg-glass-border: rgba(108, 92, 231, 0.2);
    --text: #EDEDF2;
    --text-secondary: #A0A0B8;
    --text-muted: #6C6C88;
    --border: rgba(108, 92, 231, 0.18);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
    --gradient-card: linear-gradient(135deg, rgba(108, 92, 231, 0.1), rgba(253, 121, 168, 0.08));
  }
}

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

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

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

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

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

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

ul,
ol {
  list-style: none;
}

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

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

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

::-webkit-scrollbar-thumb {
  background: var(--primary-light);
  border-radius: var(--radius-full);
}

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

header[role="banner"] {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: var(--bg-glass);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--bg-glass-border);
  transition: background var(--transition), box-shadow var(--transition);
}

header[role="banner"]:hover {
  box-shadow: var(--shadow-sm);
}

header[role="banner"] nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

header[role="banner"] nav > a {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: opacity var(--transition), transform var(--transition);
}

header[role="banner"] nav > a:hover {
  opacity: 0.85;
  transform: scale(1.03);
  -webkit-text-fill-color: transparent;
}

header[role="banner"] nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
}

header[role="banner"] nav ul li a {
  display: block;
  padding: 8px 14px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-full);
  transition: all var(--transition);
  position: relative;
}

header[role="banner"] nav ul li a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 16px;
  height: 2px;
  background: var(--gradient-accent);
  border-radius: var(--radius-full);
  transition: transform var(--transition);
}

header[role="banner"] nav ul li a:hover {
  color: var(--primary);
  background: rgba(108, 92, 231, 0.08);
}

header[role="banner"] nav ul li a:hover::after {
  transform: translateX(-50%) scaleX(1);
}

main {
  margin-top: var(--nav-height);
}

section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 64px 24px;
  opacity: 0;
  transform: translateY(32px);
  animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 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; }
section:nth-child(16) { animation-delay: 0.8s; }
section:nth-child(17) { animation-delay: 0.85s; }
section:nth-child(18) { animation-delay: 0.9s; }

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

section h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 28px;
  letter-spacing: -0.02em;
  position: relative;
  padding-bottom: 16px;
  color: var(--text);
}

section h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 56px;
  height: 4px;
  background: var(--gradient-accent);
  border-radius: var(--radius-full);
  transition: width var(--transition-slow);
}

section:hover h2::after {
  width: 96px;
}

section h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 32px 0 12px;
  color: var(--text);
  letter-spacing: -0.01em;
  position: relative;
  padding-left: 16px;
}

section h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 18px;
  background: var(--gradient-hero);
  border-radius: var(--radius-full);
}

section p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
  line-height: 1.85;
}

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

#hero {
  position: relative;
  max-width: 100%;
  padding: 0;
  background: var(--gradient-hero);
  overflow: hidden;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  opacity: 1;
  transform: none;
  animation: heroReveal 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes heroReveal {
  from {
    opacity: 0;
    transform: scale(1.02);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

#hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15), transparent 70%);
  border-radius: 50%;
  animation: float 8s ease-in-out infinite;
}

#hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(253, 121, 168, 0.2), transparent 70%);
  border-radius: 50%;
  animation: float 10s ease-in-out infinite reverse;
}

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

#hero > * {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

#hero h1 {
  font-size: clamp(1.75rem, 5.5vw, 3rem);
  font-weight: 900;
  color: #FFFFFF;
  line-height: 1.2;
  letter-spacing: -0.03em;
  padding-top: 80px;
  margin-bottom: 24px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

#hero p {
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  line-height: 1.9;
  max-width: 720px;
  margin-bottom: 16px;
}

#hero p:last-child {
  padding-bottom: 80px;
  margin-bottom: 0;
}

#brand,
#rules,
#ranking,
#report,
#solutions,
#cases,
#news,
#articles,
#faq,
#howto,
#contact,
#sitemap,
#links,
#legal,
#author-info {
  background: var(--bg-card);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-lg);
  margin-top: 32px;
  margin-bottom: 32px;
  padding: 48px 40px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}

#brand:hover,
#rules:hover,
#ranking:hover,
#report:hover,
#solutions:hover,
#cases:hover,
#news:hover,
#articles:hover,
#faq:hover,
#howto:hover,
#contact:hover,
#sitemap:hover,
#links:hover,
#legal:hover,
#author-info:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
  border-color: rgba(108, 92, 231, 0.25);
}

#articles article {
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 16px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

#articles article::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--gradient-hero);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform var(--transition);
}

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

#articles article:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow);
  border-color: rgba(108, 92, 231, 0.3);
}

#articles article h3 {
  margin-top: 0;
  font-size: 1.05rem;
}

#articles article h3::before {
  display: none;
}

#articles article p {
  font-size: 0.875rem;
}

#articles article a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  margin-top: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: rgba(108, 92, 231, 0.08);
  transition: all var(--transition);
}

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

#articles article a:hover {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 16px rgba(108, 92, 231, 0.35);
}

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

#faq h3 {
  background: var(--gradient-card);
  padding: 16px 20px 16px 36px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  margin: 0 0 4px;
  font-size: 1rem;
}

#faq h3::before {
  left: 16px;
}

#faq h3:hover {
  background: rgba(108, 92, 231, 0.08);
  padding-left: 40px;
}

#faq p {
  padding: 12px 20px 16px 36px;
  margin: 0 0 12px;
  border-left: 2px solid var(--border);
  margin-left: 16px;
  animation: fadeInUp 0.4s ease forwards;
}

#sitemap ul,
#links ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}

#sitemap ul li a,
#links ul li a {
  display: block;
  padding: 12px 20px;
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-align: center;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

#sitemap ul li a::before,
#links ul li a::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
  opacity: 0;
  transition: opacity var(--transition);
  z-index: -1;
}

#sitemap ul li a:hover,
#links ul li a:hover {
  color: #fff;
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(108, 92, 231, 0.3);
}

#sitemap ul li a:hover::before,
#links ul li a:hover::before {
  opacity: 1;
}

#contact h3:first-of-type {
  margin-top: 0;
}

#contact p {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 0.9rem;
  padding: 6px 0;
  border-bottom: 1px dashed var(--border);
}

#contact p:last-of-type {
  border-bottom: none;
}

#news h3 {
  font-size: 1.05rem;
}

#news p:first-of-type {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.02em;
  display: inline-block;
  padding: 2px 12px;
  background: rgba(108, 92, 231, 0.08);
  border-radius: var(--radius-full);
  margin-bottom: 8px;
}

#author-info p {
  font-size: 0.9rem;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

#author-info p:last-child {
  border-bottom: none;
}

footer[role="contentinfo"] {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 48px 24px;
  margin-top: 48px;
  text-align: center;
  transition: background var(--transition);
}

footer[role="contentinfo"] p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 6px;
  line-height: 1.7;
}

footer[role="contentinfo"] p:first-child {
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-bottom: 12px;
}

#solutions,
#cases {
  background: var(--gradient-card);
}

#rules,
#report {
  border-left: 4px solid var(--primary);
}

#ranking {
  border-left: 4px solid var(--accent);
}

#faq {
  border-left: 4px solid var(--accent-light);
}

@media (max-width: 1024px) {
  section {
    padding: 48px 20px;
  }

  #brand,
  #rules,
  #ranking,
  #report,
  #solutions,
  #cases,
  #news,
  #articles,
  #faq,
  #howto,
  #contact,
  #sitemap,
  #links,
  #legal,
  #author-info {
    padding: 36px 28px;
    border-radius: var(--radius);
  }

  header[role="banner"] nav ul li a {
    padding: 8px 10px;
    font-size: 0.8rem;
  }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 56px;
  }

  header[role="banner"] nav {
    padding: 0 16px;
    flex-wrap: wrap;
  }

  header[role="banner"] nav > a {
    font-size: 1.15rem;
  }

  header[role="banner"] nav ul {
    gap: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    max-width: 100%;
  }

  header[role="banner"] nav ul::-webkit-scrollbar {
    display: none;
  }

  header[role="banner"] nav ul li a {
    padding: 6px 10px;
    font-size: 0.78rem;
    white-space: nowrap;
  }

  section {
    padding: 36px 16px;
  }

  #hero h1 {
    padding-top: 56px;
    font-size: clamp(1.4rem, 6vw, 2rem);
  }

  #hero p:last-child {
    padding-bottom: 56px;
  }

  #brand,
  #rules,
  #ranking,
  #report,
  #solutions,
  #cases,
  #news,
  #articles,
  #faq,
  #howto,
  #contact,
  #sitemap,
  #links,
  #legal,
  #author-info {
    padding: 28px 20px;
    border-radius: var(--radius-sm);
    margin-top: 20px;
    margin-bottom: 20px;
  }

  section h2 {
    font-size: 1.35rem;
    margin-bottom: 20px;
  }

  section h3 {
    font-size: 1.05rem;
    margin-top: 24px;
  }

  #sitemap ul,
  #links ul {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 8px;
  }

  #sitemap ul li a,
  #links ul li a {
    padding: 10px 12px;
    font-size: 0.8rem;
  }

  #articles article {
    padding: 18px 20px;
  }

  footer[role="contentinfo"] {
    padding: 32px 16px;
  }
}

@media (max-width: 480px) {
  header[role="banner"] nav > a {
    font-size: 1rem;
  }

  header[role="banner"] nav ul li a {
    padding: 5px 8px;
    font-size: 0.72rem;
  }

  #hero h1 {
    font-size: 1.3rem;
  }

  #hero p {
    font-size: 0.85rem;
  }

  section h2 {
    font-size: 1.2rem;
  }

  section h3 {
    font-size: 0.95rem;
    padding-left: 12px;
  }

  section p {
    font-size: 0.85rem;
  }

  #faq h3 {
    padding: 12px 14px 12px 28px;
    font-size: 0.9rem;
  }

  #faq h3::before {
    left: 10px;
  }

  #faq p {
    padding: 10px 14px 12px 28px;
    margin-left: 10px;
    font-size: 0.82rem;
  }

  #sitemap ul,
  #links ul {
    grid-template-columns: 1fr 1fr;
  }
}

@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[role="banner"],
  footer[role="contentinfo"] {
    display: none;
  }

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

  section {
    box-shadow: none;
    border: 1px solid #ddd;
    page-break-inside: avoid;
    opacity: 1;
    transform: none;
    animation: none;
  }

  a {
    color: #000;
    text-decoration: underline;
  }
}