/* 2eju.com 首页样式 | 2026-10-24 */

.hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(130deg, #1b3f8f 0%, #2b6ef1 52%, #4f8bff 100%);
    color: #fff;
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    pointer-events: none;
}

.hero::before {
    width: 420px;
    height: 420px;
    right: -120px;
    top: -160px;
}

.hero::after {
    width: 260px;
    height: 260px;
    left: -90px;
    bottom: -150px;
    background: rgba(255, 107, 61, .18);
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
    gap: 44px;
    align-items: center;
    padding: 42px 0 48px;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px;
    border-radius: var(--r-pill);
    background: rgba(255, 255, 255, .15);
    border: 1px solid rgba(255, 255, 255, .25);
    font-size: 12.5px;
    letter-spacing: .4px;
}

.hero h1 {
    margin-top: 14px;
    font-size: 34px;
    line-height: 1.25;
    letter-spacing: -.6px;
    font-weight: 700;
}

.hero h1 span {
    color: #ffd27a;
}

.hero-desc {
    margin-top: 10px;
    max-width: 480px;
    color: rgba(255, 255, 255, .82);
    font-size: 14.5px;
    line-height: 1.6;
}

/* Hero 快速搜索框与热词 */
.hero-search-box {
    display: flex;
    align-items: center;
    max-width: 500px;
    margin-top: 18px;
    background: #ffffff;
    border-radius: 10px;
    padding: 4px 5px 4px 14px;
    box-shadow: 0 10px 32px rgba(10, 28, 70, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.95);
    transition: box-shadow .2s ease, border-color .2s ease;
}

.hero-search-box:focus-within {
    box-shadow: 0 12px 38px rgba(10, 28, 70, 0.38);
    border-color: #ffd27a;
}

.hero-search-icon {
    width: 18px;
    height: 18px;
    color: #94a3b8;
    flex-shrink: 0;
    margin-right: 10px;
}

.hero-search-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 14.5px;
    color: #1e293b;
    padding: 7px 0;
    min-width: 0;
}

.hero-search-input::placeholder {
    color: #94a3b8;
    font-size: 13.5px;
}

.hero-search-btn {
    flex-shrink: 0;
    border: none;
    outline: none;
    cursor: pointer;
    background: linear-gradient(135deg, #2b6ef1 0%, #1e54c7 100%);
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 7px;
    letter-spacing: .3px;
    transition: all .15s ease;
}

.hero-search-btn:hover {
    background: linear-gradient(135deg, #3d7bf5 0%, #235ad4 100%);
    box-shadow: 0 4px 12px rgba(43, 110, 241, 0.4);
}

.hero-hot-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    font-size: 12.5px;
}

.hero-hot-tags .hot-label {
    color: rgba(255, 255, 255, 0.76);
}

.hero-hot-tags a {
    color: rgba(255, 255, 255, 0.92);
    background: rgba(255, 255, 255, 0.14);
    padding: 2px 10px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all .15s ease;
}

.hero-hot-tags a:hover {
    background: rgba(255, 255, 255, 0.28);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.5);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.hero-actions .btn-secondary {
    background: #fff;
    border-color: #fff;
    color: var(--c-primary-dark);
}

.hero-actions .btn-ghost {
    background: transparent;
}

.hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    margin-top: 30px;
    color: rgba(255, 255, 255, .72);
    font-size: 13.5px;
}

.hero-points li {
    display: flex;
    align-items: center;
    gap: 7px;
}

.hero-points li::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ffd27a;
}

.hero-card {
    position: relative;
    padding: 22px 22px 20px;
    border-radius: var(--r-l);
    background: rgba(255, 255, 255, .97);
    color: var(--c-text);
    box-shadow: 0 18px 44px rgba(9, 26, 61, .28);
}

.hero-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: var(--c-text-3);
}

.hero-card-head strong {
    color: var(--c-primary-dark);
    font-size: 13.5px;
    font-weight: 600;
}

.hero-card-title {
    margin-top: 12px;
    font-size: 16.5px;
    font-weight: 600;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 48px;
}

.hero-card-title a:hover {
    color: var(--c-primary-dark);
}

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

.hero-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px dashed var(--c-border);
    font-size: 13px;
    color: var(--c-text-3);
}

.hero-card-foot .btn {
    flex-shrink: 0;
}

/* 平台实力与规模统计条 */
.stats-band,
.stats-band-section {
    position: relative;
    z-index: 1;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.stat-item:hover {
    transform: translateY(-2px);
    background: #ffffff;
    border-color: #cbd5e1;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.stat-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon-wrap.is-blue {
    background: #eff6ff;
    color: #2563eb;
}

.stat-icon-wrap.is-purple {
    background: #f5f3ff;
    color: #7c3aed;
}

.stat-icon-wrap.is-green {
    background: #ecfdf5;
    color: #059669;
}

.stat-icon-wrap.is-orange {
    background: #fff7ed;
    color: #ea580c;
}

.stat-content {
    min-width: 0;
    flex: 1;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -.4px;
    color: #0f172a;
    line-height: 1.15;
    font-feature-settings: "tnum";
}

.stat-value small {
    margin-left: 3px;
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
}

.stat-label {
    margin-top: 3px;
    font-size: 12.5px;
    color: #64748b;
}

.stat-label .stat-note {
    font-size: 11.5px;
    color: #94a3b8;
}

/* 功能入口 */

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.feature-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 26px 24px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: #cbd5e1;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.feature-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.feature-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--c-primary-light);
    color: var(--c-primary-dark);
    font-size: 21px;
    font-weight: 700;
    transition: transform .2s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.08);
}

.feature-icon.is-blue {
    background: #eef5ff;
    color: #2b6ef1;
}

.feature-icon.is-orange {
    background: #fff4ed;
    color: #ea580c;
}

.feature-icon.is-green {
    background: #f0fdf4;
    color: #059669;
}

.feature-badge {
    font-size: 11.5px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 6px;
    line-height: 1.3;
}

.feature-badge.is-blue {
    background: #eef4ff;
    color: #1e54c7;
    border: 1px solid #d4e5ff;
}

.feature-badge.is-orange {
    background: #fff5ed;
    color: #c2410c;
    border: 1px solid #fed7aa;
}

.feature-badge.is-green {
    background: #f0fdf4;
    color: #047857;
    border: 1px solid #bbf7d0;
}

.feature-card.is-accent .feature-icon {
    background: var(--c-accent-light);
    color: var(--c-accent-dark);
}

.feature-card.is-muted .feature-icon {
    background: #f1f4f9;
    color: var(--c-text-3);
}

.feature-card h2,
.feature-card h3 {
    margin-top: 16px;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.feature-card p {
    margin-top: 8px;
    color: var(--c-text-2);
    font-size: 14px;
    line-height: 1.7;
    flex: 1;
}

.feature-link {
    margin-top: 16px;
    font-size: 14px;
    color: var(--c-primary-dark);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: gap .2s ease;
}

.feature-card:hover .feature-link {
    gap: 7px;
}

.feature-link.is-disabled {
    color: var(--c-text-3);
    font-weight: 400;
}

/* 公告列表 */

.home-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
    align-items: start;
}

.notice-list li + li {
    border-top: 1px solid #eef1f6;
}

.notice-item {
    display: block;
    padding: 16px 10px;
    transition: all .18s ease;
    border-radius: var(--r-s);
    border-left: 3px solid transparent;
}

.notice-item:hover {
    background: #fafcff;
    border-left-color: var(--c-primary);
    padding-left: 14px;
}

.notice-item-more {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    margin-top: 2px;
}

.notice-item-more:hover {
    background: #eff6ff;
    border-color: #93c5fd;
}

.notice-item-more .notice-item-title {
    color: var(--c-primary-dark);
    font-weight: 600;
}

.notice-item-title {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.6;
    color: var(--c-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color .2s;
}

.notice-item:hover .notice-item-title {
    color: var(--c-primary-dark);
}

.notice-item-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
    margin-top: 9px;
    font-size: 12.5px;
    color: var(--c-text-3);
}

.notice-item-meta .dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #cbd5e1;
}

.notice-item-meta .tag-apply {
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

.notice-item-meta .tag-apply.is-open {
    background: #fff3e8;
    color: #b4470f;
}

.notice-item-meta .tag-apply.is-upcoming {
    background: #eaf1ff;
    color: #1d4ed8;
}

/* 公告头部快捷筛选 Tab */
.notice-head-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.notice-quick-tabs {
    display: inline-flex;
    align-items: center;
    background: #f1f5f9;
    padding: 3px;
    border-radius: 8px;
    gap: 2px;
}

.notice-tab {
    border: none;
    outline: none;
    background: transparent;
    font-size: 12.5px;
    font-weight: 500;
    color: #64748b;
    padding: 4px 11px;
    border-radius: 6px;
    cursor: pointer;
    transition: all .15s ease;
}

.notice-tab:hover {
    color: #1e293b;
}

.notice-tab.is-active {
    background: #ffffff;
    color: var(--c-primary-dark);
    font-weight: 600;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.notice-item-meta .tag-apply.is-urgent {
    background: #fee2e2;
    color: #dc2626;
    border: 1px solid #fecaca;
    font-weight: 600;
}

/* 侧栏今日面试练题微卡 */
.side-daily-question {
    background: linear-gradient(175deg, #f0fdf4 0%, #ffffff 55%);
    border: 1px solid #cbf0db;
}

.side-daily-question .tag-accent {
    background: #e8f8ef;
    color: #047857;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 4px;
}

.side-question-body {
    margin-top: 4px;
}

.side-question-text {
    font-size: 13.5px;
    line-height: 1.65;
    color: #334155;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.side-question-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px dashed #dcfce7;
    font-size: 12px;
    color: #64748b;
}

.side-question-meta .btn {
    padding: 4px 10px;
    font-size: 12px;
    border-radius: 5px;
    line-height: 1.2;
}

/* 侧栏收藏提示卡 */
.side-tip-card {
    background: #fffdf5;
    border: 1px solid #fef08a;
    padding: 14px 16px;
    border-radius: var(--r-m);
}

.side-tip-inner {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.side-tip-icon {
    font-size: 18px;
    line-height: 1.2;
}

.side-tip-inner strong {
    display: block;
    font-size: 13px;
    color: #854d0e;
    margin-bottom: 2px;
}

.side-tip-inner p {
    font-size: 12px;
    color: #a16207;
    line-height: 1.55;
    margin: 0;
}

.side-tip-inner code {
    background: #fef9c3;
    padding: 1px 4px;
    border-radius: 3px;
    font-family: inherit;
    font-weight: 600;
}

.notice-heat {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

/* 侧栏 */

.side-card + .side-card {
    margin-top: 18px;
}

.side-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 14px;
}

.chip-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip-cloud .chip {
    padding: 5px 12px;
    font-size: 13px;
    background: #f7f9fc;
}

.quick-list li + li {
    border-top: 1px dashed #eef1f6;
}

.quick-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    font-size: 14px;
    color: var(--c-text-2);
    transition: color .2s;
}

.quick-list a:hover {
    color: var(--c-primary-dark);
}

.quick-list span {
    color: var(--c-text-3);
    font-size: 12.5px;
}

.notice-empty {
    padding: 26px 0;
    text-align: center;
    color: var(--c-text-3);
    font-size: 14px;
}

/* 说明条 */

.disclaimer-bar {
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 14px 20px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #475569;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.02);
}

.disclaimer-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 6px;
    background: #eef2f6;
    color: #334155;
    font-size: 12.5px;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

.disclaimer-badge svg {
    color: #64748b;
}

.disclaimer-text {
    margin: 0;
    font-size: 12.5px;
    color: #64748b;
    line-height: 1.65;
    flex: 1;
}

@media (max-width: 992px) {
    .hero-inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 30px;
        padding: 40px 0 46px;
    }

    .hero h1 {
        font-size: 31px;
    }

    .home-main {
        grid-template-columns: minmax(0, 1fr);
    }

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

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

@media (max-width: 640px) {
    /* hero-inner 自身就是 container，简写 padding 会把 .container 的左右留白覆盖为 0 */
    .hero-inner {
        gap: 24px;
        padding: 26px 16px 30px;
    }

    .hero-eyebrow {
        padding: 4px 12px;
        font-size: 12px;
    }

    .hero h1 {
        margin-top: 14px;
        font-size: 26px;
    }

    .hero-desc {
        margin-top: 12px;
        font-size: 14.5px;
        line-height: 1.75;
    }

    .hero-actions {
        flex-direction: column;
        gap: 10px;
        margin-top: 22px;
    }

    .hero-actions .btn {
        flex: none;
        width: 100%;
        padding: 11px 16px;
        font-size: 14.5px;
    }

    .hero-points {
        gap: 12px 18px;
        margin-top: 22px;
        font-size: 12.5px;
    }

    .hero-card {
        padding: 16px;
        border-radius: var(--r-m);
    }

    .hero-card-title {
        font-size: 16px;
        line-height: 1.5;
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .disclaimer-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 14px 16px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .stat-item {
        padding: 13px 12px;
        gap: 10px;
    }

    .stat-icon-wrap {
        width: 36px;
        height: 36px;
    }

    .stat-icon-wrap svg {
        width: 18px;
        height: 18px;
    }

    .stat-value {
        font-size: 20px;
    }

    .stat-label {
        font-size: 12px;
        line-height: 1.35;
    }

    /* 窄屏只允许在「已发布公告」与括号注释之间换行，避免把「类）」挤到下一行 */
    .stat-note {
        white-space: nowrap;
    }

    .feature-card {
        padding: 20px;
    }

    .notice-item {
        padding: 15px 0;
    }

    /* 手机端公告元信息压到一行，避免「新发布」被挤到第二行留下孤立的分隔点 */
    .notice-item-meta {
        gap: 6px 8px;
        font-size: 12px;
    }

    .notice-heat {
        gap: 8px;
    }

    .notice-item-title {
        font-size: 15px;
        line-height: 1.5;
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* 手机端：前 5 条公告 + 末行「更多」仍可见（第 6 行起隐藏会误伤更多，故单独保末行） */
    #home-notice-list li:nth-child(n + 6):not(.notice-more-row) {
        display: none;
    }

    .hero-search-box {
        margin-top: 16px;
    }

    .hero-search-input {
        font-size: 13.5px;
    }

    .hero-search-btn {
        padding: 7px 14px;
        font-size: 13px;
    }

    .notice-head-wrap {
        align-items: flex-start;
    }

    .notice-quick-tabs {
        width: 100%;
        justify-content: space-around;
        margin-top: 6px;
    }
}
