/* ============================================================
   fangjianguanli988888.html — 房间管理 988888
   Skeleton: dashboard hero (huge room number + KPI tiles) →
   role/permission matrix → operations card row →
   admin workflow (numbered horizontal) → rules list → CTA
   ============================================================ */

/* ---------- dashboard hero ---------- */
.fj-hero {
  padding: 56px 0 72px; position: relative; overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(760px 420px at 14% 10%, rgba(224,182,96,.13), transparent 62%),
    linear-gradient(180deg, rgba(255,255,255,.02), transparent);
}
.fj-hero::after {
  content: "988888"; position: absolute; right: -2%; bottom: -30%;
  font-size: clamp(160px, 26vw, 340px); font-weight: 800; letter-spacing: -.04em;
  color: rgba(224,182,96,.035); line-height: 1; pointer-events: none; user-select: none;
}
.fj-head { display: grid; grid-template-columns: 1.05fr .95fr; gap: 52px; align-items: center; }
.fj-head-copy { max-width: 560px; }
.fj-head-fig { position: relative; }
.fj-head-fig img {
  width: 100%; height: auto; border-radius: 20px;
  border: 1px solid var(--line-strong); box-shadow: var(--shadow);
}
.fj-head h1 { font-size: clamp(30px, 4.2vw, 52px); font-weight: 800; line-height: 1.14; letter-spacing: -.02em; }
.fj-head h1 .room {
  display: inline-block; font-variant-numeric: tabular-nums;
  background: linear-gradient(120deg, #fff6dd, var(--gold) 58%, #b98a34);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.fj-head p { margin-top: 18px; color: var(--muted); font-size: 16px; }
.fj-actions { display: flex; gap: 12px; flex-wrap: wrap; padding-bottom: 6px; }

/* KPI tiles */
.kpis {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 44px;
}
.kpi {
  padding: 22px 22px 20px; border-radius: 15px;
  border: 1px solid var(--line); background: rgba(12,17,30,.62);
  position: relative; overflow: hidden;
}
.kpi::before {
  content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent 70%); opacity: .6;
}
.kpi .k { font-size: 11.5px; letter-spacing: .12em; color: var(--muted-2); text-transform: uppercase; }
.kpi .v { font-size: 26px; font-weight: 800; margin-top: 8px; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.kpi .d { font-size: 12px; color: var(--muted); margin-top: 4px; display: flex; align-items: center; gap: 6px; }
.kpi .d .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }

/* ---------- permission matrix ---------- */
.matrix-sec { padding: 84px 0; }
.pm-table { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.pm-row {
  display: grid; grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 12px; align-items: center; padding: 16px 22px;
  border-top: 1px solid var(--line); font-size: 13.5px;
}
.pm-row:first-child {
  border-top: 0; background: rgba(255,255,255,.045);
  font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2);
}
.pm-row .cap { color: var(--muted); }
.pm-row .role { text-align: center; }
.pm-row .role.yes { color: var(--green); }
.pm-row .role.no { color: #4c5870; }
.pm-row .role svg { width: 16px; height: 16px; display: inline-block; vertical-align: -3px; }
.pm-row:not(:first-child):hover { background: rgba(224,182,96,.04); }

/* ---------- ops cards ---------- */
.ops { padding: 0 0 84px; }
.ops-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.op-card {
  padding: 28px 24px; border-radius: 17px;
  border: 1px solid var(--line); background: var(--panel);
  position: relative; transition: border-color .22s, transform .22s;
}
.op-card:hover { border-color: rgba(224,182,96,.32); transform: translateY(-3px); }
.op-card .top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.op-card .ico {
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  background: rgba(224,182,96,.1); color: var(--gold-2);
}
.op-card .ico svg { width: 19px; height: 19px; }
.op-card .tag { font-size: 10.5px; }
.op-card h3 { font-size: 16px; margin-bottom: 8px; }
.op-card p { font-size: 13.5px; color: var(--muted); }
.op-card ul { margin-top: 14px; display: flex; flex-direction: column; gap: 7px; }
.op-card li { font-size: 12.5px; color: var(--muted-2); padding-left: 15px; position: relative; }
.op-card li::before {
  content: ""; position: absolute; left: 0; top: 8px; width: 5px; height: 5px;
  border-radius: 1px; background: var(--gold); opacity: .55;
}

/* ---------- workflow ---------- */
.wf { padding: 0 0 84px; }
.wf-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; counter-reset: w; }
.wf-card {
  padding: 26px 22px; border-radius: 15px; counter-increment: w;
  border: 1px solid var(--line); background: rgba(255,255,255,.022);
  position: relative;
}
.wf-card::before {
  content: "0" counter(w); font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 12px; color: var(--gold); letter-spacing: .08em;
}
.wf-card h3 { font-size: 15.5px; margin: 14px 0 8px; }
.wf-card p { font-size: 13px; color: var(--muted); }
.wf-card:not(:last-child)::after {
  content: "→"; position: absolute; right: -12px; top: 50%; transform: translateY(-50%);
  color: var(--muted-2); font-size: 15px; z-index: 1;
}

/* ---------- rules ---------- */
.rules {
  padding: 40px; border-radius: 20px;
  border: 1px solid var(--line);
  background: linear-gradient(150deg, rgba(255,255,255,.035), rgba(255,255,255,.012));
  display: grid; grid-template-columns: .85fr 1.15fr; gap: 44px;
}
.rules h2 { font-size: clamp(22px, 2.6vw, 30px); margin-bottom: 12px; }
.rules > div > p { font-size: 14px; color: var(--muted); }
.rules ol { display: flex; flex-direction: column; gap: 0; counter-reset: r; }
.rules li {
  counter-increment: r; display: grid; grid-template-columns: 34px 1fr; gap: 16px;
  padding: 15px 0; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted);
}
.rules li:first-child { border-top: 0; }
.rules li::before {
  content: counter(r); width: 26px; height: 26px; border-radius: 8px;
  display: grid; place-items: center; font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 11.5px; color: var(--gold-2);
  background: rgba(224,182,96,.09); border: 1px solid rgba(224,182,96,.2);
}
.rules li b { color: var(--text); font-weight: 600; }

@media (max-width: 1000px) {
  .fj-head { grid-template-columns: 1fr; gap: 30px; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .ops-grid { grid-template-columns: 1fr; }
  .wf-grid { grid-template-columns: 1fr 1fr; }
  .wf-card:nth-child(2)::after { display: none; }
  .rules { grid-template-columns: 1fr; padding: 30px; gap: 28px; }
}
@media (max-width: 640px) {
  .fj-hero { padding: 42px 0 54px; }
  .fj-head h1 { font-size: 29px; }
  .kpis { grid-template-columns: 1fr; }
  .pm-row { grid-template-columns: 1.4fr repeat(3, .6fr); padding: 14px 16px; font-size: 12.5px; }
  .pm-row:first-child { font-size: 10.5px; }
  .wf-grid { grid-template-columns: 1fr; }
  .wf-card::after { display: none; }
}
