/* 2eju.com 全局样式 | 2026-10-24 */

:root {
    --c-primary: #2b6ef1;
    --c-primary-dark: #1e54c7;
    --c-primary-light: #eef3ff;
    --c-accent: #ff6b3d;
    --c-accent-dark: #ff4d1a;
    --c-accent-light: #fff2ed;
    --c-success: #52c41a;
    --c-warning: #faad14;
    --c-danger: #f5222d;
    --c-text: #1f2d3d;
    --c-text-2: #52606f;
    --c-text-3: #8a99a8;
    --c-border: #e6ebf2;
    --c-bg: #f5f7fa;
    --c-white: #ffffff;

    --r-s: 6px;
    --r-m: 10px;
    --r-l: 16px;
    --r-pill: 999px;

    --shadow-1: 0 2px 12px rgba(20, 43, 92, .06);
    --shadow-2: 0 6px 24px rgba(20, 43, 92, .10);
    --shadow-3: 0 12px 36px rgba(20, 43, 92, .14);

    --container: 1200px;
    --header-h: 64px;

    --font-cn: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--c-bg);
    color: var(--c-text);
    font-family: var(--font-cn);
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, p, ul, ol, figure {
    margin: 0;
    padding: 0;
}

ul, ol {
    list-style: none;
}

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

img {
    max-width: 100%;
    display: block;
    border: 0;
}

button, input, select, textarea {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
    border: 0;
    background: none;
}

::selection {
    background: rgba(43, 110, 241, .18);
}

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

.hidden {
    display: none !important;
}

/* ---------- 顶部导航 ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid var(--c-border);
}

.topbar {
    background: #142b5c;
    color: rgba(255, 255, 255, .78);
    font-size: 12.5px;
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 34px;
    gap: 16px;
}

.topbar-note {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.topbar-links {
    display: flex;
    gap: 18px;
    flex-shrink: 0;
}

.topbar-links a {
    color: rgba(255, 255, 255, .82);
    transition: color .2s;
}

.topbar-links a:hover {
    color: #fff;
}

.navbar-inner {
    display: flex;
    align-items: center;
    height: var(--header-h);
    gap: 28px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--c-primary), #4f8bff);
    color: #fff;
    font-size: 19px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(43, 110, 241, .32);
}

.brand-text {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -.2px;
    line-height: 1;
}

.brand-text small {
    font-size: 13px;
    font-weight: 500;
    color: var(--c-text-3);
}

.brand-desc {
    margin-left: 4px;
    padding-left: 12px;
    border-left: 1px solid var(--c-border);
    color: var(--c-text-3);
    font-size: 13px;
    line-height: 1.2;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

.nav-menu a {
    position: relative;
    display: block;
    padding: 8px 14px;
    border-radius: var(--r-s);
    font-size: 15px;
    color: var(--c-text-2);
    transition: color .2s, background .2s;
}

.nav-menu a:hover {
    color: var(--c-primary);
    background: var(--c-primary-light);
}

.nav-menu a.is-active {
    color: var(--c-primary);
    font-weight: 600;
}

.nav-menu a.is-active::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: -1px;
    height: 2px;
    border-radius: 2px;
    background: var(--c-primary);
}

.nav-menu .nav-hot::before {
    content: "HOT";
    margin-right: 6px;
    padding: 1px 5px;
    border-radius: 4px;
    background: var(--c-accent);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    vertical-align: 1px;
}

.nav-toggle {
    display: none;
    margin-left: auto;
    width: 40px;
    height: 40px;
    border-radius: var(--r-s);
    padding: 10px;
}

.nav-toggle span {
    display: block;
    height: 2px;
    border-radius: 2px;
    background: var(--c-text);
}

.nav-toggle span + span {
    margin-top: 5px;
}

/* ---------- 按钮 ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 22px;
    border-radius: var(--r-s);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
    transition: transform .2s, box-shadow .2s, background .2s, color .2s;
    white-space: nowrap;
}

.btn:active {
    transform: translateY(1px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--c-primary), var(--c-primary-dark));
    color: #fff;
    box-shadow: 0 4px 14px rgba(43, 110, 241, .28);
}

.btn-primary:hover {
    box-shadow: 0 6px 18px rgba(43, 110, 241, .38);
    transform: translateY(-1px);
}

.btn-cta {
    background: linear-gradient(135deg, var(--c-accent), var(--c-accent-dark));
    color: #fff;
    box-shadow: 0 4px 14px rgba(255, 107, 61, .3);
}

.btn-cta:hover {
    box-shadow: 0 6px 18px rgba(255, 107, 61, .4);
    transform: translateY(-1px);
}

.btn-secondary {
    background: #fff;
    color: var(--c-primary);
    border: 1px solid #c9d9fb;
}

.btn-secondary:hover {
    background: var(--c-primary-light);
}

.btn-ghost {
    background: rgba(255, 255, 255, .14);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .5);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, .24);
}

.btn-sm {
    padding: 7px 16px;
    font-size: 14px;
}

.btn-lg {
    padding: 13px 32px;
    font-size: 16px;
}

.btn-block {
    width: 100%;
}

/* ---------- 页面头图 ---------- */

.page-hero {
    background: linear-gradient(135deg, #142b5c 0%, #1e4d9b 62%, #2b6ef1 100%);
    color: #fff;
    padding: 30px 0 26px;
}

.page-hero h1 {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -.3px;
}

.page-hero p {
    margin-top: 8px;
    color: rgba(255, 255, 255, .78);
    font-size: 14.5px;
}

.page-hero .hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.page-hero .hero-tags span {
    padding: 4px 12px;
    border-radius: var(--r-pill);
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .24);
    font-size: 12.5px;
}

/* ---------- 卡片与标签 ---------- */

.card {
    background: var(--c-white);
    border-radius: var(--r-l);
    box-shadow: var(--shadow-1);
}

.card-pad {
    padding: 24px;
}

.section {
    padding: 40px 0;
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 21px;
    font-weight: 700;
    letter-spacing: -.2px;
}

.section-title::before {
    content: "";
    width: 4px;
    height: 19px;
    border-radius: 3px;
    background: linear-gradient(180deg, var(--c-primary), #6ea0ff);
}

.section-sub {
    color: var(--c-text-3);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .6px;
    text-transform: uppercase;
}

.section-more {
    color: var(--c-text-3);
    font-size: 14px;
    transition: color .2s;
}

.section-more:hover {
    color: var(--c-primary);
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 4px;
    background: var(--c-primary-light);
    color: var(--c-primary);
    font-size: 12px;
    line-height: 1.7;
    white-space: nowrap;
}

.tag-gray {
    background: #f1f4f9;
    color: var(--c-text-2);
}

.tag-accent {
    background: var(--c-accent-light);
    color: var(--c-accent-dark);
}

.tag-success {
    background: #eefbe6;
    color: #3f9c12;
}

.chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: var(--r-pill);
    background: #fff;
    border: 1px solid var(--c-border);
    color: var(--c-text-2);
    font-size: 13.5px;
    transition: all .2s;
}

.chip:hover {
    border-color: #c9d9fb;
    color: var(--c-primary);
}

.chip.is-active {
    background: var(--c-primary);
    border-color: var(--c-primary);
    color: #fff;
}

/* ---------- 分页 ---------- */

.common-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 26px 0 6px;
}

.common-pagination button {
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border-radius: var(--r-s);
    background: #fff;
    border: 1px solid var(--c-border);
    color: var(--c-text-2);
    font-size: 14px;
    transition: all .2s;
}

.common-pagination button:hover:not(:disabled) {
    border-color: #c9d9fb;
    color: var(--c-primary);
}

.common-pagination button.is-active {
    background: var(--c-primary);
    border-color: var(--c-primary);
    color: #fff;
    font-weight: 600;
}

.common-pagination button:disabled {
    opacity: .42;
    cursor: not-allowed;
}

.common-pagination .pagination-ellipsis {
    color: var(--c-text-3);
    padding: 0 2px;
}

.common-pagination .pagination-total {
    width: 100%;
    text-align: center;
    color: var(--c-text-3);
    font-size: 13px;
    margin-top: 4px;
}

/* ---------- 状态与骨架 ---------- */

.common-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 56px 20px;
    color: var(--c-text-3);
    text-align: center;
    font-size: 14px;
}

.common-state-icon {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #f1f4f9;
    color: var(--c-text-3);
    font-size: 22px;
}

.common-state.is-error .common-state-icon {
    background: #fff1f0;
    color: var(--c-danger);
}

.common-state-action {
    margin-top: 6px;
}

.skeleton {
    background: linear-gradient(90deg, #eef1f6 25%, #f6f8fb 37%, #eef1f6 63%);
    background-size: 400% 100%;
    animation: skeleton-loading 1.4s ease infinite;
    border-radius: var(--r-s);
}

@keyframes skeleton-loading {
    0% { background-position: 100% 50%; }
    100% { background-position: 0 50%; }
}

/* ---------- Toast ---------- */

.common-toast-region {
    position: fixed;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.common-toast {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 18px;
    border-radius: var(--r-m);
    background: #fff;
    box-shadow: var(--shadow-3);
    font-size: 14px;
    color: var(--c-text);
    animation: toast-in .24s ease;
}

.common-toast.is-success { border-left: 3px solid var(--c-success); }
.common-toast.is-error { border-left: 3px solid var(--c-danger); }
.common-toast.is-warning { border-left: 3px solid var(--c-warning); }
.common-toast.is-info { border-left: 3px solid var(--c-primary); }

.common-toast-icon {
    font-style: normal;
    font-weight: 700;
}

.common-toast.is-success .common-toast-icon { color: var(--c-success); }
.common-toast.is-error .common-toast-icon { color: var(--c-danger); }
.common-toast.is-warning .common-toast-icon { color: var(--c-warning); }
.common-toast.is-info .common-toast-icon { color: var(--c-primary); }

.common-toast.is-leaving {
    animation: toast-out .22s ease forwards;
}

@keyframes toast-in {
    from { opacity: 0; transform: translateY(-12px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes toast-out {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(-12px); }
}

/* ---------- 弹窗 ---------- */

.common-dialog-overlay {
    position: fixed;
    inset: 0;
    z-index: 2500;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(15, 27, 48, .48);
    animation: overlay-in .2s ease;
}

.common-dialog {
    width: min(420px, 100%);
    background: #fff;
    border-radius: var(--r-l);
    padding: 26px 24px 20px;
    box-shadow: var(--shadow-3);
    animation: dialog-in .24s cubic-bezier(.22, .9, .3, 1.1);
}

.common-dialog-message {
    font-size: 15px;
    line-height: 1.7;
    color: var(--c-text);
    white-space: pre-wrap;
    word-break: break-word;
}

.common-dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 22px;
}

.common-dialog-cancel,
.common-dialog-submit {
    padding: 9px 20px;
    border-radius: var(--r-s);
    font-size: 14px;
}

.common-dialog-cancel {
    background: #f1f4f9;
    color: var(--c-text-2);
}

.common-dialog-submit {
    background: var(--c-primary);
    color: #fff;
}

.common-dialog-submit.is-danger {
    background: var(--c-danger);
}

@keyframes overlay-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes dialog-in {
    from { opacity: 0; transform: translateY(10px) scale(.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---------- 加载 ---------- */

.common-loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 2600;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .66);
    backdrop-filter: blur(2px);
}

.common-loading-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 22px;
    border-radius: var(--r-m);
    background: #fff;
    box-shadow: var(--shadow-2);
}

.common-loading-spinner {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #dfe7f5;
    border-top-color: var(--c-primary);
    animation: spin .8s linear infinite;
}

.common-loading-message {
    font-size: 14px;
    color: var(--c-text-2);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ---------- 广告位 ---------- */

.ad-slot {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 90px;
    margin: 20px auto;
    border-radius: var(--r-m);
    background: #fbfcfe;
    border: 1px dashed var(--c-border);
    color: #b3bfcd;
    font-size: 12px;
    overflow: hidden;
}

.ad-slot ins {
    display: block;
    width: 100%;
}

.ad-label {
    display: block;
    margin-bottom: 6px;
    color: #b3bfcd;
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ---------- 页脚 ---------- */

.site-footer {
    margin-top: 48px;
    background: #142b5c;
    color: rgba(255, 255, 255, .68);
    font-size: 13.5px;
}

.footer-main {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: space-between;
    padding: 38px 0 26px;
}

.footer-brand {
    max-width: 340px;
}

.footer-brand .brand-text {
    color: #fff;
}

.footer-brand .brand-text small {
    color: rgba(255, 255, 255, .55);
}

.footer-brand p {
    margin-top: 12px;
    line-height: 1.8;
    color: rgba(255, 255, 255, .6);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 48px;
}

.footer-col h4 {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
}

.footer-col li + li {
    margin-top: 8px;
}

.footer-col a {
    color: rgba(255, 255, 255, .66);
    transition: color .2s;
}

.footer-col a:hover {
    color: #fff;
}

.footer-bottom {
    padding: 16px 0 22px;
    border-top: 1px solid rgba(255, 255, 255, .12);
    color: rgba(255, 255, 255, .45);
    font-size: 12.5px;
    line-height: 1.9;
}

/* ---------- 响应式 ---------- */

@media (max-width: 992px) {
    .brand-desc {
        display: none;
    }

    .nav-toggle {
        display: block;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        padding: 12px 16px 18px;
        background: #fff;
        border-bottom: 1px solid var(--c-border);
        box-shadow: var(--shadow-2);
        display: none;
    }

    .nav-menu.is-open {
        display: flex;
    }

    .nav-menu a {
        padding: 11px 12px;
    }

    .nav-menu a.is-active::after {
        display: none;
    }

    .navbar-inner {
        position: relative;
    }
}

@media (max-width: 640px) {
    body {
        font-size: 14.5px;
    }

    .container {
        padding: 0 16px;
    }

    .topbar-note {
        display: none;
    }

    .topbar-inner {
        justify-content: flex-end;
    }

    .section {
        padding: 28px 0;
    }

    .section-title {
        font-size: 18px;
    }

    .page-hero {
        padding: 22px 0 20px;
    }

    .page-hero h1 {
        font-size: 21px;
    }

    .card-pad {
        padding: 18px;
    }

    .footer-main {
        gap: 28px;
        padding: 28px 0 18px;
    }

    .footer-links {
        gap: 32px;
    }

    .btn-lg {
        padding: 12px 24px;
        font-size: 15px;
    }
}
