/* 
 * SEO508.cn - 外贸网站推广与谷歌SEO优化专家
 * 样式表 
 */

/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

a {
    text-decoration: none;
    color: #1e50a2;
    transition: all 0.3s ease;
}

a:hover {
    color: #ff6b6b;
}

ul {
    list-style: none;
}

img, svg {
    max-width: 100%;
    height: auto;
}

/* 容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 按钮样式 */
.btn-primary {
    display: inline-block;
    background-color: #1e50a2;
    color: #fff;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 500;
    border: 2px solid #1e50a2;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #15397c;
    color: #fff;
    border-color: #15397c;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(30, 80, 162, 0.3);
}

.btn-secondary {
    display: inline-block;
    background-color: transparent;
    color: #1e50a2;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 500;
    border: 2px solid #1e50a2;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: #1e50a2;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(30, 80, 162, 0.3);
}

/* 背景颜色 */
.bg-light {
    background-color: #f8f9fa;
}

/* 导航栏 */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    padding: 15px 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

#header.scrolled {
    padding: 10px 0;
}

#header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.main-nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    align-items: center;
}

.nav-list li {
    margin-left: 30px;
}

.nav-list li a {
    color: #333;
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
}

.nav-list li a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #1e50a2;
    transition: width 0.3s ease;
}

.nav-list li a:hover:after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* 英雄区域 */
#hero {
    padding: 160px 0 100px;
    background: linear-gradient(135deg, #ffffff 0%, #e8f4fc 100%);
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 600px;
    margin-bottom: 40px;
}

#hero h1 {
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 25px;
    color: #333;
}

.highlight {
    color: #1e50a2;
    position: relative;
    z-index: 1;
}

.highlight:after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background-color: rgba(255, 107, 107, 0.2);
    z-index: -1;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #666;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.hero-image {
    max-width: 500px;
    margin: 0 auto;
}

/* 段落样式 */
p {
    margin-bottom: 20px;
}

/* 标题样式 */
.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #333;
    position: relative;
    display: inline-block;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 4px;
    background-color: #1e50a2;
}

.section-description {
    font-size: 1.1rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto 50px;
}

/* 区块通用样式 */
section {
    padding: 100px 0;
}

/* 服务项目 */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: #fff;
    border-radius: 10px;
    padding: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.service-card p {
    color: #666;
}

/* 我们的优势 */
.advantage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.advantage-item {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    position: relative;
}

.advantage-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.advantage-number {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    font-weight: 700;
    color: rgba(30, 80, 162, 0.1);
}

.advantage-item h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.advantage-item p {
    color: #666;
}

/* 成功案例 */
.cases-slider {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.case-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.case-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.case-image {
    height: 200px;
    overflow: hidden;
}

.case-image img, .case-image svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.case-card:hover .case-image img,
.case-card:hover .case-image svg {
    transform: scale(1.05);
}

.case-content {
    padding: 25px;
}

.case-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.case-content p {
    color: #666;
    margin-bottom: 15px;
}

.case-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.case-tags span {
    background-color: rgba(30, 80, 162, 0.1);
    color: #1e50a2;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
}

/* 关于我们 */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text p {
    margin-bottom: 15px;
}

.about-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* 联系我们 */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-form {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1e50a2;
    box-shadow: 0 0 0 3px rgba(30, 80, 162, 0.1);
}

.contact-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 25px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.contact-icon {
    background-color: rgba(30, 80, 162, 0.1);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-text h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.contact-text p {
    color: #666;
}

/* 页脚 */
footer {
    background-color: #1e3a70;
    color: #fff;
    padding-top: 80px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 50px;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-logo {
    max-width: 300px;
}

.footer-logo p {
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-links {
    display: flex;
    gap: 50px;
    flex-wrap: wrap;
}

.footer-link-column h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-link-column h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: #ff6b6b;
}

.footer-link-column ul li {
    margin-bottom: 10px;
}

.footer-link-column ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.footer-link-column ul li a:hover {
    color: #fff;
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* 返回顶部按钮 */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #1e50a2;
    border: none;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    transform: translateY(20px);
    z-index: 999;
    box-shadow: 0 5px 15px rgba(30, 80, 162, 0.3);
}

#backToTop.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#backToTop:hover {
    background-color: #15397c;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .section-title {
        font-size: 2rem;
    }
    
    #hero h1 {
        font-size: 2.5rem;
    }
    
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        order: -1;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        z-index: 1001;
    }
    
    .nav-list {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: #fff;
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 30px 30px;
        transition: all 0.4s ease;
        z-index: 1000;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }
    
    .nav-list.active {
        right: 0;
    }
    
    .nav-list li {
        margin: 15px 0;
    }
    
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }
    
    #hero {
        padding: 130px 0 70px;
    }
    
    #hero h1 {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    section {
        padding: 70px 0;
    }
    
    .services-grid,
    .advantage-grid,
    .cases-slider {
        grid-template-columns: 1fr;
    }
    
    .footer-top {
        flex-direction: column;
    }
    
    .about-image {
        margin-bottom: 30px;
    }
}

@media (max-width: 480px) {
    #hero h1 {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .service-card,
    .advantage-item,
    .case-card {
        padding: 20px;
    }
    
    .contact-form {
        padding: 20px;
    }
}
