/* CSS变量定义 */
@font-face {
    font-family: 'DIN';
    src: url('./data/fonts/DIN.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

:root {
    --bg-color: #ffffff;
    --text-color: #333333;
    --border-color: rgba(0, 0, 0, 0.12);
    --shadow-color: rgba(0, 0, 0, 0.1);
    --hover-color: rgba(0, 0, 0, 0.04);
    --input-bg: #ffffff;
    --version-bg: #f5f5f5;
    --version-text: #666666;
    --icon-color: #666666;
    --divider-color: rgba(0, 0, 0, 0.12);
    --search-container-bg: #ffffff;
    --search-container-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --settings-panel-bg: #ffffff;
    --settings-panel-border: #e9ecef;
    --correct-color: #4caf50;
    --incorrect-color: #f44336;
    --tricky-highlight-bg: rgba(255, 193, 7, 0.2);
    --tricky-highlight-color: #e65100;
    --placeholder-color: #999999;
}

/* 深色模式 */
[data-theme="dark"] {
    --bg-color: #121212;
    --text-color: #e0e0e0;
    --border-color: rgba(255, 255, 255, 0.12);
    --shadow-color: rgba(0, 0, 0, 0.3);
    --hover-color: rgba(255, 255, 255, 0.08);
    --input-bg: #1e1e1e;
    --version-bg: #2d2d2d;
    --version-text: #b0b0b0;
    --icon-color: #b0b0b0;
    --divider-color: rgba(255, 255, 255, 0.12);
    --search-container-bg: #1e1e1e;
    --search-container-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    --settings-panel-bg: #1e1e1e;
    --settings-panel-border: #333333;
    --correct-color: #66bb6a;
    --incorrect-color: #ef5350;
    --tricky-highlight-bg: rgba(255, 193, 7, 0.3);
    --tricky-highlight-color: #ffb300;
    --placeholder-color: #888888;
}

/* 顶栏样式 */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background-color: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 4px var(--shadow-color);
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.top-bar-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: cover;
}

.top-bar-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    color: var(--text-color);
}

.top-bar-version {
    background-color: var(--version-bg);
    color: var(--version-text);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    font-family: 'DIN', monospace;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-bar-btn {
    background: none;
    border: none;
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.top-bar-btn:hover {
    background-color: var(--hover-color);
}

.top-bar-btn .material-icons {
    font-size: 18px;
    color: var(--icon-color);
}

/* 重要声明横幅样式 */
.disclaimer-banner {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.disclaimer-banner-content {
    max-width: 720px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.disclaimer-banner-content:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.disclaimer-banner-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    flex-shrink: 0;
}

.disclaimer-banner-icon .material-icons {
    font-size: 18px;
    color: white;
}

.disclaimer-banner-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.disclaimer-banner-title {
    font-size: 14px;
    font-weight: 600;
    color: white;
    line-height: 1.2;
}

.disclaimer-banner-desc {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.2;
}

.disclaimer-banner-btn {
    background: none;
    border: none;
    padding: 8px;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.disclaimer-banner-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.disclaimer-banner-btn .material-icons {
    font-size: 20px;
    transition: transform 0.2s ease;
}

.disclaimer-banner-content:hover .disclaimer-banner-btn .material-icons {
    transform: translateX(2px);
}

/* 移动端横幅响应式 */
@media (max-width: 768px) {
    .disclaimer-banner-content {
        padding: 10px 15px;
        gap: 10px;
    }
    
    .disclaimer-banner-icon {
        width: 28px;
        height: 28px;
    }
    
    .disclaimer-banner-icon .material-icons {
        font-size: 16px;
    }
    
    .disclaimer-banner-title {
        font-size: 13px;
    }
    
    .disclaimer-banner-desc {
        font-size: 11px;
    }
    
    .disclaimer-banner-btn .material-icons {
        font-size: 18px;
    }
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif; /* 使用系统字体 */
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 720px; /* 适当增加宽度 */
    margin: 0 auto;
    padding: 12px; /* 减少整体内边距 */
    box-sizing: border-box; /* 确保宽度计算包含padding */
    /* 移除旧的背景和阴影，MDC 会提供 */
}

/* 移除 h1 的旧样式，MDC Typography 会处理 */

/* 移除 #searchInput 的旧样式，MDC TextField 会处理 */

#results {
    max-height: 800px; /* 大幅增加高度 */
    overflow-y: auto;
    /* 移除旧的边框等，MDC List 会处理 */
}

.question-item {
    /* 使用 MDC List Item 样式 */
    padding: 6px 0; /* 进一步减少上下间距 */
    border-bottom: 1px solid var(--divider-color); /* Material Design 分割线 */
}

.question-item:last-child {
    border-bottom: none;
}

.question-title {
    /* 使用 MDC Typography */
    font-weight: 700; /* Material Design 推荐字重 */
    margin-bottom: -20px; /* 进一步减少题干和选项间距 */
    color: var(--text-color); /* 确保深色模式下可读 */
    display: flex;
    align-items: center;
    gap: 8px;
}

.question-number {
    background-color: #999999;
    color: white;
    padding: 2px 4px;
    border-radius: 4px;
    line-height: 1.4;
    font-size: 12px;
    font-weight: 400;
    min-width: 24px;
    max-width: 60px;
    text-align: center;
    flex-shrink: 0;
    white-space: nowrap;
    overflow: hidden;
    font-family: 'DIN', monospace;
}

.options-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
    margin-top: 2px; /* 与题干下边距对称 */
}

.options-list li {
    margin-bottom: 6px; /* 减少选项间距 */
    padding-left: 24px; /* 调整缩进 */
    position: relative;
    cursor: default;
    line-height: 1.4; /* 改善可读性 */
    word-wrap: break-word; /* 强制长文字换行 */
    word-break: break-word; /* 兼容性换行 */
    overflow-wrap: break-word; /* 现代浏览器换行 */
    display: block; /* 改为块级布局，避免flex导致的文本中断 */
    color: var(--text-color); /* 确保深色模式下可读 */
}

.options-list li .highlight {
    display: inline; /* 确保高亮文本正常显示 */
}

.options-list li::before {
    font-family: 'Material Icons';
    position: absolute;
    left: 0;
    top: 0;
    font-size: 18px;
    line-height: 1.4;
    width: 20px; /* 固定图标宽度 */
    text-align: center; /* 图标居中 */
}

.options-list li.correct {
    color: var(--correct-color); /* 绿色文字 */
}

.options-list li.correct::before {
    content: "check_circle"; /* Material Icon */
    color: var(--correct-color); /* 绿色图标 */
}

.options-list li.incorrect {
    color: var(--placeholder-color); /* 灰色文字 */
}

.options-list li.incorrect::before {
    content: "cancel"; /* Material Icon */
    color: var(--incorrect-color); /* 红色图标 */
}

/* 为加载文本添加样式 */
#results p,
#results div[style*="text-align: center"] /* 兼容旧的 "加载数据中..." 写法 */
{
    padding: 16px;
    text-align: center;
    color: var(--icon-color);
}

/* 确保 MDC 组件正确初始化 */
.mdc-text-field {
    width: 100%;
}

.mdc-text-field .mdc-text-field__input {
    color: var(--text-color) !important;
}

.mdc-text-field .mdc-floating-label {
    color: var(--icon-color) !important;
}

.mdc-text-field .mdc-line-ripple::before {
    border-bottom-color: var(--border-color) !important;
}

.mdc-text-field .mdc-line-ripple::after {
    border-bottom-color: #ff9800 !important;
}

.mdc-list-item {
    padding: 8px; /* 重置默认padding，使用question-item的padding */
}

.mdc-list-item__text {
    display: block;
    color: var(--text-color);
}

.mdc-list-item__secondary-text {
    display: block;
    color: var(--icon-color);
}

.mdc-typography--headline4 {
    text-align: center;
    margin-bottom: 24px;
    color: var(--text-color);
}

/* 搜索词高亮样式 */
.highlight {
    color: #ff9800;
    font-weight: 600;
}

/* 高亮词样式 */
.tricky-highlight {
    color: var(--tricky-highlight-color);
    font-weight: 600;
    background-color: var(--tricky-highlight-bg);
    padding: 1px 2px;
    border-radius: 2px;
}

/* 搜索筛选器样式 */
/* 搜索容器整体样式 */
.search-container {
    background: var(--search-container-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding-top: 20px;
    padding-right: 20px;
    padding-left: 20px;
    padding-bottom: 5px;
    margin-bottom: 8px;
    box-shadow: var(--search-container-shadow);
    transition: all 0.3s ease;
    max-width: -webkit-fill-available;
}

.search-container.expanded {
    width: 100%;
}

.search-input {
    width: 100%;
    margin-bottom: 2px;
}

.search-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0px;
}

.search-filters {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* 自定义复选框样式 */
.search-filters .custom-form-field {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    height: 32px;
}

.search-filters .custom-checkbox {
    width: 14px;
    height: 14px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    border: 1.5px solid #ff9800;
    border-radius: 50%;
    background-color: transparent;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.search-filters .custom-checkbox:checked {
    background-color: #ff9800;
    border-color: #ff9800;
}



.search-filters .custom-checkbox:hover {
    box-shadow: 0 0 0 2px rgba(255, 152, 0, 0.2);
}

.search-filters label {
    font-size: 12px;
    color: var(--text-color);
    cursor: pointer;
    white-space: nowrap;
    user-select: none;
}

.search-settings {
    display: flex;
    align-items: center;
}

.search-settings .mdc-icon-button {
    color: var(--icon-color);
    transition: color 0.2s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-settings .mdc-icon-button .material-icons {
    transition: transform 0.3s ease;
}

.search-settings .mdc-icon-button.expanded .material-icons {
    transform: rotate(180deg);
}

.search-settings .mdc-icon-button:hover {
    color: #1976d2;
}

.search-settings .mdc-icon-button .material-icons {
    transition: transform 0.3s ease;
}

.search-settings .mdc-icon-button.expanded .material-icons {
    transform: rotate(180deg);
}

/* 搜索信息区域样式 */
.search-info {
    margin-bottom: 4px;
}

.search-info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    padding: 0 4px;
}

.result-count {
    color: var(--icon-color);
    font-size: 14px;
    margin: 0;
}



.result-divider {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 0;
}

/* 搜索结果容器和渐变效果 */
.results-container {
    position: relative;
    margin-top: 4px;
}

.results-gradient-top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 20px;
    background: linear-gradient(to bottom, var(--bg-color), transparent);
    pointer-events: none;
    z-index: 10;
}

.results-gradient-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 20px;
    background: linear-gradient(to top, var(--bg-color), transparent);
    pointer-events: none;
    z-index: 10;
}

#results {
    position: relative;
    z-index: 1;
}

/* 移动端适配 */
@media (max-width: 768px) {
    /* 顶栏移动端优化 */
    .top-bar {
        padding: 12px 0;
    }
    
    .top-bar-left {
        gap: 12px;
    }
    
    .top-bar-icon {
        width: 32px;
        height: 32px;
        border-radius: 6px;
    }
    
    .top-bar-title {
        font-size: 18px;
    }
    
    .top-bar-version {
        padding: 3px 8px;
        border-radius: 4px;
        font-size: 12px;
    }
    
    .top-bar-right {
        gap: 6px;
    }
    
    .top-bar-btn {
        padding: 8px;
    }
    
    body {
        padding: 8px;
    }
    
    .container {
        max-width: 100%;
        padding: 16px;
        box-sizing: border-box;
    }
    
    .mdc-typography--headline4 {
        font-size: 1.5rem;
        margin-bottom: 16px;
    }
    
    .mdc-text-field {
        margin-bottom: 8px !important;
    }
    
    #results {
        max-height: calc(100vh - 120px);
    }
    
    .question-item {
        padding: 4px 0;
    }
    
    .mdc-list-item {
        padding: 8px;
        min-height: auto;
    }
    
    .question-title {
        font-size: 0.95rem;
        line-height: 1.4;
        word-wrap: break-word;
        word-break: break-word;
        overflow-wrap: break-word;
        white-space: normal;
    }
    
    .options-list li {
        margin-bottom: 5px;
        padding-left: 20px;
        font-size: 0.9rem;
        line-height: 1.4;
        word-wrap: break-word;
        word-break: break-word;
        overflow-wrap: break-word;
        white-space: normal;
        display: block; /* 确保移动端也使用块级布局 */
    }
    
    .options-list li::before {
        font-size: 16px;
        line-height: 1.3;
        width: 18px; /* 移动端图标宽度 */
        text-align: center; /* 图标居中 */
    }
    
    .question-title {
        margin-bottom: -15px;
    }
    
    .options-list {
        margin-top: 2px;
    }
    
    .search-info {
        margin-bottom: 2px;
    }
    
    .search-info-header {
        padding: 0 2px;
    }
    
    .result-count {
        font-size: 13px;
    }
    

    
    .results-container {
        margin-top: 2px;
    }
    
    .results-gradient-top,
    .results-gradient-bottom {
        height: 15px;
    }
    
    .search-container {
        border-radius: 10px;
    }
    
    .search-input {
        margin-bottom: 2px;
    }
    
    .search-bottom {
        margin-top: 0px;
    }
    
    .search-filters {
        gap: 6px;
    }
    
    .search-filters .custom-form-field {
        gap: 4px;
        padding: 3px 6px;
        height: 28px;
    }
    
    .search-filters .custom-checkbox {
        width: 12px;
        height: 12px;
        border: 1px solid #ff9800;
    }
    

    
    .search-filters label {
        font-size: 11px;
    }
    
    .search-settings .mdc-icon-button {
        width: 28px;
        height: 28px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .settings-panel {
        padding: 12px;
        margin: 8px 0 0 0;
        border-radius: 8px;
        max-width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }
    
    .settings-section {
        margin-bottom: 16px;
    }
    
    .settings-title {
        font-size: 14px;
        margin-bottom: 6px;
    }
    
    .settings-title::before {
        width: 2px;
        height: 14px;
    }
    
    .settings-description {
        font-size: 11px;
        margin-bottom: 10px;
    }
    
    .fuzzy-keyword-item {
        grid-template-columns: 1fr auto 1fr auto;
        gap: 6px;
        padding: 8px;
    }
    
    .fuzzy-keyword-item .keyword-input {
        min-width: 80px;
    }
    
    .fuzzy-keyword-item .arrow {
        transform: none;
    }
    
    .fuzzy-keyword-item .target-input {
        min-width: 100px;
    }
    
    .tricky-word-item {
        grid-template-columns: 1fr auto;
        gap: 8px;
        padding: 10px;
    }
    
    .fuzzy-keyword-item input,
    .tricky-word-item input {
        font-size: 14px;
        padding: 10px 12px;
    }
    
    .add-fuzzy-btn,
    .add-tricky-btn {
        font-size: 13px;
        padding: 10px 16px;
        width: 100%;
    }
    
    .settings-actions {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .apply-settings-btn,
    .reset-settings-btn {
        font-size: 14px;
        padding: 12px 20px;
        width: 100%;
    }
 
}

/* 设置面板样式 */
.settings-panel {
    margin-top: 8px;
    padding: 16px;
    background: var(--settings-panel-bg);
    border-radius: 12px;
    border: 1px solid var(--settings-panel-border);
    display: none;
    animation: slideDown 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.settings-panel.show {
    display: block;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 优化动画性能，避免掉帧 */
.settings-panel {
    will-change: opacity, transform;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.settings-section {
    margin-bottom: 20px;
}

.settings-section:last-of-type {
    margin-bottom: 0;
}

.settings-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 6px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.settings-title::before {
    content: '';
    width: 3px;
    height: 16px;
    background: #ff9800;
    border-radius: 2px;
}

.settings-description {
    font-size: 12px;
    color: var(--icon-color);
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.fuzzy-keywords-container,
.tricky-words-container {
    margin-bottom: 12px;
    display: grid;
    gap: 8px;
}

.fuzzy-keyword-item {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto;
    align-items: center;
    gap: 8px;
    padding: 8px;
    background: var(--input-bg);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.fuzzy-keyword-item:hover {
    border-color: #ff9800;
    box-shadow: 0 2px 4px rgba(255, 152, 0, 0.1);
}

.tricky-word-item {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 8px;
    padding: 8px;
    background: var(--input-bg);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.tricky-word-item:hover {
    border-color: #ff9800;
    box-shadow: 0 2px 4px rgba(255, 152, 0, 0.1);
}

.fuzzy-keyword-item input,
.tricky-word-item input {
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 8px 10px;
    font-size: 13px;
    outline: none;
    transition: all 0.2s ease;
    background: var(--bg-color);
    color: var(--text-color);
    width: 100%;
    box-sizing: border-box;
    min-width: 0;
    max-width: 100%;
}

.fuzzy-keyword-item input::placeholder,
.tricky-word-item input::placeholder {
    color: var(--placeholder-color);
}

.mdc-text-field .mdc-text-field__input::placeholder {
    color: var(--placeholder-color) !important;
}

.fuzzy-keyword-item input:focus,
.tricky-word-item input:focus {
    border-color: #ff9800;
    box-shadow: 0 0 0 2px rgba(255, 152, 0, 0.1);
}

.fuzzy-keyword-item .keyword-input,
.fuzzy-keyword-item .target-input,
.tricky-word-item input {
    min-width: 0;
}

.fuzzy-keyword-item .arrow {
    color: var(--icon-color);
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}

.remove-btn {
    background: none;
    border: none;
    color: var(--incorrect-color);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-btn:hover {
    background-color: var(--hover-color);
}

.remove-btn .material-icons {
    font-size: 18px;
}

.add-fuzzy-btn,
.add-tricky-btn {
    background: #ff9800;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: 0 2px 4px rgba(255, 152, 0, 0.2);
}

.add-fuzzy-btn:hover,
.add-tricky-btn:hover {
    background: #f57c00;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(255, 152, 0, 0.3);
}

.apply-settings-btn {
    background: #4caf50;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 2px 4px rgba(76, 175, 80, 0.2);
}

.apply-settings-btn:hover {
    background: #45a049;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(76, 175, 80, 0.3);
}

.reset-settings-btn {
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(108, 117, 125, 0.2);
}

.reset-settings-btn:hover {
    background: #5a6268;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(108, 117, 125, 0.3);
}

.reset-settings-btn.confirm {
    background: #dc3545;
    animation: pulse 0.5s ease-in-out;
}

.reset-settings-btn.confirm:hover {
    background: #c82333;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.settings-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--settings-panel-border);
}

.add-fuzzy-btn .material-icons,
.add-tricky-btn .material-icons,
.apply-settings-btn .material-icons {
    font-size: 16px;
}

/* 重要声明对话框样式 */
.disclaimer-dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.disclaimer-dialog-content {
    background-color: var(--bg-color);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    animation: dialogFadeIn 0.3s ease-out;
}

@keyframes dialogFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.disclaimer-dialog-header {
    padding: 20px 24px 16px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.disclaimer-dialog-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: var(--text-color);
    text-align: center;
}

.close-btn {
    background: none;
    border: none;
    padding: 8px;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--icon-color);
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
}

.close-btn:hover {
    background-color: var(--hover-color);
}

.close-btn .material-icons {
    font-size: 20px;
}

.disclaimer-dialog-body {
    padding: 20px 24px;
    color: var(--text-color);
    line-height: 1.6;
}

.disclaimer-dialog-body p {
    margin: 0 0 12px 0;
    text-align: center;
}

.disclaimer-content {
    margin-bottom: 20px;
}

.important-notice {
    background-color: rgba(255, 152, 0, 0.1);
    border: 1px solid rgba(255, 152, 0, 0.3);
    border-radius: 8px;
    padding: 16px;
    margin-top: 16px;
}

.important-notice h4 {
    margin: 0 0 12px 0;
    color: #ff9800;
    font-size: 16px;
    font-weight: 600;
}

.important-notice ul {
    margin: 0;
    padding-left: 20px;
    list-style-type: disc;
}

.important-notice li {
    margin-bottom: 8px;
    line-height: 1.5;
    color: var(--text-color);
    font-size: 14px;
}

.important-notice li:last-child {
    margin-bottom: 0;
    font-weight: 500;
}

.author-link {
    color: #ff9800;
    text-decoration: none;
    transition: color 0.2s ease;
}

.author-link:hover {
    color: #f57c00;
    text-decoration: underline;
}

/* 移动端对话框响应式 */
@media (max-width: 768px) {
    .disclaimer-dialog-content {
        margin: 20px;
        width: calc(100% - 40px);
    }
    
    .disclaimer-dialog-header,
    .disclaimer-dialog-body {
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* 移动端顶栏响应式样式 */
@media (max-width: 768px) {
    .top-bar {
        padding: 4px 14px;
        min-height: 56px;
    }
    
    .top-bar-left {
        gap: 12px;
        align-items: center;
    }
    
    .top-bar-title {
        font-size: 18px;
        font-weight: 600;
    }
    
    .top-bar-icon {
        width: 32px;
        height: 32px;
    }
    
    .top-bar-version {
        font-size: 12px;
        padding: 4px 8px;
        border-radius: 6px;
    }
    
    .top-bar-right {
        gap: 6px;
        align-items: center;
    }
    
    .top-bar-btn {
        padding: 8px;
        min-width: 40px;
        min-height: 40px;
    }
    
    .top-bar-btn .material-icons {
        font-size: 20px;
    }
}

/* 页面底部样式 */
.page-footer {
    margin-top: 5px;
    padding: 24px;
    background-color: var(--bg-color);
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 16px;
}

.footer-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background-color: transparent;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-color);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.footer-btn:hover {
    background-color: var(--hover-color);
    border-color: var(--text-color);
}

.footer-btn .material-icons {
    font-size: 18px;
    color: var(--icon-color);
}

.footer-update-info {
    color: var(--placeholder-color);
    font-size: 12px;
    margin-top: 8px;
}

/* 移动端footer响应式样式 */
@media (max-width: 768px) {
    .page-footer {
        padding: 20px 16px;
        margin-top: 0px;
    }
    
    .footer-btn {
        padding: 10px 16px;
        font-size: 13px;
        width: 100%;
        max-width: 200px;
        justify-content: center;
    }
    
    .footer-update-info {
        font-size: 11px;
        margin-top: 12px;
    }
}