/* ============================================================
   assets/style.css — 慧米云系统官网全局共享样式
   ============================================================ */

/* ---- CSS Custom Properties ---- */
:root {
  --ink: #0d1b2a;
  --muted: #5c6f82;
  --soft: #f5f9fb;
  --line: #dce8ee;
  --blue: #1677ff;
  --cyan: #13c2c2;
  --green: #20c997;
  --primary: #1677ff;
  --primary-dark: #0958d9;
  --primary-soft: #eef7ff;
  --mint: #e7fbf8;
  --amber: #ffad33;
  --white: #ffffff;
  --shadow: 0 22px 58px rgba(15, 63, 92, 0.12);
  --shadow-sm: 0 14px 34px rgba(17, 61, 89, 0.08);
  --radius: 8px;
  --header-h: 72px;
  --content-w: 1180px;
}

/* ---- Reset ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  letter-spacing: 0;
  padding-top: var(--header-h);
}

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

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

/* ---- Layout ---- */
.page {
  overflow: hidden;
}

.container {
  width: min(var(--content-w), calc(100% - 40px));
  margin: 0 auto;
}

/* ---- Header / Navigation ---- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.96), rgba(241, 249, 255, 0.92));
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(220, 232, 238, 0.78);
  box-shadow: 0 12px 34px rgba(15, 63, 92, 0.08);
}

.nav {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  white-space: nowrap;
  color: var(--ink);
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--primary);
  display: grid;
  place-items: center;
  color: var(--white);
  box-shadow: 0 8px 18px rgba(22, 119, 255, 0.22);
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: #1f3449;
  font-size: 16px;
  font-weight: 700;
}

.nav-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 10px;
  border-radius: 8px;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 4px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #1677ff, #13c2c2);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.2s ease;
}

.nav-links a:hover {
  color: #0958d9;
  background: rgba(22, 119, 255, 0.07);
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

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

.mobile-menu {
  display: none;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: var(--white);
  background: var(--primary);
  box-shadow: 0 12px 28px rgba(22, 119, 255, 0.24);
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-secondary {
  color: #0958d9;
  background: #eef7ff;
  border-color: #c7ddff;
}

.icon-btn {
  width: 42px;
  padding: 0;
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line);
}

/* ---- Sections ---- */
section {
  padding: 72px 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}

.section-kicker {
  margin: 0 0 10px;
  color: #0958d9;
  font-size: 14px;
  font-weight: 800;
}

h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.28;
  letter-spacing: 0;
}

/* ---- Capability / Scene / Article Cards ---- */
.capability-card,
.scene-card,
.article-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 14px 34px rgba(17, 61, 89, 0.06);
}

.capability-card h3,
.scene-card h3,
.article-card h3 {
  margin: 18px 0 10px;
  font-size: 18px;
  letter-spacing: 0;
}

.capability-card p,
.scene-card p,
.article-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
  font-size: 15px;
}

.capability-card:hover {
  transform: translateY(-2px);
  border-color: #9fd8e1;
  box-shadow: 0 18px 38px rgba(17, 61, 89, 0.09);
}

.icon-wrap {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--cyan);
  background: var(--primary-soft);
  border: 1px solid #c7ddff;
}

/* ---- Tags ---- */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.tag {
  padding: 7px 10px;
  border-radius: 999px;
  background: #eef7ff;
  color: #0958d9;
  border: 1px solid #c7ddff;
  font-size: 13px;
  font-weight: 700;
}

/* ---- Floating Contact ---- */
.floating-contact {
  position: fixed;
  right: 18px;
  top: 50%;
  z-index: 40;
  transform: translateY(-50%);
  display: grid;
  gap: 10px;
}

.floating-contact a {
  width: 112px;
  min-height: 86px;
  padding: 12px 10px;
  border: 1px solid #c7ddff;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 34px rgba(17, 61, 89, 0.14);
  color: #0d1b2a;
  display: grid;
  place-items: center;
  gap: 7px;
  text-align: center;
  font-size: 13px;
  font-weight: 800;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.floating-contact a:hover {
  transform: translateY(-2px);
  border-color: #8fc9ff;
  box-shadow: 0 18px 38px rgba(17, 61, 89, 0.18);
}

.contact-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  color: #fff;
  background: #1677ff;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 18px rgba(22, 119, 255, 0.22);
}

.contact-icon svg {
  width: 18px;
  height: 18px;
}

.contact-icon-gif {
  background: #1677ff url("customer-service.gif") center / 34px 34px no-repeat;
}

.phone-number {
  display: block;
  margin-top: 2px;
  color: #0958d9;
  font-size: 12px;
  font-weight: 900;
  word-break: keep-all;
}

/* ---- Footer ---- */
.site-footer {
  padding: 34px 0;
  background: #071b27;
  color: rgba(255, 255, 255, 0.7);
}

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

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 14px;
}

/* ---- Breadcrumb (shared for sub-pages) ---- */
.breadcrumb {
  color: #5f7488;
  font-size: 14px;
  margin-bottom: 16px;
}

.breadcrumb a {
  color: #1677ff;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* ---- Logos bar ---- */
.logos {
  position: relative;
  z-index: 3;
  margin-top: 0;
  padding: 18px 0;
  border-top: 1px solid rgba(220, 232, 238, 0.9);
  border-bottom: 1px solid rgba(220, 232, 238, 0.9);
  color: #6f8291;
}

.logo-row {
  display: grid;
  grid-template-columns: 1.1fr repeat(4, 1fr);
  align-items: center;
  gap: 18px;
  font-size: 14px;
}

.logo-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 8px;
  background: #f7fbff;
  border: 1px solid #c7ddff;
  font-weight: 700;
  color: #344b5f;
}

/* ---- Workflow / Solutions ---- */
.workflow {
  background: #f5fafb;
}

.workflow-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 34px;
  align-items: center;
}

.flow-list {
  display: grid;
  gap: 14px;
}

.flow-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  padding: 18px;
  border: 1px solid #d9eaef;
  border-radius: var(--radius);
  background: var(--white);
  color: inherit;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.flow-item:hover {
  transform: translateY(-2px);
  border-color: #9fd8e1;
  box-shadow: 0 18px 38px rgba(17, 61, 89, 0.09);
}

.flow-no {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #0958d9;
  background: var(--mint);
  font-weight: 900;
}

.flow-item strong {
  display: block;
  margin-bottom: 6px;
}

.flow-item span {
  color: var(--muted);
  line-height: 1.65;
  font-size: 14px;
}

/* ---- Growth Panel ---- */
.growth-panel {
  padding: 28px;
  border-radius: 8px;
  background: #0b2838;
  color: var(--white);
  box-shadow: var(--shadow);
}

.growth-panel h3 {
  margin: 0 0 22px;
  font-size: 22px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.metric {
  padding: 18px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.metric strong {
  display: block;
  font-size: 26px;
}

.metric span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

/* ---- Solution Scenes ---- */
.solution-scenes {
  margin-top: 34px;
}

.solution-proof {
  margin-top: 40px;
}

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

.scene-card {
  display: block;
  padding: 26px;
  color: inherit;
}

/* ---- Articles section ---- */
.articles {
  background: #f6fafb;
}

.about {
  background: #ffffff;
}

.article-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tab {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid #cfe3ea;
  background: var(--white);
  color: #38566b;
  font-weight: 700;
  cursor: pointer;
}

.tab.is-active {
  color: var(--white);
  background: var(--primary);
  border-color: var(--primary);
}

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

.article-card {
  overflow: hidden;
}

.article-card h3 a:hover {
  color: var(--primary);
}

.article-media {
  min-height: 146px;
  padding: 20px;
  background: #eef7ff;
  color: #103c50;
  border-bottom: 1px solid #c7ddff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.article-media span {
  font-size: 13px;
  font-weight: 800;
  color: var(--primary-dark);
}

.article-media strong {
  font-size: 18px;
  line-height: 1.3;
}

.article-body {
  padding: 22px;
}

.article-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  color: #7b8c99;
  font-size: 13px;
}

/* ---- About section ---- */
.about-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 28px;
  align-items: stretch;
}

.about-panel,
.about-proof {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 14px 34px rgba(17, 61, 89, 0.06);
}

.about-panel {
  padding: 28px;
}

.about-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.about-proof {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  overflow: hidden;
}

.proof-item {
  padding: 26px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.proof-item:nth-child(2n) {
  border-right: 0;
}

.proof-item:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.proof-item strong {
  display: block;
  color: #06445a;
  font-size: 28px;
  line-height: 1.1;
}

.proof-item span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
}

/* ---- About section (product detail) ---- */
.about-section {
  padding: 64px 0;
  background: var(--soft);
  border-top: 1px solid var(--line);
}

.about-section .section-title {
  font-size: 28px;
  text-align: center;
  margin-bottom: 12px;
}

.about-section .section-desc {
  max-width: 780px;
  margin: 0 auto 36px;
  text-align: center;
  color: var(--muted);
  line-height: 1.8;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 36px;
}

.about-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 14px 34px rgba(17, 61, 89, 0.06);
  transition: box-shadow 0.25s;
}

.about-card:hover {
  box-shadow: var(--shadow-sm);
}

.about-card h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
  color: var(--ink);
  margin-bottom: 10px;
}

.about-card h3 i {
  color: var(--primary);
  width: 20px;
  height: 20px;
}

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

.about-culture {
  text-align: center;
  margin-bottom: 28px;
}

.about-culture h3 {
  font-size: 18px;
  margin-bottom: 16px;
  color: var(--ink);
}

.culture-items {
  display: flex;
  justify-content: center;
  gap: 36px;
  flex-wrap: wrap;
}

.culture-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.culture-item strong {
  color: var(--primary-dark);
  font-size: 14px;
}

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

.about-contact {
  text-align: center;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.about-contact p {
  margin: 4px 0;
  color: var(--muted);
  font-size: 14px;
}

.about-contact a {
  color: var(--primary);
  text-decoration: none;
}

.about-contact a:hover {
  text-decoration: underline;
}

/* ---- Product Detail Feature Styles ---- */
.detail-hero-img {
  width: 100%;
  border-radius: 12px;
  margin: 24px 0;
  box-shadow: 0 8px 28px rgba(15, 63, 92, 0.1);
  display: block;
}

.detail-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 20px 0;
}

.detail-feature-item {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.detail-feature-item h3 {
  font-size: 16px;
  margin: 0 0 6px;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}

.detail-feature-item h3 i {
  width: 20px;
  height: 20px;
  color: var(--primary);
}

.detail-feature-item p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

.detail-scenarios {
  margin: 20px 0;
  padding-left: 24px;
}

.detail-scenarios li {
  margin: 8px 0;
  line-height: 1.6;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.detail-tag {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
}

@media (max-width: 640px) {
  .detail-features {
    grid-template-columns: 1fr;
  }
}

/* ---- CTA ---- */
.cta {
  padding: 78px 0;
  background: #0b2838;
  color: var(--white);
}

.cta-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 28px;
}

.cta h2 {
  max-width: 760px;
}

.cta p {
  max-width: 620px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.8;
}

/* ---- Hero Carousel (shared across pages that need it) ---- */
.hero {
  position: relative;
  padding: 0;
  background: #eef7ff;
}

.hero-banner {
  position: relative;
  min-width: 0;
  width: 100%;
  max-width: none;
}

.hero .hero-banner {
  width: 100%;
  margin: 0;
}

.hero-banner-viewport {
  overflow: hidden;
  position: relative;
  height: calc(100svh - 72px);
  min-height: 640px;
  border-radius: 0;
  box-shadow: none;
}

.hero-banner-track {
  height: 100%;
  display: flex;
  transition: transform 0.42s ease;
}

.hero-banner-slide {
  position: relative;
  min-width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  background: #0d3a76;
}

.hero-banner-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(8, 24, 48, 0.88) 0%, rgba(8, 35, 70, 0.72) 38%, rgba(8, 35, 70, 0.18) 70%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.2));
}

.hero-banner-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-banner-content {
  position: relative;
  z-index: 2;
  width: min(1240px, 70vw);
  height: 100%;
  min-height: 0;
  padding: 64px 0 86px max(52px, calc((100vw - 1180px) / 2 + 24px));
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  width: fit-content;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  backdrop-filter: blur(12px);
}

h1,
.hero-slide-title {
  margin: 22px 0 18px;
  color: #ffffff;
  max-width: 980px;
  font-size: clamp(44px, 4vw, 60px);
  line-height: 1.15;
  letter-spacing: 0;
  word-break: keep-all;
  text-wrap: balance;
}

.hero-lead {
  margin: 0;
  max-width: 560px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 19px;
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.hero-points {
  display: none;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.point {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
}

.point strong {
  font-size: 16px;
  color: #ffffff;
}

.point span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
}

.hero-banner-footer {
  position: absolute;
  left: max(52px, calc((100vw - 1180px) / 2 + 24px));
  right: max(52px, calc((100vw - 1180px) / 2 + 24px));
  bottom: 28px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 0;
}

.hero-banner-dots {
  display: flex;
  align-items: center;
  gap: 9px;
}

.hero-banner-dot {
  width: 28px;
  height: 3px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
}

.hero-banner-dot.is-active {
  background: #ffffff;
}

.hero-banner-controls {
  display: flex;
  gap: 8px;
}

.hero-banner-btn {
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  backdrop-filter: blur(12px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* ---- List Pages (products, solutions, articles) ---- */
.list-page-bg {
  background: #f6fafb;
}

.list-hero {
  padding: 58px 0 34px;
  background: var(--primary-soft);
  border-bottom: 1px solid #d8e7ff;
}

.list-hero h1 {
  color: var(--ink);
  margin: 18px 0 14px;
  font-size: clamp(32px, 6vw, 48px);
  line-height: 1.2;
}

.list-hero .lead {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.85;
}

.list-main {
  padding: 46px 0 72px;
}

.article-list {
  display: grid;
  gap: 16px;
}

.article-item {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 22px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.article-item:hover {
  transform: translateY(-2px);
  border-color: #9fd8e1;
  box-shadow: var(--shadow-sm);
}

.article-type {
  min-height: 128px;
  border-radius: 8px;
  background: #eef7ff;
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 800;
  padding: 14px;
}

.article-item h2 {
  margin: 2px 0 10px;
  font-size: 24px;
  line-height: 1.35;
}

.article-item h2 a:hover {
  color: var(--primary);
}

.article-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
  color: #7a8b99;
  font-size: 14px;
}

.meta .tag {
  color: #0b8585;
  font-weight: 700;
}

/* ---- Detail Pages (product detail, solution detail, article detail) ---- */
.detail-main {
  width: min(820px, calc(100% - 36px));
  margin: 0 auto;
  padding: 40px 0 72px;
}

.detail-article {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.detail-article h1 {
  margin: 12px 0 18px;
  font-size: clamp(30px, 5vw, 44px);
  line-height: 1.2;
  color: var(--ink);
}

.detail-article h2 {
  margin-top: 34px;
  font-size: 24px;
  line-height: 1.35;
  scroll-margin-top: 92px;
}

.detail-article p {
  margin: 12px 0;
}

.detail-article .meta {
  color: #6a7d8c;
  font-size: 14px;
}

.detail-article .summary {
  padding: 16px 18px;
  border-left: 4px solid #1677ff;
  background: #eef7ff;
}

.point-list {
  margin: 12px 0 0;
  padding-left: 20px;
  color: #36546a;
}

.point-list li {
  margin: 6px 0;
}

/* ---- Filters for list pages ---- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.filter {
  padding: 8px 13px;
  border: 1px solid #c7ddff;
  border-radius: 999px;
  background: #fff;
  color: #38566b;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}

.filter.active {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
}

/* ---- Capability Grid (homepage) ---- */
.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.capability-card {
  display: block;
  padding: 24px;
  color: inherit;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

/* ============================================================
   Responsive — Shared
   ============================================================ */

/* ---- ≤ 980px ---- */
@media (max-width: 980px) {
  .nav-links,
  .nav-actions .btn-secondary {
    display: none;
  }

  .mobile-menu {
    display: inline-flex;
  }

  .nav-links.is-open {
    position: absolute;
    display: grid;
    top: var(--header-h);
    left: 20px;
    right: 20px;
    gap: 0;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    overflow: hidden;
    z-index: 40;
  }

  .nav-links.is-open a {
    padding: 16px 18px;
    border-bottom: 1px solid #eef4f6;
  }

  .nav-links.is-open a::after {
    display: none;
  }

  .workflow-layout,
  .about-layout,
  .cta-inner {
    grid-template-columns: 1fr;
  }

  .hero-banner-viewport {
    height: calc(100svh - 72px);
    min-height: 620px;
  }

  .hero-banner-content {
    width: min(620px, calc(100% - 56px));
    padding: 64px 0 104px 40px;
  }

  .capability-grid,
  .about-proof,
  .scene-grid,
  .article-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .logo-row > span:first-child {
    grid-column: 1 / -1;
  }

  .hero {
    padding-top: 0;
  }

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

/* ---- ≤ 640px ---- */
@media (max-width: 640px) {
  :root {
    --header-h: 64px;
  }

  .container {
    width: min(100% - 28px, var(--content-w));
  }

  .nav {
    height: var(--header-h);
  }

  .brand {
    font-size: 18px;
  }

  .nav-links.is-open {
    top: var(--header-h);
    left: 14px;
    right: 14px;
  }

  .hero-banner-viewport {
    height: calc(100svh - 64px);
    min-height: 680px;
  }

  .hero-banner-slide::before {
    background:
      linear-gradient(180deg, rgba(8, 24, 48, 0.9) 0%, rgba(8, 28, 55, 0.74) 52%, rgba(8, 28, 55, 0.42) 100%),
      linear-gradient(90deg, rgba(8, 24, 48, 0.62), rgba(8, 24, 48, 0.18));
  }

  .hero-banner-image {
    object-position: 62% center;
  }

  .hero-banner-content {
    width: auto;
    padding: 44px 22px 104px;
  }

  h1,
  .hero-slide-title {
    font-size: 32px;
    word-break: normal;
  }

  .hero-lead {
    font-size: 16px;
  }

  .capability-grid,
  .scene-grid,
  .article-grid,
  .metric-grid {
    grid-template-columns: 1fr;
  }

  .hero-points {
    gap: 8px;
  }

  .point {
    padding: 7px 10px;
  }

  .hero-banner-footer {
    left: 22px;
    right: 22px;
    bottom: 132px;
  }

  .section-head,
  .article-toolbar {
    display: grid;
    align-items: start;
  }

  section {
    padding: 62px 0;
  }

  .cta {
    padding: 58px 0;
  }

  /* Floating contact mobile */
  .floating-contact {
    top: auto;
    right: 14px;
    left: 14px;
    bottom: 14px;
    transform: none;
    grid-template-columns: repeat(2, 1fr);
  }

  .floating-contact a {
    width: auto;
    min-height: 56px;
    grid-template-columns: auto auto;
    justify-content: center;
    padding: 10px 12px;
  }

  .contact-icon {
    width: 30px;
    height: 30px;
  }

  /* List item mobile */
  .article-item {
    grid-template-columns: 1fr;
  }

  .article-type {
    min-height: 72px;
  }

  /* Detail pages */
  .detail-article {
    padding: 24px;
  }

  html {
    scroll-padding-top: 80px;
  }

  .detail-article h2 {
    scroll-margin-top: 80px;
  }

  .nav-links,
  .nav-actions .btn-secondary,
  .nav-actions .btn-primary {
    display: none;
  }

  .mobile-menu {
    display: inline-flex;
  }

  .nav-links.is-open a {
    padding: 16px 18px;
    border-bottom: 1px solid #eef4f6;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .culture-items {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }
}

/* ---- Contact Modal ---- */
body.modal-open {
  overflow: hidden;
}

.contact-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: fadeIn 0.2s ease;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.contact-modal-overlay.is-open {
  display: flex;
}

.contact-modal-box {
  background: #fff;
  border-radius: 20px;
  padding: 32px 28px 28px;
  max-width: 440px;
  width: 90%;
  position: relative;
  box-shadow: 0 25px 80px rgba(13, 27, 42, 0.18);
  animation: modalIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.contact-modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: #f0f2f5;
  border: none;
  font-size: 15px;
  color: #8c9daa;
  cursor: pointer;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  z-index: 1;
}

.contact-modal-close:hover {
  background: #e5e7eb;
  color: #0d1b2a;
  transform: rotate(90deg);
}

.contact-modal-header {
  text-align: center;
  margin-bottom: 24px;
}

.contact-modal-slogan {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: #f97316;
  background: linear-gradient(135deg, #fff7ed, #ffedd5);
  border: 1px solid #fed7aa;
  border-radius: 20px;
  padding: 4px 14px;
  margin-bottom: 12px;
  letter-spacing: 1px;
}

.contact-modal-title {
  font-size: 19px;
  font-weight: 800;
  color: #0d1b2a;
  margin: 0 0 4px;
  letter-spacing: -0.3px;
}

.contact-modal-subtitle {
  font-size: 13px;
  color: #94a3b8;
  margin: 0;
  font-weight: 400;
}

/* ---- 双列联系人卡片 ---- */
.contact-modal-list {
  display: flex;
  flex-direction: row;
  gap: 12px;
}

.contact-modal-person {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: #ffffff;
  border-radius: 14px;
  padding: 20px 12px 14px;
  box-shadow: 0 2px 8px rgba(13, 27, 42, 0.06);
  border: 1px solid #eef2f6;
  transition: all 0.2s;
}

.contact-modal-person:hover {
  box-shadow: 0 6px 20px rgba(13, 27, 42, 0.1);
  border-color: #d0d9e0;
  transform: translateY(-2px);
}

.contact-modal-person .popup-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  flex-shrink: 0;
}

.contact-modal-person .popup-name {
  font-size: 16px;
  font-weight: 700;
  color: #0d1b2a;
  margin-bottom: 2px;
}

.contact-modal-person .popup-title {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 500;
  margin-bottom: 6px;
}

.contact-modal-person .popup-phone-text {
  font-size: 16px;
  font-weight: 800;
  color: #0d1b2a;
  letter-spacing: 1px;
  margin-bottom: 10px;
  font-family: "SF Mono", "Fira Code", "Courier New", monospace;
}

.contact-modal-person a.popup-phone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #fff !important;
  background: linear-gradient(135deg, #1677ff, #4096ff);
  border-radius: 20px;
  padding: 7px 18px !important;
  text-decoration: none !important;
  transition: all 0.2s;
  border: none !important;
  width: auto !important;
  box-shadow: none !important;
}

.contact-modal-person a.popup-phone:hover {
  background: linear-gradient(135deg, #0958d9, #1677ff);
  box-shadow: 0 4px 12px rgba(22, 119, 255, 0.3) !important;
  transform: scale(1.05);
}
}

.contact-modal-person a.popup-phone {
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #1677ff !important;
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  width: auto !important;
  padding: 0 !important;
  border: none !important;
  background: none !important;
  box-shadow: none !important;
  text-decoration: none !important;
  margin-top: 2px;
}

.contact-modal-person a.popup-phone:hover {
  color: #0958d9 !important;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* ---- Contact popup hover ---- */
.contact-wrapper {
  position: relative;
}

.contact-trigger {
  display: grid !important;
  place-items: center !important;
  gap: 7px !important;
  text-align: center !important;
}

.contact-popups {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  display: none;
  flex-direction: column;
  gap: 10px;
  white-space: nowrap;
}

.contact-wrapper:hover .contact-popups {
  display: flex;
}

.contact-popup {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  background: none;
  border: none;
  box-shadow: none;
  animation: popupSlide 0.2s ease;
}

.popup-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1677ff, #4096ff);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
}

.popup-info {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.popup-name {
  font-size: 15px;
  font-weight: 700;
  color: #0d1b2a;
  line-height: 1.5;
}

.popup-title {
  font-size: 13px;
  color: #8c9daa;
  font-weight: 500;
  line-height: 1.5;
}

/* 电话 - 强制纯文字，不受floating-contact a影响 */
a.popup-phone {
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #1677ff !important;
  text-decoration: none !important;
  line-height: 1.5 !important;
  display: inline !important;
  width: auto !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  background: none !important;
  box-shadow: none !important;
  gap: 0 !important;
  place-items: initial !important;
  text-align: left !important;
  margin: 0 !important;
}

a.popup-phone:hover {
  color: #1677ff !important;
}

@keyframes popupSlide {
  from {
    opacity: 0;
    transform: translateX(8px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* 手机端 */
@media (max-width: 680px) {
  .contact-popups {
    display: none !important;
  }
}

.popup-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1677ff, #4096ff);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

.popup-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.popup-name {
  font-size: 13px;
  font-weight: 700;
  color: #0d1b2a;
}

.popup-title {
  font-size: 11px;
  color: #8c9daa;
  font-weight: 500;
}

.popup-phone {
  font-size: 13px;
  font-weight: 600;
  color: #1677ff;
  text-decoration: none;
  margin-top: 1px;
}

.popup-phone:hover {
  color: #0958d9;
  text-decoration: underline;
}

@keyframes popupSlide {
  from {
    opacity: 0;
    transform: translateX(10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* 手机端 - 浮动窗横排时隐藏popup */
@media (max-width: 680px) {
  .contact-popups {
    display: none !important;
  }
}
