:root {
  --brand-primary: #1664ff;
  --brand-primary-hover: #0e52d9;
  --brand-cyan: #00b4ff;
  --brand-dark: #0f172a;
  --text-main: #1d2129;
  --text-secondary: #4e5969;
  --text-muted: #86909c;
  --bg-page: #f7f8fa;
  --bg-surface: #ffffff;
  --bg-subtle: #f2f5fc;
  --border-color: #e5e8ef;
  --border-hover: #b8d1ff;
  --page-width: 1200px;
  --page-gutter: clamp(20px, 3vw, 40px);
  font-family: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", Inter, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-main);
  background: var(--bg-page);
  line-height: 1.65;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; min-width: 320px; background: var(--bg-page); color: var(--text-main); -webkit-font-smoothing: antialiased; }
a { text-decoration: none; transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease; }

/* Douyin Open Platform Sticky Header */
.platform-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: 68px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(229, 232, 239, 0.9);
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 12px max(var(--page-gutter), calc((100% - var(--page-width)) / 2));
  flex-wrap: wrap;
}
.platform-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #1d2129;
  white-space: nowrap;
}
.platform-brand strong {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.platform-brand strong span {
  font-size: 12px;
  font-weight: 600;
  color: #4e5969;
  margin-left: 8px;
  padding: 2px 8px;
  background: #f2f3f5;
  border-radius: 4px;
}
.logo-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  color: #fff;
  background: linear-gradient(135deg, #1664ff 0%, #00b4ff 100%);
  box-shadow: 0 4px 12px rgba(22, 100, 255, 0.28);
  font-size: 19px;
  font-weight: 900;
}
.platform-header nav {
  display: flex;
  gap: 22px;
  flex: 1;
  min-width: 0;
  align-items: center;
  flex-wrap: wrap;
}
.platform-header nav a {
  color: #4e5969;
  font-size: 14px;
  font-weight: 500;
  padding: 6px 2px;
  position: relative;
  white-space: nowrap;
}
.platform-header nav a:hover,
.platform-header nav a[aria-current="page"] {
  color: var(--brand-primary);
  font-weight: 600;
}
.platform-header nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  border-radius: 2px;
  background: var(--brand-primary);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.console-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--brand-primary);
  font-size: 13px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 6px;
  border: 1px solid rgba(22, 100, 255, 0.28);
  background: rgba(22, 100, 255, 0.04);
  white-space: nowrap;
}
.console-link:hover {
  background: var(--brand-primary);
  color: #fff;
  border-color: var(--brand-primary);
}
.console-link.solid {
  background: var(--brand-primary);
  color: #fff;
  border-color: var(--brand-primary);
  box-shadow: 0 4px 12px rgba(22, 100, 255, 0.22);
}
.console-link.solid:hover {
  background: var(--brand-primary-hover);
}

/* Hero Banner (Douyin Open Platform Tech Style) */
.platform-hero {
  background:
    radial-gradient(circle at 82% 24%, rgba(0, 180, 255, 0.14), transparent 36%),
    radial-gradient(circle at 18% 80%, rgba(22, 100, 255, 0.10), transparent 40%),
    linear-gradient(135deg, #f4f8ff 0%, #ffffff 52%, #edf5ff 100%);
  border-bottom: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}
.hero-inner {
  max-width: var(--page-width);
  margin: auto;
  min-height: 540px;
  padding: 64px var(--page-gutter) 82px;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  align-items: center;
  gap: 44px;
}
.hero-label,
.section-intro > p,
.scenario-inner > div > p,
.developer-banner > div > p {
  color: var(--brand-primary);
  letter-spacing: 0.12em;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  margin: 0 0 10px;
}
.hero-label span {
  display: inline-block;
  width: 20px;
  height: 2px;
  background: linear-gradient(90deg, #1664ff, #00b4ff);
  vertical-align: middle;
  margin-right: 8px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(22, 100, 255, 0.08);
  border: 1px solid rgba(22, 100, 255, 0.18);
  color: var(--brand-primary);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 14px;
}
.hero-badge i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #00b42a;
  display: inline-block;
  box-shadow: 0 0 0 4px rgba(0, 180, 42, 0.15);
}
.hero-content h1 {
  font-size: clamp(36px, 3.6vw, 52px);
  line-height: 1.18;
  letter-spacing: -0.03em;
  margin: 14px 0 20px;
  color: #1d2129;
  font-weight: 800;
}
.hero-content h1 span {
  background: linear-gradient(90deg, #1664ff 0%, #0099ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-content > p:not(.hero-label) {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.8;
  margin: 0;
}
.hero-buttons {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 24px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, #1664ff 0%, #0e52d9 100%);
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 8px 20px rgba(22, 100, 255, 0.24);
  border: none;
  cursor: pointer;
}
.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(22, 100, 255, 0.32);
}
.secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 20px;
  border-radius: 8px;
  border: 1px solid #d0d7e2;
  background: #fff;
  color: #1d2129;
  font-weight: 600;
  font-size: 14px;
}
.secondary:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}
.hero-tags {
  display: flex;
  gap: 8px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.hero-tags span {
  background: #fff;
  color: #4e5969;
  border: 1px solid #e5e8ef;
  border-radius: 6px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 500;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03);
}
.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(229, 232, 239, 0.85);
}
.hero-metrics div strong {
  display: block;
  font-size: 20px;
  font-weight: 800;
  color: #1d2129;
}
.hero-metrics div small {
  font-size: 12px;
  color: var(--text-muted);
}

/* Orbital Ecosystem Visual */
.ecosystem {
  height: 420px;
  position: relative;
}
.orbit {
  position: absolute;
  border: 1px dashed #b8d1ff;
  border-radius: 50%;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.orbit-one { width: 270px; height: 270px; border-style: solid; border-color: #cfe1ff; }
.orbit-two { width: 400px; height: 400px; }
.core {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 148px;
  height: 148px;
  border-radius: 50%;
  background: linear-gradient(145deg, #ffffff, #f2f7ff);
  border: 2px solid #d8e7ff;
  box-shadow: 0 18px 48px rgba(22, 100, 255, 0.16);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.core span {
  font-size: 30px;
  font-weight: 900;
  background: linear-gradient(135deg, #1664ff, #00b4ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.core strong { color: #1d2129; font-size: 16px; font-weight: 800; }
.core small { color: var(--text-muted); font-size: 11px; }
.satellite {
  position: absolute;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #dce7f9;
  border-radius: 12px;
  padding: 11px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 28px rgba(22, 100, 255, 0.08);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.satellite:hover {
  transform: translateY(-3px);
  border-color: var(--brand-primary);
}
.satellite i {
  font-style: normal;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #eaf2ff;
  color: var(--brand-primary);
  font-size: 17px;
  font-weight: 700;
}
.satellite b { display: block; color: #1d2129; font-size: 13px; }
.satellite small { display: block; color: var(--text-muted); font-size: 11px; }
.sat-sdk { left: 0; top: 56px; }
.sat-pack { right: 0; top: 56px; }
.sat-channel { left: 6px; bottom: 56px; }
.sat-data { right: 6px; bottom: 56px; }

/* 4-Column Quick Links Dock */
.quick-links {
  width: calc(100% - 2 * var(--page-gutter));
  max-width: var(--page-width);
  margin: -38px auto 0;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.06);
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
}
.quick-links a {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 22px 22px;
  color: #1d2129;
  border-right: 1px solid var(--border-color);
  background: #fff;
}
.quick-links a:last-child { border-right: 0; }
.quick-links a:hover {
  background: #f5f9ff;
}
.quick-links > a > span:last-child {
  margin-left: auto;
  color: var(--brand-primary);
  font-weight: 700;
}
.quick-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #eaf2ff;
  color: var(--brand-primary);
  font-size: 19px;
  flex-shrink: 0;
}
.quick-links b { display: block; font-size: 14px; font-weight: 700; color: #1d2129; }
.quick-links small { display: block; color: var(--text-muted); font-size: 12px; margin-top: 2px; }

/* Sections & Capability Cards */
.platform-section {
  max-width: var(--page-width);
  margin: auto;
  padding: 78px var(--page-gutter);
}
.section-intro { text-align: center; max-width: 760px; margin: 0 auto; }
.section-intro h2,
.scenario-inner h2,
.developer-banner h2 {
  color: #1d2129;
  font-size: clamp(26px, 2.6vw, 34px);
  letter-spacing: -0.02em;
  line-height: 1.32;
  margin: 10px 0 12px;
  font-weight: 800;
}
.section-intro span,
.scenario-copy { color: var(--text-secondary); font-size: 15px; }

.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 42px;
}
.capability-grid article {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.capability-grid article:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(22, 100, 255, 0.08);
  border-color: var(--border-hover);
}
.cap-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 11px;
  background: linear-gradient(135deg, #eaf2ff, #dbeafe);
  color: var(--brand-primary);
  font-size: 21px;
  font-weight: 700;
}
.capability-grid h3 { color: #1d2129; font-size: 19px; margin: 18px 0 8px; font-weight: 700; }
.capability-grid p { color: var(--text-secondary); font-size: 13.5px; margin: 0 0 14px; line-height: 1.7; }
.capability-grid ul {
  padding: 14px 0 0;
  margin: 0 0 18px;
  list-style: none;
  color: #4e5969;
  font-size: 13px;
  border-top: 1px solid #f0f2f5;
  flex: 1;
}
.capability-grid li {
  margin: 8px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.capability-grid li::before {
  content: "✓";
  color: var(--brand-primary);
  font-weight: 800;
  font-size: 12px;
}
.capability-grid a,
.blue-link {
  color: var(--brand-primary);
  font-weight: 600;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.capability-grid a:hover,
.blue-link:hover { color: var(--brand-primary-hover); }

/* 12-Project 3-Layer Architecture Matrix */
.arch-matrix {
  display: grid;
  gap: 20px;
  margin-top: 38px;
}
.arch-layer {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 24px 26px;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.03);
}
.arch-layer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f0f2f5;
}
.arch-layer-head h3 {
  margin: 0;
  font-size: 18px;
  color: #1d2129;
  display: flex;
  align-items: center;
  gap: 10px;
}
.arch-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: #eaf2ff;
  color: var(--brand-primary);
  font-size: 12px;
  font-weight: 700;
}
.arch-projects {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.arch-item {
  padding: 16px;
  border-radius: 10px;
  background: #f8fafd;
  border: 1px solid #e6eefb;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.arch-item:hover {
  border-color: var(--brand-primary);
  background: #f2f7ff;
}
.arch-item code {
  font-size: 12px;
  color: var(--brand-primary);
  font-weight: 700;
}
.arch-item strong {
  font-size: 14px;
  color: #1d2129;
}
.arch-item p {
  margin: 0;
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Scenario Section */
.scenario-section {
  background: linear-gradient(180deg, #f0f5ff 0%, #f7f9fc 100%);
  border-top: 1px solid #e5edf8;
  border-bottom: 1px solid #e5edf8;
}
.scenario-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 54px;
  align-items: center;
}
.scenario-cards { display: grid; gap: 14px; }
.scenario-cards article {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #dce8f8;
  padding: 22px 24px;
  box-shadow: 0 6px 18px rgba(22, 100, 255, 0.04);
}
.scenario-cards span {
  color: var(--brand-primary);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.scenario-cards h3 { color: #1d2129; font-size: 17px; margin: 6px 0 8px; }
.scenario-cards p { color: var(--text-secondary); font-size: 13px; margin: 0; line-height: 1.7; }

/* 4-Step Pipeline */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  padding: 0;
  list-style: none;
  margin-top: 42px;
}
.steps li {
  background: #fff;
  border: 1px solid var(--border-color);
  border-top: 3px solid var(--brand-primary);
  border-radius: 12px;
  padding: 22px;
}
.steps b {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 6px;
  background: #eaf2ff;
  color: var(--brand-primary);
  font-size: 12px;
  font-weight: 800;
}
.steps h3 { color: #1d2129; font-size: 16px; margin: 12px 0 6px; }
.steps p { color: var(--text-secondary); font-size: 13px; margin: 0; }

/* Developer Banner */
.developer-banner {
  background: linear-gradient(125deg, #1664ff 0%, #0945c2 60%, #0b2d78 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 58px max(var(--page-gutter), calc((100% - var(--page-width)) / 2));
}
.developer-banner h2 { color: #fff; margin: 8px 0; }
.developer-banner > div > p { color: #9ec5ff; }
.developer-banner > div > span { color: #dbeafe; font-size: 14px; }
.developer-banner .primary {
  background: #fff;
  color: var(--brand-primary) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
}

/* Unified Footer */
.platform-footer {
  max-width: var(--page-width);
  margin: auto;
  padding: 52px var(--page-gutter) 40px;
  display: grid;
  grid-template-columns: 1.8fr repeat(4, 1fr);
  gap: 28px;
  color: var(--text-secondary);
  font-size: 13px;
}
.platform-footer > div { display: flex; flex-direction: column; gap: 9px; }
.platform-footer b { color: #1d2129; font-size: 14px; margin-bottom: 4px; }
.platform-footer a { color: var(--text-secondary); }
.platform-footer a:hover { color: var(--brand-primary); }
.footer-brand b { font-size: 17px; }
.footer-brand p { margin: 4px 0; color: var(--text-muted); font-size: 13px; }
.platform-footer > small {
  grid-column: 1 / -1;
  border-top: 1px solid var(--border-color);
  padding-top: 22px;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 1024px) {
  .quick-links, .arch-projects { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quick-links a:nth-child(2) { border-right: 0; }
  .quick-links a:nth-child(1), .quick-links a:nth-child(2) { border-bottom: 1px solid var(--border-color); }
  .capability-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .platform-footer { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 780px) {
  .platform-header { min-height: 64px; padding: 14px 18px; gap: 12px; }
  .platform-header nav { order: 3; flex: 0 0 100%; gap: 10px 16px; padding-top: 10px; border-top: 1px solid #edf2f8; }
  .hero-inner, .scenario-inner { display: block; min-height: 0; padding: 40px 20px 56px; }
  .hero-metrics { grid-template-columns: repeat(2, 1fr); }
  .ecosystem { height: 310px; width: 100%; max-width: 390px; margin: 24px auto 0; }
  .orbit-one { width: 200px; height: 200px; }
  .orbit-two { width: 290px; height: 290px; }
  .core { width: 118px; height: 118px; }
  .sat-sdk, .sat-pack { top: 28px; }
  .sat-channel, .sat-data { bottom: 28px; }
  .quick-links, .capability-grid, .steps, .arch-projects { grid-template-columns: 1fr; }
  .quick-links a { border-right: 0 !important; border-bottom: 1px solid var(--border-color); }
  .platform-section { padding: 48px 20px; }
  .developer-banner { display: block; padding: 40px 22px; }
  .developer-banner .primary { margin-top: 20px; }
  .platform-footer { grid-template-columns: 1fr 1fr; padding: 36px 20px; }
  .footer-brand { grid-column: 1 / -1; }
  .desktop-break { display: none; }
}
