:root {
    --page: #f6f8fb;
    --page-2: #eef4fb;
    --surface: #ffffff;
    --surface-soft: #f7faff;
    --ink: #172033;
    --text: #2b3748;
    --muted: #748194;
    --muted-2: #a2adbd;
    --line: #dbe5f1;
    --line-soft: #edf2f8;
    --blue: #2766bb;
    --blue-2: #1f57a4;
    --blue-3: #17467f;
    --blue-soft: #edf5ff;
    --blue-soft-2: #e7f0fc;
    --red: #c84646;
    --green: #2f8764;
    --orange: #b87618;
    --radius: 10px;
    --radius-lg: 14px;
    --shadow: 0 12px 28px rgba(34, 72, 116, .08);
    --shadow-soft: 0 6px 18px rgba(34, 72, 116, .05);
}

* { box-sizing: border-box; }
html { background: var(--page); }
body {
    min-height: 100vh;
    margin: 0;
    background:
        linear-gradient(180deg, #ffffff 0%, #f7faff 16rem, #f2f6fb 100%);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a { color: var(--blue-2); text-decoration: none !important; }
a:hover { color: var(--blue-3); text-decoration: none !important; }

.navbar {
    min-height: 58px;
    background: rgba(255,255,255,.96) !important;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 4px 16px rgba(36, 70, 113, .05);
}
.navbar .container { max-width: 1240px; }
.navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink) !important;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -.02em;
}
.navbar-brand::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6aa7f3, var(--blue));
    box-shadow: 0 0 0 5px rgba(39,102,187,.12);
}
.navbar .nav-link {
    color: #344258 !important;
    font-size: 13px;
    font-weight: 700;
    padding: 8px 12px !important;
    border-radius: 999px;
}
.navbar .nav-link:hover { background: var(--blue-soft); color: var(--blue-3) !important; }
.navbar .nav-link.active { background: var(--blue-soft); color: var(--blue-3) !important; box-shadow: inset 0 0 0 1px #cfe1f7; }
.badge.text-bg-danger { background: #a74747 !important; font-size: 11px; }
main.container { max-width: 1240px; padding-top: 28px; padding-bottom: 52px; }
footer.container { max-width: 1240px; color: var(--muted-2); padding: 20px 0 32px; font-size: 12px; }

.btn { border-radius: 7px; font-size: 13px; font-weight: 700; padding: 8px 16px; box-shadow: none !important; }
.btn-sm { padding: 5px 12px; font-size: 12px; }
.btn-primary { background: var(--blue); border-color: var(--blue); }
.btn-primary:hover { background: var(--blue-3); border-color: var(--blue-3); }
.btn-outline-primary { border-color: #9fc1ed; color: var(--blue-2); background: #fff; }
.btn-outline-primary:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn-outline-secondary { border-color: var(--line); color: #4e5c70; background: #fff; }
.btn-outline-secondary:hover { background: #f2f5f9; color: var(--ink); border-color: #cdd8e7; }
.form-control, .form-select {
    border-radius: 8px;
    border: 1px solid var(--line);
    font-size: 14px;
    min-height: 40px;
    color: var(--text);
}
.form-control:focus, .form-select:focus { border-color: #8bb7ee; box-shadow: 0 0 0 .18rem rgba(39,102,187,.13); }
.alert { border-radius: 10px; border: 1px solid var(--line); }

/* Portal homepage */
.dashboard-workbench.portal-page { padding-bottom: 20px; }
.portal-page .wb-head { display: none; }
.portal-topline {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}
.portal-title h1 {
    margin: 0;
    color: var(--ink);
    font-size: 28px;
    font-weight: 850;
    letter-spacing: -.04em;
}
.portal-title p { margin: 7px 0 0; color: var(--muted); font-size: 13px; }
.portal-switch { min-width: 260px; }
.portal-section-nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin: 8px 0 30px;
}
.portal-section-entry {
    text-align: center;
    color: var(--ink);
}
.portal-section-entry .portal-icon {
    width: 78px;
    height: 78px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: linear-gradient(180deg, #f4f8ff, #e8f1fc);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue);
    font-size: 32px;
    box-shadow: inset 0 0 0 1px #dce9f8;
}
.portal-section-entry h2 {
    margin: 0;
    font-size: 24px;
    line-height: 1.2;
    font-weight: 850;
    letter-spacing: -.04em;
}
.portal-brief {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    box-shadow: var(--shadow-soft);
    margin-bottom: 26px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
}
.portal-brief h2 { margin: 0; color: var(--ink); font-size: 24px; font-weight: 850; letter-spacing: -.04em; }
.portal-brief p { margin: 8px 0 0; color: #46556b; max-width: 900px; }
.portal-chip-row { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.portal-chip {
    display: inline-flex;
    align-items: center;
    border: 1px solid #d6e3f4;
    background: #f6faff;
    color: #365477;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    border-radius: 999px;
    padding: 8px 12px;
}
.portal-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }

.portal-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.22fr) minmax(360px, .9fr);
    gap: 34px;
    align-items: start;
}
.portal-block-title {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}
.portal-block-title h3 {
    margin: 0;
    flex: 0 0 auto;
    color: var(--ink);
    font-size: 22px;
    font-weight: 850;
    letter-spacing: -.04em;
}
.portal-block-title .dots {
    height: 2px;
    flex: 1 1 auto;
    opacity: .46;
    background-image: radial-gradient(#bcc9d9 1px, transparent 1.5px);
    background-size: 10px 2px;
}
.portal-more {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 94px;
    height: 34px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid var(--line);
    color: var(--muted);
    background: #fff;
    font-size: 13px;
}
.portal-tile-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}
.portal-service-tile {
    min-height: 128px;
    border: 1px solid transparent;
    background: #f7f8fa;
    border-radius: 7px;
    padding: 22px 14px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--ink);
    transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.portal-service-tile:hover {
    transform: translateY(-2px);
    background: #fff;
    border-color: #cfe0f4;
    box-shadow: 0 14px 28px rgba(33, 73, 124, .08);
}
.portal-service-tile .tile-icon {
    width: 46px;
    height: 46px;
    margin-bottom: 13px;
    border-radius: 8px 8px 13px 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
    box-shadow: 0 8px 16px rgba(39,102,187,.18);
}
.tile-blue { background: linear-gradient(135deg, #5a9deb, #2766bb); }
.tile-cyan { background: linear-gradient(135deg, #4ea4d8, #2268a7); }
.tile-purple { background: linear-gradient(135deg, #6684eb, #3558bd); }
.tile-green { background: linear-gradient(135deg, #62c28a, #2f8764); }
.tile-red { background: linear-gradient(135deg, #ef6a6a, #c84646); }
.tile-slate { background: linear-gradient(135deg, #7191b7, #31537b); }
.portal-service-tile span { font-size: 15px; font-weight: 750; letter-spacing: -.02em; }
.portal-mini-row {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border: 1px solid var(--line-soft);
    background: #f7f8fa;
    border-radius: 7px;
    overflow: hidden;
}
.portal-mini-link {
    min-height: 86px;
    padding: 15px 10px 12px;
    text-align: center;
    color: var(--text);
    border-right: 1px solid var(--line);
}
.portal-mini-link:last-child { border-right: 0; }
.portal-mini-link strong { display: block; margin-top: 7px; font-size: 14px; }
.portal-mini-link .mini-icon { display: inline-flex; width: 28px; height: 28px; border-radius: 9px; align-items: center; justify-content: center; background: #eaf2ff; color: var(--blue); }

.portal-news { min-width: 0; }
.portal-tabs {
    display: flex;
    align-items: center;
    gap: 26px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 13px;
    margin-bottom: 18px;
    white-space: nowrap;
    overflow: hidden;
}
.portal-tab {
    color: var(--ink);
    font-size: 18px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -.03em;
}
.portal-tab.is-active { color: var(--blue-3); }
.portal-news-list { display: grid; gap: 13px; }
.portal-news-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: baseline;
    color: var(--text);
    padding-left: 12px;
    position: relative;
}
.portal-news-item::before {
    content: "";
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #c1cad7;
    position: absolute;
    left: 0;
    top: 12px;
}
.portal-news-title {
    min-width: 0;
    font-size: 15px;
    line-height: 1.7;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.portal-news-date {
    color: var(--muted);
    font-size: 14px;
    font-variant-numeric: tabular-nums;
}
.portal-unread {
    display: inline-flex;
    transform: translateY(-1px);
    margin-right: 6px;
    border-radius: 999px;
    padding: 2px 6px;
    font-size: 11px;
    line-height: 1.1;
    background: #fff0f0;
    color: var(--red);
    font-weight: 800;
}
.portal-policy-band {
    margin: 26px 0 28px;
    min-height: 118px;
    border-radius: 5px;
    background:
        linear-gradient(135deg, rgba(255,255,255,.08), transparent 32%),
        linear-gradient(120deg, var(--blue), #2462b7 55%, #1a4f96 100%);
    box-shadow: 0 12px 24px rgba(31, 87, 164, .16);
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    padding: 24px 32px;
    color: #fff;
    overflow: hidden;
    position: relative;
}
.portal-policy-band::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(65deg, transparent 0 17%, rgba(255,255,255,.09) 17.5% 18.5%, transparent 19% 34%, rgba(255,255,255,.07) 34.5% 35.5%, transparent 36%);
    opacity: .7;
    pointer-events: none;
}
.portal-policy-title { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; font-size: 26px; font-weight: 850; }
.portal-policy-title .policy-icon { width: 30px; height: 30px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; background: rgba(255,255,255,.18); }
.portal-policy-links { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.portal-policy-link {
    min-height: 54px;
    border-radius: 6px;
    background: rgba(255,255,255,.96);
    color: var(--blue-3);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    text-align: center;
    font-weight: 800;
}
.portal-subgrid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(330px, .78fr);
    gap: 24px;
    align-items: start;
}
.portal-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 20px 22px;
    box-shadow: var(--shadow-soft);
}
.portal-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    margin-bottom: 8px;
}
.portal-card-title { margin: 0; display: flex; align-items: center; gap: 8px; color: var(--ink); font-size: 18px; font-weight: 850; }
.portal-card-title::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px rgba(39,102,187,.10); }
.portal-card-note { color: var(--muted); font-size: 12px; margin-top: 2px; }
.portal-file-list { display: grid; }
.portal-file-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 80px 86px 96px;
    gap: 12px;
    align-items: center;
    min-height: 72px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line-soft);
}
.portal-file-row:last-child { border-bottom: 0; }
.portal-file-name { min-width: 0; font-size: 14px; font-weight: 750; line-height: 1.45; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.portal-file-meta { margin-top: 3px; color: var(--muted); font-size: 12px; line-height: 1.45; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.portal-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 48px; border-radius: 999px; padding: 4px 8px; background: var(--blue-soft); color: var(--blue-3); font-size: 12px; font-weight: 800; }
.portal-muted { color: var(--muted); font-size: 12px; }
.portal-member-row {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 58px;
    gap: 12px;
    align-items: center;
    min-height: 72px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line-soft);
}
.portal-member-row:last-child { border-bottom: 0; }
.portal-avatar { width: 42px; height: 42px; object-fit: cover; border-radius: 50%; border: 1px solid #d8e6f6; }
.portal-member-name { color: var(--ink); font-weight: 800; line-height: 1.45; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.portal-member-role { color: var(--muted); font-size: 12px; line-height: 1.45; }
.portal-empty { padding: 18px 0; color: var(--muted); font-size: 13px; }

.portal-card .text-end strong {
    display: block;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
}
.portal-subgrid .portal-card {
    height: 100%;
}



/* Homepage team showcase: member photo + intro + task cards */
.portal-team-showcase {
    margin: 0 0 30px;
    padding: 24px 26px 26px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.98), rgba(247,250,255,.96)),
        radial-gradient(circle at 92% 10%, rgba(39,102,187,.12), transparent 28%);
    box-shadow: var(--shadow-soft);
}
.portal-team-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}
.portal-team-kicker {
    color: var(--blue-2);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-bottom: 5px;
}
.portal-team-head h3 {
    margin: 0;
    color: var(--ink);
    font-size: 22px;
    line-height: 1.25;
    font-weight: 850;
    letter-spacing: -.04em;
}
.portal-team-head p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 13px;
}
.portal-team-manage {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 104px;
    height: 36px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid #bfd4f1;
    background: #fff;
    color: var(--blue-2);
    font-size: 13px;
    font-weight: 800;
}
.portal-team-manage:hover {
    background: var(--blue-soft);
    border-color: #9fc1ed;
    color: var(--blue-3);
}
.portal-team-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}
.portal-team-card {
    position: relative;
    overflow: hidden;
    min-height: 230px;
    border: 1px solid #dce7f5;
    border-radius: 12px;
    background: #fff;
    padding: 18px 18px 16px;
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 16px;
    box-shadow: 0 8px 18px rgba(34, 72, 116, .05);
}
.portal-team-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #c8ddf7;
}
.portal-team-card.is-leader::before { background: var(--blue); }
.portal-team-photo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.portal-team-photo img {
    width: 82px;
    height: 116px;
    border-radius: 8px;
    object-fit: cover;
    object-position: center top;
    background: var(--blue-soft);
    border: 3px solid #fff;
    box-shadow: 0 0 0 1px #cfe0f4, 0 10px 20px rgba(39,102,187,.14);
}
.portal-team-photo span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 82px;
    min-height: 26px;
    padding: 4px 8px;
    border-radius: 999px;
    background: var(--blue-soft);
    color: var(--blue-3);
    font-size: 12px;
    font-weight: 850;
    line-height: 1.2;
    text-align: center;
}
.portal-team-card.is-leader .portal-team-photo span {
    background: #e7f0fc;
    color: #17467f;
}
.portal-team-info { min-width: 0; }
.portal-team-name-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--line-soft);
}
.portal-team-name-row h4 {
    margin: 0;
    min-width: 0;
    color: var(--ink);
    font-size: 17px;
    font-weight: 850;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.portal-team-name-row small {
    flex: 0 0 auto;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}
.portal-team-field { margin-top: 9px; }
.portal-team-field b {
    display: inline-flex;
    align-items: center;
    margin-bottom: 4px;
    color: var(--blue-3);
    font-size: 12px;
    font-weight: 850;
}
.portal-team-field.task b { color: #31537b; }
.portal-team-field p {
    margin: 0;
    color: #47566d;
    font-size: 13px;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.portal-team-empty {
    min-height: 86px;
    border-radius: 10px;
    background: #f7faff;
    border: 1px dashed #cddbef;
    color: var(--muted);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 18px;
}

@media (max-width: 1199.98px) {
    .portal-team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767.98px) {
    .portal-team-showcase { padding: 20px 16px; }
    .portal-team-head { flex-direction: column; }
    .portal-team-grid { grid-template-columns: 1fr; }
    .portal-team-card { grid-template-columns: 78px minmax(0, 1fr); min-height: 208px; padding: 16px; gap: 14px; }
    .portal-team-photo img { width: 70px; height: 98px; border-radius: 7px; }
    .portal-team-photo span { width: 70px; font-size: 11px; padding: 4px 6px; }
    .portal-team-name-row { flex-direction: column; align-items: flex-start; gap: 2px; }
}

/* keep old component names usable */
.wb-card { background:#fff; border:1px solid var(--line); border-radius:8px; padding:20px 22px; box-shadow:var(--shadow-soft); }
.section-title { margin:0; color:var(--ink); font-size:18px; font-weight:850; }
.section-kicker { color:var(--muted); font-size:12px; }
.wb-badge { border-radius:999px; padding:3px 7px; font-size:11px; font-weight:800; background:var(--blue-soft); color:var(--blue-3); }
.wb-badge.danger { background:#fff0f0; color:var(--red); }
.wb-badge.warning { background:#fff8e8; color:var(--orange); }
.wb-badge.primary { background:var(--blue-soft); color:var(--blue-3); }
.wb-empty { padding:18px 0; color:var(--muted); }

/* notification form rich editor */
.rich-editor { border: 1px solid var(--line); border-radius: 8px; background: #fff; overflow: hidden; }
.rich-editor-toolbar { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px; border-bottom: 1px solid var(--line-soft); background: #f7faff; }
.rich-editor-toolbar button { border: 1px solid var(--line); background: #fff; color: #40516a; border-radius: 6px; padding: 5px 10px; font-size: 12px; font-weight: 750; }
.rich-editor-toolbar button:hover { border-color: #abc8eb; color: var(--blue-3); }
.rich-editor-body { min-height: 260px; padding: 14px 16px; outline: none; color: var(--text); }
.rich-editor-body:empty::before { content: attr(data-placeholder); color: var(--muted-2); }

@media (max-width: 991.98px) {
    main.container { padding-top: 20px; }
    .portal-topline { flex-direction: column; }
    .portal-switch { width: 100%; min-width: 0; }
    .portal-section-nav { gap: 12px; }
    .portal-section-entry .portal-icon { width: 58px; height: 58px; font-size: 24px; }
    .portal-section-entry h2 { font-size: 20px; }
    .portal-brief { grid-template-columns: 1fr; }
    .portal-actions { justify-content: flex-start; }
    .portal-main-grid, .portal-subgrid { grid-template-columns: 1fr; gap: 22px; }
    .portal-policy-band { grid-template-columns: 1fr; padding: 22px; }
    .portal-policy-links { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 767.98px) {
    .portal-title h1 { font-size: 24px; }
    .portal-section-nav { grid-template-columns: 1fr; }
    .portal-tile-grid { grid-template-columns: repeat(2, 1fr); }
    .portal-mini-row { grid-template-columns: repeat(2, 1fr); }
    .portal-mini-link:nth-child(2) { border-right: 0; }
    .portal-news-date, .hide-md { display: none; }
    .portal-file-row { grid-template-columns: minmax(0, 1fr) 62px; }
    .portal-file-row .portal-muted { display: none; }
    .portal-policy-links { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .portal-tile-grid { grid-template-columns: 1fr; }
    .portal-tabs { gap: 14px; }
    .portal-tab { font-size: 16px; }
}

/* Blue hero refinement: remove upper icon strip, place project card as primary top visual */
.portal-section-nav { display: none !important; }
.portal-topline { margin-bottom: 20px; }
.portal-title h1 { font-size: 30px; letter-spacing: -.045em; }
.portal-title p { color: #607089; }

.portal-brief {
    position: relative;
    overflow: hidden;
    border: 0;
    border-radius: 10px;
    padding: 30px 36px;
    min-height: 188px;
    background:
        radial-gradient(circle at 88% 18%, rgba(87,154,239,.28), transparent 34%),
        linear-gradient(135deg, #102d58 0%, #18539c 54%, #276dc7 100%);
    color: #fff;
    box-shadow: 0 18px 38px rgba(29, 87, 164, .18);
    margin-bottom: 30px;
}
.portal-brief::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .42;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: linear-gradient(90deg, rgba(0,0,0,.75), rgba(0,0,0,.2));
}
.portal-brief::after {
    content: "";
    position: absolute;
    right: -90px;
    top: -120px;
    width: 330px;
    height: 330px;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    pointer-events: none;
}
.portal-brief > * { position: relative; z-index: 1; }
.portal-brief h2 {
    color: #fff;
    font-size: 28px;
    line-height: 1.25;
    font-weight: 850;
    letter-spacing: -.045em;
    text-shadow: 0 2px 12px rgba(0,0,0,.16);
}
.portal-brief p {
    color: rgba(255,255,255,.88);
    font-size: 14px;
    line-height: 1.8;
    max-width: 850px;
}
.portal-chip-row { margin-top: 18px; gap: 10px; }
.portal-chip {
    border-color: rgba(255,255,255,.28);
    background: rgba(255,255,255,.13);
    color: rgba(255,255,255,.96);
    backdrop-filter: blur(8px);
}
.portal-brief .portal-actions { align-self: end; padding-bottom: 2px; }
.portal-brief .btn {
    min-width: 98px;
    height: 40px;
    border-radius: 6px;
}
.portal-brief .btn-primary {
    background: #fff;
    border-color: #fff;
    color: #174b8f;
}
.portal-brief .btn-primary:hover {
    background: #eaf3ff;
    border-color: #eaf3ff;
    color: #113f7e;
}
.portal-brief .btn-outline-primary,
.portal-brief .btn-outline-secondary {
    background: rgba(255,255,255,.08);
    border-color: rgba(255,255,255,.42);
    color: #fff;
}
.portal-brief .btn-outline-primary:hover,
.portal-brief .btn-outline-secondary:hover {
    background: rgba(255,255,255,.18);
    border-color: rgba(255,255,255,.72);
    color: #fff;
}
.portal-main-grid { margin-top: 0; }

@media (max-width: 991.98px) {
    .portal-brief { padding: 24px; min-height: auto; }
    .portal-brief .portal-actions { align-self: start; }
}
@media (max-width: 767.98px) {
    .portal-title h1 { font-size: 24px; }
    .portal-brief h2 { font-size: 23px; }
    .portal-brief { padding: 22px 18px; }
}

/* 成果展示模块 */
.tile-gold {
    background: linear-gradient(135deg, #f4b44a, #d9841f);
}
.portal-card-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.portal-results-card .portal-card-head {
    align-items: flex-start;
}
.portal-result-list {
    display: grid;
    gap: 0;
}
.portal-result-row {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line-soft);
    color: inherit;
    text-decoration: none !important;
}
.portal-result-row:last-child {
    border-bottom: 0;
}
.portal-result-row:hover .portal-result-title {
    color: var(--blue-2);
}
.portal-result-icon,
.portal-result-cover {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--blue-soft);
    border: 1px solid #cfe0ff;
    color: var(--blue-2);
    font-weight: 800;
    overflow: hidden;
}
.portal-result-cover img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}
.portal-result-body {
    min-width: 0;
    display: block;
}
.portal-result-title {
    display: block;
    color: var(--ink);
    font-weight: 800;
    line-height: 1.45;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.portal-result-type {
    display: inline-flex;
    align-items: center;
    height: 22px;
    padding: 0 8px;
    margin-right: 6px;
    border-radius: 999px;
    background: #eaf2ff;
    color: #2457a6;
    border: 1px solid #cfe0ff;
    font-size: 12px;
    font-weight: 700;
    vertical-align: 1px;
}
.portal-result-summary {
    display: block;
    margin-top: 3px;
    color: #526176;
    font-size: 13px;
    line-height: 1.55;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.portal-result-meta {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
}
.result-empty {
    line-height: 1.8;
}
.result-empty a {
    font-weight: 700;
}
@media (max-width: 768px) {
    .portal-card-actions { justify-content: flex-start; }
    .portal-result-title,
    .portal-result-summary { white-space: normal; }
}
