/* 院校卡片式布局 */
.college-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 15px;
}

.college-header {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.college-title {
    color: #2c3e50;
    font-size: 1.5rem;
    margin-bottom: 1px;
    line-height: 1.4;
}

.college-tag {
    font-size: 0.9rem;
    padding: 4px 8px;
    border-radius: 4px;
    margin-left: 10px;
    font-weight: 500;
}

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

.red-tag {
    background: #fff2f0;
    color: #f5222d;
    border: 1px solid #ffccc7;
}

.college-notice {
    display: flex;
    align-items: center;
    background: #fffbe6;
    padding: 12px 15px;
    border-radius: 6px;
    border-left: 4px solid #faad14;
}

.notice-icon {
    background: #faad14;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
    margin-right: 10px;
    font-weight: 500;
}

.notice-text {
    color: #8c8c8c;
    font-size: 0.9rem;
}

/* 卡片网格布局 */
.college-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.college-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.college-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.card-content {
    display: flex;
    flex-direction: column;
}

.college-name-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.college-name-wrapper {
    flex: 1;
    min-width: 0; /* 防止flex项目溢出 */
}

.college-link {
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.active-link {
    color: #f5222d;
}

.active-link:hover {
    color: #ff4d4f;
    text-decoration: underline;
}

.inactive-link {
    color: #1890ff;
}

.college-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.college-type-tag {
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 500;
    white-space: nowrap;
}

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

.tag-private {
    background: #fff2f0;
    color: #f5222d;
    border: 1px solid #ffccc7;
}

.tag-undergraduate {
    background: #f9f0ff;
    color: #722ed1;
    border: 1px solid #d3adf7;
}

.tag-double-high {
    background: #e6fffb;
    color: #13c2c2;
    border: 1px solid #87e8de;
}

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

.tag-backbone {
    background: #fff7e6;
    color: #fa8c16;
    border: 1px solid #ffd591;
}

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

.no-colleges {
    text-align: center;
    padding: 40px;
    color: #8c8c8c;
    font-size: 1.1rem;
    grid-column: 1 / -1;
}

/* 响应式设计 - 平板端 */
@media (max-width: 1024px) {
    .college-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
    
    .college-link {
        font-size: 1rem;
    }
    
    .college-type-tag {
        font-size: 0.7rem;
        padding: 3px 6px;
    }
}

/* 响应式设计 - 平板端小尺寸 */
@media (max-width: 900px) {
    .college-name-line {
        flex-wrap: wrap;
    }
    
    .college-tags {
        margin-top: 5px;
    }
}

/* 响应式设计 - 手机端 */
@media (max-width: 768px) {
    .college-container {
        padding: 15px 10px;
    }
    
    .college-header {
        padding: 15px;
    }
    
    .college-title {
        font-size: 1.25rem;
        display: flex;
        flex-direction: column;
    }
    
    .college-tag {
        margin-left: 0;
        margin-top: 8px;
        display: inline-block;
    }
    
    .college-notice {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .notice-icon {
        margin-bottom: 8px;
    }
    
    .college-grid {
        grid-template-columns: 1fr;
        gap: 5px;
    }
    
    .college-card {
        padding: 15px;
    }
    
    /* 保持名称在左，TAG在右的布局 */
    .college-name-line {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        flex-wrap: nowrap;
    }
    
    .college-name-wrapper {
        flex: 1;
        margin-right: 10px;
    }
    
    .college-tags {
        flex-shrink: 0;
        justify-content: flex-end;
    }
    
    .college-link {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* 响应式设计 - 小屏手机 */
@media (max-width: 480px) {
    .college-title {
        font-size: 1.1rem;
    }
    
    .college-link {
        font-size: 1.2rem;
        max-width: 70%;
    }
    
    .college-type-tag {
        font-size: 0.65rem;
        padding: 2px 5px;
    }
}

/* 响应式设计 - 超小屏手机 */
@media (max-width: 360px) {
    .college-name-line {
        flex-wrap: wrap;
    }
    
    .college-tags {
        margin-top: 8px;
        width: 100%;
        justify-content: flex-start;
    }
    
    .college-link {
        max-width: none;
    }
}