:root {
    --upsi-blue: #003366;
    --upsi-red: #cc0000;
    --upsi-yellow: #ffcc00;
    --white: #ffffff;
    --bg: #f4f7f9;
}

body { margin: 0; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background-color: var(--bg); }

/* 高级感动画 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 登录注册容器 */
.auth-wrapper {
    height: 100vh; display: flex; justify-content: center; align-items: center;
    background: linear-gradient(135deg, var(--upsi-blue) 0%, #001a33 100%);
}

.auth-card {
    background: var(--white); padding: 40px; border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2); width: 400px; text-align: center;
    animation: fadeIn 0.5s ease-out;
}

/* 主布局 */
.container { display: flex; min-height: 100vh; }

/* 修改 css/main.css 中的对应部分 */

/* 侧边栏优化 */
.sidebar {
    width: 280px;
    background-color: #003366; /* UPSI 深蓝 */
    color: white;
    padding: 30px 20px;
    position: fixed;
    height: 100vh;
    border-right: 6px solid #ffcc00; /* UPSI 黄色边条增加质感 */
    box-sizing: border-box;
}

/* 主内容区优化 - 增加左间距防止重叠 */
.main-content {
    margin-left: 280px; 
    padding: 60px;
    background-color: #f8f9fa;
    min-height: 100vh;
}

/* 核心：3列网格布局优化 */
.kolej-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 严格限制为3列，符合你的要求 */
    gap: 35px;
    max-width: 1200px;
}

/* 卡片高级感 */
.kolej-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05); /* 柔和阴影 */
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid #eaeaea;
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.kolej-img {
    width: 100%;
    height: 180px;
    object-fit: contain; /* 保证 Logo 不被拉伸变形 */
    padding: 15px;
    background-color: #ffffff;
    display: block;
    transition: transform 0.3s ease;
}

.kolej-card:hover .kolej-img {
    transform: scale(1.05); /* 悬停时 Logo 轻微放大 */
}

.footer {
    margin-top: 60px;
    background: var(--upsi-blue);
    color: white;
    padding: 25px;
    border-radius: 15px;
    display: flex;
    justify-content: space-around;
    border-top: 6px solid var(--upsi-yellow);
    box-shadow: 0 -5px 15px rgba(0,0,0,0.05);
}
.action-btn { background: var(--upsi-blue); color: var(--upsi-yellow); padding: 10px; font-weight: bold; }

/* 页脚 */
.footer {
    margin-top: 50px; background: var(--upsi-blue); color: white;
    padding: 20px; border-radius: 15px; display: flex; justify-content: space-around;
    border-top: 5px solid var(--upsi-yellow);
}

/* 输入框 */
input, textarea {
    width: 100%; padding: 12px; margin: 8px 0; border: 1px solid #ddd; border-radius: 8px; box-sizing: border-box;
}

.btn-submit {
    background: var(--upsi-blue); color: var(--upsi-yellow); border: none;
    padding: 12px; border-radius: 8px; font-weight: bold; cursor: pointer; width: 100%;
}

.btn-submit:hover { background: var(--upsi-red); color: white; }