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

:root {
  --primary: #865dd8;
  --primary-dark: #6b45c0;
  --primary-light: #9b7dff;
  --bg: #f5f3ff;
  --bg-gradient: linear-gradient(180deg, #ebe6ff 0%, #f5f3ff 55%, #faf8ff 100%);
  --text: #1a1a2e;
  --text-muted: #5c4d8a;
  --text-light: #8b7eb8;
  --card-bg: #ffffff;
  --shadow: 0 12px 40px rgba(123, 97, 255, 0.12);
  --radius: 20px;
  --max-width: 1080px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Helvetica Neue', sans-serif;
  background: var(--bg-gradient);
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

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

a:hover {
  opacity: 0.8;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 243, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(134, 93, 216, 0.1);
  padding-top: env(safe-area-inset-top);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-weight: 800;
  font-size: 18px;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 4px 16px rgba(123, 97, 255, 0.2);
}

.nav {
  display: flex;
  gap: 8px;
}

.nav a {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.nav a:hover,
.nav a.active {
  background: rgba(134, 93, 216, 0.12);
  color: var(--primary);
  opacity: 1;
}

/* Main */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 32px 24px 48px;
}

/* Hero */
.hero {
  text-align: center;
  padding: 24px 0 40px;
}

.hero h1 {
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 800;
  margin-bottom: 12px;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero .tagline {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 32px;
  line-height: 1.8;
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 48px;
}

.gallery img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: block;
}

/* Sections */
.section {
  margin-bottom: 40px;
}

.section-title {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--text);
  text-align: center;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.feature-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.feature-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

.scenario-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.scenario-tag {
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(134, 93, 216, 0.1);
  color: var(--primary-dark);
  font-size: 14px;
  font-weight: 600;
}

.cta-text {
  text-align: center;
  font-size: 16px;
  color: var(--text-muted);
  margin-top: 16px;
  font-weight: 600;
}

/* Content pages */
.page-header {
  text-align: center;
  padding: 16px 0 32px;
}

.page-header h1 {
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 800;
  margin-bottom: 8px;
}

.page-header p {
  color: var(--text-light);
  font-size: 14px;
}

.content-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}

.content-card h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  margin: 28px 0 12px;
}

.content-card h2:first-child {
  margin-top: 0;
}

.content-card p,
.content-card li {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.8;
}

.content-card ul,
.content-card ol {
  padding-left: 20px;
  margin: 8px 0;
}

.content-card li {
  margin-bottom: 6px;
}

.intro-text {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.9;
  margin-bottom: 8px;
}

.feature-list {
  list-style: none;
  padding: 0;
}

.feature-list li {
  position: relative;
  padding: 12px 0 12px 20px;
  border-bottom: 1px solid rgba(134, 93, 216, 0.08);
}

.feature-list li:last-child {
  border-bottom: none;
}

.feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

.feature-list strong {
  color: var(--text);
  display: block;
  margin-bottom: 4px;
}

.contact-box {
  background: linear-gradient(135deg, rgba(134, 93, 216, 0.08), rgba(155, 125, 255, 0.12));
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  margin-top: 24px;
}

.contact-box p {
  margin-bottom: 8px;
}

.contact-box a {
  font-size: 18px;
  font-weight: 700;
}

.faq-item {
  padding: 16px 0;
  border-bottom: 1px solid rgba(134, 93, 216, 0.1);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.faq-item p {
  font-size: 14px;
  color: var(--text-muted);
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 32px 24px calc(32px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(134, 93, 216, 0.1);
  color: var(--text-light);
  font-size: 13px;
}

.site-footer p {
  line-height: 1.8;
}

.footer-sub {
  margin-top: 4px;
  font-size: 12px;
  opacity: 0.85;
}

.site-footer a {
  margin: 0 12px;
  display: inline-block;
  padding: 4px 0;
  min-height: 44px;
  line-height: 44px;
}

/* Responsive */
@media (max-width: 768px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

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

@media (max-width: 640px) {
  .header-inner {
    flex-direction: row;
    padding: 10px 16px;
    gap: 8px;
  }

  .brand {
    font-size: 15px;
    gap: 8px;
    flex-shrink: 0;
  }

  .brand img {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }

  .nav {
    width: auto;
    flex: 1;
    justify-content: flex-end;
    gap: 4px;
    flex-wrap: wrap;
  }

  .nav a {
    padding: 6px 10px;
    font-size: 13px;
    min-height: 36px;
  }

  main {
    padding: 20px 16px calc(40px + env(safe-area-inset-bottom));
  }

  .hero {
    padding: 12px 0 24px;
  }

  .hero h1 {
    font-size: 26px;
  }

  .hero .tagline {
    font-size: 14px;
    margin-bottom: 20px;
    padding: 0 4px;
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 32px;
  }

  .gallery img {
    border-radius: 12px;
  }

  .section-title {
    font-size: 20px;
  }

  .card-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .feature-card {
    padding: 18px;
  }

  .scenario-tag {
    font-size: 13px;
    padding: 6px 14px;
  }

  .cta-text {
    font-size: 14px;
    padding: 0 8px;
  }

  .content-card {
    padding: 20px 16px;
    border-radius: 16px;
  }

  .content-card h2 {
    font-size: 16px;
  }

  .content-card p,
  .content-card li {
    font-size: 14px;
  }

  .contact-box a {
    font-size: 16px;
    word-break: break-all;
  }

  .site-footer {
    padding: 24px 16px calc(24px + env(safe-area-inset-bottom));
    font-size: 12px;
  }

  .site-footer p {
    padding: 0 8px;
  }

  .site-footer a {
    margin: 0 8px;
    min-height: 40px;
    line-height: 40px;
  }
}
