/* Seawood Website Styles - Bootstrap 兼容版本 */

/* 自定义变量 */
:root {
    --primary-color: #0056b3;
    --secondary-color: #004494;
    --light-color: #f8f9fa;
    --dark-color: #1a1a1a;
}

/* 全局样式覆盖 */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
}

/* 动画延迟类 */
.animate-delay-1 {
    animation-delay: 0.1s;
}
.animate-delay-2 {
    animation-delay: 0.2s;
}
.animate-delay-3 {
    animation-delay: 0.3s;
}
.animate-delay-4 {
    animation-delay: 0.4s;
}

/* 自定义组件样式 */
.hero {
    padding: 100px 0;
    background: linear-gradient(rgba(0, 86, 179, 0.9), rgba(0, 70, 148, 0.9)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
}

.section-title {
    position: relative;
    margin-bottom: 40px;
    padding-bottom: 15px;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

.service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: rgba(0, 86, 179, 0.1);
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.card:hover .service-icon {
    transform: scale(1.2);
}

/* 页面特定样式 */
.page-header {
    background: linear-gradient(rgba(0, 86, 179, 0.8), rgba(0, 86, 179, 0.8)), url('../images/page-header-bg.jpg');
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 80px 0;
    text-align: center;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .hero {
        padding: 60px 0;
    }
    
    .section-title {
        margin-bottom: 30px;
    }
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #fff;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* Sections */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: #0056b3;
    margin: 15px auto 0;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.service-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
    font-size: 2.5rem;
    color: #0056b3;
    margin-bottom: 20px;
}

.services-cta {
    text-align: center;
    margin-top: 30px;
}

/* Portfolio Section */
.portfolio {
    background-color: #f0f4f8;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.portfolio-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.portfolio-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 20px;
    color: #fff;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
    transform: translateY(0);
}

.portfolio-overlay h3 {
    color: #fff;
    margin-bottom: 10px;
}

.portfolio-overlay p {
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.portfolio-cta {
    text-align: center;
    margin-top: 30px;
}

.portfolio-cta .btn-secondary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Testimonials Section */
.testimonials {
    background-color: #fff;
}

.testimonials-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.testimonial-content {
    margin-bottom: 20px;
}

.testimonial-content p {
    font-style: italic;
    position: relative;
}

.testimonial-content p::before {
    content: '\201C';
    font-size: 4rem;
    position: absolute;
    left: -20px;
    top: -20px;
    color: #0056b3;
    opacity: 0.2;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
}

.author-info h4 {
    margin-bottom: 5px;
}

.author-info p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0;
}

/* CTA Section */
.cta {
    background: linear-gradient(rgba(0, 86, 179, 0.9), rgba(0, 86, 179, 0.9)), url('../images/cta-bg.jpg');
    background-size: cover;
    background-position: center;
    color: #fff;
    text-align: center;
    padding: 100px 0;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta h2 {
    color: #fff;
    margin-bottom: 20px;
}

.cta p {
    margin-bottom: 30px;
    font-size: 1.1rem;
}

/* Footer */
footer {
    background-color: #1a1a1a;
    color: #fff;
    padding: 70px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    height: 100px;
    margin-bottom: 20px;
}

.navbar-brand img {
    height: 120px;
    width: auto;
}

.footer-about p {
    margin-bottom: 20px;
    color: #ccc;
}

.social-links a {
    display: inline-block;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 36px;
    color: #fff;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: #0056b3;
}

footer h3 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

footer ul li {
    margin-bottom: 10px;
}

footer ul li a {
    color: #ccc;
}

footer ul li a:hover {
    color: #0056b3;
}

.footer-contact ul li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    color: #ccc;
}

.footer-contact ul li i {
    margin-right: 10px;
    color: #0056b3;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #999;
    font-size: 0.9rem;
}

.nav-item .nav-link {
    font-size: 1.2rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .hero {
        padding: 80px 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    section {
        padding: 60px 0;
    }
    
    .services-grid, .portfolio-grid, .testimonials-slider {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .btn {
        padding: 10px 20px;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* 案例卡片样式 */
.project-card {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.project-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.card-img-container {
    position: relative;
    overflow: hidden;
    height: 100%;
}

.card-img-top {
    transition: transform 0.5s ease;
    height: 100%;
    object-fit: cover;
}

.project-card:hover .card-img-top {
    transform: scale(1.1);
}

.card-img-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: #fff;
    padding: 20px;
    transition: all 0.3s ease;
    opacity: 0.9;
}

.project-card:hover .card-img-overlay {
    opacity: 1;
    background: linear-gradient(to top, rgba(0, 86, 179, 0.9), rgba(0, 0, 0, 0.5));
}

.card-img-overlay h3 {
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.card-img-overlay p {
    margin-bottom: 0;
    font-size: 0.9rem;
}