:root {
    --primary-color: #2c3e50;
    --secondary-color: #e74c3c;
    --accent-color: #3498db;
    --background-light: #f8f9fa;
    --text-dark: #2c3e50;
    --text-light: #ecf0f1;
}

/* General Styles */
body {
    font-family: 'Microsoft JhengHei', sans-serif;
    background-color: var(--background-light);
}

/* Navbar Styles */
.navbar-custom {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-custom .navbar-brand {
    color: var(--text-light);
    font-size: 1.5rem;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.navbar-custom .navbar-brand:hover {
    transform: scale(1.05);
}

.navbar-custom .nav-link {
    color: var(--text-light) !important;
    font-weight: 500;
    padding: 0.5rem 1rem;
    margin: 0 0.2rem;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.navbar-custom .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
        url('/images/maple-bg.jpg') center/cover;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
}

.hero-content {
    max-width: 800px;
    padding: 2rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    animation: fadeInDown 1s ease;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.5s;
    opacity: 0;
    animation-fill-mode: forwards;
}

/* Announcement Cards */
.announcement-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.announcement-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.announcement-header {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--text-light);
    padding: 1rem;
}

/* Interactive Features */
.stat-card {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

/* Floating Action Button */
.fab-button {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--secondary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.fab-button:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.floating {
    animation: float 3s ease-in-out infinite;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 100%;
    /* 确保品牌链接占满导航栏高度 */
    padding: 0;
    /* 移除默认内边距 */
}

.navbar-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
    /* 确保图片保持比例 */
    display: block;
}

.brand-text {
    font-size: 1.5rem;
    line-height: 40px;
    /* 与logo高度相同 */
    display: block;
    margin: 0;
    padding: 0;
    white-space: nowrap;
    /* 防止文字换行 */
}

.navbar-brand img {
    height: 40px;
    /* 设置你想要的高度 */
    width: auto;
    transition: transform 0.3s ease;
    /* 保持原有的动画效果 */
}

/* 保持鼠标悬停效果 */
.navbar-brand:hover img {
    transform: scale(1.05);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .navbar-logo {
        height: 32px;
        /* 小屏幕下缩小logo */
    }

    .brand-text {
        font-size: 1.25rem;
        line-height: 32px;
    }
}