/*
 * QuickStart.css - 终南泉石专用：极致大气紧致版 (全量最终版)
 * 2026.03.19 核心逻辑：
 * 1. 三级导航标签 140px 绝对等宽，解决多语言切换跳动。
 * 2. 假名网格 box-sizing: border-box 确保竖线 100% 显示。
 * 3. 胶囊开关 26px 精致高度，整体左移对齐。
 * 4. 核心防抖：使用 text-shadow 模拟加粗，物理宽度永不改变。
 */

/* ============================================================
   1. 基础容器与二级导航 (PDF Page 1-3)
   ============================================================ */
.quick-start-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%; /* 确保撑满父级高度 */
    overflow: hidden; /* 防止主容器出现多余滚动条 */
}

.quick-start-wrapper .fixed-header-section {
    position: relative;
    top: 0;
    width: 100% !important;
    /* 强制清除所有可能导致几像素缝隙的因素 */
    padding: 0 !important;
    margin: 0 !important;
    left: 0 !important;
    background: #ffffff;
    z-index: 1100 !important;
    display: flex;
    flex-direction: column;
}


.quick-start-wrapper .kana-content-scroll-area,
.quick-start-wrapper .vocab-content-area {
    flex: 1;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    min-height: 0;
}

/* 数字/日期模块滚动条样式 */
.quick-start-wrapper .vocab-content-area::-webkit-scrollbar {
    width: 8px;
}

.quick-start-wrapper .vocab-content-area::-webkit-scrollbar-track {
    background: transparent;
}

.quick-start-wrapper .vocab-content-area::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.2);
    border-radius: 4px;
}

/* 确保二级导航容器背景不透明，防止看到下方的滚动条 */
.quick-start-wrapper .sub-nav-container,
.quick-start-wrapper .kana-three-level-nav {
    background: #ffffff !important;
}

.quick-start-wrapper .sub-nav-container {
   position: relative;
       display: flex;
       align-items: center;
       width: 100%;
       max-width: none;
       height: 58px;
       background: #ffffff !important;
       /* delete border-bottom - 使用 ::before 伪元素替代 */
       padding: 0 0 0 24px !important;
       box-sizing: border-box; /* 必须有这一行，确保 padding 不缩减宽度 */
}

/* 二级导航底线延伸到最右边 - 伪元素替代 border-bottom */
.quick-start-wrapper .sub-nav-container::before {
   content: "";
   position: absolute;
   left: 0;
   right: 0;
   bottom: 0;
   height: 1px;
   background: rgba(0, 0, 0, 0.15);
   z-index: 25; /* 高于 ::after 覆盖条 */
}

.quick-start-wrapper .sub-nav-bar {
    display: flex !important;
    justify-content: flex-start !important;
    gap: 20px !important;
    padding: 0 10px !important;
    height: 64px !important;
    overflow-x: auto;
    align-items: center;
    border-bottom: none;
    scroll-behavior: smooth;
}

.quick-start-wrapper .sub-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 4px 2px !important;
    gap: 1px !important;
    min-width: 56px;
    flex-shrink: 0;
    cursor: pointer;
    transition: color 0.2s ease;
}

.quick-start-wrapper .sub-icon {
    width: 28px !important;
    height: 28px !important;
    color: rgba(29, 29, 31, 0.88) !important;
    stroke: currentColor !important;
    fill: none;
}

.quick-start-wrapper .sub-label {
    font-size: 13px !important;
    font-weight: 500;
    color: rgba(29, 29, 31, 0.55) !important;
    margin-top: -1px !important;
    white-space: nowrap;
}

/* 二级导航交互 */
.quick-start-wrapper .sub-item:hover:not(.active) .sub-label { color: #0066cc !important; }
.quick-start-wrapper .sub-item.active .sub-label {
    color: rgba(29, 29, 31, 0.88) !important;
    text-shadow: 0.4px 0 0 currentColor; /* 防抖加粗 */
}

/* ============================================================
   2. 三级导航：等宽防抖版 (PDF Page 4-5)
   ============================================================ */
.quick-start-wrapper .kana-three-level-nav {
    display: flex !important;
    justify-content: flex-start !important;
    align-items: center !important;
    gap: 20px !important;
    width: 100% !important;
    height: 40px !important;
    padding: 0 0 0 24px !important;
    margin-top: 0px !important;
    flex-shrink: 0;
    background: #ffffff !important;
    z-index: 10;
    position: relative !important;

    /* delete border-bottom - 使用 ::before 伪元素替代 */
    margin-right: 0 !important;
    box-sizing: border-box;
}

/* 三级导航底线延伸到最右边 - 伪元素替代 border-bottom */
.quick-start-wrapper .kana-three-level-nav::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: #eee !important;
    z-index: 25; /* 高于 ::after 覆盖条 */
}

/* 白色覆盖条：遮挡滚动条顶部 */
.quick-start-wrapper .kana-three-level-nav::after {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    width: 8px; /* 滚动条宽度 */
    height: 40px; /* 三级导航栏高度 */
    background: #ffffff;
    z-index: 20; /* 高于滚动条 */
}

/* 二级导航也添加覆盖条 */
.quick-start-wrapper .sub-nav-container::after {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    width: 8px; /* 滚动条宽度 */
    height: 58px; /* 二级导航栏高度 */
    background: #ffffff;
    z-index: 20; /* 高于滚动条 */
}

/* 竖向广告栏：挂在固定头部内，顶边贴导航下分割线、右边贴页面右边缘；
   定位基准为头部（滚动区之外），故不随内容滚动 */
.quick-start-wrapper .fixed-header-section > .global-ad-sidebar-absolute {
    top: 100%;
    right: 0;
}

.quick-start-wrapper .nav-left {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    margin-left: -8px !important;
    flex: 1 !important;
    gap: 0 !important;
}

.quick-start-wrapper .nav-right {
    flex-shrink: 0 !important;
}

.quick-start-wrapper .type-link {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    /* --- 核心：140px 绝对等宽，切换语言不跳动 --- */
    width: 140px !important;
    min-width: 140px !important;
    flex: 0 0 140px !important;
    padding: 0 !important;
    font-size: 13px !important;
    color: rgba(29, 29, 31, 0.45) !important;
    white-space: nowrap !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

/* 中间分隔竖线 */
.quick-start-wrapper .type-link:not(:last-child)::after {
    content: "" !important;
    position: absolute !important;
    right: 0 !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    height: 14px !important;
    width: 1px !important;
    background: rgba(0, 0, 0, 0.1) !important;
}

.quick-start-wrapper .type-link:hover:not(.active) { color: #0066cc !important; }
.quick-start-wrapper .type-link.active {
    color: rgba(29, 29, 31, 0.88) !important;
    font-weight: 600 !important;
    text-shadow: 0.4px 0 0 currentColor; /* 防抖加粗 */
}

/* ============================================================
   3. 胶囊切换开关 (PDF Page 6)
   ============================================================ */
.quick-start-wrapper .kana-toggle-capsule {
    position: relative;
    display: flex;
    background: rgba(118, 118, 128, 0.12);
    border-radius: 4px;
    padding: 2px;
    width: 153px !important;
    height: 24px !important;
    margin-top: -1px !important;
    margin-right: 82px !important;
    flex-shrink: 0;
}

.quick-start-wrapper .capsule-item {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px !important;
    line-height: 20px !important;
    font-weight: 500;
    color: #1d1d1f;
    z-index: 2;
    cursor: pointer;
}

.quick-start-wrapper .capsule-slider {
    position: absolute;
    left: 2px; top: 2px;
    width: calc(50% - 2px);
    height: calc(100% - 4px);
    background: #fff;
    border-radius: 3px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

/* ============================================================
   3.5 横幅广告栏 (位于二级导航下方)
   ============================================================ */
.quick-start-wrapper .banner-ad-container {
    width: 100%;
    background: #f5f5f5;
    border-bottom: 1px solid #e0e0e0;
    border-top: 1px solid #e0e0e0;
    padding: 8px 0;
    flex-shrink: 0;
    box-sizing: border-box;
}

.quick-start-wrapper .banner-ad-content {
    display: flex;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px 0 16px;
    height: 70px;
    gap: 12px;
}

/* 广告卡片 */
.quick-start-wrapper .ad-card {
    flex: 1;
    background: #ffffff;
    border-radius: 4px;
    padding: 8px 12px;
    border: 1px solid #d0d0d0;
    cursor: pointer;
    transition: background 0.2s ease;
    min-width: 0;
}

.quick-start-wrapper .ad-card:hover {
    background: #fafafa;
}

.quick-start-wrapper .ad-company {
    font-size: 14px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.quick-start-wrapper .ad-desc {
    font-size: 12px;
    color: #666;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.quick-start-wrapper .ad-salary {
    font-size: 11px;
    color: #999;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 广告标识区 */
.quick-start-wrapper .ad-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    flex-shrink: 0;
    width: 100px;
}

.quick-start-wrapper .ad-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.quick-start-wrapper .ad-icon,
.quick-start-wrapper .ad-close {
    font-size: 14px;
    cursor: pointer;
    line-height: 1;
}

.quick-start-wrapper .ad-icon {
    color: #0071e3;
}

.quick-start-wrapper .ad-close {
    color: #999;
}

.quick-start-wrapper .ad-close:hover {
    color: #666;
}

.quick-start-wrapper .brand-logo {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    letter-spacing: 0.5px;
}

.quick-start-wrapper .brand-logo .biz {
    color: #c00;
}

/* ============================================================
   4. 五十音网格区域 (PDF Page 7-8)
   ============================================================ */
.quick-start-wrapper .kana-content-scroll-area {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: flex-start;
    justify-content: flex-start !important;
    gap: 40px;
    position: relative;
    background-color: #fafafa;
    padding: 20px 24px !important;
}

/* 滚动条样式已移除，统一由 content-viewport 控制 */

.quick-start-wrapper .kana-card {
    box-sizing: border-box !important;
    background: #ffffff !important;

    display: flex;
    align-items: center;
    justify-content: center;

    /* 统一的闭环边框逻辑：只管右和下 */
    border-right: 1px solid rgba(0, 0, 0, 0.2) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2) !important;
}

.quick-start-wrapper.layout-v1 .kana-card {
    /* --- 核心：border-box 确保 120px 包含边框，竖线必现 --- */
    box-sizing: border-box !important;
    width: 120px !important;
    height: 128px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    background: #fff !important;
    cursor: pointer;
    border-right: 1px solid rgba(0, 0, 0, 0.2) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2) !important;
    margin: 0 !important;

    position: relative !important;
}

/* 调整字符大小，防止溢出 */
.quick-start-wrapper.layout-v1 .kana-card .char {
    font-size: 56px !important;
    line-height: 1 !important;
    margin-bottom: 4px;
}

.quick-start-wrapper.layout-v1 .kana-card .romaji {
    transform: translateY(3px); /* 向下平移 5px */
}

.quick-start-wrapper.layout-v1 .edit-icon {
    position: relative; /* 必须！作为 Tips 的坐标基准 */

    right: 0px !important;
    bottom: 0px !important;

    display: flex;
    flex-direction: column;
    align-items: center;
    /* 核心修改：将初始黑色调淡为深灰色，匹配假名视觉感 */
    color: #999999 !important;
    /* 增加平滑过渡效果 */
    transition: color 0.3s ease;
}

.quick-start-wrapper.layout-v1 .hover-tip {
   position: absolute;
   top: 100%;       /* 位于图标下方 */
       left: 80%;       /* 位于图标右侧，避开中心 */

       /* 样式：苹果红 */
       background-color: #FF3B30 !important;
       color: #FFFFFF !important;
       padding: 3px 8px;
       border-radius: 4px;
       font-size: 11px;
       white-space: nowrap;
       z-index: 100;
       box-shadow: 0 2px 8px rgba(0,0,0,0.15);

       /* 初始状态：隐藏 */
       opacity: 0;
       visibility: hidden;
       pointer-events: none; /* 防止鼠标滑到提示框上时产生抖动 */
       transition: opacity 0.2s ease;
}

.quick-start-wrapper.layout-v1 .edit-icon:hover {
    color: #FF3B30 !important; /* 图标也变色 */
}

.quick-start-wrapper.layout-v1 .edit-icon:hover .hover-tip {
    opacity: 1;
    visibility: visible;
}

/* 3. 约束 SVG 图标：继承父级颜色并控制大小 */
.quick-start-wrapper.layout-v1 .svg-icon {
    width: 20px;  /* 稍微调小一点，更精致 */
    height: 20px;
    fill: currentColor; /* 关键：确保图标颜色随父级 color 变化 */
    display: inline-block;
    vertical-align: middle;

    transition: color 0.3s ease;

    /* 核心修改：向右旋转 40 度 */
    /* transform: rotate(15deg);*/
    /* 确保围绕图标自己的中心点旋转 */
    /* transform-origin: center center;*/
}

.quick-start-wrapper.layout-v1 .svg-icon:hover {
    color: #FF3B30 !important; /* 图标变苹果红 */
}

.quick-start-wrapper.layout-v1 .svg-icon:hover .hover-tip {
    opacity: 1;
    visibility: visible;
}

<style scoped>

    /* 1. 约束父容器：建立定位基准 */
    .quick-start-wrapper.layout-v4 .kana-card {
        position: relative !important;
        /* 确保格子内容不会溢出 */
        overflow: hidden;
    }

    /* 2. 定义图标位置：固定在右下角 */
    .edit-icon {
        position: absolute !important;
        right: 2px;   /* 距离右边 4px */
        bottom: 2px;  /* 距离底部 4px */

        /* 内部对齐：图标和文字横向排列 */
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 2px;     /* 图标和文字的间距 */

        /* 交互增强 */
        cursor: pointer;
        background: rgba(255, 255, 255, 0.8); /* 增加半透明背景确保在不同背景色下清晰 */
        border-radius: 4px;
        padding: 2px 4px;
        z-index: 5;
    }

    /* 3. 约束文字大小，防止撑破格子 */
    .edit-icon span {
        font-size: 10px;
        color: #666;
        line-height: 1;
        transform: scale(0.9); /* 如果字体还是觉得大，可以缩小 */
    }
    /* 4. 悬停效果：增加反馈 */
    .edit-icon:hover {
        background: #f0f0f0;
        opacity: 0.8;
    }
</style>

.quick-start-wrapper .kana-card .char {
    /*font-size: 56px;*/
    font-weight: 400;
    color: #1d1d1f;
}

.quick-start-wrapper .kana-card .romaji {
    font-size: 18px;
    color: rgba(29, 29, 31, 0.3);
    margin-top: 4px;
    text-transform: lowercase;
}

/* 箭头 */
.quick-start-wrapper .nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0066cc;
    cursor: pointer;
}
.quick-start-wrapper .nav-arrow.left { left: -10px; }
.quick-start-wrapper .nav-arrow.right { right: -10px; }

/* ============================================================
   5. 多布局动态适配方案 (最终全版本合并版)
   V1: 清音 | V2: 浊音 | V3: 拗音(3+1+3) | V4: 外来语(2+1+2+1+2)
   ============================================================ */

/* --- 基础容器：统一对齐风格 --- */
.quick-start-wrapper .kana-content-grid {
    display: grid !important;
    width: fit-content;
    margin-top: -1px !important;
    margin-bottom: 24px !important;
    gap: 0 !important;
    border-top: 1px solid rgba(0, 0, 0, 0.2) !important;
    border-left: 1px solid rgba(0, 0, 0, 0.2) !important;
}
/* ------------------------------------------------------------
   [布局 V1 & V2]：标准 5 列五十音/浊音
   ------------------------------------------------------------ */
.quick-start-wrapper.layout-v1 .kana-content-grid{
    display: grid !important;
    grid-template-columns: repeat(5, 120px) !important; /* 强制 5 列，每列 120px */
    width: 600px !important;
    gap: 0 !important;

    border-top: 1px solid rgba(0, 0, 0, 0.2) !important;
    border-left: 1px solid rgba(0, 0, 0, 0.2) !important;

    margin-left: 40px !important; /* 强制左移，你可以根据需要调整这个数字 */
    margin-right: auto !important;
}


/* ------------------------------------------------------------
   [布局 V3]：拗音专用 (3 列 + 1 窄列间隙 + 3 列)
   ------------------------------------------------------------ */
.quick-start-wrapper.layout-v3 .kana-content-grid {
    display: grid !important;
    /* 缩小中间间隙为 12px */
    grid-template-columns: 114px 114px 114px 12px 114px 114px 114px !important;
    width: 696px !important; /* (116*6) + 12 */
    margin-left: 0px !important;
    gap: 0 !important;
    /* 补全总边框 */
    border-top: 1px solid rgba(0, 0, 0, 0.2) !important;
    border-left: 1px solid rgba(0, 0, 0, 0.2) !important;
}

.quick-start-wrapper.layout-v3 .kana-card {
    box-sizing: border-box !important;
    border-right: 1px solid rgba(0, 0, 0, 0.2) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2) !important;
    height: 128px !important; /* 统一高度 */
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    background: #fff;
    cursor: pointer;
}

.quick-start-wrapper.layout-v3 .kana-card .char {
    font-size: 50px !important; /*从 48px/52px 调小到 34px */
    line-height: 1 !important;
    margin-top: 10px;
}

.quick-start-wrapper.layout-v3 .kana-card .romaji {
    transform: translateY(9px); /* 向下平移 5px */
}

.quick-start-wrapper.layout-v3 .kana-card:nth-child(7n+4) {
    width: 12px !important; /* 从 40px 改为 12px，匹配间隙宽度 */
    background: #fcfcfc !important;
    pointer-events: none;
    border-right: 1px solid rgba(0, 0, 0, 0.2) !important; /* 新增：显示右侧分割线 */
}


/*.quick-start-wrapper.layout-v4 .kana-card:hover {
      border-left: none !important;
      outline: none !important;
  }*/
/* ------------------------------------------------------------
   [布局 V4]：外来语专用 (卡片内2列 + 组间空隙)
   布局要求：2列(字符+音) + 空隙 + 2列 + 空隙 + 2列
   ------------------------------------------------------------ */
.quick-start-wrapper.layout-v4 .kana-content-grid {
    display: grid !important;
    grid-template-columns: 190px 12px 190px 12px 190px !important;
    margin-left: 40px !important;
    gap: 0 !important;
    /* 补全总边框 */
    border-top: 1px solid rgba(0, 0, 0, 0.2) !important;
    border-left: none !important;
    border-right: none !important;
    /*border-left: 1px solid rgba(0, 0, 0, 0.2) !important;*/
}

/* V4 卡片内部结构调整：实现类似表格的左右分栏 */
.quick-start-wrapper.layout-v4 .kana-card {
    height: 120px !important;      /* 调低高度，显得精细 */
}

/* V4 间隙列处理 (每行第 2、4 个格子) */
.quick-start-wrapper.layout-v4 .kana-card:nth-child(5n+2),
.quick-start-wrapper.layout-v4 .kana-card:nth-child(5n+4) {
    background: transparent !important;
    pointer-events: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2) !important;
    border-right: 1px solid rgba(0, 0, 0, 0.2) !important; /* 确保右边框显示 */
}

/* ✅ 外来语：精确控制特定 empty 格子的下边框 */
.quick-start-wrapper.layout-v4 .kana-card:nth-child(38).empty,
.quick-start-wrapper.layout-v4 .kana-card:nth-child(43).empty {
    border-bottom: none !important;
}

/* V4 卡片内部结构调整：实现类似表格的左右分栏 */
.quick-start-wrapper.layout-v4 .kana-card .char {
    flex: 1.55;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px !important;  /* 调小字号 */
    font-weight: 500;
    cursor: pointer;
    border-right: 1px solid rgba(0, 0, 0, 0.2); /* 卡片内部的细线 */
    border-left: 1px solid rgba(0, 0, 0, 0.2);
}

/* 右侧：罗马字部分 */
.quick-start-wrapper.layout-v4 .kana-card .romaji {
    margin-top: 0 !important;
    flex: 1; /* 占据另一半空间 */
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px !important;  /* 调小字号 */
    font-weight: 400;
    color: #333;
    background: #fafafa;         /* 罗马字背景略深，增加对比度 */
}

.quick-start-wrapper.layout-v2 .kana-card.header,
.quick-start-wrapper.layout-v2 .kana-card.empty {
    height: 70px !important;
    background-color: #fcfcfc;
    box-sizing: border-box !important;
    /*border-right: 1px solid rgba(0, 0, 0, 0.2);*/
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.quick-start-wrapper.layout-v2 .kana-card.header .char {
    font-size: 50px !important;
    color: #FFD700 !important;
    font-weight: bold;
}

.quick-start-wrapper.layout-v2 .kana-card .char {
    font-size: 56px !important;
    line-height: 1 !important;
    margin-bottom: 4px;
}

.quick-start-wrapper.layout-v2 .kana-card .romaji {
    transform: translateY(9px); /* 向下平移 5px */
}

.quick-start-wrapper.layout-v2 .kana-card:not(.header):not(.empty):not(.spacer) {
    width: 120px !important;
    height: 128px !important; /* 强制高度，防止被字符撑开 */
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    border-right: 1px solid rgba(0, 0, 0, 0.2) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2) !important;
    box-sizing: border-box !important;
}

.quick-start-wrapper.layout-v2 .kana-card:not(.header):not(.empty) {
    width: 120px !important;
    height: 128px !important;
    box-sizing: border-box !important;
    border-right: 1px solid rgba(0, 0, 0, 0.2) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2) !important;
    background: #ffffff !important;
}

.quick-start-wrapper.layout-v2 .kana-card.empty {
    border-bottom: 1px solid rgba(0, 0, 0, 0.2) !important; /* 形成内容行的顶部线 */
    /*border-right: 1px solid rgba(0, 0, 0, 0.2) !important;  /* 补齐垂直分割线 */
    background: transparent !important;
    width: 120px !important;
    height: 70px !important; /* 与 header 高度保持一致 */
}

.quick-start-wrapper.layout-v2 .kana-content-grid {
    display: grid !important;
    grid-template-columns: repeat(5, 120px) !important;
    width: 600px !important;
    /* 整体左移并补齐左、上边框 */
    margin-left: 40px !important;
    border-top: 1px solid rgba(0, 0, 0, 0.2) !important;
    /*border-left: 1px solid rgba(0, 0, 0, 0.2) !important;*/
    gap: 0 !important;
    cursor: pointer;  /* ✅ 添加手型鼠标样式 */
}

.quick-start-wrapper.layout-v4 .kana-card:hover {
    background-color: rgba(0, 0, 0, 0.03) !important;
    /* 悬浮时颜色可以更深一点点，比如 0.25 */
}

/* 交互修正：V4悬浮时不应缩放整体，只变背景 */
.quick-start-wrapper.layout-v4 .kana-card:not(:nth-child(5n+2)):not(:nth-child(5n+4)):hover {
    /*background-color: rgba(0, 0, 0, 0.03) !important;*/
    transform: none !important;
    box-shadow: none !important;
}

.quick-start-wrapper.layout-v4 .kana-card.spacer {
   border-right: none !important;
    border-bottom: none !important;
    background: transparent !important;
}

.quick-start-wrapper.layout-v4 .kana-card.empty {
     border-right: none !important;

}

.quick-start-wrapper.layout-v3 .kana-card.spacer {
    width: 12px !important;
    border-bottom: none !important;
    background: #fcfcfc !important; /* 淡淡的底色区分 */
}

.quick-start-wrapper .kana-card.spacer,
.quick-start-wrapper .kana-card.empty {
    border-right: 1px solid rgba(0, 0, 0, 0.2) !important;
    /*border-bottom: 1px solid rgba(0, 0, 0, 0.2) !important;*/
    box-sizing: border-box !important; /* 确保边框不挤压尺寸 */
    background: #ffffff !important;   /* 统一背景色 */

    pointer-events: none; /* 彻底物理隔离鼠标事件 */
    cursor: default;
}

/* 隐藏空位内部可能存在的文字 */
.kana-card.empty .char,
.kana-card.empty .romaji {
    display: none;
}

/* 视频弹窗遮罩层 */
.quick-start-wrapper .video-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: transparent;        /* ✅ 完全透明背景 */
    backdrop-filter: none;          /* ✅ 去掉模糊效果 */
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.3s ease;
    /*pointer-events: none;            ✅ 让点击穿透遮罩层 */
}

/* 视频弹窗内容区 */
.quick-start-wrapper .video-modal-content {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    z-index: 10000;
    width: 240px;
    max-width: 240px;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.9);
    pointer-events: auto !important;         /* ✅ 内容区可以响应点击 */
}

/* 视频弹窗头部 */
.quick-start-wrapper .video-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: linear-gradient(to bottom, #f8f8f8, #e8e8e8);  /* ✅ 渐变背景 */
    border-bottom: 1px solid #d0d0d0;  /* ✅ 加深分隔线 */
}

/* 视频标题标签 */
.quick-start-wrapper .video-title-tag {
    font-size: 12px;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;  /* ✅ 限制最大宽度，防止溢出 */
}

/* 关闭按钮 */
.quick-start-wrapper .close-btn {
    background: none;
    border: none;
    font-size: 20px;                 /* ✅ 调小按钮 */
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 24px;                     /* ✅ 调小尺寸 */
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
    flex-shrink: 0;                  /* ✅ 防止被压缩 */
}

.quick-start-wrapper .close-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #333;
}

/* 视频播放区域 */
.quick-start-wrapper .video-body {
    padding: 0;
    background: #000;
}

.quick-start-wrapper .protected-video {
    width: 100%;
    height: auto;
    display: block;
    max-height: 320px;              /* ✅ 标准高度：320px */
}

/* 通用模块内容区域 */
.vocab-content-area {
    position: relative !important;
    display: flex;
    flex-direction: column;
    background-color: #fafafa;
}

.vocab-content-area::-webkit-scrollbar {
    width: 0;
    background: transparent;
}

