/* 鹏佳云WAF portal extras on top of OPS app.css */
.waf-topnav {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 18px 8px 8px; flex-wrap: wrap;
}
.waf-topnav .brand-text { font-size: 22px; font-weight: 720; letter-spacing: -.03em; }
.waf-topnav .brand-text em { font-style: normal; color: var(--accent); }
.waf-nav-links { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.waf-nav-links a:not(.btn) {
  color: var(--muted); font-weight: 600; font-size: 13px;
  padding: 8px 10px; border-radius: 12px;
}
.waf-nav-links a:not(.btn):hover { color: var(--accent); background: var(--accent-soft); }

.waf-hero {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.15fr .95fr; gap: 18px;
  padding: 28px 8px 10px; align-items: stretch;
}
.waf-hero h1 {
  margin: 0 0 12px; font-size: clamp(34px, 5vw, 48px);
  font-weight: 740; letter-spacing: -.04em;
}
.waf-hero .lead { margin: 0 0 18px; color: var(--muted); font-size: 15px; line-height: 1.65; max-width: 36rem; }
.waf-cta { display: flex; gap: 8px; flex-wrap: wrap; }

.waf-section { position: relative; z-index: 1; padding: 28px 8px; }
.waf-section h2 { margin: 0 0 6px; font-size: 26px; font-weight: 720; letter-spacing: -.03em; }
.waf-section .sub { margin: 0 0 14px; color: var(--muted); }

.waf-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.waf-feat h3 { margin: 0 0 6px; font-size: 16px; }
.waf-feat p { margin: 0; color: var(--muted); line-height: 1.55; }

.waf-cmd {
  font-family: var(--mono); font-size: 12.5px;
  background: rgba(15,23,42,.92); color: #d7ffe9;
  border-radius: 14px; padding: 12px 14px; overflow-x: auto; white-space: nowrap;
}
.os-tabs { display: flex; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
.os-tabs button {
  border: 1px solid var(--stroke-2); background: var(--glass);
  border-radius: 999px; padding: 6px 12px; cursor: pointer;
  font: inherit; font-size: 12px; font-weight: 600; color: var(--muted);
}
.os-tabs button.active { color: var(--accent); border-color: rgba(0,122,255,.35); background: var(--accent-soft); }

.compare-wrap { overflow: auto; border-radius: var(--radius); }
table.compare { width: 100%; border-collapse: collapse; }
table.compare th, table.compare td {
  padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--stroke-2);
}
table.compare th { color: var(--muted); font-size: 12px; font-weight: 700; }
table.compare td:nth-child(2), table.compare td:nth-child(3),
table.compare th:nth-child(2), table.compare th:nth-child(3) { text-align: center; }
table.compare tr:last-child td { border-bottom: 0; }
.yes { color: var(--ok); font-weight: 700; }
.no { color: var(--danger); font-weight: 600; }

.price-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.price .tag { color: var(--accent); font-weight: 700; font-size: 13px; }
.price .amt { font-size: 32px; font-weight: 740; letter-spacing: -.03em; margin: 6px 0; }
.price ul { margin: 8px 0 0; padding-left: 1.1rem; color: var(--muted); line-height: 1.7; }
.price.hot { outline: 2px solid rgba(0,122,255,.2); }

.waf-footer {
  position: relative; z-index: 1;
  display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  padding: 18px 8px 36px; color: var(--muted); font-size: 13px;
  border-top: 1px solid var(--stroke-2); margin-top: 10px;
}

.admin-form-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0,1fr)) auto;
  gap: 10px; align-items: end;
}
.admin-form-grid .form-row { display: grid; gap: 6px; margin: 0; }
.admin-form-grid label { color: var(--muted); font-size: 12px; font-weight: 600; }
.kpi-grid { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 10px; margin-bottom: 14px; }
.kpi-grid .ov-tile .n { font-size: 28px; font-weight: 740; letter-spacing: -.03em; }
.kpi-grid .ov-tile .l { color: var(--muted); font-size: 12px; font-weight: 600; }
.table-wrap { overflow: auto; }
.badge {
  display: inline-block; padding: 2px 8px; border-radius: 999px;
  font-size: 11px; font-weight: 700; border: 1px solid var(--stroke-2);
  background: var(--glass);
}
.badge.ok { color: var(--ok); background: var(--ok-soft); border-color: transparent; }
.badge.warn { color: #b45309; background: var(--warn-soft); border-color: transparent; }
pre.cmd-out {
  font-family: var(--mono); font-size: 12px; white-space: pre-wrap;
  background: rgba(15,23,42,.92); color: #e2e8f0;
  border-radius: 14px; padding: 12px; margin-top: 10px;
}
.msg { min-height: 1.2em; font-size: 13px; color: var(--danger); }
.msg.ok { color: var(--ok); }

.kpi-grid { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }

html { scroll-behavior: smooth; }
.waf-topnav { animation: pageIn .5s var(--ease-out) both; }
.waf-hero { animation: pageIn .65s var(--ease-out) both; }
.waf-feat, .price {
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.waf-feat:hover, .price:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(15, 23, 42, .1);
}
.hero-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: 999px; margin-bottom: 12px;
  font-size: 12px; font-weight: 700; color: var(--accent);
  background: var(--accent-soft); border: 1px solid rgba(15,118,110,.15);
}
.hero-note { margin: 14px 0 0; color: var(--muted); font-size: 13px; }
.btn { transition: transform .25s var(--ease-spring), box-shadow .25s, background .25s, color .25s; }
.btn:hover { transform: translateY(-1px); }
.os-tabs button { transition: color .2s, background .2s, border-color .2s, transform .2s; }
.os-tabs button:hover { transform: translateY(-1px); }

.reveal { opacity: 0; transform: translateY(22px); filter: blur(6px); transition: .7s cubic-bezier(.16,1,.3,1); }
.reveal.in { opacity: 1; transform: none; filter: none; }

.pipe {
  display: flex; flex-wrap: wrap; align-items: stretch; gap: 0;
  margin: 8px 0 4px;
}
.pipe.vert { flex-direction: column; align-items: stretch; max-width: 640px; }
.pipe-node {
  flex: 1 1 140px;
  background: var(--glass-strong, rgba(255,255,255,.72));
  border: 1px solid var(--stroke-2);
  border-radius: 16px;
  padding: 14px 16px;
  font-weight: 650; font-size: 14px; text-align: center;
  box-shadow: var(--shadow-sm);
}
.pipe-node small { display: block; margin-top: 4px; font-weight: 500; color: var(--muted); font-size: 12px; }
.pipe-node.accent {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: rgba(15,118,110,.2);
}
.pipe-line {
  flex: 0 0 22px; align-self: center; height: 2px;
  background: linear-gradient(90deg, rgba(15,118,110,.15), rgba(15,118,110,.55), rgba(15,118,110,.15));
  position: relative;
}
.pipe-line::after {
  content: ""; position: absolute; right: -1px; top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent; border-left-color: rgba(15,118,110,.55);
}
.pipe-line.v {
  flex: none; width: 2px; height: 22px; margin: 0 auto;
  background: linear-gradient(180deg, rgba(15,118,110,.15), rgba(15,118,110,.55), rgba(15,118,110,.15));
}
.pipe-line.v::after {
  right: auto; left: 50%; top: auto; bottom: -1px;
  transform: translateX(-50%);
  border: 5px solid transparent; border-top-color: rgba(15,118,110,.55); border-left-color: transparent;
}

.flow { display: flex; flex-wrap: wrap; gap: 8px; align-items: stretch; margin: 14px 0; }
.flow-step {
  flex: 1 1 140px;
  background: var(--glass);
  border: 1px solid var(--stroke-2);
  border-radius: 16px;
  padding: 12px 14px;
  font-weight: 620; font-size: 13px; line-height: 1.45;
  display: flex; gap: 8px; align-items: flex-start;
}
.flow-step .n {
  flex: 0 0 22px; height: 22px; border-radius: 999px;
  display: grid; place-items: center;
  background: var(--accent); color: #fff; font-size: 12px; font-weight: 800;
}
.flow-arr { color: var(--accent); font-size: 20px; font-weight: 700; align-self: center; }

.help-shell { display: grid; grid-template-columns: 250px 1fr; gap: 14px; padding: 18px 8px 40px; position: relative; z-index: 1; }
.help-nav a {
  display: block; padding: 8px 10px; border-radius: 12px;
  color: var(--muted); font-weight: 600; font-size: 13px; margin-bottom: 2px;
  transition: background .22s, color .22s, transform .22s;
}
.help-nav a.on, .help-nav a:hover { background: var(--accent-soft); color: var(--accent); text-decoration: none; transform: translateX(3px); }
.help-group {
  margin: 12px 8px 6px; font-size: 11px; font-weight: 800; letter-spacing: .08em;
  color: var(--muted); text-transform: uppercase;
}
.help-article { animation: pageIn .45s var(--ease-out) both; }
.help-rich { line-height: 1.75; font-size: 14.5px; }
.help-rich h3 { margin: 22px 0 8px; font-size: 17px; }
.help-rich p { margin: 0 0 12px; }
.help-list, .help-ol, .help-rich ul { margin: 0 0 14px; padding-left: 1.2rem; color: var(--text); }
.help-list li, .help-ol li { margin: 6px 0; }
.callout {
  margin: 12px 0 16px; padding: 12px 14px; border-radius: 14px;
  background: var(--accent-soft); border: 1px solid rgba(15,118,110,.15);
  color: var(--text); font-size: 13.5px;
}
.callout.ok { background: var(--ok-soft); border-color: transparent; }
.callout.warn { background: var(--warn-soft); border-color: transparent; }
.split-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0; }
.mini-card {
  background: var(--glass); border: 1px solid var(--stroke-2);
  border-radius: 16px; padding: 14px;
}
.mini-card h4 { margin: 0 0 6px; font-size: 15px; }
.mini-card p { margin: 0; color: var(--muted); font-size: 13px; }
.help-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.help-pills span {
  padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 700;
  background: var(--glass); border: 1px solid var(--stroke-2); color: var(--muted);
}
pre.code {
  font-family: var(--mono); font-size: 12.5px; white-space: pre-wrap;
  background: rgba(15,23,42,.92); color: #d7ffe9;
  border-radius: 14px; padding: 12px 14px; overflow-x: auto;
}

.panel-view.panel-enter { animation: pageIn .42s var(--ease-out) both; }
.changelog { display: grid; gap: 12px; }
.cl-item {
  padding: 12px 14px; border-radius: 16px;
  background: var(--glass); border: 1px solid var(--stroke-2);
}
.cl-ver { font-weight: 740; font-size: 15px; margin-bottom: 4px; }
.cl-notes { color: var(--muted); font-size: 13px; margin-bottom: 6px; }
.cl-item ul { margin: 0; padding-left: 1.1rem; font-size: 13px; line-height: 1.65; }

.acct-card { padding: 18px 20px; }
.acct-card .panel-head { margin-bottom: 8px; }
.acct-form { display: grid; gap: 8px; }
.acct-form label { color: var(--muted); font-size: 12px; font-weight: 700; }
.acct-form .field-input, .acct-form input.field-input {
  height: 38px; padding: 0 12px; border: 1px solid var(--stroke-2); border-radius: 10px;
  font: inherit; background: #fff;
}
.acct-form .btn { justify-self: start; margin-top: 6px; }

.acct-wrap {
  width: min(880px, calc(100% - 24px));
  margin: 0 auto;
  position: relative;
  z-index: 1;
  padding-bottom: 48px;
}
.acct-wrap.acct-auth { width: min(460px, calc(100% - 24px)); }
.acct-hero {
  display: flex; justify-content: space-between; align-items: center;
  gap: 18px; padding: 22px 24px; margin-bottom: 8px;
}
.acct-hero h1 {
  margin: 0 0 4px; font-size: 22px; font-weight: 720;
  letter-spacing: -.03em; word-break: break-all;
}
.acct-hero .sub { margin: 0; color: var(--muted); font-size: 13px; }
.acct-seats { text-align: right; flex: 0 0 auto; }
.acct-seats .n {
  font-size: 36px; font-weight: 740; letter-spacing: -.04em;
  line-height: 1; color: var(--accent);
}
.acct-seats .n span { font-size: 18px; color: var(--muted); font-weight: 650; }
.acct-seats .l { color: var(--muted); font-size: 12px; font-weight: 700; margin-top: 6px; }
.acct-sec-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 10px; margin: 18px 4px 10px;
}
.acct-sec-head h2 { margin: 0; font-size: 16px; font-weight: 720; }
.acct-lics {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 10px; margin-bottom: 16px;
}
.lic-card { padding: 16px 18px; margin: 0; }
.lic-card .lic-top {
  display: flex; justify-content: space-between; align-items: center;
  gap: 8px; margin-bottom: 10px;
}
.lic-card .host { margin: 0 0 4px; font-size: 16px; font-weight: 720; }
.lic-card .exp { margin: 0; color: var(--muted); font-size: 13px; }
.lic-card .key { margin: 10px 0 0; font-size: 12px; color: var(--muted); font-family: var(--mono); }
.acct-empty { text-align: center; padding: 28px 20px; margin-bottom: 16px; }
.acct-empty p { margin: 0 0 6px; font-weight: 650; }
.acct-empty .dim { font-weight: 500; }
.acct-split { display: grid; grid-template-columns: 1.25fr .85fr; gap: 12px; }
.acct-split .panel { margin-bottom: 0; }
.acct-orders { width: 100%; border-collapse: collapse; }
.acct-orders th, .acct-orders td {
  padding: 10px 8px; text-align: left; border-bottom: 1px solid var(--stroke-2); font-size: 13px;
}
.acct-orders th { color: var(--muted); font-size: 12px; font-weight: 700; }
.acct-orders tr:last-child td { border-bottom: 0; }
.acct-auth-title {
  margin: 8px 0 6px; font-size: 24px; font-weight: 720; letter-spacing: -.03em;
}
.acct-auth .sub { margin: 0 0 16px; }
.acct-auth-foot { margin: 14px 0 0; }

@media (max-width: 960px) {
  .waf-hero, .waf-grid3, .price-cards, .kpi-grid, .admin-form-grid, .split-2, .help-shell, .acct-split { grid-template-columns: 1fr; }
  .pipe-line { display: none; }
  .acct-hero { flex-direction: column; align-items: flex-start; }
  .acct-seats { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; filter: none; }
  .waf-topnav, .waf-hero, .help-article, .panel-view.panel-enter { animation: none; }
}
