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

:root {
    --primary-color: #1a237e;
    --secondary-color: #ffd700;
    --accent-color: #3f51b5;
    --text-dark: #212121;
    --text-light: #757575;
    --bg-light: #f5f5f5;
    --bg-white: #ffffff;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 5px 20px rgba(0, 0, 0, 0.15);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

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

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(26, 35, 126, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 15px 0;
    box-shadow: var(--shadow);
}

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

.nav-brand a {
    color: var(--secondary-color);
    font-size: 24px;
    font-weight: bold;
    text-decoration: none;
    letter-spacing: 1px;
}

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

.nav-menu a {
    color: var(--bg-white);
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: width 0.3s ease;
}

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

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

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    position: relative;
    z-index: 1001;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--bg-white);
    transition: all 0.3s ease;
}

.nav-checkbox {
    display: none;
}

/* Hero区域 */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--bg-white);
    overflow: hidden;
    margin-top: 70px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: zoomIn 20s ease-in-out infinite;
}

@keyframes zoomIn {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.hero-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 35, 126, 0.8), rgba(63, 81, 181, 0.6));
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
    animation: fadeInUp 1s ease-out;
}

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

.hero-title {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 24px;
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-weight: 500;
}

.hero-desc {
    font-size: 18px;
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--secondary-color);
    color: var(--text-dark);
}

.btn-primary:hover {
    background: #ffed4e;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background: transparent;
    color: var(--bg-white);
    border-color: var(--bg-white);
}

.btn-secondary:hover {
    background: var(--bg-white);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--bg-white);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--bg-white);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

.arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid var(--bg-white);
    border-bottom: 2px solid var(--bg-white);
    transform: rotate(45deg);
    margin: 10px auto;
}

/* 服务亮点 */
.services-highlight {
    padding: 100px 0;
    background: var(--bg-white);
}

.section-title {
    text-align: center;
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: bold;
}

.section-subtitle {
    text-align: center;
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 60px;
}

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

.service-card {
    background: var(--bg-white);
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    text-align: center;
}

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

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--bg-light);
}

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

.service-card h3 {
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.8;
}

.service-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

/* 最新项目 */
.latest-projects {
    padding: 100px 0;
    background: var(--bg-light);
}

.projects-scroll {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.project-item {
    background: var(--bg-white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

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

.project-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-item:hover .project-image img {
    transform: scale(1.1);
}

.project-info {
    padding: 25px;
}

.project-tag {
    display: inline-block;
    padding: 5px 15px;
    background: var(--primary-color);
    color: var(--bg-white);
    border-radius: 20px;
    font-size: 12px;
    margin-bottom: 15px;
}

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

.project-info p {
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.6;
}

.project-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
}

.project-link:hover {
    color: var(--primary-color);
}

.view-all {
    text-align: center;
    margin-top: 50px;
}

/* 数据统计 */
.stats-section {
    padding: 80px 0;
    background: var(--bg-white);
    color: var(--text-dark);
}

.stats-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 400px;
    margin: 0 auto;
}

.stat-box {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 0;
    text-align: left;
}

.stat-icon {
    font-size: 40px;
    flex-shrink: 0;
    width: 50px;
    text-align: center;
}

.stat-content {
    flex: 1;
}

.stat-value {
    display: inline-block;
    margin-bottom: 5px;
}

.stat-number {
    font-size: 36px;
    font-weight: bold;
    line-height: 1;
    color: var(--text-dark);
}

.stat-unit {
    font-size: 20px;
    font-weight: bold;
    color: var(--text-dark);
    margin-left: 5px;
}

.stat-label {
    font-size: 16px;
    color: var(--text-light);
    margin-top: 5px;
}

/* 公司优势 */
.advantages-section {
    padding: 100px 0;
    background: var(--bg-white);
}

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

.advantage-card {
    background: var(--bg-light);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
}

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

.advantage-icon-large {
    font-size: 64px;
    margin-bottom: 20px;
}

.advantage-card h3 {
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.advantage-card p {
    color: var(--text-light);
    line-height: 1.8;
}

/* 服务流程 */
.process-section {
    padding: 100px 0;
    background: var(--bg-light);
}

.process-timeline {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 50px;
    position: relative;
    flex-wrap: wrap;
    gap: 20px;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 5%;
    right: 5%;
    height: 2px;
    background: var(--primary-color);
    z-index: 0;
}

@media (min-width: 769px) {
    .process-timeline::before {
        display: block;
    }
}

.process-step {
    flex: 1;
    min-width: 180px;
    max-width: 200px;
    text-align: center;
    position: relative;
    z-index: 1;
    background: var(--bg-white);
    padding: 20px;
    border-radius: 15px;
}

.step-number {
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    color: var(--bg-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: bold;
    margin: 0 auto 20px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.process-step:hover .step-number {
    background: var(--secondary-color);
    color: var(--text-dark);
    transform: scale(1.1);
}

.step-content h3 {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.step-content p {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 14px;
}

/* 客户见证 */
.testimonials-section {
    padding: 100px 0;
    background: var(--bg-white);
}

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

.testimonial-card {
    background: var(--bg-light);
    padding: 40px 30px;
    border-radius: 15px;
    position: relative;
    transition: all 0.3s ease;
}

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

.testimonial-quote {
    font-size: 64px;
    color: var(--primary-color);
    opacity: 0.2;
    line-height: 1;
    margin-bottom: 20px;
}

.testimonial-text {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 30px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-name {
    font-size: 18px;
    font-weight: bold;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.author-title {
    font-size: 14px;
    color: var(--text-light);
}

/* 行业荣誉 */
.honors-section {
    padding: 100px 0;
    background: var(--bg-light);
}

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

.honor-item {
    background: var(--bg-white);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

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

.honor-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.honor-item h3 {
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 10px;
    line-height: 1.4;
}

.honor-item p {
    font-size: 14px;
    color: var(--text-light);
}

/* 新闻动态预览 */
.news-preview {
    padding: 100px 0;
    background: var(--bg-white);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 50px;
    flex-wrap: wrap;
    gap: 20px;
}

.view-more {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.view-more:hover {
    color: var(--primary-color);
}

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

.news-card {
    background: var(--bg-white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

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

.news-card .news-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.news-card .news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.1);
}

.news-card .news-content {
    padding: 25px;
}

.news-card .news-category {
    display: inline-block;
    padding: 5px 15px;
    background: var(--primary-color);
    color: var(--bg-white);
    border-radius: 20px;
    font-size: 12px;
    margin-right: 10px;
}

.news-card .news-date {
    font-size: 12px;
    color: var(--text-light);
}

.news-card h3 {
    font-size: 20px;
    color: var(--text-dark);
    margin: 15px 0 10px;
    line-height: 1.4;
}

.news-card p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 14px;
}

.news-card .news-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.news-card .news-link:hover {
    color: var(--primary-color);
}

/* 客户logo墙 */
.clients {
    padding: 100px 0;
    background: var(--bg-white);
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 40px;
    align-items: center;
    margin-top: 50px;
}

.client-logo {
    opacity: 0.6;
    transition: opacity 0.3s ease;
    filter: grayscale(100%);
}

.client-logo:hover {
    opacity: 1;
    filter: grayscale(0%);
}

.client-logo img {
    width: 100%;
    height: auto;
    max-height: 80px;
    object-fit: contain;
}

/* 联系方式悬浮 */
.contact-float {
    position: fixed;
    right: 30px;
    bottom: 30px;
    z-index: 999;
}

.float-btn {
    display: block;
    width: 60px;
    height: 60px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-hover);
    text-decoration: none;
    color: var(--text-dark);
    font-weight: bold;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.float-btn:hover {
    background: #ffed4e;
    transform: scale(1.1);
}

.float-btn span {
    font-size: 14px;
    text-align: center;
}

/* 页脚 */
.footer {
    background: var(--text-dark);
    color: var(--bg-white);
    padding: 60px 0 20px;
}

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

.footer-col h3,
.footer-col h4 {
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.footer-col p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
}

.footer-col ul {
    list-style: none;
}

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

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: var(--secondary-color);
}

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

.footer-bottom a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
}

.footer-bottom a:hover {
    color: var(--secondary-color);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(26, 35, 126, 0.98);
        width: 100%;
        text-align: center;
        transition: left 0.3s ease;
        padding: 20px 0;
        gap: 0;
        z-index: 1000;
    }

        .nav-checkbox:checked ~ .nav-menu {
        left: 0;
    }

    .nav-checkbox:checked ~ .nav-toggle span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-checkbox:checked ~ .nav-toggle span:nth-child(2) {
        opacity: 0;
    }

    .nav-checkbox:checked ~ .nav-toggle span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .nav-menu li {
        padding: 15px 0;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .hero-desc {
        font-size: 16px;
    }

    .section-title {
        font-size: 28px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .projects-scroll {
        grid-template-columns: 1fr;
    }

    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .stats-grid {
        max-width: 100%;
    }

    .stat-number {
        font-size: 32px;
    }

    .stat-unit {
        font-size: 18px;
    }

    .advantages-grid {
        grid-template-columns: 1fr;
    }

    .process-timeline {
        flex-direction: column;
        gap: 30px;
    }

    .process-timeline::before {
        display: none;
    }

    .process-step {
        max-width: 100%;
        width: 100%;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .honors-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .contact-float {
        right: 20px;
        bottom: 20px;
    }

    .float-btn {
        width: 50px;
        height: 50px;
    }

    .float-btn span {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 24px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .btn {
        padding: 12px 30px;
        font-size: 14px;
    }

    .section-title {
        font-size: 24px;
    }

    .service-card {
        padding: 30px 20px;
    }

    .stat-box {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .stat-icon {
        width: auto;
    }

    .stat-number {
        font-size: 28px;
    }

    .stat-unit {
        font-size: 16px;
    }

    .honors-grid {
        grid-template-columns: 1fr;
    }
}
