:root {
  --ink: #10231c;
  --ink-2: #34443d;
  --muted: #7b8a83;
  --line: #e6ebe7;
  --paper: #ffffff;
  --bg: #f6f8f5;
  --green: #0a8f5b;
  --green-2: #06ad56;
  --green-soft: #e9f7ef;
  --blue: #1677ff;
  --blue-soft: #eaf2ff;
  --gold: #c8912f;
  --shadow: 0 18px 50px rgba(16, 35, 28, .08);
  --radius: 18px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; max-width: 100%; overflow-x: hidden; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.7 -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--green); text-decoration: none; }
a:hover { opacity: .82; }
img { max-width: 100%; }
button, input, textarea, select { font: inherit; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.hero-grid > *, .cards > *, .steps > *, .console > *, .org-body > *, .footer-inner > * { min-width: 0; }
.hero-card, .card, .step { max-width: 100%; }
.narrow { max-width: 960px; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

/* nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav-inner { height: 68px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; letter-spacing: .2px; color: var(--ink); }
.brand img { width: 38px; height: 38px; border-radius: 10px; box-shadow: 0 4px 14px rgba(22,119,255,.18); }
.brand span i { font-style: normal; color: var(--blue); }
.nav-links { display: flex; align-items: center; gap: 22px; margin-left: 8px; }
.nav-links a { color: var(--ink-2); font-size: 14px; }
.nav-links a:hover { color: var(--green); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 42px; padding: 0 20px; border: 0; border-radius: 10px; background: var(--green); color: #fff; font-size: 14px; font-weight: 600; cursor: pointer; transition: .18s; white-space: nowrap; }
.btn:hover { background: #087a4d; transform: translateY(-1px); }
.btn.ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn.ghost:hover { background: #f9fbf9; }
.btn.blue { background: var(--blue); }
.btn.blue:hover { background: #0d63d6; }
.btn.sm { height: 34px; padding: 0 14px; font-size: 13px; border-radius: 8px; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* hero */
.hero { padding: 70px 0 54px; background: radial-gradient(900px 420px at 78% 8%, #e8f4ff 0%, transparent 62%), radial-gradient(700px 380px at 8% 0%, #e9f8ee 0%, transparent 58%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--blue-soft); color: #1857b8; font-size: 12.5px; font-weight: 600; }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }
.hero h1 { margin: 18px 0 14px; font-size: 50px; line-height: 1.18; letter-spacing: -1px; }
.hero h1 em { font-style: normal; color: var(--green); }
.hero p.lead { margin: 0 0 26px; color: var(--ink-2); font-size: 17px; max-width: 520px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-note { margin-top: 14px; font-size: 12.5px; color: var(--muted); }
.hero-card { position: relative; background: #fff; border-radius: 24px; box-shadow: var(--shadow); padding: 22px; transform: rotate(1.2deg); }
.hero-card .cover { height: 170px; border-radius: 16px; background: linear-gradient(135deg,#0a8f5b,#2bbd82 55%,#7ee0b0); position: relative; overflow: hidden; }
.hero-card .cover::after { content: "企业金兔子"; position: absolute; left: 20px; bottom: 16px; color: #fff; font-weight: 800; font-size: 26px; letter-spacing: .5px; opacity: .95; }
.hero-card .profile { margin-top: -34px; padding: 0 14px; }
.hero-card .avatar { width: 78px; height: 78px; border-radius: 18px; border: 4px solid #fff; object-fit: cover; background: #fff; }
.hero-card h3 { margin: 10px 0 3px; font-size: 20px; }
.badge-qi { display: inline-flex; align-items: center; gap: 4px; background: var(--blue); color: #fff; border-radius: 4px; font-size: 11px; font-weight: 700; padding: 1px 6px; vertical-align: 2px; }
.hero-card .links { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 4px; }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 999px; background: #f3f6f4; color: var(--ink-2); font-size: 12px; }
.chip.blue { background: var(--blue-soft); color: #1857b8; }
.hero-mini { margin-top: 14px; border-top: 1px dashed var(--line); padding-top: 12px; display: flex; align-items: center; gap: 10px; }
.hero-mini img { width: 34px; height: 34px; border-radius: 8px; }
.hero-mini b { font-size: 13px; display: block; }
.hero-mini span { font-size: 11px; color: var(--muted); }

/* sections */
.section { padding: 64px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 36px; }
.section-head h2 { margin: 0 0 10px; font-size: 32px; letter-spacing: -.5px; }
.section-head p { margin: 0; color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { margin: 12px 0 8px; font-size: 17px; }
.card p { margin: 0; color: var(--muted); font-size: 13.5px; }
.icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--green-soft); color: var(--green); font-weight: 800; }
.icon.blue { background: var(--blue-soft); color: var(--blue); }
.icon.gold { background: #fbf3e2; color: var(--gold); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: s; }
.step { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px; position: relative; }
.step::before { counter-increment: s; content: "0" counter(s); position: absolute; top: 14px; right: 16px; color: #dfe7e2; font-weight: 800; font-size: 20px; }
.step h4 { margin: 0 0 8px; font-size: 15px; }
.step p { margin: 0; color: var(--muted); font-size: 13px; }

/* forms */
.auth { min-height: calc(100vh - 68px); display: grid; place-items: center; padding: 46px 20px 70px; }
.auth-card { width: min(460px, 100%); max-width: 100%; background: #fff; border-radius: 22px; box-shadow: var(--shadow); padding: 34px 34px 28px; }
.auth-card h1 { margin: 0 0 6px; font-size: 26px; }
.auth-card .sub { margin: 0 0 22px; color: var(--muted); font-size: 13.5px; }
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; margin-bottom: 6px; font-size: 12.5px; color: var(--ink-2); font-weight: 600; }
.input, textarea.input, select.input { width: 100%; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: #fbfcfb; padding: 0 12px; color: var(--ink); outline: none; transition: .15s; }
textarea.input { height: auto; min-height: 90px; padding: 10px 12px; resize: vertical; }
.input:focus { border-color: #9ed9ba; background: #fff; box-shadow: 0 0 0 3px rgba(10,143,91,.08); }
.code-row { display: flex; gap: 8px; }
.code-row .input { flex: 1; }
.code-row .btn { height: 44px; border-radius: 10px; }
.form-tip { min-height: 20px; font-size: 12.5px; color: var(--muted); margin: 4px 0 8px; }
.form-tip.err { color: #d4380d; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.form-grid .full { grid-column: 1 / -1; }
.auth-foot { margin-top: 16px; display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); }
.divider { display: flex; align-items: center; gap: 10px; color: #b9c4be; font-size: 12px; margin: 18px 0; }
.divider::before, .divider::after { content: ""; height: 1px; background: var(--line); flex: 1; }

/* console */
.console { display: grid; grid-template-columns: 232px 1fr; gap: 24px; padding: 28px 0 60px; }
.side { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 12px; height: fit-content; position: sticky; top: 90px; }
.side .org { display: flex; gap: 10px; align-items: center; padding: 10px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.side .org img { width: 42px; height: 42px; border-radius: 10px; object-fit: cover; }
.side .org b { display: block; font-size: 14px; }
.side .org span { font-size: 11px; color: var(--muted); }
.side a { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 9px; color: var(--ink-2); font-size: 13.5px; }
.side a.active, .side a:hover { background: var(--green-soft); color: var(--green); }
.main { min-width: 0; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 24px; margin-bottom: 18px; }
.panel h2 { margin: 0 0 4px; font-size: 21px; }
.panel .panel-sub { margin: 0 0 18px; color: var(--muted); font-size: 13px; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.kpi b { display: block; font-size: 26px; letter-spacing: -.5px; }
.kpi span { color: var(--muted); font-size: 12px; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 11px 8px; border-bottom: 1px solid var(--line); font-size: 13px; }
.table th { color: var(--muted); font-weight: 600; font-size: 12px; }
.table tr:last-child td { border-bottom: 0; }
.row { display: flex; align-items: center; gap: 10px; }
.between { justify-content: space-between; }
.grow { flex: 1; }
.tag { display: inline-flex; padding: 2px 8px; border-radius: 999px; background: #f2f5f3; color: var(--muted); font-size: 11px; }
.tag.green { background: var(--green-soft); color: var(--green); }
.tag.blue { background: var(--blue-soft); color: var(--blue); }
.tag.gold { background: #fbf3e2; color: var(--gold); }
.empty { padding: 32px 10px; text-align: center; color: var(--muted); font-size: 13px; }

/* public org */
.org-hero { background: #fff; border-bottom: 1px solid var(--line); }
.org-cover { height: 230px; background: linear-gradient(135deg,#0b3f2c,#0a8f5b 52%,#6ed7a4); position: relative; }
.org-cover::after { content: ""; position: absolute; inset: 0; background: radial-gradient(500px 220px at 75% 0%, rgba(255,255,255,.18), transparent 60%); }
.org-profile { display: flex; align-items: flex-end; gap: 18px; margin-top: -52px; position: relative; padding-bottom: 24px; }
.org-profile .grow { padding-top: 48px; }
.org-profile img.logo { width: 112px; height: 112px; border-radius: 24px; border: 5px solid #fff; object-fit: cover; background: #fff; box-shadow: 0 10px 28px rgba(0,0,0,.12); }
.org-profile h1 { margin: 0 0 4px; font-size: 28px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.org-meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 6px; }
.org-body { display: grid; grid-template-columns: 1fr 320px; gap: 24px; padding: 30px 0 60px; }
.box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 18px; }
.box h3 { margin: 0 0 14px; font-size: 17px; }
.link-row { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.link-row:last-child { border-bottom: 0; }
.link-row .ico { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); font-weight: 700; }
.link-row b { font-size: 13.5px; display: block; }
.link-row span { font-size: 12px; color: var(--muted); }
.member { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.member:last-child { border-bottom: 0; }
.member .av { width: 36px; height: 36px; border-radius: 50%; background: #e9f0ec; display: grid; place-items: center; font-weight: 700; color: var(--green); }
.member b { font-size: 13px; }
.member span { font-size: 11.5px; color: var(--muted); }
.qr { display: flex; gap: 14px; align-items: center; }
.qr img { width: 110px; height: 110px; border-radius: 10px; border: 1px solid var(--line); }

/* footer */
.footer { background: #0f1d17; color: #c9d8d0; padding: 36px 0 30px; margin-top: 20px; }
.footer a { color: #c9d8d0; }
.footer-inner { display: grid; grid-template-columns: 1.2fr 2fr; gap: 28px; }
.footer .brand { color: #fff; }
.footer .brand img { box-shadow: none; }
.footer p { margin: 8px 0 0; color: #8fa69a; font-size: 12.5px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: flex-end; font-size: 12.5px; }
.footer-legal { margin-top: 22px; border-top: 1px solid rgba(255,255,255,.1); padding-top: 16px; font-size: 11.5px; color: #7e9489; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.footer-legal a { color: #7e9489; }
.footer-legal a.gongan { display: inline-flex; align-items: center; gap: 5px; }
.footer-legal a.gongan img { width: 20px; height: 20px; display: inline-block; vertical-align: middle; }

/* toast/modal */
.toast { position: fixed; left: 50%; bottom: 40px; transform: translateX(-50%); background: rgba(16,35,28,.92); color: #fff; padding: 10px 18px; border-radius: 999px; font-size: 13px; z-index: 9999; opacity: 0; pointer-events: none; transition: .2s; }
.toast.show { opacity: 1; }
.modal-mask { position: fixed; inset: 0; background: rgba(0,0,0,.45); display: none; align-items: center; justify-content: center; z-index: 9000; padding: 20px; }
.modal-mask.show { display: flex; }
.modal { background: #fff; border-radius: 18px; padding: 26px; width: 520px; max-width: 100%; max-height: 86vh; overflow: auto; }
.modal h3 { margin: 0 0 14px; }
.hidden { display: none !important; }

/* 经营类目选择 */
.cat-mask { position: fixed; inset: 0; background: rgba(0,0,0,.45); display: none; align-items: center; justify-content: center; z-index: 9500; padding: 16px; }
.cat-mask.show { display: flex; }
.cat-panel { width: 600px; max-width: 100%; max-height: 80vh; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 24px 70px rgba(0,0,0,.2); display: flex; flex-direction: column; }
.cat-head { display: flex; align-items: center; justify-content: space-between; padding: 15px 18px; border-bottom: 1px solid var(--line); }
.cat-head b { font-size: 15px; }
.cat-close { border: 0; background: transparent; font-size: 24px; line-height: 1; color: #9aa0a6; cursor: pointer; }
.cat-body { display: flex; min-height: 320px; overflow: hidden; }
.cat-left { width: 190px; flex: none; overflow-y: auto; border-right: 1px solid var(--line); padding: 6px 0; background: #fafbfa; }
.cat-parent { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 14px; font-size: 13px; color: #333; cursor: pointer; }
.cat-parent i { font-style: normal; color: #b5babf; font-size: 18px; line-height: 1; }
.cat-parent:hover, .cat-parent.on { background: var(--blue-soft); color: var(--blue); }
.cat-parent.on i { color: var(--blue); }
.cat-right { flex: 1; overflow-y: auto; padding: 8px 4px; display: grid; grid-template-columns: 1fr 1fr; align-content: start; gap: 0 4px; }
.cat-child { padding: 10px 14px; font-size: 13px; color: #333; border-radius: 7px; cursor: pointer; line-height: 1.5; }
.cat-child:hover { background: var(--blue-soft); color: var(--blue); }
@media (max-width: 620px) {
  .cat-panel { max-height: 86vh; }
  .cat-left { width: 132px; }
  .cat-parent { padding: 10px 10px; font-size: 12.5px; }
  .cat-right { grid-template-columns: 1fr; }
  .cat-child { padding: 10px 12px; font-size: 12.5px; }
}

@media (max-width: 900px) {
  .hero-grid, .console, .org-body, .footer-inner { grid-template-columns: 1fr; }
  .hero h1 { font-size: 38px; }
  .hero-card { transform: none; }
  .cards, .steps, .kpis { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .side { position: static; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .nav-inner { gap: 10px; }
  .brand { font-size: 15px; gap: 7px; }
  .brand img { width: 32px; height: 32px; }
  .nav-right .btn { height: 36px; padding: 0 12px; font-size: 12.5px; }
  .hero h1 { font-size: 30px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .full { grid-column: auto; }
  .hero { padding: 42px 0 34px; }
  .hero h1 { font-size: 31px; }
  .cards, .steps, .kpis { grid-template-columns: 1fr; }
  .auth-card { padding: 26px 20px 22px; }
  .org-profile { align-items: flex-start; flex-direction: column; gap: 10px; }
  .org-profile .grow { padding-top: 0; }
  .org-profile img.logo { width: 88px; height: 88px; }
  .org-cover { height: 170px; }
  .footer-links { justify-content: flex-start; }
}

