/* =============================================================
   MCDocker 官网 · balanced-corporate
   纯原生 CSS，无框架、无 CDN、无渐变
   ============================================================= */

:root {
  /* 色板：青绿主色 + 琥珀强调 + 石板灰中性色，避免单一蓝紫 */
  --ink: #182430;
  --ink-2: #46555f;
  --ink-3: #6b7a84;
  --line: #dde5e2;
  --line-strong: #c8d4d0;
  --bg: #ffffff;
  --bg-soft: #f1f5f3;
  --bg-deep: #13232e;
  --bg-footer: #0f1a23;
  --brand: #0f6b5f;
  --brand-dark: #0b544b;
  --brand-soft: #e3efeb;
  --accent: #d97706;
  --accent-soft: #fbf0dd;
  --teal: #0f766e;
  --amber: #c2661a;
  --green: #4d7c2e;
  --slate: #5b6b76;

  --radius: 8px;
  --shadow: 0 1px 2px rgba(16, 32, 40, 0.07), 0 1px 3px rgba(16, 32, 40, 0.05);
  --container: 1160px;
}

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

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

body {
  margin: 0;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

svg {
  display: block;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------------- 顶部导航 ---------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  box-shadow: none;
  transition: box-shadow 0.2s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 2px 10px rgba(16, 32, 40, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  flex-shrink: 0;
}

.brand:hover {
  text-decoration: none;
}

.brand-logo {
  width: 26px;
  height: 26px;
  color: var(--brand);
}

.brand-name {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a {
  color: var(--ink-2);
  font-size: 15px;
  padding: 6px 0;
  position: relative;
}

.main-nav a:hover {
  color: var(--brand);
  text-decoration: none;
}

.main-nav a.active {
  color: var(--brand);
}

.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--brand);
  border-radius: 2px;
}

.main-nav .nav-login {
  margin-left: 6px;
}

.main-nav .nav-cta {
  color: #ffffff;
  background: var(--brand);
  border: 1px solid var(--brand);
  border-radius: 6px;
  padding: 8px 16px;
  font-weight: 600;
  white-space: nowrap;
}

.main-nav .nav-cta:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
}

.nav-toggle .bar {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.open .bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open .bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open .bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------------- 通用 ---------------- */

.section {
  padding: 72px 0;
}

.section + .section {
  border-top: 1px solid var(--line);
}

.section-head {
  max-width: 720px;
  margin-bottom: 40px;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--brand);
}

.section-head h2 {
  margin: 0;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.35;
  letter-spacing: 0.2px;
}

.section-intro {
  margin: 14px 0 0;
  font-size: 15px;
  color: var(--ink-2);
}

/* ---------------- 首屏 ---------------- */

.hero {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  padding-top: 72px;
  padding-bottom: 72px;
}

.hero-copy .eyebrow {
  margin-bottom: 16px;
}

.hero-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.28;
  letter-spacing: 0.3px;
  color: var(--ink);
}

.hero-copy .lead {
  margin: 0 0 26px;
  font-size: 16px;
  color: var(--ink-2);
  max-width: 540px;
}

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

.hero-points {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.hero-points li {
  position: relative;
  padding: 12px 0 12px 28px;
  color: var(--ink-2);
  font-size: 14px;
}

.hero-points li + li {
  border-top: 1px dashed var(--line);
}

.hero-points li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 19px;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--brand-soft);
  border: 2px solid var(--brand);
}

/* 控制中心截图 */
.hero-visual {
  min-width: 0;
}

.browser-frame {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
}

.browser-bar .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #c4d0cb;
}

.browser-bar .address {
  margin-left: 8px;
  font-size: 12.5px;
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.browser-frame img {
  display: block;
  width: 100%;
  height: auto;
  background: #ffffff;
}

/* ---------------- 按钮 ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 22px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}

.btn:hover {
  text-decoration: none;
}

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

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

.btn-outline {
  color: var(--brand);
  background: var(--bg);
  border-color: var(--line-strong);
}

.btn-outline:hover {
  border-color: var(--brand);
}

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

.btn-accent:hover {
  background: #b96a12;
  border-color: #b96a12;
}

.btn-outline-inverse {
  color: #e6f0ec;
  background: transparent;
  border-color: #3b5463;
}

.btn-outline-inverse:hover {
  border-color: #7fd6c4;
  color: #ffffff;
}

/* ---------------- 卡片网格 ---------------- */

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

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

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  margin-bottom: 16px;
}

.card-icon svg {
  width: 22px;
  height: 22px;
}

.icon-teal {
  color: var(--teal);
  background: #e4f0ee;
}

.icon-amber {
  color: var(--amber);
  background: #f9ead9;
}

.icon-green {
  color: var(--green);
  background: #e9f1e0;
}

.icon-slate {
  color: var(--slate);
  background: #e7ecef;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  letter-spacing: 0.2px;
}

.card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-2);
}

/* 场景区使用浅色底，与服务区区分 */
.scenarios {
  background: var(--bg-soft);
}

/* ---------------- 技术与安全 ---------------- */

.tech-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.tech-group {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  padding: 26px 26px 10px;
}

.tech-group h3 {
  margin: 0 0 6px;
  font-size: 18px;
  letter-spacing: 0.3px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.feature-list li {
  padding: 16px 0 16px 34px;
  position: relative;
}

.feature-list li + li {
  border-top: 1px dashed var(--line);
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 24px;
  width: 9px;
  height: 9px;
  border-radius: 3px;
  background: var(--brand);
}

.feature-list strong {
  display: block;
  font-size: 15px;
  color: var(--ink);
}

.feature-list p {
  margin: 4px 0 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-2);
}

/* ---------------- 关于我们 ---------------- */

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

.about-cols > div {
  border-top: 3px solid var(--brand);
  padding-top: 18px;
}

.about-cols h3 {
  margin: 0 0 10px;
  font-size: 17px;
  letter-spacing: 0.2px;
}

.about-cols p {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-2);
}

.about-cols ul {
  margin: 0;
  padding: 0 0 0 18px;
  font-size: 14px;
  line-height: 1.85;
  color: var(--ink-2);
}

.about-cols li {
  margin-bottom: 6px;
}

/* ---------------- CTA 横幅（纯色底，无渐变） ---------------- */

.cta-band {
  background: var(--bg-deep);
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-top: 56px;
  padding-bottom: 56px;
}

.cta-copy h2 {
  margin: 0 0 8px;
  font-size: clamp(20px, 2.4vw, 28px);
  color: #ffffff;
  letter-spacing: 0.2px;
}

.cta-copy p {
  margin: 0;
  font-size: 15px;
  color: #b7c6c1;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  flex-shrink: 0;
}

/* ---------------- 页脚 ---------------- */

.site-footer {
  background: var(--bg-footer);
  color: #9fb0ad;
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 1fr));
  gap: 32px;
  padding-top: 48px;
  padding-bottom: 32px;
}

.footer-brand .brand {
  color: #ffffff;
}

.footer-brand .brand-name {
  color: #ffffff;
}

.footer-brand p {
  margin: 14px 0 0;
  max-width: 340px;
  line-height: 1.8;
}

.footer-col h3 {
  margin: 2px 0 14px;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0.4px;
}

.footer-col a {
  display: block;
  color: #9fb0ad;
  padding: 5px 0;
}

.footer-col a:hover {
  color: #ffffff;
  text-decoration: none;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 20px;
  padding-bottom: 24px;
  border-top: 1px solid #22323d;
  color: #7e928e;
  font-size: 13px;
}

/* ---------------- 响应式 ---------------- */

@media (max-width: 1024px) {
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tech-grid {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .about-cols > div:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .nav-toggle {
    display: flex;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(16, 32, 40, 0.08);
    padding: 10px 24px 18px;
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }

  .main-nav a.active::after {
    display: none;
  }

  .main-nav .nav-login {
    margin-left: 0;
  }

  .main-nav .nav-cta {
    margin-top: 12px;
    text-align: center;
    border: none;
  }
}

@media (max-width: 760px) {
  .cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .section {
    padding: 56px 0;
  }
}

@media (max-width: 560px) {
  .container {
    padding: 0 16px;
  }

  .card-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .tech-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .about-cols {
    grid-template-columns: minmax(0, 1fr);
  }

  .about-cols > div:last-child {
    grid-column: auto;
  }

  .hero-actions .btn {
    flex: 1 1 100%;
  }

  .main-nav {
    padding-left: 16px;
    padding-right: 16px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
