/**
 * Like Button Component Styles
 * Styling for favorite/unfavorite buttons
 */

.like-btn-container {
	display: flex;
	justify-content: flex-end;
	margin: 10px 0;
}

.favorite_btn {
	background: rgba(255, 255, 255, 0.8);
	border: 1px solid rgba(0, 0, 0, 0.1);
	color: #333;
	font-size: 0.9em;
	padding: 0.4em 1em;
	font-weight: 500;
	border-radius: 20px;
	backdrop-filter: blur(5px);
	transition: all 0.3s ease;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);

	&:hover,
	&:focus {
		background: rgba(255, 255, 255, 0.95);
		color: #000;
		border-color: rgba(0, 0, 0, 0.2);
		transform: translateY(-1px);
		box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	}

	&:active {
		transform: translateY(0);
		box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
	}

	/* 已点赞状态 */
	&.liked {
		background: rgba(255, 255, 255, 0.9);
		color: #e74c3c;
		border-color: rgba(231, 76, 60, 0.3);

		&:hover {
			background: rgba(231, 76, 60, 0.1);
			color: #c0392b;
		}
	}

	/* 图标样式 */
	i {
		margin-right: 0.3em;
		transition: color 0.3s ease;
	}

	/* 移除原有的伪元素样式 */
	&:before {
		display: none;
	}
}

/**
 * Preprint Share Component Styles
 * Styling for social sharing buttons and QR code modal
 */

.share-container {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin: 10px 0;
}

.share-buttons {
    display: flex;
    gap: 8px;
}

.highlighted-share-btn {
    background: linear-gradient(135deg, #234795 0%, #1a3570 100%);
    color: #fff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    font-size: 0.9em;
    padding: 0.4em 1em;
    font-weight: 500;
    border-radius: 20px;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    i {
        margin-right: 0.3em;
        transition: color 0.3s ease;
    }
}

.share_btn {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #333;
    font-size: 0.9em;
    padding: 0.4em 1em;
    font-weight: 500;
    border-radius: 20px;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);

    /* &:hover,
    &:focus {
        background: rgba(255, 255, 255, 0.95);
        color: #000;
        border-color: rgba(0, 0, 0, 0.2);
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

    &:active {
        transform: translateY(0);
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    } */

    /* 图标样式 */
    i {
        margin-right: 0.3em;
        transition: color 0.3s ease;
    }
}

/**
 * Author Tooltip Styles
 * Styling for author name hover tooltip
 */
.author-tooltip-wrapper {
    position: relative;
    display: inline-block;
    cursor: pointer;
    padding-bottom: 2px;
    transition: border-color 0.2s ease;
}

.author-tooltip-wrapper:hover {
    border-color: #0056b3;
}

.author-tooltip {
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #f1f1f1;
    color: #000;
    padding: 10px 15px;
    border-radius: 6px;
    font-size: 18px;
    line-height: 1.4;
    white-space: normal;
    word-wrap: break-word;
    max-width: none;
    width: max-content;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
}

/* 添加小箭头 */
.author-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: #f1f1f1 transparent transparent transparent;
}

.author-tooltip-wrapper:hover .author-tooltip {
    opacity: 1;
    visibility: visible;
}

.author-tooltip .affiliation {
    display: block;
    margin-bottom: 8px;
    color: #3566d0;
    list-style: none;
    padding: 0;
    margin: 0 0 8px 0;
}

.author-tooltip .affiliation li {
    display: block;
    width: 100%;
    white-space: normal;
    /* word-wrap: break-word; */
    margin-bottom: 4px;
}

.author-tooltip .orcid {
    display: flex;
    align-items: center;
    color: #3566d0;
    gap: 0px;
    margin-top: 8px;
}

.author-tooltip a {
    color: #a6843f;
    text-decoration: none;
    transition: color 0.2s ease;
}

.author-tooltip a:hover {
    color: #a6843f;
    text-decoration: underline;
}

/* LTS风格列表样式 */
.lts-search-result {
    /* margin-bottom: 10px; */
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1.4;
}

.lts-search-result .result-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.lts-search-result .result-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    flex: 1;
}

.lts-search-result .result-title a {
    color: #1a0dab;
    text-decoration: none;
}

.lts-search-result .result-title a:hover {
    text-decoration: underline;
}

.lts-search-result .submission-date {
    color: #70757a;
    font-size: 13px;
    white-space: nowrap;
    margin-left: 15px;
}

.lts-search-result .date-label {
    font-weight: 600;
    color: #70757a;
    /* margin-right: 24px; */
}

.lts-search-result .date-value {
    color: #70757a;
}

.lts-search-result .downloads-label,
.lts-search-result .favorites-label,
.lts-search-result .keywords-label {
    font-weight: 600;
    color: #70757a;
    /* margin-right: 5px; */
}

.lts-search-result .views-label {
    font-weight: 600;
    color: #70757a;
    /* margin-right: 19px; */
}

.lts-search-result .views-value,
.lts-search-result .downloads-value,
.lts-search-result .favorites-value {
    color: #70757a;
}

.lts-search-result .authors {
    margin-bottom: 8px;
    font-size: 14px;
    color: #006621;
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
}

.lts-search-result .authors-label {
    font-weight: 600;
    color: #70757a;
    flex-shrink: 0;
}

.lts-search-result .authors-list {
    color: #a6843f;
    flex-grow: 1;
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: calc(100% - 80px);
}

.lts-search-result .keywords-label {
    font-weight: 600;
    color: #70757a;
    flex-shrink: 0;
}

.lts-search-result .keywords-list {
    color: #a6843f;
    flex-grow: 1;
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: calc(100% - 80px);
}

.lts-search-result .abstract-preview {
    margin-bottom: 8px;
    font-size: 14px;
    color: #4d5156;
    line-height: 1.4;
    text-align: justify;
}

.lts-search-result .abstract-label {
    font-weight: 600;
    color: #70757a;
    /* margin-right: 18px; */
    float: left;
    clear: left;
}

.lts-search-result .abstract-text {
    color: #4d5156;
    display: block;
    margin-left: 0px;
    text-indent: 0em;

    p {
        line-height: 1.4rem;
        margin: 0.43rem 0;
    }
}

.lts-search-result .result-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: -1px 15px;
    font-size: 14px;
    color: #70757a;
    margin-bottom: 8px;
}

.lts-search-result .result-meta > div {
    display: flex;
    align-items: center;
}

.lts-search-result .result-meta .separator {
    margin: 0 5px;
    color: #dadce0;
}

.lts-search-result .format-links {
    display: flex;
    gap: 10px;
    margin-top: 5px;
}

.lts-search-result .format-link {
    font-size: 14px;
    color: #234795;
    text-decoration: none;
    padding: 2px 6px;
    border: 1px solid #dadce0;
    border-radius: 3px;
    background-color: #f8f9fa;
}

.lts-search-result .format-link:hover {
    background-color: #e8f0fe;
    border-color: #a6843f;
}

.authors,
.doi-line {
    display: flex;
    align-items: flex-start;
    margin-bottom: 8px;
}

.authors-label,
.abstract-label,
.date-label,
.views-label,
.keywords-label,
.doi-label {
    width: 79px; /* 默认宽度，英文环境 */
}

[lang^="zh"] .authors-label,
[lang^="zh"] .abstract-label,
[lang^="zh"] .date-label,
[lang^="zh"] .views-label,
[lang^="zh"] .keywords-label,
[lang^="zh"] .doi-label {
    width: 52px; /* 中文环境下的宽度调整 */
}

/* 二维码模态框样式 */
.qr-modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-modal-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 90%;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.qr-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 20px 10px;
    border-bottom: 1px solid #eee;
}

.qr-modal-header h3 {
    margin: 0;
    color: #333;
    font-size: 18px;
}

.qr-close {
    color: #aaa;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.qr-close:hover {
    color: #333;
}

.qr-modal-body {
    padding: 20px;
    text-align: center;
}

.qr-modal-body p {
    margin: 0 0 15px 0;
    color: #666;
    font-size: 14px;
    line-height: 1.4;
}

#qrcode {
    margin: 15px auto;
    padding: 10px;
    background: white;
    border-radius: 8px;
    display: inline-block;
}

.qr-url {
    margin-top: 15px !important;
    padding: 10px;
    background: #f5f5f5;
    border-radius: 6px;
    word-break: break-all;
    font-size: 12px !important;
    color: #888 !important;
}

/**
 * advancedSearch Styles
 * Styling for advancedSearch
 */
.search_term_row {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-bottom: 8px;
        padding: 8px 12px;
        background-color: #fff;
        border-radius: 6px;
		border: 1px solid #e9ecef;
		transition: box-shadow 0.15s ease-in-out;
}

.search_term_row:hover {
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
		
.search_term_operator {
    flex: 0.3;
}

.search_term_input {
    flex: 1;
}

.search_term_field {
    flex: 0.3;
}

.search_term_actions {
    flex: 0.2;
}

.search_term_row label {
    display: none;
}

.search_term_row select,
.search_term_row input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
    height: 38px;
    box-sizing: border-box;
    line-height: 1.4;
    background-color: #fff;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.search_term_row select:focus,
.search_term_row input:focus {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.addTerm {
    background: linear-gradient(135deg, #234795 0%, #1a3570 100%);
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
    transition: background-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.addTerm:hover:not(:disabled) {
    background-color: #0069d9;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.addTerm:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
    opacity: 0.6;
}

.removeTerm {
    background: linear-gradient(135deg, #234795 0%, #1a3570 100%);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: background-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.removeTerm:hover {
    background-color: #c82333;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.search_hint {
    margin-top: 5px;
    color: #6c757d;
    font-size: 12px;
}

.search_advanced {
    margin-top: 20px;
}

.search_term {
    margin-bottom: 20px;
}

/* Date range styles */
.date_range_container {
    margin-top: 20px;
    /* padding: 15px; */
    /* padding-top: 15px; */
    padding-left: 15px;
    padding-right: 15px;
    /* background-color: #fff;
    border-radius: 6px;
    border: 1px solid #e9ecef; */
}

.date_range_row {
    display: flex;
    align-items: center;
    gap: 0px;
}

.date_range_label {
    flex: 0 0 100px;
}

.date_range_label label {
    font-weight: bold;
    font-size: 14px;
    color: #333;
}

.date_range_inputs {
    flex: 1;
    display: flex;
    gap: 15px;
    align-items: center;
}

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

.date_input_group label {
    font-size: 14px;
    color: #666;
    white-space: nowrap;
}

.date_input {
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
    height: 38px;
    box-sizing: border-box;
    line-height: 1.4;
    min-width: 140px;
    background-color: #fff;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.date_input:focus {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

@media (max-width: 768px) {
    .date_range_row {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .date_range_label {
        flex: none;
    }
    
    .date_range_inputs {
        flex-direction: column;
        gap: 10px;
    }
    
    .date_input_group {
        justify-content: space-between;
    }
    
    .date_input {
        min-width: auto;
        flex: 1;
    }
}

@media (max-width: 768px) {
    .search_term_row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search_term_field,
    .search_term_operator,
    .search_term_input,
    .search_term_actions {
        flex: none;
    }
}

/* Main search input styling */
.search_input {
    margin-bottom: 20px;
}

.search_input .query {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 6px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.search_input .query:focus {
    color: #495057;
    background-color: #fff;
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Advanced search container layout */
.search_advanced_container {
    margin-top: 20px;
}

.search_advanced_wrapper {
    display: flex;
    gap: 30px;
    margin-top: 15px;
}

.search_advanced_left {
    flex: 0.66;
    padding: 20px;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
}

.search_advanced_right {
    flex: 0.33;
    padding: 20px;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
}

/* Main legend styling for left and right columns */
.search_advanced_left legend,
.search_advanced_right legend {
    font-weight: bold;
    font-size: 16px;
    color: #333;
    padding-bottom: 10px;
    margin-bottom: 15px;
    border-bottom: 1px solid #dee2e6;
    width: 100%;
}

/* Filter group styling */
.filter_group {
    margin-bottom: 25px;
    overflow: visible;
}

/* Filter row styling for inline label and select */
.filter_row {
    display: flex;
    align-items: center;
    min-height: 40px;
    overflow: visible;
}

/* Label styling for filter groups */
.filter_row > label {
    display: inline-block;
    margin-right: 10px;
    margin-bottom: 0;
    font-weight: 500;
    font-size: 14px;
    color: #495057;
    min-width: 120px;
}

.date_range_start,
.date_range_end {
    flex: 1;
}

.date_range_separator {
    padding: 0 8px;
    color: #6c757d;
    font-size: 14px;
}

/* Sub-legend styling for filter groups */
.filter_group legend {
    font-weight: bold;
    font-size: 14px;
    color: #495057;
    padding-bottom: 8px;
    margin-bottom: 10px;
    border-bottom: 1px solid #e9ecef;
    width: 100%;
}

.filter_group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 14px;
    color: #5e2d79;
}

.filter_select {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
    height: 42px;
    min-height: 42px;
    box-sizing: border-box;
    background-color: #fff;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    line-height: 1.4;
    overflow: visible;
}

.filter_select:focus {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Date range container styling */
.date_filter .date_range_container {
    /* background-color: #fff;
    border: 1px solid #e9ecef;
    border-radius: 4px; */
    /* padding: 15px; */
    padding-top: 15px;
    margin: 10px 0;
    min-height: 50px;
}

/* Results per page and sort by specific styles */
.results_per_page_filter .control_group,
.sort_by_filter .control_group {
    margin-bottom: 0;
}

/* Responsive layout */
@media (max-width: 992px) {
    .search_advanced_wrapper {
        flex-direction: column;
        gap: 20px;
    }
    
    .search_advanced_left,
    .search_advanced_right {
        width: 100%;
    }
}

.results_per_page {
    display: flex;
    align-items: center;
    gap: 18px;
    
    .control_group {
        display: flex;
        align-items: center;
        gap: 8px;
        
        label {
            margin: 0;
            white-space: nowrap;
        }
        
        select {
            min-width: 160px;
        }
    }
}

/* 移动端适配 */
@media (max-width: 768px) {
    .results_per_page {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        
        .control_group {
            justify-content: space-between;
            gap: 12px;
            
            label {
                flex: 0 0 auto;
                min-width: 120px;
            }
            
            select {
                min-width: auto;
                flex: 1;
            }
        }
    }
}

/* 小屏幕手机适配 */
@media (max-width: 480px) {
    .results_per_page {
        gap: 8px;
        
        .control_group {
            flex-direction: column;
            align-items: stretch;
            gap: 4px;
            
            label {
                min-width: auto;
                text-align: left;
                font-size: 14px;
            }
            
            select {
                width: 100%;
            }
        }
    }
}

/**
 * Sort Button Styles
 * Styling for sort buttons
 */
.sort-btn {
    font-weight: 700;
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
}
.sort-btn:not(.active) {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #a6843f;
}
.sort-btn:not(.active):hover {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    transform: translateY(-1px);
}
.sort-btn.active {
    background: linear-gradient(135deg, #234795 0%, #1a3570 100%);
    color: #fff;
    /* border-color: #5e2d79; */
    box-shadow: 0 4px 8px rgba(94, 45, 121, 0.3);
    transform: translateY(-2px);
}


/**
 * Wiley category list Styles
 * Styling for Wiley category list
 */
/* Wiley 风格的折叠分类列表样式 */
.subjects-container {
    background-color: #ffffff;
    border-radius: 4px;
    padding: 0px 0;
    margin-bottom: 24px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    /* 隐藏滚动条但保留滚动功能 */
    overflow-y: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    
    /* Chrome, Safari, Opera 滚动条隐藏 */
    &::-webkit-scrollbar {
        display: none;
    }
    
    @media (min-width: 768px) {
    }
    
    @media (min-width: 1200px) {
        float: left;
        width: 300px;
        position: fixed;
        left: 10px;
        top: 200px; /* 初始顶部间距 */
        /* max-height: calc(100vh); 
        height: calc(100vh); */
        /* max-height 由 JavaScript 动态控制 */
        height: auto; /* 高度自适应内容 */
        overflow: auto;
        transition: top 0.3s ease, max-height 0.3s ease; /* 添加过渡效果 */
        overscroll-behavior-block: contain;
    }
}

.subjects-title {
    font-size: 23px;
    font-weight: 400;
    color: #000000;
    margin: 0 0 16px 20px;
    line-height: 1.3;
}

.subjects-list {
    border: 1px solid #e1e1e1;
    border-radius: 4px;
    overflow: hidden;
}

.subject-item {
    border-bottom: 1px solid #e1e1e1;
}

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

.subject-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background-color: #234795;
    transition: background-color 0.2s ease;

    a:focus {
        color: #fff;
    }
}

.subject-header:hover {
    background-color: #d0cece;
    .subject-main-link {
        color: #a6843f;
    }
    .subject-toggle {
        background-color: #fff;
        border-color: #999;
    }
}

.subject-main-link {
    flex: 1;
    display: inline-block;
    color: #fff;
    font-weight: 400;
    font-size: 1.143rem;
    text-decoration: none;
    padding: 4px 0;
    transition: color 0.2s ease;
}

.subject-main-link.highlighted {
    color: #a6843f;
    font-weight: 600;
}

.subcategory-link.highlighted {
    color: #a6843f;
    font-weight: 600;
}

.subject-main-link:hover {
    color: #a6843f;
}

.subject-name {
    display: inline-block;
    vertical-align: middle;
}

.subject-toggle {
    width: 24px;
    height: 24px;
    background: none;
    border: 1px solid #fff;
    border-radius: 3px;
    cursor: pointer;
    padding: 0;
    margin-left: 12px;
    transition: all 0.2s ease;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff
}

.subject-toggle:hover {
    background-color: #fff;
    border-color: #999;
}

.toggle-icon {
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 6px solid #666;
    transition: transform 0.2s ease;
}

.subject-toggle.expanded .toggle-icon {
    transform: rotate(180deg);
}

.subject-subcategories {
    background-color: #ffffff;
    overflow: hidden;
}

.subcategory-items {
    /* list-style: none; */
    margin: 0;
    padding: 0px 30px;
    display: flex;
    flex-wrap: wrap;
    row-gap: 5px;
    column-gap: 50px;
}

.subcategory-item {
    margin-bottom: 0;
}

.subcategory-item:last-child {
    margin-bottom: 0;
}

.subcategory-link {
    font-size: 1rem;
    color: #333;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    padding: 4px 0;
    transition: color 0.2s ease;
    line-height: 1.4;
}

.subcategory-link:hover {
    color: #a6843f;
    text-decoration: underline;
}

.item-count {
    color: #666;
    font-size: 12px;
    margin-left: 6px;
    font-weight: normal;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .subjects-container {
        padding: 12px 0;
    }

    .subjects-title {
        font-size: 16px;
        margin-left: 16px;
    }

    .subject-header {
        padding: 10px 12px;
    }

    .subject-main-link {
        font-size: 14px;
    }

    .subcategory-items {
        padding: 8px 16px;
        gap: 12px;
    }

    .subcategory-link {
        font-size: 13px;
    }

    .subject-toggle {
        width: 20px;
        height: 20px;
        margin-left: 8px;
    }

    .toggle-icon {
        border-left: 3px solid transparent;
        border-right: 3px solid transparent;
        border-top: 5px solid #666;
    }
}

/* 高对比度模式支持 */
@media (prefers-contrast: high) {
    .subjects-list {
        border: 2px solid #000;
    }

    .subject-header {
        background-color: #e0e0e0;
    }

    .subject-toggle {
        border: 2px solid #000;
    }
}

/* 减少动画的用户偏好支持 */
@media (prefers-reduced-motion: reduce) {
    .subject-subcategories {
        transition: none !important;
    }

    .subject-toggle .toggle-icon {
        transition: none !important;
    }
}

@media (max-width: 1200px) {
    .beginSubmission {
        display: none;
    }
}