:root {
    --nav-height-desktop: 2rem;
    --nav-height-mobile: 1.5rem;
    --background-color: #f5f7fa;
    --card-bg: #ffffff;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --border-color: #e0e0e0;
    --accent-color: #2c7be5;
    --success-color: #00a854;
    --warning-color: #ffa726;
    --error-color: #f44336;
}

/* 暗夜模式变量 */
:root[data-theme="dark"] {
    --background-color: #0f172a;
    --card-bg: #1e293b;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --border-color: #334155;
    --accent-color: #3b82f6;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', 'Roboto', sans-serif;
    background-color: var(--background-color);
    color: var(--text-primary);
    height: 100vh;
    font-size: 14px;
    line-height: 1.4;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* 主题切换按钮 */
.theme-toggle {
    background-color: var(--card-bg);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 8px;
}

.theme-toggle:hover {
    background-color: var(--background-color);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.theme-toggle .icon {
    font-size: 16px;
}

/* 暗夜模式下的特定样式 */
:root[data-theme="dark"] .tab {
    background-color: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

:root[data-theme="dark"] .tab button {
    background-color: #374151;
    border: 1px solid #4b5563;
    color: #e5e7eb;
}

:root[data-theme="dark"] .tab button:hover {
    background-color: #4b5563;
    border-color: #6b7280;
    color: white !important;
}
:root[data-theme="dark"] .theme-toggle {
    background-color: #374151;
    color: #e5e7eb;
    border-color: #4b5563;
}

:root[data-theme="dark"] .theme-toggle:hover {
    background-color: #4b5563;
    border-color: #6b7280;
    color: white;
}
/* 语言切换按钮 */
:root[data-theme="dark"] .language-switcher {
    background-color: #374151;
    color: #e5e7eb;
    border: 1px solid #4b5563;
}

:root[data-theme="dark"] .language-switcher:hover {
    background-color: #4b5563;
    border-color: #6b7280;
    color: white;
}

:root[data-theme="dark"] .fc-global-controls,
:root[data-theme="dark"] .material-group,
:root[data-theme="dark"] .percentage-check,
:root[data-theme="dark"] .percentage-results,
:root[data-theme="dark"] .search-results-container {
    background-color: var(--card-bg);
    border-color: var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

:root[data-theme="dark"] .control-group label {
    color: #60a5fa;
}

 
:root[data-theme="dark"] .control-group input:focus {
    border-color: var(--accent-color);
}

:root[data-theme="dark"] .combination-controls {
    background-color: rgba(30, 41, 59, 0.5);
    border-color: var(--border-color);
}

:root[data-theme="dark"] .control-item label {
    color: #90caf9;
}
 
:root[data-theme="dark"] .hint {
    color: #94a3b8;
}

 
 
 

 

:root[data-theme="dark"] .material-input:focus {
    background-color: #374151;
}

:root[data-theme="dark"] .percentage-display {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: var(--border-color);
    color: #90caf9;
}

:root[data-theme="dark"] .results-list {
    background-color: var(--card-bg);
    border-color: var(--border-color);
}

:root[data-theme="dark"] .result-item {
    background-color: var(--card-bg);
    border-color: var(--border-color);
}

:root[data-theme="dark"] .result-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: #60a5fa;
}

:root[data-theme="dark"] .result-item.selected {
    background-color: rgba(59, 130, 246, 0.1);
}

:root[data-theme="dark"] .result-materials {
    background-color: rgba(30, 41, 59, 0.8);
    color: #cbd5e1;
}

:root[data-theme="dark"] .percentage-output {
    color: #10b981; /* 亮绿色 */
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(16, 185, 129, 0.3);
}

:root[data-theme="dark"] .results-info span {
    background-color: #2d3748;
    color: #cbd5e1;
    border-color: #4a5568;
}

:root[data-theme="dark"] select option {
    background-color: #2d3748;
    color: var(--text-primary);
}

:root[data-theme="dark"] input[type="number"], 
:root[data-theme="dark"] input[type="text"], 
:root[data-theme="dark"] textarea, 
:root[data-theme="dark"] select, 
:root[data-theme="dark"] .material-input, 
:root[data-theme="dark"] .bulk-input, 
:root[data-theme="dark"] .group-title-input {
    background-color: #2d3748 !important;
    color: var(--text-primary) !important;
    border-color: #4a5568 !important;
}

:root[data-theme="dark"] input[type="number"]:focus, 
:root[data-theme="dark"] input[type="text"]:focus, 
:root[data-theme="dark"] textarea:focus, 
:root[data-theme="dark"] select:focus, 
:root[data-theme="dark"] .material-input:focus, 
:root[data-theme="dark"] .bulk-input:focus, 
:root[data-theme="dark"] .group-title-input:focus {
    border-color: var(--accent-color) !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2) !important;
}

.project-main {
    height: 100vh;
    box-sizing: border-box;
    padding-top: var(--nav-height-desktop);
}

.tab {
    background-color: #ffffff;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.tab-left {
    display: flex;
    gap: 8px;
}

.tab-right {
    display: flex;
    gap: 8px;
}

.tab button {
    background-color: #f1f5f9; /* 稍微深一点的浅灰色 */
    border: 1px solid #cbd5e1;
    outline: none;
    cursor: pointer;
    padding: 8px 16px;
    transition: all 0.2s ease;
    color: #374151; /* 深灰色文字 */
    margin: 0 4px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
}
/* 标签按钮活动状态样式 */
.tab button.active {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
}

/* 暗夜模式下的标签按钮活动状态 */
:root[data-theme="dark"] .tab button.active {
    background: #1d4ed8;
    color: white;
    border-color: #1d4ed8;
}

 
/* 暗夜模式下材料查找器标签的活动状态 */
 
.tab button:hover {
    background-color: #e2e8f0;
    border-color: #94a3b8;
    color: #1e293b !important;
}

.language-switcher {    
    background-color: #f1f5f9;
    color: #374151;
    border: 1px solid #cbd5e1;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
}

.language-switcher:hover {
    background-color: #e2e8f0;
    border-color: #94a3b8;
    color: #1e293b;
}

.tabcontent {
    display: none;
    padding: 20px;
    animation: fadeEffect 1s;
}

@keyframes fadeEffect {
    from {opacity: 0;}
    to {opacity: 1;}
}

.width100 {
    width: 100%;
}

 

/* 全局控制样式 */
.fc-global-controls {
    margin: 15px 0;
    padding: 16px;
    background: var(--card-bg);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.control-group {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.control-group label {
    color: #60a5fa;
    font-weight: bold;
    white-space: nowrap;
    font-size: 14px;
}

.control-group input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    color: #333;
    width: 70px;
    text-align: center;
    font-size: 14px;
}

.control-group input:focus {
    outline: none;
    border-color: var(--accent-color);
}

.control-group button {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    cursor: pointer;
    white-space: nowrap;
    font-weight: bold;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(76, 175, 80, 0.4);
}

.control-group button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.6);
}

.control-group button.remove {
    background: linear-gradient(135deg, #f44336, #d32f2f);
}

.control-group button.btn-calculate {
    background: linear-gradient(135deg, #ff9800, #f57c00);
}

/* 组合搜索控制样式 */
.combination-controls {
    margin-top: 20px;
    padding: 20px;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    border: 2px solid #444;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.control-row {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.control-item {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 250px;
}

.control-item label {
    color: #90caf9;
    font-size: 13px;
    font-weight: bold;
    white-space: nowrap;
    min-width: 100px;
}

.control-item input, .control-item select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    color: #333;
    flex: 1;
    font-size: 13px;
}

.hint {
    color: #aaa;
    font-size: 11px;
    white-space: nowrap;
}

.btn-search {
    background-color: var(--accent-color) !important;
    color: white !important;
    border: none !important;
    padding: 10px 20px !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    font-weight: 500 !important;
    font-size: 14px !important;
}

.btn-search:hover {
    background-color: #1a6fd6 !important;
}

.btn-stop {
    background: linear-gradient(135deg, #ff9800, #f57c00) !important;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    font-size: 15px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.5);
}

.btn-stop:hover {
    background: linear-gradient(135deg, #f57c00, #ff9800) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 152, 0, 0.7);
}

.btn-check {
    background: linear-gradient(135deg, #9c27b0, #7b1fa2) !important;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    font-size: 13px;
    transition: all 0.2s ease;
}

.btn-check:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(156, 39, 176, 0.6);
}

/* 百分比检查区域 */
.percentage-check {
    margin-top: 15px;
    padding: 15px;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.percentage-check-row {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.percentage-check-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.percentage-check-item label {
    color: #6b7280;
    font-size: 12px;
    font-weight: 500;
}

.percentage-check-item span {
    color: #2563eb;
    font-family: monospace;
    font-size: 12px;
    padding: 4px 8px;
    background: rgba(37, 99, 235, 0.05);
    border-radius: 4px;
}

.percentage-suggestion {
    margin-top: 10px;
    padding: 10px;
    background: #fffbeb;
    border: 1px solid #fbbf24;
    border-radius: 6px;
    color: #92400e;
    font-size: 12px;
}

.percentage-suggestion.good {
    background: #d1fae5;
    border-color: #34d399;
    color: #065f46;
}

.percentage-suggestion.bad {
    background: #fee2e2;
    border-color: #f87171;
    color: #991b1b;
}

/* 材料组容器 */
.material-groups-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(550px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

/* 材料组样式 */
.material-group {
    padding: 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--card-bg);
    min-width: 0;
    box-sizing: border-box;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.material-group:hover {
    border-color: #c0c0c0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.material-group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 2px solid #444;
}

.group-title-container {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.group-title-input {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
    font-weight: bold;
    font-size: 14px;
    padding: 4px 8px;
    min-width: 120px;
    flex: 1;
}

.group-title-input:focus {
    outline: 1px solid #60a5fa;
    background: rgba(255,255,255,0.05);
}

.group-controls {
    display: flex;
    gap: 8px;
}

.group-controls button {
    padding: 6px 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
    white-space: nowrap;
    font-weight: bold;
    transition: all 0.2s ease;
}

.btn-fill {
    background: linear-gradient(135deg, #9c27b0, #7b1fa2);
    color: white;
}

.btn-remove {
    background: linear-gradient(135deg, #f44336, #d32f2f);
    color: white;
}

.btn-reverse {
    background: linear-gradient(135deg, #ff9800, #f57c00);
    color: white;
}

.btn-calculate-single {
    background: linear-gradient(135deg, #4caf50, #45a049);
    color: white;
}

.btn-clear-group {
    background: linear-gradient(135deg, #ff5722, #e64a19);
    color: white;
}

.group-controls button:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

/* 紧凑的磨损范围控制 */
.wear-range-controls {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    align-items: center;
}

.wear-range-item {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.wear-range-item label {
    color: #90caf9;
    font-size: 12px;
    font-weight: bold;
    white-space: nowrap;
    min-width: 60px;
}

.wear-range-item input {
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: #fff;
    color: #333;
    font-size: 12px;
    flex: 1;
    min-width: 0;
}

/* 批量输入区域 */
.bulk-input-area {
    margin-bottom: 15px;
}

.bulk-input-controls {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.bulk-input-row {
    display: flex;
    gap: 8px;
}

.bulk-input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    color: #333;
    min-width: 0;
    font-family: monospace;
    font-size: 12px;
    resize: vertical;
    min-height: 45px;
    max-height: 80px;
    box-sizing: border-box;
    line-height: 1.4;
}

/* 修复材料输入框网格布局 - 关键修复 */
.material-inputs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px;
    margin-bottom: 15px;
}

.material-input-container {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.material-input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: #fff;
    color: #333;
    font-family: monospace;
    font-size: 13.9px;
    box-sizing: border-box;
    min-width: 0;
    transition: all 0.3s ease;
    font-weight: 600;
}

.material-input:focus {
    outline: 2px solid #60a5fa;
    outline-offset: -2px;
    background: rgba(255,255,255,0.15);
}

/* 百分比结果区域 */
.percentage-display {
    padding: 6px 8px;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    background: #f9fafb;
    color: #6b7280;
    font-family: monospace;
    font-size: 11px;
    text-align: center;
    min-height: 22px;
    word-break: break-all;
    transition: all 0.3s ease;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 百分比结果区域容器 */
.percentage-results {
    margin-top: 15px;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #f9fafb;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

/* 百分比输出文本 */
.percentage-output {
    color: #4b5563;
    font-family: monospace;
    font-size: 11px;
    word-break: break-all;
    line-height: 1.5;
    padding: 8px;
    background: #ffffff;
    border-radius: 4px;
    max-height: 70px;
    overflow-y: auto;
    border: 1px solid #e5e7eb;
}

/* 百分比标题 */
.percentage-title {
    color: #6b7280;
    font-size: 12px;
    font-weight: 500;
}

/* 百分比复制按钮 */
.percentage-copy {
    background: #f3f4f6;
    color: #6b7280;
    border: 1px solid #d1d5db;
    padding: 4px 8px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 10px;
    font-weight: 500;
}

.percentage-copy:hover {
    background: #e5e7eb;
    color: #374151;
}

/* 搜索结果样式 */
.search-results-container {
    margin: 25px 0;
    padding: 20px;
    border: 2px solid #3b82f6;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

/* 结果标题 */
.results-header h3 {
    color: #1e40af;
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    border-bottom: none;
}

.results-header h3 {
    color: #4caf50;
    margin: 0;
    font-size: 20px;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.results-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* 结果列表 */
.results-list {
    max-height: 500px;
    overflow-y: auto;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #ffffff;
    padding: 15px;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
}

/* 滚动条样式 */
.results-list::-webkit-scrollbar {
    width: 8px;
}

.results-list::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.results-list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.results-list::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* 单个结果项 */
.result-item {
    margin-bottom: 15px;
    padding: 16px;
    border: 1px solid #e0e7ff;
    border-radius: 8px;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

/* 结果计数信息 */
.results-info span {
    color: #6b7280;
    font-weight: 500;
    font-size: 14px;
    background: #f3f4f6;
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid #e5e7eb;
}

/* 悬停效果 */
.result-item:hover {
    background: #f8fafc;
    border-color: #93c5fd;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

/* 选中状态 */
.result-item.selected {
    background: #eff6ff;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.result-item.selected::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
}

/* 磨损值显示 */
.result-wear {
    color: #10b981;
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    margin-bottom: 10px;
    padding: 10px;
    background: rgba(16, 185, 129, 0.08);
    border-radius: 6px;
    border-left: 4px solid #10b981;
}

/* 材料列表显示 */
.result-materials {
    color: #374151;
    font-family: 'JetBrains Mono', monospace;   
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 12px;
    padding: 10px;
    background: #f9fafb;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    max-height: 70px;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-all;
}

/* 平均值显示 */
.result-average {
    color: #f59e0b;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    margin-bottom: 15px;
    padding: 8px;
    background: rgba(245, 158, 11, 0.08);
    border-radius: 5px;
    border-left: 3px solid #f59e0b;
}

/* 操作按钮区域 */
.result-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    border-top: 1px solid #e5e7eb;
    padding-top: 12px;
}

/* 使用按钮 */
.btn-use {
    background: #10b981 !important;
    color: white !important;
    border: none !important;
    padding: 8px 16px !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
}

.btn-use:hover {
    background: #0da271 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* 清空按钮 */
.btn-clear {
    background: #f3f4f6 !important;
    color: #374151 !important;
    border: 1px solid #d1d5db !important;
    padding: 8px 16px !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
}

.btn-clear:hover {
    background: #e5e7eb !important;
    border-color: #9ca3af !important;
}
.centerFlex {
    display: flex;
    justify-content: center;
    align-items: center;
}
.material-highlight {
    background: rgba(33, 150, 243, 0.5) !important;
    border: 2px solid #2196f3 !important;
    box-shadow: 0 0 15px rgba(33, 150, 243, 1);
    transform: scale(1.03);
    transition: all 0.3s ease;
    animation: highlightPulse 2s infinite;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .project-main {
        padding-top: var(--nav-height-mobile);
    }
    
    .tab {
        flex-direction: column;
        gap: 10px;
    }
    
    .tab-left, .tab-right {
        width: 100%;
        justify-content: center;
    }
    
    .material-groups-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .material-group {
        min-width: 0;
    }
    
    .material-inputs-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 8px;
    }
    
    .control-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .control-item {
        min-width: 100%;
    }
    
    .combination-controls {
        padding: 15px;
    }
    
    .usage-history {
        width: calc(100vw - 40px);
        right: 20px;
        left: 20px;
    }
    
    .theme-toggle {
        margin-left: 0;
        margin-top: 8px;
    }
}

/* 使用记录样式 */
.usage-history-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--card-bg);
    color: var(--text-primary);
    padding: 10px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 1000;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.usage-history-toggle:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(156, 39, 176, 0.7);
}

.usage-history {
    position: fixed;
    top: 100px;
    right: 20px;
    width: 400px;
    max-height: 60vh;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    z-index: 1000;
    display: none;
}

.usage-history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #9c27b0;
    flex-shrink: 0;
}

.usage-history-title {
    color: #9c27b0;
    font-weight: bold;
    font-size: 16px;
}

.usage-history-clear {
    background: linear-gradient(135deg, #f44336, #d32f2f);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
}

#usageHistoryList {
    max-height: calc(60vh - 80px);
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 5px;
}

/* 使用记录滚动条样式 */
#usageHistoryList::-webkit-scrollbar {
    width: 6px;
}

#usageHistoryList::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 3px;
}

#usageHistoryList::-webkit-scrollbar-thumb {
    background: var(--text-secondary);
    border-radius: 3px;
}

/* 使用记录项样式 */
.usage-history-item {
    padding: 12px;
    margin-bottom: 10px;
    background: rgba(255,255,255,0.08);
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.15);
    cursor: pointer;
    transition: all 0.3s ease;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    line-height: 1.4;
    max-height: none;
    overflow: visible;
}

.usage-history-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(-3px);
}

.usage-history-item:last-child {
    margin-bottom: 0;
}

.usage-history-item > div {
    margin-bottom: 5px;
}

.usage-history-item > div:last-child {
    margin-bottom: 0;
}

.usage-history-item strong {
    color: #60a5fa;
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
}

.usage-history-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.usage-history-item-header strong {
    margin-bottom: 0;
}

.usage-history-delete {
    flex-shrink: 0;
    background: rgba(244, 67, 54, 0.15);
    color: #ef5350;
    border: 1px solid rgba(244, 67, 54, 0.4);
    padding: 4px 8px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s ease;
}

.usage-history-delete:hover {
    background: #f44336;
    color: white;
}

.usage-history-item > div:nth-child(2) {
    color: #4caf50;
    font-family: monospace;
    font-size: 13px;
}

.usage-history-item > div:nth-child(3) {
    color: #90caf9;
    font-size: 12px;
    max-height: none;
    overflow: visible;
    display: -webkit-box;
    -webkit-line-clamp: unset;
    -webkit-box-orient: unset;
}

@media (max-width: 768px) {
    .usage-history {
        width: calc(100vw - 40px);
        right: 20px;
        left: 20px;
        max-height: 70vh;
    }
    
    #usageHistoryList {
        max-height: calc(70vh - 80px);
    }
    
    .usage-history-item {
        padding: 10px;
    }
    
    .usage-history-item strong {
        font-size: 13px;
    }
    
    .usage-history-item > div:nth-child(2) {
        font-size: 12px;
    }
    
    .usage-history-item > div:nth-child(3) {
        font-size: 11px;
        -webkit-line-clamp: 2;
    }
}

@media (max-width: 480px) {
    .usage-history {
        top: 80px;
        max-height: 65vh;
    }
    
    #usageHistoryList {
        max-height: calc(65vh - 70px);
    }
    
    .usage-history-header {
        padding: 8px 0;
    }
    
    .usage-history-title {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .material-inputs-grid {
        grid-template-columns: 1fr;
    }
    
    .wear-range-controls {
        flex-direction: column;
        gap: 10px;
    }
    
    .wear-range-item {
        width: 100%;
    }
    
    .bulk-input-row {
        flex-direction: column;
    }
    
    .group-controls {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .results-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
}

 

 
/* 增强材料磨损值显示 */
.result-materials {
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: #90caf9;
    background: rgba(144, 202, 249, 0.08);
    padding: 8px;
    border-radius: 4px;
    border-left: 3px solid #90caf9;
    margin: 5px 0;
}

/* 使用记录项样式优化 */
.usage-history-item div:nth-child(3) {  
    font-family: 'Courier New', monospace;
    font-size: 11px;
    color: #4caf50;
    background: rgba(76, 175, 80, 0.1);
    padding: 4px 6px;
    border-radius: 3px;
    margin: 3px 0;
}
 

input[type="number"]:focus, 
input[type="text"]:focus, 
textarea:focus, 
select:focus, 
.material-input:focus, 
.bulk-input:focus, 
.group-title-input:focus {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
    outline: none !important;
}


/* 智能停止选项样式 */
.control-item label[for="smartStopCheckbox"],
.control-item label[for="unlimitedResultsCheckbox"] {
    color: #60a5fa;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.control-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #60a5fa;
}

/* 智能停止提示样式 */
.different-pair-hint {
    color: #ff9800;
    font-size: 12px;
    font-weight: bold;
    background: rgba(255, 152, 0, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
    border-left: 3px solid #ff9800;
    margin-top: 5px;
    display: inline-block;
}

/* 搜索状态提示 */
.search-status {
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.1), rgba(255, 152, 0, 0.05));
    border: 1px solid rgba(255, 152, 0, 0.3);
    color: #ff9800;
    padding: 8px 12px;
    border-radius: 6px;
    margin: 10px 0;
    font-size: 13px;
    font-weight: 500;
}

.search-status.smart-stop {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.1), rgba(76, 175, 80, 0.05));
    border-color: rgba(76, 175, 80, 0.3);
    color: #4caf50;
}

/* 完全不同对标记 */
.result-pair-indicator {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    background: #ff9800;
    color: white;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 10px;
    z-index: 5;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.result-pair-indicator::before {
    content: '↕️ 配对';
}


/* 智能停止特殊高亮样式 */
.result-item.smart-stop-highlight {
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.2), rgba(255, 87, 34, 0.1)) !important;
    border: 3px solid #ff9800 !important;
    border-left: 8px solid #ff9800 !important;
    box-shadow: 0 6px 20px rgba(255, 152, 0, 0.4), 0 0 0 3px rgba(255, 152, 0, 0.1) !important;
    order: -2 !important; /* 比普通置顶更高优先级 */
    margin-bottom: 25px;
    position: relative;
    z-index: 20;
    transform: translateY(-5px);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        box-shadow: 0 6px 20px rgba(255, 152, 0, 0.4), 0 0 0 3px rgba(255, 152, 0, 0.1);
    }
    to {
        box-shadow: 0 8px 25px rgba(255, 152, 0, 0.6), 0 0 0 5px rgba(255, 152, 0, 0.2);
    }
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 3px 10px rgba(255, 87, 34, 0.5); }
    50% { transform: scale(1.05); box-shadow: 0 5px 15px rgba(255, 87, 34, 0.7); }
    100% { transform: scale(1); box-shadow: 0 3px 10px rgba(255, 87, 34, 0.5); }
}

@keyframes breathing {
    0% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
    100% { transform: translateY(0); }
}

/* 通用求异高亮样式 */
.result-item.top-different:not(.smart-stop-highlight) {
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.1), rgba(25, 118, 210, 0.05)) !important;
    border: 2px solid #2196f3 !important;
    border-left: 6px solid #2196f3 !important;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3) !important;
    order: -1 !important;
    margin-bottom: 20px;
    position: relative;
    z-index: 10;
}

.result-item.top-different:not(.smart-stop-highlight)::before {
    content: '🔍 完全不同';
    position: absolute;
    top: -12px;
    right: 10px;
    background: #2196f3;
    color: white;
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: bold;
    z-index: 21;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* 连接线样式 */
.connection-line {
    animation: lineFlow 3s linear infinite;
    background: linear-gradient(90deg, 
        rgba(255, 152, 0, 0) 0%, 
        rgba(255, 152, 0, 0.8) 50%, 
        rgba(255, 152, 0, 0) 100%) !important;
}

@keyframes lineFlow {
    0% { background-position: -200px 0; }
    100% { background-position: 200px 0; }
}

/* 智能停止标记样式 */
.smart-stop-marker {
    animation: markerPulse 1.5s ease-in-out infinite alternate !important;
}

@keyframes markerPulse {
    from {
        transform: scale(1);
        box-shadow: 0 3px 10px rgba(255, 87, 34, 0.5);
    }
    to {
        transform: scale(1.1);
        box-shadow: 0 5px 15px rgba(255, 87, 34, 0.8);
    }
}

/* 暗夜模式适配 */
:root[data-theme="dark"] .result-item.smart-stop-highlight {
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.25), rgba(255, 87, 34, 0.15)) !important;
    border-color: #fbbf24 !important;
}

:root[data-theme="dark"] .result-item.top-different:not(.smart-stop-highlight) {
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.15), rgba(25, 118, 210, 0.1)) !important;
    border-color: #60a5fa !important;
}/* 置顶区域样式 */
.top-different-area {
    margin-bottom: 25px;
    border: 3px solid #ff9800;
    border-radius: 12px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.15), rgba(255, 152, 0, 0.08));
    box-shadow: 0 5px 20px rgba(255, 152, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.top-different-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #ff9800, #ff5722, #ff9800);
    background-size: 200% 100%;
    animation: gradientFlow 3s linear infinite;
}

@keyframes gradientFlow {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.top-area-title {
    font-size: 16px;
    font-weight: bold;
    color: #ff9800;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ff9800;
    display: flex;
    align-items: center;
    gap: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 占位符样式 */
.top-item-placeholder {
    background: rgba(255, 152, 0, 0.05);
    border: 2px dashed rgba(255, 152, 0, 0.3);
    border-radius: 8px;
    margin-bottom: 15px;
    position: relative;
}

.top-item-placeholder::after {
    content: '↑ 此结果已置顶显示';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ff9800;
    font-size: 12px;
    font-weight: bold;
    opacity: 0.7;
}

/* 全局置顶容器 */
.global-top-container {
    position: fixed;
    top: 80px; /* 距离顶部的位置，根据你的导航栏高度调整 */
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    z-index: 9999; /* 最高层级 */
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    border: 3px solid #ff9800;
    padding: 20px;
    display: none; /* 默认隐藏 */
    animation: slideDown 0.5s ease-out;
}

/* 暗夜模式适配 */
:root[data-theme="dark"] .global-top-container {
    background: rgba(30, 41, 59, 0.95);
    border-color: #fbbf24;
}

@keyframes slideDown {
    from {
        transform: translateX(-50%) translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

/* 全局置顶标题 */
.global-top-title {
    font-size: 18px;
    font-weight: bold;
    color: #ff9800;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ff9800;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.global-top-close {
    background: none;
    border: none;
    color: #ff9800;
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.global-top-close:hover {
    background: rgba(255, 152, 0, 0.1);
    transform: rotate(90deg);
}

/* 全局置顶内容 */
.global-top-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
}

/* 滚动条样式 */
.global-top-content::-webkit-scrollbar {
    width: 8px;
}

.global-top-content::-webkit-scrollbar-track {
    background: rgba(255, 152, 0, 0.1);
    border-radius: 4px;
}

.global-top-content::-webkit-scrollbar-thumb {
    background: #ff9800;
    border-radius: 4px;
}

/* 全局置顶项 */
.global-top-item {
    background: white;
    border-radius: 10px;
    padding: 15px;
    border: 2px solid #ff9800;
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

:root[data-theme="dark"] .global-top-item {
    background: #1e293b;
    border-color: #fbbf24;
}

.global-top-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(255, 152, 0, 0.4);
}

.global-top-item.smart-stop {
    border-color: #ff5722;
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.1), rgba(255, 87, 34, 0.05));
}

.global-top-item.normal-different {
    border-color: #2196f3;
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.1), rgba(25, 118, 210, 0.05));
}

/* 智能停止标记 */
.global-item-marker {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #ff9800, #ff5722);
    color: white;
    font-size: 12px;
    font-weight: bold;
    padding: 4px 12px;
    border-radius: 15px;
    z-index: 1;
    box-shadow: 0 2px 8px rgba(255, 87, 34, 0.4);
    animation: markerPulse 2s infinite;
}

@keyframes markerPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* 全局置顶覆盖层 */
.global-top-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
    z-index: 9998;
    display: none;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .global-top-container {
        width: 95%;
        top: 70px;
        padding: 15px;
    }
    
    .global-top-content {
        grid-template-columns: 1fr;
        max-height: 300px;
    }
    
    .global-top-item {
        padding: 12px;
    }
}       

/* 顶部结果区域样式 */
#resultsListTop {
    margin-bottom: 20px;
    padding: 15px;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.05), rgba(76, 175, 80, 0.02));
    border-radius: 10px;
    border: 2px solid rgba(76, 175, 80, 0.3);
    display: none; /* 默认隐藏，有内容时显示 */
}

/* 顶部结果项样式 */
.top-result-item {
    position: relative;
    margin-bottom: 15px;
    border: 2px solid transparent;
    animation-duration: 2s;
}

/* 智能停止高亮样式 */
.smart-stop-highlight {
    border-color: #ff9800 !important;
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.1), rgba(255, 152, 0, 0.05)) !important;
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.2);
}

/* 通用求异高亮样式 */
.generic-highlight {
    border-color: #2196f3 !important;
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.1), rgba(33, 150, 243, 0.05)) !important;
    box-shadow: 0 4px 10px rgba(33, 150, 243, 0.15);
}

/* 呼吸动画 */
@keyframes breathing {
    0% {
        box-shadow: 0 4px 15px rgba(255, 152, 0, 0.2);
    }
    50% {
        box-shadow: 0 6px 25px rgba(255, 152, 0, 0.4);
    }
    100% {
        box-shadow: 0 4px 15px rgba(255, 152, 0, 0.2);
    }
}

/* 脉冲动画 */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* 确保顶部结果的按钮样式正确 */
.top-result-item .btn-use {
    background: #10b981 !important;
    color: white !important;
    border: none !important;
    padding: 8px 16px !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
    z-index: 101 !important; /* 确保按钮在智能停止标记之上 */
    position: relative;
}

.top-result-item .btn-use:hover {
    background: #0da271 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* 智能停止标记不覆盖按钮 */
.smart-stop-marker {
    z-index: 100; /* 比按钮低 */
}.resultsListTop {
    margin-bottom: 20px;
    padding: 15px;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.05), rgba(76, 175, 80, 0.02));
    border-radius: 10px;
    border: 2px solid rgba(76, 175, 80, 0.3);
    display: none; /* 默认隐藏，有内容时显示 */
}

/* ============================================================
   统一布局与组件规范 + 手机适配
   （放在文件末尾，用于收敛前面分散定义的布局规则）
   ============================================================ */

/* 1. 页面容器：用 min-height 取代固定 100vh，避免双滚动条/内容溢出 */
body {
    height: auto;
    min-height: 100vh;
    overflow-x: hidden;
}

.project-main {
    height: auto;
    min-height: 100vh;
}

/* 2. 统一页头（所有标签页共用） */
.page-header {
    text-align: center;
    padding: 20px 12px 8px;
}

.page-title {
    color: #60a5fa;
    margin: 0 0 12px;
    font-size: clamp(20px, 4.2vw, 30px);
    line-height: 1.35;
    text-align: center;
}

.page-links {
    margin: 6px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px 18px;
}

.page-links a {
    font-size: 15px;
}

.page-header .link-douyin { color: #006bf7; }
.page-header .link-taobao { color: #c42e35; }

.page-subtitle {
    margin: 10px 0 0;
    color: var(--text-secondary);
    font-size: 14px;
}

/* 3. 顶部导航：空间不足时换行，按钮统一触控高度 */
.tab-left,
.tab-right {
    flex-wrap: wrap;
}

.tab button,
.language-switcher,
.theme-toggle {
    min-height: 40px;
}

/* 4. 控件统一：输入框可收缩，避免撑破容器 */
.control-item input,
.control-item select {
    min-width: 0;
    max-width: 100%;
    min-height: 40px;
}

.simple-search-container {
    flex: 1 1 220px;
    max-width: 100%;
}

/* 5. 卡片/面板圆角统一 */
.fc-global-controls,
.combination-controls {
    border-radius: 10px;
}

/* ---------- 响应式：中屏 ---------- */
@media (max-width: 1024px) {
    .page-header {
        padding: 16px 10px 6px;
    }
}

/* ---------- 响应式：手机 ---------- */
@media (max-width: 768px) {
    .tabcontent {
        padding: 12px;
    }

    .tab {
        flex-direction: column;
        gap: 8px;
        padding: 10px;
    }

    .tab-left,
    .tab-right {
        width: 100%;
        justify-content: center;
        gap: 6px;
    }

    .tab button {
        margin: 0;
        padding: 8px 12px;
        font-size: 13px;
    }

    .language-switcher,
    .theme-toggle {
        margin-left: 0;
        padding: 8px 12px;
        font-size: 13px;
    }

    .page-title {
        font-size: clamp(19px, 5.4vw, 24px);
    }

    .control-row {
        gap: 12px;
    }

    .control-item {
        flex: 1 1 100%;
        min-width: 100%;
    }

    .control-item label {
        min-width: auto;
        white-space: normal;
    }

    .hint {
        white-space: normal;
    }

    .fc-global-controls,
    .combination-controls {
        padding: 12px;
    }

    .usage-history-toggle {
        bottom: 14px;
        right: 14px;
        padding: 8px 12px;
    }
}

/* ---------- 响应式：小屏手机 ---------- */
@media (max-width: 480px) {
    .tabcontent {
        padding: 10px;
    }

    .tab button {
        padding: 8px 10px;
        font-size: 12px;
    }

    .page-links {
        flex-direction: column;
        gap: 6px;
    }

    .page-links a {
        font-size: 14px;
    }

    .fc-global-controls,
    .combination-controls {
        padding: 10px;
    }
}