/* ============================================
   OneTeam 官网 — 扁平 · 简约 · 大气
   ============================================ */

:root {
  --primary: #2c8db5;
  --primary-light: #e8f4f9;
  --primary-dark: #247397;
  --text: #111827;
  --text-secondary: #6b7280;
  --text-muted: #9ca3af;
  --border: #e5e7eb;
  --bg: #ffffff;
  --bg-section: #f9fafb;
  --bg-dark: #0f172a;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.06), 0 2px 8px rgba(0,0,0,0.04);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.08);
  --radius: 12px;
  --radius-sm: 8px;
  --header-h: 72px;
  --max-w: 1120px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px; line-height: 1.7;
  color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
body.nav-open { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

.skip-link {
  position: fixed; left: 16px; top: 16px; z-index: 1000;
  transform: translateY(-140%);
  background: var(--primary); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm);
  transition: transform 200ms;
}
.skip-link:focus { transform: translateY(0); }

.page-shell { width: min(var(--max-w), calc(100% - 48px)); margin: 0 auto; }
.section { padding: 100px 0; }
.section:nth-child(even) { background: var(--bg-section); }
.section-anchor { scroll-margin-top: calc(var(--header-h) + 20px); }
.section-heading { max-width: 680px; margin-bottom: 56px; }
.section-heading.centered { margin-left: auto; margin-right: auto; text-align: center; }

.eyebrow {
  display: inline-block;
  font-size: 13px; font-weight: 700; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--primary);
  background: var(--primary-light); padding: 4px 14px; border-radius: 999px;
  margin-bottom: 16px;
}

h1 { font-size: 56px; font-weight: 800; line-height: 1.12; letter-spacing: -0.02em; color: var(--text); margin-bottom: 20px; }
h2 { font-size: 36px; font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; color: var(--text); margin-bottom: 16px; }
h3 { font-size: 20px; font-weight: 600; line-height: 1.4; color: var(--text); margin-bottom: 8px; }
h4 { font-size: 18px; font-weight: 600; line-height: 1.4; color: var(--text); margin-bottom: 8px; }
p { color: var(--text-secondary); margin-bottom: 12px; }
.lead { font-size: 18px; color: var(--text-secondary); max-width: 600px; line-height: 1.8; }

/* ---- Header ---- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  height: var(--header-h);
  background: transparent;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  transition: background 300ms ease, border-color 300ms ease;
}
.site-header.is-scrolled {
  background: rgba(255,255,255,0.95);
  border-bottom-color: var(--border);
}
.site-header.is-scrolled .nav-link {
  color: var(--text-secondary);
}
.site-header.is-scrolled .nav-link:hover,
.site-header.is-scrolled .nav-link.is-active {
  color: var(--primary);
  background: var(--primary-light);
}
.site-header.is-scrolled .brand-text {
  color: #2c8db5;
}

.nav-shell {
  max-width: var(--max-w); height: 100%; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}

.brand { display: flex; align-items: center; gap: 10px; color: var(--text); }
.brand img { width: 36px; height: 36px; border-radius: 8px; }
.brand-text { font-weight: 800; font-size: 18px; letter-spacing: 0.06em; color: #2c8db5; }

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

.nav-link {
  display: inline-flex; align-items: center;
  height: 40px; padding: 0 14px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600;
  color: rgba(255,255,255,0.75); transition: all 180ms;
}
.nav-link:hover, .nav-link.is-active { color: #fff; background: rgba(255,255,255,0.12); }

.nav-cta {
  display: inline-flex; align-items: center;
  height: 40px; padding: 0 20px; border-radius: var(--radius-sm);
  background: var(--primary); color: #fff;
  font-size: 14px; font-weight: 600; transition: all 180ms; flex-shrink: 0;
}
.nav-cta:hover { background: var(--primary-dark); box-shadow: 0 8px 24px rgba(44,141,181,0.3); }
.nav-toggle { display: none; }

/* ---- Hero ---- */
.hero {
  width: 100%; height: 600px; display: flex; align-items: center;
  padding: 80px 0 60px;
  overflow: hidden; position: relative;
  background: #0b1628;
}

/* 全屏背景轮播 */
.hero-bg-slider {
  position: absolute; inset: 0;
  z-index: 0;
}
.hero-bg-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0;
  transition: opacity 800ms ease;
}
.hero-bg-slide.is-active {
  opacity: 1;
}

.hero-overlay {
  position: absolute; inset: 0;
  z-index: 1;
  background: linear-gradient(135deg, rgba(11,22,40,0.88) 0%, rgba(11,22,40,0.75) 50%, rgba(11,22,40,0.5) 100%);
}
.hero-layout {
  position: relative; z-index: 2; width: 100%; max-width: 820px; margin: 0 auto; padding: 0 24px;
  text-align: center;
}
.hero-layout .eyebrow { margin-left: auto; margin-right: auto; }
.hero-lead { margin-left: auto; margin-right: auto; }
.hero-actions { justify-content: center; }
.hero-metrics { justify-content: center; }
.hero h1 {
  font-size: 48px; font-weight: 800; line-height: 1.15; letter-spacing: -0.02em;
  margin-bottom: 16px; color: #fff;
}
.hero-lead {
  font-size: 16px; color: rgba(255,255,255,0.7); max-width: 520px;
  margin-bottom: 28px; line-height: 1.8;
}
.hero-copy .eyebrow {
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.85);
}

/* 幻灯片文字切换 */
.hero-slide-text {
  position: relative;
  min-height: 160px;
}
.hero-text-item {
  position: absolute; inset: 0;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 500ms ease, transform 500ms ease;
  pointer-events: none;
}
.hero-text-item.is-active {
  position: relative;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 48px; padding: 0 24px; border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 600;
  border: 1px solid transparent; transition: all 200ms;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); box-shadow: 0 8px 24px rgba(26,86,219,0.3); }
.btn-secondary { border-color: var(--border); background: #fff; color: var(--text); }
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); }

.hero-metrics { display: flex; gap: 12px; margin-top: 36px; }
.hero-metrics > div {
  border: 1px solid rgba(255,255,255,0.15); border-radius: var(--radius-sm);
  padding: 16px 20px; background: rgba(255,255,255,0.08);
}
.hero-metrics dt { font-size: 24px; font-weight: 800; color: #60a5fa; line-height: 1; }
.hero-metrics dd { font-size: 13px; color: rgba(255,255,255,0.55); margin-top: 4px; }

/* ---- Banner Slider ---- */
.hero-visual { min-width: 0; }
.banner-dots {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin-top: 40px;
}
.banner-dot {
  width: 10px; height: 10px; border-radius: 999px; border: none;
  background: rgba(255,255,255,0.35); cursor: pointer; transition: all 300ms; padding: 0;
}
.banner-dot:hover { background: rgba(255,255,255,0.6); }
.banner-dot.is-active {
  background: #fff; width: 32px; border-radius: 999px;
}

/* ---- Philosophy ---- */
.philosophy-section.section {
  background: linear-gradient(rgba(11,22,40,0.75), rgba(11,22,40,0.75)), url(../img/back.jpg) center/cover no-repeat !important;
  color: rgba(255,255,255,0.8);
}
.philosophy-section h2 { color: #fff; }
.philosophy-section p { color: rgba(255,255,255,0.65); }
.philosophy-section .eyebrow { background: rgba(255,255,255,0.1); color: #93b4ff; }
.philosophy-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 760px;
}
.philosophy-layout .eyebrow { margin-left: auto; margin-right: auto; }
.philosophy-layout .quote-panel { text-align: left; }

.quote-panel {
  margin-top: 28px; border-left: 3px solid var(--primary);
  padding: 20px 24px; background: rgba(255,255,255,0.05);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.quote-panel strong { color: #fff; font-size: 16px; }

.architecture-placeholder {
  border-radius: var(--radius); background: rgba(255,255,255,0.06);
  aspect-ratio: 4 / 3;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.3); font-size: 14px;
  border: 1px dashed rgba(255,255,255,0.15);
}

/* ---- Pain ---- */
.pain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pain-card {
  border: 1px solid var(--border); border-radius: var(--radius); padding: 28px;
  transition: all 200ms; background: #fff;
}
.pain-card:hover { box-shadow: var(--shadow-md); border-color: var(--primary); transform: translateY(-2px); }
.card-index { display: inline-flex; font-size: 12px; font-weight: 700; color: var(--primary); background: var(--primary-light); padding: 2px 10px; border-radius: 999px; margin-bottom: 14px; }
.pain-card h3 { margin-bottom: 8px; }
.pain-card p { font-size: 14px; margin-bottom: 0; }

/* ---- Capability ---- */
.capability-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.capability-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; background: #fff; transition: all 200ms; }
.capability-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); background: var(--primary); }
.capability-card:hover h3,
.capability-card:hover p { color: #fff; }
.capability-card:hover .cap-icon { background: rgba(255,255,255,0.2); color: #fff; }
.cap-icon { width: 44px; height: 44px; border-radius: var(--radius-sm); background: var(--primary-light); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; font-size: 20px; font-weight: 700; color: var(--primary); }
.capability-card p { font-size: 14px; margin-bottom: 0; }

/* ---- View Grid (全链路管控视图) ---- */
.view-grid-heading {
  max-width: 680px;
  margin-top: 60px;
  margin-bottom: 40px;
}
.view-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.view-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  background: #fff;
  transition: all 200ms;
}
.view-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--primary);
  background: var(--primary);
}
.view-card:hover h3,
.view-card:hover p { color: #fff; }
.view-card:hover .view-icon { filter: brightness(10); }
.view-icon {
  font-size: 32px;
  margin-bottom: 14px;
  line-height: 1;
}
.view-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
}
.view-card p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 0;
  line-height: 1.7;
}

/* ---- Advantage ---- */
.advantage-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.advantage-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; background: #fff; transition: all 200ms; }
.advantage-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.advantage-card h3::before { content: ''; display: block; width: 28px; height: 3px; border-radius: 999px; background: var(--primary); margin-bottom: 14px; }
.advantage-card p { font-size: 14px; margin-bottom: 0; }

/* ---- Case ---- */
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.case-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; background: #fff; transition: all 200ms; }
.case-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.case-tag, .plan-label { display: inline-flex; font-size: 12px; font-weight: 600; color: var(--primary); background: var(--primary-light); padding: 3px 12px; border-radius: 999px; margin-bottom: 12px; }

.case-card dl { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 20px 0; }
.case-card dl div { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px; background: var(--bg-section); }
.case-card dt { font-size: 22px; font-weight: 800; color: var(--primary); line-height: 1; }
.case-card dd { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

blockquote { margin: 0; border-left: 3px solid var(--primary); padding-left: 14px; font-size: 13px; color: var(--text-secondary); font-weight: 500; }

/* ---- Pricing ---- */
.pricing-group { margin-top: 36px; }
.pricing-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 20px; }
.pricing-title p { max-width: 480px; font-size: 14px; margin-bottom: 0; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.price-card, .private-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; background: #fff; transition: all 200ms; }
.price-card:hover, .private-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.price-card.is-featured { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); }
.price-card h4, .private-card h4 { margin-bottom: 8px; }
.price-card p, .private-card p { font-size: 14px; margin-bottom: 0; }

.price-amount {
  font-size: 36px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin: 14px 0;
  letter-spacing: -0.02em;
}
.price-symbol {
  font-size: 20px;
  font-weight: 700;
  vertical-align: super;
  margin-right: 2px;
}
.price-amount small {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  vertical-align: baseline;
  margin-left: 4px;
}
.price-card.is-featured .price-amount {
  color: var(--primary);
}

.text-link { display: inline-flex; align-items: center; margin-top: 18px; color: var(--primary); font-weight: 600; font-size: 14px; gap: 6px; }
.text-link::after { content: '→'; transition: transform 200ms; }
.text-link:hover::after { transform: translateX(4px); }

.private-pricing { margin-top: 48px; }
.private-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.private-card { background: #1e293b; border-color: rgba(255,255,255,0.12); }
.private-card h4 { color: #fff; }
.private-card p { color: rgba(255,255,255,0.65); }

/* ---- About ---- */
.about-section.section {
  background: url(../img/back2.jpg) center/cover no-repeat !important;
  min-height: 500px;
  display: flex;
  align-items: center;
  position: relative;
  overflow-x: hidden;
}
.about-section.section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 0;
}
.about-section .page-shell {
  position: relative;
  z-index: 1;
}
.about-section h2 { color: #fff; }
.about-section .about-lead { color: rgba(255,255,255,0.85); }
.about-section .about-copy p { color: rgba(255,255,255,0.8) !important; }
.about-section .page-shell.about-layout {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 60px;
  transform: translateX(-40px);
}
.about-lead { font-size: 17px; font-weight: 600; color: var(--primary); margin-top: 8px; }
.about-copy p { font-size: 15px; line-height: 1.9; margin-bottom: 16px; color: #111827; }

/* ---- Contact ---- */
.contact-section { padding: 80px 0; }
.contact-panel {
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--primary) 0%, #1e40af 100%);
  padding: 48px 52px; color: rgba(255,255,255,0.85);
}
.contact-panel .eyebrow { background: rgba(255,255,255,0.15); color: rgba(255,255,255,0.85); }
.contact-panel h2 { color: #fff; margin-bottom: 12px; }
.contact-panel p { color: rgba(255,255,255,0.7); max-width: 540px; margin-bottom: 0; }
.contact-actions { display: flex; gap: 12px; flex-shrink: 0; }
.btn-light { background: #fff; color: var(--primary); border: none; }
.btn-light:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.15); }
.btn-dark { border: 1px solid rgba(255,255,255,0.35); color: #fff; }
.btn-dark:hover { background: rgba(255,255,255,0.1); }

/* ---- Footer ---- */
.site-footer { background: #0b1120; color: rgba(255,255,255,0.55); padding: 40px 0; }
.footer-layout { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; }
.footer-brand img { width: 28px; height: 28px; border-radius: 4px; }
.site-footer p { margin-top: 8px; font-size: 13px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; font-size: 13px; }
.footer-links a:hover { color: #fff; }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  h1 { font-size: 42px; }
  h2 { font-size: 30px; }
  .hero-layout { max-width: 640px; }
  .philosophy-layout { grid-template-columns: 1fr; }
  .hero-visual { max-width: 560px; }
  .advantage-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: #fff; border-bottom: 1px solid var(--border);
    padding: 8px; box-shadow: var(--shadow-md);
  }
  .nav-menu.is-open { display: flex; }
  .nav-link { height: 44px; padding: 0 12px; color: var(--text-secondary); }
  .nav-link:hover, .nav-link.is-active { color: var(--primary); background: var(--primary-light); }
  .nav-cta { display: none; }
  .nav-toggle {
    display: flex; flex-direction: column; gap: 5px;
    width: 40px; height: 40px;
    align-items: center; justify-content: center;
    background: none; border: 1px solid rgba(255,255,255,0.3); border-radius: var(--radius-sm);
  }
  .nav-toggle span { display: block; width: 20px; height: 2px; background: #fff; border-radius: 999px; }

  .hero { height: auto; min-height: 500px; padding: 100px 0 60px; }
  .hero h1 { font-size: 30px; }
  .hero-lead { font-size: 15px; }
  .hero-slide-text { min-height: 130px; }

  h1 { font-size: 30px; }
  h2 { font-size: 24px; }
  .section { padding: 60px 0; }
  .section-heading { margin-bottom: 36px; }

  .pain-grid, .capability-grid, .case-grid, .pricing-grid { grid-template-columns: 1fr; }
  .view-grid { grid-template-columns: 1fr; gap: 16px; }
  .advantage-grid { grid-template-columns: 1fr 1fr; }
  .private-grid { grid-template-columns: 1fr; }

  .hero-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 24px; }
  .hero-metrics > div { padding: 12px 16px; }
  .hero-metrics dt { font-size: 20px; }

  .price-amount { font-size: 28px; }
  .price-symbol { font-size: 16px; }

  .pricing-title { flex-direction: column; align-items: flex-start; gap: 8px; }
  .pricing-title p { max-width: 100%; }

  .about-section .page-shell.about-layout { grid-template-columns: 1fr; gap: 24px; transform: none; }

  .contact-panel { flex-direction: column; text-align: center; padding: 36px 28px; }
  .contact-actions { flex-direction: column; align-items: center; }

  .footer-layout { flex-direction: column; text-align: center; gap: 16px; }
  .footer-links { justify-content: center; }
}

@media (max-width: 480px) {
  .hero { min-height: 440px; padding: 80px 0 40px; }
  .hero h1 { font-size: 26px; }
  .hero-lead { font-size: 14px; }
  .hero-slide-text { min-height: 110px; }
  .hero-metrics { grid-template-columns: 1fr; gap: 8px; }

  h1 { font-size: 26px; }
  h2 { font-size: 22px; }
  h3 { font-size: 18px; }
  .section { padding: 40px 0; }

  .view-grid { gap: 12px; }
  .view-card { padding: 20px; }

  .price-card, .private-card { padding: 20px; }
  .price-amount { font-size: 24px; }

  .advantage-grid { grid-template-columns: 1fr; }
  .page-shell { width: calc(100% - 28px); }
}
