/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 全局变量 */
:root {
    --primary-color: #0066cc;
    --secondary-color: #004080;
    --accent-color: #ff6600;
    --text-color: #333333;
    --light-text: #666666;
    --background-color: #f5f5f5;
    --white: #ffffff;
    --light-gray: #e0e0e0;
    --dark-gray: #444444;
    --success-color: #4caf50;
    --warning-color: #ff9800;
    --error-color: #f44336;
    --border-radius: 8px;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* 基础样式 */
body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: var(--box-shadow);
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.navbar-brand a {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--primary-color);
}

.navbar-brand h1 {
    font-size: 24px;
    font-weight: bold;
    margin: 0;
}

.navbar-brand p {
    font-size: 12px;
    color: var(--light-text);
    margin: 0;
}

.navbar-menu ul {
    display: flex;
    list-style: none;
}

.navbar-menu li {
    margin-left: 30px;
}

.navbar-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 16px;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.navbar-menu a:hover,
.navbar-menu a.active {
    color: var(--primary-color);
}

.navbar-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

.navbar-toggle {
    display: none;
    font-size: 24px;
    color: var(--text-color);
    cursor: pointer;
}

/* 英雄区样式 */
.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 150px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,%3Csvg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="none" fill-rule="evenodd"%3E%3Cg fill="%23ffffff" fill-opacity="0.1"%3E%3Cpath d="M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z"/%3E%3C/g%3E%3C/g%3E%3C/svg%3E') repeat;
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h2 {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 20px;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: var(--border-radius);
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    outline: none;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--white);
    margin-right: 15px;
}

.btn-primary:hover {
    background-color: #e55c00;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 102, 0, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* 通用部分样式 */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

.section-header p {
    font-size: 18px;
    color: var(--light-text);
    max-width: 700px;
    margin: 0 auto;
}

/* 关于我们样式 */
.about {
    padding: 100px 0;
    background-color: var(--white);
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-text h3 {
    font-size: 24px;
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: 20px;
}

.about-text p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--light-text);
    margin-bottom: 25px;
}

.about-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 40px;
}

.stat-item {
    flex: 1;
    min-width: 150px;
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 36px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-item p {
    font-size: 14px;
    color: var(--light-text);
    margin: 0;
}

.about-image {
    flex: 1;
    min-width: 300px;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

/* 服务项目样式 */
.services {
    padding: 100px 0;
    background-color: var(--background-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-item {
    background-color: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    text-align: center;
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background-color: rgba(0, 102, 204, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    margin-bottom: 25px;
    font-size: 32px;
    transition: var(--transition);
}

.service-item:hover .service-icon {
    background-color: var(--primary-color);
    color: var(--white);
    transform: scale(1.1);
}

.service-item h3 {
    font-size: 20px;
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: 15px;
}

.service-item p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--light-text);
    margin-bottom: 25px;
}

.service-item ul {
    list-style: none;
    text-align: left;
}

.service-item ul li {
    font-size: 14px;
    color: var(--light-text);
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.service-item ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.service-price {
    margin-top: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid var(--light-gray);
}

.service-price .price {
    font-size: 18px;
    font-weight: bold;
    color: var(--accent-color);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 14px;
}

/* 手机端服务价格适配 */
@media (max-width: 576px) {
    .service-price {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .service-price .price {
        font-size: 16px;
    }
    
    .service-price .btn-sm {
        width: 100%;
        text-align: center;
    }
}

/* 专家团队样式 */
.team {
    padding: 100px 0;
    background-color: var(--white);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.team-member {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: var(--transition);
    text-align: center;
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.team-image {
    position: relative;
    overflow: hidden;
}

.team-image img {
    width: 100%;
    height: auto;
    transition: var(--transition);
}

.team-member:hover .team-image img {
    transform: scale(1.05);
}

.team-info {
    padding: 30px;
}

.team-info h3 {
    font-size: 20px;
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: 5px;
}

.team-title {
    font-size: 14px;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 500;
}

.team-description {
    font-size: 14px;
    line-height: 1.6;
    color: var(--light-text);
    margin-bottom: 20px;
}

.team-social {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.team-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(0, 102, 204, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    transition: var(--transition);
    text-decoration: none;
}

.team-social a:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
}

/* 成功案例样式 */
.cases {
    padding: 100px 0;
    background-color: var(--background-color);
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.case-item {
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.case-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.case-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.case-item:hover .case-image img {
    transform: scale(1.1);
}

.case-info {
    padding: 30px;
}

.case-category {
    font-size: 12px;
    color: var(--primary-color);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.case-info h3 {
    font-size: 20px;
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: 15px;
}

.case-description {
    font-size: 14px;
    line-height: 1.6;
    color: var(--light-text);
    margin-bottom: 20px;
}

.case-link {
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    font-weight: 500;
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.case-link:hover {
    color: var(--secondary-color);
}

.case-link i {
    margin-left: 5px;
    transition: var(--transition);
}

.case-link:hover i {
    transform: translateX(5px);
}

/* 客户评价样式 */
.testimonials {
    padding: 100px 0;
    background-color: var(--white);
}

.testimonials-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-item {
    text-align: center;
    padding: 40px;
    background-color: var(--background-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.testimonial-content p {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 30px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.testimonial-author img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
}

.author-info h4 {
    font-size: 16px;
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: 5px;
}

.author-info p {
    font-size: 14px;
    color: var(--light-text);
    margin: 0;
}

/* 联系我们样式 */
.contact {
    padding: 100px 0;
    background-color: var(--background-color);
}

.contact-content {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
}

/* 购买服务页面样式 */
.purchase-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    background-color: var(--background-color);
    padding: 20px;
    border-radius: var(--border-radius);
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
}

.step::after {
    content: '';
    position: absolute;
    top: 20px;
    right: -50%;
    width: 100%;
    height: 2px;
    background-color: var(--light-gray);
    z-index: 1;
}

.step:last-child::after {
    display: none;
}

.step.active::after {
    background-color: var(--primary-color);
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--light-gray);
    color: var(--text-color);
    font-weight: bold;
    margin-bottom: 10px;
    z-index: 2;
    transition: var(--transition);
}

.step.active .step-number {
    background-color: var(--primary-color);
    color: var(--white);
    transform: scale(1.1);
}

.step-text {
    font-size: 14px;
    color: var(--light-text);
    text-align: center;
}

.step.active .step-text {
    color: var(--primary-color);
    font-weight: 500;
}

.purchase-form {
    background-color: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-row .form-group {
    flex: 1;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    font-size: 16px;
    color: var(--text-color);
    transition: var(--transition);
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.terms {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 30px;
}

.terms input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
}

.terms label {
    font-size: 14px;
    color: var(--text-color);
    margin: 0;
}

.terms a {
    color: var(--primary-color);
    text-decoration: none;
}

.terms a:hover {
    text-decoration: underline;
}

.btn-block {
    width: 100%;
    text-align: center;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
    }
    
    .purchase-steps {
        flex-direction: column;
        gap: 20px;
    }
    
    .step::after {
        display: none;
    }
    
    .purchase-form {
        padding: 30px;
    }
}

/* 页脚样式 */
.footer {
    background-color: var(--dark-gray);
    color: var(--white);
    padding: 80px 0 30px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-about {
    flex: 1;
    min-width: 300px;
}

.footer-about h3 {
    font-size: 24px;
    font-weight: bold;
    color: var(--white);
    margin-bottom: 20px;
}

.footer-about p {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 30px;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-radius: 50%;
    transition: var(--transition);
    text-decoration: none;
}

.footer-social a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-links,
.footer-services,
.footer-contact {
    flex: 1;
    min-width: 200px;
}

.footer-links h4,
.footer-services h4,
.footer-contact h4 {
    font-size: 18px;
    font-weight: bold;
    color: var(--white);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h4::after,
.footer-services h4::after,
.footer-contact h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-links ul,
.footer-services ul,
.footer-contact ul {
    list-style: none;
}

.footer-links li,
.footer-services li,
.footer-contact li {
    margin-bottom: 15px;
}

.footer-links a,
.footer-services a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    transition: var(--transition);
    display: block;
}

.footer-links a:hover,
.footer-services a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.footer-contact li {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.footer-contact li i {
    color: var(--primary-color);
    margin-top: 5px;
    flex-shrink: 0;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    z-index: 999;
    border: none;
    outline: none;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--secondary-color);
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

/* 响应式设计 */
@media (max-width: 992px) {
    .hero h2 {
        font-size: 36px;
    }
    
    .hero p {
        font-size: 18px;
    }
    
    .section-header h2 {
        font-size: 30px;
    }
    
    .about-content {
        flex-direction: column;
        text-align: center;
    }
    
    .about-stats {
        justify-content: center;
    }
    
    .contact-content {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .navbar-menu {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--white);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        padding: 20px 0;
        transform: translateY(-150%);
        transition: var(--transition);
        z-index: 999;
    }
    
    .navbar-menu.active {
        transform: translateY(0);
    }
    
    .navbar-menu ul {
        flex-direction: column;
        align-items: center;
    }
    
    .navbar-menu li {
        margin: 10px 0;
    }
    
    .navbar-toggle {
        display: block;
    }
    
    .hero {
        padding: 120px 0 80px;
    }
    
    .hero h2 {
        font-size: 28px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .btn-primary {
        margin-right: 10px;
        margin-bottom: 10px;
    }
    
    .section-header h2 {
        font-size: 24px;
    }
    
    .section-header p {
        font-size: 16px;
    }
    
    .about,
    .services,
    .team,
    .cases,
    .testimonials,
    .contact,
    .footer {
        padding: 60px 0;
    }
    
    .service-item,
    .case-item,
    .contact-info,
    .contact-form {
        padding: 30px;
    }
    
    .footer-content {
        gap: 30px;
    }
}

@media (max-width: 576px) {
    .hero h2 {
        font-size: 24px;
    }
    
    .hero p {
        font-size: 14px;
    }
    
    .section-header h2 {
        font-size: 20px;
    }
    
    .service-item,
    .case-item,
    .contact-info,
    .contact-form {
        padding: 20px;
    }
    
    .team-info {
        padding: 20px;
    }
    
    .testimonial-item {
        padding: 30px 20px;
    }
    
    .testimonial-author {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

.pulse {
    animation: pulse 2s infinite;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--background-color);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}