* {
	margin: 0;
	padding: 0;
}
html, body {
    margin: 0;
    display: block;
	width: 100%;
	height: 100%;
	min-width: 1200px;
}
.main-container {
    width: 100%;
    background-image: url('/static/web/images/major_bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 搜索区域样式 */
.search-section {
    text-align: center;
    padding: 40px 20px;
	min-width: 1200px;
}

.search-title {
    font-size: 32px;
    color: #fff;
    margin-bottom: 20px;
    font-weight: 500;
}

.search-box {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 8px;
    padding: 5px;
    max-width: 600px;
    margin: 0 auto 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* 自定义下拉插件样式 */
.custom-select {
    position: relative;
    display: inline-block;
    min-width: 140px;
    user-select: none;
}

.select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border-radius: 6px;
    padding: 10px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.selected-text {
    font-size: 14px;
    color: #9d9d9d;
    font-weight: 500;
}

.select-arrow {
    font-size: 14px;
    color: #9d9d9d;
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.custom-select.active .select-arrow {
    transform: rotate(180deg);
}

.select-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    margin-top: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
}

.custom-select.active .select-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.select-option {
    padding: 12px 16px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
}

.select-option:last-child {
    border-bottom: none;
}

.select-option:hover {
    background: #f6ffed;
}

.select-option.active {
    background: #ffedeb;
}

.search-divider {
    width: 1px;
    height: 24px;
    background: #e0e0e0;
    margin: 0 10px;
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 14px;
    padding: 8px;
    color: #333;
}

.search-input::placeholder {
    color: #999;
}

.search-btn {
    background: transparent;
	border: none;
	cursor: pointer;
	padding: 0px 8px;
	font-size: 20px;
	margin-top: 6px;
}

.search-icon {
    color: #999;
}

/* 专业分类样式 */
.major-categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    column-gap: 10px;
    row-gap: 5px;
    min-width: 1200px;
    max-width: 1300px;
    margin: 0 auto;
	min-height: 35px;
}

.category-link {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
	font-weight: 600;
    padding: 5px 10px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.category-link:hover {
    background: rgba(255, 255, 255, 0.2);
}

.category-link.active {
    background: rgba(255, 255, 255, 0.3);
    font-weight: 700;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

/* 响应式调整 */
@media screen and (max-width: 768px) {
    .search-title {
        font-size: 24px;
    }
    
    .search-box {
        max-width: 90%;
    }
    
    .major-categories {
        gap: 10px;
    }
    
    .category-link {
        font-size: 12px;
    }
}

/* 专业列表样式 */
.major {
    width: 100%;
    padding: 20px 0;
}

.majorWrap {
    display: flex;
    gap: 20px;
}

.majorWrap-left {
    flex: 1;
    padding: 20px;
	width: calc(100% - 350px);
}

.majorWrap-right {
    width: 330px;
}

/* 学科列表样式 */
.subject-list {
    width: 100%;
}

.subject-item {
    margin-bottom: 30px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 20px;
}

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

.subject-title {
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 20px;
    font-weight: 600;
    color: #333;
    position: relative;
    padding-left: 20px;
}

.subject-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: #ff4d4f;
    border-radius: 2px;
}

.subject-code {
    font-weight: 600;
}

.subject-count {
    font-size: 14px;
    color: #878787;
    font-weight: normal;
}

.subject-ratio {
    margin-left: 20px;
    font-size: 14px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
    justify-content: flex-end;
	top: 10px;
	right: 0px;
	position: absolute;
}

.ratio-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.ratio-label {
    min-width: 50px;
    text-align: right;
}

.ratio-bar {
    width: 130px;
    height: 8px;
    background-color: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
}

.ratio-fill {
    height: 100%;
    transition: width 0.3s ease;
}

.ratio-blue {
    background-color: #1e90ff;
}

.ratio-pink {
    background-color: #ff69b4;
}

.ratio-orange {
    background-color: #ff8c00;
}

.ratio-yellow {
    background-color: #ffd700;
}

/* 专业类样式 */
.major-class {
    margin-bottom: 15px;
}

.class-name {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    padding-left: 20px;
}

/* 专业列表样式 */
.major-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    padding-left: 20px;
}

.major-item {
    display: inline-block;
    font-size: 16x;
    color: #666;
    padding: 4px 10px;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.major-item:hover {
    background: #fff4f4;
    color: #333;
}
.disabled-hover {
  cursor: not-allowed;
}
/* 响应式调整 */
@media screen and (max-width: 1200px) {
    .major-common {
        width: 1200px;
		margin: 0 auto;
    }
}

@media screen and (min-width: 1200px) {
	.major-common {
		width: 1300px;
		margin: 0 auto;
	}
}
.major-list {
	grid-template-columns: repeat(3, 1fr);
}
/* 热门专业样式 */
.hot-majors {
    background: linear-gradient(to bottom, #fff1f0, #ffffff);
    border-radius: 14px;
    padding: 10px 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #fff1f0;
}

.hot-title {
    font-size: 18px;
    font-weight: 500;
    color: #333;
    margin-bottom: 5px;
}

.hot-tabs {
    display: flex;
    border-bottom: 1px solid #ffccc7;
    margin-bottom: 15px;
}

.hot-tab {
    flex: 1;
    text-align: center;
    padding: 8px 0;
    font-size: 16px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.hot-tab.active {
    color: #ff4d4f;
    font-weight: 500;
}

.hot-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: #ff4d4f;
}

.hot-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hot-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #fff;
    transition: all 0.3s ease;
}

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

.hot-item:hover {
    background: rgba(255, 255, 255, 0.5);
}

.hot-rank {
    width: 30px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    margin-right: 10px;
}

.hot-rank-1 {
    color: #ff4d4f;
}

.hot-rank-2 {
    color: #fa8c16;
}

.hot-rank-3 {
    color: #faad14;
}

.hot-icon {
    font-size: 16px;
}

.hot-name {
    flex: 1;
    font-size: 16px;
    color: #333;
}

.hot-degree {
    font-size: 14px;
    color: #999;
    margin-left: 10px;
}

.hot-loading {
    text-align: center;
    padding: 30px 0;
    color: #999;
    font-size: 14px;
}

/* 响应式调整 */
@media screen and (max-width: 768px) {
    .hot-majors {
        padding: 15px;
    }
    
    .hot-title {
        font-size: 14px;
    }
    
    .hot-name {
        font-size: 13px;
    }
    
    .hot-degree {
        font-size: 11px;
    }
}
/* 搜索结果列表样式 */
.search-result-list {
    width: 100%;
    padding: 10px 0;
}
.result-count {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
    font-weight: 500;
}
.result-item {
    padding: 20px 0;
    border-bottom: 1px solid #f0f0f0;
}
.result-item:last-child {
    border-bottom: none;
}
.result-title {
    font-size: 18px;
    color: #000;
    margin-bottom: 10px;
    font-weight: 500;
}
.result-tags {
    display: flex;
    gap: 10px;
}
.result-tag {
    display: inline-block;
    padding: 4px 10px;
    background: #f5f5f5;
    color: #666;
    font-size: 14px;
    border-radius: 4px;
}
