/* 全局样式 */
:root {
    --primary-color: #2b4acb;
    --secondary-color: #ff6b6b;
    --accent-color: #ffd93d;
    --text-color: #333;
    --light-gray: #f8f9fa;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
    color: var(--text-color);
    line-height: 1.6;
}

/* 导航栏样式 */
.navbar {
    background: linear-gradient(to right, #ffffff, #f8f9fa);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
}

.navbar-brand::before {
    content: "🏯";
    margin-right: 8px;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    margin: 0 0.2rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background-color: rgba(43, 74, 203, 0.1);
    transform: translateY(-2px);
}

.nav-link.active {
    color: var(--primary-color) !important;
    font-weight: bold;
    position: relative;
}

.nav-link.active::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

/* 轮播图样式 */
.carousel {
    margin-bottom: 3rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.carousel-item {
    position: relative;
}

.carousel-item::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,0.7));
}

.carousel-item img {
    height: 600px;
    object-fit: cover;
}

.carousel-caption {
    bottom: 20%;
    z-index: 2;
}

.carousel-caption h3 {
    font-size: 2.5rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    margin-bottom: 1rem;
}

.carousel-caption p {
    font-size: 1.2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 6px;
}

/* 卡片样式 */
.card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.card-img-top {
    height: 220px;
    object-fit: cover;
    transition: all 0.4s ease;
}

.card:hover .card-img-top {
    transform: scale(1.05);
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* 按钮基础样式 */
.btn {
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-weight: 500;
    text-transform: capitalize;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: none;
}

/* 主要按钮 */
.btn-primary {
    background: linear-gradient(45deg, #2b4acb, #4c6ef5);
    box-shadow: 0 4px 15px rgba(43, 74, 203, 0.2);
}

.btn-primary:hover {
    background: linear-gradient(45deg, #4c6ef5, #2b4acb);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(43, 74, 203, 0.3);
}

.btn-primary:active {
    transform: translateY(1px);
    box-shadow: 0 2px 10px rgba(43, 74, 203, 0.2);
}

/* 次要按钮 */
.btn-secondary {
    background: linear-gradient(45deg, #6c757d, #868e96);
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.2);
}

.btn-secondary:hover {
    background: linear-gradient(45deg, #868e96, #6c757d);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.3);
}

/* 强调按钮 */
.btn-danger {
    background: linear-gradient(45deg, #dc3545, #ff4d5a);
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.2);
}

.btn-danger:hover {
    background: linear-gradient(45deg, #ff4d5a, #dc3545);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.3);
}

/* 按钮图标 */
.btn i {
    margin-right: 0.5rem;
    font-size: 0.9em;
}

/* 波纹效果 */
.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
}

.btn:active::after {
    width: 200px;
    height: 200px;
    opacity: 0;
}

/* 禁用状态 */
.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

/* 加载状态 */
.btn.loading {
    pointer-events: none;
    opacity: 0.8;
}

.btn.loading::before {
    content: '';
    display: inline-block;
    width: 1em;
    height: 1em;
    margin-right: 0.5em;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 节日推荐区域 */
.alert-info {
    background-color: rgba(43, 74, 203, 0.1);
    border: none;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
}

/* 标签页样式 */
.nav-tabs {
    border-bottom: 2px solid #eee;
}

.nav-tabs .nav-link {
    border: none;
    color: var(--text-color);
    font-weight: 500;
    padding: 0.75rem 1.5rem;
}

.nav-tabs .nav-link.active {
    color: var(--primary-color);
    border-bottom: 3px solid var(--primary-color);
}

/* 页脚样式 */
footer {
    background: linear-gradient(to right, #f8f9fa, #ffffff);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

footer h5 {
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 1.5rem;
}

.social-links a {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: #fff;
    border-radius: 6px;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.social-links a:hover {
    background-color: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .carousel-item img {
        height: 400px;
    }
    
    .carousel-caption h3 {
        font-size: 1.8rem;
    }
    
    .carousel-caption p {
        font-size: 1rem;
    }
    
    .card-img-top {
        height: 180px;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeInUp 0.6s ease backwards;
}

.card:nth-child(2) {
    animation-delay: 0.2s;
}

.card:nth-child(3) {
    animation-delay: 0.4s;
} 