/* 米多客 全站基础样式 */
:root {
  --brand: #2563eb;
  --brand-dark: #1e40af;
  --brand-light: #eff6ff;
  --cyan: #06b6d4;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(15, 23, 42, .06);
  --shadow-lg: 0 18px 48px rgba(37, 99, 235, .12);
  --max: 1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 700; color: var(--ink); letter-spacing: .5px; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, var(--brand), var(--cyan));
  color: #fff; display: grid; place-items: center; font-size: 17px; font-weight: 700;
}
.logo small { display: block; font-size: 11px; font-weight: 400; color: var(--muted); letter-spacing: 0; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a { color: var(--ink-2); font-size: 15px; font-weight: 500; }
.nav a.is-active { color: var(--brand); }
.nav a.is-active::after {
  content: ""; display: block; height: 2px; border-radius: 2px;
  background: var(--brand); margin-top: 2px;
}
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; cursor: pointer; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: 10px; font-size: 15px; font-weight: 600;
  border: 1px solid transparent; cursor: pointer; transition: .2s;
}
.btn-primary { background: linear-gradient(135deg, var(--brand), var(--brand-dark)); color: #fff; box-shadow: var(--shadow-lg); }
.btn-primary:hover { color: #fff; transform: translateY(-2px); }
.btn-ghost { background: #fff; color: var(--brand); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); background: var(--brand-light); }
.btn-sm { padding: 8px 16px; font-size: 14px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, #f5f9ff 0%, #ffffff 55%, #ecfeff 100%);
  padding: 84px 0 72px;
}
.hero::before {
  content: ""; position: absolute; right: -140px; top: -120px;
  width: 460px; height: 460px; border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, .16), transparent 65%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; position: relative; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  font-size: 13px; color: var(--brand); font-weight: 600; box-shadow: var(--shadow);
}
h1 { font-size: 40px; line-height: 1.35; margin: 20px 0 18px; letter-spacing: -.5px; }
.lead { font-size: 17px; color: var(--ink-2); margin: 0 0 26px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 26px; }
.hero-meta { display: flex; gap: 28px; flex-wrap: wrap; padding-top: 20px; border-top: 1px dashed var(--line); }
.hero-meta div strong { display: block; font-size: 22px; color: var(--brand); line-height: 1.3; }
.hero-meta div span { font-size: 13px; color: var(--muted); }

.hero-card {
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow-lg); padding: 22px;
}
.hero-card-head { display: flex; align-items: center; gap: 8px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: #cbd5e1; }
.dot.on { background: #22c55e; }
.hero-card-head span { font-size: 13px; color: var(--muted); margin-left: auto; }
.chat { display: grid; gap: 12px; padding-top: 16px; }
.bubble { max-width: 82%; padding: 12px 14px; border-radius: 12px; font-size: 14px; }
.bubble.in { background: var(--bg-soft); border: 1px solid var(--line); }
.bubble.out { background: var(--brand-light); border: 1px solid #dbeafe; margin-left: auto; color: var(--brand-dark); }
.bubble.ai { background: #ecfeff; border: 1px solid #cffafe; color: #0e7490; }
.bubble b { display: block; font-size: 12px; color: var(--muted); font-weight: 600; margin-bottom: 2px; }

/* ---------- 通用 section ---------- */
section { padding: 74px 0; }
section.soft { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-head { max-width: 780px; margin-bottom: 40px; }
h2 { font-size: 28px; line-height: 1.45; margin: 0 0 14px; letter-spacing: -.3px; }
h3 { font-size: 18px; margin: 0 0 8px; }
.sec-summary { font-size: 16px; color: var(--ink-2); margin: 0; }
.sec-kicker { display: inline-block; font-size: 13px; font-weight: 700; color: var(--brand); letter-spacing: 2px; margin-bottom: 10px; }

/* ---------- 功能网格 ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; transition: .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #c7d7fb; }
.card-ico {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--brand-light); color: var(--brand); font-size: 20px; font-weight: 700; margin-bottom: 14px;
}
.card p { margin: 0; color: var(--ink-2); font-size: 15px; }
.card ul { margin: 12px 0 0; padding-left: 18px; color: var(--muted); font-size: 14px; }
.card li { margin-bottom: 4px; }

/* ---------- 表格 ---------- */
.table-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; min-width: 760px; font-size: 15px; }
th, td { padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--brand-light); color: var(--brand-dark); font-weight: 700; white-space: nowrap; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: #fafcff; }
td:first-child { font-weight: 600; white-space: nowrap; }
td.own { background: #f5fff9; font-weight: 600; color: #166534; }
.tag-yes { color: #16a34a; font-weight: 600; }
.tag-no { color: #dc2626; font-weight: 600; }

/* ---------- 评价 ---------- */
.quote { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 12px; }
.quote .stars { color: #f59e0b; letter-spacing: 2px; font-size: 14px; }
.quote p { margin: 0; color: var(--ink-2); font-size: 15px; }
.quote footer { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 12px; margin-top: auto; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), var(--cyan)); color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 700; }

/* ---------- 背书 ---------- */
.badges { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.badge { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 20px; text-align: center; }
.badge strong { display: block; font-size: 15px; margin-bottom: 4px; }
.badge span { font-size: 13px; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin: 0 auto; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 14px; overflow: hidden; }
.faq-item summary {
  cursor: pointer; padding: 18px 22px; font-size: 16px; font-weight: 600; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--brand); font-size: 22px; font-weight: 400; }
.faq-item[open] summary::after { content: "−"; }
.faq-item .answer { padding: 0 22px 20px; color: var(--ink-2); font-size: 15px; border-top: 1px dashed var(--line); padding-top: 16px; }

/* ---------- 下载页 ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.tab {
  padding: 10px 20px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; font-size: 15px; font-weight: 600; color: var(--ink-2); cursor: pointer; transition: .2s;
}
.tab.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }
.panel { display: none; }
.panel.is-active { display: block; }
.platform-card { display: grid; grid-template-columns: 56px 1fr auto; gap: 18px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.platform-card + .platform-card { margin-top: 14px; }
.pf-ico { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-light); color: var(--brand); font-size: 20px; font-weight: 700; }
.platform-card h3 { margin: 0 0 4px; }
.platform-card p { margin: 0; font-size: 14px; color: var(--muted); }

.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.steps li { counter-increment: s; position: relative; padding-left: 54px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px 18px 62px; }
.steps li::before {
  content: counter(s); position: absolute; left: 18px; top: 18px;
  width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff;
  display: grid; place-items: center; font-size: 14px; font-weight: 700;
}
.steps li b { display: block; margin-bottom: 2px; }
.steps li span { color: var(--muted); font-size: 14px; }

/* ---------- 资讯页 ---------- */
.layout { display: grid; grid-template-columns: 1fr 320px; gap: 40px; align-items: start; }
.post-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.post {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; transition: .25s;
}
.post:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #c7d7fb; }
.post-cover { height: 116px; background: linear-gradient(135deg, #dbeafe, #cffafe); display: grid; place-items: center; color: var(--brand-dark); font-size: 13px; font-weight: 700; letter-spacing: 1px; }
.post-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-title { font-size: 17px; font-weight: 700; line-height: 1.5; margin: 0; color: var(--ink); }
.post-excerpt { font-size: 14px; color: var(--ink-2); margin: 0; }
.post-foot { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--line); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.chip { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.chip.is-active { background: var(--brand-light); border-color: var(--brand); color: var(--brand-dark); font-weight: 600; }
.chip span { color: var(--muted); font-size: 12px; }

.side-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 22px; }
.side-card h3 { font-size: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.hot-list { list-style: none; margin: 0; padding: 0; counter-reset: h; }
.hot-list li { counter-increment: h; display: grid; grid-template-columns: 26px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.hot-list li:last-child { border-bottom: none; }
.hot-list li::before { content: counter(h); color: #fff; background: #94a3b8; width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.hot-list li:nth-child(1)::before { background: var(--brand); }
.hot-list li:nth-child(2)::before { background: var(--cyan); }
.hot-list li:nth-child(3)::before { background: #f59e0b; }
.hot-list a { color: var(--ink-2); line-height: 1.6; }

/* ---------- CTA ---------- */
.cta { background: linear-gradient(135deg, var(--brand), var(--brand-dark)); color: #fff; text-align: center; border-radius: 20px; padding: 56px 32px; margin: 0 auto 74px; }
.cta h2 { color: #fff; }
.cta p { color: #dbeafe; max-width: 640px; margin: 0 auto 26px; }
.cta .btn-primary { background: #fff; color: var(--brand-dark); box-shadow: none; }
.cta .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); }
.cta .btn-ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }

/* ---------- 面包屑 / 页脚 ---------- */
.crumbs { font-size: 13px; color: var(--muted); padding: 18px 0 0; }
.crumbs a { color: var(--muted); }
.crumbs span { margin: 0 6px; }

.site-footer { background: #0f172a; color: #cbd5e1; padding: 56px 0 28px; margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h4 { color: #fff; font-size: 15px; margin: 0 0 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #cbd5e1; }
.site-footer a:hover { color: #fff; }
.footer-logo { color: #fff; font-size: 18px; font-weight: 700; display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer-bottom { border-top: 1px solid #1e293b; margin-top: 32px; padding-top: 20px; font-size: 13px; color: #94a3b8; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  h1 { font-size: 32px; }
  h2 { font-size: 24px; }
  .grid-3, .badges { grid-template-columns: repeat(2, 1fr); }
  .layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .nav { display: none; }
  .nav.is-open { display: flex; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: #fff; padding: 18px 24px; border-bottom: 1px solid var(--line); gap: 18px; }
  .nav-toggle { display: block; }
  .grid-3, .grid-2, .badges, .post-grid { grid-template-columns: 1fr; }
  .platform-card { grid-template-columns: 44px 1fr; }
  .platform-card .btn { grid-column: 2; }
  section { padding: 52px 0; }
}

/* geo: components - 答案优先与文章页组件，删除本段可回滚 */
.page-head { padding: 24px 0 4px; }
.page-head h1 { font-size: 33px; line-height: 1.42; margin: 10px 0 12px; }
.answer-lede { background: var(--brand-light); border-left: 4px solid var(--brand); border-radius: 12px; padding: 18px 22px; margin: 16px 0 20px; }
.answer-lede p { margin: 0; color: var(--ink-2); font-size: 15.5px; line-height: 1.8; }
.keyfacts { list-style: none; padding: 0; margin: 14px 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 26px; }
.keyfacts li { font-size: 14px; color: var(--ink-2); }
.keyfacts b { color: var(--brand-dark); margin-right: 8px; }
.article-meta { font-size: 13px; color: var(--muted); padding-bottom: 4px; }
.related { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px; }
.related h3 { font-size: 16px; margin: 0 0 12px; }
.related ul { margin: 0; padding-left: 20px; }
.related li { font-size: 14.5px; color: var(--ink-2); margin-bottom: 8px; }
article .container h2 { margin-top: 34px; }
article .container p { color: var(--ink-2); }
@media (max-width: 640px) {
  .page-head h1 { font-size: 25px; }
  .keyfacts { grid-template-columns: 1fr; }
}

/* brand: official-logo - align miduke.net brand, delete this block to roll back */
:root { --brand: #0067ed; --brand-dark: #0050bd; --brand-light: #eaf2fe; --shadow-lg: 0 18px 48px rgba(0, 103, 237, .12); }
.logo img { display: block; }
.logo-sub { display: block; font-size: 11px; font-weight: 400; color: var(--muted); letter-spacing: 0; line-height: 1.35; }
.footer-logo img { background: #fff; border-radius: 8px; padding: 7px 10px; }
@media (max-width: 480px) { .logo img { width: 96px; height: auto; } }
/* end brand */