* {
	margin: 0;
	padding: 0;
}
html, body {
    margin: 0;
    display: block;
	width: 100%;
	height: 100%;
	min-width: 1200px;
}
.selection-d {
    width: 100%;
    height: auto;
    min-width: 1200px;
	position: relative;
	background-color: #f5f5f5;
}
@media screen and (min-width: 1200px) {
    .selection-d-common {
        width: 1300px;
        margin: auto;
        padding-top: 16px;
    }
}
@media screen and (max-width: 1200px) {
	.selection-d-common {
		width: 1200px;
		margin: auto;
		padding-top: 16px;
	}
}

.selection-common-d {
    width: 1300px;
    margin: 0 auto;
    padding: 20px;
}

.selection-tabs {
    display: flex;
    background: #fff;
    border-radius: 8px 8px 0 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: -1px;
}

.tab-item {
    padding: 16px 40px;
    font-size: 16px;
    color: #666;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.tab-item.active {
    color: #ff4d4f;
    font-weight: 600;
}

.tab-item.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 3px;
    background: #ff4d4f;
}

.selection-content {
    background: #fff;
    border-radius: 0 8px 8px 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 20px;
}

.subject-selector {
    padding: 20px;
    background: #fafafa;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 100px;
}

.selector-row {
    display: flex;
    align-items: center;
    gap: 15px;
}

.selector-label {
    font-size: 15px;
    font-weight: 500;
    color: #333;
    width: 50px;
}

.radio-label, .checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.radio-label input, .checkbox-label input {
    display: none;
}

.radio-label span, .checkbox-label span {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    background: #fff;
    border: 1px solid #ddd;
    color: #666;
    transition: all 0.3s ease;
}

.radio-label span.active, .checkbox-label span.active {
    background: #fff1f0;
    border-color: #fbadad;
    color: #ff2424;
}

.radio-label span.disabled, .checkbox-label span.disabled {
    background: #f5f5f5;
    border-color: #ddd;
    color: #ccc;
    cursor: not-allowed;
}

.radio-option, .checkbox-option {
    padding: 4px 16px;
    border-radius: 12px;
    font-size: 14px;
    background: #fff;
    border: 1px solid #ddd;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
}

.radio-option.active, .checkbox-option.active {
    background: #fff1f0;
    border-color: #fbadad;
    color: #ff2424;
}

.radio-option.disabled, .checkbox-option.disabled {
    background: #f5f5f5;
    border-color: #ddd;
    color: #ccc;
    cursor: not-allowed;
}

.sub-tabs {
    display: flex;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

.sub-tab-item {
    padding: 12px 24px;
    font-size: 15px;
    color: #666;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.sub-tab-item.active {
    color: #ff4d4f;
    font-weight: 600;
}

.sub-tab-item.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: #ff4d4f;
}

.filter-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-input {
    width: 200px;
    padding: 10px 16px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    font-size: 14px;
}

.search-btn {
    padding: 9px 24px;
    background: #d02009;
    color: #fff;
    border: none;
    border-radius: 0 4px 4px 0;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: #e64a19;
}

.filter-row {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
	margin-bottom: 12px;
}

.filter-label {
    font-size: 14px;
    margin-right: 5px;
	font-weight: 600;
	color: #333;
}

.filter-option {
    padding: 4px 16px;
    border-radius: 12px;
    font-size: 14px;
    background: #f5f5f5;
	border: 1px solid #ddd;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-option.active {
	background: #fff1f0;
	color: #ff2424;
	border-color: #fbadad;
}

.match-tags {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: #fafafa;
    border-radius: 8px;
}

.match-tag {
    padding: 12px 28px;
    border-radius: 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.match-tag.tag-0 {
    background: #e6f7ff;
    color: #1890ff;
    border: 1px solid #91d5ff;
}

.match-tag.tag-1 {
    background: #f6ffed;
    color: #52c41a;
    border: 1px solid #b7eb8f;
}

.match-tag.tag-both {
    background: #fff1f0;
    color: #ff4d4f;
    border: 1px solid #ffadd2;
}

.match-tag.tag-unlimited {
    background: #f5f5f5;
    color: #666;
    border: 1px solid #d9d9d9;
}

.match-tag.active {
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    border-width: 2px !important;
}

.major-filter {
    background: #fff;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.major-filter .search-box {
    display: flex;
    margin-bottom: 16px;
    width: 360px;
}

.major-filter .search-input {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    font-size: 14px;
}

.major-filter .search-btn {
    padding: 9px 24px;
    background: #d02009;
    color: #fff;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-size: 14px;
}

.major-filter .filter-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.major-filter .filter-label {
    font-weight: 600;
    color: #333;
    min-width: 70px;
}

.major-filter .filter-option {
    cursor: pointer;
    transition: all 0.3s ease;
	padding: 4px 16px;
	border-radius: 12px;
	font-size: 14px;
	background: #fff;
	border: 1px solid #ddd;
	color: #666;
}

.major-filter .filter-option.active {
    background: #fff1f0;
	color: #ff2424;
	border-color: #fbadad;
}

.major-list {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}

.category-header {
    padding: 12px 20px;
    background: #fafafa;
    border-bottom: 1px solid #eee;
}

.category-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.type-header {
    padding: 10px 20px;
    background: #fff;
    border-bottom: 1px dashed #eee;
}

.type-title {
    font-size: 16px;
    font-weight: 500;
    color: #666;
}

.major-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background 0.3s ease;
}

.major-item:hover {
    background: #fafafa;
}

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

.major-info {
    flex: 1;
}

.major-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    display: block;
    margin-bottom: 8px;
}

.major-meta {
    font-size: 13px;
    color: #999;
}

.major-meta span {
    margin-right: 8px;
}

.major-match {
    display: flex;
    align-items: center;
    gap: 6px;
}

.match-text {
    font-size: 13px;
    color: #999;
}

.match-count {
    font-size: 14px;
    font-weight: 600;
    color: #ff2424;
}

.arrow {
    font-size: 20px;
    color: #ccc;
}

.college-filter {
    background: #fff;
    padding: 15px 20px;
    border-radius: 8px;
}

.college-filter .search-box {
    display: flex;
    width: 400px;
	margin-top: 16px;
}

.college-filter .search-input {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    font-size: 14px;
}

.college-filter .search-btn {
    padding: 10px 24px;
    background: #d02009;
    color: #fff;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-size: 14px;
}

.college-table {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}

.table-header {
    display: flex;
    background: #f5f5f5;
    padding: 12px 20px;
    border-bottom: 1px solid #eee;
}

.th-col {
    flex: 1;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.table-row {
    display: flex;
    padding: 12px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.table-row:last-child {
    border-bottom: none;
}

.td-col {
    flex: 1;
    color: #666;
    font-size: 14px;
}

.custom-select {
    position: relative;
    width: 300px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
}

.select-trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
}

.selected-text {
    font-size: 14px;
    color: #333;
}

.select-arrow {
    font-size: 12px;
    color: #999;
    transition: transform 0.3s;
}

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

.select-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 4px;
	margin-top: 4px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 100;
}

.select-search {
    padding: 8px;
    border-bottom: 1px solid #eee;
}

.select-search input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.select-option {
    padding: 10px 12px;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    transition: background 0.2s;
}

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

.select-option.active {
    background: #fff1f0;
    color: #ff2424;
}

.result-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.result-item {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
}

.result-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.major-name {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.item-meta {
    display: flex;
    align-items: center;
    gap: 20px;
}

.match-rate {
    font-size: 14px;
    color: #ff4d4f;
    font-weight: 500;
}

.college-count {
    font-size: 14px;
    color: #666;
}

.college-count a {
    color: #ff4d4f;
    text-decoration: none;
}

.expand-icon {
    font-size: 12px;
    color: #999;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.item-info {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 14px;
    color: #666;
}