/* ============================================================
   雷电模拟器官网首页主题  style.css  v2.0
   基于 ldmnq.com 原站 1:1 视觉还原
   配色：品牌蓝 #2870ff / #4180ff，黄强调 #FFDB18，
   浅灰内容底 #F5F6FA，白卡，深色 Hero / 功能演示。
   ============================================================ */
/*
Theme Name: 雷电模拟器官网首页 (LDPlayer Home)
Theme URI: https://www.ldmnq.com
Description: 轻量化 WordPress 软件官网首页主题，1:1 还原雷电模拟器官网首页布局，仅含首页。支持 WP 自定义器全可视化编辑、吸顶导航、FAQ 折叠、移动端汉堡菜单、图片懒加载、语义化 SEO。
Version: 2.48.0
Author: WorkBuddy
License: MIT
Text Domain: ldmnq
*/

/* ── 设计令牌 ── */
:root {
    --ld-blue: #2870ff;
    --ld-blue-2: #4180ff;
    --ld-blue-dark: #1a56d8;
    --ld-yellow: #FFDB18;
    --ld-yellow-d: #ffd600;
    --ld-yellow-hover: #e6c000;
    --ld-yellow-light: #fff4cc;
    --ld-sky: #18C2F0;
    --ld-bg: #F5F6FA;
    --ld-white: #ffffff;
    --ld-line: #ECEEF3;
    --ld-text-1: #1a1a2e;
    --ld-text-2: #555770;
    --ld-text-3: #8E8EA0;
    --ld-text-4: #B3B3BC;
    --ld-radius-sm: 8px;
    --ld-radius: 12px;
    --ld-radius-lg: 20px;
    --ld-radius-xl: 24px;
    --ld-header-h: 64px;
    --ld-maxw: 1368px;
    --ld-gap: 24px;
    --ld-shadow-sm: 0 2px 12px rgba(15, 23, 42, 0.04);
    --ld-shadow: 0 6px 24px rgba(15, 23, 42, 0.06);
    --ld-shadow-lg: 0 16px 48px rgba(15, 23, 42, 0.10);
    --ld-shadow-yellow: 0 10px 36px rgba(255, 214, 0, 0.35);
    --ld-shadow-blue: 0 6px 20px rgba(40, 112, 255, 0.30);
    --ld-font: "MiSans VF", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", Helvetica, Arial, sans-serif;
    --ld-font-demo: "MiSans VF", "PingFang SC", "Microsoft YaHei", sans-serif;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--ld-font);
    font-weight: 400;
    color: var(--ld-text-1);
    background: var(--ld-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; transition: color 0.2s ease; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
h1, h2, h3, h4, p { margin: 0; }
::selection { background: rgba(40, 112, 255, 0.2); color: var(--ld-text-1); }

/* ── Layout ── */
.ld-container { width: 100%; max-width: var(--ld-maxw); margin: 0 auto; padding: 0 32px; }
.ld-container--narrow { max-width: 920px; }
.ld-skip-link {
    position: absolute; left: -9999px; top: 0;
    background: var(--ld-blue); color: #fff;
    padding: 10px 20px; z-index: 9999;
    border-radius: 0 0 10px 0; font-size: 14px; font-weight: 500;
}
.ld-skip-link:focus { left: 0; }

/* ══════════════════════════════════════
   按钮
   ══════════════════════════════════════ */

/* ── 导航栏下载按钮（纯CSS渐变按钮，无图片依赖）── */
.ld-dl-nav-btn {
    display: inline-flex; align-items: center; justify-content: center;
    height: 34px; min-width: 110px;
    border-radius: 999px;
    background: linear-gradient(135deg, #FFDB18 0%, #FFC107 50%, #FFB300 100%);
    box-shadow: 0 2px 10px rgba(255, 180, 0, 0.35), inset 0 1px 0 rgba(255,255,255,0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
    cursor: pointer; text-decoration: none !important;
}
.ld-dl-nav-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(255, 180, 0, 0.45), inset 0 1px 0 rgba(255,255,255,0.4);
    filter: brightness(1.05);
}
.ld-dl-nav-btn__text {
    font-size: 13px; font-weight: 600;
    color: transparent;
    letter-spacing: 1px;
    white-space: nowrap; padding: 0 18px;
    background: linear-gradient(180deg, #6b4500 0%, #4a3000 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* CSS 按钮（次要位置） */
.ld-btn {
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 15px; font-weight: 500;
    border-radius: 999px; padding: 10px 24px;
    transition: all 0.22s ease; white-space: nowrap;
    border: none; cursor: pointer;
}
.ld-btn--primary {
    background: var(--ld-blue); color: #fff;
    box-shadow: var(--ld-shadow-blue);
}
.ld-btn--primary:hover {
    background: var(--ld-blue-dark);
    transform: translateY(-1px);
    box-shadow: 0 8px 26px rgba(40, 112, 255, 0.40);
}

/* Hero 下载按钮（使用原站同款图片） */

/* 纯CSS备用下载按钮（当图片不可用时） */
.ld-btn--download {
    background: linear-gradient(135deg, #ffd600 0%, #ffb300 50%, #ffa000 100%);
    color: #5a3e00; font-weight: 700;
    font-size: 19px; padding: 16px 48px;
    box-shadow: var(--ld-shadow-yellow),
                inset 0 1px 0 rgba(255,255,255,0.3);
    border-radius: 14px; letter-spacing: 2px;
    border: none; cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 0 1px 0 rgba(255,255,255,0.25);
}
.ld-btn--download:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 16px 44px rgba(255, 184, 0, 0.45),
                inset 0 1px 0 rgba(255,255,255,0.35);
    background: linear-gradient(135deg, #ffe033 0%, #ffc500 50%, #ffb000 100%);
}
.ld-btn--block { display: flex !important; width: 100%; margin-top: 18px; }

/* ══════════════════════════════════════
   Header / 吸顶导航
   ══════════════════════════════════════ */
.ld-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    height: var(--ld-header-h);
    background: transparent;
    transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}
.ld-header.is-scrolled {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}
.ld-header__inner {
    max-width: var(--ld-maxw); margin: 0 auto; height: 100%;
    padding: 0 32px; display: flex; align-items: center; gap: 28px;
}

/* ── Logo（黄色粗闪电⚡ + 白色"雷电模拟器"文字，与原站一致）── */
.ld-logo { display: flex; align-items: center; gap: 8px; flex-shrink: 0; position: relative; }
.ld-logo__svg { height: 32px; width: auto; display: block; }
.ld-logo__img { height: 32px; width: auto; display: block; object-fit: contain; }
.ld-logo img { height: 32px; width: auto; display: block; object-fit: contain; }

/* ═══ 导航文字颜色（默认深色——保底：JS失效时也能看清） ═══ */
/* 默认状态（未滚动 / JS 失效时）：深色文字 */
.ld-nav__list a { color: #1a1a2e !important; }
.ld-nav__list a:hover { color: #2870ff !important; }
.ld-nav__list > li.is-active > a { color: #1a1a2e !important; font-weight: 600; }
.ld-login { color: #555770 !important; }
.ld-login:hover { color: #2870ff !important; }
.ld-search-btn { color: #555770 !important; }
.ld-search-btn:hover { color: #2870ff !important; background: rgba(40,112,255,0.08); }
.ld-nav__arrow { border-top-color: #555770 !important; }
/* Hero 区域覆盖（仅当 JS 正常工作 + 未滚动时，才显示白色） */
.ld-header:not(.is-scrolled) .ld-nav__list a { color: #fff !important; }
.ld-header:not(.is-scrolled) .ld-nav__list > li.is-active > a { color: #fff !important; font-weight: 400; }
.ld-header:not(.is-scrolled) .ld-nav__list a:hover { color: var(--ld-yellow) !important; }
.ld-header:not(.is-scrolled) .ld-login { color: rgba(255,255,255,0.85) !important; }
.ld-header:not(.is-scrolled) .ld-search-btn { color: rgba(255,255,255,0.85) !important; }
.ld-header:not(.is-scrolled) .ld-search-btn:hover { color: #fff !important; background: rgba(255,255,255,0.12); }
.ld-header:not(.is-scrolled) .ld-nav__arrow { border-top-color: rgba(255,255,255,0.85) !important; }

/* ── Nav Links ── */
.ld-nav { flex: 1; display: flex; justify-content: flex-start; padding-left: 40px; }
.ld-nav__list { display: flex; align-items: center; gap: 28px; }
.ld-nav__list a {
    font-size: 14.5px; font-weight: 400;
    position: relative; padding: 6px 0;
    transition: color 0.22s ease;
}
/* 激活态：黄色下划线（首页） */
.ld-nav__list > li.is-active > a::after,
.ld-nav__list > li.is-active > a::before {
    content: ''; position: absolute; bottom: -2px; left: 50%;
    width: 24px; height: 3px; border-radius: 2px;
    background: var(--ld-yellow);
    transform: translateX(-50%);
}
.ld-header:not(.is-scrolled) .ld-nav__list > li.is-active > a {
    color: #fff;
}
/* is-scrolled 激活态颜色已统一到上方导航颜色区块（含 !important） */

/* Hover 下划线动画 */
.ld-nav__list > li:not(.is-active) > a::after {
    content: ''; position: absolute; bottom: 0; left: 50%;
    width: 0; height: 2px; border-radius: 1px;
    background: var(--ld-yellow);
    transition: width 0.25s ease, left 0.25s ease;
    transform: translateX(-50%);
}
.ld-header:not(.is-scrolled) .ld-nav__list > li:not(.is-active) > a:hover { color: var(--ld-yellow); }
.ld-header:not(.is-scrolled) .ld-nav__list > li:not(.is-active) > a:hover::after { width: 60%; }
.ld-header.is-scrolled .ld-nav__list > li:not(.is-active) > a:hover { color: var(--ld-blue); }
.ld-header.is-scrolled .ld-nav__list > li:not(.is-active) > a:hover::after { width: 60%; background: var(--ld-blue); }

/* 下拉箭头（必须 inline-block，否则 transform 无效） */
.ld-nav__arrow {
    display: inline-block;
    font-size: 10px; margin-left: 4px;
    opacity: 0.7; vertical-align: middle;
    transition: opacity 0.2s, transform 0.2s, color 0.2s;
}
/* hover：箭头旋转180° + 高亮色 */
.ld-nav__list > li.has-dropdown:hover .ld-nav__arrow {
    opacity: 1; transform: rotate(180deg);
    color: #FFDB18 !important;
    border-top-color: #FFDB18 !important;
}

/* 下拉子菜单（深色面板，对标目标站） */
.ld-nav__list > li {
    position: relative;
}
.ld-nav__sub {
    position: absolute; top: 100%; left: 50%;
    transform: translateX(-50%) translateY(4px);
    margin-top: 12px;
    min-width: 160px;
    background: #1a1a2e;
    border-radius: 10px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35), 0 2px 8px rgba(0, 0, 0, 0.2);
    padding: 8px 0;
    opacity: 0; visibility: hidden;
    transition: opacity 0.22s ease, visibility 0.22s ease, transform 0.22s ease;
    z-index: 9999;
    list-style: none;
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.has-dropdown:hover > .ld-nav__sub {
    opacity: 1; visibility: visible;
    transform: translateX(-50%) translateY(0);
}
.ld-nav__sub li {
    margin: 0;
}
.ld-nav__sub li a {
    display: block !important;
    padding: 10px 24px !important;
    font-size: 14px !important;
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 400 !important;
    text-decoration: none !important;
    white-space: nowrap;
    transition: all 0.15s ease !important;
}
.ld-nav__sub li a:hover,
.ld-nav__sub li a:focus {
    color: #FFDB18 !important;
    background: rgba(255, 219, 24, 0.08) !important;
}

/* Header 右侧操作区 */
.ld-header__actions { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }

/* 搜索按钮 */
.ld-search-btn {
    display: flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 50%;
    border: none; background: none;
    cursor: pointer; color: inherit;
    transition: background 0.2s ease, color 0.2s ease;
}
/* is-scrolled 搜索/汉堡颜色已统一到上方导航颜色区块（含 !important） */
.ld-search-btn svg { width: 17px; height: 17px; }

.ld-login { font-size: 13.5px; font-weight: 400; transition: color 0.2s; }
.ld-login:hover { color: var(--ld-blue) !important; }

/* 汉堡菜单 */
.ld-burger {
    display: none; width: 44px; height: 44px;
    flex-direction: column; justify-content: center; align-items: center; gap: 5.5px;
    cursor: pointer; border: none; background: none;
}
.ld-burger span {
    display: block; width: 22px; height: 2px;
    background: #fff; border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.ld-header.is-scrolled .ld-burger span { background: #1a1a2e !important; }
.ld-burger.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.ld-burger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.ld-burger.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* 移动端抽屉菜单 */
.ld-mobile-menu {
    position: fixed; top: var(--ld-header-h, 60px); left: 0; right: 0; bottom: 0; z-index: 999;
    background: #fff; padding: 20px 24px; overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex !important; flex-direction: column;
    box-shadow: -4px 0 30px rgba(0,0,0,0.1);
}
.ld-mobile-menu.is-open { transform: translateX(0); }
.ld-mobile-menu__list { display: flex !important; flex-direction: column; }
.ld-mobile-menu__list li { display: block !important; visibility: visible !important; }
.ld-mobile-menu__list a {
    display: block !important; padding: 15px 6px;
    font-size: 16px; color: #1a1a2e !important;
    border-bottom: 1px solid #ECEEF3;
    font-weight: 450; transition: color 0.2s, background 0.2s;
    visibility: visible !important;
}
.ld-mobile-menu__list li.is-active > a {
    color: #2870ff !important; font-weight: 600 !important;
}
.ld-mobile-menu__list a:hover { color: #2870ff !important; background: rgba(40,112,255,0.04) !important; }

/* ══════════════════════════════════════
   Hero —— 全屏首屏
   ══════════════════════════════════════ */
.ld-hero {
    position: relative; min-height: 100svh;
    display: flex; align-items: center; justify-content: center;
    text-align: center; overflow: hidden; color: #fff;
}
/* 背景图层 */
.ld-hero__bg {
    position: absolute; inset: 0; z-index: 0;
    background-size: cover; background-position: center top;
}
.ld-hero__video {
    position: absolute; inset: 0; z-index: 0;
    width: 100%; height: 100%; object-fit: cover;
    opacity: 0; transition: opacity 0.5s ease;
}
.ld-hero__video.is-active { opacity: 1; }
/* 半透明暗层 */
.ld-hero__mask {
    position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(
        180deg,
        rgba(8, 12, 32, 0.45) 0%,
        rgba(8, 12, 32, 0.25) 35%,
        rgba(8, 12, 32, 0.35) 65%,
        rgba(8, 12, 32, 0.62) 100%
    );
}
/* 内容区 */
.ld-hero__inner {
    position: relative; z-index: 2;
    padding: 110px 24px 70px;
    max-width: 900px;
    display: flex; flex-direction: column; align-items: center;
}
/* Hero 标签文字 —— 简洁文字（与原站一致） */
.ld-hero__tag {
    display: block;
    font-size: 15px;
    font-weight: 300;
    letter-spacing: 4px;
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.8);
}

/* Hero 下载按钮（原站背景图 + 白色文字叠加） */
.ld-hero__cta { margin-top: 10px; }
.ld-hero__dl-btn {
    position: relative;
    display: inline-block;
    text-decoration: none !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 14px;
    overflow: hidden;
}
.ld-hero__dl-btn:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 8px 30px rgba(255, 180, 0, 0.5);
}
/* hover时切换到亮一点的背景图 */
.ld-hero__dl-btn:hover img {
    opacity: 0;
}
.ld-hero__dl-btn:hover::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('assets/default-download-hover.webp') center/contain no-repeat;
    border-radius: 14px;
}
.ld-hero__dl-btn img {
    display: block;
    width: 338px;
    height: auto;
    border-radius: 14px;
}
/* 按钮文字：绝对定位叠加在背景图上（与原站一致：深棕渐变文字） */
.ld-hero__dl-text {
    position: absolute;
    top: 29%; left: 50%;
    transform: translateX(-50%);
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 4px;
    /* 深棕色渐变文字（原站：from-#5E2F03 to-#B05C0A）*/
    background: linear-gradient(180deg, #5E2F03 0%, #8B4C06 50%, #B05C0A 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    white-space: nowrap;
    pointer-events: none;
}
/* Hero 副标题（小字） */
.ld-hero__sub-title {
    font-size: clamp(17px, 2.6vw, 26px); font-weight: 300;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
}
/* Hero 主标题 */
.ld-hero__title {
    font-size: clamp(32px, 5.5vw, 58px); font-weight: 700;
    line-height: 1.15; letter-spacing: 1px;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.35);
    margin-bottom: 32px;
}

/* 底部渐变过渡遮罩 */
.ld-hero__bottom-mask {
    position: absolute; bottom: 0; left: 0; right: 0; z-index: 2;
    height: 220px; pointer-events: none;
    background: linear-gradient(180deg, transparent 0%, var(--ld-bg) 100%);
}
.ld-hero__bottom-mask img {
    width: 100%; height: 100%; object-fit: cover;
    opacity: 0.85;
}

/* 滚动提示箭头 */
 ld-hero__scroll-hint {
    position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
    z-index: 3; animation: floatY 2s ease-in-out infinite;
    opacity: 0; transition: opacity 0.5s ease;
}
@keyframes floatY {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* ══════════════════════════════════════
   通用 Section
   ══════════════════════════════════════ */
.ld-section { padding: 64px 0; position: relative; }
.ld-section--alt { background: var(--ld-white); }
.ld-section__head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 28px;
}
.ld-section__title {
    font-size: 25px; font-weight: 600; color: var(--ld-text-1);
    position: relative; padding-left: 16px;
}
.ld-section__title::before {
    content: ''; position: absolute; left: 0; top: 50%;
    transform: translateY(-50%);
    width: 5px; height: 24px; border-radius: 3px;
    background: linear-gradient(180deg, var(--ld-blue), var(--ld-blue-2));
}
.ld-more {
    display: inline-flex; align-items: center; gap: 3px;
    font-size: 14px; color: var(--ld-text-3);
    font-weight: 400; transition: color 0.2s;
}
.ld-more:hover { color: var(--ld-blue); }
.ld-more span { font-size: 18px; font-weight: 300; }

/* ══════════════════════════════════════
   近期热点横幅
   ══════════════════════════════════════ */
.ld-hotbanner {
    display: block; position: relative;
    border-radius: var(--ld-radius-xl);
    overflow: hidden; min-height: 130px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: var(--ld-shadow);
}
.ld-hotbanner:hover {
    transform: translateY(-3px);
    box-shadow: var(--ld-shadow-lg);
}
.ld-hotbanner img {
    width: 100%; height: auto; aspect-ratio: 1200/200;
    object-fit: cover;
}
/* 无图时的渐变后备 */
.ld-hotbanner--fallback {
    display: flex; align-items: center; justify-content: space-between;
    min-height: 130px; padding: 0 40px;
    background: linear-gradient(135deg, #162038 0%, #1e3a6e 50%, #244a8f 100%);
    color: #fff;
}
.ld-hotbanner--fallback:hover { background: linear-gradient(135deg, #1a2848 0%, #224480 50%, #2a54a0 100%); }
.ld-hotbanner__title { font-size: 23px; font-weight: 600; }
.ld-hotbanner__arrow { font-size: 32px; opacity: 0.75; font-weight: 300; }

/* ══════════════════════════════════════
   游戏案例 / 三栏榜单
   ══════════════════════════════════════ */
.ld-ranks {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--ld-gap);
}
.ld-rank {
    background: var(--ld-white);
    border-radius: var(--ld-radius-lg);
    padding: 24px 20px;
    box-shadow: var(--ld-shadow-sm);
    border: 1px solid rgba(15, 23, 42, 0.04);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.ld-rank:hover {
    box-shadow: var(--ld-shadow);
    transform: translateY(-2px);
}
.ld-rank__title {
    font-size: 18px; font-weight: 600;
    margin-bottom: 16px;
    color: var(--ld-blue);
    padding-bottom: 12px;
    border-bottom: 1px solid var(--ld-line);
}
.ld-rank__list { display: flex; flex-direction: column; gap: 4px; }

/* 游戏条目 */
.ld-game__link {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 8px; border-radius: 11px;
    transition: background 0.2s ease;
}
.ld-game__link:hover { background: var(--ld-bg); }
.ld-game__icon {
    width: 48px; height: 48px; border-radius: 12px;
    object-fit: cover; flex-shrink: 0;
    background: var(--ld-bg);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.ld-game__meta { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.ld-game__name {
    font-size: 14.5px; font-weight: 500; color: var(--ld-text-1);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ld-game__cat { font-size: 12px; color: var(--ld-text-3); }
.ld-game__dl {
    display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0;
}
.ld-game__num { font-size: 12px; color: var(--ld-text-3); font-weight: 450; }
.ld-game__btn {
    font-size: 11.5px; color: #fff;
    background: linear-gradient(135deg, var(--ld-blue), var(--ld-blue-2));
    padding: 4px 14px; border-radius: 999px;
    font-weight: 500; transition: all 0.2s ease;
    white-space: nowrap;
}
.ld-game__link:hover .ld-game__btn {
    background: linear-gradient(135deg, var(--ld-blue-dark), var(--ld-blue));
    box-shadow: 0 2px 8px rgba(40,112,255,0.3);
}

/* 榜单底部「查看全部」 */
.ld-rank__more { margin-top: 16px; text-align: center; }
.ld-rank__more .ld-more { font-size: 13px; color: var(--ld-blue); }
.ld-rank__more .ld-more:hover { color: var(--ld-blue-dark); }

/* ══════════════════════════════════════
   福利活动
   ══════════════════════════════════════ */
.ld-welfare {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--ld-gap);
}
.ld-welfare__card {
    border-radius: var(--ld-radius-lg); overflow: hidden;
    box-shadow: var(--ld-shadow-sm);
    border: 1px solid rgba(15, 23, 42, 0.04);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s ease;
    position: relative;
}
.ld-welfare__card::after {
    content: '';
    position: absolute; inset: 0;
    border-radius: var(--ld-radius-lg);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.1);
    pointer-events: none;
}
.ld-welfare__card:hover {
    transform: translateY(-6px);
    box-shadow: var(--ld-shadow-lg);
}
.ld-welfare__card img {
    width: 100%; aspect-ratio: 16/10;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.ld-welfare__card:hover img { transform: scale(1.04); }

/* ══════════════════════════════════════
   功能演示（深色区域）
   ══════════════════════════════════════ */
.ld-feature {
    position: relative;
    background-size: cover; background-position: center;
    color: #fff; padding: 90px 0 100px; overflow: hidden;
}
.ld-feature__overlay {
    position: absolute; inset: 0;
    background: linear-gradient(
        115deg,
        rgba(8, 14, 38, 0.95) 0%,
        rgba(16, 32, 72, 0.88) 45%,
        rgba(24, 52, 105, 0.80) 100%
    );
}
.ld-feature__inner {
    position: relative; z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 46px;
    max-width: 1440px;
    margin: 0 auto;
    width: 100%;
}
/* Tab 行 — 精简紧凑，让位给大图 */
.ld-feature__tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.ld-feature__tab {
    text-align: left;
    display: flex; flex-direction: column; gap: 5px;
    padding: 18px 24px; border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    color: #fff; cursor: pointer;
    transition: all 0.3s ease;
}
.ld-feature__tab:hover {
    background: rgba(255, 255, 255, 0.10);
    border-color: rgba(255, 255, 255, 0.14);
    transform: translateY(-3px);
}
.ld-feature__tab.is-active {
    background: linear-gradient(135deg, #FFD54F 0%, #F9A825 100%);
    border-color: #FFD54F;
    color: #4a3500;
    box-shadow: 0 8px 32px rgba(255, 200, 0, 0.35), 0 0 0 1px rgba(255,220,100,0.3);
}
.ld-feature__tab-title { font-size: 18px; font-weight: 700; letter-spacing: 0.5px; }
.ld-feature__tab-desc { font-size: 12px; opacity: 0.65; line-height: 1.5; }
.ld-feature__tab.is-active .ld-feature__tab-desc { opacity: 0.8; }

/* ══ 大图面板 — 满宽沉浸式，图片决定高度 ══ */
.ld-feature__panel {
    position: relative;
    width: 100%;
}
/* 用 relative 让当前图撑开高度，其余 absolute 叠放做淡入 */
.ld-feature__item {
    position: absolute; top: 0; left: 0; width: 100%;
    opacity: 0; visibility: hidden;
    transform: scale(0.97);
    transition: opacity 0.5s ease, transform 0.5s ease;
    z-index: 1;
}
.ld-feature__item.is-active {
    position: relative;
    opacity: 1; visibility: visible;
    transform: scale(1);
    z-index: 2;
}

/* 笔记本/播放器设备外框 — 满宽 */
.ld-feature__img-wrap {
    position: relative;
    width: 100%; max-width: 1400px;
    margin: 0 auto;
    padding: 14px;
    border-radius: 18px;
    background: linear-gradient(180deg, #16161f 0%, #0a0a12 100%);
    box-shadow:
        0 50px 140px rgba(0, 0, 0, 0.7),
        0 12px 50px rgba(0, 0, 0, 0.45),
        inset 0 0 0 1px rgba(255,255,255,0.05),
        0 0 90px rgba(80, 90, 190, 0.10);
}
/* 顶部仿设备状态条 */
.ld-feature__img-wrap::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 14px;
    border-radius: 18px 18px 0 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.06), transparent);
    pointer-events: none;
}
.ld-feature__img {
    width: 100%; height: auto;
    display: block;
    border-radius: 8px;
}

/* ══════════════════════════════════════
   常见问题 — 横向 Tab 按钮（对标原站）
   ══════════════════════════════════════ */
.ld-faq-tabs {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}
.ld-faq-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    background: var(--ld-white);
    border-radius: 12px;
    font-size: 15.5px;
    font-weight: 500;
    color: var(--ld-text-1);
    text-align: center;
    padding: 0 16px;
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: all 0.25s ease;
    text-decoration: none;
}
.ld-faq-tab:hover {
    background: #fff9e6;
    border-color: rgba(255, 219, 24, 0.4);
    color: #b8860b;
}

/* ══════════════════════════════════════
   游戏资讯 / 电脑版教程（对标原站：左3右2分栏）
   ══════════════════════════════════════ */

/* 整体布局：左资讯(3/5) 右教程(2/5) */
.ld-info {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 36px;
}

/* ── 游戏资讯（左侧）2×2 等大网格 ── */
.ld-news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}
.ld-news-card {
    position: relative;
    display: block;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
}
.ld-news-card__img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}
.ld-news-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.ld-news-card:hover .ld-news-card__img {
    transform: scale(1.06);
}
/* 标题+日期叠在图片底部 */
.ld-news-card__overlay {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    background: linear-gradient(transparent 30%, rgba(0, 0, 0, 0.72) 100%);
    padding: 28px 14px 12px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.ld-news-card__title {
    color: #fff;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.4;
    display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
}
.ld-news-card__date {
    color: rgba(255, 255, 255, 0.6);
    font-size: 11.5px;
}

/* ── 电脑版教程（右侧）—— 复刻目标站：紧凑列表 + 首项/悬停展示详情面板 ── */
.ld-info__tutorials {
    display: flex;
    flex-direction: column;
}
.ld-tut-list {
    background: var(--ld-white);
    border-radius: 14px;
    padding: 16px 18px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(15, 23, 42, 0.05);
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}
/* 每项：紧凑行（标题+日期），无固定高度 */
.ld-tut-item {
    display: block;
    padding: 9px 10px;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s ease;
}
.ld-tut-item:hover { background: #fff9e6; }
.ld-tut-item.is-active { background: #fff9e6; }

/* 标题行 */
.ld-tut-item__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.ld-tut-item__title {
    font-size: 14px;
    color: var(--ld-text-1);
    line-height: 1.45;
    display: -webkit-box; -webkit-line-clamp: 1;
    -webkit-box-orient: vertical; overflow: hidden;
    transition: color 0.2s;
}
.ld-tut-item:hover .ld-tut-item__title,
.ld-tut-item.is-active .ld-tut-item__title {
    color: #c98a00;
    font-weight: 600;
}
.ld-tut-item__date {
    flex-shrink: 0;
    font-size: 13px;
    color: var(--ld-text-3);
    white-space: nowrap;
}

/* 详情面板 —— 仅 .is-active 或 :hover 时显示，对标原站首项展开效果 */
.ld-tut-item__panel {
    display: none;                    /* 默认全部隐藏 */
    grid-template-columns: 130px 1fr;
    gap: 10px 12px;
    margin-top: 8px;
    padding-top: 10px;
    border-top: 1px dashed rgba(212, 160, 23, 0.25);
    align-items: start;
}
/* 首项默认展示 */
.ld-tut-item.is-active .ld-tut-item__panel { display: grid; }
/* 悬停任意项时展示该项面板 */
.ld-tut-item:hover .ld-tut-item__panel { display: grid; }

/* 手风琴：鼠标在列表内但不在首项上时，首项面板收起 */
.ld-tut-list:hover .ld-tut-item.is-active:not(:hover) .ld-tut-item__panel { display: none; }
.ld-tut-list:hover .ld-tut-item.is-active:not(:hover) { background: transparent; }
.ld-tut-list:hover .ld-tut-item.is-active:not(:hover) .ld-tut-item__title { color: var(--ld-text-1); font-weight: 400; }

/* 缩略图 */
.ld-tut-item__thumb {
    width: 130px;
    aspect-ratio: 16 / 9;
    border-radius: 6px;
    object-fit: cover;
}

/* 描述文字 */
.ld-tut-item__desc {
    font-size: 13px;
    color: var(--ld-text-2);
    line-height: 1.65;
    display: -webkit-box; -webkit-line-clamp: 3;
    -webkit-box-orient: vertical; overflow: hidden;
}
/* 无缩略图时描述占满 */
.ld-tut-item__desc--full {
    grid-column: 1 / -1;
    -webkit-line-clamp: 2;
}

/* ══════════════════════════════════════
   云模拟器横幅（黄色 CTA 条）
   ══════════════════════════════════════ */
.ld-cloud-banner {
    display: block;
    background: linear-gradient(135deg, #FFD54F 0%, #FFCA28 40%, #FFB300 100%);
    position: relative;
    overflow: hidden;
    text-decoration: none;
}
.ld-cloud-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 30px,
        rgba(255,255,255,0.06) 30px,
        rgba(255,255,255,0.06) 60px
    );
    pointer-events: none;
}
.ld-cloud-banner__inner {
    max-width: var(--ld-max-w);
    margin: 0 auto;
    padding: 28px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    position: relative;
    z-index: 1;
}
.ld-cloud-banner__text {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a2e;
    letter-spacing: 3px;
}
.ld-cloud-banner__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 28px;
    background: #1a1a2e;
    color: #FFDB18;
    border-radius: 999px;
    font-size: 14.5px;
    font-weight: 600;
    transition: all 0.25s ease;
    flex-shrink: 0;
}
.ld-cloud-banner__btn:hover {
    background: #2d2d4a;
    transform: translateY(-1px);
}

/* ══════════════════════════════════════
   友情链接 / 热门关注（双行文字链）
   ══════════════════════════════════════ */
.ld-link-rows {
    border-top: 1px solid rgba(0,0,0,0.07);
    border-bottom: 1px solid rgba(0,0,0,0.07);
    background: var(--ld-white);
}
.ld-link-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 16px 0;
}
.ld-link-row--hot { padding-top: 6px; }
.ld-link-row__label {
    font-size: 13.5px;
    color: var(--ld-text-3);
    white-space: nowrap;
    flex-shrink: 0;
}
.ld-link-row__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 12px;
    line-height: 1.9;
}
.ld-link-row__item {
    font-size: 13.5px;
    color: var(--ld-text-3);
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s;
}
.ld-link-row__item:hover { color: #d4a017; }
.ld-link-row__sep {
    width: 1px;
    height: 12px;
    background: rgba(15,23,42,0.15);
    flex-shrink: 0;
}
.ld-link-row__more {
    font-size: 13px;
    color: var(--ld-text-3);
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.2s;
}
.ld-link-row__more:hover { color: #d4a017; }

/* ══════════════════════════════════════
   Footer 页脚（对标原站：左信息右Logo）
   ══════════════════════════════════════ */
.ld-footer {
    background: var(--ld-white); color: var(--ld-text-2);
    padding: 36px 0 48px;
}
.ld-footer__inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 48px;
}

/* 左侧 */
.ld-footer__left { flex: 1; min-width: 0; }
.ld-footer__nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    font-size: 14px;
    margin-bottom: 18px;
}
.ld-footer__nav a,
.ld-footer__nav .ld-footer__link {
    color: var(--ld-text-2);
    text-decoration: none;
    transition: color 0.2s;
}
.ld-footer__nav a:hover,
.ld-footer__nav .ld-footer__link:hover { color: #d4a017; }
.ld-footer__sep {
    width: 1px; height: 16px;
    background: currentColor;
    opacity: 0.25;
}
.ld-footer__info {
    max-width: 780px;
    font-size: 13px;
    color: var(--ld-text-3);
    line-height: 2;
}
.ld-footer__info p { margin: 0; }
.ld-footer__info a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}
.ld-footer__info a:hover { color: #d4a017; }

/* 备案行 */
.ld-footer__police {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 4px;
}
.ld-footer__police img {
    width: 18px; height: 18px;
}
.ld-footer__police a { text-decoration: none; }

/* 右侧：Logo + 社交渠道 */
.ld-footer__right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 20px;
    flex-shrink: 0;
}
.ld-footer__logo img {
    width: 160px;
    height: auto;
}
.ld-footer__social {
    display: flex;
    align-items: center;
    gap: 16px;
}
.ld-footer__social-label {
    font-size: 14px;
    color: var(--ld-text-3);
    white-space: nowrap;
}
.ld-footer__social-icons {
    display: flex;
    align-items: center;
    gap: 12px;
}
.ld-social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #f0f0f5;
    color: #666;
    transition: all 0.25s ease;
    text-decoration: none;
}
.ld-social-icon svg { width: 18px; height: 18px; }
.ld-social-icon:hover { background: #e8e8ed; color: #333; }

/* ══════════════════════════════════════
   响应式
   ══════════════════════════════════════ */

/* 平板 */
@media (max-width: 1024px) {
    .ld-container { padding: 0 24px; }
    .ld-header__inner { padding: 0 24px; }
    .ld-feature__inner { gap: 28px; max-width: 100%; }
    .ld-feature__tabs { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .ld-feature__tab { padding: 16px 20px; border-radius: 12px; }
    .ld-feature__img-wrap { width: 100%; max-width: 900px; padding: 10px; border-radius: 14px; }
    .ld-info { gap: 28px; }
    .ld-info { grid-template-columns: 1fr; }
    .ld-news-grid { grid-template-columns: repeat(2, 1fr); }
    .ld-cloud-banner__text { font-size: 18px; letter-spacing: 2px; }
}

/* 手机 */
@media (max-width: 768px) {
    :root { --ld-header-h: 56px; }
    .ld-container { padding: 0 16px; }
    .ld-header__inner { padding: 0 16px; gap: 12px; }
    .ld-nav, .ld-header__actions { display: none; }
    .ld-burger { display: flex; }
    .ld-hero { min-height: 100svh; }
    .ld-hero__inner { padding: 90px 16px 60px; }
    .ld-hero__title { font-size: clamp(28px, 8vw, 44px); }
    .ld-hero__sub-title { font-size: 15px; letter-spacing: 1px; }
    .ld-hero__tag { font-size: 12px; letter-spacing: 2px; }
    .ld-hero__dl-img { max-width: 260px; }
    .ld-hero__bottom-mask { height: 140px; }
    .ld-section { padding: 44px 0; }
    .ld-section__title { font-size: 21px; }
    .ld-ranks,
    .ld-welfare,
    .ld-info { grid-template-columns: 1fr; }
    .ld-news-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .ld-tut-list { padding: 14px 16px; }

    /* 云横幅 */
    .ld-cloud-banner__inner { flex-direction: column; text-align: center; padding: 20px 16px; gap: 14px; }
    .ld-cloud-banner__text { font-size: 17px; letter-spacing: 2px; }
    .ld-cloud-banner__btn { padding: 9px 24px; font-size: 13.5px; }

    /* 链接行 */
    .ld-link-row { flex-direction: column; gap: 6px; padding: 12px 0; }
    .ld-link-row--hot { padding-top: 4px; }
    .ld-link-row__label { display: none; } /* 移动端隐藏标签 */

    /* FAQ Tab 平板过渡：缩小间距 */
    .ld-faq-tabs { gap: 12px; }
    .ld-faq-tab { height: 54px; font-size: 14px; padding: 0 12px; }
    .ld-link-row__list { gap: 3px 10px; line-height: 1.8; }
    .ld-link-row__item { font-size: 13px; }

    /* 页脚 */
    .ld-footer__inner { flex-direction: column-reverse; gap: 28px; }
    .ld-footer__right { align-items: center; text-align: center; }
    .ld-footer__social { flex-direction: column; align-items: center; gap: 10px; }
    .ld-footer__nav { justify-content: center; }
    .ld-footer__info { text-align: center; max-width: 100%; }

    .ld-feature__tabs { grid-template-columns: 1fr; gap: 8px; }
    .ld-feature__tab { padding: 14px 18px; border-radius: 12px; }
    .ld-feature__img-wrap { width: 100%; max-width: unset; padding: 8px; border-radius: 12px; }
    .ld-feature { padding: 48px 0; }
    .ld-hotbanner { min-height: 96px; }
    .ld-hotbanner--fallback { padding: 0 20px; min-height: 96px; }
    .ld-hotbanner__title { font-size: 18px; }
}

/* 小屏手机 */
@media (max-width: 480px) {
    .ld-news-grid { grid-template-columns: 1fr; }
    .ld-section__title { font-size: 19px; }
    .ld-faq-tabs {
        display: flex;
        overflow-x: auto;
        gap: 10px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
    }
    .ld-faq-tabs::-webkit-scrollbar { display: none; } /* Chrome/Safari */
    .ld-faq-tab {
        flex-shrink: 0;
        height: 46px;
        font-size: 13.5px;
        padding: 0 14px;
        white-space: nowrap;
    }
    .ld-game__name { font-size: 13.5px; }
    .ld-logo img { height: 28px; }
    .ld-cloud-banner__text { font-size: 15px; }
}

/* ══════════════════════════════════════
   内页（列表页 / 详情页）通用风格
   风格对齐首页：品牌蓝渐变页头 + 白卡 + 淡黄 hover
   ══════════════════════════════════════ */

/* ── 页头：品牌蓝渐变 + 面包屑 + 标题 ── */
.ld-page-head {
    position: relative;
    background: linear-gradient(120deg, #1a56d8 0%, #2870ff 45%, #4180ff 100%);
    color: #fff;
    padding: calc(var(--ld-header-h) + 44px) 0 46px;
    overflow: hidden;
}
.ld-page-head::after {
    content: '';
    position: absolute; right: -90px; top: -90px;
    width: 360px; height: 360px;
    background: radial-gradient(circle, rgba(255,255,255,0.14), transparent 70%);
    pointer-events: none;
}
.ld-page-head .ld-container { position: relative; z-index: 1; }
.ld-page-head__crumb {
    display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
    font-size: 13.5px; color: rgba(255,255,255,0.82); margin-bottom: 14px;
}
.ld-page-head__crumb a { color: rgba(255,255,255,0.88); transition: color 0.2s; }
.ld-page-head__crumb a:hover { color: #fff; }
.ld-page-head__crumb .sep { opacity: 0.5; }
.ld-page-head__title {
    font-size: 30px; font-weight: 700; letter-spacing: 0.5px;
    text-shadow: 0 2px 16px rgba(0,0,0,0.18);
}
.ld-page-head__desc {
    margin-top: 12px; font-size: 15px; line-height: 1.7;
    color: rgba(255,255,255,0.85); max-width: 720px;
}

/* ── 列表页主体 ── */
.ld-archive { padding: 48px 0 64px; background: var(--ld-bg); }
.ld-archive__empty {
    text-align: center; color: var(--ld-text-3);
    padding: 70px 0; font-size: 15px;
}
.ld-archive__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* ── 文章卡片（列表页 / 相关推荐共用）── */
.ld-post-card {
    display: flex; flex-direction: column;
    background: var(--ld-white);
    border-radius: var(--ld-radius);
    overflow: hidden;
    box-shadow: var(--ld-shadow-sm);
    border: 1px solid rgba(15, 23, 42, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
}
.ld-post-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--ld-shadow);
}
.ld-post-card__media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #eef0f5;
}
.ld-post-card__img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.ld-post-card:hover .ld-post-card__img { transform: scale(1.05); }
/* 无缩略图时的占位 */
.ld-post-card__ph {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #2a3f6b 0%, #1e3a6e 100%);
    color: rgba(255,255,255,0.9);
    font-size: 46px; font-weight: 700;
}
.ld-post-card__body {
    display: flex; flex-direction: column; gap: 8px;
    padding: 16px 18px 20px;
    flex: 1;
}
.ld-post-card__title {
    font-size: 16px; font-weight: 600; line-height: 1.5;
    color: var(--ld-text-1);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    transition: color 0.2s;
}
.ld-post-card:hover .ld-post-card__title { color: var(--ld-blue); }
.ld-post-card__excerpt {
    font-size: 13.5px; line-height: 1.65; color: var(--ld-text-2);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    margin: 0;
}
.ld-post-card__meta {
    margin-top: auto;
    font-size: 13px; color: var(--ld-text-3);
}

/* ── 分页 ── */
.ld-pagination {
    display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
    gap: 10px; margin-top: 42px;
}
.ld-pagination a,
.ld-pagination span {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 40px; height: 40px; padding: 0 16px;
    border-radius: 999px;
    background: var(--ld-white);
    border: 1px solid var(--ld-line);
    color: var(--ld-text-2);
    font-size: 14px; line-height: 1;
    transition: all 0.2s ease;
}
.ld-pagination a:hover { color: var(--ld-blue); border-color: var(--ld-blue); }
.ld-pagination .current {
    background: var(--ld-blue); color: #fff; border-color: var(--ld-blue);
}

/* ══════════════════════════════════════
   详情页
   ══════════════════════════════════════ */
.ld-single { padding: 40px 0 64px; background: var(--ld-bg); }
.ld-single__main { max-width: 860px; margin: 0 auto; }
.ld-single__article {
    background: var(--ld-white);
    border-radius: var(--ld-radius-lg);
    box-shadow: var(--ld-shadow-sm);
    border: 1px solid rgba(15, 23, 42, 0.04);
    padding: 36px 40px 44px;
}
.ld-single__meta {
    display: flex; align-items: center; flex-wrap: wrap; gap: 12px;
    font-size: 13.5px; color: var(--ld-text-3); margin-bottom: 16px;
}
.ld-single__meta a { color: var(--ld-blue); transition: color 0.2s; }
.ld-single__meta a:hover { color: var(--ld-blue-dark); }
.ld-single__meta .dot { color: var(--ld-text-4); }
.ld-single__cover {
    margin: 20px 0 4px; border-radius: var(--ld-radius); overflow: hidden;
}
.ld-single__cover img { width: 100%; height: auto; display: block; }
.ld-single__content {
    margin-top: 18px;
    font-size: 16px; line-height: 1.9; color: #2b2b3a;
}
.ld-single__content p { margin: 0 0 18px; }
.ld-single__content img { max-width: 100%; height: auto; border-radius: 10px; margin: 14px 0; }
.ld-single__content h2,
.ld-single__content h3,
.ld-single__content h4 { margin: 28px 0 12px; color: var(--ld-text-1); line-height: 1.4; }
.ld-single__content h2 { font-size: 22px; }
.ld-single__content h3 { font-size: 19px; }
.ld-single__content a { color: var(--ld-blue); text-decoration: underline; }
.ld-single__content ul,
.ld-single__content ol { margin: 0 0 18px 22px; }
.ld-single__content li { margin: 6px 0; }
.ld-single__content blockquote {
    margin: 18px 0; padding: 8px 18px;
    border-left: 4px solid var(--ld-blue);
    background: var(--ld-bg); color: var(--ld-text-2);
    border-radius: 0 8px 8px 0;
}

/* 上下篇导航 */
.ld-post-nav {
    display: flex; gap: 16px; margin-top: 30px;
}
.ld-post-nav__prev, .ld-post-nav__next {
    flex: 1; min-width: 0;
}
.ld-post-nav__next { text-align: right; }
.ld-post-nav a {
    display: block; width: 100%;
    padding: 14px 18px;
    background: var(--ld-white);
    border: 1px solid var(--ld-line);
    border-radius: var(--ld-radius);
    color: var(--ld-text-2); font-size: 14px;
    transition: all 0.2s ease;
}
.ld-post-nav a:hover { color: var(--ld-blue); border-color: var(--ld-blue); box-shadow: var(--ld-shadow-sm); }
.ld-post-nav .label {
    display: block; font-size: 12px; color: var(--ld-text-3); margin-bottom: 5px;
}
.ld-post-nav__prev a, .ld-post-nav__next a {
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* 相关推荐 */
.ld-single__related { max-width: 1100px; margin: 44px auto 0; }
.ld-single__related .ld-section__title { margin-bottom: 22px; }

/* ══════════════════════════════════════
   内页响应式
   ══════════════════════════════════════ */
@media (max-width: 1024px) {
    .ld-archive__grid { grid-template-columns: repeat(2, 1fr); }
    .ld-single__related .ld-archive__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .ld-archive__grid { grid-template-columns: 1fr; }
    .ld-single__article { padding: 24px 18px 32px; border-radius: var(--ld-radius); }
    .ld-single__title, .ld-page-head__title { font-size: 23px; }
    .ld-page-head { padding: calc(var(--ld-header-h) + 28px) 0 32px; }
    .ld-single__content { font-size: 15.5px; }
    .ld-post-nav { flex-direction: column; }
    .ld-post-nav__next { text-align: left; }
}

/* ============ 404 页 ============ */
.ld-404 { max-width: 560px; margin: 0 auto; text-align: center; padding: 24px 0; }
.ld-404__hint { color: var(--ld-text-3); margin-bottom: 18px; }
.ld-404 .ld-btn--primary { display: inline-block; margin-top: 22px; }

/* ============ 品牌化搜索框 ============ */
.ld-search { display: flex; gap: 10px; max-width: 520px; margin: 0 auto; }
.ld-search__input {
    flex: 1;
    height: 46px;
    padding: 0 16px;
    border: 1px solid var(--ld-border, #e3e8f0);
    border-radius: 999px;
    font-size: 15px;
    color: var(--ld-text-1);
    background: #fff;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.ld-search__input:focus {
    border-color: var(--ld-blue);
    box-shadow: 0 0 0 3px rgba(28, 99, 235, 0.12);
}
.ld-search__btn {
    height: 46px;
    padding: 0 26px;
    border: none;
    border-radius: 999px;
    background: var(--ld-blue);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.ld-search__btn:hover { background: var(--ld-blue-dark); }
.ld-archive__empty .ld-search { margin-top: 18px; }
