:root {
    --primary-color: #4f46e5;
    --primary-gradient: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    --secondary-color: #64748b;
    --danger-color: #ef4444;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --background-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --white: #ffffff;
    --light-bg: #f8fafc;
    --border-color: #e2e8f0;
    --text-primary: #2d3748;
    --text-secondary: #64748b;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 25px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.25);
    --shadow-xl: 0 30px 90px rgba(0, 0, 0, 0.35);
    --shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.2);
    --shadow-focus: 0 0 0 4px rgba(79, 70, 229, 0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
    background: var(--background-gradient);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    padding: 20px;
    overflow-x: hidden;
}
.container {
    max-width: 1400px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    backdrop-filter: blur(10px);
}
.tab {
    display: flex;
    background: var(--primary-gradient);
    padding: 8px;
    gap: 4px;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    margin-bottom: 0;
}
.tabButton {
    flex: 1;
    padding: 16px 24px;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-normal);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: var(--shadow-sm);
}
.tabButton:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    box-shadow: var(--shadow-hover);
}
.tabButton.active {
    background: white;
    color: var(--primary-color);
    box-shadow: 0 8px 32px rgba(79, 70, 229, 0.4);
    font-weight: 600;
}
.tabcontent {
    display: none;
    padding: 32px;
    background: var(--white);
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
    animation: fadeIn 0.4s ease;
}
.tabcontent.active {
    display: block;
}
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
.sectionTitle {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--border-color);
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
}
.sectionTitle::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--primary-gradient);
    border-radius: 1px;
}
.selectorGroup {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}
.selectorContainer {
    background: linear-gradient(145deg, var(--white), var(--light-bg));
    padding: 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
}
.selectorContainer:hover {
    box-shadow: var(--shadow-hover);
}
.selectorContainer h4 {
    margin-bottom: 16px;
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 8px;
}
.criteriaContainer {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    width: 100%;
    flex-wrap: wrap;
}
.criteriaItem {
    flex: 1;
    background: linear-gradient(145deg, var(--white), var(--light-bg));
    padding: 20px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
    min-width: 200px;
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
}
.criteriaItem:hover {
    box-shadow: var(--shadow-hover);
}
.criteriaItem h4 {
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
}
.ieee754Display {
    margin-top: 8px;
    font-size: 12px;
    color: var(--text-secondary);
    display: none;
    padding: 6px 10px;
    background: var(--light-bg);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}
.ieee754Value {
    font-family: 'Courier New', monospace;
    color: var(--primary-color);
    margin-left: 5px;
    font-weight: 500;
    word-break: break-all;
}
select,
input,
textarea {
    width: 100%;
    padding: 14px 16px;
    font-size: 14px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--white);
    color: var(--text-primary);
    transition: all var(--transition-normal);
    font-family: inherit;
    resize: none;
    box-sizing: border-box;
    box-shadow: var(--shadow-sm);
}
select:focus,
input:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: var(--shadow-focus);
}
textarea {
    min-height: 100px;
    line-height: 1.6;
}
select {
    padding-right: 16px !important;
    font-weight: 500;
    border: 2px solid #c7d2fe !important;
    background-color: var(--light-bg) !important;
    border-radius: var(--radius-sm) !important;
    height: 48px !important;
    box-shadow: var(--shadow-sm);
}
button {
    padding: 16px 28px;
    font-size: 15px;
    font-weight: 500;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-normal);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}
button.primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
}
button.primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #4338ca 0%, #6d28d9 100%);
    box-shadow: var(--shadow-hover);
}
button.secondary {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
    color: white;
    box-shadow: 0 6px 20px rgba(100, 116, 139, 0.4);
}
button.secondary:hover:not(:disabled) {
    background: linear-gradient(135deg, #475569 0%, #334155 100%);
    box-shadow: var(--shadow-hover);
}
button.danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    font-weight: 600;
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}
button.danger:hover:not(:disabled) {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    box-shadow: var(--shadow-hover);
}
#stopButton {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    color: white !important;
}
button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    box-shadow: var(--shadow-sm) !important;
}
.materialTypesContainer {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}
.materialTypeContainer {
    background: linear-gradient(145deg, var(--white), var(--light-bg));
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: visible;
    transition: all var(--transition-normal);
}
.materialTypeContainer:hover {
    box-shadow: var(--shadow-hover);
}
.materialTypeContainer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
}
.materialTypeHeader {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}
.materialTypeColor {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-right: 12px;
    border: 3px solid white;
    box-shadow: var(--shadow-md);
}
.materialWearRange {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    align-items: flex-start;
}
.materialWearRange>div:first-child {
    flex: 3;
    position: relative;
    width: 100%;
}
.materialWearRange>div:last-child {
    flex: 1;
    min-width: 140px;
    max-width: 160px;
}
.wearRangeDisplay {
    background: var(--light-bg);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 12px;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    box-shadow: var(--shadow-sm);
}
.wearRangeDisplay .range-label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}
.wearRangeDisplay .range-value {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-color);
    font-family: 'Courier New', monospace;
    word-break: break-all;
    white-space: normal;
    line-height: 1.3;
}
.materialSearchInput {
    width: 100%;
    padding: 14px 16px;
    font-size: 14px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--white);
    color: var(--text-primary);
    transition: all var(--transition-normal);
    box-sizing: border-box;
    box-shadow: var(--shadow-sm);
}
.materialSearchInput:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: var(--shadow-focus);
}
.materialTypeButtons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 8px;
    margin-bottom: 16px;
    width: 100%;
}
.materialTypeButtons button {
    padding: 10px 12px;
    font-size: 13px;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: all var(--transition-normal);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    box-shadow: var(--shadow-sm);
}
.materialTypeButtons button.primary {
    background: var(--primary-color);
    color: white;
}
.materialTypeButtons button.primary:hover {
    background: #4338ca;
    box-shadow: var(--shadow-md);
}
.materialTypeButtons button.secondary {
    background: var(--secondary-color);
    color: white;
}
.materialTypeButtons button.secondary:hover {
    background: #475569;
    box-shadow: var(--shadow-md);
}
.materialTypeTextarea {
    font-size: 13px;
    min-height: 100px;
    margin-bottom: 16px;
    border: 2px solid var(--border-color);
    padding: 12px;
    resize: none;
    font-family: 'Courier New', monospace;
    box-shadow: var(--shadow-sm);
}
.materialTypeOutput {
    min-height: 60px;
    font-size: 13px;
    margin-bottom: 12px;
    background: var(--light-bg);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 12px;
    resize: none;
    font-family: 'Courier New', monospace;
    box-shadow: var(--shadow-sm);
}
.tableContainer {
    background: linear-gradient(145deg, var(--white), var(--light-bg));
    border-radius: var(--radius-lg);
    overflow-x: auto !important;
    overflow-y: visible !important;
    -webkit-overflow-scrolling: touch;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    margin-bottom: 32px;
    position: relative;
    padding-bottom: 20px;
}
.materialTable {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    position: relative;
    table-layout: auto !important;
    background: var(--white);
    min-width: 600px;
}
.materialTable th:nth-child(1),
.materialTable td:nth-child(1) {
    width: 10%;
    min-width: 50px;
    max-width: 60px;
}
.materialTable th:nth-child(2),
.materialTable td:nth-child(2) {
    width: 25%;
    min-width: 120px;
}
.materialTable th:nth-child(3),
.materialTable td:nth-child(3) {
    width: 40%;
    min-width: 200px;
}
.materialTable th:nth-child(4),
.materialTable td:nth-child(4) {
    width: 20%;
    min-width: 120px;
}
.materialTable th:nth-child(5),
.materialTable td:nth-child(5) {
    width: 10%;
    min-width: 80px;
    max-width: 100px;
}
.materialTable th {
    background: var(--primary-gradient);
    color: white;
    padding: 16px 12px;
    text-align: center;
    font-weight: 600;
    font-size: 13px;
    position: sticky;
    top: 0;
    border-bottom: 2px solid white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.materialTable td {
    padding: 14px 12px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    background: var(--white);
    position: relative !important;
    vertical-align: middle;
    height: 80px;
    overflow: visible !important;
}
.materialTable tbody tr:last-child td {
    border-bottom: none;
}
.materialTable .materialSearchContainer {
    position: relative !important;
    width: 100%;
    height: 46px;
    background: var(--white);
    border-radius: var(--radius-sm);
}
.materialTable .materialSearchInput {
    position: relative;
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    font-size: 14px;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    box-shadow: var(--shadow-sm);
}
.materialTable .materialSearchInput:focus {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-focus);
}
.rangeText {
    display: block;
    padding: 12px;
    font-size: 13px;
    font-weight: 500;
    color: var(--primary-color);
    background: var(--light-bg);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    text-align: center;
    font-family: 'Courier New', monospace;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
    position: relative;
    box-shadow: var(--shadow-sm);
}
.materialDropdown {
    position: fixed !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    max-height: 300px;
    overflow-y: auto;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    z-index: 99999 !important;
    border: 1px solid var(--border-color);
    animation: slideDown 0.2s ease;
    display: none;
    margin-top: 2px;
}
@keyframes slideDown {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
.materialDropdownItem {
    padding: 12px 16px;
    cursor: pointer;
    transition: all var(--transition-fast);
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--white) !important;
    font-size: 13px;
    position: relative;
    z-index: 10001;
    box-shadow: var(--shadow-sm);
}
.materialDropdownItem:hover {
    background: linear-gradient(90deg, var(--primary-color), #8b5cf6) !important;
    color: white;
    z-index: 10002;
    box-shadow: var(--shadow-hover);
}
#fcCombinationsText {
    background: var(--light-bg);
    padding: 24px;
    border-radius: var(--radius-lg);
    border: 2px solid var(--border-color);
    max-height: 600px;
    overflow-y: auto;
    margin-top: 24px;
    line-height: 1.6;
    resize: none;
    box-shadow: var(--shadow-md);
    display: none;
}
.realTimeResult {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 12px;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
    display: flex !important;
    align-items: center !important;
}
.realTimeResult:hover {
    box-shadow: var(--shadow-hover);
}
.realTimeResult[style*="display: none"] {
    display: none !important;
}
.actionButtons {
    display: flex;
    gap: 16px;
    margin: 32px 0;
    flex-wrap: wrap;
}
#floatCombosDiv .actionButtons {
    display: flex;
    flex-direction: row;
    gap: 16px;
    margin: 32px 0;
    width: 100%;
}
#floatCombosDiv .actionButtons button {
    flex: 1;  /* 两个按钮等宽 */
    padding: 18px 32px;
    font-size: 16px;
    min-height: 56px;
    box-shadow: var(--shadow-lg);
}
#floatCombosDiv .actionButtons button:hover:not(:disabled) {
    box-shadow: var(--shadow-hover);
}
#wearCalculationDiv .actionButtons {
    display: flex;
    flex-direction: row !important;
    gap: 16px;
    margin: 32px 0;
    width: 100%;
}
#wearCalculationDiv .actionButtons button {
    flex: 1;
    padding: 18px 32px;
    font-size: 16px;
    min-height: 56px;
    width: auto;
    box-shadow: var(--shadow-lg);
}
#wearCalculationDiv .actionButtons button:hover:not(:disabled) {
    box-shadow: var(--shadow-hover);
}
#autoCalculationDiv .actionButtons {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 32px 0;
    width: 100%;
}
#autoCalculationDiv .actionButtons button {
    width: 100%;
    padding: 18px 32px;
    font-size: 16px;
    min-height: 56px;
    box-shadow: var(--shadow-lg);
}
#autoCalculationDiv .actionButtons button:hover:not(:disabled) {
    box-shadow: var(--shadow-hover);
}
.queryResult {
    margin-top: 20px;
}
.resultCard {
    background: linear-gradient(145deg, var(--white), var(--light-bg));
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
}
.resultCard:hover {
    box-shadow: var(--shadow-hover);
}
.resultTitle {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 20px;
}
.resultGrid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}
.resultItem {
    background: var(--white);
    padding: 15px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}
.resultItem:hover {
    box-shadow: var(--shadow-hover);
}
.resultLabel {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 5px;
}
.resultValue {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    font-family: 'Courier New', monospace;
}
.sourcesContainer {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.sourceSection {
    display: none;
}
.sourceLabel {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.sourceContent {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.sourceTag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    margin-right: 8px;
    margin-bottom: 8px;
    font-weight: 500;
    transition: all var(--transition-fast);
    cursor: default;
    box-shadow: var(--shadow-sm);
}
.collectionTag {
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    color: #0369a1;
    border: 1px solid #7dd3fc;
}
.crateTag {
    background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 100%);
    color: #7c3aed;
    border: 1px solid #c4b5fd;
}
.otherTag {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    color: #16a34a;
    border: 1px solid #86efac;
}
.sourceTag:hover {
    box-shadow: var(--shadow-hover);
}
.messageToast {
    position: fixed;
    top: 32px;
    right: 32px;
    padding: 18px 24px;
    background: var(--primary-gradient);
    color: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    z-index: 10000;
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 400px;
}
.messageToast.show {
    transform: translateX(0);
}
.messageToast.info {
    background: var(--primary-gradient);
}
.messageToast.success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}
.messageToast.error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}
.messageToast.warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}
.resultInfo {
    background: var(--light-bg);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    margin: 16px 0;
    font-size: 14px;
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
}
#fcTotalCombosText {
    font-weight: 600;
    color: var(--primary-color);
}
#fcTheProgress {
    height: 6px;
    background: var(--light-bg);
    border-radius: 3px;
    margin: 16px 0;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
#fcProgressBar {
    height: 100%;
    background: var(--primary-gradient);
    border-radius: 3px;
    transition: width 0.3s ease;
    width: 0%;
    box-shadow: var(--shadow-sm);
}
.searchContainer {
    margin: 20px 0;
    padding: 16px;
    background: var(--light-bg);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
}
.searchInput {
    flex: 1;
    min-width: 200px;
    padding: 10px 15px;
    font-size: 14px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--white);
    color: var(--text-primary);
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
}
.searchInput:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: var(--shadow-focus);
}
.searchStatus {
    padding: 14px 40px;
    background: var(--white);
    border-radius: var(--radius-sm);
    font-size: 15px;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}
.infoBox {
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    border: 1px solid #7dd3fc;
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    margin: 16px 0;
    font-size: 14px;
    color: #0369a1;
    line-height: 1.5;
    box-shadow: var(--shadow-md);
}
.infoBox strong {
    color: #075985;
    font-weight: 600;
}
.productProbabilityContainer {
    margin-top: 20px;
    background: linear-gradient(145deg, var(--white), var(--light-bg));
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
}
.synthesisSummary {
    margin-bottom: 24px;
}
.synthesisSummary h4 {
    color: var(--primary-color);
    margin-bottom: 16px;
    font-size: 18px;
    font-weight: 600;
}
.summaryGrid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}
.summaryItem {
    background: var(--white);
    padding: 15px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
}
.summaryItem:hover {
    box-shadow: var(--shadow-hover);
}
.summaryLabel {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 5px;
}
.summaryValue {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}
.productsGrid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
}
.productCard {
    background: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    padding: 16px;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-md);
}
.productCard:hover {
    box-shadow: var(--shadow-hover);
    border-color: #c7d2fe;
}
.productHeader {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    gap: 10px;
}
.productInfo {
    flex: 1;
    min-width: 0;
}
.product-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.4;
}
.productTags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.gradeTag,
.crateTag {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
    box-shadow: var(--shadow-sm);
}
.gradeTag {
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    color: var(--primary-color);
    border: 1px solid #c7d2fe;
}
.crateTag {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    color: #0369a1;
    border: 1px solid #bae6fd;
}
.gradeTag:hover,
.crateTag:hover {
    box-shadow: var(--shadow-hover);
}
.productProbability {
    text-align: right;
    flex-shrink: 0;
}
.probabilityValue {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(79, 70, 229, 0.2);
}
.wearDisplay {
    background: var(--light-bg);
    border-radius: var(--radius-sm);
    padding: 10px;
    border: 1px solid var(--border-color);
    margin-top: 10px;
    box-shadow: var(--shadow-sm);
}
.wearValue {
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: var(--text-primary);
    text-align: center;
    word-break: break-all;
    line-height: 1.4;
}
.authorContainer {
    padding: 20px;
}
.authorIntro {
    background: linear-gradient(145deg, var(--white), var(--light-bg));
    padding: 30px;
    border-radius: var(--radius-lg);
    margin-bottom: 30px;
    box-shadow: var(--shadow-xl);
}
.authorIntro h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 24px;
}
.authorIntro p {
    margin-bottom: 15px;
    line-height: 1.8;
    color: var(--text-primary);
}
.socialGrid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}
.socialCard {
    background: linear-gradient(145deg, var(--white), var(--light-bg));
    padding: 25px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
    cursor: pointer;
    text-align: center;
}
.socialCard:hover {
    box-shadow: var(--shadow-hover);
}
.socialIcon {
    font-size: 40px;
    margin-bottom: 15px;
}
.socialCard h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 18px;
}
.socialCard p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 14px;
}
.socialButton {
    background: var(--primary-gradient);
    color: white;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-md);
}
.socialButton:hover {
    background: linear-gradient(135deg, #4338ca 0%, #6d28d9 100%);
    box-shadow: var(--shadow-hover);
}
.thankYouBox {
    background: var(--primary-gradient);
    color: white;
    padding: 30px;
    border-radius: var(--radius-lg);
    text-align: center;
    margin-bottom: 20px;
    box-shadow: var(--shadow-xl);
}
.thankYouBox p {
    font-size: 16px;
    line-height: 1.8;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
.footerNote {
    text-align: center;
    padding: 20px;
    color: var(--text-secondary);
    font-style: italic;
}
.searchHighlight {
    background: linear-gradient(90deg, rgba(255, 255, 0, 0.2), rgba(255, 255, 0, 0.4)) !important;
    border-left: 4px solid #ffc107 !important;
    border-right: 4px solid #ffc107 !important;
    box-shadow: var(--shadow-xl) !important;
    transition: all var(--transition-normal) !important;
    animation: highlightPulse 2s infinite !important;
}
@keyframes highlightPulse {
    0% {
        box-shadow: 0 0 10px rgba(255, 193, 7, 0.5), var(--shadow-lg);
    }
    50% {
        box-shadow: 0 0 25px rgba(255, 193, 7, 0.8), var(--shadow-xl);
    }
    100% {
        box-shadow: 0 0 10px rgba(255, 193, 7, 0.5), var(--shadow-lg);
    }
}
.exactMatchHighlight {
    color: #155724 !important;
    background: #d4edda !important;
    padding: 2px 8px !important;
    border-radius: 4px !important;
    font-weight: bold !important;
    border: 1px solid #c3e6cb !important;
    box-shadow: 0 4px 12px rgba(21, 87, 36, 0.2) !important;
}
.normalWear {
    color: #004085 !important;
    background: #cce5ff !important;
    padding: 2px 8px !important;
    border-radius: 4px !important;
    border: 1px solid #b8daff !important;
    box-shadow: var(--shadow-sm) !important;
}
.textMaterialType1 {
    color: #4f46e5 !important;
    font-weight: 600 !important;
}
.textMaterialType2 {
    color: #10b981 !important;
    font-weight: 600 !important;
}
.textMaterialType3 {
    color: #ef4444 !important;
    font-weight: 600 !important;
}
.textMaterialType4 {
    color: #f59e0b !important;
    font-weight: 600 !important;
}
.textMaterialType5 {
    color: #8b5cf6 !important;
    font-weight: 600 !important;
}
.textMaterialType6 {
    color: #ec4899 !important;
    font-weight: 600 !important;
}
.textMaterialType7 {
    color: #06b6d4 !important;
    font-weight: 600 !important;
}
.textMaterialType8 {
    color: #84cc16 !important;
    font-weight: 600 !important;
}
.textMaterialType9 {
    color: #f97316 !important;
    font-weight: 600 !important;
}
.textMaterialType10 {
    color: #14b8a6 !important;
    font-weight: 600 !important;
}
.materialType1 {
    background: #4f46e5;
}
.materialType2 {
    background: #10b981;
}
.materialType3 {
    background: #ef4444;
}
.materialType4 {
    background: #f59e0b;
}
.materialType5 {
    background: #8b5cf6;
}
.materialType6 {
    background: #ec4899;
}
.materialType7 {
    background: #06b6d4;
}
.materialType8 {
    background: #84cc16;
}
.materialType9 {
    background: #f97316;
}
.materialType10 {
    background: #14b8a6;
}
.divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
    margin: 30px 0;
    box-shadow: var(--shadow-sm);
}
.grade-consumer {
    background: linear-gradient(135deg, #E3F2FD 0%, #BBDEFB 100%) !important;
    color: #1565C0 !important;
    border: 1px solid #90CAF9 !important;
    box-shadow: var(--shadow-md) !important;
}
.grade-industrial {
    background: linear-gradient(135deg, #90CAF9 0%, #64B5F6 100%) !important;
    color: #0D47A1 !important;
    border: 1px solid #42A5F5 !important;
    box-shadow: var(--shadow-md) !important;
}
.grade-milspec {
    background: linear-gradient(135deg, #2196F3 0%, #1E88E5 100%) !important;
    color: white !important;
    border: 1px solid #1976D2 !important;
    box-shadow: var(--shadow-lg) !important;
}
.grade-restricted {
    background: linear-gradient(135deg, #9C27B0 0%, #7B1FA2 100%) !important;
    color: white !important;
    border: 1px solid #6A1B9A !important;
    box-shadow: var(--shadow-lg) !important;
}
.grade-classified {
    background: linear-gradient(135deg, #e423b7ff 0%, rgb(219, 37, 177) 100%) !important;
    color: white !important;
    border: 1px solid #d13478e8 !important;
    box-shadow: var(--shadow-lg) !important;
}
.grade-covert {
    background: linear-gradient(135deg, #F44336 0%, #D32F2F 100%) !important;
    color: white !important;
    border: 1px solid #C62828 !important;
    box-shadow: var(--shadow-xl) !important;
    font-weight: 700 !important;
}
.grade-ancient {
    background: linear-gradient(135deg, #FFD700 0%, #FFC107 100%) !important;
    color: #8B7500 !important;
    border: 1px solid #FFB300 !important;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.6), var(--shadow-xl) !important;
    font-weight: 800 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
    position: relative !important;
    overflow: hidden !important;
    animation: goldenGlow 2s infinite ease-in-out !important;
}
@keyframes goldenGlow {
    0%,
    100% {
        box-shadow: 0 0 15px rgba(255, 215, 0, 0.5), var(--shadow-lg);
    }
    50% {
        box-shadow: 0 0 25px rgba(255, 215, 0, 0.8), var(--shadow-xl);
    }
}
.materialGradeBadge {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 4px 12px !important;
    border-radius: 20px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.8px !important;
    white-space: nowrap !important;
    margin-right: 6px !important;
    min-width: 60px !important;
    height: 24px !important;
    box-shadow: var(--shadow-md) !important;
    transition: all var(--transition-normal) !important;
    position: relative !important;
    z-index: 1 !important;
}
.materialGradeBadge:hover {
    box-shadow: var(--shadow-hover) !important;
}
.materialDropdownItem .materialGradeBadge {
    margin-right: 10px !important;
    min-width: 65px !important;
    text-align: center !important;
    font-size: 10px !important;
}
.materialDropdownItem:hover .materialGradeBadge {
    color: white !important;
    background: inherit !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
}
.productCard .materialGradeBadge {
    margin: 4px 0 !important;
    padding: 6px 14px !important;
    font-size: 12px !important;
    min-width: 70px !important;
    height: 26px !important;
}
.productCard:hover .materialGradeBadge {
    box-shadow: var(--shadow-hover) !important;
}
.tableContainer::after {
    content: '← 滑动查看完整表格 →';
    display: block;
    text-align: center;
    font-size: 12px;
    color: var(--text-secondary);
    padding: 8px;
    background: linear-gradient(to right, transparent, var(--light-bg), transparent);
    margin-top: 8px;
    position: sticky;
    left: 0;
    right: 0;
    box-shadow: var(--shadow-sm);
}
#autoCalculationDiv .calculatedValue {
    background-color: var(--light-bg);
    border: 1px solid var(--border-color);
    text-align: center;
    cursor: default;
    box-shadow: var(--shadow-sm);
}
#ieeeResult .materialGradeBadge {
    margin-left: 12px;
    vertical-align: middle;
    font-size: 12px !important;
    padding: 6px 12px !important;
    height: 28px !important;
    box-shadow: var(--shadow-lg);
}
#ieeeResult .resultTitle {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--border-color);
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1;
}
#ieeeResult .resultGrid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin-top: 20px;
}
.materialTable td:last-child {
    text-align: center;
}
.materialTable button {
    min-width: 70px;
    max-width: 100px;
    height: 36px;
    padding: 8px 12px;
    font-size: 13px;
    margin: 0 auto;
    box-shadow: var(--shadow-md);
}
.materialTable button:hover:not(:disabled) {
    box-shadow: var(--shadow-hover);
}
@media (min-width: 1025px) {
    .tableContainer::after {
        display: none;
    }
}
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    .container {
        border-radius: var(--radius-md);
    }
    .tab {
        flex-wrap: wrap;
        border-radius: var(--radius-md) var(--radius-md) 0 0;
    }
    .tabButton {
        flex: 1 0 calc(50% - 8px);
        padding: 14px 16px;
        font-size: 14px;
    }
    .tabcontent {
        padding: 20px;
    }
    .selectorGroup,
    .materialTypesContainer,
    .criteriaContainer {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .materialWearRange {
        flex-direction: column !important;
        gap: 12px !important;
    }
    .materialWearRange>div:first-child,
    .materialWearRange>div:last-child {
        width: 100% !important;
        max-width: 100% !important;
        min-width: auto !important;
    }
    .wearRangeDisplay {
        width: 100%;
        padding: 10px;
    }
    .wearRangeDisplay .range-value {
        font-size: 13px;
        word-break: break-all;
        white-space: normal;
    }
    .materialSearchContainer {
        width: 100%;
    }
    .materialTypeContainer {
        padding: 16px;
    }
    .materialTypeHeader {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .materialTypeHeader h4 {
        margin-bottom: 0;
    }
    .materialTypeButtons {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .materialTypeButtons button {
        padding: 8px 10px;
        font-size: 12px;
    }
    #wearCalculationDiv .actionButtons {
        flex-direction: column !important;
    }
    #wearCalculationDiv .actionButtons button {
        width: 100% !important;
    }
    #wearCalculationDiv .actionButtons button,
    #autoCalculationDiv .actionButtons button {
        padding: 14px 20px;
        font-size: 15px;
        min-height: 50px;
    }
    .materialTypeButtons {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    }
    .materialTypeButtons button {
        font-size: 12px;
        padding: 8px 10px;
    }

    .actionButtons {
        flex-direction: column;
    }

    .actionButtons button {
        width: 100%;
    }
    .tableContainer {
        overflow-x: auto;
        padding-bottom: 30px !important;
    }
    .materialTable {
        min-width: 650px;
        font-size: 13px;
    }
    .materialTable th,
    .materialTable td {
        padding: 12px 8px;
        height: auto;
        min-height: 70px;
        white-space: nowrap;
        vertical-align: middle;
    }
    .materialTable th:nth-child(1),
    .materialTable td:nth-child(1) {
        width: 12% !important;
        min-width: 50px;
        max-width: 60px;
    }
    .materialTable th:nth-child(2),
    .materialTable td:nth-child(2) {
        width: 28% !important;
        min-width: 130px;
    }
    .materialTable th:nth-child(3),
    .materialTable td:nth-child(3) {
        width: 35% !important;
        min-width: 180px;
    }
    .materialTable th:nth-child(4),
    .materialTable td:nth-child(4) {
        width: 20% !important;
        min-width: 120px;
    }
    .materialTable th:nth-child(5),
    .materialTable td:nth-child(5) {
        width: 10% !important;
        min-width: 70px;
        max-width: 80px;
    }
    .materialTable input[type="text"] {
        font-size: 13px;
        padding: 10px 12px;
        height: 42px;
        min-width: 120px;
    }
    .materialTable .materialSearchInput {
        font-size: 13px;
        padding: 10px 12px;
        height: 42px;
        min-width: 150px;
    }
    .rangeText {
        font-size: 12px;
        padding: 10px;
        height: 42px;
        display: flex;
        align-items: center;
        justify-content: center;
        word-break: break-word;
        white-space: normal;
        line-height: 1.3;
    }
    .materialTable .materialDropdown {
        min-width: 100% !important;
        max-width: 100% !important;
        left: 0 !important;
        position: absolute !important;
        top: 100% !important;
    }
    .calculatedValue {
        font-size: 12px !important;
        text-align: center;
        word-break: break-all;
        white-space: normal;
        line-height: 1.3;
    }
    .tableContainer::-webkit-scrollbar {
        height: 8px;
    }
    .tableContainer::-webkit-scrollbar-track {
        background: var(--light-bg);
        border-radius: 4px;
        box-shadow: var(--shadow-sm);
    }
    .tableContainer::-webkit-scrollbar-thumb {
        background: var(--primary-color);
        border-radius: 4px;
        box-shadow: var(--shadow-sm);
    }
    .tableContainer::-webkit-scrollbar-thumb:hover {
        background: #4338ca;
        box-shadow: var(--shadow-md);
    }
    .resultGrid {
        grid-template-columns: 1fr;
    }
    .socialGrid {
        grid-template-columns: 1fr;
    }
    .productsGrid {
        grid-template-columns: 1fr;
    }
    .productHeader {
        flex-direction: column;
        gap: 10px;
    }
    .productProbability {
        text-align: left;
        width: 100%;
    }
    .summaryGrid {
        grid-template-columns: 1fr;
    }
    .searchContainer {
        flex-direction: column;
        gap: 10px;
    }
    .searchInput {
        min-width: 100%;
    }
    .batchSection {
        padding: 16px;
        margin-top: 16px;
    }
    .batchResults {
        padding: 12px;
        max-height: 400px;
    }
}
@media (max-width: 480px) {
    .tabButton {
        flex: 1 0 100%;
    }
    .sectionTitle {
        font-size: 18px;
    }
    .materialWearRange {
        gap: 10px !important;
    }
    .wearRangeDisplay {
        padding: 8px;
    }
    .wearRangeDisplay .range-value {
        font-size: 12px;
    }
    .materialTypeButtons {
        grid-template-columns: 1fr !important;
    }
    .materialTypeButtons button {
        width: 100%;
        margin-bottom: 4px;
    }
    .materialTypeTextarea,
    .materialTypeOutput {
        font-size: 12px;
        min-height: 80px;
    }
    .materialTypeContainer {
        padding: 16px;
    }
    .authorIntro {
        padding: 20px;
    }
    .socialCard {
        padding: 20px;
    }
    .materialTable {
        min-width: 680px;
    }
    .materialTable th,
    .materialTable td {
        padding: 10px 6px;
        min-height: 65px;
        font-size: 12px;
    }
    .materialTable th:nth-child(1),
    .materialTable td:nth-child(1) {
        min-width: 40px;
    }
    .materialTable th:nth-child(2),
    .materialTable td:nth-child(2) {
        min-width: 110px;
    }
    .materialTable th:nth-child(3),
    .materialTable td:nth-child(3) {
        min-width: 160px;
    }
    .materialTable th:nth-child(4),
    .materialTable td:nth-child(4) {
        min-width: 100px;
    }
    .materialTable .materialSearchInput {
        font-size: 12px;
        padding: 8px 10px;
        height: 38px;
        min-width: 130px;
    }
    .rangeText {
        font-size: 11px;
        padding: 8px;
        height: 38px;
    }
    .materialTable button {
        padding: 8px 12px;
        font-size: 12px;
        min-width: 60px;
        height: 36px;
    }
    .materialTable .materialDropdown {
        min-width: 100% !important;
        max-width: 100% !important;
        position: absolute !important;
    }
    .productTags {
        flex-direction: column;
        align-items: flex-start;
    }
    .gradeTag,
    .crateTag {
        width: fit-content;
    }
    .wearValue {
        font-size: 11px;
    }
    .ieee754Display {
        font-size: 11px;
        padding: 4px 8px;
    }
    .batchSection {
        padding: 12px;
    }
    .batchSection .sectionTitle {
        font-size: 16px;
        gap: 8px;
    }
    .batchSelectRadio {
        width: 16px !important;
        height: 16px !important;
        margin: 0 8px 0 0 !important;
    }
}
@media (min-width: 769px) and (max-width: 1024px) {
    .materialTable {
        min-width: 900px;
    }
    .materialTable th,
    .materialTable td {
        padding: 14px 10px;
    }
    .materialTable th:nth-child(3),
    .materialTable td:nth-child(3) {
        min-width: 220px;
    }
    .materialTable .materialSearchInput {
        min-width: 180px;
    }
}
@media (max-width: 768px) {
    #ieeeResult .resultTitle {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    #ieeeResult .materialGradeBadge {
        margin-left: 0 !important;
        align-self: flex-start;
    }
    #batchControlArea {
        padding: 12px !important;
    }
    #batchControlArea>div:last-child {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
    }
    #batchControlArea button {
        padding: 12px 14px !important;
        font-size: 13px !important;
    }
}
.batchSection {
    margin-top: 20px;
    padding: 20px;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}
.batchSection .sectionTitle {
    color: var(--primary-color);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}
.batchResults {
    max-height: 500px;
    overflow-y: auto;
    padding: 0;
    border-radius: var(--radius-sm);
}
.batchSelectRadio {
    cursor: pointer;
    width: 18px;
    height: 18px;
    margin-right: 10px;
    accent-color: #3b82f6;
}
.batchSelectRadio:checked {
    box-shadow: 0 0 5px #3b82f6;
}
/* 悬停效果 */
.realTimeResult:hover .batchSelectRadio {
    transform: scale(1.1);
    transition: transform 0.2s;
}
#batchControlArea {
    margin-top: 20px;
}
.mainMaterial {
    background: linear-gradient(135deg, #f0f7ff 0%, #e6f0ff 100%) !important;
}
.materialTypeHeader {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}
.roleToggleButton {
    background: #94a3b8;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
    margin-left: 10px;
}
.roleToggleButton.active {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
}
.roleToggleButton:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.ratioSlider {
    width: 100%;
    height: 8px;
    -webkit-appearance: none;
    appearance: none;
    background: linear-gradient(to right, #c1a1dc, #8538c8);
    border-radius: 4px;
    outline: none;
    margin: 10px 0;
}
.ratioSlider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: white;
    border: 2px solid #3b82f6;
    border-radius: 50%;
    cursor: pointer;
}
.ratioSlider:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.ratioSettings {
    margin: 20px 0;
    padding: 15px;
    background: linear-gradient(145deg, var(--white), var(--light-bg));
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: box-shadow var(--transition-normal);
}
.ratioSettings:hover {
    box-shadow: var(--shadow-hover);
}
.ratioSlider {
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition-normal);
}
.ratioSlider:hover {
    box-shadow: var(--shadow-md);
}
.ratioHeader {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.ratioValue {
    background: var(--primary-gradient);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
}
.ratioTicks {
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
    font-size: 12px;
}
.ratioStatus {
    margin-top: 10px;
    font-size: 15px;
    text-align: center;
}
.ratioButtons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}
.batchNumber{
    background: var(--primary-gradient);
    color: white; 
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
}
* {
    cursor: url('Vice.png'), auto !important;
}