:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-alt: #f1f5f9;
  --text: #0f172a;
  --muted: #475569;
  --subtle: #64748b;
  --border: #e2e8f0;
  --accent: #0891b2;
  --accent-dark: #0e7490;
  --accent-teal: #0d9488;
  --accent-blue: #0284c7;
  --accent-soft: #ecfeff;
  --accent-gradient: linear-gradient(135deg, #0d9488 0%, #0891b2 55%, #0284c7 100%);
  --fanyou: #ea580c;
  --fanyou-soft: #fff7ed;
  --cake: #b45309;
  --cake-soft: #fefce8;
  --radius: 14px;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 20px;
}

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

.brand-logo-img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  flex-shrink: 0;
  display: block;
  box-shadow: 0 4px 12px rgba(8, 145, 178, 0.22);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.brand-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.brand-sub {
  font-size: 11px;
  color: var(--subtle);
  letter-spacing: 0.8px;
}

nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

nav a {
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
  transition: color 0.18s ease;
}

nav a:hover,
nav a.active {
  color: var(--accent);
}

/* Hero */
.hero {
  position: relative;
  padding: 76px 0 64px;
  background:
    radial-gradient(circle at 12% 18%, rgba(13, 148, 136, 0.09), transparent 44%),
    radial-gradient(circle at 86% 24%, rgba(2, 132, 199, 0.08), transparent 42%),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 99px;
  background: var(--accent-soft);
  border: 1px solid #cffafe;
  color: var(--accent-dark);
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-teal);
}

.hero h1 {
  font-size: 42px;
  line-height: 1.24;
  font-weight: 800;
  letter-spacing: -0.5px;
  max-width: 780px;
  margin-bottom: 18px;
}

.hero-lead {
  font-size: 16.5px;
  color: var(--muted);
  max-width: 680px;
  margin-bottom: 30px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 42px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn:hover {
  border-color: #cbd5e1;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

.btn-primary {
  background: var(--accent-gradient);
  border-color: transparent;
  color: #ffffff;
}

.btn-primary:hover {
  filter: brightness(0.95);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 8px 22px rgba(8, 145, 178, 0.28);
}

.btn-sm {
  padding: 8px 15px;
  font-size: 13px;
  border-radius: 8px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.metric-card {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
}

.metric-card strong {
  display: block;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}

.metric-card span {
  font-size: 12.5px;
  color: var(--subtle);
}

/* Sections */
.section {
  padding: 68px 0;
}

.section-alt {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  margin-bottom: 34px;
}

.section-kicker {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.section-head h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
}

.section-head p {
  color: var(--muted);
  font-size: 15px;
  max-width: 680px;
}

/* Product Matrix Cards */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.product-card:hover {
  transform: translateY(-3px);
  border-color: #a5f3fc;
  box-shadow: 0 18px 40px rgba(8, 145, 178, 0.08);
}

.product-top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.product-logo {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  object-fit: cover;
  flex-shrink: 0;
}

.product-title-wrap h3 {
  font-size: 21px;
  font-weight: 700;
  margin-bottom: 4px;
}

.product-pill {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 99px;
}

.pill-fanyou {
  background: var(--fanyou-soft);
  color: var(--fanyou);
}

.pill-cake {
  background: var(--cake-soft);
  color: var(--cake);
}

.product-desc {
  color: var(--muted);
  font-size: 14.5px;
  margin-bottom: 18px;
}

.feature-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 22px;
}

.feature-bullets li {
  font-size: 13.5px;
  color: #334155;
  padding-left: 18px;
  position: relative;
}

.feature-bullets li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  position: absolute;
  left: 0;
  top: 9px;
}

.mini-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 22px;
}

.mini-gallery img {
  aspect-ratio: 1 / 1;
  width: 100%;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.highlight-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 22px;
}

.highlight-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
}

.highlight-item strong {
  display: block;
  font-size: 13.5px;
  color: var(--text);
  margin-bottom: 2px;
}

.highlight-item span {
  font-size: 12px;
  color: var(--subtle);
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 18px;
  border-top: 1px dashed var(--border);
}

/* Capabilities Grid */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.cap-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}

.cap-num {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 10px;
  display: block;
}

.cap-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.cap-card p {
  font-size: 13.5px;
  color: var(--muted);
}

/* Compliance & Legal Strip */
.legal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.legal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}

.legal-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.legal-card p {
  font-size: 13.5px;
  color: var(--muted);
}

.legal-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
}

/* About & Contact */
.about-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 22px;
  align-items: stretch;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 26px 28px;
}

.panel-about {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}

.panel h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}

.panel p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 10px;
  line-height: 1.8;
}

.panel p:last-child {
  margin-bottom: 0;
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
}

.about-tags span {
  font-size: 12px;
  font-weight: 500;
  color: var(--accent-dark);
  background: var(--accent-soft);
  border: 1px solid #cffafe;
  padding: 4px 11px;
  border-radius: 99px;
}

.info-list {
  list-style: none;
}

.info-list li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 13.5px;
}

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

.info-list span {
  color: var(--subtle);
}

.info-list strong {
  color: var(--text);
  text-align: right;
  font-weight: 600;
}

/* Subpages (Product Detail & Legal) */
.page-hero {
  padding: 48px 0 36px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.breadcrumb {
  font-size: 13px;
  color: var(--subtle);
  margin-bottom: 16px;
}

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

.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.cake-showcase {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.cake-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.cake-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.cake-item-body {
  padding: 14px 16px;
}

.cake-item-body h4 {
  font-size: 15px;
  margin-bottom: 4px;
}

.cake-item-body p {
  font-size: 12.5px;
  color: var(--subtle);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 24px;
}

.faq-item h4 {
  font-size: 15.5px;
  margin-bottom: 8px;
}

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

.legal-doc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px 40px;
  margin: 36px 0 64px;
}

.legal-doc h2 {
  font-size: 20px;
  margin: 28px 0 12px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.legal-doc h2:first-of-type {
  margin-top: 8px;
  padding-top: 0;
  border-top: none;
}

.legal-doc p,
.legal-doc li {
  font-size: 14.5px;
  color: var(--muted);
  margin-bottom: 10px;
}

.legal-doc ul {
  margin: 8px 0 16px 22px;
}

/* Footer */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 36px 0 44px;
  color: var(--subtle);
  font-size: 13px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links a:hover,
.footer-icp a:hover {
  color: var(--accent);
}

.footer-icp {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px dashed var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 12.5px;
}

@media (max-width: 920px) {
  .hero h1 { font-size: 32px; }
  .hero-metrics,
  .cap-grid,
  .cake-showcase { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-grid,
  .legal-grid,
  .detail-grid,
  .about-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .nav-inner {
    flex-direction: column;
    height: auto;
    padding: 14px 0;
    gap: 10px;
  }
  nav { gap: 16px; flex-wrap: wrap; justify-content: center; }
  .hero { padding: 48px 0 42px; }
  .hero h1 { font-size: 26px; }
  .hero-metrics,
  .cap-grid,
  .cake-showcase,
  .highlight-strip { grid-template-columns: 1fr; }
  .legal-doc { padding: 24px 20px; }
}
