/* 表解营销首页 — 对齐工作台色板 */

:root {
  --tw-accent: #217346;
  --tw-accent-soft: #e8f5e9;
  --tw-text: #1a2332;
  --tw-muted: #6b7785;
  --tw-border: #d0d7e0;
  --tw-bg: #f3f3f3;
  --tw-card: #fff;
  --tw-danger: #b42318;
  --mh-max: 960px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--tw-text);
  background: linear-gradient(180deg, #f7faf8 0%, var(--tw-bg) 42%, #ebebeb 100%);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--tw-accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.mh-wrap {
  width: min(var(--mh-max), calc(100% - 32px));
  margin: 0 auto;
}

/* —— 顶栏 —— */
.mh-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--tw-border);
  backdrop-filter: blur(8px);
}

.mh-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
}

.mh-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--tw-text);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.15rem;
}

.mh-brand:hover {
  text-decoration: none;
  color: var(--tw-accent);
}

.mh-brand img {
  display: block;
  width: 36px;
  height: 36px;
}

.mh-nav-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

/* —— 按钮 —— */
.mh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.1rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.3;
}

.mh-btn:hover {
  text-decoration: none;
}

.mh-btn-primary {
  background: var(--tw-accent);
  border-color: var(--tw-accent);
  color: #fff;
}

.mh-btn-primary:hover {
  filter: brightness(0.95);
  color: #fff;
}

.mh-btn-ghost {
  background: #fff;
  border-color: var(--tw-border);
  color: var(--tw-text);
}

.mh-btn-ghost:hover {
  border-color: var(--tw-accent);
  color: var(--tw-accent);
  background: var(--tw-accent-soft);
}

.mh-btn-lg {
  padding: 0.7rem 1.35rem;
  font-size: 1rem;
}

/* —— 主内容 —— */
.mh-main {
  padding: 2rem 0 3.5rem;
}

.mh-hero {
  padding: 1.5rem 0 2.25rem;
}

.mh-hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.mh-lead {
  margin: 0 0 0.65rem;
  font-size: 1.15rem;
  color: var(--tw-text);
  max-width: 36em;
}

.mh-sub {
  margin: 0 0 1.5rem;
  font-size: 0.98rem;
  color: var(--tw-muted);
  max-width: 40em;
}

.mh-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.mh-section {
  margin: 2.5rem 0 0;
  padding-top: 0.25rem;
}

.mh-section h2 {
  margin: 0 0 0.85rem;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.35;
}

.mh-section p {
  margin: 0 0 0.75rem;
  color: var(--tw-text);
  max-width: 46em;
}

.mh-section p.muted {
  color: var(--tw-muted);
}

/* 进协算出 */
.mh-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 1rem;
}

.mh-flow-card {
  background: var(--tw-card);
  border: 1px solid var(--tw-border);
  border-radius: 8px;
  padding: 1rem 1.05rem;
}

.mh-flow-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
  color: var(--tw-accent);
}

.mh-flow-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--tw-muted);
  max-width: none;
}

/* 对照表 */
.mh-table-wrap {
  margin-top: 1rem;
  overflow-x: auto;
  border: 1px solid var(--tw-border);
  border-radius: 8px;
  background: var(--tw-card);
}

.mh-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  min-width: 520px;
}

.mh-table th,
.mh-table td {
  padding: 0.7rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--tw-border);
  vertical-align: top;
}

.mh-table th {
  background: var(--tw-accent-soft);
  color: var(--tw-text);
  font-weight: 600;
}

.mh-table tr:last-child td {
  border-bottom: 0;
}

.mh-table td:first-child {
  color: var(--tw-muted);
  width: 42%;
}

.mh-table.mh-table-plans {
  min-width: 640px;
}

.mh-table.mh-table-plans td:first-child,
.mh-table.mh-table-plans th[scope="row"] {
  width: auto;
  white-space: nowrap;
  color: var(--tw-text);
  font-weight: 600;
}

/* 列表 */
.mh-list {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
}

.mh-list li {
  margin: 0.35rem 0;
}

.mh-list-tight {
  margin-top: 0.75rem;
}

.mh-steps {
  margin: 0.75rem 0 1.25rem;
  padding-left: 1.25rem;
}

.mh-steps li {
  margin: 0.4rem 0;
}

/* FAQ */
.mh-faq details {
  margin: 0;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--tw-border);
}

.mh-faq details:first-of-type {
  border-top: 1px solid var(--tw-border);
}

.mh-faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

.mh-faq summary::-webkit-details-marker {
  display: none;
}

.mh-faq summary::before {
  content: "+";
  display: inline-block;
  width: 1.1em;
  color: var(--tw-accent);
  font-weight: 700;
}

.mh-faq details[open] summary::before {
  content: "–";
}

.mh-faq details p {
  margin: 0.55rem 0 0.15rem;
  padding-left: 1.1em;
  color: var(--tw-muted);
  font-size: 0.95rem;
}

/* footer */
.mh-footer {
  border-top: 1px solid var(--tw-border);
  background: #fff;
  padding: 1.25rem 0 1.75rem;
  margin-top: 1rem;
}

.mh-footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  align-items: center;
  font-size: 0.9rem;
}

.mh-footer a {
  color: var(--tw-muted);
}

.mh-footer a:hover {
  color: var(--tw-accent);
}

.mh-footer-copy {
  margin-left: auto;
  color: var(--tw-muted);
  font-size: 0.85rem;
}

@media (max-width: 800px) {
  .mh-flow {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {
  .mh-flow {
    grid-template-columns: 1fr;
  }

  .mh-footer-copy {
    margin-left: 0;
    width: 100%;
  }
}
