:root {
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --secondary: #06b6d4;
  --accent: #ec4899;
  --accent-warm: #f59e0b;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --bg-alt: #f1f5f9;
  --border: #e2e8f0;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
  --container-width: 1240px;
}

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

html {
  scroll-behavior: smooth;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-page);
  line-height: 1.6;
}

body {
  overflow-x: hidden;
  position: relative;
}

.site-container {
  width: 100%;
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.25s ease;
}

/* Header & Navbar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand-box {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-box .ai-page-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
  display: block;
}

.brand-text {
  font-size: 1.25rem;
  font-weight: 800;
  color: #1e1b4b;
  letter-spacing: -0.02em;
}

.nav-menu {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 0;
}

.nav-links a {
  padding: 8px 14px;
  font-size: 0.95rem;
  font-weight: 500;
  color: #334155;
  border-radius: 6px;
}

.nav-links a:hover {
  color: var(--primary);
  background: #f1f5f9;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.25s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #3730a3 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(79, 70, 229, 0.4);
}

.btn-accent {
  background: linear-gradient(135deg, #ec4899 0%, #f43f5e 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(236, 72, 153, 0.3);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(236, 72, 153, 0.4);
}

.btn-outline {
  background: #ffffff;
  border: 1px solid var(--border);
  color: var(--text-main);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: #faf5ff;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--text-main);
}

/* Hero Section (No Images) */
.hero-section {
  position: relative;
  padding: 80px 0 90px;
  background: radial-gradient(circle at 15% 15%, rgba(238, 242, 255, 0.95) 0%, transparent 45%),
              radial-gradient(circle at 85% 20%, rgba(253, 242, 248, 0.95) 0%, transparent 45%),
              radial-gradient(circle at 50% 80%, rgba(240, 253, 250, 0.9) 0%, transparent 50%),
              #ffffff;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 9999px;
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 600;
  width: fit-content;
}

.hero-title {
  font-size: 2.85rem;
  line-height: 1.25;
  font-weight: 850;
  color: #0f172a;
  letter-spacing: -0.03em;
}

.hero-title span {
  background: linear-gradient(135deg, #4f46e5 0%, #ec4899 50%, #06b6d4 100%);
  -webkit-background-clip: text;
  color: transparent;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-perks {
  display: flex;
  gap: 24px;
  padding-top: 12px;
  border-top: 1px solid #e2e8f0;
}

.perk-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: #334155;
  font-weight: 600;
}

.perk-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
}

/* Hero Right Code Card (Pure CSS) */
.hero-code-card {
  background: #0f172a;
  border-radius: 18px;
  box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1);
  padding: 24px;
  color: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}

.card-dots {
  display: flex;
  gap: 6px;
}

.card-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.card-dots span:nth-child(1) { background: #ef4444; }
.card-dots span:nth-child(2) { background: #f59e0b; }
.card-dots span:nth-child(3) { background: #10b981; }

.tech-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.code-badge {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.1);
  color: #93c5fd;
  font-family: monospace;
}

.matrix-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 8px;
}

.matrix-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 12px;
}

.matrix-label {
  font-size: 0.75rem;
  color: #94a3b8;
}

.matrix-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: #38bdf8;
  margin-top: 4px;
}

/* Sections Common */
.section {
  padding: 72px 0;
  position: relative;
}

.section-alt {
  background-color: var(--bg-alt);
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 52px;
}

.section-subtitle {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 8px;
  display: block;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
}

/* Platform Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: -36px;
  position: relative;
  z-index: 10;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 24px;
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  text-align: center;
}

.stat-number {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--primary);
}

.stat-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 6px;
}

/* Model Matrix Cloud */
.models-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.tag-chip {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #334155;
  transition: all 0.2s ease;
}

.tag-chip:hover {
  background: #eef2ff;
  border-color: #818cf8;
  color: var(--primary);
  transform: translateY(-2px);
}

/* Scenario Cards (AIGC Services) */
.scenario-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: #cbd5e1;
}

.card-top {
  margin-bottom: 16px;
}

.feature-badge {
  display: inline-block;
  padding: 4px 10px;
  background: #e0f2fe;
  color: #0284c7;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 6px;
  margin-bottom: 12px;
}

.feature-badge.warm {
  background: #fef3c7;
  color: #b45309;
}

.feature-badge.purple {
  background: #ede9fe;
  color: #6d28d9;
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 8px;
}

.feature-desc {
  font-size: 0.925rem;
  color: #64748b;
  line-height: 1.6;
}

/* Workflow Steps */
.step-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  position: relative;
}

.step-number {
  font-size: 2.5rem;
  font-weight: 900;
  color: #e2e8f0;
  line-height: 1;
  margin-bottom: 16px;
}

.step-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 8px;
}

.step-desc {
  font-size: 0.9rem;
  color: #64748b;
}

/* Comparison Table */
.comparison-container {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.rating-banner {
  background: linear-gradient(135deg, #4338ca 0%, #3b82f6 100%);
  color: #ffffff;
  padding: 24px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.rating-score-box {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.score-num {
  font-size: 3rem;
  font-weight: 900;
}

.score-max {
  font-size: 1.25rem;
  color: #cbd5e1;
}

.stars {
  color: #facc15;
  font-size: 1.4rem;
  margin-left: 12px;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.compare-table th, .compare-table td {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

.compare-table th {
  background: #f8fafc;
  color: #334155;
  font-weight: 700;
}

.compare-table tr:last-child td {
  border-bottom: none;
}

.highlight-col {
  background: rgba(238, 242, 255, 0.4);
  font-weight: 600;
  color: var(--primary);
}

/* Image Showcase (Controlled Non-Hero sections) */
.showcase-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  align-items: center;
}

.showcase-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.media-container {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #f1f5f9;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.media-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.square-media {
  aspect-ratio: 1 / 1;
}

.media-caption {
  padding: 16px 20px;
}

.media-caption h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.media-caption p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Testimonial Cards (6 items) */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
}

.review-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.review-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #a855f7 0%, #6366f1 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}

.review-info h5 {
  font-size: 1rem;
  font-weight: 700;
  color: #1e293b;
}

.review-info span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.review-body {
  font-size: 0.925rem;
  color: #475569;
  line-height: 1.6;
}

/* FAQ Accordion */
.faq-list {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-question {
  width: 100%;
  padding: 18px 24px;
  text-align: left;
  background: none;
  border: none;
  font-size: 1.05rem;
  font-weight: 600;
  color: #1e293b;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question:hover {
  color: var(--primary);
}

.faq-icon {
  font-size: 1.25rem;
  transition: transform 0.25s ease;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background: #f8fafc;
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.6;
  padding: 0 24px;
}

.faq-item.active .faq-answer {
  padding: 16px 24px 20px;
  max-height: 200px;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

/* Form Section */
.form-wrapper {
  max-width: 680px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px;
  box-shadow: var(--shadow-md);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #334155;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
  color: var(--text-main);
  background: #ffffff;
  outline: none;
  transition: border-color 0.2s ease;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-textarea {
  min-height: 110px;
  resize: vertical;
}

/* Article & Resource links */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.resource-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
}

.link-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}

.link-list a {
  font-size: 0.925rem;
  color: #2563eb;
  display: inline-block;
}

.link-list a:hover {
  text-decoration: underline;
}

/* Contact Details Card */
.contact-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
}

.contact-card h4 {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.contact-card p {
  font-size: 1rem;
  font-weight: 700;
  color: #1e293b;
}

/* Footer (Explicit Safe Styling) */
.site-footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 56px 0 24px;
  border-top: 1px solid #1e293b;
}

.footer-columns {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: #94a3b8;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: #ffffff;
}

.friend-links-box {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.friend-links-box a {
  color: #94a3b8;
  font-size: 0.85rem;
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}

.friend-links-box a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.footer-kefu-box {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.05);
  padding: 12px;
  border-radius: 10px;
}

.footer-kefu-box img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 6px;
}

.footer-kefu-text {
  font-size: 0.85rem;
  color: #94a3b8;
  line-height: 1.5;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #64748b;
  flex-wrap: wrap;
  gap: 12px;
}

/* Floating Tools */
.floating-aside {
  position: fixed;
  right: 20px;
  bottom: 30px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.float-btn {
  width: 48px;
  height: 48px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
}

.float-btn:hover {
  background: var(--primary);
  color: #ffffff;
}

.float-kefu-pop {
  position: absolute;
  right: 58px;
  bottom: 0;
  background: #ffffff;
  padding: 12px;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  display: none;
  width: 140px;
  text-align: center;
}

.float-kefu-pop img {
  width: 116px;
  height: 116px;
  display: block;
  margin: 0 auto 6px;
}

.float-kefu-pop span {
  font-size: 0.75rem;
  color: #334155;
  font-weight: 600;
}

.float-btn:hover .float-kefu-pop {
  display: block;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-layout {
    grid-template-columns: 1fr;
  }
  .scenario-grid, .step-grid, .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .showcase-grid {
    grid-template-columns: 1fr;
  }
  .footer-columns {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  .nav-menu {
    position: absolute;
    top: 72px;
    left: 0;
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
  }
  .nav-menu.active {
    display: flex;
  }
  .nav-links {
    flex-direction: column;
    width: 100%;
    align-items: flex-start;
  }
  .nav-links a {
    width: 100%;
    padding: 10px 0;
  }
  .nav-actions {
    margin-top: 14px;
    width: 100%;
    justify-content: flex-start;
  }
  .hero-title {
    font-size: 2.1rem;
  }
  .stats-grid, .scenario-grid, .step-grid, .reviews-grid, .contact-meta-grid, .resource-grid {
    grid-template-columns: 1fr;
  }
  .footer-columns {
    grid-template-columns: 1fr;
  }
}