/* 
 * University Hostel Management System
 * Common CSS Stylesheet - Blue & White Theme
 * 统一的蓝白配色美化库
 */

/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* 主题色 - 蓝白配色 */
    --primary-blue: #2196F3;
    --primary-blue-dark: #1976D2;
    --primary-blue-light: #42A5F5;
    --primary-white: #FFFFFF;
    --background-light: #F5F9FF;
    --text-dark: #333333;
    --text-gray: #666666;
    --border-light: #E0E0E0;
    --shadow-light: rgba(33, 150, 243, 0.1);
    --shadow-medium: rgba(33, 150, 243, 0.2);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--background-light) 0%, var(--primary-white) 100%);
    min-height: 100vh;
    color: var(--text-dark);
}

/* 容器样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 卡片样式 */
.card {
    background: var(--primary-white);
    border-radius: 12px;
    box-shadow: 0 4px 20px var(--shadow-light);
    padding: 30px;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 6px 30px var(--shadow-medium);
}

/* 标题样式 */
h1, h2, h3, h4, h5, h6 {
    color: var(--primary-blue);
    font-weight: 600;
}

h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

h2 {
    font-size: 2em;
    margin-bottom: 15px;
}

/* 输入框样式 - 下划线风格 */
.input-group {
    margin-bottom: 30px;
}

.input-label {
    display: block;
    color: var(--text-gray);
    font-size: 0.95em;
    margin-bottom: 8px;
    font-weight: 500;
}

.input-underline {
    width: 100%;
    padding: 12px 0;
    border: none;
    border-bottom: 2px solid var(--border-light);
    background: transparent;
    font-size: 1em;
    color: var(--text-dark);
    transition: border-color 0.3s ease;
    outline: none;
}

.input-underline:focus {
    border-bottom-color: var(--primary-blue);
}

.input-underline::placeholder {
    color: #CCCCCC;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 14px 40px;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    outline: none;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: var(--primary-white);
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-blue-dark);
    box-shadow: 0 6px 20px rgba(33, 150, 243, 0.4);
    transform: translateY(-2px);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-large {
    width: 100%;
    padding: 16px;
    font-size: 1.2em;
}

/* 文本样式 */
.text-center {
    text-align: center;
}

.text-gray {
    color: var(--text-gray);
}

/* 链接样式 */
a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-blue-dark);
    text-decoration: underline;
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .card {
        padding: 20px;
    }
    
    h1 {
        font-size: 2em;
    }
}
