/* 武汉明翊科技有限公司官网 · 公共样式
   品牌色在 :root 里改，全站生效。 */
:root {
  --brand: #2f6bff;
  --brand-2: #7b4dff;
  --grad: linear-gradient(135deg, var(--brand), var(--brand-2));
  --ink: #0f172a;
  --ink-2: #475569;
  --ink-3: #94a3b8;
  --line: #e5e7eb;
  --bg: #ffffff;
  --bg-soft: #f6f8fc;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(15, 23, 42, .06), 0 2px 6px rgba(15, 23, 42, .04);
  --max: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg);
  line-height: 1.7; font-size: 16px; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* 中英切换：<html data-lang="zh|en">，元素用 lang 属性区分 */
html[data-lang="zh"] [lang="en"]:not(html),
html[data-lang="en"] [lang="zh"]:not(html) { display: none !important; }

.note-box {
  background: var(--bg-soft); border: 1px solid var(--line); color: var(--ink-2);
  border-radius: 12px; padding: 14px 18px; margin: 0 0 24px; font-size: 14px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .85); backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(229, 231, 235, .7);
}
.nav { display: flex; align-items: center; height: 64px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; font-size: 18px; }
.brand:hover { text-decoration: none; }
.brand img { width: 32px; height: 32px; }
.brand small { display: block; font-weight: 500; font-size: 11px; color: var(--ink-3); letter-spacing: .02em; line-height: 1.2; }
.brand span { line-height: 1.2; }
.nav-links { display: flex; gap: 6px; margin-left: auto; align-items: center; }
.nav-links a {
  color: var(--ink-2); padding: 8px 14px; border-radius: 999px; font-size: 15px;
}
.nav-links a:hover { background: var(--bg-soft); color: var(--ink); text-decoration: none; }
.nav-links a.active { color: var(--brand); font-weight: 600; }
.lang-btn {
  border: 1px solid var(--line); background: #fff; color: var(--ink-2); cursor: pointer;
  border-radius: 999px; padding: 6px 12px; font-size: 13px; font-family: inherit; margin-left: 6px;
}
.lang-btn:hover { border-color: var(--brand); color: var(--brand); }
.menu-btn {
  display: none; margin-left: auto; width: 40px; height: 40px; border: 0; background: transparent;
  cursor: pointer; border-radius: 10px; padding: 0;
}
.menu-btn span, .menu-btn span::before, .menu-btn span::after {
  display: block; width: 20px; height: 2px; background: var(--ink); margin: 0 auto; position: relative;
  transition: transform .2s, background .2s; content: "";
}
.menu-btn span::before { position: absolute; top: -6px; }
.menu-btn span::after { position: absolute; top: 6px; }
.nav-open .menu-btn span { background: transparent; }
.nav-open .menu-btn span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .menu-btn span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section.soft { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.section-head h2 { font-size: clamp(26px, 3.2vw, 36px); }
.section-head p { color: var(--ink-2); }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 10px;
}

.hero { position: relative; overflow: hidden; padding: 120px 0 104px; text-align: center; }
.hero::before {
  content: ""; position: absolute; inset: -40% -10% auto; height: 640px; z-index: -1;
  background:
    radial-gradient(40% 50% at 30% 40%, rgba(47, 107, 255, .16), transparent 70%),
    radial-gradient(35% 45% at 70% 35%, rgba(123, 77, 255, .14), transparent 70%);
}
.hero h1 { font-size: clamp(34px, 5.6vw, 60px); font-weight: 800; }
.hero h1 .grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: clamp(16px, 2vw, 19px); color: var(--ink-2); max-width: 640px; margin: 0 auto 32px; }
.page-hero { padding: 80px 0 48px; text-align: center; }
.page-hero h1 { font-size: clamp(30px, 4.4vw, 44px); font-weight: 800; }
.page-hero p { color: var(--ink-2); max-width: 640px; margin: 0 auto; }

.btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; border-radius: 999px;
  font-weight: 600; font-size: 15px; border: 1px solid transparent; transition: transform .15s, box-shadow .15s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 20px rgba(47, 107, 255, .28); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }

.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow);
}
.card h3 { font-size: 19px; }
.card p { color: var(--ink-2); margin: 0; }
.icon-badge {
  width: 44px; height: 44px; border-radius: 12px; background: var(--grad); color: #fff;
  display: grid; place-items: center; margin-bottom: 16px;
}
.icon-badge svg { width: 22px; height: 22px; }

/* 产品卡片 */
.product {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: 48px; box-shadow: var(--shadow);
}
.product + .product { margin-top: 32px; }
.product-title { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.product-title img { width: 72px; height: 72px; border-radius: 18px; box-shadow: 0 6px 16px rgba(15, 23, 42, .12); }
.product-title h2, .product-title h3 { margin: 0; font-size: 28px; }
.product-title .tagline { color: var(--ink-2); font-size: 15px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 24px; padding: 0; list-style: none; }
.chips li { background: var(--bg-soft); color: var(--ink-2); border-radius: 999px; padding: 4px 12px; font-size: 13px; }
.feature-list { padding: 0; margin: 0 0 24px; list-style: none; }
.feature-list li { position: relative; padding-left: 24px; margin-bottom: 8px; color: var(--ink-2); }
.feature-list li::before {
  content: ""; position: absolute; left: 4px; top: .7em; width: 8px; height: 8px; border-radius: 50%; background: var(--grad);
}
.shots { display: flex; gap: 14px; justify-content: center; }
.shots img {
  width: 31%; max-width: 180px; border-radius: 20px; border: 1px solid var(--line);
  box-shadow: 0 12px 28px rgba(15, 23, 42, .12); background: #fff;
}
.shots img:nth-child(2) { transform: translateY(-16px); }
.product-cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.product-cta .btns { justify-content: flex-start; }
.product.placeholder { border-style: dashed; box-shadow: none; background: transparent; text-align: center; display: block; color: var(--ink-3); padding: 40px; }

/* 数字 */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat b { display: block; font-size: 34px; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { color: var(--ink-2); font-size: 14px; }

/* 时间线 / 关于 */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { font-size: 24px; margin-top: 40px; }
.prose h3 { font-size: 18px; margin-top: 28px; }
.prose p, .prose li { color: #334155; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin-bottom: 6px; }
.info-table { width: 100%; border-collapse: collapse; margin: 16px 0 24px; font-size: 15px; }
.info-table th, .info-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.info-table th { width: 32%; color: var(--ink-2); font-weight: 500; background: var(--bg-soft); }

/* 联系 */
.contact-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-item .icon-badge { flex: none; margin: 0; }
.contact-item h3 { font-size: 16px; margin: 0 0 4px; }
.contact-item p { margin: 0; color: var(--ink-2); word-break: break-word; }
.map-box {
  border-radius: var(--radius); border: 1px solid var(--line); background:
  linear-gradient(135deg, rgba(47,107,255,.06), rgba(123,77,255,.06)), var(--bg-soft);
  min-height: 260px; display: grid; place-items: center; text-align: center; padding: 24px; color: var(--ink-2);
}

/* CTA */
.cta {
  background: var(--grad); color: #fff; border-radius: 28px; padding: 56px 32px; text-align: center;
}
.cta h2 { font-size: clamp(24px, 3vw, 32px); }
.cta p { opacity: .9; }
.cta .btn { background: #fff; color: var(--brand); }

/* ---------- Footer ---------- */
.site-footer { background: #0b1220; color: #94a3b8; padding: 56px 0 28px; font-size: 14px; }
.site-footer a { color: #cbd5e1; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.footer-addr { font-size: 13px; color: #64748b; }
.footer-grid h4 { color: #fff; font-size: 15px; margin: 0 0 12px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; margin-bottom: 12px; }
.footer-brand img { width: 28px; height: 28px; }
.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, .18); margin-top: 40px; padding-top: 20px;
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; align-items: center;
}
.footer-bottom .beian { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; }
.footer-bottom .beian img { width: 16px; height: 16px; display: inline-block; vertical-align: -3px; margin-right: 4px; }

/* ---------- 丰富内容 ---------- */
.hero-apps { display: flex; gap: 16px; justify-content: center; margin-top: 40px; }
.hero-apps img { width: 56px; height: 56px; border-radius: 14px; box-shadow: 0 8px 20px rgba(15, 23, 42, .14); transition: transform .2s; }
.hero-apps a:hover img { transform: translateY(-3px); }
.band { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 36px 0; }
.btns.left { justify-content: flex-start; }
.btn-outline-light { background: transparent !important; color: #fff !important; border-color: rgba(255, 255, 255, .6); }
.slogan { font-weight: 600; color: var(--ink); font-size: 17px; }
.product.reverse .product-body { order: 2; }
.chips.plain li { background: #fff; border: 1px solid var(--line); }
.feat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; margin: 20px 0; }
.feat h4 { margin: 0 0 2px; font-size: 15px; }
.feat h4::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--grad); margin-right: 8px; vertical-align: 2px; }
.feat p { margin: 0; color: var(--ink-2); font-size: 14px; padding-left: 16px; }
.scenes { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.scenes b { font-size: 14px; }
.scenes .chips { margin: 8px 0; }
.anchor-tabs { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.anchor-tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px 8px 8px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); background: #fff; font-weight: 600; font-size: 15px; }
.anchor-tabs a:hover { border-color: var(--brand); text-decoration: none; }
.anchor-tabs img { width: 28px; height: 28px; border-radius: 8px; }
.product { scroll-margin-top: 88px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; counter-reset: s; }
.step { position: relative; padding: 24px 20px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.step-no { font-size: 13px; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; letter-spacing: .06em; }
.step h3 { font-size: 17px; margin: 6px 0; }
.step p { margin: 0; color: var(--ink-2); font-size: 14px; }
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; position: relative; padding-right: 24px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: -2px; font-size: 20px; color: var(--brand); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 10px 0 0; color: var(--ink-2); }
.about-intro { display: grid; grid-template-columns: 1.5fr 1fr; gap: 48px; align-items: center; }
.about-intro h2 { font-size: clamp(24px, 3vw, 32px); }
.about-intro p { color: #334155; }
.about-visual { display: grid; place-items: center; aspect-ratio: 1; border-radius: 32px;
  background: radial-gradient(60% 60% at 50% 40%, rgba(47,107,255,.14), transparent 70%), var(--bg-soft); }
.about-visual img { width: 45%; height: auto; filter: drop-shadow(0 18px 30px rgba(47,107,255,.3)); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .product.reverse .product-body { order: 0; }
  .about-intro { grid-template-columns: 1fr; }
  .about-visual { max-width: 280px; width: 100%; margin: 0 auto; }
  .product { grid-template-columns: 1fr; padding: 32px; gap: 32px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .menu-btn { display: block; }
  .nav-links {
    position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px 16px 16px; display: none;
    box-shadow: 0 12px 24px rgba(15, 23, 42, .08);
  }
  .nav-open .nav-links { display: flex; }
  .nav-links a { padding: 12px 8px; border-radius: 10px; }
  .lang-btn { margin: 8px 0 0; align-self: flex-start; }
  .section { padding: 64px 0; }
  .hero { padding: 80px 0 72px; }
  .page-hero { padding: 56px 0 32px; }
  .grid-3, .grid-2, .grid-4, .feat-grid { grid-template-columns: 1fr; }
  .product { padding: 24px; border-radius: 22px; }
  .product-title img { width: 60px; height: 60px; border-radius: 14px; }
  .product-title h2, .product-title h3 { font-size: 24px; }
  .info-table th { width: 38%; }
  .cta { padding: 40px 20px; border-radius: 22px; }
}
@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .brand small { display: none; }
}
