/* =========================================================
   首页(portal)专用样式 —— 3秒开场 + 双核门户主页
   仅影响 /index 首页。公共页面样式不受影响。
   命名空间统一前缀: hp-
   图片机制: 后台「区块管理」上传, PC 用 homehero_pc(宽图),
            移动端用 homehero_mobile(竖图), 后期视频预留 homehero_video。
   ========================================================= */
html { scroll-behavior: smooth; }
.home-page {
    --hp-ink: #0f172a;
    --hp-ink-2: #334155;
    --hp-muted: #7c8aa0;
    --hp-line: #eef1f6;
    --hp-brand: #4f46e5;          /* 主品牌色(靛蓝) */
    --hp-brand-2: #7c3aed;
    --hp-free: #0e9f9a;           /* 免费精读 色 */
    --hp-free-2: #06b6d4;
    --hp-paid: #c2820a;           /* 付费深学 金 */
    --hp-paid-2: #eab308;
    --hp-radius: 14px;
    color: var(--hp-ink);
    background: #fff;
    min-height: 60vh;
}
/* 滚动条内页锚点平滑由 JS 处理，这里不全局改 */

/* ---------- 3 秒开场画面 ---------- */
.hp-splash {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(1200px 600px at 85% -10%, rgba(124, 58, 237, .16), transparent 60%),
        radial-gradient(900px 520px at -10% 110%, rgba(14, 165, 233, .14), transparent 55%),
        #ffffff;
    transition: opacity .55s ease, visibility .55s ease;
    cursor: default;
}
.hp-splash.hp-splash-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.hp-splash-inner {
    text-align: center;
    padding: 0 24px;
    max-width: 640px;
}
.hp-splash-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 84px;
    height: 84px;
    border-radius: 24px;
    overflow: hidden;
    background: linear-gradient(135deg, #eef2ff, #ede9fe);
    box-shadow: 0 18px 44px rgba(79, 70, 229, .18);
    animation: hp-zoom .9s cubic-bezier(.22, .9, .3, 1) both;
}
.hp-splash-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.hp-splash-name {
    margin: 26px 0 0;
    font-size: 30px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--hp-ink);
    animation: hp-rise .7s ease .15s both;
}
.hp-splash-slogan {
    margin: 14px 0 0;
    font-size: 15px;
    line-height: 1.9;
    color: var(--hp-muted);
    animation: hp-rise .7s ease .32s both;
}
.hp-splash-skip {
    position: absolute;
    right: 26px;
    bottom: 30px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 13px;
    color: var(--hp-ink-2);
    background: rgba(15, 23, 42, .05);
    border: 1px solid rgba(15, 23, 42, .08);
    cursor: pointer;
    user-select: none;
    transition: all .25s ease;
    animation: hp-rise .5s ease 1s both;
}
.hp-splash-skip:hover {
    background: rgba(15, 23, 42, .1);
    color: var(--hp-brand);
    border-color: rgba(79, 70, 229, .35);
}
.hp-splash-skip i {
    font-style: normal;
    font-size: 16px;
    line-height: 1;
}
.hp-splash-progress {
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 120px;
    height: 3px;
    border-radius: 3px;
    background: rgba(15, 23, 42, .08);
    overflow: hidden;
}
.hp-splash-progress i {
    display: block;
    height: 100%;
    width: 0;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--hp-brand), var(--hp-brand-2));
    transition: width 3s linear;
}
.hp-splash.hp-splash-run .hp-splash-progress i {
    width: 100%;
}
@keyframes hp-zoom {
    from { transform: scale(.6); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}
@keyframes hp-rise {
    from { transform: translateY(16px); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}

/* ---------- 首屏 Hero(图上叠品牌+双核入口) ---------- */
.hp-hero {
    position: relative;
    overflow: hidden;
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, #ffffff 0%, #f8faff 55%, #eef1fb 100%);
}
/* 首屏图: 后台区块上传, PC宽图/移动竖图, 二者都缺席时回退为上方渐变 */
.hp-hero-media,
.hp-hero-media::after {
    position: absolute;
    inset: 0;
}
.hp-hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.hp-hero-media::after {
    content: "";
    z-index: 1;
    /* 浅色主题: 图片上用轻白纱幕保证深色文字可读, 不再压黑 */
    background: radial-gradient(120% 90% at 50% 42%, rgba(255, 255, 255, .78) 0%, rgba(255, 255, 255, .55) 55%, rgba(255, 255, 255, .62) 100%);
}
.hp-hero-img-mb {
    display: none;
}
.hp-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 90px 24px 80px;
    text-align: center;
    color: var(--hp-ink);
}
.hp-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 auto 22px;
    padding: 7px 16px;
    border-radius: 999px;
    font-size: 13px;
    letter-spacing: 3px;
    color: var(--hp-brand);
    background: rgba(255, 255, 255, .72);
    border: 1px solid rgba(79, 70, 229, .18);
    backdrop-filter: blur(6px);
}
.hp-hero-eyebrow b {
    font-weight: 700;
}
.hp-hero-title {
    margin: 0 0 18px;
    font-size: clamp(34px, 5.4vw, 62px);
    font-weight: 500;
    letter-spacing: .01em;
    line-height: 1.35;
    color: #152443;
}
/* 品牌字: 参考 DeepSeek 首页主标语(色 #152443 / 无衬线 / 字重轻 / 无阴影) */
.hp-brand-cn {
    color: #152443;
    letter-spacing: .12em;
}
.hp-brand-en {
    color: #152443;
    font-family: "Host Grotesk", "Microsoft YaHei", "微软雅黑", system-ui, sans-serif;
    font-style: italic;
    font-weight: 500;
    letter-spacing: .02em;
    margin-left: .16em;
}
.hp-splash-name {
    color: #152443;
    font-weight: 500;
}
.hp-splash-brand .hp-brand-en {
    margin-left: .14em;
}
.hp-hero-sub {
    max-width: 640px;
    margin: 0 auto 40px;
    font-size: clamp(14px, 1.6vw, 17px);
    line-height: 1.9;
    color: var(--hp-ink-2);
}
.hp-hero-actions {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}
.hp-ent {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
    min-width: 252px;
    padding: 18px 26px;
    border-radius: var(--hp-radius);
    color: #fff;
    text-decoration: none;
    border: none;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .10);
    transition: transform .25s ease, box-shadow .25s ease;
}
.hp-ent:hover {
    transform: translateY(-4px);
    text-decoration: none;
    color: #fff;
}
.hp-ent-strong {
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}
.hp-ent-strong .hp-ent-arr {
    transition: transform .25s ease;
}
.hp-ent:hover .hp-ent-strong .hp-ent-arr {
    transform: translateX(4px);
}
.hp-ent-desc {
    font-size: 13px;
    color: rgba(255, 255, 255, .88);
}
.hp-ent-free {
    background: linear-gradient(135deg, #06b6d4 0%, #0e9f8f 100%);
}
.hp-ent-free:hover {
    box-shadow: 0 18px 34px rgba(14, 165, 233, .30);
}
.hp-ent-paid {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}
.hp-ent-paid:hover {
    box-shadow: 0 18px 34px rgba(245, 158, 11, .34);
}

/* ---------- 双核板块通用 ---------- */
.hp-zone {
    padding: 78px 0 20px;
}
.hp-zone-head {
    max-width: 940px;
    margin: 0 auto 34px;
    text-align: center;
}
.hp-zone-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12px;
    letter-spacing: 2px;
    font-weight: 700;
}
.hp-zone-head h2 {
    margin: 18px 0 10px;
    font-size: clamp(26px, 3.4vw, 38px);
    font-weight: 800;
}
.hp-zone-head p {
    margin: 0 auto;
    font-size: 15px;
    line-height: 1.9;
    color: var(--hp-muted);
}
.hp-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
.hp-card {
    display: block;
    padding: 20px 22px 18px;
    border-radius: var(--hp-radius);
    background: #fff;
    border: 1px solid var(--hp-line);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.hp-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 34px rgba(15, 23, 42, .08);
    text-decoration: none;
}
.hp-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}
.hp-card-tag {
    font-size: 12px;
    color: var(--hp-brand);
    background: #eef2ff;
    border-radius: 6px;
    padding: 3px 9px;
    white-space: nowrap;
}
.hp-card-time {
    font-size: 12px;
    color: var(--hp-muted);
    white-space: nowrap;
}
.hp-card-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.65;
    color: var(--hp-ink);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.hp-card:hover .hp-card-title {
    color: var(--hp-brand);
}
.hp-card-flag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    font-size: 12px;
    color: #b45309;
    background: #fef3c7;
    border: 1px solid #fde68a;
    padding: 3px 10px;
    border-radius: 999px;
}
.hp-list-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 0;
    color: var(--hp-muted);
}

/* ---------- 免费精读 区 ---------- */
.hp-free {
    background: #ffffff;
}
.hp-free .hp-zone-chip {
    color: #0f766e;
    background: #ccfbf1;
}
.hp-free .hp-zone-chip::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--hp-free);
}
.hp-free .hp-card {
    border-left: 3px solid rgba(14, 116, 144, .35);
}

/* ---------- 付费深学 区 ---------- */
.hp-paid {
    background: linear-gradient(180deg, #fffdf6 0%, #fffbee 70%, #fff8e7 100%);
    padding-bottom: 84px;
}
.hp-paid .hp-zone-chip {
    color: #92400e;
    background: #fef3c7;
}
.hp-paid .hp-zone-chip::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--hp-paid-2);
}
.hp-paid .hp-card {
    background: rgba(255, 255, 255, .92);
    border-left: 3px solid rgba(217, 119, 6, .5);
}
.hp-paid .hp-card-tag {
    color: #b45309;
    background: #fffbeb;
}

/* 订阅 CTA */
.hp-cta {
    position: relative;
    overflow: hidden;
    max-width: 940px;
    margin: 44px auto 0;
    border-radius: 20px;
    padding: 30px 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    color: #fff;
    background: linear-gradient(120deg, #b45309, #d97706 55%, #f59e0b);
    box-shadow: 0 22px 48px rgba(180, 83, 9, .22);
}
.hp-cta::after {
    content: "";
    position: absolute;
    right: -60px;
    top: -60px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
}
.hp-cta-info {
    position: relative;
    z-index: 1;
}
.hp-cta-info strong {
    display: block;
    font-size: 21px;
    margin-bottom: 6px;
    font-weight: 800;
}
.hp-cta-info span {
    font-size: 14px;
    color: rgba(255, 255, 255, .9);
}
.hp-cta-btn {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    padding: 12px 26px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 700;
    color: #b45309;
    background: #fff;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease;
}
.hp-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .18);
    color: #92400e;
    text-decoration: none;
}

/* ---------- 入场动效(开场结束触发) ---------- */
.home-enter .hp-hero-content > *,
.home-enter .hp-zone {
    animation: hp-rise .6s ease both;
}
.home-enter .hp-hero-content > *:nth-child(1) { animation-delay: .02s; }
.home-enter .hp-hero-content > *:nth-child(2) { animation-delay: .10s; }
.home-enter .hp-hero-content > *:nth-child(3) { animation-delay: .18s; }
.home-enter .hp-zone-free { animation-delay: .10s; }
.home-enter .hp-zone-paid { animation-delay: .16s; }

/* ---------- 响应式 ---------- */
@media (max-width: 991px) {
    .hp-hero { min-height: 500px; }
    .hp-zone { padding: 60px 0 12px; }
    .hp-grid { grid-template-columns: 1fr; }
    .hp-cta { flex-direction: column; text-align: center; padding: 26px 22px; }
}
@media (max-width: 767px) {
    .hp-hero { min-height: 92vh; }
    .hp-hero-img-pc { display: none !important; }
    .hp-hero-img-mb { display: block; }
    .hp-hero-content { padding: 110px 20px 70px; }
    .hp-hero-actions { flex-direction: column; align-items: center; }
    .hp-ent { min-width: 0; width: 100%; max-width: 360px; align-items: center; text-align: center; }
    .hp-splash-skip { right: 16px; bottom: 22px; }
    .hp-zone-head h2 { font-size: 26px; }
    .hp-card { padding: 16px 16px 14px; }
}
