* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --navy: #0b3d5c;
  --navy-deep: #072a40;
  --blue: #1d6fe8;
  --blue-dark: #1558c0;
  --green: #2e9b4a;
  --text: #1e2937;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #f6f8fb;
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(11, 61, 92, 0.08);
  --radius: 16px;
}

html { scroll-behavior: smooth; min-height: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; }

.container {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 260px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0b3d5c, #1d6fe8);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 800;
  flex-shrink: 0;
}

.brand-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.25;
}

.brand-sub {
  display: block;
  font-size: 12px;
  color: var(--blue);
  font-weight: 500;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 28px;
}

.nav-menu a {
  color: #334155;
  font-weight: 500;
  font-size: 15px;
}

.nav-menu a:hover,
.nav-menu a.active { color: var(--blue); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  cursor: pointer;
  border-radius: 10px;
  font-weight: 600;
  transition: 0.2s ease;
}

.btn-publish {
  background: var(--blue);
  color: #fff;
  padding: 10px 16px;
  box-shadow: 0 6px 16px rgba(29, 111, 232, 0.28);
}

.btn-publish:hover { background: var(--blue-dark); }

.btn-link {
  background: none;
  color: #334155;
  font-weight: 500;
  padding: 6px 4px;
}

.btn-link:hover { color: var(--blue); }

.user-menu {
  position: relative;
}

.user-name {
  background: none;
  border: 0;
  color: #0b3d5c;
  font-weight: 600;
  padding: 6px 4px;
  cursor: pointer;
}

.user-name:hover { color: var(--blue); }

.user-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 148px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 8px;
  z-index: 120;
}

.user-menu.open .user-dropdown { display: grid; }

.user-dropdown a,
.user-dropdown button {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  color: #334155;
  font-size: 14px;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
}

.user-dropdown a:hover,
.user-dropdown button:hover {
  background: #f1f5f9;
  color: var(--blue);
}

.user-dropdown .user-self {
  font-weight: 700;
  color: #0b3d5c;
}

.btn-danger {
  background: #fff;
  color: #b91c1c;
  border: 1px solid #fecaca;
  padding: 8px 14px;
  font-size: 13px;
}

.btn-danger:hover { background: #fef2f2; }

.btn-primary {
  background: var(--navy);
  color: #fff;
  padding: 13px 22px;
}

.btn-primary:hover { background: var(--navy-deep); }

.btn-ghost {
  background: #fff;
  color: var(--navy);
  border: 1px solid #cbd5e1;
  padding: 12px 20px;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  background: var(--navy);
}

.hero {
  background: linear-gradient(180deg, #f3f8ff 0%, #ffffff 70%);
  padding: 72px 0 48px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero h1 {
  font-size: 42px;
  line-height: 1.25;
  color: var(--navy);
  margin-bottom: 16px;
}

.hero-lead {
  font-size: 17px;
  color: var(--muted);
  margin-bottom: 28px;
  max-width: 560px;
}

.hero-points {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
}

.point-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  min-width: 180px;
  box-shadow: var(--shadow);
}

.point-card strong { display: block; color: var(--navy); }
.point-card span { font-size: 13px; color: var(--muted); }

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-panel {
  background: #fff;
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 24px;
  border: 1px solid #e8eef6;
}

.hero-panel h3 {
  color: var(--navy);
  margin-bottom: 8px;
}

.hero-panel p { color: var(--muted); font-size: 14px; margin-bottom: 18px; }

.service-steps {
  display: grid;
  gap: 10px;
}

.service-step {
  background: #f8fbff;
  border-radius: 12px;
  padding: 12px 14px;
}

.service-step strong {
  display: block;
  color: var(--navy);
  font-size: 14px;
  margin-bottom: 2px;
}

.service-step span {
  font-size: 13px;
  color: var(--muted);
}

.section { padding: 64px 0; }
.section.alt { background: var(--bg); }

.section-head {
  text-align: center;
  margin-bottom: 36px;
}

.section-head h2 {
  font-size: 32px;
  color: var(--navy);
  margin-bottom: 8px;
}

.section-head p { color: var(--muted); }

.merchant-grid {
  display: grid;
  gap: 22px;
}

.merchant-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.merchant-cover {
  min-height: 220px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.cover-qinghe { background: linear-gradient(135deg, #fff7d6, #fde68a); }
.cover-weiyuan { background: linear-gradient(135deg, #dcfce7, #86efac); }
.cover-nuoxiang { background: linear-gradient(135deg, #ffe4e6, #fda4af); }
.cover-maitian { background: linear-gradient(135deg, #ffedd5, #fdba74); }
.cover-lvgu { background: linear-gradient(135deg, #dbeafe, #93c5fd); }
.cover-ziranpai { background: linear-gradient(135deg, #ede9fe, #c4b5fd); }
.cover-metavance { background: linear-gradient(135deg, #1e1b4b, #6366f1); color: #fff; }
.cover-metavance .cover-title { color: #fff; }
.cover-metavance .cover-kicker {
  color: #1e1b4b;
  background: #fff;
}
.cover-metavance .cover-tags span {
  color: #fff;
  background: rgba(15, 23, 42, 0.45);
}

.cover-inner {
  height: 100%;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cover-kicker {
  font-size: 12px;
  font-weight: 700;
  color: var(--navy);
  background: rgba(255,255,255,.8);
  width: fit-content;
  padding: 4px 8px;
  border-radius: 999px;
}

.cover-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--navy-deep);
}

.cover-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.cover-tags span {
  background: rgba(255,255,255,.85);
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 999px;
  color: #334155;
}

.merchant-body { padding: 24px 28px; }
.merchant-body h3 {
  font-size: 22px;
  color: var(--navy);
  margin-bottom: 10px;
}

.company-name {
  display: inline-block;
  color: var(--blue);
  font-weight: 700;
  margin-bottom: 12px;
}

.merchant-desc {
  color: var(--muted);
  margin-bottom: 16px;
}

.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.badge {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eff6ff;
  color: var(--blue);
  font-weight: 600;
}

.badge.green { background: #ecfdf3; color: #15803d; }
.badge.orange { background: #fff7ed; color: #c2410c; }

.category-lead {
  background: #f8fbff;
  border: 1px solid #e8eef6;
  border-radius: 16px;
  padding: 20px 22px;
  margin-bottom: 22px;
  color: #475569;
  font-size: 14px;
  line-height: 1.8;
}

.category-lead p { margin-bottom: 8px; }
.category-lead p:last-child { margin-bottom: 0; }

.strip-list {
  display: grid;
  gap: 18px;
}

.strip-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid #1d6fe8;
  border-radius: 16px;
  padding: 26px 28px;
  min-height: 156px;
  box-shadow: var(--shadow);
}

.strip-card.has-thumb {
  grid-template-columns: 112px 1fr auto;
}

.strip-thumb {
  width: 112px;
  height: 84px;
  border-radius: 12px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--line);
  padding: 8px;
}

.strip-card:not(:has(.strip-thumb)) {
  grid-template-columns: 1fr auto;
}
.strip-card .company-name { margin-bottom: 8px; }
.strip-card h3 { color: var(--navy); font-size: 20px; margin-bottom: 10px; }
.strip-card p { color: var(--muted); font-size: 15px; margin-bottom: 12px; line-height: 1.7; }
.strip-card .badges { margin: 0 0 14px; }
.strip-card .mini-meta { margin-bottom: 0; line-height: 1.7; }
.strip-card .btn { white-space: nowrap; align-self: center; padding: 10px 18px; }

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

.mini-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.mini-card h3 { color: var(--navy); margin: 10px 0 8px; font-size: 18px; }
.mini-card p { color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.mini-meta { font-size: 13px; color: #475569; margin-bottom: 14px; }
.muted-hint { color: var(--muted); font-size: 14px; }

.status-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}
.status-tag.wait { background: #fff7ed; color: #c2410c; }
.status-tag.ok { background: #ecfdf3; color: #166534; }

.page-hero {
  background: linear-gradient(180deg, #f3f8ff, #fff);
  padding: 48px 0 28px;
}

.page-hero h1 { font-size: 34px; color: var(--navy); margin-bottom: 8px; }
.page-hero p { color: var(--muted); }

.form-card, .detail-card, .auth-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 28px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 600; color: #334155; }
.field input, .field select, .field textarea {
  border: 1px solid #dbe2ea;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 15px;
  outline: none;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(29,111,232,.12);
}

.notice {
  display: none;
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #ecfdf3;
  color: #166534;
}

.detail-layout {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 22px;
}

.detail-cover {
  height: 240px;
  border-radius: 18px 18px 0 0;
  padding: 28px;
  color: var(--navy);
}

.info-list { list-style: none; }
.info-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.info-list strong { display: block; color: #334155; margin-bottom: 4px; }

.detail-text { color: #64748b; margin-bottom: 14px; line-height: 1.8; }
.detail-sub { color: #0b3d5c; font-size: 16px; margin: 18px 0 10px; }
.detail-points { margin: 0 0 8px 18px; color: #475569; }
.detail-points li { margin-bottom: 6px; }

.supervise-list {
  display: grid;
  gap: 16px;
}

.supervise-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
}

.supervise-item h3 { color: var(--navy); margin-bottom: 8px; }
.supervise-item p { color: var(--muted); }

.auth-wrap {
  min-height: calc(100vh - 220px);
  display: grid;
  place-items: center;
  padding: 40px 0;
  background: var(--bg);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 22px;
}

.contact-row {
  display: grid;
  gap: 14px;
}

.contact-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px;
}

.contact-item h3 {
  color: var(--navy);
  font-size: 14px;
  margin-bottom: 6px;
}

.contact-item p {
  color: #334155;
  font-size: 16px;
  font-weight: 600;
}

.wechat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.wechat-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 16px;
  text-align: center;
  box-shadow: var(--shadow);
}

.wechat-card h3 {
  color: var(--navy);
  margin-bottom: 6px;
}

.wechat-card p {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 14px;
}

.wechat-card img {
  width: 180px;
  height: 180px;
  margin: 0 auto;
  object-fit: contain;
}

.auth-card { width: min(460px, 100%); }
.auth-card h1 { color: var(--navy); margin-bottom: 8px; }
.auth-card .lead { color: var(--muted); margin-bottom: 22px; }
.auth-card .field { margin-bottom: 14px; }
.auth-card .btn-primary { width: 100%; margin-top: 8px; }

.captcha-row {
  display: grid;
  grid-template-columns: 1fr 132px;
  gap: 10px;
  align-items: start;
}

.captcha-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.captcha-box {
  height: 46px;
  width: 132px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #dbe2ea;
}

.captcha-box canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.captcha-refresh {
  background: none;
  border: 0;
  padding: 0;
  color: #1d6fe8;
  font-size: 13px;
  cursor: pointer;
}

.notice.error {
  background: #fef2f2;
  color: #b91c1c;
}

.legal-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: #64748b;
  margin: 4px 0 12px;
}

.legal-check input {
  margin-top: 3px;
}

.legal-check a {
  color: #1d6fe8;
}

.legal-links {
  font-size: 13px;
  color: #64748b;
  margin: 10px 0 4px;
}

.legal-links a {
  color: #1d6fe8;
}

.legal-doc {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.legal-doc h2 {
  color: var(--navy);
  font-size: 18px;
  margin: 22px 0 10px;
}

.legal-doc p, .legal-doc li {
  color: #475569;
  margin-bottom: 10px;
}

.legal-doc ol {
  padding-left: 20px;
}

.site-footer {
  background: var(--navy-deep);
  color: #dbeafe;
  padding: 48px 0 20px;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.site-footer h3, .site-footer h4 { color: #fff; margin-bottom: 12px; }
.site-footer a, .site-footer p { color: #bfd4ea; font-size: 14px; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 8px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 16px;
  text-align: center;
  color: #93c5fd;
  font-size: 13px;
}
.footer-bottom a { color: #bfdbfe; }

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav-menu, .header-actions { display: none; }
  .nav-menu.open, .header-actions.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    left: 20px;
    right: 20px;
    top: 76px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 16px;
    gap: 12px;
  }
  .header-actions.open { top: 250px; }
  .hero-grid, .merchant-card, .form-grid, .detail-layout, .mini-grid, .footer-grid, .stat-row, .contact-grid, .wechat-grid, .strip-card {
    grid-template-columns: 1fr;
  }
  .hero h1 { font-size: 30px; }
  .hero-points { flex-direction: column; }
}
