/* 智落 · 统一工作台 */
:root {
  --ws-ink: #0b1b33;
  --ws-muted: #5b6b85;
  --ws-line: #e3e9f2;
  --ws-blue: #2563eb;
  --ws-teal: #0d9488;
  --ws-violet: #7c3aed;
  --ws-bg: #f4f7fc;
}
* { box-sizing: border-box; }
body.ws-page {
  margin: 0;
  background: var(--ws-bg);
  color: var(--ws-ink);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.ws-page a { text-decoration: none; color: inherit; }
.ws-wrap { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

/* header */
.ws-header { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.88); backdrop-filter: blur(16px); border-bottom: 1px solid rgba(227,233,242,.9); }
.ws-header-inner { height: 64px; display: flex; align-items: center; gap: 22px; }
.ws-brand { display: flex; align-items: center; gap: 10px; }
.ws-logo { width: 36px; height: 36px; border-radius: 11px; background: linear-gradient(145deg,#0ea5e9,#4f46e5); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 18px; box-shadow: 0 8px 18px -8px rgba(79,70,229,.6); }
.ws-brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.ws-brand-text b { font-size: 16px; letter-spacing: .12em; }
.ws-brand-text small { font-size: 10px; color: var(--ws-muted); letter-spacing: .08em; margin-top: 2px; }
.ws-nav { display: flex; align-items: center; gap: 2px; margin-left: 18px; }
.ws-nav a { padding: 7px 12px; border-radius: 8px; font-size: 13px; color: #56657d; transition: background .15s, color .15s; }
.ws-nav a:hover { color: var(--ws-ink); background: #f1f5f9; }
.ws-nav a.is-active { color: var(--ws-ink); background: #eef2f7; font-weight: 700; }
.ws-header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.ws-header-secondary { font-size: 12.5px; color: #56657d; padding: 6px 8px; border-radius: 8px; }
.ws-header-secondary:hover { color: var(--ws-ink); background: #f1f5f9; }
.ws-header-cta { height: 36px; padding: 0 16px; border-radius: 10px; background: var(--ws-ink); color: #fff; font-size: 12.5px; display: inline-flex; align-items: center; gap: 7px; font-weight: 600; }
.ws-header-cta span { opacity: .7; }
.ws-menu-toggle { display: none; width: 36px; height: 36px; border: 1px solid var(--ws-line); background: #fff; border-radius: 9px; padding: 9px 8px; flex-direction: column; justify-content: space-between; cursor: pointer; }
.ws-menu-toggle span { display: block; height: 1.5px; border-radius: 2px; background: #334155; transition: transform .15s, opacity .15s; }
.ws-menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.ws-menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.ws-menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
.ws-mobile-nav { display: none; border-top: 1px solid var(--ws-line); background: #fff; padding: 8px 16px 14px; }
.ws-mobile-nav a { display: flex; align-items: center; justify-content: space-between; padding: 11px 10px; border-radius: 8px; font-size: 13.5px; color: #334155; }
.ws-mobile-nav a.is-active { background: #f1f5f9; color: var(--ws-ink); font-weight: 700; }
.ws-mobile-nav a.is-cta { background: var(--ws-ink); color: #fff; justify-content: center; margin-top: 6px; font-weight: 600; }

/* main */
.ws-main { padding: 26px 0 54px; }

/* hero */
.ws-hero {
  position: relative; overflow: hidden; border-radius: 24px;
  background: radial-gradient(1200px 500px at 90% -20%, rgba(56,189,248,.28), transparent 60%), linear-gradient(135deg,#0a1a32 0%,#102b4e 58%,#0d3b4e 100%);
  color: #fff; padding: 42px 46px; display: grid; grid-template-columns: minmax(0,1.15fr) minmax(300px,.85fr); gap: 30px; align-items: center;
  box-shadow: 0 30px 70px -40px rgba(7,18,35,.55);
}
.ws-hero-orbs { position: absolute; inset: 0; pointer-events: none; }
.ws-hero-orbs i { position: absolute; border-radius: 50%; border: 1px solid rgba(125,211,252,.16); }
.ws-hero-orbs i:nth-child(1) { width: 420px; height: 420px; right: -90px; top: -160px; }
.ws-hero-orbs i:nth-child(2) { width: 620px; height: 620px; right: -190px; top: -270px; }
.ws-hero-orbs i:nth-child(3) { width: 260px; height: 260px; left: 40%; bottom: -190px; background: radial-gradient(circle, rgba(14,165,233,.16), transparent 70%); border: 0; }
.ws-hero-content { position: relative; z-index: 2; max-width: 620px; }
.ws-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; letter-spacing: .18em; color: #93c5fd; text-transform: uppercase; margin-bottom: 16px; }
.ws-eyebrow::before { content: ""; width: 22px; height: 1px; background: #60a5fa; }
.ws-hero h1 { font-size: clamp(32px, 4.2vw, 48px); line-height: 1.16; letter-spacing: -.02em; margin: 0 0 14px; font-weight: 800; }
.ws-hero h1 span { background: linear-gradient(95deg,#7dd3fc,#a5b4fc 60%,#c4b5fd); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ws-hero p { margin: 0; color: #b9c8dd; font-size: 14px; line-height: 1.8; max-width: 520px; }
.ws-hero-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.ws-btn { height: 40px; padding: 0 18px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; transition: transform .15s, background .15s; }
.ws-btn:hover { transform: translateY(-1px); }
.ws-btn-primary { background: #fff; color: #0b1b33; }
.ws-btn-ghost { background: rgba(255,255,255,.08); color: #e2e8f0; border: 1px solid rgba(255,255,255,.2); }
.ws-hero-link { color: #93c5fd; font-size: 12.5px; margin-left: 4px; }
.ws-hero-link:hover { color: #fff; }
.ws-identity { margin-top: 22px; display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); color: #c7d5e8; font-size: 11.5px; }
.ws-dot { width: 7px; height: 7px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 3px rgba(52,211,153,.18); }
.ws-identity.is-guest .ws-dot { background: #fbbf24; box-shadow: 0 0 0 3px rgba(251,191,36,.16); }
.ws-hero-side { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.ws-orbit { position: relative; width: 210px; height: 210px; display: grid; place-items: center; }
.ws-orbit-core { width: 76px; height: 76px; border-radius: 22px; display: grid; place-items: center; font-size: 30px; font-weight: 800; color: #fff; background: linear-gradient(145deg,#0ea5e9,#4f46e5); box-shadow: 0 20px 45px -15px rgba(14,165,233,.55); }
.ws-orbit i { position: absolute; inset: 0; border-radius: 50%; border: 1px dashed rgba(148,197,255,.25); animation: ws-spin 24s linear infinite; }
.ws-orbit i::before { content: ""; position: absolute; top: -4px; left: 50%; width: 8px; height: 8px; border-radius: 50%; background: #7dd3fc; box-shadow: 0 0 14px #38bdf8; }
.ws-orbit i.o2 { inset: 22px; animation-duration: 18s; animation-direction: reverse; border-style: solid; border-color: rgba(148,197,255,.12); }
.ws-orbit i.o2::before { background: #a5b4fc; }
.ws-orbit i.o3 { inset: 44px; animation-duration: 30s; }
.ws-orbit i.o3::before { background: #f0abfc; }
@keyframes ws-spin { to { transform: rotate(360deg); } }
.ws-hero-metrics { display: flex; gap: 26px; text-align: center; }
.ws-hero-metrics b { display: block; font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.ws-hero-metrics b span { font-size: 11px; margin-left: 2px; color: #93c5fd; }
.ws-hero-metrics small { font-size: 10.5px; color: #9fb2cc; }

/* sections */
.ws-section { margin-top: 38px; }
.ws-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.ws-kicker { font-size: 10px; letter-spacing: .2em; color: #94a3b8; margin-bottom: 6px; }
.ws-section-head h2 { margin: 0; font-size: 22px; letter-spacing: -.01em; }
.ws-section-head p { margin: 0; font-size: 12px; color: var(--ws-muted); }

/* role cards */
.ws-role-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.ws-role-card {
  position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--ws-line); border-radius: 18px; padding: 22px;
  min-height: 300px; overflow: hidden; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.ws-role-card::before { content: ""; position: absolute; left: 0; top: 20px; bottom: 20px; width: 3px; border-radius: 0 4px 4px 0; background: var(--ws-blue); opacity: .85; }
.ws-role-partner::before { background: var(--ws-teal); }
.ws-role-admin::before { background: var(--ws-violet); }
.ws-role-card:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -30px rgba(15,23,42,.38); border-color: #c9d8ee; }
.ws-role-top { display: flex; align-items: center; gap: 8px; }
.ws-role-icon { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: #eff6ff; color: #1d4ed8; margin-right: 2px; }
.ws-role-icon svg { width: 21px; height: 21px; }
.ws-role-partner .ws-role-icon { background: #ecfdf5; color: #0f766e; }
.ws-role-admin .ws-role-icon { background: #f5f3ff; color: #6d28d9; }
.ws-role-badge { font-size: 10px; letter-spacing: .08em; padding: 3px 8px; border-radius: 999px; background: #f1f5f9; color: #64748b; }
.ws-role-state { margin-left: auto; font-size: 10.5px; padding: 3px 9px; border-radius: 999px; background: #f8fafc; color: #64748b; border: 1px solid #eef2f7; }
.ws-role-state.is-active { background: #ecfdf5; color: #047857; border-color: #d1fae5; }
.ws-role-card h3 { margin: 20px 0 8px; font-size: 19px; letter-spacing: -.01em; }
.ws-role-card > p { margin: 0; color: var(--ws-muted); font-size: 12.5px; line-height: 1.75; min-height: 42px; }
.ws-role-list { list-style: none; padding: 0; margin: 14px 0 18px; display: flex; flex-direction: column; gap: 7px; }
.ws-role-list li { position: relative; padding-left: 15px; font-size: 12px; color: #475569; }
.ws-role-list li::before { content: ""; position: absolute; left: 0; top: 7px; width: 5px; height: 5px; border-radius: 50%; background: #cbd5e1; }
.ws-role-enterprise .ws-role-list li::before { background: #93c5fd; }
.ws-role-partner .ws-role-list li::before { background: #5eead4; }
.ws-role-admin .ws-role-list li::before { background: #c4b5fd; }
.ws-role-cta { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: #1d4ed8; }
.ws-role-partner .ws-role-cta { color: #0f766e; }
.ws-role-admin .ws-role-cta { color: #6d28d9; }
.ws-role-cta i { font-style: normal; transition: transform .15s; }
.ws-role-card:hover .ws-role-cta i { transform: translateX(4px); }

/* quick */
.ws-section-quick { margin-top: 34px; }
.ws-quick-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.ws-quick-card { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--ws-line); border-radius: 14px; padding: 15px 16px; transition: border-color .15s, background .15s; }
.ws-quick-card:hover { border-color: #bcd0ea; background: #fbfdff; }
.ws-quick-icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: #f1f5f9; color: #334155; font-size: 17px; flex: none; }
.ws-quick-card div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ws-quick-card b { font-size: 13px; }
.ws-quick-card small { font-size: 11px; color: #7b8aa3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ws-quick-arrow { margin-left: auto; color: #94a3b8; font-size: 15px; }
.ws-quick-card:hover .ws-quick-arrow { color: var(--ws-blue); }

.ws-footer { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--ws-line); margin-top: 36px; padding-top: 18px; font-size: 11px; color: #94a3b8; }

/* responsive */
@media (max-width: 980px) {
  .ws-hero { grid-template-columns: 1fr; padding: 34px 28px; }
  .ws-hero-side { display: none; }
  .ws-role-grid { grid-template-columns: 1fr; }
  .ws-role-card { min-height: 0; }
  .ws-quick-grid { grid-template-columns: 1fr; }
  .ws-nav { display: none; }
  .ws-header-secondary { display: none; }
  .ws-menu-toggle { display: flex; }
  .ws-header-actions { margin-left: auto; }
  .ws-mobile-nav:not([hidden]) { display: block; }
}
@media (max-width: 560px) {
  .ws-wrap { width: calc(100% - 28px); }
  .ws-header-inner { height: 58px; gap: 12px; }
  .ws-header-cta { height: 32px; padding: 0 12px; font-size: 11.5px; }
  .ws-main { padding-top: 16px; }
  .ws-hero { padding: 28px 22px; border-radius: 18px; }
  .ws-hero p { font-size: 13px; }
  .ws-hero-actions { gap: 8px; }
  .ws-btn { height: 38px; padding: 0 14px; font-size: 12px; }
  .ws-hero-link { width: 100%; margin-left: 0; }
  .ws-section { margin-top: 28px; }
  .ws-section-head { align-items: flex-start; flex-direction: column; gap: 6px; }
  .ws-role-card { padding: 18px; }
  .ws-footer { flex-direction: column; gap: 4px; }
}

/* 显式覆盖 a 的继承色（避免白底白字/深底深字） */
.ws-page a.ws-header-cta { color: #fff; }
.ws-page a.ws-btn-primary { color: #0b1b33; }
.ws-page a.ws-btn-ghost { color: #e2e8f0; }
.ws-page a.ws-hero-link { color: #93c5fd; }
.ws-page a.ws-hero-link:hover { color: #fff; }
.ws-page .ws-nav a { color: #56657d; }
.ws-page .ws-nav a:hover { color: #0b1b33; }
.ws-page .ws-role-enterprise .ws-role-cta { color: #1d4ed8; }
.ws-page .ws-role-partner .ws-role-cta { color: #0f766e; }
.ws-page .ws-role-admin .ws-role-cta { color: #6d28d9; }
.ws-page .ws-quick-card:hover .ws-quick-arrow { color: #2563eb; }
.ws-page .ws-kicker { color: #64748b; }

.ws-identity-logout { border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.06); color: #dbeafe; border-radius: 999px; padding: 2px 9px; font-size: 10.5px; cursor: pointer; margin-left: 4px; }
.ws-identity-logout:hover { background: rgba(255,255,255,.14); }

/* 角色卡完整操作区 */
.ws-role-card { min-height: 360px; }
.ws-role-actions { margin-top: auto; padding-top: 16px; display: flex; gap: 8px; align-items: center; }
.ws-page .ws-role-btn {
  flex: 1; height: 36px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center;
  background: #0b1b33; color: #fff; font-size: 12.5px; font-weight: 600; border: 1px solid #0b1b33;
  transition: transform .15s, background .15s;
}
.ws-page .ws-role-btn:hover { transform: translateY(-1px); background: #13294b; }
.ws-page .ws-role-enterprise .ws-role-btn { background: #1d4ed8; border-color: #1d4ed8; }
.ws-page .ws-role-enterprise .ws-role-btn:hover { background: #1e40af; }
.ws-page .ws-role-partner .ws-role-btn { background: #0f766e; border-color: #0f766e; }
.ws-page .ws-role-partner .ws-role-btn:hover { background: #115e59; }
.ws-page .ws-role-admin .ws-role-btn { background: #6d28d9; border-color: #6d28d9; }
.ws-page .ws-role-admin .ws-role-btn:hover { background: #5b21b6; }
.ws-page .ws-role-btn.ghost { flex: 0 0 auto; padding: 0 12px; background: #fff; color: #334155; border-color: var(--ws-line); }
.ws-page .ws-role-btn.ghost:hover { background: #f8fafc; color: #0b1b33; }
.ws-role-foot { display: flex; justify-content: space-between; gap: 10px; margin-top: 10px; padding-top: 10px; border-top: 1px dashed #eef3fa; }
.ws-page .ws-role-foot a { font-size: 10.5px; color: #7b8aa3; }
.ws-page .ws-role-foot a:hover { color: #1d4ed8; }
.ws-role-state.is-active { background: #ecfdf5; color: #047857; border-color: #d1fae5; }
@media (max-width: 560px) {
  .ws-role-actions { flex-wrap: wrap; }
  .ws-page .ws-role-btn { flex: 1 1 100%; }
  .ws-page .ws-role-btn.ghost { flex: 1 1 100%; }
  .ws-role-foot { flex-wrap: wrap; }
}
