/* 学院列表页面专用样式 */

/* 学院展示区域 */
.colleges-section {
    margin-top: 120px;
    padding: 2rem 0 4rem;
    background: white;
    min-height: 100vh;
}

.section-intro {
    text-align: center;
    margin-bottom: 3rem;
    color: #333;
}

.section-intro h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #333;
}

.section-intro p {
    font-size: 1.2rem;
    color: #666;
}

/* 学院网格布局 - 一行五个，横向卡片 */
.colleges-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.5rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* 学院卡片 - 横向布局，扩大尺寸 */
.college-card {
    background: white;
    border: none;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    max-width: none;
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    text-align: left;
    height: 100px;
    margin-bottom: 25px;
    position: relative;
    z-index: 10;
    background: white;
}

/* 学院图标 - 等比例扩大 */
.college-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-right: 1rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    flex-shrink: 0;
    overflow: hidden;
}

.college-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* 学院信息 */
.college-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.college-name {
    font-size: 0.7rem;
    font-weight: bold;
    color: #333;
    margin: 0 0 0.3rem 0;
    line-height: 1.2;
}

.college-description {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.3;
    margin: 0;
}

/* 隐藏所有多余元素 */
.college-header,
.college-info,
.college-type,
.college-majors,
.college-stats,
.college-link {
    display: none;
}

/* 响应式设计 */
@media (max-width: 1400px) {
    .colleges-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1100px) {
    .colleges-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 800px) {
    .colleges-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.4rem;
    }
}

@media (max-width: 500px) {
    .colleges-grid {
        grid-template-columns: 1fr;
    }
    
    .colleges-section {
        margin-top: 100px;
        padding: 1rem 0 2rem;
    }
}


/* 站点标签样式 - 金色小卡片 */
.website-tags {
    position: absolute;
    bottom: -15px;
    left: 10px;
    right: 10px;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    max-height: 60px;
    overflow: hidden;
}

.website-tag {
    background: linear-gradient(90deg, #ffd700 0%, #ffed4e 25%, #ffd700 50%, #ffed4e 75%, #ffd700 100%);
    background-size: 200% 100%;
    color: #333;
    font-size: 0.75rem;
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid #e6c200;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
    font-weight: 500;
    animation: goldShimmer 2s ease-in-out infinite;
}

.website-tag:nth-child(odd) {
    animation: goldShimmerReverse 2.5s ease-in-out infinite;
}

.website-tag:nth-child(3n) {
    animation: goldShimmerSlow 3s linear infinite;
}

.website-tag:nth-child(4n) {
    animation: goldShimmerFast 1.5s ease-in-out infinite reverse;
}

@keyframes goldShimmer {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes goldShimmerReverse {
    0% { background-position: 100% 50%; }
    50% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

@keyframes goldShimmerSlow {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

@keyframes goldShimmerFast {
    0% { background-position: 0% 50%; }
    100% { background-position: -200% 50%; }
}

.website-tag:hover {
    animation-duration: 0.8s;
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.4);
}

/* 学院网格布局 - 使用更高特异性覆盖styles.css */
body .colleges-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* 学院卡片 - 使用更高特异性覆盖styles.css */
body .college-card {
    background: white !important;
    border: none;
    border-radius: 8px;
    padding: 1rem !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    max-width: none !important;
    width: 100%;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    text-align: left !important;
    height: 120px !important;
    margin-bottom: 30px;
    position: relative;
    z-index: 10;
}

body .college-card:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* 确保上传者卡片有足够的底部间距 */
.college-card {
    margin-bottom: 25px;
    position: relative;
    z-index: 2;
}