* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头图 */
.hero {
    background-image: url('../assets/images/hero_bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 230px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* 右侧边栏容器 */
.sidebar {
    position: fixed;
    right: 20px;
    top: 70%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 20px;
}

.back-to-top-container {
    display: flex;
    justify-content: flex-end;
    width: 100%;
}

.scan-module {
    background: white;
    padding: 7.5px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    text-align: center;
    transition: all 0.3s ease;
    width: 180px;
    height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.scan-module:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.side-qr-code {
    width: 120px;
    height: 120px;
    background: #f8f9fa;
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.qr-pattern {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.scan-text {
    color: #666;
    font-size: 24px;
    font-weight: 500;
    margin: 0;
    line-height: 1.4;
}

.scan-text {
    color: #666;
    font-size: 11px;
    font-weight: 500;
    margin: 0;
}

.back-to-top {
    width: 50px;
    height: 50px;
    background-color: #888888;
    border: none;
    outline: none !important;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    opacity: 0;
}

.back-to-top:hover {
    background-color: #666666;
    opacity: 1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.arrow-up {
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 10px solid white;
    position: relative;
}

.arrow-up::before {
    content: '';
    position: absolute;
    left: -8px;
    top: -3px;
    width: 16px;
    height: 2px;
    background-color: white;
}

.arrow-up::after {
    content: '';
    position: absolute;
    left: -3px;
    top: 10px;
    width: 6px;
    height: 8px;
    background-color: white;
}

.back-to-top.hidden {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

.back-to-top.visible {
    opacity: 0.8;
    transform: translateY(0);
    pointer-events: auto;
}

/* .back-to-top {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    outline: none !important;
    border-radius: 10%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    transform: translateY(20px) scale(0.8);
    position: relative;
    overflow: hidden;
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.back-to-top:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.5);
}

.back-to-top:active {
    transform: translateY(-1px) scale(0.95);
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}

.back-to-top:active {
    transform: scale(0.95);
}

.arrow-up {
    position: relative;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.arrow-up::before {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    border-top: 3px solid white;
    border-right: 3px solid white;
    transform: rotate(-45deg);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.back-to-top:active::before {
    width: 60px;
    height: 60px;
} */

/* @keyframes rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
} */

/* 响应式设计 */
@media (max-width: 768px) {
    .sidebar {
        right: 10px;
        top: 65%;
    }
    
    .scan-module {
        width: 160px;
        height: 160px;
        padding: 7px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    
    .side-qr-code {
        width: 100px;
        height: 100px;
        margin: 0 0 9px 0;
        border-radius: 6px;
    }
    
    .scan-text {
        font-size: 21px;
        line-height: 1.3;
    }
}

    .back-to-top-container {
        bottom: 20px;
        right: 20px;
    }
    
    .back-to-top {
        width: 45px;
        height: 45px;
    }
    
    .arrow-up {
        border-left: 6px solid transparent;
        border-right: 6px solid transparent;
        border-bottom: 8px solid white;
    }
    
    .arrow-up::before {
        left: -6px;
        top: -2px;
        width: 12px;
        height: 2px;
    }
    
    .arrow-up::after {
        left: -2px;
        top: 8px;
        width: 4px;
        height: 6px;
    }
}

/* 加载动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scan-module {
    animation: fadeInUp 0.6s ease-out;
}

.back-to-top {
    animation: fadeInUp 0.8s ease-out;
}

.scan-module:hover .scan-text {
    color: #007bff;
}

.platform-description {
    /* background-color: white; */
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    max-width: var(--unified-max-width);
    margin-left: auto;
    margin-right: auto;
    color: #666;
    font-size: 14px;
    line-height: 1.8;
}
.platform-description .container {
    max-width: none;
    margin: 0;
    padding: 0;
    background: white;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* 热门科目和热门高校样式 */
.hot-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hot-card-container {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}

.hot-card-container .section {
    flex: 1;
    /*background-color: #f8f9fa;*/
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
}

.hot-card-container .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #dee2e6;
}

.hot-card-container .section-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
    display: flex;
    align-items: center;
}

.hot-card-container .section-title::before {
    /* content: '•'; */
    color: #28a745;
    margin-right: 8px;
    font-size: 24px;
}

.hot-card-container .more-link {
    font-size: 14px;
    color: #28a745;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.hot-card-container .more-link:hover {
    text-decoration: underline;
}

.hot-card-container .more-link::after {
    content: '>>';
    margin-left: 5px;
    font-size: 12px;
}

.hot-card-container .items-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 0;
    max-height: 80px; /* 限制显示两行 */
    overflow: hidden;
}

.hot-card-container .item {
    font-size: 14px;
    color: #666;
    cursor: pointer;
    transition: color 0.2s;
    padding: 5px 0;
    flex-basis: calc(20% - 12px); /* 每行5个，减去间距 */
    box-sizing: border-box;
    position: relative;
    padding-left: 20px;
}

.hot-card-container .item:hover {
    color: #28a745;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hot-card-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .hot-card-container .items-grid {
        max-height: none;
    }
}

@media (max-width: 576px) {
    .hot-card-container .item {
        flex-basis: calc(50% - 7.5px); /* 小屏移动端每行2个 */
    }
}

/* 移除原有的展开/收起功能，简化显示 */
.hot-card-container .toggle-container {
    display: none;
}

/* 确保热门科目和热门高校都应用相同的高度限制 */
.hot-card-container #hotSchoolsContainer,
.hot-card-container #hotSubjectsContainer {
    max-height: 80px !important;
    overflow: hidden !important;
}

.hot-card-container #hotSchoolsContainer.expanded {
    max-height: none !important;
}