/* ==========================================================================
   矛盾网络科技有限公司 · Maodun Network Technology Co., Ltd.
   maodunweb.cn
   ========================================================================== */

:root {
  --bg: #ffffff;
  --bg-soft: #f5f7fb;
  --bg-deep: #0b1220;
  --ink: #0d1526;
  --ink-2: #3d4b63;
  --ink-3: #6b7a93;
  --line: #e3e9f2;
  --line-2: #eef2f8;

  --brand: #1d4ed8;
  --brand-2: #3b82f6;
  --brand-ink: #17358f;
  --accent: #e8590c;
  --accent-2: #fb923c;
  --accent-ink: #9a3412;

  --radius: 16px;
  --radius-sm: 10px;
  --max: 1180px;
  --header-h: 72px;

  --shadow-sm: 0 1px 2px rgba(13, 21, 38, .06), 0 1px 3px rgba(13, 21, 38, .04);
  --shadow: 0 10px 30px -12px rgba(13, 21, 38, .14), 0 2px 6px rgba(13, 21, 38, .04);
  --shadow-lg: 0 28px 60px -24px rgba(13, 21, 38, .24);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC",
          "Source Han Sans SC", sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

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

img, svg { display: block; max-width: 100%; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-ink); }

h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.25;
  letter-spacing: -.02em;
  font-weight: 700;
}
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

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

.section { padding: 88px 0; }
.section--soft { background: var(--bg-soft); }
.section--dark {
  background: var(--bg-deep);
  color: #e8edf7;
}
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark .lede, .section--dark p { color: #aab8cf; }

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

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line-2);
}

.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -.02em;
  flex: 0 0 auto;
}
.brand:hover { color: var(--ink); }
.brand__mark { width: 34px; height: 34px; flex: 0 0 auto; }
.brand__name { font-size: 17px; line-height: 1.15; }
.brand__sub {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav a {
  padding: 8px 13px;
  border-radius: 8px;
  font-size: 15px;
  color: var(--ink-2);
  transition: background .18s, color .18s;
}
.nav a:hover { background: var(--bg-soft); color: var(--ink); }
.nav a.active { color: var(--brand); font-weight: 600; }

.header__tools { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }

/* 语言切换 */
.lang {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-soft);
}
.lang button {
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-3);
  padding: 4px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .18s, color .18s;
}
.lang button.active {
  background: #fff;
  color: var(--brand);
  box-shadow: var(--shadow-sm);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .16s, box-shadow .18s, background .18s, border-color .18s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 8px 20px -10px rgba(29, 78, 216, .7);
}
.btn--primary:hover { background: var(--brand-ink); color: #fff; }
.btn--ghost {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn--sm { padding: 8px 15px; font-size: 14px; }

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 3px auto;
  background: var(--ink);
  border-radius: 2px;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 84px;
  background:
    radial-gradient(900px 420px at 12% -10%, rgba(29, 78, 216, .13), transparent 62%),
    radial-gradient(760px 400px at 92% 6%, rgba(232, 89, 12, .11), transparent 60%),
    var(--bg);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(13, 21, 38, .045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(13, 21, 38, .045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(70% 60% at 50% 30%, #000, transparent 78%);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000, transparent 78%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 64px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 14px 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  box-shadow: var(--shadow-sm);
}
.eyebrow i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  font-style: normal;
}

.hero h1 {
  margin: 22px 0 18px;
  font-size: clamp(34px, 4.6vw, 58px);
  line-height: 1.12;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--brand) 10%, var(--accent) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__lede {
  font-size: 18px;
  color: var(--ink-2);
  max-width: 34em;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

/* Hero 视觉 */
.hero__visual { position: relative; }
.hero__card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 26px;
  box-shadow: var(--shadow-lg);
}
.hero__card-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px dashed var(--line);
}
.hero__card-row:last-child { border-bottom: 0; }
.hero__dot {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 16px;
  flex: 0 0 auto;
}
.hero__dot--b { background: rgba(29, 78, 216, .1); color: var(--brand); }
.hero__dot--o { background: rgba(232, 89, 12, .12); color: var(--accent-ink); }
.hero__card-title { font-weight: 600; font-size: 15px; }
.hero__card-sub { font-size: 13px; color: var(--ink-3); }

/* ---------- 通用区块 ---------- */

.section__head { max-width: 720px; margin-bottom: 48px; }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 12px;
}
.section h2 { font-size: clamp(26px, 3.2vw, 38px); }
.lede {
  margin-top: 14px;
  font-size: 17px;
  color: var(--ink-2);
}

/* ---------- 数据条 ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat { background: #fff; padding: 26px 24px; }
.stat b {
  display: block;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--brand);
}
.stat span { font-size: 14px; color: var(--ink-3); }

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

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

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: #cfdcf5;
}
.card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  background: rgba(29, 78, 216, .09);
  color: var(--brand);
}
.card__icon--accent { background: rgba(232, 89, 12, .1); color: var(--accent-ink); }
.card h3 { font-size: 19px; margin-bottom: 10px; }
.card p { color: var(--ink-2); font-size: 15px; }

.tag {
  display: inline-block;
  margin-bottom: 12px;
  padding: 3px 10px;
  border-radius: 6px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-3);
  letter-spacing: .02em;
}

/* ---------- 关于 ---------- */

.about {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 56px;
  align-items: start;
}
.about__list { list-style: none; margin: 26px 0 0; padding: 0; }
.about__list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  color: var(--ink-2);
}
.about__list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: .62em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
}
.about__panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}
.about__row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line-2);
  font-size: 15px;
}
.about__row:last-child { border-bottom: 0; }
.about__row dt { color: var(--ink-3); flex: 0 0 auto; }
.about__row dd { margin: 0; text-align: right; font-weight: 600; }

/* ---------- 列表（业务） ---------- */

.list { border-top: 1px solid var(--line); }
.list__item {
  display: grid;
  grid-template-columns: 58px 1fr 1.3fr;
  gap: 26px;
  align-items: start;
  padding: 26px 4px;
  border-bottom: 1px solid var(--line);
}
.list__no {
  font-size: 13px;
  font-weight: 700;
  color: var(--brand);
  letter-spacing: .1em;
  padding-top: 3px;
}
.list__item h3 { font-size: 19px; margin-bottom: 6px; }
.list__item p { color: var(--ink-2); font-size: 15px; }

/* ---------- 联系方式 ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.contact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 22px;
}
.contact-card h4 {
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 10px;
  font-weight: 700;
}
.contact-card p, .contact-card a { font-size: 15px; color: var(--ink); }
.contact-card a:hover { color: var(--brand); }

/* ---------- CTA ---------- */

.cta {
  margin-top: 40px;
  background: linear-gradient(120deg, var(--brand) 0%, #2b6bf0 48%, var(--accent) 130%);
  border-radius: 20px;
  padding: 44px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}
.cta h2 { color: #fff; font-size: clamp(22px, 2.6vw, 30px); }
.cta p { color: rgba(255, 255, 255, .86); margin: 8px 0 0; }
.cta .btn--ghost {
  background: rgba(255, 255, 255, .14);
  border-color: rgba(255, 255, 255, .35);
  color: #fff;
}
.cta .btn--ghost:hover { background: #fff; color: var(--brand); }

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

.footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 30px;
  background: var(--bg-soft);
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  align-items: flex-start;
}
.footer p { color: var(--ink-3); font-size: 14px; margin: 0; }
.footer__links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer__links a { font-size: 14px; color: var(--ink-2); }
.footer__links a:hover { color: var(--brand); }
.footer__legal {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-3);
}

/* ---------- 文章页（关于 / 隐私） ---------- */

.page-head {
  padding: 64px 0 40px;
  background:
    radial-gradient(700px 320px at 20% -20%, rgba(29, 78, 216, .1), transparent 60%),
    radial-gradient(560px 300px at 90% 0%, rgba(232, 89, 12, .09), transparent 58%),
    var(--bg-soft);
  border-bottom: 1px solid var(--line);
}
.page-head h1 { font-size: clamp(28px, 3.6vw, 42px); }
.page-head p { margin-top: 12px; color: var(--ink-2); max-width: 60ch; }

.prose { max-width: 78ch; }
.prose h2 {
  font-size: 22px;
  margin: 40px 0 12px;
  padding-top: 8px;
}
.prose h3 { font-size: 17px; margin: 26px 0 8px; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 6px; }
.prose strong { color: var(--ink); }

/* ---------- 占位符（待替换内容） ---------- */

.ph {
  color: #b45309;
  background: #fffbeb;
  border-bottom: 1px dashed #f59e0b;
  border-radius: 3px;
  padding: 0 3px;
}

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

@media (max-width: 1020px) {
  .hero__inner { grid-template-columns: 1fr; gap: 44px; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 760px) {
  :root { --header-h: 64px; }
  .section { padding: 62px 0; }
  .hero { padding: 62px 0 56px; }

  .nav-toggle { display: block; order: 3; }
  .nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 16px 18px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 10px; font-size: 16px; }
  .header__inner { gap: 12px; }
  .header__tools { margin-left: auto; }
  .brand__sub { display: none; }

  .grid, .grid--2 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .list__item { grid-template-columns: 1fr; gap: 10px; }
  .cta { padding: 32px 26px; }
  .container { padding: 0 18px; }
}

/* ---------- 动效 ---------- */

@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
  .reveal.in { opacity: 1; transform: none; }
}

@media print {
  .header, .cta, .hero__visual { display: none; }
  body { font-size: 12pt; }
}

/* ---------- 服务流程（步骤） ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: step;
}
.step {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
}
.step::after {
  content: "";
  position: absolute;
  top: 38px;
  right: -10px;
  width: 20px;
  height: 1px;
  background: var(--line);
}
.step:last-child::after { display: none; }
.step__no {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
  margin-bottom: 14px;
}
.step h3 { font-size: 17px; margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--ink-2); }

/* ---------- FAQ ---------- */

.faq { max-width: 820px; margin: 0 auto; }
.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 52px 18px 22px;
  font-weight: 600;
  font-size: 16px;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  font-weight: 400;
  color: var(--brand);
  line-height: 1;
}
.faq details[open] summary::after { content: "\2212"; }
.faq details[open] summary { border-bottom: 1px solid var(--line-2); }
.faq__body { padding: 16px 22px 20px; }
.faq__body p { font-size: 15px; color: var(--ink-2); margin: 0; }

@media (max-width: 1020px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step::after { display: none; }
}
@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; }
}

/* ---------- 技术栈 / 经营范围 / 招聘 ---------- */

.stack {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}
.stack span {
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 14px;
  color: var(--ink-2);
  transition: border-color .18s, color .18s;
}
.stack span:hover { border-color: var(--brand); color: var(--brand); }

.scope {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  border-radius: var(--radius-sm);
  padding: 22px 24px;
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--ink-2);
}
.scope b { color: var(--ink); }

.jobs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.job {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 22px 24px;
}
.job h4 { font-size: 17px; margin-bottom: 6px; }
.job p { font-size: 14px; color: var(--ink-3); margin: 0 0 10px; }
.job a { font-size: 14px; font-weight: 600; }

@media (max-width: 760px) {
  .jobs { grid-template-columns: 1fr; }
}
