/* 自定义样式文件 */

/* 全局样式 */
body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* 主要内容区域 */
.main-content {
    margin-top: 76px; /* 为固定导航栏留出空间 */
}

/* 英雄区域样式 */
.hero-section {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 50%, #2ecc71 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.hero-section .lead {
    font-size: 1.25rem;
    font-weight: 300;
}

/* 页面标题区域 */
.page-header {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 50%, #2ecc71 100%);
    color: white;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 700;
}

/* 特色区域样式 */
.features-section {
    background-color: #f8f9fa;
    padding: 80px 0;
}

.features-section h2 {
    color: #2c3e50;
    font-weight: 700;
    margin-bottom: 50px;
    text-align: center;
}

.feature-icon {
    color: #3498db;
}

.card {
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* 画廊区域样式 */
.gallery-section {
    background-color: #f8f9fa;
    padding: 80px 0;
}

.gallery-section h2 {
    color: #2c3e50;
    font-weight: 700;
    margin-bottom: 50px;
}

.gallery-section .row {
    justify-content: center;
}

.gallery-section img {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.gallery-section img:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

/* 关于我们页面样式 */
.about-content .card {
    border-radius: 15px;
}

.about-content .list-unstyled li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.about-content .list-unstyled li:last-child {
    border-bottom: none;
}

/* 联系我们页面样式 */
.contact-content .card {
    border-radius: 15px;
}

.contact-item {
    padding: 1rem 0;
}

.contact-item:hover {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    margin: -1rem;
}

/* 按钮样式 */
.btn-primary {
    background: linear-gradient(135deg, #3498db 0%, #2ecc71 100%);
    border: none;
    padding: 15px 35px;
    font-weight: 600;
    border-radius: 30px;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.4);
    background: linear-gradient(135deg, #2980b9 0%, #27ae60 100%);
}

/* 导航栏样式 */
.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: #667eea !important;
}

.navbar-nav .nav-link.active {
    color: #667eea !important;
}

/* 页脚样式 */
footer {
    margin-top: auto;
}

footer h5 {
    color: #667eea;
    font-weight: 700;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section .lead {
        font-size: 1.1rem;
    }
    
    .page-header h1 {
        font-size: 2.5rem;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeInUp 0.6s ease-out;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #3498db 0%, #2ecc71 100%);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #2980b9 0%, #27ae60 100%);
}

/* 新增样式 */
.hero-section h1 {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-section .lead {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.card {
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border: none;
}

.card-body {
    padding: 2rem;
}

/* 特色卡片样式 */
.features-section .card {
    height: 100%;
    transition: all 0.3s ease;
}

.features-section .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.features-section .card-title {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 1rem;
}

.features-section .card-text {
    color: #666;
    line-height: 1.6;
}
