/* Platform static pages — shared styles (from Vue SFC patterns) */
:root {
  --primary: #2453e8;
  --primary-light: #06c6df;
  --text: #1e293b;
  --text-muted: #64748b;
  --bg-alt: #f9fafc;
  --bg-section: #f5f7fa;
  --header-h: 64px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #333;
  line-height: 1.6;
  padding-top: var(--header-h);
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* —— Site header —— */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
  height: var(--header-h);
}
.site-header .inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.site-logo {
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
}
.site-logo span { color: var(--primary); }
.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
}
.site-nav a {
  color: #334155;
  font-size: 14px;
  font-weight: 500;
  padding: 6px 8px;
  border-radius: 4px;
  text-decoration: none;
}
.site-nav a:hover { background: rgba(30,80,226,.08); color: var(--primary); text-decoration: none; }
.site-nav a.active { color: var(--primary); background: rgba(30,80,226,.1); }

@media (max-width: 1024px) {
  .site-nav { max-height: 200px; overflow-y: auto; justify-content: flex-end; }
}

/* —— Site footer —— */
.site-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 48px 20px 24px;
  margin-top: 0;
}
.site-footer .inner {
  max-width: 1200px;
  margin: 0 auto;
}
.site-footer h3 {
  color: #f1f5f9;
  font-size: 16px;
  margin: 0 0 12px;
}
.site-footer .cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  margin-bottom: 32px;
}
.site-footer a { color: #cbd5e1; }
.site-footer a:hover { color: #fff; }
.site-footer .copy {
  border-top: 1px solid #334155;
  padding-top: 20px;
  text-align: center;
  font-size: 13px;
}

/* —— Page banner —— */
.page-banner {
  position: relative;
  min-height: 320px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.page-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.5);
}
.page-banner .banner-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 40px 20px;
  max-width: 900px;
}
.page-banner h1 {
  margin: 0 0 12px;
  font-size: clamp(28px, 5vw, 46px);
  font-weight: 700;
}
.page-banner .banner-content p {
  margin: 0;
  font-size: 18px;
  opacity: .95;
}

/* —— Platform sub-nav (product switcher) —— */
.platform-subnav {
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 0;
}
.platform-subnav .inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.platform-subnav a {
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 6px;
  color: #475569;
  text-decoration: none;
  border: 1px solid transparent;
}
.platform-subnav a:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
  text-decoration: none;
}
.platform-subnav a.active {
  background: rgba(30,80,226,.1);
  color: var(--primary);
  border-color: rgba(30,80,226,.2);
}

/* —— Sections (simple) —— */
.section {
  padding: 60px 0;
}
.section.alt { background: var(--bg-section); }
.section.alt2 { background: var(--bg-alt); }

.container, .section-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}
.section-header h2, .section-title {
  font-size: clamp(26px, 4vw, 34px);
  margin: 0 0 12px;
  color: var(--text);
  position: relative;
  display: inline-block;
}
.section-header .underline, .section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: var(--primary-light);
  margin: 12px auto 0;
}
.section-subtitle, .section-header .sub {
  color: #666;
  font-size: 16px;
  max-width: 700px;
  margin: 16px auto 0;
}

.intro-row {
  display: flex;
  align-items: center;
  gap: 48px;
}
.intro-row .intro-image { flex: 1; }
.intro-row .intro-text { flex: 1; }
.intro-row .intro-text p {
  font-size: 16px;
  line-height: 1.8;
  color: #555;
  margin: 0 0 16px;
}
.intro-row img {
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,.1);
}
@media (max-width: 768px) {
  .intro-row { flex-direction: column; }
}

/* AI 算法能力标签云 */
.algo-pill-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 8px 0 8px;
}
.algo-pill-cloud .algo-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  color: #334155;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  line-height: 1.3;
}
.algo-pill-cloud .algo-pill.is-hot {
  color: #2453e8;
  background: rgba(36, 83, 232, 0.08);
  border-color: rgba(36, 83, 232, 0.22);
  font-weight: 600;
}
.algo-domain-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
@media (max-width: 992px) {
  .algo-domain-grid { grid-template-columns: 1fr; }
}
.algo-domain-card {
  background: #fff;
  border-radius: 14px;
  border: 1px solid #e8eef8;
  padding: 22px 20px;
  box-shadow: 0 6px 20px rgba(15, 40, 100, 0.05);
}
.algo-domain-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 10px;
}
.algo-domain-card h3 i {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(36, 83, 232, 0.1);
  color: #2453e8;
  font-size: 16px;
}
.algo-domain-card > p {
  margin: 0 0 12px;
  font-size: 13px;
  color: #64748b;
  line-height: 1.55;
}
.algo-domain-card .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.algo-domain-card .tags span {
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 6px;
  background: #f8fafc;
  color: #475569;
  border: 1px solid #eef2f7;
}

/* Feature grids — desktop 4 columns (FAQ / capability cards) */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
@media (max-width: 1200px) {
  .features-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 576px) {
  .features-grid { grid-template-columns: 1fr; }
}
.feature-card {
  background: #fff;
  border-radius: 10px;
  padding: 24px 18px;
  box-shadow: 0 4px 14px rgba(0,0,0,.06);
  text-align: center;
  transition: transform .25s, box-shadow .25s;
  min-width: 0;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(0,0,0,.1);
}
.feature-card .feature-icon, .feature-card-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  background: rgba(48,113,242,.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--primary-light);
}
.feature-card h3 {
  margin: 0 0 10px;
  font-size: 19px;
  color: #333;
}
.feature-card p {
  margin: 0;
  font-size: 15px;
  color: #666;
  line-height: 1.65;
}

/* Solution pages: sticky anchor nav */
.solution-nav {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
  position: sticky;
  top: var(--header-h);
  z-index: 99;
}
.solution-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  max-width: 1200px;
  margin: 0 auto;
}
.solution-nav li { flex: 1; text-align: center; min-width: 0; }
.solution-nav a {
  display: block;
  padding: 18px 10px;
  color: #333;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  position: relative;
}
.solution-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 3px;
  background: var(--primary);
  transform: translateX(-50%);
  transition: width .25s;
}
.solution-nav a:hover,
.solution-nav a.active { color: var(--primary); }
.solution-nav a:hover::after,
.solution-nav a.active::after { width: 28px; }
@media (max-width: 768px) {
  .solution-nav { overflow-x: auto; }
  .solution-nav ul { width: max-content; padding: 0 12px; margin: 0 auto; }
  .solution-nav li { flex: none; }
  .solution-nav a { padding: 14px 16px; min-width: 120px; }
}

/* Overview section (solution) */
.overview-content {
  display: flex;
  gap: 48px;
  align-items: center;
}
.overview-text { flex: 1; }
.overview-text .highlight {
  font-size: 18px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 16px;
  border-left: 3px solid var(--primary);
  padding-left: 18px;
}
.overview-text p { color: #4b5563; line-height: 1.8; margin: 0 0 20px; }
.overview-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin-top: 28px;
}
.overview-features .feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.overview-features .feature-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: rgba(30,80,226,.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 20px;
}
.overview-features h4 { margin: 0 0 4px; font-size: 17px; color: var(--text); }
.overview-features .feature-item p { margin: 0; font-size: 14px; color: var(--text-muted); }
.overview-image { flex: 1; }
.overview-image img {
  border-radius: 10px;
  box-shadow: 0 20px 40px rgba(0,0,0,.1);
}
@media (max-width: 992px) {
  .overview-content { flex-direction: column-reverse; }
}

/* Architecture row */
.architecture-content {
  display: flex;
  gap: 48px;
  align-items: flex-start;
}
.architecture-image { flex: 1; }
.architecture-text { flex: 1; }
.architecture-layer, .arch-layer {
  margin-bottom: 22px;
  padding-left: 16px;
  border-left: 3px solid var(--primary);
}
.architecture-layer h4, .arch-layer h4 {
  margin: 0 0 8px;
  font-size: 18px;
  color: var(--text);
}
.architecture-layer p, .arch-layer p {
  margin: 0;
  color: #4b5563;
  line-height: 1.7;
}
@media (max-width: 992px) {
  .architecture-content { flex-direction: column; }
}

/* Advantages */
.advantages-content {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(440px, 1fr));
  gap: 20px;
}
@media (max-width: 500px) {
  .advantages-content { grid-template-columns: 1fr; }
}
.advantage-item {
  display: flex;
  gap: 16px;
  background: #fff;
  border-radius: 10px;
  padding: 24px;
  box-shadow: 0 4px 12px rgba(0,0,0,.06);
}
.advantage-number {
  font-size: 40px;
  font-weight: 800;
  color: rgba(30,80,226,.15);
  line-height: 1;
}
.advantage-info h3 { margin: 0 0 8px; font-size: 18px; }
.advantage-info p { margin: 0; color: var(--text-muted); font-size: 15px; }

/* Cases */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.case-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
  transition: transform .25s;
}
.case-card:hover { transform: translateY(-4px); }
.case-image {
  height: 200px;
  overflow: hidden;
}
.case-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s;
}
.case-card:hover .case-image img { transform: scale(1.05); }
.case-content { padding: 18px; }
.case-content h3 { margin: 0 0 8px; font-size: 17px; color: var(--text); }
.case-content p { margin: 0; font-size: 14px; color: var(--text-muted); line-height: 1.65; }

/* CTA / contact strip */
.contact-section {
  background: linear-gradient(135deg, #1e50e2 0%, #3071f2 100%);
  color: #fff;
  padding: 72px 20px;
  text-align: center;
}
.contact-section h2 {
  margin: 0 0 14px;
  color: #fff;
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 600;
}
.contact-section .desc {
  max-width: 720px;
  margin: 0 auto 28px;
  font-size: 17px;
  opacity: .95;
}
.contact-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px 32px;
  margin-bottom: 28px;
  font-size: 16px;
}
.contact-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: transform .2s, background .2s;
}
.btn-primary {
  background: #fff;
  color: var(--primary);
}
.btn-primary:hover { background: #f1f5f9; transform: translateY(-2px); text-decoration: none; }
.btn-outline {
  border: 2px solid #fff;
  color: #fff;
  background: transparent;
}
.btn-outline:hover { background: rgba(255,255,255,.12); transform: translateY(-2px); text-decoration: none; }

/* Environment page extras */
.page-section {
  padding: 72px 0;
}
.page-section.bg-white { background: #fff; }
.page-section.bg-light { background: #f8f9fa; }
.section-container {
  max-width: min(1200px, 92%);
  margin: 0 auto;
  padding: 0 20px;
}
.section-container .section-header h2 { text-align: center; }
.divider {
  width: 60px;
  height: 3px;
  background: #2d6ae3;
  margin: 12px auto 0;
}
.system-intro {
  display: flex;
  gap: 40px;
  align-items: center;
}
.system-intro .intro-content { flex: 1; }
.system-intro .intro-content p { color: #555; line-height: 1.8; margin-bottom: 16px; }
.system-intro .intro-image { flex: 1; }
.system-intro .intro-image img { border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.1); }
@media (max-width: 768px) {
  .system-intro { flex-direction: column; }
  .system-intro .intro-image {         order: -1; }
}

.feature-grid-3 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
@media (max-width: 1200px) {
  .feature-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 576px) {
  .feature-grid-3 { grid-template-columns: 1fr; }
}

.scenario-list .scenario-item {
  display: flex;
  gap: 36px;
  align-items: center;
  margin-bottom: 48px;
}
.scenario-list .scenario-item.reverse { flex-direction: row-reverse; }
.scenario-list .scenario-image { flex: 1; }
.scenario-list .scenario-image img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,.1);
}
.scenario-list .scenario-content { flex: 1; }
.scenario-list .scenario-content h3 {
  color: #2d6ae3;
  margin: 0 0 12px;
  font-size: 22px;
}
.scenario-list .scenario-content p { color: #666; line-height: 1.8; margin: 0; }
@media (max-width: 768px) {
  .scenario-list .scenario-item,
  .scenario-list .scenario-item.reverse { flex-direction: column; }
}

.advantage-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 992px) { .advantage-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 576px) { .advantage-list { grid-template-columns: 1fr; } }
.advantage-list .advantage-item { display: flex; gap: 14px; align-items: flex-start; }
.advantage-list .advantage-icon {
  width: 48px; height: 48px; min-width: 48px;
  background: rgba(45,106,227,.1);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #2d6ae3; font-size: 20px;
}

/* Door page */
.feature-list-check { margin-top: 20px; }
.feature-list-check .row {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 12px; font-size: 16px;
}
.feature-list-check i { color: var(--primary-light); }

.scenarios-list .scenario-row {
  display: flex;
  align-items: stretch;
  margin-bottom: 28px;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0,0,0,.06);
}
.scenarios-list .scenario-row:nth-child(even) { flex-direction: row-reverse; }
.scenarios-list .scenario-row .img { flex: 1; max-width: 50%; }
.scenarios-list .scenario-row .img img { width: 100%; height: 280px; object-fit: cover; }
.scenarios-list .scenario-row .info {
  flex: 1; padding: 28px 36px;
}
@media (max-width: 768px) {
  .scenarios-list .scenario-row,
  .scenarios-list .scenario-row:nth-child(even) { flex-direction: column !important; }
  .scenarios-list .scenario-row .img { max-width: 100%; }
}

/* SVG architecture helper */
.arch-svg-wrap {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0,0,0,.1);
  background: #fff;
}

/* Long-form solution pages (community / cloud / hazardous) */
.solution-container .section {
  padding: 72px 0;
}
.solution-container .section.alt2 {
  background: #f9fafc;
}
.solution-container .section-header {
  text-align: center;
  margin-bottom: 48px;
}
.solution-container .section-header h2 {
  font-size: clamp(26px, 3.5vw, 34px);
  font-weight: 600;
  margin: 0 0 12px;
  color: #1e293b;
}
.section-line {
  width: 60px;
  height: 3px;
  background: #1e50e2;
  margin: 0 auto;
}


/* svg banner */
.page-banner[style*=".svg"] {
  background-color: #1f2f52;
  background-size: cover;
}
.architecture-content {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  align-items: start;
}
@media (max-width: 900px) {
  .architecture-content { grid-template-columns: 1fr; }
}
.architecture-layer {
  background: #fff;
  border-left: 3px solid var(--primary);
  padding: 14px 16px;
  margin-bottom: 12px;
  border-radius: 0 8px 8px 0;
  box-shadow: 0 2px 10px rgba(0,0,0,.04);
}
.architecture-layer h4 { margin: 0 0 6px; color: var(--text); }
.architecture-layer p { margin: 0; color: var(--text-muted); font-size: 14px; line-height: 1.65; }
.arch-svg-wrap {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 4px 18px rgba(36,83,232,.08);
}


/* solution-nav: keep tabs usable on narrow screens */
.solution-nav-scroll { scroll-margin-top: calc(var(--header-h) + 56px); }
section[id] { scroll-margin-top: calc(var(--header-h) + 56px); }
