:root {
    --bg: #030712;
    --surface-1: #111827;
    --surface-2: #1f2937;
    --sidebar-bg: #111827;
    --accent: #38bdf8;
    --text-p: #e2e8f0;
    --text-s: #94a3b8;
    --border: rgba(255, 255, 255, 0.08);
    --border-solid: #1e293b;
    --hover-bg: #1e293b80;
    --danger: #fb7185;
    --card-bg: #1e293b40;
    --glass: rgba(17, 24, 39, 0.7);
    --base-font-size: 16px;
}

.loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}
.loading-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}
.loading-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(56, 189, 248, 0.15);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
.loading-text {
    color: var(--text-s);
    font-size: 14px;
    letter-spacing: 0.5px;
}

* { box-sizing: border-box; transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); }

body { 
    margin: 0; font-family: -apple-system, "Inter", "PingFang SC", sans-serif; 
    background: var(--bg); color: var(--text-p); height: 100vh; overflow: hidden;
    display: flex; flex-direction: column;
    -webkit-font-smoothing: antialiased;
    font-size: var(--base-font-size);
    letter-spacing: -0.01em;
    line-height: 1.6;
}

.top-nav {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0 16px; min-height: 48px; border-bottom: 1px solid var(--border);
    background: var(--glass); backdrop-filter: blur(12px); z-index: 10;
}
.logo { font-weight: 700; font-size: 1.1rem; letter-spacing: -0.5px; }
.nav-links { display: flex; gap: 8px; }
.reset-btn {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    border: 1px solid #ef4444;
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-right: 10px;
}
.reset-btn:hover {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border-color: #f87171;
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.4);
}
.nav-btn {
    background: transparent; border: 1px solid var(--border); color: var(--text-s);
    padding: 4px 10px; border-radius: 6px; cursor: pointer; font-size: 12px;
    display: inline-flex; align-items: center; gap: 4px;
}
.nav-btn:hover { 
    background: var(--hover-bg); 
    color: var(--text-p);
    border-color: rgba(255, 255, 255, 0.15);
}
.nav-icon { font-size: 11px; }

.search-section { 
    padding: 8px 16px; 
    border-bottom: 1px solid var(--border); 
    display: flex; 
    gap: 8px; 
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}
.search-box { 
    flex: 1;
    position: relative;
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.3);
}
.search-box:focus-within { 
    border-color: var(--accent); 
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2); 
}
.search-box input {
    width: 100%; background: transparent; border: none;
    padding: 8px 12px 8px 36px; border-radius: 10px; color: white; outline: none; font-size: 14px;
}
.search-icon { position: absolute; left: 12px; top: 8px; color: var(--text-s); font-size: 14px; }
.search-clear {
    position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
    color: var(--text-s); font-size: 18px; cursor: pointer; display: none;
    width: 20px; height: 20px; line-height: 20px; text-align: center;
    border-radius: 50%; background: var(--border);
}
.search-clear:hover { background: var(--text-s); color: var(--bg); }
.search-box input:not(:placeholder-shown) + .search-clear { display: block; }

.search-container {
    display: flex; align-items: center; border-bottom: 1px solid var(--border); background: var(--glass);
    backdrop-filter: blur(12px);
    gap: 8px;
}

.filter-toggle-btn {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.12) 0%, rgba(56, 189, 248, 0.06) 100%);
    border: 1px solid rgba(56, 189, 248, 0.25);
    padding: 0 12px;
    height: 40px;
    border-radius: 8px;
    color: var(--accent);
    font-size: 13px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    transition: all 0.2s ease;
    position: relative;
}
.filter-toggle-btn:hover { 
    color: #fff; 
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.22) 0%, rgba(56, 189, 248, 0.12) 100%);
    border-color: rgba(56, 189, 248, 0.45);
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.2);
}
.filter-icon { font-size: 14px; }
#filterToggleIcon { font-size: 10px; transition: transform 0.3s ease; }
#filterToggleIcon.rotated { transform: rotate(180deg); }
.filter-indicator {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    display: none;
    animation: pulse 2s ease-in-out infinite;
}
.filter-indicator.active { display: block; }
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.2); }
}

.filter-section {
    padding: 14px 18px; border-bottom: 1px solid var(--border); background: var(--sidebar-bg);
    display: flex; flex-direction: column; gap: 14px; align-items: stretch;
}
.filter-group { display: flex; flex-direction: row; gap: 14px; align-items: center; 
    min-height: 38px; margin-bottom: 5px; }
.filter-label { 
    font-size: 13px; color: var(--text-s); font-weight: 600; text-transform: uppercase; 
    min-width: 70px; flex-shrink: 0;
}
.filter-options { 
    display: flex; gap: 8px; flex-wrap: nowrap; overflow-x: auto; 
    flex: 1; scrollbar-width: thin; scrollbar-color: var(--border) transparent;
}
.filter-options::-webkit-scrollbar { height: 4px; }
.filter-options::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
.filter-options::-webkit-scrollbar-track { background: transparent; }
.filter-option {
    padding: 5px 12px; border-radius: 6px; border: 1px solid var(--border);
    font-size: 13px; color: var(--text-s); cursor: pointer; white-space: nowrap;
}
.filter-option:hover { background: var(--hover-bg); color: var(--text-p); }
.filter-option.active { background: rgba(56, 189, 248, 0.15); color: var(--accent); border-color: var(--accent); font-weight: 500; }

.main-container { display: flex; flex: 1; overflow: hidden; position: relative; }

.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 25;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 0;
}

.left-sidebar {
    width: 220px; border-right: 1px solid var(--border); padding: 12px 8px; overflow-y: auto;
    flex-shrink: 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}
.left-sidebar::-webkit-scrollbar { width: 6px; }
.left-sidebar::-webkit-scrollbar-thumb { 
    background: rgba(255, 255, 255, 0.1); 
    border-radius: 3px; 
}
.left-sidebar::-webkit-scrollbar-track { background: transparent; }
.tag-node {
    display: flex; justify-content: space-between; align-items: center;
    padding: 8px 10px; margin-bottom: 2px; border-radius: 6px; cursor: pointer; 
    font-size: 13px; color: var(--text-s);
    position: relative;
}
.tag-node:hover { background: var(--hover-bg); color: var(--text-p); }
.tag-node.active { 
    background: rgba(56, 189, 248, 0.1); 
    color: var(--accent); 
    font-weight: 600; 
}
.tag-node.active::after { 
    content: ""; 
    position: absolute; 
    left: 0; 
    top: 20%; 
    height: 60%; 
    width: 3px; 
    background: var(--accent); 
    border-radius: 0 4px 4px 0; 
}
.tag-count { font-size: 10px; opacity: 0.6; margin-left: 4px; }

.center-content { flex: 1; overflow-y: auto; background: var(--bg); min-height: 0; }
.table-header {
    display: grid; grid-template-columns: minmax(100px, 1.2fr) minmax(120px, 2fr) minmax(60px, 0.8fr);
    padding: 12px 16px; border-bottom: 1px solid var(--border);
    color: var(--text-s); font-size: 11px; text-transform: uppercase; position: sticky; top: 0; background: var(--bg);
}
.phrase-row {
    display: grid; grid-template-columns: minmax(100px, 1.2fr) minmax(120px, 2fr) minmax(60px, 0.8fr);
    padding: 14px 16px; cursor: pointer;
    align-items: center;
    background: transparent;
    border: 1px solid transparent;
    margin: 0 12px 8px 12px;
    border-radius: 12px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.phrase-row:hover { 
    background: var(--surface-1); 
    border-color: var(--border);
    transform: translateX(4px);
}
.p-word { color: var(--accent); font-size: 16px; font-weight: 700; word-break: break-word; padding-right: 8px; }
.p-mean { color: var(--text-s); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p-tags { display: flex; gap: 4px; flex-wrap: wrap; }
.mini-badge { 
    font-size: 11px; 
    padding: 2px 6px; 
    border-radius: 4px; 
    border: 1px solid var(--border); 
    color: var(--text-s); 
    white-space: nowrap;
    background: rgba(148, 163, 184, 0.05);
    transition: all 0.2s ease;
}
.mini-badge:hover { 
    background: rgba(148, 163, 184, 0.12);
    color: var(--text-p);
}

.right-sidebar {
    position: fixed; right: 0; top: 0; bottom: 0; z-index: 30;
    width: 280px; border-left: 1px solid var(--border); background: var(--sidebar-bg);
    display: flex; flex-direction: column; transition: transform 0.3s ease;
    transform: translateX(100%);
}
.right-sidebar.expanded { transform: translateX(0); }
.history-header {
    padding: 16px; font-size: 13px; color: var(--text-s); font-weight: 600;
    display: flex; justify-content: space-between; align-items: center; cursor: pointer;
    border-bottom: 1px solid var(--border);
}
#historyChevron {
    font-size: 24px; font-weight: 300; color: var(--accent);
    transition: transform 0.3s ease;
}
#historyChevron.rotated { transform: rotate(90deg); }
.history-list-container { overflow-y: auto; flex: 1; }
.history-card {
    padding: 10px 12px; border-bottom: 1px solid var(--border); cursor: pointer;
    transition: background 0.2s ease;
}
.history-card:hover { background: var(--hover-bg); }
.history-time { font-size: 10px; color: var(--text-s); margin-top: 2px; }

.history-nav-btn {
    background: #c78f00;
    color: #030712;
    border-color: #c78f00;
}

.history-nav-btn.active {
    background: #f59e0b;
    color: #030712;
    border-color: #f59e0b;
}

.modal {
    display: none; position: fixed; inset: 0; background: rgba(0, 0, 0, 0.4);
    z-index: 1000; align-items: center; justify-content: center; backdrop-filter: blur(8px);
    padding: 32px 16px;
    transition: opacity 0.3s ease;
}
.modal-box {
    background: var(--surface-1); width: 100%; max-width: 700px; max-height: 80vh;
    border-radius: 12px; border: 1px solid var(--border); overflow-y: auto; padding: 24px; position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: modalSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes modalSlideUp { 
    from { opacity: 0; transform: translateY(20px) scale(0.98); } 
    to { opacity: 1; transform: translateY(0) scale(1); } 
}
.close-btn { position: absolute; top: 16px; right: 16px; cursor: pointer; font-size: 24px; color: var(--text-s); }

.detail-header { margin-bottom: 22px; }
.detail-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 10px;
    flex-wrap: wrap;
}
.detail-header { padding: 0 6px; }
.detail-title-row h1 { margin-right: 4px; }
.detail-title-row .icon-btn { margin-left: 2px; }
.detail-tags-row{
    display:flex;
    align-items:center;
    gap: 12px;
    flex-wrap: wrap;
}
.pron-btns{
    display:flex;
    align-items:center;
    gap: 8px;
}
.icon-btn.pron-loading {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.25) 0%, rgba(251, 191, 36, 0.12) 100%);
    border-color: rgba(251, 191, 36, 0.5);
    color: #fbbf24;
}
.icon-btn.pron-playing {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.3) 0%, rgba(56, 189, 248, 0.15) 100%);
    border-color: rgba(56, 189, 248, 0.6);
    color: #38bdf8;
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.35);
}
.icon-btn.pron-error {
    background: linear-gradient(135deg, rgba(251, 113, 133, 0.25) 0%, rgba(251, 113, 133, 0.12) 100%);
    border-color: rgba(251, 113, 133, 0.55);
    color: #fb7185;
}
.icon-btn.pron-success {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.25) 0%, rgba(34, 197, 94, 0.12) 100%);
    border-color: rgba(34, 197, 94, 0.55);
    color: #22c55e;
}
.detail-tags{
    display:flex;
    gap:6px;
    flex-wrap:wrap;
    padding-left: 4px;
}
.meta-badge {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 999px;
    border: 1px solid var(--border);
    color: var(--text-s);
    background: rgba(148, 163, 184, 0.06);
    white-space: nowrap;
}
.meta-frequency { border-color: rgba(56, 189, 248, 0.25); color: rgba(56, 189, 248, 0.95); background: rgba(56, 189, 248, 0.08); }
.meta-difficulty { border-color: rgba(251, 113, 133, 0.25); color: rgba(251, 113, 133, 0.95); background: rgba(251, 113, 133, 0.08); }
.meta-type { border-color: rgba(148, 163, 184, 0.22); }
.icon-btn {
    border: 1px solid var(--border);
    background: rgb(0, 59, 74);
    color: var(--text-p);
    padding: 4px 10px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
}
.icon-btn:hover { background: var(--hover-bg); border-color: rgba(56, 189, 248, 0.4); }
.icon-btn.pron-disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: var(--border);
    color: var(--text-s);
}

.filter-option {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.filter-option-count {
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 999px;
    border: 1px solid var(--border);
    color: var(--text-s);
    background: rgba(148, 163, 184, 0.06);
    line-height: 1.4;
}
.filter-option.active .filter-option-count {
    border-color: rgba(56, 189, 248, 0.35);
    color: rgba(56, 189, 248, 0.95);
    background: rgba(56, 189, 248, 0.10);
}

.pagination{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap: 16px;
    padding: 20px 24px;
    border-top: 1px solid var(--border);
    background: var(--bg);
    flex-shrink: 0;
    z-index: 10;
}
.pagination-left,
.pagination-right{
    flex-shrink: 0;
}
.pagination-center{
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.page-btn{
    min-width: 90px;
    height: 50px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    background: rgba(30, 41, 59, 0.8);
    color: var(--text-s);
    border-radius: 8px;
    cursor: pointer;
    font-size: 20px;
    font-weight: 500;
    transition: all 0.15s ease;
    flex-shrink: 0;
}
.page-btn.active{
    min-width: 40px;
    width: 40px;
    height: 30px;
    background: var(--accent);
    color: var(--bg);
    border-color: var(--accent);
    cursor: default;
}
.page-btn:disabled{
    opacity: 0.2;
    cursor: not-allowed;
}
.page-btn:hover:not(.active):not(:disabled){
    border-color: var(--accent);
    color: var(--accent);
    background: transparent;
}
.page-info{
    color: var(--text-s);
    font-size: 14px;
    font-weight: 500;
}

.confusion-table {
    width: 100%; border-collapse: collapse; margin-top: 12px; 
    background: var(--card-bg); border-radius: 8px; overflow: hidden;
}
.confusion-table th, .confusion-table td {
    padding: 12px; text-align: left; border-bottom: 1px solid var(--border); font-size: 14px;
}
.confusion-table th { background: rgba(251, 113, 133, 0.1); color: var(--danger); font-size: 12px; text-transform: uppercase; }
.cf-word-btn {
    display: inline-block; padding: 4px 10px; border-radius: 4px;
    background: rgba(56, 189, 248, 0.1); color: var(--accent);
    border: 1px solid rgba(56, 189, 248, 0.2); cursor: pointer; font-weight: 500; font-size: 13px;
}
.cf-word-btn:hover { background: var(--accent); color: var(--bg); }

.example-item {
    margin-bottom: 16px; padding-left: 12px; border-left: 2px solid var(--accent);
}
.example-en { font-size: 16px; font-style: italic; margin-bottom: 4px; color: var(--text-p); }
.example-cn { font-size: 13px; color: var(--text-s); }

.audio-disclaimer {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px;
    margin: 16px;
    background: rgba(148, 163, 184, 0.05);
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 8px;
    font-size: 12px;
    color: var(--text-s);
    line-height: 1.6;
}
.disclaimer-icon {
    font-size: 14px;
    flex-shrink: 0;
    margin-top: 1px;
}
.disclaimer-text {
    flex: 1;
}

/* ========== 响应式字体大小 ========== */

/* 720px - 最小尺寸 */
@media (max-width: 720px) {
    :root { --base-font-size: 14px; }
    .logo { font-size: 1rem; }
    .search-section { padding: 8px 12px; flex-wrap: wrap; }
    .search-box input { font-size: 13px; padding: 7px 28px 7px 32px; }
    .search-icon { left: 10px; top: 7px; font-size: 13px; }
    .search-clear { right: 8px; font-size: 16px; width: 18px; height: 18px; line-height: 18px; }
    .filter-toggle-btn { padding: 0 10px; font-size: 12px; height: 36px; }
    .filter-section { padding: 10px 12px; gap: 10px; }
    .filter-label { font-size: 11px; min-width: 50px; }
    .filter-option { padding: 4px 10px; font-size: 12px; }
    .filter-option-count { font-size: 9px; padding: 1px 5px; }
    .left-sidebar { width: 100px; padding: 8px 4px; }
    .tag-node { padding: 8px 6px; font-size: 13px; flex-direction: column; align-items: flex-start; }
    .tag-count { margin-left: 0; margin-top: 2px; font-size: 9px; }
    .table-header { grid-template-columns: 1fr 1.7fr; padding: 10px 12px; font-size: 10px; }
    .hide-mobile { display: none; }
    .phrase-row { grid-template-columns: 1fr 1.7fr; padding: 10px 12px; }
    .p-word { font-size: 13px; }
    .p-mean { font-size: 12px; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; }
    .p-tags { display: none; }
    .mini-badge { font-size: 10px; padding: 2px 5px; }
    .pagination { padding: 16px 20px; gap: 12px; }
    .page-btn { min-width: 66px; height: 40px; padding: 0 12px; font-size: 16px; }
    .page-info { font-size: 12px; }
    .nav-btn { padding: 3px 8px; font-size: 11px; }
    .nav-icon { display: none; }
    .right-sidebar { width: 200px; }
    .history-header { padding: 12px; font-size: 12px; }
    .history-card { padding: 8px 10px; }
    .history-time { font-size: 9px; }
    .audio-disclaimer { padding: 10px 12px; margin: 10px; font-size: 10px; }
    .disclaimer-icon { font-size: 12px; }
    .modal { padding: 20px 12px; }
    .modal-box { max-width: 100%; padding: 16px; }
    .close-btn { top: 12px; right: 12px; font-size: 20px; }
    .detail-header { margin-bottom: 16px; }
    .detail-title-row h1 { font-size: 20px; }
    .meta-badge { font-size: 10px; padding: 2px 6px; }
    .pron-btns { gap: 6px; }
    .icon-btn { padding: 3px 8px; font-size: 11px; }
    .detail-tags { gap: 4px; }
    .detail-tags-row { gap: 8px; }
    .confusion-table th, .confusion-table td { padding: 10px; font-size: 12px; }
    .confusion-table th { font-size: 10px; }
    .cf-word-btn { padding: 3px 8px; font-size: 11px; }
    .example-en { font-size: 13px; }
    .example-cn { font-size: 11px; }
}

/* 721px - 900px */
@media (min-width: 721px) and (max-width: 900px) {
    :root { --base-font-size: 16px; }
    .logo { font-size: 1.05rem; }
    .search-box input { font-size: 14px; }
    .filter-toggle-btn { padding: 0 10px; font-size: 13px; }
    .filter-section { padding: 12px 16px; }
    .filter-label { font-size: 12px; }
    .filter-option { padding: 5px 11px; font-size: 13px; }
    .left-sidebar { width: 130px; }
    .tag-node { padding: 8px 8px; font-size: 14px; }
    .tag-count { font-size: 10px; }
    .table-header { padding: 11px 14px; font-size: 11px; }
    .phrase-row { padding: 12px 14px; }
    .p-word { font-size: 14px; }
    .p-mean { font-size: 13px; }
    .pagination { padding: 18px 22px; gap: 14px; }
    .page-btn { min-width: 72px; height: 42px; padding: 0 14px; font-size: 17px; }
    .page-info { font-size: 13px; }
    .history-header { padding: 14px; font-size: 13px; }
    .audio-disclaimer { padding: 12px 16px; margin: 14px; font-size: 11px; }
    .modal { padding: 24px 14px; }
    .modal-box { padding: 20px; }
    .detail-title-row h1 { font-size: 24px; }
    .example-en { font-size: 15px; }
    .example-cn { font-size: 12px; }
}

/* 901px - 1280px */
@media (min-width: 901px) and (max-width: 1280px) {
    :root { --base-font-size: 18px; }
    .logo { font-size: 1.1rem; }
    .search-box input { font-size: 15px; padding: 9px 14px 9px 38px; }
    .search-icon { left: 12px; top: 9px; font-size: 15px; }
    .filter-toggle-btn { padding: 0 18px; font-size: 14px; margin: 8px 0 8px 16px; }
    .filter-section { padding: 14px 18px; }
    .filter-label { font-size: 13px; }
    .filter-option { padding: 6px 13px; font-size: 14px; }
    .left-sidebar { width: 160px; }
    .tag-node { padding: 9px 10px; font-size: 15px; }
    .tag-count { font-size: 11px; }
    .table-header { padding: 12px 16px; font-size: 12px; }
    .phrase-row { padding: 14px 16px; }
    .p-word { font-size: 16px; }
    .p-mean { font-size: 15px; }
    .mini-badge { font-size: 12px; padding: 3px 7px; }
    .pagination { padding: 20px 24px; gap: 16px; }
    .page-btn { min-width: 78px; height: 44px; padding: 0 14px; font-size: 18px; }
    .page-info { font-size: 13px; }
    .history-header { padding: 16px; font-size: 14px; }
    .history-card { padding: 12px 14px; }
    .audio-disclaimer { padding: 14px 18px; margin: 16px; font-size: 12px; }
    .modal { padding: 32px 20px; }
    .modal-box { padding: 24px; }
    .detail-title-row h1 { font-size: 28px; }
    .meta-badge { font-size: 12px; padding: 4px 10px; }
    .pron-btns { gap: 10px; }
    .icon-btn { padding: 5px 12px; font-size: 13px; }
    .detail-tags { gap: 6px; }
    .detail-tags-row { gap: 12px; }
    .confusion-table th, .confusion-table td { padding: 14px; font-size: 15px; }
    .confusion-table th { font-size: 12px; }
    .cf-word-btn { padding: 5px 12px; font-size: 14px; }
    .example-en { font-size: 17px; }
    .example-cn { font-size: 14px; }
}

/* 1281px - 1600px */
@media (min-width: 1281px) and (max-width: 1600px) {
    :root { --base-font-size: 21px; }
    .logo { font-size: 1.2rem; }
    .search-box input { font-size: 16px; padding: 10px 16px 10px 42px; }
    .search-icon { left: 14px; top: 10px; font-size: 16px; }
    .filter-toggle-btn { padding: 0 20px; font-size: 15px; }
    .filter-section { padding: 16px 20px; }
    .filter-label { font-size: 14px; min-width: 80px; }
    .filter-option { padding: 7px 15px; font-size: 15px; }
    .filter-option-count { font-size: 11px; padding: 2px 8px; }
    .left-sidebar { width: 240px; padding: 14px 10px; }
    .tag-node { padding: 10px 12px; font-size: 16px; margin-bottom: 4px; }
    .tag-count { font-size: 12px; }
    .table-header { padding: 14px 20px; font-size: 13px; }
    .phrase-row { padding: 16px 20px; }
    .p-word { font-size: 18px; }
    .p-mean { font-size: 17px; }
    .mini-badge { font-size: 13px; padding: 3px 8px; }
    .pagination { padding: 22px 26px; gap: 18px; }
    .page-btn { min-width: 84px; height: 46px; padding: 0 16px; font-size: 19px; }
    .page-info { font-size: 14px; }
    .right-sidebar { width: 300px; }
    .history-header { padding: 18px; font-size: 15px; }
    .history-card { padding: 14px 16px; }
    .history-time { font-size: 11px; }
    .audio-disclaimer { padding: 16px 20px; margin: 18px; font-size: 13px; }
    .disclaimer-icon { font-size: 15px; }
    .modal { padding: 40px 24px; }
    .modal-box { max-width: 800px; padding: 28px; }
    .close-btn { top: 18px; right: 18px; font-size: 28px; }
    .detail-header { margin-bottom: 26px; }
    .detail-title-row h1 { font-size: 32px; }
    .meta-badge { font-size: 13px; padding: 4px 12px; }
    .pron-btns { gap: 12px; }
    .icon-btn { padding: 6px 14px; font-size: 14px; }
    .detail-tags { gap: 8px; }
    .detail-tags-row { gap: 16px; }
    .confusion-table th, .confusion-table td { padding: 16px; font-size: 16px; }
    .confusion-table th { font-size: 13px; }
    .cf-word-btn { padding: 6px 14px; font-size: 15px; }
    .example-en { font-size: 19px; }
    .example-cn { font-size: 15px; }
}

/* 1601px - 1920px */
@media (min-width: 1601px) and (max-width: 1920px) {
    :root { --base-font-size: 24px; }
    .logo { font-size: 1.3rem; }
    .nav-btn { padding: 6px 14px; font-size: 14px; }
    .search-box input { font-size: 18px; padding: 12px 18px 12px 48px; }
    .search-icon { left: 16px; top: 12px; font-size: 18px; }
    .filter-toggle-btn { padding: 0 24px; font-size: 16px; min-height: 44px; margin: 10px 0 10px 20px; }
    .filter-section { padding: 18px 24px; }
    .filter-label { font-size: 15px; min-width: 90px; }
    .filter-option { padding: 8px 18px; font-size: 16px; }
    .filter-option-count { font-size: 12px; padding: 2px 10px; }
    .left-sidebar { width: 260px; padding: 16px 12px; }
    .tag-node { padding: 12px 14px; font-size: 17px; margin-bottom: 6px; }
    .tag-count { font-size: 13px; }
    .table-header { padding: 16px 24px; font-size: 14px; }
    .phrase-row { padding: 18px 24px; }
    .p-word { font-size: 21px; }
    .p-mean { font-size: 19px; }
    .mini-badge { font-size: 14px; padding: 4px 10px; }
    .pagination { padding: 24px 28px; gap: 20px; }
    .page-btn { min-width: 87px; height: 48px; padding: 0 16px; font-size: 20px; }
    .page-info { font-size: 14px; }
    .right-sidebar { width: 300px; }
    .history-header { padding: 20px; font-size: 16px; }
    .history-card { padding: 16px 18px; }
    .history-time { font-size: 12px; }
    .history-toggle-btn-desktop { padding: 0 16px; font-size: 14px; }
    .audio-disclaimer { padding: 18px 24px; margin: 20px; font-size: 14px; }
    .disclaimer-icon { font-size: 16px; }
    .modal { padding: 48px 32px; }
    .modal-box { max-width: 900px; padding: 32px; }
    .close-btn { top: 20px; right: 20px; font-size: 32px; }
    .detail-header { margin-bottom: 30px; }
    .detail-title-row h1 { font-size: 36px; }
    .detail-title-row { gap: 14px; }
    .meta-badge { font-size: 14px; padding: 5px 14px; }
    .pron-btns { gap: 14px; }
    .icon-btn { padding: 8px 16px; font-size: 15px; }
    .detail-tags { gap: 10px; }
    .detail-tags-row { gap: 20px; }
    .confusion-table th, .confusion-table td { padding: 18px; font-size: 18px; }
    .confusion-table th { font-size: 14px; }
    .cf-word-btn { padding: 8px 16px; font-size: 16px; }
    .example-en { font-size: 21px; }
    .example-cn { font-size: 16px; }
}

/* 1920px+ 最大尺寸 */
@media (min-width: 1921px) {
    :root { --base-font-size: 26px; }
    .logo { font-size: 1.4rem; }
    .nav-btn { padding: 8px 16px; font-size: 15px; }
    .search-box input { font-size: 20px; padding: 14px 20px 14px 52px; }
    .search-icon { left: 18px; top: 14px; font-size: 20px; }
    .filter-toggle-btn { padding: 0 28px; font-size: 18px; min-height: 50px; margin: 12px 0 12px 24px; }
    .filter-section { padding: 20px 28px; }
    .filter-label { font-size: 16px; min-width: 100px; }
    .filter-option { padding: 10px 20px; font-size: 18px; }
    .filter-option-count { font-size: 13px; padding: 3px 12px; }
    .left-sidebar { width: 200px; padding: 18px 14px; }
    .tag-node { padding: 14px 16px; font-size: 18px; margin-bottom: 8px; }
    .tag-count { font-size: 14px; }
    .table-header { padding: 18px 28px; font-size: 15px; }
    .phrase-row { padding: 20px 28px; }
    .p-word { font-size: 24px; }
    .p-mean { font-size: 21px; }
    .mini-badge { font-size: 15px; padding: 5px 12px; }
    .pagination { padding: 26px 32px; gap: 22px; }
    .page-btn { min-width: 93px; height: 50px; padding: 0 18px; font-size: 21px; }
    .page-info { font-size: 15px; }
    .right-sidebar { width: 340px; }
    .history-header { padding: 24px; font-size: 18px; }
    .history-card { padding: 18px 20px; }
    .history-time { font-size: 13px; }
    .history-toggle-btn-desktop { padding: 0 18px; font-size: 15px; }
    .audio-disclaimer { padding: 20px 28px; margin: 24px; font-size: 15px; }
    .disclaimer-icon { font-size: 18px; }
    .modal { padding: 56px 40px; }
    .modal-box { max-width: 1000px; padding: 36px; }
    .close-btn { top: 24px; right: 24px; font-size: 36px; }
    .detail-header { margin-bottom: 36px; }
    .detail-title-row h1 { font-size: 40px; }
    .detail-title-row { gap: 16px; }
    .meta-badge { font-size: 15px; padding: 6px 16px; }
    .pron-btns { gap: 16px; }
    .icon-btn { padding: 10px 18px; font-size: 16px; }
    .detail-tags { gap: 12px; }
    .detail-tags-row { gap: 24px; }
    .confusion-table th, .confusion-table td { padding: 20px; font-size: 20px; }
    .confusion-table th { font-size: 15px; }
    .cf-word-btn { padding: 10px 18px; font-size: 18px; }
    .example-en { font-size: 24px; }
    .example-cn { font-size: 18px; }
}

/* ========== 骨架屏加载效果 ========== */
.skeleton {
    background: linear-gradient(90deg, var(--surface-1) 25%, var(--surface-2) 50%, var(--surface-1) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: 6px;
}
@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
.skeleton-row {
    display: grid;
    grid-template-columns: minmax(100px, 1.2fr) minmax(120px, 2fr) minmax(60px, 0.8fr);
    padding: 14px 16px;
    margin: 0 12px 8px 12px;
    gap: 12px;
}
.skeleton-text {
    height: 16px;
    border-radius: 4px;
}
.skeleton-text.short { width: 60%; }
.skeleton-text.medium { width: 80%; }
.skeleton-badge {
    height: 20px;
    width: 50px;
    border-radius: 4px;
}

/* ========== 发音按钮加载动画 ========== */
.icon-btn.pron-loading {
    position: relative;
    overflow: hidden;
}
.icon-btn.pron-loading::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(251, 191, 36, 0.4), transparent);
    animation: pron-sweep 1s ease-in-out infinite;
}
@keyframes pron-sweep {
    0% { left: -100%; }
    100% { left: 100%; }
}
.icon-btn.pron-success {
    animation: pron-flash 0.4s ease;
}
@keyframes pron-flash {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* ========== 移动端触觉反馈 ========== */
@media (max-width: 720px) {
    .action-btn,
    .filter-option,
    .tag-node,
    .phrase-row,
    .icon-btn,
    .page-btn {
        -webkit-tap-highlight-color: transparent;
    }
    .action-btn:active,
    .filter-option:active,
    .tag-node:active,
    .icon-btn:active,
    .page-btn:active {
        transform: scale(0.96);
    }
    .phrase-row:active {
        transform: scale(0.98) translateX(4px);
    }
}

/* ========== 增强的阴影系统 ========== */
.shadow-sm {
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}
.shadow-md {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}
.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}
.shadow-xl {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* ========== 过渡动画增强 ========== */
.fade-in {
    animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.slide-up {
    animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
