/* ============================================================
   深圳市密西比电子有限公司 · 企业官网样式
   无外部依赖，系统字体栈，移动优先
   ============================================================ */

:root {
  --ink: #0b1220;
  --ink-2: #1e293b;
  --slate: #475569;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-alt: #f6f8fb;
  --med: #0d9488;
  --med-soft: #ecfdf5;
  --auto: #4338ca;
  --auto-soft: #eef2ff;
  --radius: 16px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(11, 18, 32, .06);
  --shadow: 0 10px 30px rgba(11, 18, 32, .08);
  --shadow-lg: 0 24px 60px rgba(11, 18, 32, .12);
  --wrap: 1160px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
          "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink-2);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { line-height: 1.25; color: var(--ink); letter-spacing: -.01em; }
p { margin: 0 0 1em; }
a { color: inherit; }

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

.mono { font-family: var(--mono); letter-spacing: .04em; }

.skip {
  position: absolute; left: -9999px;
  background: var(--ink); color: #fff;
  padding: 10px 16px; border-radius: 0 0 8px 0; z-index: 100;
}
.skip:focus { left: 0; top: 0; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; height: 68px;
}

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { color: var(--ink); display: block; width: 34px; height: 34px; }
.brand-mark svg { width: 100%; height: 100%; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 17px; letter-spacing: .02em; color: var(--ink); }
.brand-text small { font-size: 10px; letter-spacing: .18em; color: var(--muted); }

.nav { display: flex; align-items: center; gap: 26px; }
.nav a {
  position: relative; text-decoration: none;
  font-size: 15px; color: var(--slate); padding: 6px 0;
  transition: color .2s ease;
}
.nav a:hover { color: var(--ink); }
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 0; height: 2px; background: var(--med);
  transition: width .22s ease;
}
.nav a:hover::after, .nav a.active::after { width: 100%; }
.nav a.active { color: var(--ink); }

.nav-cta {
  background: var(--ink); color: #fff !important;
  padding: 9px 18px !important; border-radius: 999px;
  font-weight: 600;
}
.nav-cta::after { display: none; }
.nav-cta:hover { background: #16233c; }

.nav-toggle {
  display: none; width: 42px; height: 42px;
  border: 1px solid var(--line); border-radius: 12px;
  background: #fff; cursor: pointer; padding: 0;
  align-items: center; justify-content: center; flex-direction: column; gap: 4px;
}
.nav-toggle span {
  display: block; width: 18px; height: 2px; background: var(--ink);
  border-radius: 2px; transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 420px at 78% -10%, rgba(13, 148, 136, .16), transparent 70%),
    radial-gradient(700px 420px at 10% 0%, rgba(67, 56, 202, .12), transparent 70%),
    linear-gradient(180deg, #f8fafc 0%, #ffffff 68%);
  border-bottom: 1px solid var(--line);
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(15, 23, 42, .045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, .045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
}
.hero-inner {
  position: relative;
  display: grid; grid-template-columns: 1.15fr .85fr;
  gap: 56px; align-items: center;
  padding-top: 84px; padding-bottom: 88px;
}

.eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: .16em;
  color: var(--med); text-transform: uppercase; margin-bottom: 14px;
}
.hero h1 { font-size: clamp(30px, 4.2vw, 46px); margin: 0 0 18px; letter-spacing: -.02em; }
.lede { font-size: 17px; color: var(--slate); max-width: 46ch; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 18px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 26px; border-radius: 999px;
  font-size: 15px; font-weight: 600; text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn-primary { background: var(--ink); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: #cbd5e1; transform: translateY(-2px); }
.hero-meta { font-size: 13px; color: var(--muted); margin: 0; }

/* hero visual */
.hero-visual { perspective: 1200px; }
.board {
  background: #0b1220; border-radius: var(--radius-lg);
  box-shadow: 0 30px 70px rgba(11, 18, 32, .35);
  overflow: hidden; border: 1px solid rgba(255, 255, 255, .08);
  transform: rotateY(-6deg) rotateX(3deg);
}
.board-head {
  display: flex; align-items: center; gap: 7px;
  padding: 12px 16px; background: rgba(255, 255, 255, .04);
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.board-head .dot { width: 9px; height: 9px; border-radius: 50%; background: #334155; }
.board-title { margin-left: auto; font-size: 11px; color: #94a3b8; letter-spacing: .08em; }
.board-body { position: relative; padding: 22px; display: grid; gap: 14px; }

.chip {
  position: relative;
  background: linear-gradient(180deg, #101a2e, #0c1524);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 14px; padding: 14px 16px;
  display: grid; gap: 3px;
}
.chip strong { color: #e2e8f0; font-size: 14px; }
.chip em { font-style: normal; font-size: 11.5px; color: #7c8ba1; }
.chip-tag {
  position: absolute; top: -9px; left: 14px;
  font-size: 10px; font-weight: 700; letter-spacing: .1em;
  padding: 2px 8px; border-radius: 999px;
}
.chip-med .chip-tag { background: var(--med); color: #062a25; }
.chip-auto .chip-tag { background: var(--auto); color: #eef2ff; }
.chip-med { box-shadow: inset 0 0 0 1px rgba(13, 148, 136, .28); }
.chip-auto { box-shadow: inset 0 0 0 1px rgba(67, 56, 202, .3); }

.bus {
  text-align: center; font-size: 11.5px; color: #64748b;
  letter-spacing: .06em; padding: 2px 0;
  border-top: 1px dashed rgba(148, 163, 184, .3);
  border-bottom: 1px dashed rgba(148, 163, 184, .3);
}
.traces { display: flex; gap: 8px; }
.traces i {
  flex: 1; height: 3px; border-radius: 2px;
  background: linear-gradient(90deg, rgba(13, 148, 136, .8), rgba(67, 56, 202, .8));
}

/* ---------- sections ---------- */
.section { padding: 92px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 46px; }
.section-head h2 { font-size: clamp(24px, 3.2vw, 34px); margin: 0 0 14px; }
.section-desc { color: var(--muted); font-size: 16px; margin: 0; }

/* solutions */
.solution-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.solution-card {
  position: relative; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 34px 32px; box-shadow: var(--shadow-sm);
  transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}
.solution-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.solution-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.solution-card[data-accent="med"]::before { background: linear-gradient(90deg, var(--med), #34d399); }
.solution-card[data-accent="auto"]::before { background: linear-gradient(90deg, var(--auto), #818cf8); }

.solution-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.solution-icon svg { width: 26px; height: 26px; }
.solution-card[data-accent="med"] .solution-icon { background: var(--med-soft); color: var(--med); }
.solution-card[data-accent="auto"] .solution-icon { background: var(--auto-soft); color: var(--auto); }

.solution-card h3 { font-size: 22px; margin: 0 0 10px; }
.solution-lead { color: var(--slate); font-size: 15px; margin-bottom: 16px; }

.ticks { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 9px; }
.ticks li {
  position: relative; padding-left: 24px;
  font-size: 14.5px; color: var(--ink-2);
}
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: .55em;
  width: 12px; height: 7px; border-left: 2px solid var(--med);
  border-bottom: 2px solid var(--med); transform: rotate(-45deg);
}
.solution-card[data-accent="auto"] .ticks li::before { border-color: var(--auto); }

.solution-focus {
  border-top: 1px dashed var(--line); padding-top: 16px;
}
.solution-focus span {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .12em;
  color: var(--muted); margin-bottom: 6px;
}
.solution-focus p { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.75; }

/* capability */
.cap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cap-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; transition: transform .22s ease, box-shadow .22s ease;
}
.cap-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.cap-card h3 { font-size: 16.5px; margin: 0 0 8px; }
.cap-card p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.75; }

/* process */
.steps {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  counter-reset: step;
}
.steps li {
  position: relative; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px 24px;
}
.steps li::after {
  content: ""; position: absolute; right: -11px; top: 42px;
  width: 10px; height: 10px; border-top: 2px solid var(--line);
  border-right: 2px solid var(--line); transform: rotate(45deg);
}
.steps li:nth-child(3n)::after, .steps li:last-child::after { display: none; }
.step-no {
  font-family: var(--mono); font-size: 12px; font-weight: 700;
  color: var(--med); letter-spacing: .1em;
}
.steps h3 { font-size: 16.5px; margin: 6px 0 8px; }
.steps p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.7; }

/* about */
.about-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 48px; align-items: start; }
.about-copy h2 { font-size: clamp(24px, 3vw, 32px); margin: 0 0 18px; }
.about-copy p { color: var(--slate); font-size: 15.5px; }
.about-copy strong { color: var(--ink); }

.info-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 30px 28px;
  box-shadow: var(--shadow);
}
.info-card h3 { font-size: 16px; margin: 0 0 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.info-card dl { margin: 0; display: grid; gap: 16px; }
.info-card dl div { display: grid; gap: 3px; }
.info-card dt { font-size: 12px; color: var(--muted); letter-spacing: .04em; }
.info-card dd { margin: 0; font-size: 14.5px; color: var(--ink); font-weight: 600; }
.info-note { margin: 22px 0 0; font-size: 12.5px; color: var(--muted); line-height: 1.7; }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.contact-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 32px 30px;
}
.contact-card h3 { font-size: 18px; margin: 0 0 18px; }
.contact-list { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 0; }
.contact-list li {
  display: flex; justify-content: space-between; gap: 20px;
  padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14.5px;
}
.contact-list li:last-child { border-bottom: none; }
.contact-list span { color: var(--muted); flex-shrink: 0; }
.contact-list strong { text-align: right; color: var(--ink); font-weight: 600; }
.contact-list strong a { color: inherit; text-decoration: none; transition: color .18s ease; }
.contact-list strong a:hover { color: var(--med); }
.todo {
  color: #b45309 !important;
  background: #fffbeb; border: 1px dashed #fcd34d;
  padding: 1px 10px; border-radius: 999px; font-size: 13px !important;
}
.contact-note { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.75; }
.contact-card--accent {
  background: linear-gradient(180deg, #0b1220, #132038);
  border-color: transparent; color: #cbd5e1;
}
.contact-card--accent h3 { color: #fff; }
.contact-card--accent .ticks li { color: #cbd5e1; }
.contact-card--accent .ticks li::before { border-color: #34d399; }
.contact-card--accent .contact-note { color: #94a3b8; }

/* footer */
.site-footer { background: #0b1220; color: #94a3b8; padding: 44px 0; }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-brand strong { color: #fff; font-size: 15.5px; display: block; margin-bottom: 4px; }
.footer-brand p { margin: 0; font-size: 13px; color: #64748b; }
.footer-meta p { margin: 0; font-size: 12.5px; color: #64748b; text-align: right; }
.footer-meta p + p { margin-top: 3px; }

/* reveal animation */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .55s ease, transform .55s ease; }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; padding-top: 64px; padding-bottom: 64px; }
  .hero-visual { max-width: 520px; }
  .board { transform: none; }
  .cap-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps li::after { display: none; }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-meta p { text-align: left; }
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav {
    position: absolute; left: 0; right: 0; top: 68px;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 24px 20px;
    box-shadow: var(--shadow);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 13px 0; border-bottom: 1px solid var(--line); }
  .nav a::after { display: none; }
  .nav-cta { margin-top: 14px; text-align: center; border-bottom: none !important; }
  .solution-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .section { padding: 68px 0; }
}

@media (max-width: 560px) {
  .wrap { padding: 0 18px; }
  .cap-grid, .steps { grid-template-columns: 1fr; }
  .solution-card { padding: 26px 22px; }
  .info-card, .contact-card { padding: 24px 20px; }
  .contact-list li { flex-direction: column; gap: 4px; }
  .contact-list strong { text-align: left; }
  .hero h1 { font-size: 27px; }
  .lede { font-size: 15.5px; }
  .footer-inner { flex-direction: column; }
}

/* 打印（便于导出公司简介） */
@media print {
  .site-header, .hero-visual, .site-footer, .nav-toggle, .hero-actions { display: none !important; }
  body { color: #000; }
  .section { padding: 24px 0; }
  .solution-card, .cap-card, .info-card, .contact-card { box-shadow: none; border-color: #999; }
}
