:root {
  --color-primary: #7C3AED;
  --color-accent: #EC4899;
  --color-bg: #FAF5FF;
  --color-surface: #FFFFFF;
  --color-text: #1E1B4B;
  --color-text-secondary: #4B5563;
  --color-border: rgba(124, 58, 237, 0.15);
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.6);
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(124, 58, 237, 0.1), 0 2px 4px -1px rgba(124, 58, 237, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(124, 58, 237, 0.1), 0 4px 6px -2px rgba(124, 58, 237, 0.05);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --font-main: "PingFang SC", "SF Pro SC", "Helvetica Neue", Arial, sans-serif;
  --container-max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-main);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

.container { width: 100%; max-width: var(--container-max); margin: 0 auto; padding: 0 24px; }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.3; text-wrap: balance; color: var(--color-text); }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: 1.5rem; position: relative; display: inline-block; padding-left: 20px; }
h2::after { content: ''; position: absolute; left: 0; top: 20%; height: 80%; width: 6px; background: linear-gradient(180deg, var(--color-primary), var(--color-accent)); border-radius: 4px; }
h3 { font-size: 1.25rem; margin-bottom: 0.75rem; }
p { margin-bottom: 1rem; color: var(--color-text-secondary); }
a { color: var(--color-primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--color-accent); }

.site-header { position: sticky; top: 0; z-index: 100; background: var(--glass-bg); backdrop-filter: blur(12px); border-bottom: 1px solid var(--glass-border); padding: 16px 0; }
.header-inner { display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 1.2rem; color: var(--color-text); }
.logo img { height: 40px; width: auto; object-fit: contain; }
nav ul { display: flex; gap: 24px; list-style: none; }
nav a { font-weight: 500; color: var(--color-text-secondary); padding: 8px 12px; border-radius: var(--radius-sm); }
nav a:hover, nav a[aria-current="page"] { color: var(--color-primary); background: rgba(124, 58, 237, 0.08); }

.site-footer { background: #1E1B4B; color: #E5E7EB; padding: 60px 0 30px; margin-top: 80px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer-col h4 { color: #fff; margin-bottom: 20px; font-size: 1.1rem; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 12px; }
.footer-col a { color: #A5B4FC; }
.footer-bottom { text-align: center; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; color: #9CA3AF; font-size: 0.9rem; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 28px; border-radius: 100px; font-weight: 600; cursor: pointer; border: none; transition: all 0.3s ease; text-decoration: none; }
.btn-primary { background: linear-gradient(135deg, var(--color-primary), var(--color-accent)); color: #fff; box-shadow: var(--shadow-md); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); filter: brightness(1.1); color: #fff; }
.btn-outline { background: transparent; border: 2px solid var(--color-primary); color: var(--color-primary); }
.btn-outline:hover { background: var(--color-primary); color: #fff; }

.card { background: var(--glass-bg); backdrop-filter: blur(8px); border: 1px solid var(--glass-border); border-radius: var(--radius-md); padding: 24px; transition: transform 0.3s, box-shadow 0.3s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 32px; }

table { width: 100%; border-collapse: collapse; margin: 24px 0; background: var(--glass-bg); border-radius: var(--radius-md); overflow: hidden; }
th, td { padding: 16px; text-align: left; border-bottom: 1px solid var(--color-border); }
th { background: rgba(124, 58, 237, 0.05); font-weight: 600; }
tr:last-child td { border-bottom: none; }

details { margin-bottom: 16px; background: var(--glass-bg); border-radius: var(--radius-md); border: 1px solid var(--glass-border); overflow: hidden; }
summary { padding: 20px; font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; font-size: 1.5rem; color: var(--color-accent); transition: transform 0.3s; }
details[open] summary::after { transform: rotate(45deg); }
.details-content { padding: 0 20px 20px; color: var(--color-text-secondary); }

.section { padding: 80px 0; }
.hero-section { min-height: 80vh; display: flex; align-items: center; padding: 100px 0 60px; }
.hero-content { max-width: 600px; }
.hero-visual { flex: 1; display: flex; justify-content: center; align-items: center; }
.feature-item { display: flex; flex-direction: column; gap: 12px; }
.feature-icon { width: 48px; height: 48px; background: linear-gradient(135deg, rgba(124,58,237,0.1), rgba(236,72,153,0.1)); border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 8px; }
.feature-icon svg { width: 24px; height: 24px; stroke: var(--color-primary); }

.svg-container { width: 100%; max-width: 500px; margin: 0 auto; }
svg path, svg circle, svg rect { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.draw-circle { animation: drawCircle 4s ease-in-out infinite alternate; stroke-dasharray: 1; stroke-dashoffset: 0; }
.draw-ring { animation: drawRing 6s linear infinite; stroke-dasharray: 1; stroke-dashoffset: 0; }
.pulse-node { animation: pulseNode 3s ease-in-out infinite; }
.rotate-slow { animation: rotateSlow 20s linear infinite; transform-box: fill-box; transform-origin: center; }
@keyframes drawCircle { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes drawRing { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes pulseNode { 0%, 100% { opacity: 0.6; transform: scale(0.95); } 50% { opacity: 1; transform: scale(1.05); } }
@keyframes rotateSlow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

@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; }
  .draw-circle, .draw-ring, .pulse-node, .rotate-slow { animation: none !important; }
}

@media (max-width: 768px) {
  .hero-section { flex-direction: column; text-align: center; gap: 40px; }
  nav ul { gap: 12px; font-size: 0.9rem; }
  h2::after { display: none; }
}
