:root {
    --portal-primary: #176b62;
    --portal-primary-dark: #10534d;
    --portal-amber: #e2a23a;
    --portal-ink: #17242c;
    --portal-muted: #687780;
    --portal-line: #dce4e6;
    --portal-soft: #eef3f2;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--portal-ink);
    background: #fff;
    font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

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

a {
    color: inherit;
    text-decoration: none;
}

.portal-container {
    width: min(1280px, calc(100% - 64px));
    margin: 0 auto;
}

.portal-header {
    position: sticky;
    z-index: 50;
    top: 0;
    height: 76px;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid rgba(31, 62, 71, 0.1);
}

.portal-header-inner {
    width: min(1360px, calc(100% - 48px));
    height: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 36px;
}

.portal-brand {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    justify-self: start;
}

.portal-mark {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: grid;
    place-items: center;
    color: #17333c;
    background: var(--portal-amber);
    border-radius: 6px;
    font-size: 22px;
    font-weight: 700;
}

.portal-brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.portal-brand-copy strong {
    font-size: 18px;
    font-weight: 700;
}

.portal-brand-copy small {
    margin-top: 5px;
    color: var(--portal-muted);
    font-size: 11px;
}

.portal-nav {
    display: flex;
    align-items: center;
    gap: 38px;
}

.portal-nav a {
    position: relative;
    padding: 27px 0 25px;
    color: #4e5e66;
    font-size: 14px;
    font-weight: 600;
}

.portal-nav a::after {
    position: absolute;
    right: 0;
    bottom: 18px;
    left: 0;
    height: 2px;
    content: "";
    background: var(--portal-primary);
    transform: scaleX(0);
    transition: transform 0.2s ease;
}

.portal-nav a:hover {
    color: var(--portal-primary);
}

.portal-nav a:hover::after {
    transform: scaleX(1);
}

.portal-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.header-link {
    height: 38px;
    padding: 0 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 1px solid var(--portal-line);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.header-link:hover {
    border-color: var(--portal-primary);
}

.header-link.admin {
    color: #fff;
    background: var(--portal-primary);
    border-color: var(--portal-primary);
}

.header-link.admin:hover {
    background: var(--portal-primary-dark);
}

.portal-hero {
    position: relative;
    min-height: max(610px, calc(100vh - 128px));
    overflow: hidden;
    color: #fff;
    background-color: #14333b;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 58% center;
}

.portal-hero::before {
    position: absolute;
    inset: 0;
    content: "";
    background: rgba(5, 28, 35, 0.54);
}

.portal-hero-inner {
    position: relative;
    z-index: 1;
    width: min(1280px, calc(100% - 64px));
    min-height: inherit;
    margin: 0 auto;
    padding: 92px 0 170px;
    display: flex;
    align-items: center;
}

.hero-content {
    width: min(680px, 62%);
}

.hero-kicker {
    margin: 0 0 18px;
    color: #f1c56f;
    font-size: 13px;
    font-weight: 700;
}

.hero-content h1 {
    margin: 0;
    font-size: 64px;
    line-height: 1.16;
    font-weight: 700;
}

.hero-subtitle {
    margin: 14px 0 0;
    font-size: 28px;
    line-height: 1.4;
    font-weight: 500;
}

.hero-description {
    max-width: 650px;
    margin: 26px 0 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 16px;
    line-height: 2;
}

.hero-actions {
    margin-top: 34px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.hero-button {
    min-width: 144px;
    height: 46px;
    padding: 0 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 1px solid rgba(255, 255, 255, 0.58);
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.hero-button:hover {
    color: #fff;
    transform: translateY(-1px);
}

.hero-button.primary {
    color: #17333c;
    background: var(--portal-amber);
    border-color: var(--portal-amber);
}

.hero-button.primary:hover {
    color: #17333c;
    background: #efb650;
    border-color: #efb650;
}

.hero-button.secondary {
    color: #fff;
    background: rgba(11, 49, 57, 0.36);
}

.hero-button.secondary:hover {
    background: rgba(11, 49, 57, 0.68);
}

.hero-summary {
    position: absolute;
    z-index: 2;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(7, 35, 42, 0.84);
    border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.hero-summary-inner {
    width: min(1280px, calc(100% - 64px));
    min-height: 112px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.summary-item {
    min-width: 0;
    padding: 24px 24px;
    display: flex;
    align-items: center;
    gap: 14px;
    border-right: 1px solid rgba(255, 255, 255, 0.13);
}

.summary-item:first-child {
    padding-left: 0;
}

.summary-item:last-child {
    padding-right: 0;
    border-right: 0;
}

.summary-item > .layui-icon {
    flex: 0 0 auto;
    color: #f1c56f;
    font-size: 25px;
}

.summary-item div {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.summary-item strong {
    font-size: 15px;
}

.summary-item span {
    margin-top: 6px;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.64);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.capability-section {
    padding: 90px 0 94px;
    scroll-margin-top: 76px;
    background: #fff;
}

.section-heading {
    max-width: 760px;
}

.section-heading > p,
.workflow-copy > p,
.entry-heading > p {
    margin: 0 0 12px;
    color: var(--portal-primary);
    font-size: 13px;
    font-weight: 700;
}

.section-heading h2,
.workflow-copy h2,
.entry-heading h2 {
    margin: 0;
    font-size: 34px;
    line-height: 1.45;
    font-weight: 700;
}

.section-heading > div,
.workflow-copy > div {
    margin-top: 16px;
    color: var(--portal-muted);
    font-size: 15px;
    line-height: 1.9;
}

.capability-grid {
    margin-top: 54px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 36px;
}

.capability-block {
    min-width: 0;
    padding-top: 24px;
    border-top: 2px solid var(--portal-line);
}

.capability-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 6px;
    font-size: 21px;
}

.capability-icon.green {
    color: #176b62;
    background: #e3f1ee;
}

.capability-icon.amber {
    color: #9b6614;
    background: #f8ecd6;
}

.capability-icon.blue {
    color: #32659a;
    background: #e6eef7;
}

.capability-icon.red {
    color: #a24949;
    background: #f6e7e7;
}

.capability-block h3 {
    margin: 20px 0 10px;
    font-size: 19px;
    line-height: 1.45;
}

.capability-block p {
    margin: 0;
    color: var(--portal-muted);
    font-size: 14px;
    line-height: 1.9;
}

.workflow-section {
    padding: 88px 0;
    scroll-margin-top: 76px;
    background: var(--portal-soft);
    border-top: 1px solid #e0e8e7;
    border-bottom: 1px solid #e0e8e7;
}

.workflow-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.86fr) minmax(520px, 1.14fr);
    align-items: center;
    gap: 88px;
}

.workflow-steps {
    display: grid;
    gap: 0;
}

.workflow-step {
    position: relative;
    min-height: 104px;
    padding: 24px 0 24px 76px;
    display: flex;
    align-items: flex-start;
    border-bottom: 1px solid #ccd8d7;
}

.workflow-step:last-child {
    border-bottom: 0;
}

.workflow-step > span {
    position: absolute;
    top: 23px;
    left: 0;
    color: var(--portal-primary);
    font-size: 21px;
    font-weight: 700;
}

.workflow-step strong {
    font-size: 18px;
}

.workflow-step p {
    margin: 8px 0 0;
    color: var(--portal-muted);
    font-size: 14px;
    line-height: 1.7;
}

.entry-section {
    padding: 88px 0 96px;
    scroll-margin-top: 76px;
    color: #fff;
    background: #17383d;
}

.entry-heading > p {
    color: #efc370;
}

.entry-grid {
    margin-top: 42px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.entry-card {
    min-width: 0;
    padding: 30px;
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) auto;
    align-items: center;
    gap: 22px;
    color: var(--portal-ink);
    background: #fff;
    border-radius: 8px;
}

.entry-icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--portal-primary);
    border-radius: 7px;
    font-size: 25px;
}

.admin-entry-card .entry-icon {
    color: #17333c;
    background: var(--portal-amber);
}

.entry-copy {
    min-width: 0;
}

.entry-copy h3 {
    margin: 0;
    font-size: 20px;
}

.entry-copy p {
    margin: 8px 0 0;
    color: var(--portal-muted);
    font-size: 13px;
    line-height: 1.7;
}

.entry-card > a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--portal-primary);
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

.portal-footer {
    color: #859196;
    background: #10282c;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.portal-footer .portal-container {
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    font-size: 12px;
}

@media (max-width: 1080px) {
    .portal-nav {
        display: none;
    }

    .portal-header-inner {
        grid-template-columns: 1fr auto;
    }

    .hero-content {
        width: min(650px, 72%);
    }

    .capability-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .workflow-layout {
        grid-template-columns: 1fr;
        gap: 42px;
    }
}

@media (max-width: 760px) {
    .portal-container,
    .portal-hero-inner,
    .hero-summary-inner {
        width: min(100% - 40px, 1280px);
    }

    .portal-header {
        height: 66px;
    }

    .portal-header-inner {
        width: calc(100% - 32px);
        gap: 14px;
    }

    .portal-brand-copy small {
        display: none;
    }

    .portal-brand-copy strong {
        font-size: 16px;
    }

    .header-link {
        width: 38px;
        padding: 0;
    }

    .header-link span {
        display: none;
    }

    .portal-hero {
        min-height: max(680px, calc(100svh - 106px));
        background-position: 64% center;
    }

    .portal-hero::before {
        background: rgba(5, 28, 35, 0.66);
    }

    .portal-hero-inner {
        padding: 70px 0 230px;
        align-items: flex-start;
    }

    .hero-content {
        width: 100%;
    }

    .hero-content h1 {
        font-size: 44px;
    }

    .hero-subtitle {
        font-size: 21px;
    }

    .hero-description {
        margin-top: 20px;
        font-size: 14px;
        line-height: 1.85;
    }

    .hero-actions {
        align-items: stretch;
    }

    .hero-button {
        flex: 1;
        min-width: 0;
        padding: 0 12px;
    }

    .hero-summary-inner {
        min-height: 188px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .summary-item,
    .summary-item:first-child,
    .summary-item:last-child {
        padding: 18px 10px;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    }

    .summary-item:nth-child(odd) {
        padding-left: 0;
        border-right: 1px solid rgba(255, 255, 255, 0.12);
    }

    .summary-item:nth-child(even) {
        padding-right: 0;
    }

    .summary-item:nth-child(n + 3) {
        border-bottom: 0;
    }

    .summary-item span {
        white-space: normal;
    }

    .capability-section,
    .workflow-section,
    .entry-section {
        padding: 68px 0;
        scroll-margin-top: 66px;
    }

    .section-heading h2,
    .workflow-copy h2,
    .entry-heading h2 {
        font-size: 27px;
    }

    .capability-grid {
        margin-top: 38px;
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .workflow-step {
        padding-left: 62px;
    }

    .entry-grid {
        grid-template-columns: 1fr;
    }

    .entry-card {
        grid-template-columns: 48px minmax(0, 1fr);
        padding: 24px;
        gap: 16px;
    }

    .entry-icon {
        width: 48px;
        height: 48px;
    }

    .entry-card > a {
        grid-column: 2;
    }

    .portal-footer .portal-container {
        min-height: 78px;
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 420px) {
    .portal-brand-copy strong {
        font-size: 14px;
    }

    .portal-mark {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
        font-size: 20px;
    }

    .portal-header-actions {
        gap: 6px;
    }

    .header-link {
        width: 36px;
        height: 36px;
    }

    .hero-content h1 {
        font-size: 40px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-button {
        width: 100%;
        flex: none;
    }
}
