/* ============================================================
   销课云 SaaS 官网 — 活力教育风
   ============================================================ */
:root {
    --pf-primary: #059669;
    --pf-primary-dark: #047857;
    --pf-primary-light: #10b981;
    --pf-accent: #f97316;
    --pf-accent-dark: #ea580c;
    --pf-accent-light: #fb923c;
    --pf-green-bg: #ecfdf5;
    --pf-orange-bg: #fff7ed;
    --pf-text: #1c3d2e;
    --pf-text-muted: #5c6f65;
    --pf-bg: #f6fdf9;
    --pf-white: #ffffff;
    --pf-border: #d8ebe3;
    --pf-border-soft: #edf5f0;
    --pf-radius: 14px;
    --pf-radius-sm: 8px;
    --pf-shadow: 0 4px 20px rgba(5, 150, 105, 0.1);
    --pf-shadow-lg: 0 16px 48px rgba(5, 150, 105, 0.14);
    --pf-gradient: linear-gradient(135deg, #059669 0%, #10b981 50%, #f97316 100%);
    --pf-gradient-hero: linear-gradient(145deg, #064e3b 0%, #047857 35%, #059669 65%, #c2410c 100%);
    --pf-gradient-soft: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 50%, #fff7ed 100%);
    --pf-header-h: 72px;
    --pf-scrollbar-size: 10px;
    --pf-scrollbar-track: #e8f5ef;
    --pf-scrollbar-thumb: #9ecfb8;
    --pf-scrollbar-thumb-hover: #059669;
    --pf-modal-scrollbar-size: 8px;
    --pf-modal-scrollbar-thumb: rgba(5, 150, 105, 0.35);
    --pf-modal-scrollbar-thumb-hover: rgba(5, 150, 105, 0.58);
}

*, *::before, *::after { box-sizing: border-box; }

.pf-site { margin: 0; font-family: "PingFang SC", "Microsoft YaHei", -apple-system, sans-serif; background: var(--pf-bg); color: var(--pf-text); line-height: 1.6; -webkit-font-smoothing: antialiased; }
.pf-site a:not(.pf-btn) { color: var(--pf-primary); }

/* 官网页面滚动条 */
html:has(body.pf-site) {
    scrollbar-width: thin;
    scrollbar-color: var(--pf-scrollbar-thumb) var(--pf-scrollbar-track);
}
html:has(body.pf-site)::-webkit-scrollbar {
    width: var(--pf-scrollbar-size);
    height: var(--pf-scrollbar-size);
}
html:has(body.pf-site)::-webkit-scrollbar-track {
    background: var(--pf-scrollbar-track);
}
html:has(body.pf-site)::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #b8e0cc 0%, var(--pf-scrollbar-thumb) 100%);
    border-radius: 999px;
    border: 2px solid var(--pf-scrollbar-track);
    min-height: 48px;
}
html:has(body.pf-site)::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #6ee7b7 0%, var(--pf-scrollbar-thumb-hover) 100%);
}
html:has(body.pf-site)::-webkit-scrollbar-corner {
    background: var(--pf-scrollbar-track);
}

.pf-container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.pf-container-narrow { max-width: 760px; }
.pf-center { text-align: center; }
.pf-mt-lg { margin-top: 32px; }
.pf-muted { color: var(--pf-text-muted); }
.pf-gradient-text { background: linear-gradient(90deg, #34d399, #fbbf24, #f97316); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* ---- Header（始终白底深字，保证可读） ---- */
.pf-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    height: var(--pf-header-h);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--pf-border-soft);
    box-shadow: 0 2px 16px rgba(5, 150, 105, 0.08);
    transition: box-shadow .3s, border-color .3s;
}
.pf-header.is-scrolled {
    box-shadow: 0 4px 24px rgba(5, 150, 105, 0.12);
    border-bottom-color: var(--pf-border);
}
.pf-header-inner { max-width: 1140px; margin: 0 auto; padding: 0 24px; height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.pf-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.pf-logo-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--pf-gradient); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 20px; box-shadow: 0 4px 14px rgba(5,150,105,.35); }
.pf-logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.pf-logo-text strong { font-size: 18px; font-weight: 800; color: var(--pf-primary-dark); }
.pf-logo-text em { font-size: 11px; color: var(--pf-text-muted); font-style: normal; }

.pf-nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 40px; height: 40px; border: none; background: transparent; cursor: pointer; padding: 8px; }
.pf-nav-toggle span { display: block; height: 2px; background: var(--pf-text); border-radius: 2px; transition: .3s; }
.pf-nav-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.pf-nav-toggle.is-active span:nth-child(2) { opacity: 0; }
.pf-nav-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.pf-nav { display: flex; align-items: center; gap: 8px; }
.pf-nav-links { display: flex; align-items: center; gap: 4px; }
.pf-nav-link { padding: 8px 16px; border-radius: 999px; color: var(--pf-text-muted); text-decoration: none; font-size: 15px; font-weight: 500; transition: .2s; }
.pf-nav-link:hover, .pf-nav-link.is-active { color: var(--pf-primary-dark); background: var(--pf-green-bg); font-weight: 600; }
.pf-nav-actions { display: flex; align-items: center; gap: 10px; margin-left: 12px; }
.pf-nav-actions .pf-btn { padding: 9px 20px; font-size: 14px; }

.pf-main { padding-top: var(--pf-header-h); min-height: calc(100vh - 80px); }

/* ---- Buttons ---- */
.pf-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 22px; border-radius: 999px; font-size: 15px; font-weight: 600; text-decoration: none; border: none; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s; white-space: nowrap; }
.pf-btn:hover { transform: translateY(-2px); }
.pf-btn-accent { background: linear-gradient(135deg, var(--pf-accent), #ea580c); color: #fff; box-shadow: 0 4px 20px rgba(249,115,22,.4); }
.pf-btn-accent:hover { box-shadow: 0 8px 28px rgba(249,115,22,.5); }
.pf-btn-primary { background: linear-gradient(135deg, var(--pf-primary), var(--pf-primary-light)); color: #fff; box-shadow: 0 4px 16px rgba(5, 150, 105, 0.3); }
.pf-btn-primary:hover { box-shadow: 0 6px 22px rgba(5, 150, 105, 0.4); color: #fff; }
.pf-site a.pf-btn-primary { color: #fff; }
.pf-btn-primary-solid { background: linear-gradient(135deg, #2563eb, #1d4ed8); color: #fff; box-shadow: 0 4px 16px rgba(37, 99, 235, 0.28); }
.pf-btn-primary-solid:hover { background: linear-gradient(135deg, #1d4ed8, #1e40af); box-shadow: 0 6px 22px rgba(37, 99, 235, 0.35); }
.pf-btn-ghost { background: transparent; color: var(--pf-text); border: 1.5px solid #dce8e2; }
.pf-btn-ghost:hover { border-color: var(--pf-primary); color: var(--pf-primary); background: var(--pf-green-bg); }
.pf-btn-primary-solid, .pf-site a.pf-btn-primary-solid { color: #fff; }
.pf-btn-primary-solid:hover, .pf-site a.pf-btn-primary-solid:hover { color: #fff; }
.pf-btn-accent:hover, .pf-site a.pf-btn-accent:hover { color: #fff; }
.pf-btn-accent, .pf-site a.pf-btn-accent { color: #fff; }
.pf-btn-glass, .pf-site a.pf-btn-glass { color: #fff; }
.pf-btn-glass:hover, .pf-site a.pf-btn-glass:hover { color: #fff; }
.pf-btn-outline-white, .pf-site a.pf-btn-outline-white { color: #fff; }
.pf-btn-outline-white:hover, .pf-site a.pf-btn-outline-white:hover { color: #fff; }
.pf-btn-glass { background: rgba(255,255,255,.15); border: 1.5px solid rgba(255,255,255,.35); backdrop-filter: blur(8px); }
.pf-btn-glass:hover { background: rgba(255,255,255,.25); }
.pf-btn-white { background: #fff; color: var(--pf-primary-dark); box-shadow: var(--pf-shadow); }
.pf-btn-outline-white { background: transparent; border: 2px solid rgba(255,255,255,.6); }
.pf-btn-outline-white:hover { background: rgba(255,255,255,.1); }
.pf-btn-lg { padding: 14px 32px; font-size: 16px; }
.pf-btn-block { display: flex; width: 100%; }

/* ---- Hero ---- */
.pf-hero { position: relative; overflow: hidden; padding: 48px 0 72px; margin-top: calc(-1 * var(--pf-header-h)); padding-top: calc(48px + var(--pf-header-h)); background: var(--pf-gradient-hero); color: #fff; }
.pf-hero-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.pf-hero-orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .45; animation: pf-float 8s ease-in-out infinite; }
.pf-hero-orb-1 { width: 420px; height: 420px; background: #10b981; top: -120px; right: -60px; }
.pf-hero-orb-2 { width: 320px; height: 320px; background: #f97316; bottom: -90px; left: 8%; animation-delay: -3s; }
.pf-hero-orb-3 { width: 220px; height: 220px; background: #34d399; top: 35%; left: 48%; animation-delay: -5s; }
@keyframes pf-float { 0%, 100% { transform: translate(0,0) scale(1); } 50% { transform: translate(20px,-20px) scale(1.05); } }

.pf-hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; position: relative; z-index: 1; }
.pf-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28); padding: 6px 16px; border-radius: 999px; font-size: 13px; margin-bottom: 20px; backdrop-filter: blur(8px); }
.pf-hero h1 { font-size: clamp(32px, 5vw, 52px); font-weight: 800; line-height: 1.15; margin: 0 0 20px; letter-spacing: -.02em; }
.pf-hero-desc { font-size: 17px; opacity: .9; margin: 0 0 28px; max-width: 520px; line-height: 1.7; }
.pf-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 28px; }
.pf-hero-trust { display: flex; flex-wrap: wrap; gap: 20px; font-size: 14px; opacity: .85; }
.pf-hero-trust span { display: flex; align-items: center; gap: 8px; }
.pf-hero-trust i { color: #fbbf24; }
.pf-hero .pf-btn-outline-white {
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.14);
    backdrop-filter: blur(8px);
}
.pf-hero .pf-btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: #fff;
}

.pf-hero-visual { position: relative; min-height: 380px; }
.pf-hero-card { background: rgba(255,255,255,.97); border-radius: var(--pf-radius); box-shadow: var(--pf-shadow-lg); color: var(--pf-text); overflow: hidden; border: 2px solid var(--pf-border-soft); }
.pf-hero-card-main { position: relative; z-index: 2; animation: pf-card-in .8s ease-out; }
@keyframes pf-card-in { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.pf-hero-card-head { display: flex; align-items: center; gap: 8px; padding: 14px 18px; background: var(--pf-green-bg); border-bottom: 1px solid var(--pf-border-soft); }
.pf-hero-card-head em { margin-left: auto; font-size: 12px; color: var(--pf-text-muted); font-style: normal; }
.pf-dot { width: 10px; height: 10px; border-radius: 50%; }
.pf-dot.red { background: #ef4444; } .pf-dot.yellow { background: #eab308; } .pf-dot.green { background: #22c55e; }
.pf-hero-card-body { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 20px; }
.pf-mini-stat { text-align: center; padding: 12px; background: var(--pf-gradient-soft); border-radius: var(--pf-radius-sm); border: 1px solid var(--pf-border-soft); }
.pf-mini-stat strong { display: block; font-size: 24px; font-weight: 800; color: var(--pf-primary-dark); }
.pf-mini-stat span { font-size: 12px; color: var(--pf-text-muted); }
.pf-hero-card-list { padding: 0 20px 20px; }
.pf-hero-card-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--pf-bg); border-radius: var(--pf-radius-sm); margin-bottom: 8px; font-size: 14px; border: 1px solid var(--pf-border-soft); }
.pf-hero-card-row i { color: var(--pf-primary); width: 20px; }
.pf-hero-card-row b { margin-left: auto; color: var(--pf-accent-dark); }

.pf-hero-float { position: absolute; background: #fff; padding: 10px 16px; border-radius: var(--pf-radius-sm); font-size: 13px; font-weight: 600; color: var(--pf-primary-dark); box-shadow: var(--pf-shadow); display: flex; align-items: center; gap: 8px; animation: pf-float-badge 4s ease-in-out infinite; z-index: 3; border: 1px solid var(--pf-border-soft); }
.pf-hero-float i { color: var(--pf-primary); }
.pf-hero-float-1 { top: 20px; right: -10px; animation-delay: 0s; }
.pf-hero-float-2 { bottom: 40px; left: -20px; animation-delay: -2s; }
@keyframes pf-float-badge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ---- Stats bar ---- */
.pf-stats-bar {
    position: relative; z-index: 10;
    margin-top: 0;
    padding: 56px 24px 32px;
    background: var(--pf-bg);
}
.pf-stats-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
    background: #fff;
    border-radius: var(--pf-radius);
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(5, 150, 105, 0.12);
    border: 2px solid var(--pf-border-soft);
}
.pf-stat-item {
    background: #fff; padding: 32px 20px; text-align: center;
    border-right: 1px solid var(--pf-border-soft);
    transition: background .25s;
}
.pf-stat-item:last-child { border-right: none; }
.pf-stat-item:hover { background: var(--pf-green-bg); }
.pf-stat-item strong {
    display: block; font-size: 34px; font-weight: 800;
    background: linear-gradient(135deg, var(--pf-primary-dark), var(--pf-accent));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.pf-stat-item span { font-size: 14px; color: var(--pf-text-muted); margin-top: 4px; display: block; }

/* ---- 入驻机构列表 ---- */
.pf-section-tenants { padding-top: 48px; background: linear-gradient(180deg, #fff 0%, var(--pf-green-bg) 100%); }
.pf-tenant-toolbar {
    display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
    margin-bottom: 24px;
}
.pf-tenant-total {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 14px; font-weight: 600; color: var(--pf-text-muted);
    padding: 8px 14px; border-radius: 999px; background: #fff;
    border: 1px solid var(--pf-border-soft);
}
.pf-tenant-total i { color: var(--pf-primary); }
.pf-tenant-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
.pf-tenant-card {
    background: #fff; border-radius: var(--pf-radius);
    border: 1.5px solid var(--pf-border-soft);
    box-shadow: 0 4px 20px rgba(5, 150, 105, 0.06);
    transition: transform .25s, box-shadow .25s, border-color .25s;
    display: flex; flex-direction: column;
}
.pf-tenant-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(5, 150, 105, 0.12);
    border-color: #a7f3d0;
}
.pf-tenant-card-top {
    display: flex; align-items: flex-start; gap: 14px;
    padding: 20px 20px 12px;
}
.pf-tenant-avatar {
    width: 48px; height: 48px; border-radius: 14px; flex-shrink: 0;
    background: linear-gradient(135deg, var(--pf-primary), var(--pf-accent));
    color: #fff; font-size: 20px; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 16px rgba(5, 150, 105, 0.25);
}
.pf-tenant-card-meta { flex: 1; min-width: 0; }
.pf-tenant-name {
    margin: 0 0 4px; font-size: 17px; font-weight: 800; color: var(--pf-text);
    line-height: 1.3; word-break: break-word;
}
.pf-tenant-slug {
    display: inline-block; font-size: 11px; font-weight: 600;
    color: var(--pf-primary-dark); background: var(--pf-green-bg);
    padding: 2px 8px; border-radius: 6px;
}
.pf-tenant-status {
    flex-shrink: 0; font-size: 11px; font-weight: 700;
    padding: 4px 10px; border-radius: 999px;
}
.pf-tenant-status--active { background: #ecfdf5; color: #059669; }
.pf-tenant-status--trial { background: #eff6ff; color: #2563eb; }
.pf-tenant-card-body {
    display: flex; flex-wrap: wrap; gap: 8px;
    padding: 0 20px 16px; min-height: 36px;
}
.pf-tenant-plan, .pf-tenant-campus {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 12px; font-weight: 600; color: var(--pf-text-muted);
    padding: 5px 10px; border-radius: 8px; background: var(--pf-bg);
    border: 1px solid var(--pf-border-soft);
}
.pf-tenant-plan i, .pf-tenant-campus i { color: var(--pf-primary); font-size: 11px; }
.pf-tenant-card-foot {
    margin-top: auto; padding: 14px 20px;
    border-top: 1px solid var(--pf-border-soft);
    background: linear-gradient(180deg, #fafbfc, #fff);
    border-radius: 0 0 var(--pf-radius) var(--pf-radius);
}
.pf-tenant-enter {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 14px; font-weight: 700; color: var(--pf-primary-dark);
    text-decoration: none; transition: color .2s, gap .2s;
}
.pf-tenant-enter:hover { color: var(--pf-accent-dark); gap: 10px; }
.pf-tenant-empty {
    text-align: center; max-width: 420px; margin: 0 auto;
    padding: 48px 32px; background: #fff; border-radius: var(--pf-radius);
    border: 2px dashed var(--pf-border-soft);
}
.pf-tenant-empty-icon {
    width: 72px; height: 72px; margin: 0 auto 20px; border-radius: 20px;
    background: var(--pf-green-bg); color: var(--pf-primary);
    display: flex; align-items: center; justify-content: center; font-size: 32px;
}
.pf-tenant-empty h3 { margin: 0 0 8px; font-size: 20px; color: var(--pf-text); }
.pf-tenant-empty p { margin: 0 0 20px; font-size: 15px; color: var(--pf-text-muted); }

/* ---- Sections ---- */
.pf-section { padding: 80px 0; }
.pf-section-modules { padding-top: 64px; }
.pf-section-alt { background: var(--pf-green-bg); }
body.pf-modal-open { overflow: hidden; }
.pf-section-tight { padding: 60px 0; }
.pf-section-head { text-align: center; max-width: 600px; margin: 0 auto 48px; }
.pf-section-tag { display: inline-block; font-size: 13px; font-weight: 700; color: var(--pf-primary); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px; background: var(--pf-green-bg); padding: 4px 14px; border-radius: 999px; border: 1px solid var(--pf-border-soft); }
.pf-section-head h2 { font-size: clamp(28px, 4vw, 38px); font-weight: 800; margin: 0 0 12px; color: var(--pf-text); }
.pf-section-head p { font-size: 16px; color: var(--pf-text-muted); margin: 0; }

.pf-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pf-grid-3-sm { gap: 20px; }
.pf-card { background: #fff; border-radius: var(--pf-radius); padding: 32px 28px; border: 1px solid var(--pf-border-soft); }
.pf-card-hover { transition: transform .3s, box-shadow .3s, border-color .3s; }
.pf-card-hover:hover { transform: translateY(-6px); box-shadow: var(--pf-shadow-lg); border-color: var(--pf-border); }
.pf-card-icon { width: 56px; height: 56px; border-radius: 14px; background: var(--icon-bg, var(--pf-gradient)); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 24px; margin-bottom: 20px; }
.pf-card h3 { font-size: 20px; margin: 0 0 10px; }
.pf-card p { font-size: 15px; color: var(--pf-text-muted); margin: 0; line-height: 1.7; }

.pf-mod-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pf-mod-card {
    display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
    padding: 24px 22px; background: #fff; border-radius: var(--pf-radius);
    border: 2px solid var(--pf-border-soft); font-weight: 600; font-size: 15px;
    transition: transform .3s, box-shadow .3s, border-color .3s;
    cursor: pointer; text-align: left; width: 100%;
    font-family: inherit; color: inherit;
    position: relative; overflow: hidden;
    box-shadow: 0 2px 12px rgba(5, 150, 105, 0.04);
}
.pf-mod-card::before {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
    background: var(--mod-color, var(--pf-primary));
    transform: scaleY(0); transform-origin: center;
    transition: transform .3s; border-radius: 4px 0 0 4px;
}
.pf-mod-card:hover::before { transform: scaleY(1); }
.pf-mod-card::after { display: none; }
.pf-mod-card:hover {
    border-color: var(--pf-primary-light);
    box-shadow: 0 12px 36px rgba(5, 150, 105, 0.15);
    transform: translateY(-5px);
}
.pf-mod-card:active { transform: translateY(-2px); }
.pf-mod-card-top { display: flex; align-items: center; gap: 14px; width: 100%; }
.pf-mod-icon {
    width: 52px; height: 52px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0;
    transition: transform .3s;
}
.pf-mod-card:hover .pf-mod-icon { transform: scale(1.08) rotate(-3deg); }
.pf-mod-card h4 { margin: 0; font-size: 17px; color: var(--pf-text); }
.pf-mod-card p { margin: 0; font-size: 13px; font-weight: 400; color: var(--pf-text-muted); line-height: 1.55; }
.pf-mod-hint { font-size: 12px; color: var(--pf-text-muted); margin-top: 8px; display: flex; align-items: center; gap: 6px; }
.pf-mod-hint i { color: var(--pf-accent); font-size: 11px; }

/* Feature modal */
.pf-modal-overlay {
    position: fixed; inset: 0; z-index: 2000;
    background: rgba(6, 78, 59, 0.55);
    backdrop-filter: blur(6px);
    display: flex; align-items: center; justify-content: center;
    padding: 24px;
    opacity: 0; visibility: hidden;
    transition: opacity .3s, visibility .3s;
}
.pf-modal-overlay.is-open { opacity: 1; visibility: visible; }
.pf-modal {
    width: 100%; max-width: 720px; max-height: 90vh; overflow: auto;
    background: #fff; border-radius: 20px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.2);
    border: 2px solid var(--pf-border-soft);
    transform: scale(0.92) translateY(24px);
    transition: transform .35s cubic-bezier(.34, 1.4, .64, 1);
    scrollbar-width: thin;
    scrollbar-color: var(--pf-modal-scrollbar-thumb-hover) transparent;
}
.pf-modal::-webkit-scrollbar {
    width: var(--pf-modal-scrollbar-size);
}
.pf-modal::-webkit-scrollbar-track {
    background: transparent;
    margin: 12px 0;
}
.pf-modal::-webkit-scrollbar-thumb {
    background: var(--pf-modal-scrollbar-thumb);
    border-radius: 999px;
    border: 2px solid #fff;
}
.pf-modal::-webkit-scrollbar-thumb:hover {
    background: var(--pf-modal-scrollbar-thumb-hover);
}
.pf-modal-overlay.is-open .pf-modal { transform: scale(1) translateY(0); }
.pf-modal-visual {
    position: relative; min-height: 200px; padding: 40px 32px;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; border-radius: 18px 18px 0 0;
}
.pf-modal-visual-bg {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, var(--mv-color, #059669) 0%, var(--mv-color2, #10b981) 100%);
    opacity: 0.95;
}
.pf-modal-visual-orbs { position: absolute; inset: 0; overflow: hidden; }
.pf-modal-orb {
    position: absolute; border-radius: 50%; background: rgba(255,255,255,.15);
    animation: pf-modal-orb 6s ease-in-out infinite;
}
.pf-modal-orb:nth-child(1) { width: 120px; height: 120px; top: -30px; right: 10%; }
.pf-modal-orb:nth-child(2) { width: 80px; height: 80px; bottom: -20px; left: 15%; animation-delay: -2s; }
@keyframes pf-modal-orb { 0%, 100% { transform: translate(0,0); } 50% { transform: translate(12px,-12px); } }
.pf-modal-visual-icon {
    position: relative; z-index: 2;
    width: 100px; height: 100px; border-radius: 24px;
    background: rgba(255,255,255,.2); border: 2px solid rgba(255,255,255,.35);
    display: flex; align-items: center; justify-content: center;
    font-size: 48px; color: #fff;
    animation: pf-modal-icon-pulse 2.5s ease-in-out infinite;
    backdrop-filter: blur(8px);
}
@keyframes pf-modal-icon-pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255,255,255,.3); }
    50% { transform: scale(1.05); box-shadow: 0 0 0 16px rgba(255,255,255,0); }
}
.pf-modal-mock {
    position: absolute; bottom: 20px; right: 24px; z-index: 2;
    background: rgba(255,255,255,.92); border-radius: 12px; padding: 12px 16px;
    font-size: 12px; color: var(--pf-text-muted); box-shadow: 0 8px 24px rgba(0,0,0,.12);
    animation: pf-modal-mock-in .5s ease .2s both;
}
@keyframes pf-modal-mock-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.pf-modal-mock strong { display: block; color: var(--pf-primary-dark); font-size: 14px; margin-bottom: 4px; }
.pf-modal-body { padding: 28px 32px 32px; }
.pf-modal-tag {
    display: inline-block; font-size: 12px; font-weight: 700; color: var(--pf-primary);
    background: var(--pf-green-bg); padding: 4px 12px; border-radius: 999px;
    border: 1px solid var(--pf-border-soft); margin-bottom: 10px;
}
.pf-modal-body h3 { margin: 0 0 12px; font-size: 24px; color: var(--pf-text); }
.pf-modal-body > p { margin: 0 0 20px; font-size: 15px; color: var(--pf-text-muted); line-height: 1.75; }
.pf-modal-bullets { list-style: none; padding: 0; margin: 0 0 24px; }
.pf-modal-bullets li {
    padding: 10px 0 10px 28px; position: relative; font-size: 14px; color: var(--pf-text);
    border-bottom: 1px dashed var(--pf-border-soft);
    animation: pf-modal-bullet-in .4s ease both;
}
.pf-modal-bullets li:nth-child(1) { animation-delay: .1s; }
.pf-modal-bullets li:nth-child(2) { animation-delay: .18s; }
.pf-modal-bullets li:nth-child(3) { animation-delay: .26s; }
@keyframes pf-modal-bullet-in { from { opacity: 0; transform: translateX(-12px); } to { opacity: 1; transform: none; } }
.pf-modal-bullets li::before {
    content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900;
    position: absolute; left: 0; color: var(--pf-primary); font-size: 13px;
}
.pf-modal-bullets li:last-child { border-bottom: none; }
.pf-modal-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.pf-modal-close {
    position: absolute; top: 16px; right: 16px; z-index: 10;
    width: 40px; height: 40px; border: none; border-radius: 50%;
    background: rgba(255,255,255,.25); color: #fff; cursor: pointer;
    font-size: 18px; display: flex; align-items: center; justify-content: center;
    transition: background .2s, transform .2s;
    backdrop-filter: blur(4px);
}
.pf-modal-close:hover { background: rgba(255,255,255,.4); transform: rotate(90deg); }
.pf-modal-wrap { position: relative; }
.pf-link-arrow { font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; color: var(--pf-primary); }
.pf-link-arrow i { transition: transform .2s; }
.pf-link-arrow:hover i { transform: translateX(4px); }
.pf-link-inline { color: var(--pf-accent); font-weight: 600; }

/* Steps */
.pf-steps { display: flex; align-items: flex-start; justify-content: center; gap: 0; }
.pf-step { flex: 1; max-width: 280px; text-align: center; padding: 0 16px; }
.pf-step-num { width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 50%; background: var(--pf-gradient); color: #fff; font-size: 20px; font-weight: 800; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(5,150,105,.35); }
.pf-step h3 { font-size: 18px; margin: 0 0 8px; }
.pf-step p { font-size: 14px; color: var(--pf-text-muted); margin: 0; }
.pf-step-line { width: 60px; height: 3px; background: linear-gradient(90deg, var(--pf-primary), var(--pf-accent)); margin-top: 28px; flex-shrink: 0; border-radius: 2px; opacity: .55; }

/* CTA card */
.pf-cta-section { padding: 72px 0 80px; background: var(--pf-bg); position: relative; z-index: 2; }
.pf-cta-section-sm { padding-top: 56px; padding-bottom: 64px; }
.pf-cta-card {
    position: relative; overflow: hidden;
    padding: 52px 40px;
    border-radius: 20px;
    background: linear-gradient(135deg, #064e3b 0%, #047857 45%, #059669 100%);
    color: #fff; text-align: center;
    box-shadow: 0 24px 64px rgba(5, 150, 105, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.12);
    margin-bottom: 0;
}
.pf-cta-section-sm .pf-cta-card { padding: 40px 32px; margin-bottom: 0; }
.pf-cta-card-deco { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.pf-cta-orb {
    position: absolute; border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    filter: blur(40px);
}
.pf-cta-orb-1 { width: 280px; height: 280px; top: -80px; right: -40px; }
.pf-cta-orb-2 { width: 200px; height: 200px; bottom: -60px; left: -20px; background: rgba(249, 115, 22, 0.15); }
.pf-cta-card-content { position: relative; z-index: 1; max-width: 640px; margin: 0 auto; }
.pf-cta-badge {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 13px; font-weight: 600;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 6px 16px; border-radius: 999px;
    margin-bottom: 20px;
}
.pf-cta-badge i { color: #fbbf24; }
.pf-cta-card h2 {
    font-size: clamp(24px, 4vw, 34px); font-weight: 800;
    margin: 0 0 16px; line-height: 1.4;
}
.pf-cta-card p { margin: 0; font-size: 16px; opacity: 0.9; line-height: 1.75; }
.pf-cta-actions {
    display: flex; align-items: center; justify-content: center;
    gap: 14px; flex-wrap: wrap; margin-top: 32px;
}
.pf-cta-trust {
    list-style: none; padding: 0; margin: 32px 0 0;
    display: flex; align-items: center; justify-content: center;
    flex-wrap: wrap; gap: 20px;
    font-size: 13px; opacity: 0.85;
}
.pf-cta-trust li { display: flex; align-items: center; gap: 6px; }
.pf-cta-trust i { color: #6ee7b7; font-size: 12px; }
.pf-cta-card .pf-btn-glass {
    background: rgba(255, 255, 255, 0.12);
    border: 2px solid rgba(255, 255, 255, 0.75);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}
.pf-cta-card .pf-btn-glass:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: #fff;
}

/* Legacy aliases (inner pages may still reference) */
.pf-cta { padding: 72px 0 0; background: var(--pf-bg); }
.pf-cta-sm { padding-top: 56px; }
.pf-cta-inner { display: flex; align-items: center; justify-content: center; gap: 32px; flex-wrap: wrap; text-align: center; }

/* Page hero (inner pages) */
.pf-page-hero { padding: 60px 0 50px; background: var(--pf-gradient-soft); text-align: center; }
.pf-page-hero-sm { padding: 48px 0 40px; }
.pf-page-hero h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; margin: 0 0 12px; }
.pf-page-hero p { font-size: 16px; color: var(--pf-text-muted); margin: 0; max-width: 560px; margin-left: auto; margin-right: auto; }

/* Pricing */
.pf-billing-toggle { display: inline-flex; background: #fff; border-radius: 999px; padding: 4px; margin-top: 24px; box-shadow: var(--pf-shadow); border: 1px solid var(--pf-border-soft); }
.pf-billing-toggle button { padding: 10px 24px; border: none; background: transparent; border-radius: 999px; font-size: 14px; font-weight: 600; cursor: pointer; color: var(--pf-text-muted); transition: .2s; }
.pf-billing-toggle button.active { background: var(--pf-primary); color: #fff; }
.pf-billing-toggle button em { font-style: normal; font-size: 11px; background: var(--pf-orange-bg); color: var(--pf-accent-dark); padding: 2px 6px; border-radius: 4px; margin-left: 4px; }
.pf-billing-toggle button.active em { background: rgba(255,255,255,.25); color: #fff; }

.pf-pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; max-width: 1000px; margin: 0 auto; }
.pf-pricing-card { background: #fff; border-radius: var(--pf-radius); padding: 32px 28px; border: 1px solid #e8eeeb; position: relative; transition: .3s; }
.pf-pricing-card:hover { transform: translateY(-4px); box-shadow: var(--pf-shadow-lg); border-color: #d4e0da; }
.pf-pricing-card.featured { border: 2px solid rgba(5, 150, 105, 0.28); box-shadow: 0 12px 40px rgba(5,150,105,.12); transform: scale(1.02); }
.pf-pricing-card.featured:hover { transform: scale(1.02) translateY(-4px); }
.pf-popular { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--pf-gradient); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 16px; border-radius: 999px; white-space: nowrap; }
.pf-pricing-card h3 { font-size: 22px; margin: 8px 0 4px; }
.pf-plan-tagline { font-size: 14px; color: var(--pf-text-muted); min-height: 40px; margin: 0 0 20px; }
.pf-price { font-size: 42px; font-weight: 800; color: var(--pf-text); }
.pf-price em { font-style: normal; font-size: 20px; vertical-align: super; }
.pf-price span { font-size: 15px; color: var(--pf-text-muted); font-weight: 500; }
.pf-price-equiv { font-size: 13px; color: var(--pf-primary); margin-top: 4px; }
.pf-plan-features { list-style: none; padding: 20px 0; margin: 0 0 24px; border-top: 1px solid var(--pf-border-soft); }
.pf-plan-features li { padding: 8px 0; font-size: 14px; color: var(--pf-text-muted); display: flex; align-items: center; gap: 10px; }
.pf-plan-features i { color: var(--pf-primary); font-size: 12px; }
.pf-pricing-note { margin-top: 48px; padding: 32px; background: #fff; border-radius: var(--pf-radius); border: 1px solid #e8eeeb; }
.pf-pricing-note h3 { margin: 0 0 20px; font-size: 18px; display: flex; align-items: center; gap: 10px; color: var(--pf-primary); }
.pf-pricing-note strong { display: block; margin-bottom: 4px; }
.pf-pricing-note p { font-size: 14px; color: var(--pf-text-muted); margin: 0; }

/* Features tabs */
.pf-tabs { background: #fff; border-radius: var(--pf-radius); border: 1px solid var(--pf-border-soft); overflow: hidden; box-shadow: var(--pf-shadow); }
.pf-tab-nav { display: flex; flex-wrap: wrap; gap: 4px; padding: 16px; background: var(--pf-green-bg); border-bottom: 1px solid var(--pf-border-soft); }
.pf-tab-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border: none; background: transparent; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--pf-text-muted); cursor: pointer; transition: .2s; }
.pf-tab-btn:hover { color: var(--pf-primary); background: rgba(5,150,105,.08); }
.pf-tab-btn.active { background: var(--pf-primary); color: #fff; }
.pf-tab-panel { display: none; padding: 32px; }
.pf-tab-panel.active { display: block; animation: pf-fade-in .35s ease; }
@keyframes pf-fade-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.pf-tab-intro { display: flex; gap: 20px; align-items: flex-start; padding-bottom: 24px; margin-bottom: 24px; border-bottom: 2px solid; }
.pf-tab-intro-icon { width: 56px; height: 56px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 24px; flex-shrink: 0; }
.pf-tab-intro h2 { margin: 0 0 6px; font-size: 22px; }
.pf-tab-intro p { margin: 0; color: var(--pf-text-muted); font-size: 15px; }
.pf-feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.pf-feature-card { display: flex; gap: 12px; align-items: flex-start; padding: 16px; background: var(--pf-bg); border-radius: var(--pf-radius-sm); transition: .2s; border: 1px solid var(--pf-border-soft); }
.pf-feature-card:hover { background: var(--pf-green-bg); border-color: var(--pf-border); }
.pf-feature-card i { margin-top: 3px; }
.pf-feature-card strong { display: block; font-size: 15px; margin-bottom: 2px; }
.pf-feature-card span { font-size: 13px; color: var(--pf-text-muted); }

/* Help */
.pf-help-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 56px; }
.pf-help-card { display: block; padding: 28px 24px; background: #fff; border-radius: var(--pf-radius); border: 1px solid var(--pf-border-soft); text-decoration: none; color: inherit; transition: .3s; }
.pf-help-card:hover { transform: translateY(-4px); box-shadow: var(--pf-shadow-lg); border-color: var(--pf-primary-light); background: var(--pf-green-bg); }
.pf-help-card i { font-size: 32px; margin-bottom: 14px; display: block; }
.pf-help-card h3 { margin: 0 0 8px; font-size: 17px; }
.pf-help-card p { margin: 0; font-size: 14px; color: var(--pf-text-muted); }
.pf-help-block { margin-bottom: 48px; }
.pf-help-block h2 { font-size: 24px; margin: 0 0 24px; display: flex; align-items: center; gap: 12px; }
.pf-help-num { width: 36px; height: 36px; border-radius: 10px; background: var(--pf-gradient); color: #fff; font-size: 16px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.pf-help-steps { display: flex; flex-direction: column; gap: 16px; }
.pf-help-step { padding: 20px 24px; background: #fff; border-radius: var(--pf-radius-sm); border: 1px solid var(--pf-border-soft); border-left: 4px solid var(--pf-primary); }
.pf-help-step h4 { margin: 0 0 8px; font-size: 16px; }
.pf-help-step p { margin: 0; font-size: 15px; color: var(--pf-text-muted); line-height: 1.7; }
.pf-contact-box { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding: 40px; background: linear-gradient(135deg, #047857, #059669 60%, #ea580c); border-radius: var(--pf-radius); color: #fff; }
.pf-contact-info h2 { margin: 0 0 8px; font-size: 24px; }
.pf-contact-info p { margin: 0 0 16px; opacity: .9; }
.pf-contact-info ul { list-style: none; padding: 0; margin: 0; }
.pf-contact-info li { padding: 6px 0; font-size: 15px; display: flex; align-items: center; gap: 12px; }
.pf-contact-cta { display: flex; flex-direction: column; gap: 12px; }

/* FAQ */
.pf-faq-list { margin-bottom: 40px; }
.pf-faq-item { background: #fff; border-radius: var(--pf-radius-sm); margin-bottom: 12px; border: 1px solid var(--pf-border-soft); overflow: hidden; transition: .2s; }
.pf-faq-item.is-open { border-color: var(--pf-primary-light); box-shadow: var(--pf-shadow); background: var(--pf-green-bg); }
.pf-faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; border: none; background: transparent; font-size: 16px; font-weight: 600; text-align: left; cursor: pointer; color: var(--pf-text); font-family: inherit; }
.pf-faq-q i { color: var(--pf-primary); transition: transform .3s; flex-shrink: 0; }
.pf-faq-item.is-open .pf-faq-q i { transform: rotate(180deg); }
.pf-faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.pf-faq-item.is-open .pf-faq-a { max-height: 300px; }
.pf-faq-a p { padding: 0 24px 20px; margin: 0; font-size: 15px; color: var(--pf-text-muted); line-height: 1.7; }
.pf-faq-cta { display: flex; align-items: center; gap: 20px; padding: 28px; background: var(--pf-gradient-soft); border-radius: var(--pf-radius); flex-wrap: wrap; }
.pf-faq-cta > i { font-size: 40px; color: var(--pf-primary); }
.pf-faq-cta strong { display: block; font-size: 17px; }
.pf-faq-cta p { margin: 4px 0 0; font-size: 14px; color: var(--pf-text-muted); }
.pf-faq-cta .pf-btn { margin-left: auto; }

/* Reveal animation */
.pf-reveal { animation: pf-reveal .7s ease both; }
@keyframes pf-reveal { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

/* ---- Footer ---- */
.pf-footer {
    position: relative;
    background: linear-gradient(180deg, #022c22 0%, #011a14 100%);
    color: #94b8a8;
    margin-top: 0;
    padding-top: 48px;
}
.pf-footer-has-cta { padding-top: 56px; }
.pf-footer-inner { max-width: 1140px; margin: 0 auto; padding: 0 24px 32px; }
.pf-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.pf-footer-logo { display: inline-flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 800; color: #fff; text-decoration: none; margin-bottom: 16px; }
.pf-footer-logo i { color: var(--pf-accent); }
.pf-footer-brand p { font-size: 14px; line-height: 1.7; margin: 0 0 20px; max-width: 280px; }
.pf-footer-social { display: flex; gap: 12px; }
.pf-footer-social a { width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,.08); color: #fff; display: flex; align-items: center; justify-content: center; text-decoration: none; transition: .2s; }
.pf-footer-social a:hover { background: var(--pf-accent); transform: translateY(-2px); }
.pf-footer-col h4 { color: #fff; font-size: 15px; margin: 0 0 16px; font-weight: 700; }
.pf-footer-col a { display: block; color: #94a3b8; text-decoration: none; font-size: 14px; padding: 5px 0; transition: .2s; }
.pf-footer-col a:hover { color: #fff; padding-left: 4px; }
.pf-footer-col p { font-size: 14px; margin: 8px 0; display: flex; align-items: center; gap: 10px; }
.pf-footer-col p i { color: var(--pf-accent); width: 16px; }
.pf-footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.08); font-size: 13px; }
.pf-footer-links a { color: #64748b; text-decoration: none; margin-left: 16px; }
.pf-footer-links a:hover { color: #fff; }

/* ---- Auth forms ---- */
.pf-auth-box { max-width: 440px; margin: 48px auto; background: #fff; padding: 36px 32px; border-radius: var(--pf-radius); box-shadow: var(--pf-shadow-lg); border: 1px solid var(--pf-border-soft); }
.pf-auth-wide { max-width: 500px; }
.pf-auth-register { max-width: 920px; }

/* 注册页套餐单选卡片 */
.pf-field-plans > label { margin-bottom: 12px; }
.pf-reg-plan-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.pf-reg-plan-card {
    position: relative;
    display: block;
    padding: 18px 14px 16px;
    border: 2px solid var(--pf-border);
    border-radius: var(--pf-radius);
    background: #fff;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
    text-align: center;
}
.pf-reg-plan-card:hover {
    border-color: #a7f3d0;
    box-shadow: 0 4px 16px rgba(5, 150, 105, 0.1);
}
.pf-reg-plan-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}
.pf-reg-plan-card.is-selected,
.pf-reg-plan-card:has(input:checked) {
    border-color: var(--pf-primary);
    background: linear-gradient(180deg, #f0fdf4 0%, #fff 100%);
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.12);
}
.pf-reg-plan-card.featured.is-selected,
.pf-reg-plan-card.featured:has(input:checked) {
    border-color: var(--pf-primary-dark);
}
.pf-reg-plan-radio {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    margin: 0 auto 10px;
    border: 2px solid #cbd5e1;
    border-radius: 50%;
    transition: 0.2s;
}
.pf-reg-plan-card:has(input:checked) .pf-reg-plan-radio {
    border-color: var(--pf-primary);
    background: var(--pf-primary);
    box-shadow: inset 0 0 0 3px #fff;
}
.pf-reg-plan-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--pf-accent), var(--pf-accent-dark));
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 999px;
    white-space: nowrap;
}
.pf-reg-plan-name {
    margin: 0 0 6px;
    font-size: 17px;
    font-weight: 800;
    color: var(--pf-text);
}
.pf-reg-plan-desc {
    margin: 0 0 12px;
    font-size: 12px;
    color: var(--pf-text-muted);
    line-height: 1.4;
    min-height: 34px;
}
.pf-reg-plan-price {
    font-size: 28px;
    font-weight: 800;
    color: var(--pf-primary-dark);
    margin-bottom: 10px;
}
.pf-reg-plan-price em { font-style: normal; font-size: 14px; vertical-align: super; }
.pf-reg-plan-price span { font-size: 13px; font-weight: 500; color: var(--pf-text-muted); }
.pf-reg-plan-meta {
    list-style: none;
    margin: 0;
    padding: 10px 0 0;
    border-top: 1px solid var(--pf-border-soft);
    font-size: 12px;
    color: var(--pf-text-muted);
    display: flex;
    justify-content: center;
    gap: 12px;
}

/* 注册成功庆祝 */
.pf-auth-register--success { overflow: hidden; }
.pf-reg-celebrate {
    position: relative;
    text-align: center;
    padding: 12px 0 8px;
    margin-bottom: 4px;
}
.pf-reg-confetti {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: visible;
}
.pf-reg-confetti span {
    position: absolute;
    left: 50%;
    top: 42%;
    width: var(--sz, 8px);
    height: var(--sz, 8px);
    background: var(--c, #10b981);
    border-radius: 2px;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0);
}
.pf-reg-celebrate.is-active .pf-reg-confetti span {
    animation: pfConfettiBurst 1.4s cubic-bezier(0.2, 0.8, 0.3, 1) var(--delay, 0s) forwards;
}
.pf-reg-celebrate.is-active .pf-reg-confetti span:nth-child(3n) { border-radius: 50%; }
.pf-reg-celebrate.is-active .pf-reg-confetti span:nth-child(5n) {
    width: calc(var(--sz, 8px) * 0.6);
    height: calc(var(--sz, 8px) * 1.4);
}
@keyframes pfConfettiBurst {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(0) rotate(0deg);
    }
    15% {
        opacity: 1;
        transform: translate(calc(-50% + var(--tx) * 0.15), calc(-50% + var(--ty) * 0.15)) scale(1.2) rotate(calc(var(--rot) * 0.2));
    }
    100% {
        opacity: 0;
        transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) scale(0.6) rotate(var(--rot));
    }
}
.pf-reg-success-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    color: var(--pf-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    position: relative;
    z-index: 1;
    animation: pfSuccessPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s both;
}
.pf-reg-celebrate h1 {
    position: relative;
    z-index: 1;
    margin: 0 0 8px;
    animation: pfSuccessFadeUp 0.5s ease 0.15s both;
}
.pf-reg-success-title {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    background: linear-gradient(90deg, #059669, #10b981, #f97316);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
    animation: pfSuccessFadeUp 0.5s ease 0.25s both;
}
.pf-reg-success-tip {
    text-align: center;
    color: var(--pf-text-muted);
    font-size: 15px;
    margin: 16px 0 0;
    line-height: 1.6;
}
.pf-reg-success-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 28px;
    padding-bottom: 8px;
}
.pf-reg-login-btn {
    min-width: 200px;
    padding: 14px 36px !important;
    font-size: 16px;
    box-shadow: 0 6px 24px rgba(5, 150, 105, 0.35);
}
@keyframes pfSuccessPop {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}
@keyframes pfSuccessFadeUp {
    0% { transform: translateY(12px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}
.pf-reg-celebrate.is-done::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 45%;
    width: 120px;
    height: 120px;
    margin: -60px 0 0 -60px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.2) 0%, transparent 70%);
    animation: pfSuccessRing 0.8s ease-out 0.2s both;
    pointer-events: none;
}
@keyframes pfSuccessRing {
    0% { transform: scale(0.5); opacity: 0.8; }
    100% { transform: scale(2.2); opacity: 0; }
}

.pf-auth-box h1 { font-size: 26px; font-weight: 800; margin: 0 0 8px; text-align: center; }
.pf-auth-box > .pf-muted { text-align: center; margin-bottom: 24px; }
.pf-field { margin-bottom: 16px; }
.pf-field label { display: block; font-size: 14px; font-weight: 600; color: var(--pf-text); margin-bottom: 6px; }
.pf-field input, .pf-field select, .pf-field textarea { width: 100%; box-sizing: border-box; height: 44px; padding: 0 14px; border: 1.5px solid var(--pf-border); border-radius: var(--pf-radius-sm); font-size: 15px; transition: .2s; font-family: inherit; }
.pf-field input:focus, .pf-field select:focus { outline: none; border-color: var(--pf-primary); box-shadow: 0 0 0 3px rgba(5,150,105,.15); }
.pf-field textarea { height: auto; padding: 12px 14px; }
.pf-alert { padding: 12px 16px; border-radius: var(--pf-radius-sm); margin-bottom: 16px; font-size: 14px; }
.pf-alert.err { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.pf-alert.ok { background: #ecfdf5; color: #059669; border: 1px solid #a7f3d0; }

/* ---- Deny pages ---- */
.pf-deny { max-width: 420px; margin: 100px auto; text-align: center; background: #fff; padding: 40px; border-radius: var(--pf-radius); box-shadow: var(--pf-shadow); }
.pf-deny h2 { margin: 12px 0; }
.pf-deny a { display: inline-block; margin: 8px; }

/* ---- Responsive ---- */
@media (max-width: 960px) {
    .pf-hero-grid { grid-template-columns: 1fr; text-align: center; }
    .pf-hero-desc { margin-left: auto; margin-right: auto; }
    .pf-hero-actions, .pf-hero-trust { justify-content: center; }
    .pf-hero-visual { min-height: 320px; max-width: 400px; margin: 0 auto; }
    .pf-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .pf-grid-3, .pf-help-grid { grid-template-columns: 1fr; }
    .pf-mod-grid { grid-template-columns: repeat(2, 1fr); }
    .pf-footer-grid { grid-template-columns: 1fr 1fr; }
    .pf-steps { flex-direction: column; align-items: center; }
    .pf-step-line { width: 2px; height: 40px; margin: 0; }
    .pf-cta-section { padding-bottom: 56px; }
    .pf-cta-card { padding: 36px 24px; margin-bottom: 0; border-radius: 16px; }
    .pf-cta-actions { flex-direction: column; }
    .pf-cta-actions .pf-btn { width: 100%; max-width: 280px; }
    .pf-cta-trust { flex-direction: column; gap: 10px; }
    .pf-footer-has-cta { padding-top: 48px; }
}

@media (max-width: 768px) {
    .pf-nav-toggle { display: flex; }
    .pf-nav { position: fixed; top: var(--pf-header-h); left: 0; right: 0; bottom: 0; background: rgba(255,255,255,.98); backdrop-filter: blur(12px); flex-direction: column; padding: 24px; gap: 24px; transform: translateX(100%); transition: transform .3s; align-items: stretch; }
    .pf-nav.is-open { transform: translateX(0); }
    .pf-nav-links { flex-direction: column; }
    .pf-nav-link { padding: 14px 16px; font-size: 16px; }
    .pf-nav-actions { flex-direction: column; margin-left: 0; }
    .pf-nav-actions .pf-btn { width: 100%; justify-content: center; }
    body.pf-nav-open { overflow: hidden; }
    .pf-pricing-card.featured { transform: none; }
    .pf-tab-nav { flex-direction: column; }
    .pf-footer-grid { grid-template-columns: 1fr; }
    .pf-footer-bottom { flex-direction: column; text-align: center; }
    .pf-reg-plan-grid { grid-template-columns: 1fr; }
    .pf-auth-register { margin: 24px 16px; padding: 28px 20px; }
    .pf-modal { max-height: 85vh; }
    .pf-modal-body { padding: 22px 20px 28px; }
    .pf-modal-visual { min-height: 160px; padding: 32px 20px; }
    .pf-modal-mock { display: none; }
    .pf-contact-box { flex-direction: column; text-align: center; }
}

/* ============================================================
   平台管理后台
   ============================================================ */
.pfa-body {
    --pfa-sidebar-w: 248px;
    --pfa-topbar-h: 64px;
    --pfa-bg: #f0f4f8;
    --pfa-card: #ffffff;
    --pfa-text: #1e293b;
    --pfa-muted: #64748b;
    --pfa-border: #e2e8f0;
    --pfa-sidebar-bg: linear-gradient(180deg, #064e3b 0%, #0c1f17 40%, #111827 100%);
    --pfa-accent: #10b981;
    --pfa-accent-dark: #059669;
    --pfa-shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 8px 24px rgba(15, 23, 42, 0.04);
    --pfa-radius: 14px;
    --pfa-scrollbar-size: 10px;
    --pfa-scrollbar-track: #e8edf3;
    --pfa-scrollbar-thumb: #b8c5d6;
    --pfa-scrollbar-thumb-hover: #94a3b8;
    --pfa-sidebar-scrollbar-size: 6px;
    --pfa-sidebar-scrollbar-thumb: rgba(110, 231, 183, 0.42);
    --pfa-sidebar-scrollbar-thumb-hover: rgba(110, 231, 183, 0.72);
    margin: 0;
    font-family: "PingFang SC", "Microsoft YaHei", -apple-system, sans-serif;
    background: var(--pfa-bg);
    color: var(--pfa-text);
    -webkit-font-smoothing: antialiased;
}

/* 平台后台 — 页面滚动条 */
html:has(body.pfa-body) {
    scrollbar-width: thin;
    scrollbar-color: var(--pfa-scrollbar-thumb) var(--pfa-scrollbar-track);
}
html:has(body.pfa-body)::-webkit-scrollbar {
    width: var(--pfa-scrollbar-size);
    height: var(--pfa-scrollbar-size);
}
html:has(body.pfa-body)::-webkit-scrollbar-track {
    background: var(--pfa-scrollbar-track);
}
html:has(body.pfa-body)::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #c9d4e3 0%, var(--pfa-scrollbar-thumb) 100%);
    border-radius: 999px;
    border: 2px solid var(--pfa-scrollbar-track);
    min-height: 48px;
}
html:has(body.pfa-body)::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #b0becf 0%, var(--pfa-scrollbar-thumb-hover) 100%);
}
html:has(body.pfa-body)::-webkit-scrollbar-corner {
    background: var(--pfa-scrollbar-track);
}

.pfa-shell { display: flex; min-height: 100vh; }

/* Sidebar */
.pfa-sidebar {
    width: var(--pfa-sidebar-w);
    background: var(--pfa-sidebar-bg);
    color: #e2e8f0;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 200;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.12);
}
.pfa-sidebar-brand { padding: 20px 18px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.pfa-brand-link { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.pfa-brand-icon {
    width: 42px; height: 42px; border-radius: 12px;
    background: linear-gradient(135deg, #10b981, #059669);
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}
.pfa-brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.pfa-brand-text strong { font-size: 17px; font-weight: 800; }
.pfa-brand-text em { font-size: 11px; color: rgba(255, 255, 255, 0.55); font-style: normal; }

.pfa-sidebar-nav {
    flex: 1;
    padding: 16px 12px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--pfa-sidebar-scrollbar-thumb) transparent;
}
.pfa-sidebar-nav::-webkit-scrollbar {
    width: var(--pfa-sidebar-scrollbar-size);
}
.pfa-sidebar-nav::-webkit-scrollbar-track {
    background: transparent;
    margin: 10px 0;
}
.pfa-sidebar-nav::-webkit-scrollbar-thumb {
    background: var(--pfa-sidebar-scrollbar-thumb);
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}
.pfa-sidebar-nav::-webkit-scrollbar-thumb:hover {
    background: var(--pfa-sidebar-scrollbar-thumb-hover);
}
.pfa-nav-label {
    font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.35); padding: 12px 12px 8px; margin-top: 4px;
}
.pfa-nav-item {
    display: flex; align-items: center; gap: 12px;
    padding: 11px 14px; margin-bottom: 4px; border-radius: 10px;
    color: rgba(255, 255, 255, 0.72); text-decoration: none; font-size: 14px; font-weight: 500;
    transition: background 0.2s, color 0.2s;
}
.pfa-nav-item i { width: 18px; text-align: center; font-size: 15px; opacity: 0.85; }
.pfa-nav-item:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.pfa-nav-item.is-active {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(16, 185, 129, 0.12));
    color: #fff; font-weight: 600;
    box-shadow: inset 0 0 0 1px rgba(16, 185, 129, 0.35);
}
.pfa-nav-item.is-active i { color: #6ee7b7; }

.pfa-sidebar-foot { padding: 16px; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.pfa-sidebar-user { display: flex; align-items: center; gap: 10px; }
.pfa-user-avatar {
    width: 36px; height: 36px; border-radius: 10px;
    background: rgba(255, 255, 255, 0.12); color: #fff;
    display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px;
}
.pfa-user-name { font-size: 13px; color: rgba(255, 255, 255, 0.85); font-weight: 500; }

/* Main layout */
.pfa-main-wrap {
    flex: 1; margin-left: var(--pfa-sidebar-w);
    display: flex; flex-direction: column; min-height: 100vh;
}
.pfa-topbar {
    height: var(--pfa-topbar-h); background: var(--pfa-card);
    border-bottom: 1px solid var(--pfa-border);
    display: flex; align-items: center; gap: 16px;
    padding: 0 28px; position: sticky; top: 0; z-index: 100;
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}
.pfa-menu-toggle {
    display: none; width: 40px; height: 40px; border: none; border-radius: 10px;
    background: var(--pfa-bg); color: var(--pfa-text); cursor: pointer; font-size: 18px;
}
.pfa-topbar-title h1 { margin: 0; font-size: 18px; font-weight: 700; color: var(--pfa-text); }
.pfa-topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.pfa-topbar-link, .pfa-topbar-logout {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 14px; border-radius: 8px; font-size: 13px; font-weight: 500;
    text-decoration: none; transition: 0.2s;
}
.pfa-topbar-link { color: var(--pfa-muted); background: var(--pfa-bg); }
.pfa-topbar-link:hover { color: var(--pfa-accent-dark); background: #ecfdf5; }
.pfa-topbar-logout { color: #dc2626; background: #fef2f2; }
.pfa-topbar-logout:hover { background: #fee2e2; }

.pfa-main { flex: 1; padding: 28px; }

/* Welcome & stats */
.pfa-welcome { margin-bottom: 24px; }
.pfa-welcome p { margin: 0; color: var(--pfa-muted); font-size: 14px; }

.pfa-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px; margin-bottom: 24px;
}
.pfa-stat-card {
    background: var(--pfa-card); border-radius: var(--pfa-radius);
    padding: 20px; display: flex; align-items: flex-start; gap: 16px;
    box-shadow: var(--pfa-shadow); border: 1px solid var(--pfa-border);
    transition: transform 0.2s, box-shadow 0.2s;
}
.pfa-stat-card:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08); }
.pfa-stat-icon {
    width: 48px; height: 48px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0;
}
.pfa-stat-card--green .pfa-stat-icon { background: #ecfdf5; color: #059669; }
.pfa-stat-card--blue .pfa-stat-icon { background: #eff6ff; color: #2563eb; }
.pfa-stat-card--purple .pfa-stat-icon { background: #f5f3ff; color: #7c3aed; }
.pfa-stat-card--orange .pfa-stat-icon { background: #fff7ed; color: #ea580c; }
.pfa-stat-body strong { display: block; font-size: 30px; font-weight: 800; line-height: 1.1; color: var(--pfa-text); }
.pfa-stat-body em { display: block; font-style: normal; font-size: 13px; color: var(--pfa-muted); margin-top: 4px; }
.pfa-stat-meta { display: block; font-size: 12px; color: var(--pfa-accent-dark); margin-top: 6px; }

/* Cards */
.pfa-card {
    background: var(--pfa-card); border-radius: var(--pfa-radius);
    border: 1px solid var(--pfa-border); box-shadow: var(--pfa-shadow);
    margin-bottom: 20px; overflow: hidden;
}
.pfa-card--flush .pfa-table-wrap { border: none; box-shadow: none; border-radius: 0; }
.pfa-card-head {
    padding: 18px 22px; border-bottom: 1px solid var(--pfa-border);
    background: linear-gradient(180deg, #fafbfc, #fff);
}
.pfa-card-head h2 {
    margin: 0; font-size: 15px; font-weight: 700;
    display: flex; align-items: center; gap: 8px; color: var(--pfa-text);
}
.pfa-card-head h2 i { color: var(--pfa-accent); font-size: 14px; }
.pfa-card .pfa-form { padding: 22px; }
.pfa-card .pfa-field { padding: 0 22px; }
.pfa-card .pfa-field:first-of-type { padding-top: 22px; }
.pfa-card .pfa-field:last-of-type { padding-bottom: 8px; }
.pfa-card .pfa-btn { margin: 0 22px 22px; }

.pfa-grid-2 {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px;
}

/* Quick actions */
.pfa-quick-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 20px;
}
.pfa-quick-item {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
    padding: 20px 12px; border-radius: 12px; background: var(--pfa-bg);
    border: 1px solid var(--pfa-border); text-decoration: none; color: var(--pfa-text);
    font-size: 13px; font-weight: 600; transition: 0.2s;
}
.pfa-quick-item i { font-size: 22px; color: var(--pfa-accent); }
.pfa-quick-item:hover {
    background: #ecfdf5; border-color: #a7f3d0; color: var(--pfa-accent-dark);
    transform: translateY(-2px);
}

.pfa-link-list { list-style: none; margin: 0; padding: 12px 0; }
.pfa-link-list li { border-bottom: 1px solid var(--pfa-border); }
.pfa-link-list li:last-child { border-bottom: none; }
.pfa-link-list a {
    display: flex; align-items: center; gap: 12px; padding: 14px 22px;
    color: var(--pfa-text); text-decoration: none; font-size: 14px; transition: 0.2s;
}
.pfa-link-list a i { width: 18px; color: var(--pfa-accent); }
.pfa-link-list a:hover { background: #f8fafc; color: var(--pfa-accent-dark); }

/* Tables */
.pfa-table-wrap {
    background: var(--pfa-card); border-radius: var(--pfa-radius);
    border: 1px solid var(--pfa-border); overflow: auto; box-shadow: var(--pfa-shadow);
}
.pfa-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.pfa-table th, .pfa-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--pfa-border); }
.pfa-table th {
    background: #f8fafc; font-weight: 600; font-size: 12px;
    text-transform: uppercase; letter-spacing: 0.04em; color: var(--pfa-muted);
}
.pfa-table tbody tr:hover { background: #fafbfc; }
.pfa-table tbody tr:last-child td { border-bottom: none; }
.pfa-table-empty { text-align: center; color: var(--pfa-muted); padding: 40px !important; }
.pfa-table-id { color: var(--pfa-muted); font-size: 13px; font-weight: 600; }
.pfa-table-col-actions { text-align: right; white-space: nowrap; }
.pfa-table th.pfa-table-col-actions { text-align: right; }
.pfa-table-action {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--pfa-accent-dark); text-decoration: none; font-weight: 600; font-size: 13px;
}
.pfa-table-action:hover { color: #047857; text-decoration: underline; }
.pfa-table-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }

/* 胶囊操作按钮 */
.pfa-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
    transition: background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s, transform 0.15s;
    white-space: nowrap;
}
.pfa-action-btn i { font-size: 11px; opacity: 0.9; }
.pfa-action-btn--edit {
    color: #047857;
    background: #ecfdf5;
    border-color: #a7f3d0;
}
.pfa-action-btn--edit:hover {
    background: #d1fae5;
    border-color: #6ee7b7;
    color: #065f46;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.15);
    transform: translateY(-1px);
}
.pfa-action-btn--go {
    color: #1d4ed8;
    background: #eff6ff;
    border-color: #bfdbfe;
}
.pfa-action-btn--go:hover {
    background: #dbeafe;
    border-color: #93c5fd;
    color: #1e40af;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.12);
    transform: translateY(-1px);
}

/* 租户管理页 */
.pfa-tenant-page { display: flex; flex-direction: column; gap: 20px; }
.pfa-tenant-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    padding: 22px 24px;
    border-radius: var(--pfa-radius);
    background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 45%, #fff 100%);
    border: 1px solid #d1fae5;
    box-shadow: var(--pfa-shadow);
}
.pfa-tenant-hero-text h2 {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 800;
    color: var(--pfa-text);
    display: flex;
    align-items: center;
    gap: 10px;
}
.pfa-tenant-hero-text h2 i { color: var(--pfa-accent); font-size: 16px; }
.pfa-tenant-hero-text p {
    margin: 0;
    font-size: 14px;
    color: var(--pfa-muted);
    line-height: 1.65;
    max-width: 520px;
}
.pfa-tenant-mini-stats {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.pfa-tenant-mini-stat {
    min-width: 72px;
    padding: 12px 16px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid var(--pfa-border);
    text-align: center;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}
.pfa-tenant-mini-stat strong {
    display: block;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.1;
    color: var(--pfa-text);
}
.pfa-tenant-mini-stat span {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: var(--pfa-muted);
    font-weight: 500;
}
.pfa-tenant-mini-stat--green strong { color: #059669; }
.pfa-tenant-mini-stat--blue strong { color: #2563eb; }
.pfa-tenant-mini-stat--gray strong { color: #64748b; }
.pfa-tenant-mini-stat--orange strong { color: #ea580c; }
.pfa-tenant-mini-stat--link {
    text-decoration: none; color: inherit; cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.pfa-tenant-mini-stat--link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
    border-color: #a7f3d0;
}
.pfa-tenant-mini-stat--link.is-active {
    border-color: var(--pfa-accent);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
    background: #ecfdf5;
}
.pfa-tenant-mini-stat--link.is-active span { color: var(--pfa-accent-dark); font-weight: 600; }
.pfa-tenant-clear-filter {
    display: inline-flex; align-items: center; justify-content: center;
    width: 22px; height: 22px; margin-left: 8px; border-radius: 6px;
    color: var(--pfa-muted); text-decoration: none; font-size: 12px;
    background: #f1f5f9; transition: 0.2s;
}
.pfa-tenant-clear-filter:hover { background: #fee2e2; color: #dc2626; }
.pfa-tenant-card-head h2 { display: flex; align-items: center; }

/* 订单管理 */
.pfa-order-hero {
    background: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 45%, #fff 100%);
    border-color: #bfdbfe;
}
.pfa-order-hero .pfa-tenant-hero-text h2 i { color: #2563eb; }
.pfa-order-filter { margin-bottom: 0; }
.pfa-order-filter-row {
    display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; padding: 18px 22px;
}
.pfa-order-filter-field { flex: 1; min-width: 180px; margin-bottom: 0; }
.pfa-order-filter-actions { display: flex; gap: 10px; flex-shrink: 0; padding-bottom: 2px; }
.pfa-order-filter-actions .pfa-btn-ghost { margin-left: 0; }
.pfa-table--orders tbody tr { transition: background 0.15s; }
.pfa-table--orders tbody tr:hover { background: #f8fafc; }
.pfa-order-no {
    display: block; font-size: 12px; font-weight: 700; color: var(--pfa-text);
    background: #f1f5f9; padding: 4px 8px; border-radius: 6px; word-break: break-all;
}
.pfa-order-trade {
    display: block; margin-top: 4px; font-size: 11px; color: var(--pfa-muted);
    max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pfa-order-amount { font-size: 14px; color: #059669; font-weight: 800; }
.pfa-order-time { font-size: 12px; color: var(--pfa-muted); white-space: nowrap; }
.pfa-period-chip {
    display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600;
    background: #f5f3ff; color: #7c3aed;
}
.pfa-pay-method { font-size: 13px; color: var(--pfa-text); }
.pfa-tenant-avatar--sm { width: 34px; height: 34px; border-radius: 10px; font-size: 14px; }
.pfa-badge--orange { background: #fff7ed; color: #ea580c; }
.pfa-order-pagination {
    display: flex; align-items: center; justify-content: center; gap: 16px;
    padding: 16px 22px; border-top: 1px solid var(--pfa-border); background: #fafbfc;
}
.pfa-page-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 14px; border-radius: 8px; font-size: 13px; font-weight: 600;
    text-decoration: none; color: var(--pfa-text); background: #fff;
    border: 1.5px solid var(--pfa-border); transition: 0.2s;
}
.pfa-page-btn:hover { border-color: var(--pfa-accent); color: var(--pfa-accent-dark); background: #ecfdf5; }
.pfa-page-info { font-size: 13px; color: var(--pfa-muted); font-weight: 500; }

.pfa-tenant-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.pfa-tenant-count {
    font-size: 12px;
    font-weight: 600;
    color: var(--pfa-muted);
    padding: 5px 12px;
    border-radius: 999px;
    background: #f1f5f9;
    border: 1px solid var(--pfa-border);
}

.pfa-table--tenants tbody tr { transition: background 0.15s; }
.pfa-table--tenants tbody tr:hover { background: #f8fafc; }
.pfa-tenant-cell {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 160px;
}
.pfa-tenant-avatar {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, #10b981, #34d399);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}
.pfa-tenant-meta { min-width: 0; }
.pfa-tenant-name {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--pfa-text);
    line-height: 1.3;
}
.pfa-tenant-id {
    display: block;
    margin-top: 2px;
    font-size: 11px;
    color: var(--pfa-muted);
    font-weight: 600;
}
.pfa-slug-chip {
    display: inline-block;
    font-size: 12px;
    background: #f8fafc;
    color: #334155;
    padding: 5px 10px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    font-family: Consolas, "SF Mono", monospace;
    font-weight: 600;
}
.pfa-owner-cell {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-width: 220px;
}
.pfa-owner-tag {
    display: inline-flex;
    align-self: flex-start;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}
.pfa-owner-tag--platform { background: #eff6ff; color: #2563eb; }
.pfa-owner-tag--institution { background: #ecfdf5; color: #059669; }
.pfa-owner-tag--system { background: #f1f5f9; color: #64748b; }
.pfa-owner-name {
    font-size: 13px;
    color: var(--pfa-text);
    line-height: 1.45;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.pfa-plan-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 11px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    color: #7c3aed;
    background: #f5f3ff;
    border: 1px solid #ddd6fe;
}
.pfa-plan-chip i { font-size: 10px; opacity: 0.85; }
.pfa-plan-chip--empty {
    color: #94a3b8;
    background: #f8fafc;
    border-color: #e2e8f0;
}
.pfa-badge--pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.pfa-badge--pill i { font-size: 10px; }
.pfa-expire-cell {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--pfa-text);
    font-weight: 500;
}
.pfa-expire-cell i { color: var(--pfa-muted); font-size: 12px; }
.pfa-expire-cell.is-forever { color: var(--pfa-muted); }
.pfa-expire-cell.is-soon {
    color: #ea580c;
    font-weight: 600;
}
.pfa-expire-cell.is-soon i { color: #f97316; }

@media (max-width: 960px) {
    .pfa-tenant-hero { flex-direction: column; }
    .pfa-tenant-mini-stats { width: 100%; }
    .pfa-tenant-mini-stat { flex: 1; min-width: 0; }
    .pfa-table-col-actions { text-align: left; }
    .pfa-table-actions { justify-content: flex-start; }
}

.pfa-code {
    font-size: 12px; background: #f1f5f9; color: #475569;
    padding: 3px 8px; border-radius: 6px; font-family: Consolas, monospace;
}

/* Badges */
.pfa-badge {
    display: inline-block; padding: 4px 10px; border-radius: 999px;
    font-size: 12px; font-weight: 600;
}
.pfa-badge--green { background: #ecfdf5; color: #059669; }
.pfa-badge--blue { background: #eff6ff; color: #2563eb; }
.pfa-badge--gray { background: #f1f5f9; color: #64748b; }

/* Forms */
.pfa-form { margin-bottom: 20px; }
.pfa-field { margin-bottom: 16px; }
.pfa-field label {
    display: flex; align-items: center; gap: 6px;
    margin-bottom: 6px; font-size: 13px; font-weight: 600; color: var(--pfa-text);
}
.pfa-field label i { color: var(--pfa-muted); font-size: 12px; }
.pfa-field input[type=text], .pfa-field input[type=password], .pfa-field input[type=email],
.pfa-field input[type=tel], .pfa-field input[type=number], .pfa-field input[type=date],
.pfa-field input[type=time], .pfa-field input[type=datetime-local],
.pfa-field textarea, .pfa-field select, .pfa-select {
    width: 100%; box-sizing: border-box;
    padding: 10px 14px; border: 1.5px solid var(--pfa-border); border-radius: 10px;
    font-size: 14px; font-family: inherit; color: var(--pfa-text); background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    -webkit-appearance: none; appearance: none;
}
.pfa-field input[type=datetime-local],
.pfa-field input[type=date],
.pfa-field input[type=time] {
    min-height: 44px;
    line-height: 1.25;
    color-scheme: light;
}
.pfa-field input[type=datetime-local]::-webkit-calendar-picker-indicator {
    cursor: pointer; opacity: 0.55;
}
.pfa-field input:focus, .pfa-field textarea:focus, .pfa-field select:focus, .pfa-select:focus {
    outline: none; border-color: var(--pfa-accent);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}
.pfa-field input:disabled {
    background: #f8fafc; color: var(--pfa-muted); cursor: not-allowed; opacity: 0.85;
}
.pfa-field textarea { min-height: 100px; resize: vertical; }
.pfa-filter {
    display: flex; gap: 16px; align-items: center; flex-wrap: wrap;
    padding: 18px 22px; margin-bottom: 20px;
}
.pfa-filter label { font-size: 13px; font-weight: 600; color: var(--pfa-muted); }
.pfa-filter .pfa-select { width: auto; min-width: 180px; }
.pfa-check-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px; padding: 0 22px 22px;
}
.pfa-check-item {
    display: flex; flex-direction: column; gap: 4px; font-size: 13px;
    padding: 12px; border: 1.5px solid var(--pfa-border); border-radius: 10px;
    cursor: pointer; transition: 0.2s;
}
.pfa-check-item:has(input:checked) { border-color: var(--pfa-accent); background: #ecfdf5; }
.pfa-check-item code { font-size: 10px; color: var(--pfa-muted); }
.pfa-fieldset {
    border: 1px solid var(--pfa-border); border-radius: 12px;
    padding: 16px; margin: 0 22px 16px;
}
.pfa-fieldset legend { font-weight: 700; padding: 0 8px; color: var(--pfa-text); }
.pfa-back { margin: 0 0 16px; }
.pfa-back a { color: var(--pfa-muted); text-decoration: none; font-size: 14px; font-weight: 500; }
.pfa-back a:hover { color: var(--pfa-accent-dark); }
.pfa-hint { color: var(--pfa-muted); font-size: 13px; margin-top: 8px; }
.pfa-hint i { margin-right: 4px; }
.pfa-field-hint { display: block; margin-top: 6px; font-size: 12px; color: var(--pfa-muted); line-height: 1.45; }
.pfa-limits-grid {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px;
    padding: 0 22px 8px;
}
.pfa-field--full { grid-column: 1 / -1; }
.pfa-check-inline { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; cursor: pointer; }
.pfa-check-inline input { width: 16px; height: 16px; accent-color: var(--pfa-accent); }
.pfa-card-head--section { margin-top: 8px; border-top: 1px solid var(--pfa-border); }
.pfa-tag {
    display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600;
}
.pfa-tag--ok { background: #ecfdf5; color: #059669; }
.pfa-tag--muted { background: #f1f5f9; color: #64748b; }
@media (max-width: 640px) {
    .pfa-limits-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   套餐编辑页
   ============================================================ */
.pfa-plan-edit { max-width: 1080px; margin: 0 auto; }

.pfa-plan-edit-top { margin-bottom: 20px; }
.pfa-plan-back {
    display: inline-flex; align-items: center; gap: 8px;
    color: var(--pfa-muted); text-decoration: none; font-size: 14px; font-weight: 500;
    margin-bottom: 16px; transition: color 0.2s;
}
.pfa-plan-back:hover { color: var(--pfa-accent-dark); }

.pfa-plan-hero {
    display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
    padding: 24px 28px; margin-bottom: 24px;
    background: linear-gradient(135deg, #064e3b 0%, #0f766e 45%, #134e4a 100%);
    border-radius: calc(var(--pfa-radius) + 2px);
    color: #fff; box-shadow: 0 12px 40px rgba(6, 78, 59, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.pfa-plan-hero-main { display: flex; align-items: center; gap: 18px; }
.pfa-plan-hero-icon {
    width: 56px; height: 56px; border-radius: 16px; flex-shrink: 0;
    background: rgba(255, 255, 255, 0.14); backdrop-filter: blur(8px);
    display: flex; align-items: center; justify-content: center; font-size: 24px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.pfa-plan-hero-title { margin: 0 0 8px; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.pfa-plan-hero-meta {
    display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
    font-size: 13px; color: rgba(255, 255, 255, 0.78);
}
.pfa-plan-hero-meta .pfa-code {
    background: rgba(255, 255, 255, 0.12); color: #ecfdf5;
    border: 1px solid rgba(255, 255, 255, 0.15); padding: 2px 10px; border-radius: 6px;
}
.pfa-plan-hero-dot {
    width: 4px; height: 4px; border-radius: 50%; background: rgba(255, 255, 255, 0.35);
}
.pfa-plan-hero-stats { display: flex; gap: 12px; flex-wrap: wrap; }
.pfa-plan-hero-stat {
    min-width: 88px; padding: 12px 16px; border-radius: 12px; text-align: center;
    background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.12);
}
.pfa-plan-hero-stat strong { display: block; font-size: 20px; font-weight: 800; line-height: 1.2; }
.pfa-plan-hero-stat em {
    display: block; margin-top: 4px; font-style: normal; font-size: 11px;
    color: rgba(255, 255, 255, 0.65); font-weight: 500;
}

.pfa-plan-section {
    background: var(--pfa-card); border-radius: var(--pfa-radius);
    border: 1px solid var(--pfa-border); box-shadow: var(--pfa-shadow);
    margin-bottom: 20px; overflow: hidden;
}
.pfa-plan-section-head {
    display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap;
    padding: 20px 24px; border-bottom: 1px solid var(--pfa-border);
    background: linear-gradient(180deg, #fafbfc, #fff);
}
.pfa-plan-section-head h3 {
    margin: 0 0 6px; font-size: 16px; font-weight: 700;
    display: flex; align-items: center; gap: 8px; color: var(--pfa-text);
}
.pfa-plan-section-head h3 i { color: var(--pfa-accent); font-size: 14px; }
.pfa-plan-section-head p { margin: 0; font-size: 13px; color: var(--pfa-muted); line-height: 1.5; }

.pfa-plan-metrics {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: 20px 24px 24px;
}
.pfa-metric-card {
    display: flex; gap: 16px; padding: 18px 20px;
    border-radius: 14px; border: 1.5px solid var(--pfa-border); background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.pfa-metric-card:focus-within {
    border-color: var(--pfa-accent);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12);
}
.pfa-metric-card--wide { grid-column: 1 / -1; }
.pfa-metric-card-icon {
    width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.pfa-metric-card--student .pfa-metric-card-icon { background: #eff6ff; color: #2563eb; }
.pfa-metric-card--teacher .pfa-metric-card-icon { background: #f5f3ff; color: #7c3aed; }
.pfa-metric-card--branch .pfa-metric-card-icon { background: #ecfdf5; color: #059669; }
.pfa-metric-card--branch.is-disabled { opacity: 0.72; }
.pfa-metric-card-body { flex: 1; min-width: 0; }
.pfa-metric-card-body label {
    display: block; font-size: 13px; font-weight: 700; color: var(--pfa-text); margin-bottom: 8px;
}
.pfa-metric-card-body--row {
    display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.pfa-metric-input-wrap {
    display: flex; align-items: center; gap: 8px;
    background: var(--pfa-bg); border: 1.5px solid var(--pfa-border); border-radius: 10px;
    padding: 4px 12px 4px 4px; max-width: 160px;
}
.pfa-metric-input-wrap--sm { max-width: 120px; }
.pfa-metric-input {
    width: 100%; min-width: 0; border: none; background: transparent;
    padding: 8px 10px; font-size: 22px; font-weight: 800; color: var(--pfa-text);
    font-family: inherit; outline: none;
}
.pfa-metric-input:disabled { color: var(--pfa-muted); cursor: not-allowed; }
.pfa-metric-unit { font-size: 13px; font-weight: 600; color: var(--pfa-muted); flex-shrink: 0; }
.pfa-metric-hint { display: block; margin-top: 8px; font-size: 12px; color: var(--pfa-muted); line-height: 1.45; }

.pfa-branch-toggle-wrap { display: flex; align-items: center; gap: 14px; flex: 1; min-width: 220px; }
.pfa-branch-toggle-title { display: block; font-size: 14px; font-weight: 700; color: var(--pfa-text); margin-bottom: 2px; }
.pfa-branch-limit label { display: block; font-size: 12px; font-weight: 700; color: var(--pfa-muted); margin-bottom: 6px; }
.pfa-branch-limit[aria-hidden="true"] { opacity: 0.45; pointer-events: none; }

.pfa-switch {
    position: relative; display: inline-block; width: 48px; height: 28px; flex-shrink: 0;
}
.pfa-switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.pfa-switch-slider {
    position: absolute; cursor: pointer; inset: 0;
    background: #cbd5e1; border-radius: 999px; transition: 0.25s;
}
.pfa-switch-slider::before {
    content: ""; position: absolute; height: 22px; width: 22px; left: 3px; bottom: 3px;
    background: #fff; border-radius: 50%; transition: 0.25s;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.15);
}
.pfa-switch input:checked + .pfa-switch-slider { background: linear-gradient(135deg, #10b981, #059669); }
.pfa-switch input:checked + .pfa-switch-slider::before { transform: translateX(20px); }
.pfa-switch input:focus-visible + .pfa-switch-slider { box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25); }

.pfa-plan-migrate-hint {
    grid-column: 1 / -1; padding: 14px 16px; border-radius: 10px;
    background: #fffbeb; border: 1px solid #fde68a; color: #92400e; font-size: 13px;
}
.pfa-plan-migrate-hint i { margin-right: 6px; }

.pfa-plan-feature-tools { display: flex; gap: 8px; flex-shrink: 0; }
.pfa-tool-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 14px; border-radius: 8px; font-size: 13px; font-weight: 600;
    border: 1.5px solid var(--pfa-border); background: #fff; color: var(--pfa-muted);
    cursor: pointer; transition: 0.2s; font-family: inherit;
}
.pfa-tool-btn:hover { border-color: var(--pfa-accent); color: var(--pfa-accent-dark); background: #ecfdf5; }
.pfa-tool-btn--sm { padding: 5px 10px; font-size: 12px; border-radius: 6px; }

.pfa-plan-modules { padding: 8px 24px 24px; display: flex; flex-direction: column; gap: 16px; }
.pfa-module-panel {
    border: 1.5px solid var(--pfa-border); border-radius: 14px; overflow: hidden; background: #fff;
}
.pfa-module-head {
    display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
    padding: 14px 18px; background: linear-gradient(180deg, #f8fafc, #fff);
    border-bottom: 1px solid var(--pfa-border);
}
.pfa-module-title { display: flex; align-items: center; gap: 12px; }
.pfa-module-icon {
    width: 36px; height: 36px; border-radius: 10px; background: #ecfdf5; color: #059669;
    display: flex; align-items: center; justify-content: center; font-size: 15px;
}
.pfa-module-title strong { display: block; font-size: 14px; font-weight: 700; color: var(--pfa-text); }
.pfa-module-count { font-size: 12px; color: var(--pfa-muted); }
.pfa-module-count em { font-style: normal; font-weight: 700; color: var(--pfa-accent-dark); }
.pfa-module-actions { display: flex; gap: 6px; }

.pfa-feature-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px; padding: 16px 18px;
}
.pfa-feature-chip {
    position: relative; display: flex; align-items: flex-start; gap: 10px;
    padding: 12px 14px; border-radius: 12px; cursor: pointer;
    border: 1.5px solid var(--pfa-border); background: #fff;
    transition: border-color 0.2s, background 0.2s, transform 0.15s;
}
.pfa-feature-chip:hover { border-color: #a7f3d0; background: #f8fffe; transform: translateY(-1px); }
.pfa-feature-chip.is-checked {
    border-color: var(--pfa-accent); background: linear-gradient(135deg, #ecfdf5, #f0fdf4);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.12);
}
.pfa-feature-chip input { position: absolute; opacity: 0; pointer-events: none; }
.pfa-feature-chip-check {
    width: 20px; height: 20px; border-radius: 6px; flex-shrink: 0; margin-top: 1px;
    border: 1.5px solid #cbd5e1; background: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 10px; color: transparent; transition: 0.2s;
}
.pfa-feature-chip.is-checked .pfa-feature-chip-check {
    background: var(--pfa-accent); border-color: var(--pfa-accent); color: #fff;
}
.pfa-feature-chip-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pfa-feature-chip-text strong { font-size: 13px; font-weight: 600; color: var(--pfa-text); line-height: 1.35; }
.pfa-feature-chip-text code { font-size: 10px; color: var(--pfa-muted); word-break: break-all; }

.pfa-plan-footer {
    position: sticky; bottom: 0; z-index: 50;
    display: flex; align-items: center; justify-content: flex-end; gap: 12px;
    padding: 16px 24px; margin-top: 4px;
    background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(12px);
    border: 1px solid var(--pfa-border); border-radius: var(--pfa-radius);
    box-shadow: 0 -4px 24px rgba(15, 23, 42, 0.06);
}
.pfa-plan-footer .pfa-btn-ghost { margin-left: 0; }
.pfa-btn-lg { padding: 12px 28px; font-size: 15px; border-radius: 12px; }

@media (max-width: 768px) {
    .pfa-plan-hero { padding: 20px; }
    .pfa-plan-hero-stats { width: 100%; }
    .pfa-plan-hero-stat { flex: 1; min-width: 0; }
    .pfa-plan-metrics { grid-template-columns: 1fr; }
    .pfa-metric-card-body--row { flex-direction: column; align-items: stretch; }
    .pfa-plan-section-head { flex-direction: column; }
    .pfa-plan-footer { flex-direction: column-reverse; }
    .pfa-plan-footer .pfa-btn { width: 100%; justify-content: center; }
}

/* Buttons */
.pfa-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 10px 20px; border-radius: 10px; font-size: 14px; font-weight: 600;
    border: none; cursor: pointer; text-decoration: none; transition: 0.2s;
}
.pfa-btn-primary {
    background: linear-gradient(135deg, #10b981, #059669); color: #fff;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}
.pfa-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4); }
.pfa-btn-block { width: 100%; }
.pfa-btn-ghost {
    background: #fff; color: var(--pfa-text); border: 1.5px solid var(--pfa-border);
    margin-left: 10px;
}
.pfa-btn-ghost:hover { background: var(--pfa-bg); border-color: var(--pfa-accent); color: var(--pfa-accent-dark); }
.pfa-card .pfa-form .pfa-btn { margin: 0 22px 22px; display: inline-flex; }

/* Owner & info */
.pfa-owner { font-size: 13px; line-height: 1.5; color: var(--pfa-text); }
.pfa-owner--system { color: var(--pfa-muted); font-style: italic; }
.pfa-owner--platform { color: #2563eb; }
.pfa-owner--institution { color: #059669; }
.pfa-info-list { padding: 8px 22px 22px; }
.pfa-info-item { padding: 14px 0; border-bottom: 1px solid var(--pfa-border); }
.pfa-info-item:last-child { border-bottom: none; }
.pfa-info-label { display: block; font-size: 12px; font-weight: 700; color: var(--pfa-muted); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 8px; }
.pfa-info-hint { display: block; margin-top: 8px; font-size: 12px; color: var(--pfa-muted); line-height: 1.5; }
.pfa-info-muted { color: var(--pfa-muted); font-size: 14px; }
.pfa-admin-users { list-style: none; margin: 0; padding: 0; }
.pfa-admin-users li {
    padding: 10px 12px; background: var(--pfa-bg); border-radius: 8px; margin-bottom: 8px;
    display: flex; flex-direction: column; gap: 4px; font-size: 13px;
}
.pfa-admin-users li strong { color: var(--pfa-text); }
.pfa-admin-users li span { color: var(--pfa-muted); font-size: 12px; }

/* ============================================================
   租户编辑页
   ============================================================ */
.pfa-tenant-edit { max-width: 1100px; margin: 0 auto; }
.pfa-tenant-edit-top { margin-bottom: 8px; }

.pfa-tenant-edit-hero {
    display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
    padding: 22px 26px; margin-bottom: 22px;
    background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 40%, #fff 100%);
    border: 1px solid #d1fae5; border-radius: calc(var(--pfa-radius) + 2px);
    box-shadow: var(--pfa-shadow);
}
.pfa-tenant-edit-hero-main { display: flex; align-items: center; gap: 16px; min-width: 0; }
.pfa-tenant-edit-avatar {
    width: 52px; height: 52px; border-radius: 16px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(145deg, #059669, #0f766e); color: #fff;
    font-size: 20px; font-weight: 800; box-shadow: 0 8px 20px rgba(5, 150, 105, 0.28);
}
.pfa-tenant-edit-title {
    margin: 0 0 8px; font-size: 20px; font-weight: 800; color: var(--pfa-text);
    letter-spacing: -0.02em; line-height: 1.25;
}
.pfa-tenant-edit-meta {
    display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
    font-size: 13px; color: var(--pfa-muted);
}
.pfa-tenant-edit-dot {
    width: 4px; height: 4px; border-radius: 50%; background: #cbd5e1;
}
.pfa-tenant-edit-hero-side {
    display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
}
.pfa-tenant-edit-expire {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 12px; border-radius: 999px; font-size: 12px; font-weight: 600;
    background: #fff; border: 1px solid var(--pfa-border); color: var(--pfa-text);
}
.pfa-tenant-edit-expire.is-forever { color: #059669; border-color: #a7f3d0; background: #ecfdf5; }
.pfa-tenant-edit-expire.is-soon { color: #b45309; border-color: #fde68a; background: #fffbeb; }
.pfa-tenant-edit-go { text-decoration: none; white-space: nowrap; }

.pfa-tenant-edit-grid {
    display: grid; grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.2fr); gap: 20px;
}
.pfa-tenant-edit-aside .pfa-info-list { padding-top: 4px; }
.pfa-tenant-edit-person {
    display: flex; flex-direction: column; gap: 4px; font-size: 14px;
}
.pfa-tenant-edit-person strong { color: var(--pfa-text); }
.pfa-tenant-edit-person span { color: var(--pfa-muted); font-size: 13px; }
.pfa-tenant-edit-person span i { margin-right: 4px; width: 14px; }

.pfa-tenant-edit-form-card .pfa-tenant-edit-form {
    padding: 22px 24px 24px;
}
.pfa-tenant-edit-form .pfa-field { margin-bottom: 18px; padding: 0; }
.pfa-tenant-edit-form .pfa-field:last-of-type { margin-bottom: 8px; }

.pfa-status-pills {
    display: flex; flex-wrap: wrap; gap: 10px;
}
.pfa-status-pill {
    position: relative; display: inline-flex; align-items: center; justify-content: center;
    min-width: 88px; padding: 10px 16px; border-radius: 12px; cursor: pointer;
    border: 1.5px solid var(--pfa-border); background: #fff;
    font-size: 13px; font-weight: 600; color: var(--pfa-muted);
    transition: border-color 0.2s, background 0.2s, color 0.2s, box-shadow 0.2s;
}
.pfa-status-pill input {
    position: absolute; opacity: 0; pointer-events: none;
}
.pfa-status-pill:hover { border-color: #94a3b8; color: var(--pfa-text); }
.pfa-status-pill:has(input:checked).pfa-status-pill--green {
    border-color: #34d399; background: #ecfdf5; color: #047857;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12);
}
.pfa-status-pill:has(input:checked).pfa-status-pill--blue {
    border-color: #60a5fa; background: #eff6ff; color: #1d4ed8;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.pfa-status-pill:has(input:checked).pfa-status-pill--gray {
    border-color: #94a3b8; background: #f1f5f9; color: #475569;
    box-shadow: 0 0 0 3px rgba(100, 116, 139, 0.12);
}

.pfa-datetime-row {
    display: flex; align-items: stretch; gap: 12px; flex-wrap: wrap;
}
.pfa-datetime-wrap {
    position: relative; flex: 1 1 240px; min-width: 0;
}
.pfa-datetime-wrap > i {
    position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
    color: var(--pfa-muted); font-size: 14px; pointer-events: none; z-index: 1;
}
.pfa-datetime-wrap input[type=datetime-local] {
    padding-left: 40px !important;
}
.pfa-forever-check {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 0 16px; min-height: 44px; border-radius: 10px;
    border: 1.5px solid var(--pfa-border); background: #fff;
    font-size: 13px; font-weight: 600; color: var(--pfa-text); cursor: pointer;
    white-space: nowrap; user-select: none;
}
.pfa-forever-check input {
    width: 16px; height: 16px; accent-color: var(--pfa-accent); cursor: pointer;
}
.pfa-forever-check:has(input:checked) {
    border-color: #34d399; background: #ecfdf5; color: #047857;
}

.pfa-tenant-edit-actions {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
    margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--pfa-border);
}
.pfa-tenant-edit-actions .pfa-btn { margin: 0; }

.pfa-admin-users--reset li {
    gap: 10px;
}
.pfa-admin-user-main {
    display: flex; flex-direction: column; gap: 4px;
}
.pfa-reset-pwd {
    border-top: 1px dashed var(--pfa-border);
    padding-top: 8px;
}
.pfa-reset-pwd > summary {
    list-style: none; cursor: pointer; user-select: none;
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 12px; font-weight: 700; color: #b45309;
    padding: 6px 10px; border-radius: 999px;
    background: #fffbeb; border: 1px solid #fde68a;
    transition: background 0.2s, border-color 0.2s;
}
.pfa-reset-pwd > summary::-webkit-details-marker { display: none; }
.pfa-reset-pwd > summary:hover { background: #fef3c7; border-color: #fbbf24; }
.pfa-reset-pwd[open] > summary {
    background: #fef3c7; border-color: #f59e0b; color: #92400e;
}
.pfa-reset-pwd-form {
    margin-top: 12px; padding: 12px;
    background: #fff; border: 1px solid var(--pfa-border); border-radius: 10px;
}
.pfa-reset-pwd-form .pfa-field { margin-bottom: 12px; padding: 0; }
.pfa-reset-pwd-form .pfa-field:last-of-type { margin-bottom: 12px; }
.pfa-reset-pwd-form .pfa-btn { margin: 0; width: 100%; justify-content: center; }
.pfa-btn--sm {
    padding: 8px 14px !important; font-size: 13px !important; border-radius: 10px !important;
}

@media (max-width: 900px) {
    .pfa-tenant-edit-grid { grid-template-columns: 1fr; }
    .pfa-tenant-edit-hero-side { width: 100%; }
}

/* Alerts (shared) */
.pfa-body .pf-alert, .pfa-login-body .pf-alert {
    padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; font-size: 14px;
}
.pfa-body .pf-alert.err, .pfa-login-body .pf-alert.err { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.pfa-body .pf-alert.ok, .pfa-login-body .pf-alert.ok { background: #ecfdf5; color: #059669; border: 1px solid #a7f3d0; }

/* Admin login — 左 50% 品牌+功能 / 右 50% 登录 */
.pfa-login-body { margin: 0; min-height: 100vh; font-family: "PingFang SC", "Microsoft YaHei", sans-serif; }
.pfa-login-wrap { display: flex; min-height: 100vh; width: 100%; }
.pfa-login-brand {
    flex: 0 0 50%;
    width: 50%;
    background: linear-gradient(145deg, #064e3b 0%, #047857 40%, #0c1f17 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    padding: 40px 0;
    position: relative;
    overflow: hidden;
}
.pfa-login-brand::before {
    content: ''; position: absolute; width: 400px; height: 400px; border-radius: 50%;
    background: rgba(16, 185, 129, 0.15); top: -100px; right: -100px; filter: blur(60px);
}
.pfa-login-brand-inner {
    position: relative;
    width: 100%;
    max-width: 480px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    z-index: 1;
}

/* 功能图标环绕轨道 */
.pfa-login-orbit-wrap {
    position: relative;
    width: min(440px, 92vw);
    height: min(440px, 92vw);
    margin: 0 auto;
    --orbit-r: 178px;
    --orbit-size: 52px;
    --orbit-dur: 48s;
}
.pfa-login-orbit-ring {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.pfa-login-orbit-ring--spin {
    animation: pfa-login-orbit-spin var(--orbit-dur) linear infinite;
    pointer-events: none;
}
.pfa-login-orbit-wrap:hover .pfa-login-orbit-ring--spin,
.pfa-login-orbit-wrap:hover .pfa-login-orbit-icon {
    animation-play-state: paused;
}
.pfa-login-orbit-track {
    position: absolute;
    left: 50%;
    top: 50%;
    width: calc(var(--orbit-r) * 2 + var(--orbit-size));
    height: calc(var(--orbit-r) * 2 + var(--orbit-size));
    margin-left: calc((var(--orbit-r) * 2 + var(--orbit-size)) / -2);
    margin-top: calc((var(--orbit-r) * 2 + var(--orbit-size)) / -2);
    border-radius: 50%;
    border: 1px dashed rgba(255, 255, 255, 0.14);
    box-shadow: inset 0 0 40px rgba(16, 185, 129, 0.08);
}
.pfa-login-orbit-item {
    position: absolute;
    left: 50%;
    top: 50%;
    width: var(--orbit-size);
    height: var(--orbit-size);
    margin-left: calc(var(--orbit-size) / -2);
    margin-top: calc(var(--orbit-size) / -2);
    padding: 0;
    border-radius: 50%;
    cursor: pointer;
    pointer-events: auto;
    font-family: inherit;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.24);
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transform: rotate(var(--orbit-angle)) translateX(var(--orbit-r));
    transition: background 0.25s, box-shadow 0.25s, border-color 0.25s, filter 0.2s;
}
.pfa-login-orbit-item:hover {
    background: rgba(255, 255, 255, 0.24);
    border-color: rgba(255, 255, 255, 0.45);
    box-shadow:
        0 12px 32px rgba(0, 0, 0, 0.28),
        0 0 0 3px color-mix(in srgb, var(--feat-color) 35%, transparent),
        inset 0 1px 0 rgba(255, 255, 255, 0.35);
    z-index: 5;
}
.pfa-login-orbit-item:active {
    filter: brightness(0.92);
}
.pfa-login-orbit-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: calc(var(--orbit-size) * 0.42);
    animation: pfa-login-orbit-icon-upright var(--orbit-dur) linear infinite;
    transform: rotate(calc(-1 * var(--orbit-angle)));
}
.pfa-login-orbit-icon i {
    display: block;
    line-height: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}
.pfa-login-brand-head {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    width: 72%;
    margin: 0;
    padding: 0 8px;
    pointer-events: none;
}
.pfa-login-orbit-hint {
    margin: 14px 0 0;
    font-size: 12px;
    opacity: 0.72;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.pfa-login-orbit-hint i { font-size: 11px; opacity: 0.85; }
@keyframes pfa-login-orbit-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
@keyframes pfa-login-orbit-icon-upright {
    from { transform: rotate(calc(-1 * var(--orbit-angle))); }
    to { transform: rotate(calc(-1 * var(--orbit-angle) - 360deg)); }
}
@media (prefers-reduced-motion: reduce) {
    .pfa-login-orbit-ring--spin,
    .pfa-login-orbit-icon { animation: none; }
}

.pfa-login-logo {
    width: 64px; height: 64px; border-radius: 16px;
    background: linear-gradient(135deg, #10b981, #34d399);
    display: inline-flex; align-items: center; justify-content: center; font-size: 28px; margin-bottom: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    animation: pfa-login-logo-glow 3.5s ease-in-out infinite;
}
@keyframes pfa-login-logo-glow {
    0%, 100% { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2), 0 0 0 0 rgba(52, 211, 153, 0.35); }
    50% { box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25), 0 0 28px 6px rgba(52, 211, 153, 0.25); }
}
@media (prefers-reduced-motion: reduce) {
    .pfa-login-logo { animation: none; }
}
.pfa-login-brand h1 { font-size: 32px; font-weight: 800; margin: 0 0 10px; }
.pfa-login-brand-head > p { opacity: 0.85; margin: 0; font-size: 15px; }

.pfa-login-panel {
    flex: 0 0 50%;
    width: 50%;
    max-width: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 32px;
    background: #f8fafc;
}
.pfa-login-box { width: 100%; max-width: 380px; }
.pfa-login-box h2 { margin: 0 0 8px; font-size: 26px; font-weight: 800; color: #1e293b; }
.pfa-login-sub { margin: 0 0 28px; color: #64748b; font-size: 14px; }
.pfa-login-foot { margin-top: 24px; text-align: center; }
.pfa-login-foot a { color: #64748b; text-decoration: none; font-size: 14px; }
.pfa-login-foot a:hover { color: #059669; }

/* Mobile */
.pfa-sidebar-mask {
    display: none; position: fixed; inset: 0; background: rgba(15, 23, 42, 0.5);
    z-index: 150; backdrop-filter: blur(2px);
}
@media (max-width: 960px) {
    .pfa-sidebar { transform: translateX(-100%); transition: transform 0.3s; }
    .pfa-sidebar-open .pfa-sidebar { transform: translateX(0); }
    .pfa-sidebar-open .pfa-sidebar-mask { display: block; }
    .pfa-main-wrap { margin-left: 0; }
    .pfa-menu-toggle { display: flex; align-items: center; justify-content: center; }
    .pfa-topbar { padding: 0 16px; }
    .pfa-main { padding: 16px; }
    .pfa-login-wrap { flex-direction: column; }
    .pfa-login-brand,
    .pfa-login-panel { flex: none; width: 100%; }
    .pfa-login-brand { padding: 32px 16px; }
    .pfa-login-orbit-wrap {
        width: min(340px, 88vw);
        height: min(340px, 88vw);
        --orbit-r: 132px;
        --orbit-size: 46px;
        --orbit-dur: 56s;
    }
    .pfa-quick-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .pfa-stats { grid-template-columns: 1fr 1fr; }
    .pfa-topbar-link span { display: none; }
}
