/* 雾锁王国专区页样式
   来源：Enshrouded/index.html
   版式：编辑式分栏 —— 左侧固定栏 + 右侧编号条目列表（与站点首页「我们的服务」同源）
   依赖：common.css（CSS 变量）→ zone.css（hero / services 通用）→ 本文件

   ⚠⚠ 重要（2026-10-17 踩坑）：
   本文件在 <head> 里排在 zone.css **之前**，同权重选择器会被 zone.css 覆盖 ——
   尤其 zone.css 的 `.hero-content{display:grid; 1fr 1fr}` 会把 `.services-wrap`
   当成一个网格项，配合 `.services-aside{justify-self:center}` 收缩成内容宽度，
   右侧条目被挤成竖排单字。
   因此本文件所有覆盖一律使用 `section.hero xxx` 提高权重，不要降回单类选择器。

   2026-10-17 布局优化要点：
   1. 条目改为「左对齐 + 紧致」排版：缩小内边距，6 个条目尽量一屏看全
   2. 标题与描述对齐到同一起始线，扫描路径更顺
   3. 左栏补齐信息密度（标签行 + 底部数据），消除大片空白
   4. 左栏改为垂直居中，与右侧列表视觉平衡
   5. 首个条目（精品模组）作为主推，给一点强调
*/

/* ===== 主视觉容器：让内部分栏垂直居中 ===== */
section.hero {
    position: relative;
    overflow: hidden;
}

section.hero .hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

/* 视频压暗遮罩 */
section.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.76) 0%, rgba(0, 0, 0, 0.54) 100%);
    z-index: 0;
    pointer-events: none;
}

/* 底部渐隐 */
section.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(180deg, transparent, var(--bg-0));
    z-index: 0;
    pointer-events: none;
}

section.hero .hero-content {
    display: block;
    flex: 1;
    min-width: 0;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0;
    z-index: 1;
    position: relative;
}

/* 左栏改用垂直居中，与右侧列表取得平衡；避免底部留大片空白 */
section.hero .hero-content .services-wrap {
    display: grid;
    grid-template-columns: minmax(0, 330px) minmax(0, 1fr);
    gap: 64px;
    align-items: center;
    max-width: none;
    width: 100%;
    margin: 0;
}

section.hero .services-aside {
    position: static;
}

section.hero .services-list {
    width: 100%;
    min-width: 0;
}

/* ===== 左栏：标签行 + 底部数据（提升信息密度） ===== */
section.hero .es-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 4px 0 2px;
}

section.hero .es-chip {
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 4px 12px;
    border-radius: 999px;
    color: #7fdbe8;
    background: rgba(0, 229, 255, 0.08);
    border: 1px solid rgba(0, 229, 255, 0.22);
    white-space: nowrap;
}

section.hero .es-chip.hot {
    color: #ffb066;
    background: linear-gradient(135deg, rgba(255, 88, 0, 0.22), rgba(255, 180, 0, 0.14));
    border-color: rgba(255, 138, 61, 0.5);
}

section.hero .es-chip.new {
    color: #86efac;
    background: rgba(74, 222, 128, 0.10);
    border-color: rgba(74, 222, 128, 0.42);
}

section.hero .es-stats {
    display: flex;
    gap: 28px;
    margin-top: 26px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

section.hero .es-stat-num {
    display: block;
    font-size: 1.45rem;
    font-weight: 800;
    line-height: 1.15;
    font-family: var(--ed-serif, 'Segoe UI', sans-serif);
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

section.hero .es-stat-label {
    display: block;
    margin-top: 2px;
    font-size: 0.74rem;
    letter-spacing: 0.06em;
    color: var(--text-faint);
}

/* ===== 条目：紧致排版 + 整行可点击 ===== */
section.hero .service-entry {
    display: grid;
    grid-template-columns: 40px 56px minmax(0, 1fr) 32px;
    gap: 20px;
    align-items: center;
    padding: 20px 14px 20px 8px;
    text-decoration: none;
    color: inherit;
    position: relative;
    border-radius: 12px;
    border-bottom: 1px solid var(--border);
    transition: background 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}

section.hero .service-entry:last-child {
    border-bottom: none;
}

section.hero .service-entry:hover {
    background: rgba(255, 255, 255, 0.038);
    transform: translateX(4px);
    border-bottom-color: transparent;
}

/* 左侧高亮竖条 */
section.hero .service-entry::before {
    content: '';
    position: absolute;
    left: -4px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    border-radius: 3px;
    background: var(--gradient);
    transition: height 0.3s ease;
}

section.hero .service-entry:hover::before {
    height: 52%;
}

/* 序号：缩小、降低存在感，靠近图标 */
section.hero .entry-num {
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--text-faint);
    font-variant-numeric: tabular-nums;
    transition: color 0.3s ease;
}

section.hero .service-entry:hover .entry-num {
    color: var(--accent);
}

/* 图标：缩小到 52px，与条目高度更协调 */
section.hero .entry-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
}

section.hero .entry-icon i {
    font-size: 1.22rem;
}

/* 标题与描述：统一左对齐起始线，缩小行距 */
section.hero .entry-body {
    min-width: 0;
}

section.hero .entry-body h3 {
    font-size: 1.12rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 5px;
    letter-spacing: 0.01em;
}

section.hero .entry-body p {
    font-size: 0.86rem;
    line-height: 1.6;
    color: var(--text-dim);
    margin: 0;
}

/* 右侧箭头 */
section.hero .entry-arrow {
    justify-self: end;
    font-size: 0.95rem;
    color: var(--accent);
    opacity: 0.35;
    transform: translateX(-4px);
    transition: all 0.3s ease;
}

section.hero .service-entry:hover .entry-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* 主推条目（精品模组）加重一点 */
section.hero .service-entry.primary .entry-icon {
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.12), rgba(157, 77, 255, 0.12));
    border-color: var(--border-glow);
}

section.hero .service-entry.primary .entry-icon i {
    color: var(--accent);
}

section.hero .service-entry.primary .entry-num {
    color: var(--accent);
}

/* 触屏无 hover：箭头常显 */
@media (hover: none) {
    section.hero .entry-arrow {
        opacity: 0.6;
        transform: none;
    }
}

/* ===== 响应式 ===== */
@media (max-width: 1080px) {
    section.hero .hero-content .services-wrap {
        grid-template-columns: minmax(0, 1fr);
        gap: 44px;
        align-items: start;
    }

    section.hero .hero-content {
        max-width: 760px;
    }

    /* 单列后左栏文字行宽收敛，避免一行太长影响阅读 */
    section.hero .services-aside {
        max-width: 620px;
    }

    section.hero .services-note {
        max-width: 600px;
    }
}

@media (max-width: 768px) {
    section.hero .service-entry {
        grid-template-columns: 34px 46px minmax(0, 1fr) 26px;
        gap: 14px;
        padding: 18px 8px 18px 4px;
    }

    section.hero .entry-icon {
        width: 44px;
        height: 44px;
        border-radius: 12px;
    }

    section.hero .entry-icon i {
        font-size: 1.05rem;
    }

    section.hero .entry-body h3 {
        font-size: 1.04rem;
    }

    section.hero .entry-body p {
        font-size: 0.83rem;
    }

    section.hero .es-stats {
        gap: 20px;
    }
}

@media (max-width: 560px) {
    section.hero {
        padding: 96px 4% 44px;
        min-height: auto;
    }

    section.hero .hero-content {
        max-width: 100%;
    }

    /* 超窄屏：隐藏箭头，序号+图标并排 */
    section.hero .service-entry {
        grid-template-columns: 30px 40px minmax(0, 1fr);
        gap: 12px;
        padding: 16px 6px;
    }

    section.hero .entry-arrow {
        display: none;
    }

    section.hero .entry-icon {
        width: 38px;
        height: 38px;
    }

    section.hero .es-stat-num {
        font-size: 1.25rem;
    }
}

/* ===== 页脚：压到页面最底 ===== */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body > footer,
body > #site-footer {
    margin-top: auto;
}

/* ===== 滚动条美化 ===== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.5);
}

::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 4px;
}
