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

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
}

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

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

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

.logo a {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    text-decoration: none;
}

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

.nav-menu li a {
    color: #333;
    text-decoration: none;
    padding: 10px 20px;
    transition: color 0.3s;
}

.nav-menu li a:hover {
    color: #007bff;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 2px 0;
    transition: 0.3s;
}

/* 主页横幅样式 */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 123, 255, 0.9), rgba(0, 188, 212, 0.9)), url('https://images.unsplash.com/photo-1497366216548-37526070297c?w=1920&auto=format&fit=crop&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    display: flex;
    align-items: center;
    text-align: center;
    padding-top: 80px;
}

.hero h1 {
    font-size: 3em;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2em;
    margin-bottom: 30px;
}

.cta-button {
    display: inline-block;
    padding: 15px 30px;
    background: white;
    color: #007bff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: transform 0.3s;
}

.cta-button:hover {
    transform: translateY(-3px);
}

/* 服务部分样式 */
.services {
    padding: 100px 0;
    background: #f8f9fa;
}

.services h2 {
    text-align: center;
    margin-bottom: 50px;
}

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

.service-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

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

.service-card i {
    font-size: 40px;
    color: #007bff;
    margin-bottom: 20px;
}

/* 关于我们样式 */
.about {
    padding: 100px 0;
}

.about h2 {
    text-align: center;
    margin-bottom: 50px;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

/* 案例展示样式 */
.portfolio {
    padding: 100px 0;
    background: #f8f9fa;
}

.portfolio h2 {
    text-align: center;
    margin-bottom: 50px;
}

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

/* 联系我们样式 */
.contact {
    padding: 100px 0;
}

.contact h2 {
    text-align: center;
    margin-bottom: 50px;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.contact-form textarea {
    height: 150px;
}

.submit-button {
    width: 100%;
    padding: 15px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
}

.submit-button:hover {
    background: #0056b3;
}

/* 页脚样式 */
.footer {
    background: #333;
    color: white;
    padding: 50px 0 20px;
}

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

.footer-info h3,
.footer-social h3 {
    margin-bottom: 20px;
}

.footer-social a {
    color: white;
    font-size: 24px;
    margin-right: 15px;
    text-decoration: none;
}

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

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        text-align: center;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

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

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

    .hero h1 {
        font-size: 2em;
    }

    .hero p {
        font-size: 1em;
    }
}

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

.service-card,
.about-content,
.portfolio-grid {
    animation: fadeIn 1s ease-out;
}

/* 案例展示样式增强 */
.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

.portfolio-item.animate {
    opacity: 1;
    transform: translateY(0);
}

.portfolio-image {
    position: relative;
    overflow: hidden;
}

.portfolio-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 123, 255, 0.9);
    color: white;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.5s ease;
}

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

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

.portfolio-overlay h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.portfolio-overlay p {
    margin-bottom: 15px;
}

.category {
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.9em;
    align-self: flex-start;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: #0056b3;
    transform: translateY(-5px);
}

/* 服务卡片动画增强 */
.service-card {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

.service-card.animate {
    opacity: 1;
    transform: translateY(0);
}

/* 关于我们部分动画 */
.about-content {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

.about-content.animate {
    opacity: 1;
    transform: translateY(0);
}

/* 添加加载动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.loaded .hero h1,
.loaded .hero p,
.loaded .hero .cta-button {
    animation: fadeInUp 0.8s ease-out forwards;
}

.loaded .hero p {
    animation-delay: 0.2s;
}

.loaded .hero .cta-button {
    animation-delay: 0.4s;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .back-to-top {
        width: 40px;
        height: 40px;
        bottom: 20px;
        right: 20px;
    }
}

/* 服务特性列表 */
.service-features {
    list-style: none;
    margin-top: 15px;
    text-align: left;
}

.service-features li {
    margin: 8px 0;
    padding-left: 20px;
    position: relative;
}

.service-features li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #007bff;
}

/* 技术栈展示样式优化 */
.tech-stack {
    padding: 80px 0;
    background: #f8f9fa;
}

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

.tech-item {
    text-align: center;
    padding: 30px 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tech-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.tech-item:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: #007bff;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.tech-item:hover:before {
    transform: scaleX(1);
}

.tech-item i {
    font-size: 40px;
    color: #007bff;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.tech-item:hover i {
    transform: scale(1.1);
}

.tech-item span {
    display: block;
    font-weight: bold;
    font-size: 1.2em;
    color: #333;
    margin-bottom: 8px;
}

.tech-item p {
    color: #666;
    font-size: 0.9em;
    margin: 0;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tech-item {
        padding: 20px 15px;
    }
    
    .tech-item i {
        font-size: 32px;
    }
    
    .tech-item span {
        font-size: 1.1em;
    }
}

/* 数据统计 */
.stats {
    padding: 80px 0;
    background: linear-gradient(135deg, #007bff, #00bcd4);
    color: white;
}

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

.stat-number {
    font-size: 3em;
    font-weight: bold;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1.2em;
    opacity: 0.9;
}

/* 客户评价 */
.testimonials {
    padding: 80px 0;
    background: #f8f9fa;
}

.testimonial-slider {
    margin-top: 40px;
}

.testimonial-item {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin: 20px;
}

.testimonial-content p {
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 20px;
    font-style: italic;
}

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

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 15px;
}

.author-info h4 {
    margin: 0;
    color: #333;
}

.author-info p {
    margin: 5px 0 0;
    color: #666;
    font-size: 0.9em;
}

/* 联系信息样式 */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.info-item {
    display: flex;
    align-items: flex-start;
}

.info-item i {
    font-size: 24px;
    color: #007bff;
    margin-right: 15px;
    margin-top: 5px;
}

.info-item h3 {
    margin: 0 0 5px;
    font-size: 1.2em;
}

.info-item p {
    margin: 0;
    color: #666;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-info {
        grid-template-columns: 1fr;
    }
    
    .testimonial-item {
        margin: 10px;
    }
}

/* 关于我们样式增强 */
.about-section {
    margin-bottom: 60px;
}

.about-section h3 {
    font-size: 1.8em;
    color: #333;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.about-section h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: #007bff;
}

/* 公司优势列表 */
.about-features {
    list-style: none;
    padding: 0;
}

.about-features li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    transition: transform 0.3s;
}

.about-features li:hover {
    transform: translateY(-5px);
}

.about-features i {
    color: #007bff;
    font-size: 24px;
    margin-right: 20px;
    margin-top: 5px;
}

.about-features h4 {
    margin: 0 0 10px;
    color: #333;
}

.about-features p {
    margin: 0;
    color: #666;
    line-height: 1.6;
}

/* 发展历程时间线 */
.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline:before {
    content: '';
    position: absolute;
    left: 120px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #007bff;
}

.timeline-item {
    display: flex;
    margin-bottom: 40px;
    position: relative;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item .year {
    width: 100px;
    text-align: right;
    padding-right: 30px;
    font-weight: bold;
    color: #007bff;
    font-size: 1.2em;
}

.timeline-item .content {
    flex: 1;
    padding-left: 50px;
    position: relative;
}

.timeline-item .content:before {
    content: '';
    position: absolute;
    left: -6px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #007bff;
    border: 2px solid white;
}

.timeline-item h4 {
    margin: 0 0 10px;
    color: #333;
}

.timeline-item p {
    margin: 0;
    color: #666;
}

/* 企业文化 */
.culture-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.culture-item {
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.culture-item:hover {
    transform: translateY(-5px);
}

.culture-item i {
    font-size: 40px;
    color: #007bff;
    margin-bottom: 20px;
}

.culture-item h4 {
    margin: 0 0 15px;
    color: #333;
}

.culture-item p {
    margin: 0;
    color: #666;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .timeline:before {
        left: 80px;
    }
    
    .timeline-item .year {
        width: 70px;
        padding-right: 20px;
    }
    
    .timeline-item .content {
        padding-left: 30px;
    }
    
    .culture-grid {
        grid-template-columns: 1fr;
    }
    
    .about-features li {
        flex-direction: column;
    }
    
    .about-features i {
        margin-bottom: 15px;
    }
}

/* 联系我们卡片化美化 */
.contact-card-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.contact-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    padding: 30px 40px;
    min-width: 260px;
    max-width: 340px;
    flex: 1 1 260px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.contact-card:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 8px 28px rgba(0,123,255,0.13);
}

.contact-card i {
    font-size: 38px;
    color: #007bff;
    margin-right: 22px;
    min-width: 38px;
    text-align: center;
}

.contact-card h3 {
    margin: 0 0 8px 0;
    font-size: 1.15em;
    color: #222;
}

.contact-card p, .contact-card span {
    margin: 0;
    color: #555;
    font-size: 1.08em;
    word-break: break-all;
}

.wechat-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.copy-btn {
    background: #f1f3f6;
    border: none;
    border-radius: 5px;
    padding: 6px 10px;
    cursor: pointer;
    color: #007bff;
    font-size: 1em;
    transition: background 0.2s;
}
.copy-btn:hover {
    background: #e3eaf6;
    color: #0056b3;
}

@media (max-width: 900px) {
    .contact-card-group {
        flex-direction: column;
        align-items: center;
    }
    .contact-card {
        max-width: 95%;
        width: 100%;
        justify-content: flex-start;
    }
} 