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

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Microsoft YaHei', 'Hiragino Sans GB', 'SimSun', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

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

a:hover {
    color: #2a4b8d;
}

ul {
    list-style: none;
}

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

/* 容器 */
.container {
    width: 90%;
    max-width: 1140px;
    margin: 0 auto;
}

/* 按钮样式 */
.btn-primary {
    display: inline-block;
    background-color: #ff7a00;
    color: #fff;
    padding: 12px 28px;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: #e56e00;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 122, 0, 0.3);
}

.btn-outline {
    display: inline-block;
    background-color: transparent;
    color: #ff7a00;
    padding: 11px 28px;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid #ff7a00;
    cursor: pointer;
}

.btn-outline:hover {
    background-color: #ff7a00;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 122, 0, 0.3);
}

.btn-contact {
    background-color: #2a4b8d;
    color: #fff;
    padding: 8px 20px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn-contact:hover {
    background-color: #1f3c78;
    color: #fff;
}

/* 区块样式 */
section {
    padding: 80px 0;
}

.section-alt {
    background-color: #f8f9fa;
}

/* 导航栏 */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    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;
}

.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: 150px 0 80px;
    position: relative;
    background: linear-gradient(to right, #fff, #f8f9fa);
    overflow: hidden;
}

.hero-content {
    max-width: 550px;
}

#hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #2a4b8d;
    line-height: 1.3;
}

#hero p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #555;
}

.accent {
    color: #ff7a00;
}

.hero-cta {
    display: flex;
    gap: 15px;
}

.hero-image {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 45%;
    opacity: 0.9;
}

/* 区块标题 */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.2rem;
    color: #2a4b8d;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #ff7a00;
}

.section-header p {
    color: #666;
    font-size: 1.1rem;
}

/* 关于我们 */
.about-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.about-text {
    flex: 1;
}

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

.stats {
    display: flex;
    margin-top: 30px;
    gap: 30px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ff7a00;
    display: block;
}

.stat-number sup {
    font-size: 1rem;
    top: -1em;
}

.stat-text {
    color: #666;
    font-size: 0.9rem;
}

.about-image {
    flex: 1;
}

/* 服务内容 */
.services-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

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

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

.service-icon {
    margin: 0 auto 20px;
    width: 80px;
    height: 80px;
}

.service-card h3 {
    font-size: 1.3rem;
    color: #2a4b8d;
    margin-bottom: 15px;
}

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

/* 成功案例 */
.cases-container {
    display: flex;
    gap: 30px;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 10px 0 30px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.cases-container::-webkit-scrollbar {
    display: none;
}

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

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

.case-image {
    height: 200px;
}

.case-content {
    padding: 20px;
}

.case-content h3 {
    font-size: 1.2rem;
    color: #2a4b8d;
    margin-bottom: 10px;
}

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

.case-tag {
    display: inline-block;
    background-color: rgba(255, 122, 0, 0.1);
    color: #ff7a00;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
}

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

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

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

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

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ff7a00;
    box-shadow: 0 0 0 3px rgba(255, 122, 0, 0.1);
}

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

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

.contact-item svg {
    flex-shrink: 0;
}

.contact-item span {
    color: #555;
}

/* 页脚 */
footer {
    background-color: #2a4b8d;
    color: #fff;
    padding: 60px 0 20px;
}

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

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

.footer-logo p {
    margin-top: 15px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

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

.footer-column h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: #ff7a00;
}

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

.footer-column ul li a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-column ul li a:hover {
    color: #fff;
}

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

.footer-bottom p {
    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: #ff7a00;
    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(255, 122, 0, 0.3);
}

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

#backToTop:hover {
    background-color: #e56e00;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    #hero h1 {
        font-size: 2.2rem;
    }
    
    .hero-image {
        width: 40%;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .service-card {
        padding: 25px;
    }
}

@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;
        width: 100%;
    }
    
    .nav-list li a {
        display: block;
    }
    
    .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: 120px 0 60px;
        text-align: center;
    }
    
    .hero-content {
        max-width: 100%;
        margin-bottom: 40px;
    }
    
    #hero h1 {
        font-size: 2rem;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .hero-image {
        position: relative;
        top: auto;
        right: auto;
        transform: none;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }
    
    /* 关于我们 */
    .about-content {
        flex-direction: column;
    }
    
    .stats {
        justify-content: center;
    }
    
    /* 联系我们 */
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        order: -1;
        margin-bottom: 30px;
    }
    
    /* 页脚 */
    .footer-content {
        flex-direction: column;
    }
    
    .footer-logo {
        margin-bottom: 30px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    section {
        padding: 60px 0;
    }
    
    #hero h1 {
        font-size: 1.8rem;
    }
    
    .hero-cta {
        flex-direction: column;
        gap: 10px;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .services-container {
        grid-template-columns: 1fr;
    }
}
