/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
    overflow-x: hidden;
}

/* 导入Inter字体 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* 自定义属性 */
:root {
    --primary-color: #007bff;
    --secondary-color: #f39c12;
    --dark-color: #1a1a2e;
    --light-color: #f8f9fa;
    --accent-color: #9b59b6;
    --text-color: #333;
    --text-light: #777;
    --border-radius: 8px;
    --transition: all 0.3s ease;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: transparent;
    padding: 25px 0;
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow);
    padding: 18px 0;
}

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

.logo a {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
    letter-spacing: 1px;
    transition: var(--transition);
    position: relative;
    padding: 0 10px;
}

.logo a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.logo a:hover::after {
    width: 100%;
}

.navbar.scrolled .logo a {
    color: var(--dark-color);
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    margin-left: 40px;
    position: relative;
}

.nav-menu li a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 8px 0;
    font-size: 16px;
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

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

.navbar.scrolled .nav-menu li a {
    color: var(--dark-color);
}

.nav-menu li a:hover {
    color: var(--primary-color);
}

.contact-btn a {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--primary-color);
    color: #fff;
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.contact-btn a:hover {
    background-color: var(--dark-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.4);
}

/* 移动菜单按钮样式 */
.mobile-menu-btn {
    display: none;
    font-size: 24px;
    color: #fff;
    cursor: pointer;
    z-index: 1001;
}

.navbar.scrolled .mobile-menu-btn {
    color: var(--dark-color);
}

/* Hero区域样式 */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    background-color: var(--dark-color);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.2) 0%, rgba(155, 89, 182, 0.2) 100%);
    z-index: 1;
}

.hero-content {
    flex: 1;
    padding-left: 80px;
    z-index: 2;
    animation: fadeInLeft 1s ease-out;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-content h1 {
    font-size: 64px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 25px;
    line-height: 1.1;
    letter-spacing: -1px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-content h1 span {
    color: var(--primary-color);
    display: block;
}

.hero-content p {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    max-width: 550px;
    font-weight: 400;
}

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

.btn-primary {
    display: inline-block;
    padding: 18px 36px;
    background-color: var(--primary-color);
    color: #fff;
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: var(--transition);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background-color: var(--dark-color);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 123, 255, 0.5);
}

.btn-secondary {
    display: inline-block;
    padding: 18px 36px;
    background-color: transparent;
    color: #fff;
    text-decoration: none;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: var(--transition);
}

.btn-secondary:hover::before {
    left: 100%;
}

.btn-secondary:hover {
    background-color: #fff;
    color: var(--dark-color);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
    border-color: #fff;
}

.hero-image {
    flex: 1;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    animation: fadeInRight 1s ease-out 0.3s both;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    filter: contrast(1.1) brightness(0.9);
    transition: var(--transition);
}

.hero-image:hover img {
    transform: scale(1.05);
    opacity: 0.9;
}

.hero-shape {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: var(--light-color);
    clip-path: polygon(0 100%, 100% 100%, 100% 0);
    z-index: 2;
}

/* 通用部分样式 */
.section-header {
    text-align: center;
    margin-bottom: 80px;
    position: relative;
}

.section-header::before {
    content: '';
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    /* background: linear-gradient(90deg, var(--primary-color), var(--accent-color)); */
    border-radius: 2px;
}

.section-header h2 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--dark-color);
    position: relative;
    display: inline-block;
    padding: 0 20px;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    /* background-color: var(--primary-color); */
    border-radius: 1.5px;
}

.section-header p {
    font-size: 18px;
    color: var(--text-light);
    max-width: 750px;
    margin: 0 auto;
    line-height: 1.7;
    font-weight: 400;
}

.view-all {
    display: inline-block;
    margin-top: 30px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
    padding: 10px 20px;
    border-radius: var(--border-radius);
}

.view-all::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.view-all:hover {
    color: var(--accent-color);
    background-color: rgba(0, 123, 255, 0.1);
}

.view-all:hover::after {
    width: 100%;
}

/* 通用卡片样式 */
.card {
    background-color: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    overflow: hidden;
    position: relative;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

/* 通用图标样式 */
.icon-box {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.icon-box::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    background-color: #fff;
    border-radius: 50%;
    z-index: -1;
}

.icon-box i {
    font-size: 32px;
    color: var(--primary-color);
    transition: var(--transition);
}

.icon-box:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 25px rgba(0, 123, 255, 0.3);
}

.icon-box:hover i {
    color: var(--accent-color);
    transform: rotate(10deg);
}

/* 服务简介样式 */
.services-intro {
    padding: 120px 0;
    background-color: #fff;
    position: relative;
    overflow: hidden;
}

.services-intro::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(0, 123, 255, 0.05) 0%, transparent 50%),
                radial-gradient(circle at bottom left, rgba(155, 89, 182, 0.05) 0%, transparent 50%);
    z-index: 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 40px;
    position: relative;
    z-index: 1;
}

.service-item {
    text-align: center;
    padding: 40px 30px;
    border-radius: var(--border-radius);
    transition: var(--transition);
    background-color: #fff;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.service-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transition: var(--transition);
}

.service-item:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-hover);
}

.service-item:hover::before {
    left: 0;
}

.service-icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 36px;
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.service-icon::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    z-index: -1;
}

.service-item:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 25px rgba(0, 123, 255, 0.3);
}

.service-item h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--dark-color);
    transition: var(--transition);
}

.service-item:hover h3 {
    color: var(--primary-color);
}

.service-item p {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 16px;
    transition: var(--transition);
}

.service-item:hover p {
    color: var(--text-color);
}

/* 案例展示样式 */
.portfolio-preview {
    padding: 120px 0;
    background-color: #f5f5f5;
    position: relative;
    overflow: hidden;
}

.portfolio-preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(0, 123, 255, 0.05) 0%, transparent 50%),
                radial-gradient(circle at bottom left, rgba(155, 89, 182, 0.05) 0%, transparent 50%);
    z-index: 0;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    position: relative;
    z-index: 1;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    height: 450px;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.portfolio-item:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-hover);
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    filter: contrast(1.05) brightness(0.95);
}

.portfolio-item:hover img {
    transform: scale(1.15) rotate(2deg);
    filter: contrast(1.1) brightness(1);
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 123, 255, 0.9) 100%);
    color: #fff;
    padding: 40px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    opacity: 0;
}

.portfolio-item:hover .portfolio-overlay {
    height: 100%;
    opacity: 1;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 123, 255, 0.9) 100%);
}

.portfolio-overlay h4 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    transform: translateY(20px);
    transition: var(--transition);
    color: #fff;
}

.portfolio-item:hover .portfolio-overlay h4 {
    transform: translateY(0);
}

.portfolio-overlay p {
    font-size: 16px;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
}

.portfolio-item:hover .portfolio-overlay p {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.1s;
}

.portfolio-overlay a {
    display: inline-block;
    padding: 12px 24px;
    background-color: #fff;
    color: var(--primary-color);
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.portfolio-item:hover .portfolio-overlay a {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}

.portfolio-overlay a:hover {
    background-color: var(--dark-color);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* 客户评价样式 */
.testimonials {
    padding: 120px 0;
    background-color: #f8f9fa;
    position: relative;
    overflow: hidden;
}

.testimonials::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(0, 123, 255, 0.05) 0%, transparent 50%),
                radial-gradient(circle at bottom left, rgba(155, 89, 182, 0.05) 0%, transparent 50%);
    z-index: 0;
}

.testimonial-slider {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.testimonial-item {
    text-align: center;
    padding: 60px;
    background-color: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.testimonial-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.testimonial-item::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 40px;
    font-size: 150px;
    font-family: Georgia, serif;
    color: rgba(0, 123, 255, 0.1);
    z-index: 0;
}

.testimonial-content {
    position: relative;
    z-index: 1;
}

.testimonial-content p {
    font-size: 20px;
    font-style: italic;
    color: var(--text-color);
    margin-bottom: 40px;
    line-height: 1.8;
    font-weight: 400;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    position: relative;
    z-index: 1;
}

.testimonial-author img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary-color);
    transition: var(--transition);
}

.testimonial-item:hover .testimonial-author img {
    transform: scale(1.1);
    box-shadow: 0 10px 25px rgba(0, 123, 255, 0.3);
}

.testimonial-author-info {
    text-align: left;
}

.testimonial-author h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 5px;
    transition: var(--transition);
}

.testimonial-item:hover .testimonial-author h4 {
    color: var(--primary-color);
}

.testimonial-author p {
    font-size: 14px;
    color: var(--text-light);
    margin: 0;
}

/* 客户评价滑块导航 */
.testimonial-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
}

.testimonial-nav button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background-color: #ddd;
    cursor: pointer;
    transition: var(--transition);
}

.testimonial-nav button.active {
    background-color: var(--primary-color);
    transform: scale(1.2);
}

.testimonial-nav button:hover {
    background-color: var(--primary-color);
    transform: scale(1.2);
}

/* 关于我们简介样式 */
.about-intro {
    padding: 120px 0;
    background-color: #f8f9fa;
    position: relative;
    overflow: hidden;
}

.about-intro::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(0, 123, 255, 0.05) 0%, transparent 50%),
                radial-gradient(circle at bottom left, rgba(155, 89, 182, 0.05) 0%, transparent 50%);
    z-index: 0;
}

.about-intro .container {
    display: flex;
    align-items: center;
    gap: 80px;
    position: relative;
    z-index: 1;
}

.about-content {
    flex: 1;
    animation: fadeInLeft 1s ease-out;
}

.about-content h2 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 25px;
    color: var(--dark-color);
    position: relative;
    padding-bottom: 20px;
}

.about-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.about-content p {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 25px;
    line-height: 1.8;
}

.about-image {
    flex: 1;
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
    animation: fadeInRight 1s ease-out 0.3s both;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.about-image:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.about-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    transition: var(--transition);
    filter: contrast(1.05) brightness(0.95);
}

.about-image:hover img {
    transform: scale(1.1);
    filter: contrast(1.1) brightness(1);
}

.about-image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: var(--border-radius);
    z-index: -1;
    transition: var(--transition);
}

.about-image:hover::before {
    transform: translate(10px, 10px);
}

/* 联系我们样式 */
.contact-section {
    padding: 120px 0;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at bottom left, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    z-index: 0;
}

.contact-section .container {
    position: relative;
    z-index: 1;
}

.contact-content h2 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 25px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    animation: fadeInDown 1s ease-out;
}

.contact-content p {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.contact-section .btn-primary {
    background-color: #fff;
    color: var(--primary-color);
    animation: fadeInUp 1s ease-out 0.6s both;
}

.contact-section .btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 123, 255, 0.2), transparent);
    transition: var(--transition);
}

.contact-section .btn-primary:hover::before {
    left: 100%;
}

.contact-section .btn-primary:hover {
    background-color: var(--dark-color);
    color: #fff;
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 公司数据样式 */
.company-stats {
    padding: 120px 0;
    background-color: #f8f9fa;
    position: relative;
    overflow: hidden;
}

.company-stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(0, 123, 255, 0.05) 0%, transparent 50%),
                radial-gradient(circle at bottom left, rgba(155, 89, 182, 0.05) 0%, transparent 50%);
    z-index: 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.stat-item {
    padding: 40px;
    background-color: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-item:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-hover);
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transition: var(--transition);
}

.stat-item:hover::before {
    left: 0;
}

.stat-item h3 {
    font-size: 56px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 15px;
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.stat-item:hover h3 {
    color: var(--accent-color);
    transform: scale(1.1);
}

.stat-item p {
    font-size: 18px;
    color: var(--text-light);
    transition: var(--transition);
    position: relative;
    z-index: 1;
    font-weight: 500;
}

.stat-item:hover p {
    color: var(--text-color);
}

/* 数字动画效果 */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-item h3 {
    animation: countUp 1s ease-out;
}

.stat-item p {
    animation: countUp 1s ease-out 0.3s both;
}

/* 合作伙伴样式 */
.partners {
    padding: 100px 0;
    background-color: #fff;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    align-items: center;
}

.partner-item {
    text-align: center;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    transition: all 0.3s ease;
}

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

.partner-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    border-radius: 8px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0.7;
}

.partner-logo:hover {
    opacity: 1;
    transform: scale(1.05);
}

.partner-logo.blue {
    background: linear-gradient(135deg, #3498db, #2980b9);
}

.partner-logo.red {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.partner-logo.green {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
}

.partner-logo.purple {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
}

.partner-logo.orange {
    background: linear-gradient(135deg, #f39c12, #d35400);
}

/* 服务流程样式 */
.service-process {
    padding: 100px 0;
    background-color: #f5f5f5;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    position: relative;
}

.process-step {
    text-align: center;
    position: relative;
    z-index: 2;
}

.step-number {
    width: 80px;
    height: 80px;
    background-color: #007bff;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    margin: 0 auto 20px;
    transition: all 0.3s ease;
}

.process-step:hover .step-number {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(0, 123, 255, 0.3);
}

.process-step h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.process-step p {
    font-size: 14px;
    color: #666;
}

/* 团队文化样式 */
.team-culture {
    padding: 100px 0;
    background-color: #f5f5f5;
}

.culture-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.culture-item {
    text-align: center;
    padding: 30px;
    background-color: #fff;
    border-radius: 8px;
    transition: all 0.3s ease;
}

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

.culture-icon {
    width: 80px;
    height: 80px;
    background-color: #007bff;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 32px;
}

.culture-item h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.culture-item p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* 地图样式 */
.map-section {
    padding: 100px 0;
    background-color: #fff;
}

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

.map img {
    width: 100%;
    height: auto;
    display: block;
}

/* 案例模态框样式 */
.portfolio-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.modal-content {
    background-color: #fff;
    border-radius: 8px;
    max-width: 900px;
    max-height: 80vh;
    overflow-y: auto;
    margin: 50px;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 30px;
    color: #fff;
    cursor: pointer;
    z-index: 10001;
}

.modal-body {
    display: flex;
    flex-wrap: wrap;
}

.modal-image {
    flex: 1;
    min-width: 300px;
}

.modal-image img {
    width: 100%;
    height: auto;
    display: block;
}

.modal-info {
    flex: 1;
    padding: 40px;
    min-width: 300px;
}

.modal-info h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #333;
}

.modal-category {
    font-size: 14px;
    color: #007bff;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.modal-description {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

.modal-details h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.modal-details ul {
    list-style: none;
}

.modal-details li {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
}

.modal-details li strong {
    color: #333;
}

/* 滚动动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* 加载动画 */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.pulse {
    animation: pulse 2s infinite;
}

/* 悬停效果增强 */
.btn-primary,
.btn-secondary {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::before,
.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    z-index: -1;
}

.btn-primary:hover::before,
.btn-secondary:hover::before {
    left: 100%;
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .process-steps {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        margin: 20px;
        max-height: 90vh;
    }
    
    .modal-body {
        flex-direction: column;
    }
    
    .modal-info {
        padding: 20px;
    }
}

/* 页脚样式 */
.footer {
    background-color: #333;
    color: #fff;
    padding: 80px 0 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-info h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-info p {
    margin-bottom: 20px;
    opacity: 0.8;
}

.footer-contact p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.footer-contact i {
    margin-right: 10px;
    color: #007bff;
}

.footer-links h4,
.footer-services h4,
.footer-social h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-links ul,
.footer-services ul {
    list-style: none;
}

.footer-links li,
.footer-services li {
    margin-bottom: 10px;
}

.footer-links a,
.footer-services a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover,
.footer-services a:hover {
    color: #007bff;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: #007bff;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    opacity: 0.8;
}

.footer-bottom a {
    color: #fff;
}

/* 返回顶部按钮样式 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #007bff;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #0062cc;
    transform: translateY(-5px);
}

.back-to-top a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.back-to-top i {
    font-size: 20px;
    line-height: 1;
}

/* 联系页面样式 */
.contact-page {
    padding: 100px 0;
    background-color: #f8f9fa;
    position: relative;
    overflow: hidden;
}

.contact-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(0, 123, 255, 0.05) 0%, transparent 50%),
                radial-gradient(circle at bottom left, rgba(155, 89, 182, 0.05) 0%, transparent 50%);
    z-index: 0;
}

.contact-page .container {
    position: relative;
    z-index: 1;
}

.contact-info {
    /* max-width: 800px; */
    margin: 0 auto;
    /* background-color: #fff; */
    border-radius: var(--border-radius);
    /* box-shadow: var(--shadow); */
    padding: 60px;
    transition: var(--transition);
}

.contact-info:hover {
    transform: translateY(-10px);
    /* box-shadow: var(--shadow-hover); */
}

.contact-info h2 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 40px;
    color: var(--dark-color);
    text-align: center;
    position: relative;
    padding-bottom: 20px;
}

.contact-info h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: var(--border-radius);
    transition: var(--transition);
    border-left: 4px solid transparent;
}

.info-item:hover {
    transform: translateX(10px);
    border-left-color: var(--primary-color);
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.info-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

.info-item:hover .info-icon {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 123, 255, 0.4);
}

.info-icon i {
    font-size: 24px;
}

.info-content {
    flex: 1;
}

.info-content h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.info-content p {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 5px;
    line-height: 1.6;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        padding-left: 0;
        padding-top: 100px;
    }

    .hero-content h1 {
        font-size: 48px;
    }

    .about-intro .container {
        flex-direction: column;
        text-align: center;
    }

    .about-content {
        order: 2;
    }

    .about-image {
        order: 1;
        width: 100%;
        max-width: 600px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: fixed;
        top: 0;
        right: 0;
        width: 250px;
        height: 100vh;
        background-color: rgba(26, 26, 46, 0.95);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 30px;
        z-index: 1000;
        padding: 20px;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        margin-left: 0;
    }

    .nav-menu li a {
        color: #fff;
        font-size: 18px;
        padding: 10px 0;
    }

    .mobile-menu-btn {
        display: block;
    }

    .contact-btn {
        display: none;
    }

    .hero-content h1 {
        font-size: 36px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .section-header h2 {
        font-size: 28px;
    }

    .about-content h2 {
        font-size: 28px;
    }

    .contact-content h2 {
        font-size: 28px;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 28px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .btn-primary,
    .btn-secondary {
        padding: 12px 24px;
        font-size: 14px;
    }

    .services-intro,
    .portfolio-preview,
    .testimonials,
    .about-intro,
    .contact-section {
        padding: 60px 0;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-contact p {
        justify-content: center;
    }

    .social-links {
        justify-content: center;
    }
}

/* 页面特定样式 */
.page-header {
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background-color: #333;
    color: #fff;
    text-align: left;
    position: relative;
}

.page-header .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-header h1 {
    font-size: 48px;
    font-weight: 700;
    z-index: 2;
    text-align: left;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.6;
}

/* 各个页面的特定背景图 */
.about-header::before {
    background-image: url('../images/ys-services.jpg?fff');
}

.services-header::before {
    background-image: url('../images/ys-services.jpg?fff');
}

.portfolio-header::before {
    background-image: url('../images/xl_exhibition.jpg?fff');
}

.contact-header::before {
    background-image: url('../images/xl_exhibition.jpg?fff');
}

/* 关于我们页面样式 */
.about-page {
    padding: 100px 0;
    background-color: #fff;
}

.about-page .container {
    display: flex;
    gap: 60px;
    align-items: center;
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #333;
}

.about-text p {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.about-image {
    flex: 1;
    border-radius: 8px;
    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-features {
    padding: 100px 0;
    background-color: #f5f5f5;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-item {
    text-align: center;
    padding: 30px;
    background-color: #fff;
    border-radius: 8px;
    transition: all 0.3s ease;
}

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

.feature-icon {
    font-size: 48px;
    color: #007bff;
    margin-bottom: 20px;
}

.feature-item h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.feature-item p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* 服务项目页面样式 */
.services-page {
    padding: 100px 0;
    background-color: #fff;
}

.service-detail {
    margin-bottom: 80px;
}

.service-detail:last-child {
    margin-bottom: 0;
}

.service-detail .container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.service-detail:nth-child(even) .container {
    flex-direction: row-reverse;
}

.service-info {
    flex: 1;
}

.service-info h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #333;
}

.service-info p {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.service-info ul {
    list-style: none;
    margin-bottom: 30px;
}

.service-info li {
    font-size: 16px;
    color: #666;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.service-info li i {
    color: #007bff;
    margin-right: 10px;
}

.service-image {
    flex: 1;
    border-radius: 8px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 案例展示页面样式 */
.portfolio-page {
    padding: 100px 0;
    background-color: #f5f5f5;
}

.portfolio-filter {
    display: flex;
    justify-content: center;
    margin-bottom: 60px;
    gap: 20px;
}

.filter-btn {
    padding: 10px 20px;
    background-color: #fff;
    color: #333;
    border: none;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn.active,
.filter-btn:hover {
    background-color: #007bff;
    color: #fff;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* 团队介绍页面样式 */
.team-page {
    padding: 100px 0;
    background-color: #fff;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.team-member {
    text-align: center;
    background-color: #f9f9f9;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

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

.team-member img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.team-info {
    padding: 30px;
}

.team-info h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.team-info p {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

.team-social {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.team-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background-color: rgba(0, 123, 255, 0.1);
    color: #007bff;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.team-social a:hover {
    background-color: #007bff;
    color: #fff;
}

/* 联系我们页面样式 */
.contact-page {
    padding: 100px 0;
    background-color: #f5f5f5;
}

.contact-page .container {
    display: flex;
    gap: 60px;
}

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

.contact-form h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
    color: #333;
}

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

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.submit-btn {
    display: inline-block;
    padding: 15px 30px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background-color: #0062cc;
    transform: translateY(-2px);
}

.contact-info {
    flex: 1;
}

.contact-info h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
    color: #333;
}

.info-item {
    margin-bottom: 30px;
    display: flex;
    gap: 20px;
}

.info-icon {
    width: 60px;
    height: 60px;
    background-color: #007bff;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.info-content h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.info-content p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 淡入动画 */
.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #007bff;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0062cc;
}