/* 全局样式 */
:root {
    --primary-color: #003366;
    --secondary-color: #990000;
    --accent-color: #f39c12;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
}

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

/* 导航栏样式 */
.navbar {
    background-color: var(--primary-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand img {
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--accent-color) !important;
}

/* 英雄区域样式 */
.hero {
    background-color: var(--light-color);
    padding: 5rem 0;
    margin-bottom: 2rem;
    background-image: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7)), url('../images/campus.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero h1 {
    color: var(--primary-color);
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero .lead {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

/* 卡片样式 */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 1.5rem;
    border: none;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card-img-top {
    height: 200px;
    object-fit: cover;
}

.card-title {
    color: var(--primary-color);
    font-weight: 600;
}

/* 按钮样式 */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #00264d;
    border-color: #00264d;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: #7a0000;
    border-color: #7a0000;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* 页脚样式 */
footer {
    background-color: var(--primary-color);
    color: white;
}

/* 学院图标样式 */
.faculty-icon {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-size: 60%;
    background-position: center;
    background-repeat: no-repeat;
    margin-bottom: 20px;
}

.ai-icon {
    background-color: #3498db;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2a10 10 0 1 0 10 10H12V2z'%3E%3C/path%3E%3Cpath d='M12 2a10 10 0 0 1 10 10h-10V2z'%3E%3C/path%3E%3Cpath d='M12 12l0 10'%3E%3C/path%3E%3Cpath d='M12 12l10 0'%3E%3C/path%3E%3C/svg%3E");
}

.it-icon {
    background-color: #2ecc71;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 4L8.12 15.88M14.47 14.48L20 20M8.12 8.12L12 12'%3E%3C/path%3E%3Ccircle cx='4' cy='4' r='2'%3E%3C/circle%3E%3Ccircle cx='12' cy='12' r='2'%3E%3C/circle%3E%3Ccircle cx='20' cy='20' r='2'%3E%3C/circle%3E%3C/svg%3E");
}

.religion-icon {
    background-color: #9b59b6;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22v-5'%3E%3C/path%3E%3Cpath d='M9 7h6'%3E%3C/path%3E%3Cpath d='M12 17V7'%3E%3C/path%3E%3Cpath d='M7 11c0-3 2.2-5 5-5 2.8 0 5 2 5 5 0 3.8-3.4 6-8 10'%3E%3C/path%3E%3C/svg%3E");
}

.law-icon {
    background-color: #e74c3c;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22v-5'%3E%3C/path%3E%3Cpath d='M12 8V2'%3E%3C/path%3E%3Cpath d='M17 8a5 5 0 0 0-10 0'%3E%3C/path%3E%3Cpath d='M17 17a5 5 0 0 0-10 0'%3E%3C/path%3E%3Cpath d='M19 17h-2'%3E%3C/path%3E%3Cpath d='M7 17H5'%3E%3C/path%3E%3C/svg%3E");
}

.linux-icon {
    background-color: #f39c12;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 16v1a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2h2m5.66 0H14a2 2 0 0 1 2 2v3.34'%3E%3C/path%3E%3Cpath d='M3 15h10'%3E%3C/path%3E%3Cpath d='M17 8l4 4-4 4'%3E%3C/path%3E%3C/svg%3E");
}

.faculty-card {
    transition: transform 0.3s ease;
}

.faculty-card:hover {
    transform: translateY(-5px);
}

/* 证书样式 */
.certificate {
    background-color: #fff;
    border: 20px solid #003366;
    padding: 40px;
    position: relative;
    font-family: 'Times New Roman', serif;
}

.certificate:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid #990000;
    margin: 10px;
    pointer-events: none;
}

.student-card {
    background-color: #fff;
    border: 2px solid #003366;
    padding: 20px;
    position: relative;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero .lead {
        font-size: 1.2rem;
    }
    
    .card-img-top {
        height: 150px;
    }
    
    .faculty-icon {
        width: 100px;
        height: 100px;
    }
    
    .certificate {
        padding: 20px;
        border-width: 10px;
    }
}
