
/*
 * Vocabulary.css - 单词分类模块样式
 * 参考 QuickStart 二级/三级导航样式设计
 */

/* ============================================================
   1. 基础容器
   ============================================================ */
.vocabulary-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 100%;
    overflow: hidden;
    background-color: #fafafa;
    width: 100%;
    position: relative;
}

/* 空数据状态 */
.vocabulary-wrapper .vocab-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 400px;
    color: #86868b;
}

.vocabulary-wrapper .vocab-empty-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.vocabulary-wrapper .vocab-empty-text {
    font-size: 18px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 8px;
}

.vocabulary-wrapper .vocab-empty-hint {
    font-size: 14px;
    color: #86868b;
}

.vocabulary-wrapper .vocab-fixed-header {
    position: relative;
    top: 0;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    left: 0 !important;
    background: #ffffff;
    display: flex;
    flex-direction: column;
}

.vocabulary-wrapper .vocab-content-scroll-area {
    flex: 1;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    min-height: 0;
    min-width: 0;
    padding: 8px 6px 42px 4px;
}

/* 滚动条样式 */
.vocabulary-wrapper .vocab-content-scroll-area::-webkit-scrollbar {
    width: 8px;
}

.vocabulary-wrapper .vocab-content-scroll-area::-webkit-scrollbar-track {
    background: transparent;
}

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

/* ============================================================
   2. 二级导航（图标+文字，图标在上，文字在下）
   ============================================================ */
.vocabulary-wrapper .vocab-sub-nav-container {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: none;
    height: 58px;
    background: #ffffff !important;
    padding: 0 0 0 24px !important;
    box-sizing: border-box;
    z-index: 6000;
}

/* 底线伪元素 */
.vocabulary-wrapper .vocab-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;
}

/* 右侧滚动条遮挡 */
.vocabulary-wrapper .vocab-sub-nav-container::after {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    width: 8px;
    height: 58px;
    background: #ffffff;
    z-index: 20;
}

.vocabulary-wrapper .vocab-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;
    /* 隐藏横向滚动条（窄屏仍可滑动），避免破坏导航观感 */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.vocabulary-wrapper .vocab-sub-nav-bar::-webkit-scrollbar {
    display: none;
}

.vocabulary-wrapper .vocab-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;
}

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

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

/* 二级导航交互 */
.vocabulary-wrapper .vocab-sub-item:hover:not(.active) .vocab-sub-label { 
    color: #0066cc !important; 
}

.vocabulary-wrapper .vocab-sub-item.active .vocab-sub-label {
    color: rgba(29, 29, 31, 0.88) !important;
    text-shadow: 0.4px 0 0 currentColor;
}

.vocabulary-wrapper .vocab-sub-item.active .vocab-sub-icon {
    color: rgba(29, 29, 31, 0.88) !important;
}

/* ============================================================
   3. 三级导航（文字分隔样式）
   ============================================================ */
.vocabulary-wrapper .vocab-three-level-nav {
    display: flex !important;
    justify-content: flex-start !important;
    align-items: center !important;
    gap: 0 !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;
    box-sizing: border-box;
}

/* 三级导航底线 */
.vocabulary-wrapper .vocab-three-level-nav::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: #eee !important;
    z-index: 25;
}

/* 右侧滚动条遮挡 */
.vocabulary-wrapper .vocab-three-level-nav::after {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    width: 8px;
    height: 40px;
    background: #ffffff;
    z-index: 20;
}

.vocabulary-wrapper .vocab-nav-left {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    flex: 1 !important;
    gap: 0 !important;
}

.vocabulary-wrapper .vocab-nav-search {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-left: auto;
    padding-right: 16px;
    flex-shrink: 0;
}

.vocabulary-wrapper .vocab-search-input {
    width: 200px;
    height: 30px;
    padding: 0 10px;
    font-size: 14px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 7px;
    outline: none;
    background: #ffffff;
    color: #1d1d1f;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
}

.vocabulary-wrapper .vocab-search-input:focus {
    border-color: #6B5CE7;
}

.vocabulary-wrapper .vocab-search-input::placeholder {
    color: #999;
}

.vocabulary-wrapper .vocab-search-btn {
    height: 28px;
    padding: 0 16px;
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    background: #6B5CE7;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    transition: background 0.2s ease, opacity 0.2s ease;
}

.vocabulary-wrapper .vocab-search-btn:hover {
    background: #5a4bd6;
    opacity: 0.9;
}

.vocabulary-wrapper .vocab-type-link {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100px !important;
    min-width: 100px !important;
    flex: 0 0 100px !important;
    padding: 0 !important;
    font-size: 14px !important;
    font-weight: 600;
    color: rgba(29, 29, 31, 0.55) !important;
    white-space: nowrap !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

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

.vocabulary-wrapper .vocab-type-link:hover:not(.active) { 
    color: #0066cc !important; 
}

.vocabulary-wrapper .vocab-type-link.active {
    color: rgba(29, 29, 31, 0.88) !important;
    text-shadow: 0.4px 0 0 currentColor;
}

/* 字典三级模块：标签较长，宽度自适应（默认 100px 固定宽仅适配 N5 等短标签） */
.vocabulary-wrapper .vocab-three-level-nav--dict .vocab-type-link {
    width: auto !important;
    min-width: 0 !important;
    flex: 0 0 auto !important;
    padding: 0 14px !important;
}

.vocabulary-wrapper .vocab-three-level-nav--dict .vocab-type-link:first-child {
    padding-left: 0 !important;
}

/* ============================================================
   4. 竖向广告栏（已移除）
   ============================================================ */

/* ============================================================
   搜索结果页面
   ============================================================ */
.vocabulary-wrapper .vocab-search-results-header {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.vocabulary-wrapper .vocab-search-results-top {
    margin-bottom: 12px;
}

.vocabulary-wrapper .vocab-search-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 500;
    color: #6B5CE7;
    background: rgba(107, 92, 231, 0.06);
    border: 1px solid rgba(107, 92, 231, 0.15);
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.vocabulary-wrapper .vocab-search-back-btn:hover {
    background: rgba(107, 92, 231, 0.12);
    border-color: rgba(107, 92, 231, 0.3);
}

.vocabulary-wrapper .vocab-search-results-title {
    font-size: 20px;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 4px;
    line-height: 1.4;
}

.vocabulary-wrapper .vocab-search-results-count {
    font-size: 14px;
    font-weight: 400;
    color: #86868b;
}

/* 搜索空结果状态 */
.vocabulary-wrapper .vocab-search-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 24px;
    text-align: center;
}

.vocabulary-wrapper .vocab-search-empty-icon {
    margin-bottom: 20px;
    opacity: 0.6;
}

.vocabulary-wrapper .vocab-search-empty-title {
    font-size: 18px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 8px;
}

.vocabulary-wrapper .vocab-search-empty-hint {
    font-size: 14px;
    color: #86868b;
    margin-bottom: 24px;
    max-width: 360px;
    line-height: 1.5;
}

.vocabulary-wrapper .vocab-search-retry-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 24px;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    background: #6B5CE7;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease, opacity 0.2s ease;
    box-shadow: 0 2px 8px rgba(107, 92, 231, 0.25);
}

.vocabulary-wrapper .vocab-search-retry-btn:hover {
    background: #5a4bd6;
    opacity: 0.9;
}

/* ============================================================
   5. 主体区域布局（固定索引栏 + 滚动内容区）
   ============================================================ */
.vocabulary-wrapper .vocab-body-container {
    display: flex;
    flex-direction: row;
    flex: 1;
    min-height: 0;
    overflow: hidden;
    position: relative;
}

/* 左侧假名字典索引栏（固定浮层，不随滚动移动） */
.vocabulary-wrapper .vocab-kana-index {
    width: 44px;
    flex-shrink: 0;
    display: flex;
    flex-direction: row;
    padding: 3px 0 8px;
    gap: 0;
    background: #f5f5f7;
    border-right: 1px solid rgba(0, 0, 0, 0.06);
    overflow-y: auto;
    overflow-x: hidden;
}

.vocabulary-wrapper .vocab-kana-index::-webkit-scrollbar {
    width: 0;
    display: none;
}

.vocabulary-wrapper .vocab-kana-index__col {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    gap: 0;
}

.vocabulary-wrapper .vocab-kana-index__item {
    font-size: 12px;
    font-weight: 400;
    color: rgba(29, 29, 31, 0.5);
    width: 18px;
    height: 16px;
    min-height: 16px;
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 3px;
    transition: all 0.15s ease;
    user-select: none;
    letter-spacing: 0;
    margin: 3px 0;
}

.vocabulary-wrapper .vocab-kana-index__item:hover {
    background: rgba(107, 92, 231, 0.12);
    color: #6B5CE7;
    font-weight: 600;
}

.vocabulary-wrapper .vocab-kana-index__item--active {
    background: #6B5CE7;
    color: #ffffff;
    font-weight: 700;
    border-radius: 4px;
    box-shadow: 0 1px 4px rgba(107, 92, 231, 0.3);
}

.vocabulary-wrapper .vocab-kana-index__item--active:hover {
    background: #5a4bd6;
    color: #ffffff;
}

.vocabulary-wrapper .vocab-main-card {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
    position: relative;
}

.vocabulary-wrapper .vocab-card-body {
    padding: 0;
}

/* ============================================================
   单词卡片列表（双列网格）
   ============================================================ */
.vocabulary-wrapper .vocab-card-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px 6px;
    padding-bottom: 0;
}

/* 单个单词卡片 */
.vocabulary-wrapper .vocab-word-card {
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: 10px 13px 14px;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.vocabulary-wrapper .vocab-word-card:hover {
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
    border-color: rgba(107, 92, 231, 0.2);
}

/* 卡片头部：序号 + 标题行 + 音频 */
.vocabulary-wrapper .vocab-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

.vocabulary-wrapper .vocab-card-header-left {
    display: flex;
    align-items: baseline;
    gap: 2px;
    flex-wrap: wrap;
}

/* 序号 (01, 02...) */
.vocabulary-wrapper .vocab-card-index {
    font-size: 13px;
    font-weight: 500;
    color: #999999;
    min-width: 15px;
    letter-spacing: 0.5px;
    position: relative;
    top: -2px;
}

/* 主假名（大字） */
.vocabulary-wrapper .vocab-card-headerword {
    font-size: 18px;
    font-weight: 700;
    color: #1d1d1f;
    line-height: 1.3;
}

/* 参考汉字（灰色括号） */
.vocabulary-wrapper .vocab-card-kanji {
    font-size: 15px;
    font-weight: 400;
    color: #888888;
    margin-left: -2px;
}

/* 竖向分隔线 | */
.vocabulary-wrapper .vocab-card-divider-v {
    width: 0;
    border-left: 1.5px solid rgba(0, 0, 0, 0.2);
    margin: 0 5px 0 -1px;
    user-select: none;
    height: 24px;
    align-self: center;
}

.vocabulary-wrapper .vocab-card-divider-v--no-kanji {
    margin-left: 5px;
}

/* 词性胶囊标签（边框+文字） */
.vocabulary-wrapper .vocab-card-pos-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: #6B5CE7;
    font-size: 12px;
    font-weight: 600;
    min-width: 24px;
    height: 19px;
    padding: 0 8px;
    border-radius: 10px;
    border: 1.5px solid #6B5CE7;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

/* 音频按钮（无边框蓝色图标） */
.vocabulary-wrapper .vocab-card-audio-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: transparent;
    cursor: pointer;
    color: #007AFF;
    transition: opacity 0.2s ease;
    flex-shrink: 0;
    padding: 0;
}

.vocabulary-wrapper .vocab-card-audio-btn:hover {
    opacity: 0.6;
}

.vocabulary-wrapper .vocab-card-audio-icon {
    width: 18px;
    height: 18px;
}

/* ============================================================
   IT用语终端控制台（移植 it_style_2.css，一键入黑数据流质感）
   ============================================================ */

/* 大黑表主容器 */
.vocabulary-wrapper .terminal-list-container {
    width: 100%;
    background-color: #0c0d12;
    border: 1px solid #1f2330;
    border-radius: 6px;
}

/* ALL 分页时列表底部留白：约两个条目高度，保证滚到底时最后一个单字不被固定分页栏遮挡 */
.vocabulary-wrapper .terminal-pagination-spacer {
    height: 90px;
}

/* IT用语终端模式：全深色背景、去卡片化（无圆角/边框/浅色外漏） */
.vocabulary-wrapper.vocab-terminal-mode {
    background-color: #0c0d12;
}

.vocabulary-wrapper.vocab-terminal-mode .vocab-content-scroll-area {
    background-color: #0c0d12;
    padding: 0;
}

.vocabulary-wrapper.vocab-terminal-mode .vocab-content-scroll-area::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
}

.vocabulary-wrapper.vocab-terminal-mode .terminal-list-container {
    border: none;
    border-radius: 0;
}

.vocabulary-wrapper.vocab-terminal-mode .terminal-top-control-panel {
    border-radius: 0;
}

.vocabulary-wrapper.vocab-terminal-mode .terminal-list-body {
    border-radius: 0;
}

/* 顶部控制箱：横向五十音 + 右侧搜索栏 + 表头一体化面板（吸顶，滚动时仅内容列表移动） */
.vocabulary-wrapper .terminal-top-control-panel {
    position: sticky;
    top: 0;
    z-index: 5;
    background-color: #06070a;
    border-radius: 6px 6px 0 0;
}

/* 吸顶遮罩围裙：面板上方延伸同色遮挡层，杜绝滚动内容从顶部缝隙透出 */
.vocabulary-wrapper .terminal-top-control-panel::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -48px;
    height: 48px;
    background-color: #06070a;
}

/* 控制行：横向五十音 + 右侧搜索栏 */
.vocabulary-wrapper .terminal-control-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    gap: 20px;
}

/* 超高密度微型像素五十音按键流 */
.vocabulary-wrapper .horizontal-pixel-sidebar {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    flex: 1;
}

/* 微型 8-bit 像素按键：0圆角、高紧凑，默认复古电子绿 */
.vocabulary-wrapper .p-btn {
    min-width: 20px;
    height: 18px;
    background-color: #111218;
    color: #51cf66;
    border-radius: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: "Courier New", monospace;
    font-size: 10px;
    font-weight: 800;
    cursor: pointer;
    border: 1px solid #1f2330;
    user-select: none;
    transition: all 0.1s;
}

/* 激活和悬浮变为赛博电光粉 */
.vocabulary-wrapper .p-btn:hover,
.vocabulary-wrapper .p-btn.active {
    background-color: #ff007f;
    color: #ffffff;
    border-color: #ff66b2;
    text-shadow: 0 0 2px #ffffff;
}

/* 紧凑型终端搜索组合框 */
.vocabulary-wrapper .terminal-search-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 320px;
    flex-shrink: 0;
}

.vocabulary-wrapper .search-input-box {
    flex: 1;
    display: flex;
    align-items: center;
    background-color: #111218;
    border: 1px solid #1f2330;
    padding: 0 8px;
    height: 24px;
}

.vocabulary-wrapper .prompt-sym {
    font-family: "Courier New", monospace;
    font-size: 12px;
    color: #ff007f;
    font-weight: 700;
    margin-right: 2px;
    white-space: nowrap;
}

.vocabulary-wrapper #terminal-search-input {
    width: 100%;
    background: none;
    border: none;
    outline: none;
    font-family: "Courier New", monospace;
    font-size: 11px;
    color: #ffffff;
}

.vocabulary-wrapper #terminal-search-input::placeholder {
    color: #8fa0b5;
}

/* 有棱有角的物理控制台执行按钮 */
.vocabulary-wrapper .pixel-search-btn {
    background-color: #111218;
    color: #00ff66;
    border: 1px solid #1f2330;
    border-radius: 0;
    font-family: "Courier New", monospace;
    font-size: 10px;
    font-weight: 700;
    height: 26px;
    padding: 0 10px;
    cursor: pointer;
    transition: all 0.1s;
}

.vocabulary-wrapper .pixel-search-btn:hover {
    background-color: #00ff66;
    color: #0c0d12;
    border-color: #66ffb2;
    box-shadow: 0 0 8px rgba(0, 255, 102, 0.4);
}

/* 表格头部元数据列名（高对比度亮化版；英文列加宽避免长词换行） */
.vocabulary-wrapper .list-table-header {
    display: grid;
    grid-template-columns: 50px 250px 1.35fr 1fr 56px;
    align-items: center;
    padding: 14px 16px;
    background-color: #141620;
    border-bottom: 2px solid #2d3247;
    font-family: "Courier New", Courier, monospace;
    font-size: 11px;
    font-weight: 800;
    color: #e2e8f0;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-shadow: 0 0 3px rgba(226, 232, 240, 0.2);
}

.vocabulary-wrapper .list-table-header .th-act {
    text-align: right;
}

/* 数据行架构 */
.vocabulary-wrapper .terminal-list-body {
    background-color: #0c0d12;
    border-radius: 0 0 6px 6px;
    overflow: hidden;
}

.vocabulary-wrapper .data-row-wrapper {
    border-bottom: 1px solid #141620;
    transition: background-color 0.15s;
}

.vocabulary-wrapper .data-row-wrapper:hover {
    background-color: #141620;
}

.vocabulary-wrapper .data-row-main {
    display: grid;
    grid-template-columns: 50px 250px 1.35fr 1fr 56px;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
}

/* 序号列：高亮青灰刻度 */
.vocabulary-wrapper .col-index {
    font-family: "Courier New", monospace;
    font-size: 12px;
    color: #718096;
    font-weight: 600;
}

.vocabulary-wrapper .col-japanese {
    font-size: 13px;
    font-weight: 500;
    color: #ffffff;
}

.vocabulary-wrapper .col-english {
    font-family: "Courier New", monospace;
    font-size: 13px;
    color: #00ff66;
    font-weight: 600;
}

.vocabulary-wrapper .col-meaning {
    font-size: 13px;
    font-weight: 400;
    color: #8fa0b5;
}

/* 操作列：音频按钮 + 展开箭头 */
.vocabulary-wrapper .col-act {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}

.vocabulary-wrapper .it-row-audio-btn {
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 2px;
    display: inline-flex;
    align-items: center;
    transition: color 0.2s;
}

.vocabulary-wrapper .it-row-audio-btn:hover {
    color: #00ff66;
}

.vocabulary-wrapper .it-row-audio-icon {
    width: 14px;
    height: 14px;
}

.vocabulary-wrapper .col-arrow {
    color: #3b4252;
    font-size: 9px;
    text-align: right;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), color 0.2s;
}

/* 行激活高亮态：左侧标志性电光粉刻度边线 */
.vocabulary-wrapper .data-row-wrapper.active {
    background-color: #11131c;
    box-shadow: inset 3px 0 0 #ff007f;
}

.vocabulary-wrapper .data-row-wrapper.active .col-arrow {
    transform: rotate(90deg);
    color: #ff007f;
}

/* 手风琴折叠面板 */
.vocabulary-wrapper .data-row-expand {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: #06070a;
}

.vocabulary-wrapper .data-row-wrapper.active .data-row-expand {
    max-height: 320px;
}

.vocabulary-wrapper .expand-inner {
    padding: 3px 0 3px 66px; /* 例句块与上/下条目间黑色间隔：上 3px、下 3px；右侧不留空隙，与条目背景右缘对齐 */
    border-top: 1px solid #141620;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* 像素方块义项微标 */
.vocabulary-wrapper .cyber-badge-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.vocabulary-wrapper .pixel-badge {
    background-color: #ff007f;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 5px;
    border: 1px solid #ff66b2;
    font-family: "Courier New", monospace;
    flex-shrink: 0;
}

.vocabulary-wrapper .pixel-badge-text {
    font-size: 13px;
    color: #cbd3e3;
}

/* 黑色大控制台专属：例句容器块（左侧粉色圆角竖线；上下内边距收紧 8px 高度） */
.vocabulary-wrapper .list-example-block {
    position: relative;
    background-color: #141620;
    padding: 8px 16px 8px 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    border-radius: 4px;
    margin-top: 0; /* 顶部黑色间隔统一由 .expand-inner 的 3px padding 控制 */
}

.vocabulary-wrapper .list-example-block::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: #d63384;
    border-radius: 4px;
}

.vocabulary-wrapper .ex-jp {
    font-size: 14px;
    color: #ffffff;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 2.2;
}

.vocabulary-wrapper .ex-jp ruby {
    ruby-position: over;
}

.vocabulary-wrapper .ex-jp rt {
    font-size: 10px;
    color: #8fa0b5;
    font-weight: 400;
}

.vocabulary-wrapper .ex-cn {
    font-size: 13px;
    color: #8fa0b5;
    padding-left: 2px;
}

/* 搜索为空熔断提示行 */
.vocabulary-wrapper .empty-search-row {
    padding: 30px;
    text-align: center;
    font-family: "Courier New", monospace;
    font-size: 13px;
    color: #ff007f;
    text-shadow: 0 0 3px rgba(255, 0, 127, 0.3);
}

/* 翻译行 */
.vocabulary-wrapper .vocab-card-meaning {
    font-size: 15px;
    font-weight: 600;
    color: #1d1d1f;
    line-height: 1.6;
    margin-bottom: 0;
    margin-top: -3px;
}

/* 义项区块 */
.vocabulary-wrapper .vocab-card-senses {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 2px;
}

.vocabulary-wrapper .vocab-card-sense-block {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* 例句区（左侧红色竖线） */
.vocabulary-wrapper .vocab-card-sentences {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.vocabulary-wrapper .vocab-card-sentence-item {
    padding-left: 10px;
    border-left: 2.5px solid #FF3B30;
    min-height: 2px;
    margin-top: 3px;
}

.vocabulary-wrapper .vocab-card-sentence-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.vocabulary-wrapper .vocab-sentence-audio-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    flex-shrink: 0;
    opacity: 0.5;
    transition: opacity 0.2s;
}

.vocabulary-wrapper .vocab-sentence-audio-btn:hover {
    opacity: 1;
}

.vocabulary-wrapper .vocab-sentence-audio-icon {
    width: 18px;
    height: 18px;
    color: #007AFF;
}

.vocabulary-wrapper .vocab-card-sentence-jp {
    font-size: 16px;
    font-weight: 500;
    color: #1d1d1f;
    line-height: 2.4;
    margin-bottom: 1px;
}

.vocabulary-wrapper .vocab-card-sentence-jp ruby {
    ruby-position: over;
}

.vocabulary-wrapper .vocab-card-sentence-jp rt {
    font-size: 11px;
    font-weight: 600;
    color: #FF3B30;
    text-align: center;
}

.vocabulary-wrapper .vocab-card-sentence-jp rp {
    display: none;
}

.vocabulary-wrapper .vocab-card-sentence-trans {
    font-size: 14px;
    color: #666;
    margin-top: -5px;
    line-height: 1.4;
}

.vocabulary-wrapper .vocab-card-sentence-note {
    font-size: 12px;
    color: #888888;
    line-height: 1.6;
}

/* 衍生区 */
.vocabulary-wrapper .vocab-card-derivative {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 14px;
    background: #fafafa;
    border-radius: 6px;
}

.vocabulary-wrapper .vocab-card-derivative-label {
    font-size: 13px;
    font-weight: 700;
    color: #FF3B30;
    flex-shrink: 0;
    line-height: 1.6;
}

.vocabulary-wrapper .vocab-card-derivative-text {
    font-size: 13px;
    color: #888888;
    line-height: 1.6;
}

/* ============================================================
   6. 横幅广告栏
   ============================================================ */
.vocabulary-wrapper .vocab-bottom-banner-ad {
    width: 100%;
    background: #f5f5f5;
    border-top: 1px solid #e0e0e0;
    padding: 8px 0;
    flex-shrink: 0;
    box-sizing: border-box;
}

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

.vocabulary-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;
}

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

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

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

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

.vocabulary-wrapper .ad-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    flex-shrink: 0;
    width: 100px;
}

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

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

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

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

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

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

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

/* ============================================================
   搜索结果模态框（覆盖整个 vocabulary-wrapper）
   ============================================================ */

/* 遮罩层 - 无背景色，仅覆盖三级导航及内容区域 */
.vocabulary-wrapper .vocab-search-modal__overlay {
    position: absolute;
    top: 58px;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: transparent;
    z-index: 5000;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: vocabModalFadeIn 0.25s ease;
}

@keyframes vocabModalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 模态框主体 - 铺满整个 vocabulary-wrapper */
.vocabulary-wrapper .vocab-search-modal__container {
    background: #ffffff;
    width: 100%;
    height: 100%;
    border-radius: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    overflow: hidden;
    animation: vocabModalSlideUp 0.3s ease;
}

@keyframes vocabModalSlideUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 关闭按钮（右上角） */
.vocabulary-wrapper .vocab-search-modal__close-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 28px;
    height: 28px;
    border: 1px solid #ddd;
    border-radius: 6px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    color: #666;
    font-size: 16px;
    background: #fff;
    transition: all 0.2s ease;
    z-index: 10;
}

.vocabulary-wrapper .vocab-search-modal__close-btn:hover {
    background: #f5f5f5;
    border-color: #bbb;
    color: #333;
}

/* 模态框头部 */
.vocabulary-wrapper .vocab-search-modal__header {
    padding: 20px 28px 8px;
    flex-shrink: 0;
}

.vocabulary-wrapper .vocab-search-modal__title {
    font-size: 20px;
    font-weight: 700;
    color: #1d1d1f;
    line-height: 1.4;
    margin-bottom: 4px;
    padding-right: 32px;
}

.vocabulary-wrapper .vocab-search-modal__count {
    font-size: 14px;
    font-weight: 400;
    color: #86868b;
}

/* 模态框内容区（可滚动） */
.vocabulary-wrapper .vocab-search-modal__body {
    flex: 1;
    overflow-y: auto;
    padding: 8px 28px 20px;
    min-height: 0;
}

.vocabulary-wrapper .vocab-search-modal__card-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* 空状态 */
.vocabulary-wrapper .vocab-search-modal__empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 24px;
    text-align: center;
}

.vocabulary-wrapper .vocab-search-modal__empty-icon {
    margin-bottom: 20px;
    opacity: 0.6;
}

.vocabulary-wrapper .vocab-search-modal__empty-title {
    font-size: 18px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 8px;
}

.vocabulary-wrapper .vocab-search-modal__empty-hint {
    font-size: 14px;
    color: #86868b;
    max-width: 360px;
    line-height: 1.5;
}

/* 模态框内滚动条 */
.vocabulary-wrapper .vocab-search-modal__body::-webkit-scrollbar {
    width: 6px;
}

.vocabulary-wrapper .vocab-search-modal__body::-webkit-scrollbar-track {
    background: transparent;
}

.vocabulary-wrapper .vocab-search-modal__body::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 3px;
}

.vocabulary-wrapper .vocab-search-modal__body::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.25);
}

/* ============================================================
   分页导航栏
   ============================================================ */
.vocabulary-wrapper .vocab-pagination {
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: 3px 8px;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    z-index: 100;
    width: auto;
}

.vocabulary-wrapper .vocab-pagination__item {
    min-width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 400;
    color: rgba(29, 29, 31, 0.45);
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.15s ease;
    user-select: none;
    padding: 0 2px;
}

.vocabulary-wrapper .vocab-pagination__item:hover {
    background: rgba(107, 92, 231, 0.12);
    color: #6B5CE7;
}

.vocabulary-wrapper .vocab-pagination__item--active {
    background: rgba(107, 92, 231, 0.85);
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 1px 4px rgba(107, 92, 231, 0.25);
    margin: 2px;
}

.vocabulary-wrapper .vocab-pagination__item--active:hover {
    background: rgba(90, 75, 210, 0.95);
    color: #ffffff;
}

/* 分页前后翻页箭头（页码超过 10 个时显示） */
.vocabulary-wrapper .vocab-pagination__arrow {
    min-width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    color: rgba(29, 29, 31, 0.6);
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.15s ease;
    user-select: none;
    padding: 0 2px;
}

.vocabulary-wrapper .vocab-pagination__arrow:hover {
    background: rgba(107, 92, 231, 0.12);
    color: #6B5CE7;
}

/* ============================================================
   动词活用 — 专用卡片样式
   ============================================================ */

/* --- 动词选择标签条 --- */
.vocabulary-wrapper .verb-select-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
    padding: 0 4px;
}

.vocabulary-wrapper .verb-select-tag {
    padding: 6px 18px;
    border: 1.5px solid rgba(0, 0, 0, 0.12);
    border-radius: 20px;
    background: #fff;
    font-size: 14px;
    font-weight: 500;
    color: #555;
    cursor: pointer;
    transition: all 0.2s ease;
}

.vocabulary-wrapper .verb-select-tag:hover {
    border-color: #c8507a;
    color: #c8507a;
}

.vocabulary-wrapper .verb-select-tag.active {
    background: #c8507a;
    border-color: #c8507a;
    color: #fff;
    font-weight: 600;
}

/* --- 动词活用卡片列表容器 --- */
.vocabulary-wrapper .verb-card-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 4px 0;
}

/* --- 动词详情卡片 --- */
.vocabulary-wrapper .verb-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
    padding: 20px 24px 9px;
    width: 720px;
    margin: 0 auto;
    position: relative;
}

.vocabulary-wrapper .verb-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid #d63384;
    padding-bottom: 4px;
    margin-bottom: 5px;
}

.vocabulary-wrapper .verb-card-title-row {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px;
}

.vocabulary-wrapper .verb-reading {
    font-size: 22px;
    font-weight: 800;
    color: #444;
    letter-spacing: 0.5px;
    line-height: 1.3;
}

.vocabulary-wrapper .verb-kanji-bracket {
    font-size: 18px;
    font-weight: 700;
    color: #555;
    margin-left: 2px;
    line-height: 1.3;
}

.vocabulary-wrapper .verb-meanings {
    font-size: 15px;
    color: #555;
    margin-left: 10px;
    font-weight: 500;
    line-height: 1.3;
}

.vocabulary-wrapper .verb-level-tag {
    flex-shrink: 0;
    padding: 3px 12px;
    background: #0066cc;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    border-radius: 8px;
    letter-spacing: 0.5px;
}

/* --- 敬体形式 + 自他动词标签 --- */
.vocabulary-wrapper .verb-sub-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 7px;
    font-size: 16px;
    color: #444;
    line-height: 1.3;
}

.vocabulary-wrapper .verb-polite-form {
    font-size: 16px;
    color: #444;
    line-height: 1.3;
}

.vocabulary-wrapper .verb-polite-form ruby {
    font-size: 16px;
}

.vocabulary-wrapper .verb-polite-form rt {
    font-size: 9px;
    color: #86868b;
}

.vocabulary-wrapper .verb-jita-tag {
    display: inline-block;
    padding: 2px 12px;
    background: linear-gradient(135deg, #c8507a, #d4668e);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    border-radius: 14px;
    letter-spacing: 1px;
}

/* --- 活用形表格（两列） --- */
.vocabulary-wrapper .verb-forms-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 20px;
    margin-bottom: 14px;
}

.vocabulary-wrapper .verb-form-table {
    width: 100%;
    border-collapse: collapse;
}

.vocabulary-wrapper .verb-form-table tr {
    cursor: pointer;
    transition: background 0.15s ease;
}

.vocabulary-wrapper .verb-form-table tr:hover {
    background: rgba(200, 80, 122, 0.04);
}

.vocabulary-wrapper .verb-form-table td {
    padding: 8px 4px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

.vocabulary-wrapper .verb-form-info {
    width: 50%;
}

.vocabulary-wrapper .verb-form-name {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #d63384;
    margin-bottom: 1px;
    line-height: 1.3;
}

.vocabulary-wrapper .verb-form-meaning {
    display: block;
    font-size: 14px;
    color: #444;
    line-height: 1.3;
}

.vocabulary-wrapper .verb-form-value {
    font-size: 18px;
    font-weight: 600;
    color: #444;
    text-align: right;
    letter-spacing: 0.5px;
    line-height: 1.3;
}

/* --- 例句区域 --- */
.vocabulary-wrapper .verb-example-area {
    margin-top: 7px;
    padding: 11px 18px;
    background: #fdf2f5;
    border-radius: 8px;
    border-left: 4px solid #d63384;
}

.vocabulary-wrapper .verb-example-jp {
    font-size: 15px;
    font-weight: 500;
    color: #333;
    line-height: 1.5;
    margin-bottom: 4px;
}

.vocabulary-wrapper .verb-example-jp ruby {
    font-size: 15px;
}

.vocabulary-wrapper .verb-example-jp rt {
    font-size: 9px;
    color: #86868b;
}

.vocabulary-wrapper .verb-example-zh {
    font-size: 15px;
    color: #555;
    line-height: 1.4;
}

/* ============================================================
   副词 — 专用单词卡片样式
   ============================================================ */

/* --- 副词卡片列表容器 --- */
.vocabulary-wrapper .adverb-card-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 4px 0;
}

/* --- 副词卡片 --- */
.vocabulary-wrapper .adverb-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
    padding: 20px 24px 16px;
    width: 720px;
    margin: 0 auto;
    position: relative;
}

.vocabulary-wrapper .adverb-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid #d63384;
    padding-bottom: 6px;
    margin-bottom: 6px;
}

.vocabulary-wrapper .adverb-card-title-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 0;
}

.vocabulary-wrapper .adverb-word {
    font-size: 24px;
    font-weight: 800;
    color: #222;
    letter-spacing: 0.5px;
    line-height: 1.3;
}

.vocabulary-wrapper .adverb-type-pill {
    display: inline-block;
    padding: 2px 12px;
    background: linear-gradient(135deg, #c8507a, #d4668e);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    border-radius: 14px;
    letter-spacing: 1px;
    flex-shrink: 0;
    line-height: 1.5;
}

.vocabulary-wrapper .adverb-brief {
    font-size: 14px;
    color: #86868b;
    font-weight: 500;
    line-height: 1.3;
}

.vocabulary-wrapper .adverb-card-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* --- 义项区块 --- */
.vocabulary-wrapper .adverb-sense-block {
    margin-top: 10px;
}

/* 义项之间虚线分隔 */
.vocabulary-wrapper .adverb-sense-block + .adverb-sense-block {
    border-top: 1px dashed rgba(214, 51, 132, 0.35);
    padding-top: 10px;
}

.vocabulary-wrapper .adverb-sense-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    line-height: 1.5;
}

.vocabulary-wrapper .adverb-sense-label {
    font-size: 13px;
    font-weight: 700;
    color: #c02372;
    background: #fbd9ec;
    border: 1px solid #e279b1;
    padding: 0.5px 10px; /* 高度减3px：上下内边距 2→0.5 */
    border-radius: 4px;
    letter-spacing: 1px;
    flex-shrink: 0;
    line-height: 1.5;
}

.vocabulary-wrapper .adverb-jp-def {
    font-size: 16px;
    font-weight: 700;
    color: #333;
}

.vocabulary-wrapper .adverb-sense-def {
    font-size: 15px;
    font-weight: 500;
    color: #333;
    margin-left: auto;
    text-align: right;
}

/* --- 例句 --- */
.vocabulary-wrapper .adverb-sentence-item {
    margin-top: 6px;
    padding-left: 2px;
}

.vocabulary-wrapper .adverb-sentence-row {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px;
}

.vocabulary-wrapper .adverb-sentence-jp {
    font-size: 15px;
    color: #333;
    line-height: 1.7;
}

.vocabulary-wrapper .adverb-sentence-jp ruby {
    font-size: 15px;
}

.vocabulary-wrapper .adverb-sentence-jp rt {
    font-size: 9px;
    color: #86868b;
}

.vocabulary-wrapper .adverb-sentence-trans {
    font-size: 14px;
    color: #6e6e73;
    margin-top: 1px;
    line-height: 1.5;
}

/* 义项例句译文：与日文例句同行显示 */
.vocabulary-wrapper .adverb-sentence-trans--inline {
    margin-top: 0;
}

/* --- 易混词辨析（浅粉底 + 红色竖条） --- */
.vocabulary-wrapper .adverb-disc-list {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.vocabulary-wrapper .adverb-disc-box {
    background: #fdf2f5;
    border-left: 4px solid #d63384;
    border-radius: 8px;
    padding: 11px 18px;
}

.vocabulary-wrapper .adverb-disc-title {
    font-size: 14px;
    font-weight: 700;
    color: #333;
    line-height: 1.5;
    margin-bottom: 4px;
}

.vocabulary-wrapper .adverb-disc-title-label {
    color: #d63384;
}

.vocabulary-wrapper .adverb-disc-target {
    color: #333;
}

.vocabulary-wrapper .adverb-disc-meaning {
    font-weight: 500;
    color: #555;
}

/* ========== 形容词卡片（复用 adverb-card 结构）附加样式 ========== */
.vocabulary-wrapper .adjective-reading {
    font-size: 15px;
    font-weight: 500;
    color: #888;
    margin-left: 2px;
}

/* 形容词胶囊组对齐容器：复刻滚动区内容盒的水平内缩
   左 = 假名栏44+边框1+内边距4-顶栏左内边距24 = 25；右 = 滚动条8+内边距6 = 14 */
.vocabulary-wrapper .adjective-group-align {
    flex: 1;
    min-width: 0;
    margin: 0 14px 0 25px;
}

/* 与单词卡相同的 720px 居中基准盒，胶囊组在其内右对齐 */
.vocabulary-wrapper .adjective-group-cardbox {
    width: 720px;
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: flex-end;
}

/* 形容词等级分组胶囊按钮组（N~ / N1 / N2，滑动底色样式） */
.vocabulary-wrapper .adjective-level-group {
    position: relative;
    display: flex;
    background: rgba(118, 118, 128, 0.12);
    border-radius: 4px;
    padding: 2px;
    height: 29px !important;
    flex-shrink: 0;
    box-sizing: border-box;
}

.vocabulary-wrapper .adjective-level-group__item {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    font-size: 13px !important;
    line-height: 20px !important;
    font-weight: 500;
    color: #1d1d1f;
    white-space: nowrap;
    z-index: 2;
    cursor: pointer;
}

.vocabulary-wrapper .adjective-level-group__slider {
    position: absolute;
    left: 2px;
    top: 2px;
    width: calc((100% - 4px) / 3);
    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;
}

/* 近义词/反义词行 */
.vocabulary-wrapper .adjective-relations {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin: 6px 0 4px;
    padding: 6px 10px;
    background: #faf6f8;
    border-radius: 8px;
}

.vocabulary-wrapper .adjective-relation-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
}

.vocabulary-wrapper .adjective-relation-tag {
    display: inline-block;
    padding: 1px 8px;
    border-radius: 10px;
    font-size: 12px;
    color: #fff;
}

.vocabulary-wrapper .adjective-relation-tag--syn {
    background: #7fae6a;
}

.vocabulary-wrapper .adjective-relation-tag--ant {
    background: #c8507a;
}

.vocabulary-wrapper .adjective-relation-word {
    color: #333;
    font-weight: 600;
}

/* ========== 字典/自他动词模块 ========== */
.vocabulary-wrapper .dict-jita-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 5px 4px;
}

/* 顶部蓝色规则贴士区 */
.vocabulary-wrapper .dict-jita-tips-box {
    background-color: #f0f7ff;
    border: 1px solid #cde4ff;
    border-radius: 4px;
    padding: 4px 16px 9px;
    margin-bottom: 12px;
}

.vocabulary-wrapper .dict-jita-tips-title {
    color: #2b6cb0;
    font-size: 16px;
    font-weight: bold;
    margin: 0 0 4px;
}

.vocabulary-wrapper .dict-jita-tips-subtitle {
    color: #666;
    font-size: 13px;
    margin: 0 0 8px;
}

.vocabulary-wrapper .dict-jita-rules-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}

/* 四卡相连：间隙为0，相邻卡片共用一条虚线，仅首尾保留外侧圆角 */
.vocabulary-wrapper .dict-jita-rule-card {
    background: #fff;
    border: 1px dashed #90cdf4;
    border-radius: 0;
    padding: 4px 10px;
    font-size: 13px;
}

.vocabulary-wrapper .dict-jita-rule-card:first-child {
    border-radius: 4px 0 0 4px;
}

.vocabulary-wrapper .dict-jita-rule-card:last-child {
    border-radius: 0 4px 4px 0;
}

.vocabulary-wrapper .dict-jita-rule-card + .dict-jita-rule-card {
    border-left: none;
}

.vocabulary-wrapper .dict-jita-rule-header {
    font-weight: bold;
    color: #2c5282;
    margin-bottom: 6px;
}

.vocabulary-wrapper .dict-jita-rule-example {
    color: #718096;
    font-size: 12px;
    margin-bottom: 4px;
}

.vocabulary-wrapper .dict-jita-rule-detail {
    color: #4a5568;
    line-height: 1.5;
}

/* 配对词汇表格 */
.vocabulary-wrapper .dict-jita-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.vocabulary-wrapper .dict-jita-table th,
.vocabulary-wrapper .dict-jita-table td {
    text-align: left;
    padding: 8px 12px;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: middle;
}

.vocabulary-wrapper .dict-jita-table th {
    color: #4a5568;
    background-color: #edf2f7;
    font-weight: 600;
    font-size: 12px;
    padding: 11px 12px;
}

/* 核心对齐逻辑 */
.vocabulary-wrapper .dict-jita-verb-pair {
    display: flex;
    align-items: center;
    gap: 20px;
}

.vocabulary-wrapper .dict-jita-verb-item {
    display: flex;
    flex-direction: column;
    width: 120px;
}

.vocabulary-wrapper .dict-jita-tag {
    font-size: 10px;
    padding: 0 4px;
    border-radius: 3px;
    margin-bottom: 4px;
    width: fit-content;
}

.vocabulary-wrapper .dict-jita-tag--zi {
    background: #ebf8ff;
    color: #3182ce;
    border: 1px solid #bee3f8;
}

.vocabulary-wrapper .dict-jita-tag--ta {
    background: #fffaf0;
    color: #dd6b20;
    border: 1px solid #fbd38d;
}

.vocabulary-wrapper .dict-jita-juzi {
    font-weight: bold;
    font-size: 15px;
}

.vocabulary-wrapper .dict-jita-pair-arrow {
    color: #cbd5e0;
}

.vocabulary-wrapper .dict-jita-col-meaning {
    color: #4a5568;
    line-height: 1.5;
}

/* 核心含义（含方括号）：色加重以与辨析内容区分 */
.vocabulary-wrapper .dict-jita-core {
    color: #000;
}

/* ========== 字典/拟声拟态词模块（粉色贴士区 + 列表 + 展开例句） ========== */
.vocabulary-wrapper .dict-onom-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 5px 4px;
}

/* 顶部规则贴士区（与自他动词同款蓝色系与间距） */
.vocabulary-wrapper .dict-onom-tips-box {
    background-color: #f0f7ff;
    border: 1px solid #cde4ff;
    border-radius: 4px;
    padding: 4px 16px 9px;
    margin-bottom: 12px;
}

.vocabulary-wrapper .dict-onom-tips-title {
    color: #2b6cb0;
    font-size: 16px;
    font-weight: bold;
    margin: 0 0 4px;
}

.vocabulary-wrapper .dict-onom-tips-subtitle {
    color: #666;
    font-size: 13px;
    margin: 0 0 8px;
}

.vocabulary-wrapper .dict-onom-rules-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}

/* 四卡相连：间隙为0，相邻卡片共用一条虚线，仅首尾保留外侧圆角 */
.vocabulary-wrapper .dict-onom-rule-card {
    background: #fff;
    border: 1px dashed #90cdf4;
    border-radius: 0;
    padding: 4px 10px;
    font-size: 13px;
}

.vocabulary-wrapper .dict-onom-rule-card:first-child {
    border-radius: 4px 0 0 4px;
}

.vocabulary-wrapper .dict-onom-rule-card:last-child {
    border-radius: 0 4px 4px 0;
}

.vocabulary-wrapper .dict-onom-rule-card + .dict-onom-rule-card {
    border-left: none;
}

.vocabulary-wrapper .dict-onom-rule-header {
    font-weight: bold;
    color: #2c5282;
    margin-bottom: 6px;
}

.vocabulary-wrapper .dict-onom-rule-example {
    color: #718096;
    font-size: 12px;
}

/* 列表表格（同自他动词表格样式） */
.vocabulary-wrapper .dict-onom-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.vocabulary-wrapper .dict-onom-table th,
.vocabulary-wrapper .dict-onom-table td {
    text-align: left;
    padding: 8px 12px;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: middle;
}

.vocabulary-wrapper .dict-onom-table th {
    color: #4a5568;
    background-color: #edf2f7;
    font-weight: 600;
    font-size: 12px;
    padding: 11px 12px;
}

.vocabulary-wrapper .dict-onom-row {
    cursor: pointer;
}

.vocabulary-wrapper .dict-onom-row:hover,
.vocabulary-wrapper .dict-onom-row--active {
    background-color: #fdf2f8;
}

.vocabulary-wrapper .dict-onom-word {
    font-weight: bold;
    font-size: 15px;
    color: #1a202c;
}

.vocabulary-wrapper .dict-onom-col-meaning {
    color: #4a5568;
    line-height: 1.5;
}

.vocabulary-wrapper .dict-onom-col-act {
    color: #db2777;
    font-size: 10px;
    text-align: center;
}

.vocabulary-wrapper .dict-onom-arrow {
    display: inline-block;
    transition: transform 0.2s;
}

.vocabulary-wrapper .dict-onom-arrow--open {
    transform: rotate(90deg);
}

/* 展开例句区（手风琴行） */
.vocabulary-wrapper .dict-onom-expand-row > td {
    background-color: #fdf7fa;
    padding: 6px 12px 10px 40px;
}

.vocabulary-wrapper .dict-onom-sense-block {
    margin-bottom: 6px;
}

.vocabulary-wrapper .dict-onom-sense-block:last-child {
    margin-bottom: 0;
}

.vocabulary-wrapper .dict-onom-sense-def {
    color: #2d3748;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
}

/* 例句与译文同一行：日文在左、译文在右，基线对齐 */
.vocabulary-wrapper .dict-onom-example-block {
    display: flex;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 6px;
}

.vocabulary-wrapper .dict-onom-ex-jp {
    flex: 0 1 auto;
    color: #2d3748;
    font-size: 14px;
    line-height: 1.6;
}

.vocabulary-wrapper .dict-onom-ex-trans {
    flex: 1 1 auto;
    min-width: 0;
    color: #718096;
    font-size: 13px;
    line-height: 1.6;
}

/* ========== 字典/惯用表现模块（复制 dict-onom 同款样式，无贴士区，便于独立微调） ========== */
.vocabulary-wrapper .dict-idiom-container {
    max-width: 1280px;
    /* 表头浅色背景与三级导航底线的间隔由 13px（滚动区8+容器5）收紧至约 1/3（4px） */
    margin: -9px auto 0;
    padding: 5px 4px;
}

.vocabulary-wrapper .dict-idiom-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.vocabulary-wrapper .dict-idiom-table th,
.vocabulary-wrapper .dict-idiom-table td {
    text-align: left;
    padding: 8px 12px;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: middle;
}

.vocabulary-wrapper .dict-idiom-table th {
    color: #4a5568;
    background-color: #edf2f7;
    font-weight: 600;
    font-size: 12px;
    padding: 11px 12px;
}

.vocabulary-wrapper .dict-idiom-row {
    cursor: pointer;
}

.vocabulary-wrapper .dict-idiom-row:hover,
.vocabulary-wrapper .dict-idiom-row--active {
    background-color: #fdf2f8;
}

.vocabulary-wrapper .dict-idiom-word {
    font-weight: bold;
    font-size: 15px;
    color: #1a202c;
}

.vocabulary-wrapper .dict-idiom-col-meaning {
    color: #4a5568;
    line-height: 1.5;
}

.vocabulary-wrapper .dict-idiom-col-act {
    color: #db2777;
    font-size: 10px;
    text-align: center;
}

.vocabulary-wrapper .dict-idiom-arrow {
    display: inline-block;
    transition: transform 0.2s;
}

.vocabulary-wrapper .dict-idiom-arrow--open {
    transform: rotate(90deg);
}

/* 展开例句区（手风琴行） */
.vocabulary-wrapper .dict-idiom-expand-row > td {
    background-color: #fdf7fa;
    padding: 6px 12px 4px 40px;
}

.vocabulary-wrapper .dict-idiom-sense-block {
    margin-bottom: 6px;
}

.vocabulary-wrapper .dict-idiom-sense-block:last-child {
    margin-bottom: 0;
}

.vocabulary-wrapper .dict-idiom-sense-def {
    color: #2d3748;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
}

/* 例句与译文同一行：日文在左、译文在右，基线对齐；
   行高收紧后换行行距紧凑，例句之间另加 3px 间隔便于区分 */
.vocabulary-wrapper .dict-idiom-example-block {
    display: flex;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 3px;
}

/* 末条例句不留下边距，保持展开区底部间隔不变 */
.vocabulary-wrapper .dict-idiom-example-block:last-child {
    margin-bottom: 0;
}

/* 例句圈号标号（①②③…）：与日文正文同色，右侧留小间距 */
.vocabulary-wrapper .dict-idiom-ex-num {
    margin-right: 6px;
    color: #2d3748;
}

.vocabulary-wrapper .dict-idiom-ex-jp {
    flex: 0 1 auto;
    color: #2d3748;
    font-size: 14px;
    line-height: 1.3;
}

.vocabulary-wrapper .dict-idiom-ex-trans {
    flex: 1 1 auto;
    min-width: 0;
    color: #718096;
    font-size: 13px;
    line-height: 1.3;
}

/* ========== 字典/其他〜模块（缩约形与音变：分类贴士区 + 惯用表现式表格） ========== */
.vocabulary-wrapper .dict-other-container {
    max-width: 1280px;
    margin: -9px auto 0;
    padding: 5px 4px;
}

/* 顶部分类贴士区（复制 dict-onom 同款蓝色系，2 分类改双列） */
.vocabulary-wrapper .dict-other-tips-box {
    background-color: #f0f7ff;
    border: 1px solid #cde4ff;
    border-radius: 4px;
    padding: 4px 16px 9px;
    margin-bottom: 12px;
}

.vocabulary-wrapper .dict-other-tips-title {
    color: #2b6cb0;
    font-size: 16px;
    font-weight: bold;
    margin: 0 0 4px;
}

.vocabulary-wrapper .dict-other-tips-subtitle {
    color: #666;
    font-size: 13px;
    margin: 0 0 8px;
}

.vocabulary-wrapper .dict-other-rules-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
}

/* 两卡相连：间隙为0，相邻卡片共用一条虚线，仅首尾保留外侧圆角 */
.vocabulary-wrapper .dict-other-rule-card {
    background: #fff;
    border: 1px dashed #90cdf4;
    border-radius: 0;
    padding: 4px 10px;
    font-size: 13px;
}

.vocabulary-wrapper .dict-other-rule-card:first-child {
    border-radius: 4px 0 0 4px;
}

.vocabulary-wrapper .dict-other-rule-card:last-child {
    border-radius: 0 4px 4px 0;
}

.vocabulary-wrapper .dict-other-rule-card + .dict-other-rule-card {
    border-left: none;
}

.vocabulary-wrapper .dict-other-rule-header {
    font-weight: bold;
    color: #2c5282;
    margin-bottom: 6px;
}

.vocabulary-wrapper .dict-other-rule-example {
    color: #718096;
    font-size: 12px;
}

/* 表格（复制 dict-idiom 同款样式，便于独立微调） */
.vocabulary-wrapper .dict-other-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.vocabulary-wrapper .dict-other-table th,
.vocabulary-wrapper .dict-other-table td {
    text-align: left;
    padding: 8px 12px;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: middle;
}

.vocabulary-wrapper .dict-other-table th {
    color: #4a5568;
    background-color: #edf2f7;
    font-weight: 600;
    font-size: 12px;
    padding: 11px 12px;
}

.vocabulary-wrapper .dict-other-colloquial {
    font-weight: bold;
    font-size: 15px;
    color: #1a202c;
}

.vocabulary-wrapper .dict-other-standard {
    font-size: 14px;
    color: #4a5568;
}

/* 核心含义与说明：示例句以换行单独显示 */
.vocabulary-wrapper .dict-other-col-meaning {
    color: #4a5568;
    line-height: 1.5;
    white-space: pre-line;
}

/* ==========================================================================
   代词逐级大纲树（1级分组虚线导轨 → 2级人称小类虚线导轨 → 3级词行）
   视觉对照讲义大纲；分级导轨参考 语法大全/NX语法/基础语法
   ========================================================================== */
.pronoun-tree-flow { padding: 8px 4px 24px; }
.pronoun-l1-block { margin-bottom: 14px; padding-left: 16px; border-left: 2px dashed #d8d8d8; }
.pronoun-l1-header { display: flex; align-items: center; gap: 8px; cursor: pointer; padding: 6px 0; }
.pronoun-l1-toggle { width: 20px; height: 20px; border: 1px solid #c9c9c9; background: #fff; border-radius: 4px; font-size: 13px; line-height: 1; cursor: pointer; color: #555; flex-shrink: 0; }
.pronoun-title-l1 { font-size: 18px; font-weight: 700; margin: 0; color: #222; }
.pronoun-l1-body { padding-left: 4px; }
.pronoun-l2-block { margin: 6px 0 10px 10px; padding-left: 16px; border-left: 2px dashed #e3e3e3; }
.pronoun-l2-header { padding: 4px 0; }
.pronoun-title-l2 { font-size: 15.5px; font-weight: 600; margin: 0; color: #444; }
.pronoun-word-list { display: flex; flex-direction: column; }
.pronoun-word-row { margin: 1px 0; }
.pronoun-word-line { display: flex; align-items: center; gap: 8px; padding: 5px 8px; border-radius: 6px; cursor: pointer; }
.pronoun-word-line:hover { background: #f5f7fa; }
.pronoun-word-toggle { width: 18px; height: 18px; border: 1px solid #d0d0d0; background: #fff; border-radius: 4px; font-size: 12px; line-height: 1; cursor: pointer; color: #777; flex-shrink: 0; }
.pronoun-word-jp { font-size: 16px; font-weight: 600; color: #222; }
.pronoun-word-anno { font-size: 13.5px; color: #666; }
.pronoun-pitch-chip { font-size: 11px; color: #8a6d3b; background: #fcf8e3; border: 1px solid #f0e4b8; border-radius: 10px; padding: 1px 8px; }
.pronoun-word-detail { margin: 2px 0 8px 26px; padding: 8px 12px; background: #fafbfc; border: 1px solid #ececec; border-radius: 8px; }
.pronoun-hint-row { font-size: 12.5px; color: #888; margin: 0 0 6px; }
.pronoun-word-detail .adverb-senses { margin: 0; }
