/* 全局样式 */
:root {
    --theme-red: #e60012;
    --theme-gold: #ffd700;
    --theme-dark: #1a1a1a;
}

body {
    font-family: "Microsoft YaHei", sans-serif;
    color: var(--theme-dark);
}

/* 导航栏样式 */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-link {
    font-size: 1.1rem;
}

/* 轮播图样式 */
.carousel {
    margin-bottom: 2rem;
}

.carousel-item {
    height: 500px;
}

.carousel-item img {
    object-fit: cover;
    height: 100%;
}

.carousel-caption {
    background: rgba(0,0,0,0.5);
    padding: 20px;
    border-radius: 10px;
}

/* 主要内容区域样式 */
.container h2 {
    color: var(--theme-red);
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--theme-gold);
    padding-bottom: 0.5rem;
}

.container img {
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.container img:hover {
    transform: scale(1.02);
}

.container p {
    line-height: 1.8;
    text-align: justify;
}

/* 页脚样式 */
footer {
    margin-top: 3rem;
    padding: 2rem 0;
    background: linear-gradient(to right, var(--theme-red), #cc0000);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .carousel-item {
        height: 300px;
    }

    .container h2 {
        font-size: 1.5rem;
    }

    .container p {
        font-size: 0.9rem;
    }
}

/* 动画效果 */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--theme-gold);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* 时间线样式 */
.timeline .card {
    border-left: 4px solid var(--theme-red);
    position: relative;
}

.timeline .card::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--theme-gold);
    border: 4px solid var(--theme-red);
    border-radius: 50%;
    left: -12px;
    top: 15px;
}

.timeline .card::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent var(--theme-red);
    left: -10px;
    top: 20px;
}

.timeline .card:hover {
    transform: translateX(10px);
    transition: transform 0.3s ease;
}

.timeline .card-title {
    color: var(--theme-red);
    font-weight: bold;
}

/* 列表样式 */
.list-group-item {
    border-left: 3px solid var(--theme-red);
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

.list-group-item:hover {
    background-color: #fff3f3;
    transform: translateX(5px);
}

/* 卡片样式 */
.card {
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.card-title {
    color: var(--theme-red);
    border-bottom: 2px solid var(--theme-gold);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

/* 图片画廊样式 */
.gallery-item {
    transition: opacity 0.3s ease;
}

.gallery-item .card {
    overflow: hidden;
    transition: all 0.3s ease;
}

.gallery-item .card img {
    transition: transform 0.3s ease;
}

.gallery-item .card:hover img {
    transform: scale(1.05);
}

.btn-group .btn {
    margin: 0 5px;
    border-radius: 20px;
    padding: 8px 20px;
}

.btn-outline-danger:hover {
    background-color: var(--theme-red);
    border-color: var(--theme-red);
}

.btn-outline-danger.active {
    background-color: var(--theme-red);
    border-color: var(--theme-red);
}

/* 图片卡片标题样式 */
.gallery-item .card-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.gallery-item .card-text {
    color: #666;
    font-size: 0.9rem;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .btn-group {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    .btn-group .btn {
        margin: 5px;
    }

    .gallery-item {
        margin-bottom: 20px;
    }
} 