/* ============================================================
 *  逆影诏劫官网首页样式（配合 style.css 深色主题）
 * ============================================================ */

.home-page {
    background:
        radial-gradient(1200px 500px at 50% -100px, rgba(120, 70, 200, 0.18), transparent),
        linear-gradient(180deg, #14101f 0%, #1a1a2e 40%, #16213e 100%);
}

/* ===== 顶部导航 ===== */
.home-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 28px;
    background: rgba(18, 14, 30, 0.85);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
/* 原首页独立导航（品牌字 + home-nav-links）已移除，改用全站统一顶栏 nav.site-nav */

/* ===== 首屏 Hero ===== */
.hero { padding: 60px 24px 80px; }
.hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 32px;
    align-items: stretch;
}
.hero-center {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 420px;
}
.hero-logo {
    max-width: min(460px, 80vw);
    height: auto;
    filter: drop-shadow(0 8px 32px rgba(180, 143, 255, 0.35));
}
.hero-logo-fallback {
    display: none;
    font-size: 56px;
    font-weight: 900;
    letter-spacing: 8px;
    background: linear-gradient(135deg, #e0d2ff 0%, #b48fff 55%, #7b4fd0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-tag {
    margin-top: 18px;
    color: #9a90b0;
    letter-spacing: 6px;
    font-size: 14px;
}
.hero-sub {
    margin-top: 10px;
    color: #e8e0f5;
    font-size: 16px;
}
.hero-btns {
    margin-top: 34px;
    display: grid;
    grid-template-columns: repeat(2, 220px);
    gap: 14px;
    justify-content: center;
}

/* 按钮 */
.btn {
    display: inline-block;
    padding: 12px 32px;
    text-align: center;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.15s, box-shadow 0.15s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
    color: #fff;
    background: linear-gradient(90deg, #e94560, #f39c12);
    box-shadow: 0 8px 24px rgba(233, 69, 96, 0.35);
}
.btn-ghost {
    color: #f39c12;
    border: 1px solid rgba(243, 156, 18, 0.6);
    background: rgba(243, 156, 18, 0.08);
}
.btn-ghost:hover { background: rgba(243, 156, 18, 0.16); }

/* ===== 通用板块 ===== */
.home-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 56px 24px;
}
.home-title {
    text-align: center;
    font-size: 30px;
    letter-spacing: 4px;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #e0d2ff 0%, #b48fff 55%, #7b4fd0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.home-subtitle {
    text-align: center;
    color: #9a90b0;
    font-size: 14px;
    margin-bottom: 36px;
}

/* 特色区 */
/* 服务器特色：图片轮播（收窄居中，16:9 固定比例，4 秒自动切换） */
.feature-carousel {
    position: relative;
    width: 100%;
    max-width: 860px;
    margin: 0 auto 26px;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
    background: rgba(20, 16, 34, 0.6);
}
.fc-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.fc-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.fc-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(18, 14, 32, 0.55);
    color: #e6ddff;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s, background 0.2s;
}
.feature-carousel:hover .fc-arrow { opacity: 1; }
.fc-arrow:hover { background: rgba(123, 79, 208, 0.75); }
.fc-prev { left: 12px; }
.fc-next { right: 12px; }
.fc-dots {
    position: absolute;
    left: 50%;
    bottom: 12px;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}
.fc-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: background 0.2s, width 0.2s;
}
.fc-dot.active { background: #b48fff; width: 20px; border-radius: 4px; }
/* 触屏没有悬停，箭头常显 */
@media (max-width: 768px) {
    .fc-arrow { opacity: 1; width: 32px; height: 32px; font-size: 17px; }
}
.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}
.feature-card {
    background: rgba(28, 22, 48, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    overflow: hidden;
    transition: transform 0.2s, border-color 0.2s;
}
.feature-card:hover { transform: translateY(-4px); border-color: rgba(243, 156, 18, 0.5); }
.feature-body { padding: 16px; }
.feature-body h3 { font-size: 17px; color: #fff; margin-bottom: 8px; }
.feature-body p { font-size: 13px; color: #cfc6e4; line-height: 1.7; }

/* 职业图鉴 */
.branch-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}
.branch-loading {
    grid-column: 1 / -1;
    text-align: center;
    color: #9a90b0;
    padding: 30px;
}
.hb-card {
    display: flex;
    flex-direction: column;
    background: rgba(28, 22, 48, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 3px solid var(--hb-accent);
    border-radius: 14px;
    padding: 18px;
    transition: transform 0.2s, box-shadow 0.2s;
}
.hb-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}
.hb-head { display: flex; align-items: baseline; justify-content: space-between; }
.hb-name { font-size: 22px; font-weight: 800; color: var(--hb-accent); letter-spacing: 3px; }
.hb-count { font-size: 12px; color: #9a90b0; }
.hb-desc { font-size: 13px; color: #cfc6e4; margin: 8px 0 14px; line-height: 1.6; }

/* 职业列表：固定高度、每行2个、可拖动滚动 */
.hb-chips {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    align-content: start;
    height: 118px;
    overflow-y: auto;
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.22);
    cursor: grab;
    user-select: none;
    scrollbar-width: thin;
    scrollbar-color: var(--hb-accent) transparent;
}
.hb-chips.dragging { cursor: grabbing; }
.hb-chips::-webkit-scrollbar { width: 6px; }
.hb-chips::-webkit-scrollbar-thumb { background: var(--hb-accent); border-radius: 3px; }
.hb-chips::-webkit-scrollbar-track { background: transparent; }
.hb-chip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 999px;
    padding: 5px 8px;
    font-size: 12px;
    color: #e8e0f5;
    white-space: nowrap;
    overflow: hidden;
}
.hb-chip img { width: 22px; height: 22px; image-rendering: pixelated; flex: none; }

/* 底部统一位置的查看详情 */
.hb-foot {
    margin-top: auto;
    padding-top: 14px;
    display: flex;
    justify-content: flex-end;
}
.hb-more {
    font-size: 12px;
    color: var(--hb-accent);
    text-decoration: none;
    border: 1px solid var(--hb-accent);
    border-radius: 999px;
    padding: 5px 16px;
    transition: background 0.2s;
}
.hb-more:hover { background: rgba(255, 255, 255, 0.08); }

/* 页脚 */
.home-footer {
    margin-top: 30px;
    padding: 26px 20px;
    text-align: center;
    font-size: 12px;
    color: #6f6788;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(14, 11, 24, 0.6);
}

/* ===== 响应式 ===== */
@media (max-width: 1100px) {
    .feature-grid, .branch-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
    .hero-center { min-height: 320px; }
    .hero-btns { gap: 12px; }
}
@media (max-width: 560px) {
    .feature-grid, .branch-grid { grid-template-columns: 1fr; }
    .home-nav { flex-direction: column; gap: 10px; }
    .btn { padding: 11px 26px; font-size: 15px; }
    .hero-btns { grid-template-columns: 220px; }
}
