/* ==========================================================================
   衢州机场消防训练管理系统 — 首页门户主题
   仅作用于登录后的首页（body.is-portal），登录遮罩保持原样
   ========================================================================== */

body.is-portal {
    --p-navy: #0B2E59;
    --p-blue: #14508F;
    --p-blue-strong: #0E4177;
    --p-blue-soft: #EAF1F8;
    --p-blue-line: #D7E2EF;
    --p-red: #B5121B;
    --p-ink: #1E2A3A;
    --p-muted: #55657A;
    --p-faint: #7B8A9B;
    --p-bg: #F2F5F9;
    --p-surface: #FFFFFF;
    --p-line: #DDE5EE;

    display: block;
    align-items: stretch;
    min-height: 100vh;
    background: var(--p-bg);
    color: var(--p-ink);
    font-family: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    font-size: 16px;
    line-height: 1.85;
    padding: 0;
}

body.is-portal::before,
body.is-portal::after { content: none; }

body.is-portal #mainContent {
    display: block;
    width: 100%;
    max-width: none;
    padding: 0;
    flex-direction: initial;
    align-items: initial;
    animation: none;
}

body.is-portal a { color: var(--p-blue); }
body.is-portal a:focus-visible,
body.is-portal button:focus-visible,
body.is-portal input:focus-visible {
    outline: 2px solid #2E6DB4;
    outline-offset: 2px;
}

/* ---------- 布局容器 ---------- */
.p-shell { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/* ==========================================================================
   顶部信息条（复用 userBar 结构）
   ========================================================================== */
body.is-portal .user-bar-top {
    position: sticky;
    top: 0;
    left: auto;
    right: auto;
    height: auto;
    padding: 0;
    background: var(--p-navy);
    border: 0;
    backdrop-filter: none;
    z-index: 210;
}

.p-utility-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
    height: 38px;
    display: flex;
    align-items: center;
    gap: 14px;
    color: rgba(255, 255, 255, 0.76);
    font-size: 13px;
}

.p-unit {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #fff;
    letter-spacing: 0.04em;
}
.p-unit::before {
    content: '';
    width: 7px;
    height: 14px;
    background: var(--p-red);
    display: inline-block;
}
.p-utility-sep {
    width: 1px;
    height: 14px;
    background: rgba(255, 255, 255, 0.24);
}
.p-utility-version { color: rgba(255, 255, 255, 0.5); font-size: 12px; }
.p-utility-spacer { flex: 1; min-width: 0; }
.p-utility-right { display: flex; align-items: center; gap: 16px; }
.p-date { color: rgba(255, 255, 255, 0.62); font-size: 12.5px; }

body.is-portal .notify-icon {
    position: relative;
    cursor: pointer;
    width: 34px;
    height: 34px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.20);
    border-radius: 3px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    transition: background 160ms ease, border-color 160ms ease;
}
body.is-portal .notify-icon:hover {
    background: rgba(255, 255, 255, 0.20);
    border-color: rgba(255, 255, 255, 0.38);
}
body.is-portal .notify-icon .p-ico { width: 22px; height: 22px; }
.p-bell { width: 19px; height: 19px; }
body.is-portal .notify-badge {
    top: -4px;
    right: -4px;
    min-width: 16px;
    padding: 0 5px;
    font-size: 10px;
    line-height: 16px;
    background: var(--p-red);
    box-shadow: none;
}

body.is-portal .user-info { display: flex; align-items: center; gap: 8px; }
body.is-portal .user-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
}
body.is-portal .user-meta { display: flex; flex-direction: row; align-items: baseline; gap: 6px; line-height: 1; }
body.is-portal .user-meta .user-name { color: #fff; font-size: 13px; font-weight: 500; }
body.is-portal .user-meta .user-role { color: rgba(255, 255, 255, 0.55); font-size: 11.5px; }

body.is-portal .logout-btn {
    padding: 3px 11px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 2px;
    color: rgba(255, 255, 255, 0.86);
    font-family: inherit;
    font-size: 12.5px;
    line-height: 1.7;
}
body.is-portal .logout-btn:hover {
    background: rgba(255, 255, 255, 0.10);
    border-color: rgba(255, 255, 255, 0.5);
}
body.is-portal .logout-short { display: none; }

/* ==========================================================================
   站名区
   ========================================================================== */
.p-masthead { background: var(--p-surface); border-bottom: 1px solid var(--p-line); }
.p-masthead-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 28px;
}
.p-brand { display: flex; align-items: center; gap: 15px; text-decoration: none; color: inherit; min-width: 0; }
.p-brand:hover { text-decoration: none; }
.p-brand-mark { width: 54px; height: 54px; flex: 0 0 54px; display: block; }
.p-brand-text { display: flex; flex-direction: column; min-width: 0; }
.p-brand-title {
    font-family: 'Noto Serif SC', 'Source Han Serif SC', 'SimSun', serif;
    font-size: 27px;
    font-weight: 700;
    color: var(--p-navy);
    letter-spacing: 0.035em;
    line-height: 1.35;
    white-space: nowrap;
}
.p-brand-sub {
    font-size: 11px;
    line-height: 1.5;
    letter-spacing: 0.14em;
    color: var(--p-faint);
    text-transform: uppercase;
    white-space: nowrap;
}

/* 搜索 */
.p-search {
    position: relative;
    margin-left: auto;
    width: 330px;
    flex: 0 1 330px;
    min-width: 200px;
}
.p-search-box { display: flex; height: 40px; }
.p-search input {
    flex: 1;
    min-width: 0;
    height: 40px;
    padding: 0 14px;
    border: 1px solid #C9D6E5;
    border-right: 0;
    border-radius: 2px 0 0 2px;
    background: #FBFCFE;
    color: var(--p-ink);
    font-family: inherit;
    font-size: 14px;
    outline: none;
}
.p-search input::placeholder { color: var(--p-faint); }
.p-search input:focus { border-color: var(--p-blue); background: #fff; }
.p-search button {
    width: 46px;
    height: 40px;
    border: 1px solid var(--p-blue);
    border-radius: 0 2px 2px 0;
    background: var(--p-blue);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 160ms ease;
}
.p-search button:hover { background: var(--p-blue-strong); }
.p-search button svg { width: 19px; height: 19px; }

.p-search .search-results {
    display: block;
    position: absolute;
    top: 46px;
    left: 0;
    right: 0;
    width: auto;
    max-height: 360px;
    overflow-y: auto;
    margin: 0;
    padding: 4px;
    background: #fff;
    border: 1px solid var(--p-line);
    border-top: 2px solid var(--p-blue);
    border-radius: 0 0 2px 2px;
    box-shadow: 0 10px 26px rgba(11, 46, 89, 0.14);
    z-index: 300;
    font-size: 13.5px;
}
.p-search .search-results:empty { display: none; }
.p-search .search-results[hidden] { display: none; }
.p-search .search-results .empty {
    padding: 14px 12px;
    color: var(--p-faint);
    text-align: center;
    font-size: 13px;
}
.p-search .search-results .result-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 10px;
    border: 0;
    border-bottom: 1px solid #EEF2F7;
    border-radius: 0;
    background: none;
    color: var(--p-ink);
    cursor: pointer;
}
.p-search .search-results .result-item:last-child { border-bottom: 0; }
.p-search .search-results .result-item:hover { background: var(--p-blue-soft); }
.p-search .search-results .result-item .fname {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--p-ink);
}
.p-search .search-results .result-item .fdown {
    color: var(--p-blue);
    font-size: 12px;
    text-decoration: none;
    flex-shrink: 0;
}
.p-search .search-results .result-item .fdown:hover { text-decoration: underline; }

/* ==========================================================================
   主导航
   ========================================================================== */
.p-nav {
    background: var(--p-blue);
    position: sticky;
    top: 38px;
    z-index: 200;
    box-shadow: 0 1px 0 rgba(11, 46, 89, 0.18);
}
.p-nav-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
    height: 48px;
    display: flex;
    align-items: stretch;
}
.p-nav a.p-nav-item,
.p-nav button.p-nav-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 18px;
    border: 0;
    background: none;
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    line-height: 1;
    letter-spacing: 0.02em;
    text-decoration: none;
    cursor: pointer;
    position: relative;
    white-space: nowrap;
}
.p-nav a.p-nav-item:hover,
.p-nav button.p-nav-item:hover { background: rgba(255, 255, 255, 0.08); color: #fff; text-decoration: none; }
.p-nav a.p-nav-item.active { background: rgba(255, 255, 255, 0.10); }
.p-nav a.p-nav-item.active::after {
    content: '';
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 0;
    height: 3px;
    background: var(--p-red);
}
.p-nav .nav-group { position: relative; display: flex; align-items: stretch; }
.p-nav .nav-chevron { width: 13px; height: 13px; opacity: 0.7; transition: transform 160ms ease; }
.p-nav .nav-group.open > .p-nav-item .nav-chevron,
.p-nav .nav-group:hover > .p-nav-item .nav-chevron { transform: rotate(180deg); }

.p-nav .nav-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 290px;
    padding: 6px;
    background: #fff;
    border: 1px solid var(--p-line);
    border-top: 2px solid var(--p-blue);
    box-shadow: 0 12px 28px rgba(11, 46, 89, 0.16);
    border-radius: 0 0 2px 2px;
    z-index: 250;
}
.p-nav a.p-nav-mobile-all { display: none; }
.p-nav .nav-group:hover .nav-dropdown,
.p-nav .nav-group.open .nav-dropdown,
.p-nav .nav-group:focus-within .nav-dropdown { display: block; }
.p-nav .nav-dropdown a {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 2px;
    color: var(--p-ink);
    text-decoration: none;
    line-height: 1.5;
}
.p-nav .nav-dropdown a:hover { background: var(--p-blue-soft); text-decoration: none; }
.p-nav .nav-dropdown a:hover .fname { color: var(--p-blue-strong); }
.p-nav .nav-dropdown .fname { display: block; font-size: 14.5px; font-weight: 500; color: var(--p-ink); }
.p-nav .nav-dropdown .fdesc { display: block; font-size: 12px; color: var(--p-faint); }
.p-nav .nav-dropdown svg.p-ico { width: 19px; height: 19px; color: var(--p-blue); flex: 0 0 19px; margin-top: 2px; }
.p-nav .p-nav-mobile-all { display: none; }

svg.p-ico {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

/* ==========================================================================
   机场简介
   ========================================================================== */
.p-intro {
    position: relative;
    background: linear-gradient(180deg, #EDF3F9 0%, #F7FAFD 100%);
    border-bottom: 1px solid var(--p-line);
    overflow: hidden;
}
.p-intro::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: linear-gradient(to right, rgba(20, 80, 143, 0.05) 1px, transparent 1px);
    background-size: 96px 100%;
    mask-image: linear-gradient(180deg, rgba(0,0,0,.7), transparent 85%);
    -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.7), transparent 85%);
}
.p-intro-inner {
    position: relative;
    max-width: 1240px;
    margin: 0 auto;
    padding: 54px 24px 40px;
    display: grid;
    grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
    gap: 48px;
    align-items: start;
}
.p-kicker {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    line-height: 1;
    letter-spacing: 0.18em;
    color: var(--p-faint);
    text-transform: uppercase;
    margin-bottom: 16px;
}
.p-kicker::before {
    content: '';
    width: 26px;
    height: 3px;
    background: var(--p-red);
    flex: 0 0 26px;
}
.p-intro h1 {
    margin: 0 0 18px;
    font-family: 'Noto Serif SC', 'Source Han Serif SC', 'SimSun', serif;
    font-size: 38px;
    line-height: 1.3;
    font-weight: 700;
    color: var(--p-navy);
    letter-spacing: 0.04em;
}
.p-intro-lead {
    margin: 0 0 14px;
    max-width: 64ch;
    color: #33455C;
    font-size: 16.5px;
    line-height: 1.95;
    text-indent: 2em;
}
.p-intro-lead:last-of-type { margin-bottom: 0; }
.p-duties {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
}
.p-duties li { border-top: 1px solid var(--p-blue-line); padding-top: 12px; }
.p-duty-no {
    display: block;
    font-size: 11px;
    letter-spacing: 0.14em;
    color: var(--p-blue);
    font-weight: 600;
    margin-bottom: 4px;
}
.p-duties strong { display: block; font-size: 15.5px; color: var(--p-ink); font-weight: 600; line-height: 1.6; }
.p-duties span.duty-desc { display: block; font-size: 13px; color: var(--p-muted); line-height: 1.7; margin-top: 2px; }

.p-intro-figure {
    margin: 0;
    border: 1px solid #C9D8E8;
    background: #DCE7F2;
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}
.p-intro-figure img {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}
.p-intro-figure .p-figure-tag {
    position: absolute;
    left: 0;
    top: 0;
    background: rgba(11, 46, 89, 0.9);
    color: #fff;
    font-size: 12px;
    line-height: 1;
    padding: 8px 12px;
    letter-spacing: 0.06em;
}
.p-intro-figure figcaption {
    background: #fff;
    border-top: 1px solid #D5E1EE;
    color: var(--p-muted);
    font-size: 12.5px;
    line-height: 1.6;
    padding: 9px 13px;
}

/* 数据带 */
.p-statbar {
    position: relative;
    max-width: 1240px;
    margin: 34px auto 0;
    padding: 0 24px;
}
.p-statbar-inner {
    display: flex;
    align-items: stretch;
    background: var(--p-surface);
    border: 1px solid var(--p-line);
}
.p-statbar-list {
    flex: 1;
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
.p-stat-item {
    padding: 15px 22px;
    border-right: 1px solid #E8EEF5;
    display: flex;
    align-items: baseline;
    gap: 9px;
    min-width: 0;
}
.p-stat-item:last-child { border-right: 0; }
.p-stat-label { font-size: 13.5px; color: var(--p-muted); white-space: nowrap; }
.p-stat-value {
    font-size: 26px;
    line-height: 1.2;
    font-weight: 700;
    color: var(--p-navy);
    font-variant-numeric: tabular-nums;
}
.p-stat-unit { font-size: 12.5px; color: var(--p-faint); }
.p-statbar-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 22px;
    border-left: 1px solid var(--p-line);
    color: var(--p-blue);
    font-size: 13.5px;
    text-decoration: none;
    white-space: nowrap;
}
.p-statbar-link:hover { background: var(--p-blue-soft); text-decoration: none; }
.p-statbar-link svg { width: 15px; height: 15px; }

/* 常用业务 */
.p-quick {
    max-width: 1240px;
    margin: 14px auto 0;
    padding: 0 24px 46px;
}
.p-quick-inner {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    background: var(--p-surface);
    border: 1px solid var(--p-line);
}
.p-quick-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 15px 14px;
    border-right: 1px solid #E8EEF5;
    color: var(--p-ink);
    text-decoration: none;
    transition: background 160ms ease;
}
.p-quick-item:last-child { border-right: 0; }
.p-quick-item:hover { background: #F7FAFE; text-decoration: none; }
.p-quick-item:hover .p-quick-name { color: var(--p-blue); }
.p-quick-ico {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--p-blue-soft);
    color: var(--p-blue);
    border-radius: 2px;
}
.p-quick-ico svg { width: 19px; height: 19px; }
.p-quick-name { display: block; font-size: 15px; font-weight: 600; line-height: 1.5; color: var(--p-ink); transition: color 160ms ease; }
.p-quick-desc { display: block; font-size: 12px; line-height: 1.5; color: var(--p-faint); margin-top: 1px; }

/* ==========================================================================
   区块标题
   ========================================================================== */
.p-section { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
#photoWallHeader, #functions { scroll-margin-top: 104px; }
.p-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 13px;
    margin-bottom: 22px;
    border-bottom: 1px solid var(--p-line);
    position: relative;
}
.p-section-head::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 56px;
    height: 3px;
    background: var(--p-red);
}
.p-section-title {
    margin: 0;
    font-family: 'Noto Serif SC', 'Source Han Serif SC', 'SimSun', serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--p-navy);
    letter-spacing: 0.03em;
}
.p-section-sub { display: block; margin-top: 3px; font-size: 13px; color: var(--p-faint); line-height: 1.5; }
.p-section-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    font-size: 13px;
    color: var(--p-muted);
    padding-bottom: 2px;
}
.p-section-meta .p-count {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--p-blue-soft);
    color: var(--p-blue);
    border-radius: 2px;
    padding: 2px 10px;
    font-size: 13px;
}
.p-section-meta a {
    color: var(--p-blue);
    text-decoration: none;
    border: 1px solid var(--p-line);
    background: #fff;
    padding: 4px 11px;
    border-radius: 2px;
    font-size: 13px;
}
.p-section-meta a:hover { border-color: var(--p-blue); text-decoration: none; }

/* ==========================================================================
   人员风采（覆盖原手风琴样式）
   ========================================================================== */
.p-personnel { padding-top: 54px; }
body.is-portal .p-personnel .accordion-wrap { width: 100%; max-width: none; display: block; }
body.is-portal .p-personnel .loading-wall { padding: 36px; color: var(--p-faint); font-size: 14px; text-align: center; }

body.is-portal .p-personnel .accordion-panel {
    background: var(--p-surface);
    border: 1px solid var(--p-line);
    border-radius: 2px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: border-color 160ms ease;
}
body.is-portal .p-personnel .accordion-panel:hover { border-color: var(--p-line); }
body.is-portal .p-personnel .accordion-panel.active { border-color: var(--p-line); }

body.is-portal .p-personnel .accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    min-height: 54px;
    background: #F8FAFD;
    cursor: pointer;
    user-select: none;
}
body.is-portal .p-personnel .accordion-header:hover { background: #F2F6FB; }
body.is-portal .p-personnel .accordion-panel.active .accordion-header { border-bottom: 1px solid var(--p-line); }
body.is-portal .p-personnel .accordion-header .ah-left { display: flex; align-items: center; gap: 12px; }
body.is-portal .p-personnel .accordion-header .ah-title { font-size: 16px; font-weight: 600; color: var(--p-navy); }
body.is-portal .p-personnel .accordion-header .ah-count {
    font-size: 12px;
    color: var(--p-blue);
    background: var(--p-blue-soft);
    padding: 1px 8px;
    border-radius: 2px;
    font-weight: 500;
}
body.is-portal .p-personnel .accordion-header .ah-arrow { font-size: 11px; color: var(--p-faint); transition: transform 160ms ease; }
body.is-portal .p-personnel .accordion-panel.active .ah-arrow { transform: rotate(180deg); }

body.is-portal .p-personnel .person-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
    gap: 14px;
    padding: 18px;
}
body.is-portal .p-personnel .person-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    padding: 14px 10px 12px;
    background: #fff;
    border: 1px solid var(--p-line);
    border-radius: 2px;
    text-decoration: none;
    transition: border-color 160ms ease, box-shadow 160ms ease;
    position: relative;
}
body.is-portal .p-personnel .person-card:hover {
    background: #FBFDFF;
    border-color: var(--p-blue);
    transform: none;
    box-shadow: 0 2px 10px rgba(11, 46, 89, 0.07);
}
body.is-portal .p-personnel .person-card:focus-visible { outline: 2px solid #2E6DB4; outline-offset: 2px; }
body.is-portal .p-personnel .person-avatar {
    width: 76px;
    height: 96px;
    border-radius: 0;
    background: #EDF2F8;
    border: 1px solid #DCE5F0;
    color: #93A4B8;
    font-size: 22px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: none;
    transition: border-color 160ms ease;
}
body.is-portal .p-personnel .person-card:hover .person-avatar { border-color: #B8CCE2; }
body.is-portal .p-personnel .person-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
body.is-portal .p-personnel .person-name { font-size: 15px; font-weight: 600; color: var(--p-ink); line-height: 1.5; }
body.is-portal .p-personnel .person-pos { font-size: 12.5px; color: var(--p-faint); line-height: 1.5; }
body.is-portal .p-personnel .person-card.is-resigned { opacity: 1; filter: none; }

/* ==========================================================================
   今日训练之星（预留展示位）
   ========================================================================== */
.p-stars-band {
    margin-top: 0;
    padding: 46px 0 50px;
    background: #F7F9FC;
    border-top: 1px solid var(--p-line);
    border-bottom: 1px solid var(--p-line);
}
.p-stars { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.p-stars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
}
.p-star-slot {
    background: #fff;
    border: 1px dashed #C8D5E4;
    border-radius: 2px;
    padding: 12px;
    transition: border-color 160ms ease, box-shadow 160ms ease;
    text-align: left;
    font-family: inherit;
    color: inherit;
    cursor: pointer;
}
.p-star-slot:hover { border-color: var(--p-blue); }
.p-star-slot.is-empty { cursor: default; }
.p-star-slot.has-data { border-style: solid; border-color: #DCE5EF; }
.p-star-slot.is-active {
    border-style: solid;
    border-color: var(--p-blue);
    box-shadow: 0 4px 16px rgba(46, 109, 180, 0.14);
}
.p-star-cat {
    min-height: 36px;
    margin-bottom: 8px;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.45;
    color: var(--p-muted);
    letter-spacing: 0.02em;
}
.p-star-photo {
    aspect-ratio: 3 / 4;
    background: #F1F5FA;
    border: 1px solid #E3EAF2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #A8B6C6;
    overflow: hidden;
}
.p-star-photo.has-photo { background: #DDE6EF; }
.p-star-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.p-star-photo svg { width: 24px; height: 24px; }
.p-star-photo span { font-size: 12px; letter-spacing: 0.06em; }
.p-star-initial { font-size: 38px; font-weight: 700; color: #9FB0C2; line-height: 1; }
.p-star-name { margin-top: 10px; font-size: 15px; font-weight: 600; color: #8C9AAB; line-height: 1.5; }
.p-star-slot.has-data .p-star-name { color: var(--p-ink); }
.p-star-meta { font-size: 12.5px; color: #A8B4C2; line-height: 1.5; }
.p-star-slot.has-data .p-star-meta { color: var(--p-muted); }

.p-pacesetter-detail {
    margin-top: 18px;
    background: #fff;
    border: 1px solid var(--p-line);
    border-radius: 6px;
    padding: 16px 18px;
}
.p-pacesetter-detail[hidden] { display: none !important; }
.p-pacesetter-detail-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    padding-bottom: 10px;
    margin-bottom: 4px;
    border-bottom: 1px solid #E8EEF5;
}
.p-pacesetter-detail-head h3 { margin: 0; font-size: 16px; color: var(--p-navy); }
.p-pacesetter-detail-head span { font-size: 12px; color: var(--p-faint); }
.p-pacesetter-rank { list-style: none; margin: 0; padding: 0; }
.p-pacesetter-rank li {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    align-items: baseline;
    gap: 10px;
    padding: 8px 2px;
    border-bottom: 1px dashed #EDF2F7;
    font-size: 14px;
}
.p-pacesetter-rank li:last-child { border-bottom: none; }
.p-rank-no { font-weight: 700; color: var(--p-blue); text-align: center; font-variant-numeric: tabular-nums; }
.p-rank-name { color: var(--p-ink); font-weight: 600; }
.p-rank-score { color: var(--p-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.p-pacesetter-empty { padding: 18px 4px; text-align: center; color: var(--p-faint); font-size: 13px; }
.p-stars-note {
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-size: 13px;
    color: var(--p-faint);
}
.p-stars-note a { color: var(--p-blue); text-decoration: none; white-space: nowrap; }
.p-stars-note a:hover { text-decoration: underline; }

/* ==========================================================================
   业务功能目录
   ========================================================================== */
.p-directory { padding-top: 58px; padding-bottom: 72px; }
.p-functions {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 30px;
}
.p-func-group { min-width: 0; }
.p-func-group h3 {
    margin: 0 0 10px;
    padding-bottom: 9px;
    border-bottom: 1px solid var(--p-line);
    font-size: 16px;
    font-weight: 600;
    color: var(--p-navy);
    position: relative;
}
.p-func-group h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 24px;
    height: 2px;
    background: var(--p-red);
}
.p-func-link {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 8px 7px;
    margin-left: -7px;
    border-radius: 2px;
    color: var(--p-ink);
    text-decoration: none;
    line-height: 1.5;
}
.p-func-link:hover { background: var(--p-blue-soft); text-decoration: none; }
.p-func-link svg { width: 19px; height: 19px; color: var(--p-blue); margin-top: 2px; flex: 0 0 19px; }
.p-func-name { display: block; font-size: 14.5px; font-weight: 500; color: var(--p-ink); }
.p-func-link:hover .p-func-name { color: var(--p-blue-strong); }
.p-func-desc { display: block; font-size: 12px; color: var(--p-faint); line-height: 1.5; }


/* ==========================================================================
   右侧区块导航（简介 / 人员名册 / 业务功能）
   ========================================================================== */
.p-section-nav {
    position: fixed;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 90;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 16px;
}
.p-section-nav::before {
    content: '';
    position: absolute;
    right: 2px;
    top: -18px;
    bottom: -18px;
    width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(11, 46, 89, 0.18) 8%, rgba(11, 46, 89, 0.18) 92%, transparent);
    pointer-events: none;
}
.p-section-nav .p-nav-marker {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    height: 38px;
    cursor: pointer;
    text-decoration: none;
    outline: none;
}
.p-section-nav .p-nav-dot {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #C3D0DF;
    border: 2px solid var(--p-bg);
    z-index: 2;
    transition: width 200ms ease, height 200ms ease, background 200ms ease, box-shadow 200ms ease;
}
.p-section-nav .p-nav-marker:hover .p-nav-dot,
.p-section-nav .p-nav-marker.active .p-nav-dot {
    background: var(--p-blue);
    box-shadow: 0 0 0 4px rgba(20, 80, 143, 0.10);
}
.p-section-nav .p-nav-marker.active .p-nav-dot { width: 8px; height: 8px; }
.p-section-nav .p-nav-label {
    display: block;
    height: 24px;
    line-height: 24px;
    padding: 0 9px;
    margin-right: 16px;
    font-size: 12px;
    color: var(--p-navy);
    white-space: nowrap;
    overflow: hidden;
    max-width: 44px;
    opacity: 0.55;
    background: #fff;
    border: 1px solid var(--p-line);
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(11, 46, 89, 0.05);
    transition: max-width 360ms cubic-bezier(0.32, 0.72, 0, 1), opacity 360ms cubic-bezier(0.32, 0.72, 0, 1), color 160ms ease, border-color 160ms ease;
}
.p-section-nav .p-nav-marker:hover .p-nav-label {
    max-width: 120px;
    opacity: 1;
}
.p-section-nav .p-nav-marker.active .p-nav-label {
    opacity: 0.9;
    color: var(--p-blue);
    border-color: #C5D8EC;
}
.p-section-nav .p-nav-marker.active:hover .p-nav-label {
    opacity: 1;
    color: var(--p-blue-strong);
}
@media (max-width: 1280px) {
    .p-section-nav { display: none; }
}

/* ==========================================================================
   页脚
   ========================================================================== */
.p-footer { background: var(--p-navy); color: rgba(255, 255, 255, 0.68); }
.p-footer-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 26px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    font-size: 13px;
    line-height: 1.8;
}
.p-footer-left { display: flex; flex-direction: column; gap: 2px; }
.p-footer-name { color: rgba(255, 255, 255, 0.9); font-size: 14px; letter-spacing: 0.03em; }
.p-footer-meta { color: rgba(255, 255, 255, 0.45); font-size: 12px; }
.p-footer-right { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: flex-end; }
.p-footer a { color: rgba(255, 255, 255, 0.64); text-decoration: none; }
.p-footer a:hover { color: #fff; text-decoration: underline; }
body.is-portal .p-footer .p-icp { color: #fff; font-weight: 500; }
body.is-portal .p-footer .p-icp:hover { color: #fff; }

/* ==========================================================================
   响应式
   ========================================================================== */
@media (max-width: 1080px) {
    .p-brand-title { font-size: 24px; }
    .p-search { width: 280px; flex-basis: 280px; }
    .p-intro-inner { gap: 34px; }
    .p-quick-inner { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .p-quick-item:nth-child(3n) { border-right: 0; }
    .p-quick-item:nth-child(-n+3) { border-bottom: 1px solid #E8EEF5; }
    .p-functions { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
    .p-masthead-inner { flex-wrap: wrap; gap: 14px; padding: 16px 18px; }
    .p-brand-title { font-size: 21px; white-space: normal; }
    .p-brand-sub { white-space: normal; font-size: 9px; letter-spacing: 0.1em; }
    .p-brand-mark { width: 46px; height: 46px; flex-basis: 46px; }
    .p-search { order: 3; width: 100%; flex: 1 1 100%; margin-left: 0; }
    .p-search-box { height: 38px; }
    .p-search input, .p-search button { height: 38px; }
    .p-nav { top: 42px; }
    .p-nav-inner { padding: 0 12px; overflow-x: auto; scrollbar-width: none; }
    .p-nav-inner::-webkit-scrollbar { display: none; }
    .p-nav .nav-group { display: none; }
    .p-nav a.p-nav-mobile-all { display: flex; }
    .p-nav a.p-nav-item, .p-nav button.p-nav-item { padding: 0 14px; font-size: 14.5px; }
    .p-intro-inner { grid-template-columns: 1fr; gap: 28px; padding: 36px 18px 30px; }
    .p-intro h1 { font-size: 30px; }
    .p-intro-lead { font-size: 16px; line-height: 1.9; }
    .p-duties { grid-template-columns: 1fr 1fr; gap: 18px; }
    .p-statbar { padding: 0 18px; margin-top: 24px; }
    .p-statbar-inner { display: block; }
    .p-statbar-list { grid-template-columns: 1fr 1fr; }
    .p-stat-item { border-bottom: 1px solid #E8EEF5; padding: 13px 16px; }
    .p-stat-item:nth-child(2n) { border-right: 0; }
    .p-stat-item:nth-child(n+3) { border-bottom: 0; }
    .p-statbar-link { border-left: 0; border-top: 1px solid var(--p-line); padding: 11px 16px; justify-content: flex-end; }
    .p-quick { padding: 0 18px 36px; }
    .p-quick-inner { grid-template-columns: 1fr 1fr; }
    .p-quick-item { border-bottom: 1px solid #E8EEF5; }
    .p-quick-item:nth-child(2n) { border-right: 0; }
    .p-quick-item:nth-child(n+5) { border-bottom: 0; }
    .p-section, .p-stars { padding-left: 18px; padding-right: 18px; }
    .p-section-head { flex-wrap: wrap; align-items: flex-start; gap: 8px; }
    .p-personnel { padding-top: 42px; }
    .p-stars-band { margin-top: 0; padding: 36px 0 38px; }
    .p-stars-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .p-stars-note { flex-direction: column; align-items: flex-start; gap: 8px; }
    .p-directory { padding-top: 44px; padding-bottom: 52px; }
    .p-functions { grid-template-columns: 1fr 1fr; gap: 24px; }
    .p-footer-inner { flex-direction: column; align-items: flex-start; gap: 10px; padding: 22px 18px; }
    .p-footer-right { justify-content: flex-start; }
    .p-unit::before { display: none; }
    .p-utility-version, .p-date { display: none; }
    .p-utility-inner { height: 42px; padding: 0 10px; gap: 6px; font-size: 12px; }
    .p-unit { max-width: 48vw; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 12px; flex-shrink: 1; min-width: 0; }
    .p-utility-sep { display: none; }
    .p-utility-right { gap: 6px; min-width: 0; flex-shrink: 0; }
    body.is-portal .user-info { flex-shrink: 0; gap: 6px; }
    body.is-portal .user-avatar { width: 24px; height: 24px; font-size: 11px; line-height: 1; }
    body.is-portal .user-meta { white-space: nowrap; gap: 0; }
    body.is-portal .user-meta .user-role { display: none; }
    body.is-portal .user-meta .user-name { font-size: 12px; white-space: nowrap; }
    body.is-portal .logout-btn { white-space: nowrap; flex-shrink: 0; padding: 2px 8px; font-size: 12px; }
    body.is-portal .logout-full { display: none; }
    body.is-portal .logout-short { display: inline; }
    body.is-portal .notify-icon { flex-shrink: 0; width: 32px; height: 32px; }
    body.is-portal .notify-icon .p-ico { width: 22px; height: 22px; }
}

@media (max-width: 520px) {
    .p-brand-title { font-size: 19px; }
    .p-brand-sub { display: none; }
    .p-duties { grid-template-columns: 1fr; gap: 16px; }
    .p-quick-inner { grid-template-columns: 1fr; }
    .p-quick-item { border-right: 0; border-bottom: 1px solid #E8EEF5; }
    .p-quick-item:nth-child(n) { border-bottom: 1px solid #E8EEF5; }
    .p-quick-item:last-child { border-bottom: 0; }
    .p-stars-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .p-functions { grid-template-columns: 1fr; gap: 22px; }
    .p-section-title { font-size: 21px; }
    .p-stat-value { font-size: 23px; }
    body.is-portal .p-personnel .person-grid { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; padding: 12px; }
    body.is-portal .p-personnel .person-avatar { width: 62px; height: 80px; }
    body.is-portal .p-personnel .person-name { font-size: 14px; }
    body.is-portal .p-personnel .person-pos { font-size: 11.5px; }
}

@media (prefers-reduced-motion: reduce) {
    body.is-portal *,
    body.is-portal *::before,
    body.is-portal *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
    }
}
