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

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

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

/* 导航栏样式 */
.navbar {
    background: transparent;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    height: 100px;
    gap: 50px;
}

.nav-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo-img {
    height: 70px;
    width: auto;
    max-width: 300px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    gap: 40px;
    flex: 1;
    justify-content: center;
}

.nav-link {
    text-decoration: none;
    color: white;
    font-weight: 600;
    font-size: 18px;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
    padding: 15px 0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.navbar.scrolled .nav-link {
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.nav-link:hover {
    color: #3498db;
}

.nav-link::after {
    content: "";
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #3498db;
    transition: width 0.3s ease;
}

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

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

.bar {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: 0.3s;
}

.navbar.scrolled .bar {
    background: white;
}

/* 主页横幅样式 - 连续滑动版本 */
.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    margin-bottom: 0; /* 移除底部间距 */
}

.hero:active {
    cursor: grabbing;
}

/* 幻灯片容器 - 连续滑动 */
.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 400%; /* 四张图片的宽度：1+2+3+1 */
    height: 100%;
    z-index: 1;
    display: flex;
    transition: transform 0.3s ease-out;
    will-change: transform;
}

.slide {
    position: relative;
    width: 25%; /* 每张图片占25%宽度 */
    height: 100%;
    flex-shrink: 0;
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* 幻灯片控制按钮 */
.slide-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 30px;
    z-index: 3;
    pointer-events: none;
}

.slide-btn {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: all;
    backdrop-filter: blur(10px);
}

.slide-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.1);
}

.slide-btn:active {
    transform: scale(0.95);
}

.prev-btn {
    left: 30px;
}

.next-btn {
    right: 30px;
}

/* 幻灯片指示器 */
.slide-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: #fff;
    transform: scale(1.2);
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* 内容层 */
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 0 20px;
    pointer-events: none;
    transform: translateY(33vh); /* 向下移动约1/3，剩余2/3空间 */
}

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

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

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

.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: #3498db;
    color: white;
}

.btn-primary:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #3498db;
}

.btn-outline {
    background: transparent;
    color: #3498db;
    border: 2px solid #3498db;
}

.btn-outline:hover {
    background: #3498db;
    color: white;
}

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

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 15px;
}

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

/* 关于我们样式 */
.about {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('images/about.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 100px 0;
    margin-top: 0;
    position: relative;
    text-align: center;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.about .container {
    position: relative;
    z-index: 2;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-header h2 {
    font-size: 3rem;
    color: #fff;
    margin-bottom: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    font-weight: 700;
    letter-spacing: 2px;
}

.about-content {
    display: block;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.about-text {
    text-align: left;
}

.about-text h3 {
    font-size: 2.2rem;
    color: #fff;
    margin-bottom: 15px; /* 减少与副标题的间距 */
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    line-height: 1.4;
    letter-spacing: 1px;
}

.company-subtitle {
    font-size: 1.3rem; /* 与正文字体大小一致 */
    color: #fff;
    margin-bottom: 30px; /* 与正文段落间距一致 */
    line-height: 2; /* 与正文行高一致 */
    text-align: justify;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    font-weight: 400; /* 与正文字重一致 */
    letter-spacing: 0.5px; /* 与正文字母间距一致 */
    font-style: normal; /* 取消斜体 */
}

.about-text p {
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 30px;
    line-height: 2;
    text-align: justify;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    font-weight: 400;
    letter-spacing: 0.5px;
}

.contact-info-section {
    margin-top: 40px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    backdrop-filter: blur(10px);
}

.contact-info-section h4 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 20px;
    text-align: center;
}

.contact-phone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-size: 1.2rem;
    color: #3498db;
    font-weight: 600;
}

.contact-phone i {
    font-size: 1.5rem;
    color: #3498db;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* 荣誉资质样式 */
.honors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

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

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

.honor-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #f39c12, #e67e22);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.honor-icon i {
    font-size: 2rem;
    color: white;
}

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

.honor-card p {
    color: #7f8c8d;
    line-height: 1.6;
}

/* 联系我们样式 */
.contact {
    background: #f8f9fa;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.contact-item i {
    width: 50px;
    height: 50px;
    background: #3498db;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    font-size: 1.2rem;
}

.contact-item h4 {
    color: #2c3e50;
    margin-bottom: 5px;
}

.contact-item p {
    color: #7f8c8d;
}

.contact-form {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #ecf0f1;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
}

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

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

.footer-section h3,
.footer-section h4 {
    margin-bottom: 20px;
}

.footer-section p {
    color: #bdc3c7;
    margin-bottom: 10px;
}

.footer-logo {
    height: 50px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    margin-bottom: 15px;
    filter: brightness(0) invert(1);
}

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

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

.footer-section ul li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #3498db;
}

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

.social-links a {
    width: 40px;
    height: 40px;
    background: #34495e;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background 0.3s ease;
    position: relative;
}

.social-links a:hover {
    background: #3498db;
}

/* 微信二维码样式 */
.wechat-link {
    position: relative;
}

.qr-code {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    min-width: 200px;
    text-align: center;
}

.qr-code::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top-color: white;
}

.qr-code img {
    width: 150px;
    height: 150px;
    display: block;
    margin: 0 auto 10px;
    border-radius: 5px;
}

.qr-code p {
    color: #333;
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0;
}

.wechat-link:hover .qr-code {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-10px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #34495e;
    color: #bdc3c7;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.9rem;
}

.icp-info a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.icp-info a:hover {
    color: #3498db;
}

/* 服务承诺区块样式 */
.service-commitment {
    background: transparent;
    padding: 0.05cm 0; /* 修改为0.05cm */
    position: relative;
    margin-top: 0;
    margin-bottom: 0;
}

.service-timeline {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    padding: 60px 80px; /* 增加内边距，让内容更宽松 */
    border-radius: 15px;
    box-shadow: none;
    max-width: 1000px; /* 增加最大宽度 */
    margin: 0 auto;
    gap: 40px; /* 增加项目之间的间距 */
}

.timeline-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    min-width: 180px; /* 增加最小宽度 */
    padding: 20px 10px; /* 增加内边距 */
}

.timeline-time {
    font-size: 2.5rem;
    font-weight: bold;
    color: #ff6b35;
    margin-bottom: 15px; /* 增加与描述文字的间距 */
    line-height: 1;
    min-height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline-desc {
    font-size: 1rem;
    color: #666;
    font-weight: 500;
    line-height: 1.2;
}

.timeline-separator {
    width: 2px;
    height: 60px; /* 增加分隔线高度 */
    background: #ddd;
    margin: 0 20px; /* 调整分隔线间距 */
    flex-shrink: 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-container {
        justify-content: space-between;
        gap: 20px;
        height: 80px;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.05);
        padding: 20px 0;
        justify-content: flex-start;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-link {
        font-size: 16px;
        padding: 12px 0;
        color: white;
        text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    }

    .logo-img {
        height: 50px;
    }

    .hero {
        margin-top: 0;
    }

    .slide-controls {
        padding: 0 15px;
    }

    .slide-btn {
        width: 50px;
        height: 50px;
        font-size: 16px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

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

    .about {
        background-attachment: scroll;
        padding: 80px 0;
    }
    
    .section-header h2 {
        font-size: 2.5rem;
    }
    
    .about-text h3 {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }
    
    .company-subtitle {
        font-size: 1.1rem; /* 与移动端正文字体大小一致 */
        margin-bottom: 25px; /* 与移动端正文段落间距一致 */
    }
    
    .about-text p {
        font-size: 1.1rem;
        line-height: 1.8;
        margin-bottom: 25px;
    }
    
    .about-content {
        max-width: 100%;
        padding: 0 20px;
    }
    
    .contact-info-section {
        margin-top: 30px;
        padding: 20px;
    }
    
    .contact-phone {
        flex-direction: column;
        gap: 10px;
    }

    .about-stats {
        justify-content: center;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

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

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

    .footer-logo {
        height: 40px;
    }

    .service-commitment {
        padding: 0.05cm 0;
    }
    
    .service-timeline {
        padding: 40px 30px;
        flex-wrap: wrap;
        gap: 30px;
    }
    
    .timeline-item {
        min-width: 140px;
        flex: 1 1 calc(50% - 15px);
        padding: 15px 5px;
    }
    
    .timeline-time {
        font-size: 2rem;
        margin-bottom: 10px;
    }
    
    .timeline-desc {
        font-size: 0.9rem;
    }
    
    .timeline-separator {
        display: none;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
    }

    .qr-code {
        left: 0;
        transform: translateX(0);
        min-width: 180px;
    }
    
    .qr-code img {
        width: 120px;
        height: 120px;
    }
    
    .wechat-link:hover .qr-code {
        transform: translateY(-10px);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .nav-container {
        padding: 0 15px;
        height: 70px;
    }

    .nav-link {
        font-size: 15px;
        padding: 10px 0;
    }

    .logo-img {
        height: 45px;
    }

    .hero {
        margin-top: 0;
    }

    .nav-menu {
        top: 70px;
    }

    .slide-controls {
        padding: 0 10px;
    }

    .slide-btn {
        width: 45px;
        height: 45px;
        font-size: 14px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .about-stats {
        flex-direction: column;
        gap: 20px;
    }

    .btn {
        width: 100%;
        max-width: 200px;
    }

    .footer-logo {
        height: 35px;
    }

    .service-timeline {
        padding: 30px 20px;
        flex-direction: column;
        gap: 20px;
    }
    
    .timeline-item {
        flex: none;
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        padding: 20px 0;
        border-bottom: 1px solid #eee;
        min-width: auto;
    }
    
    .timeline-item:last-child {
        border-bottom: none;
    }
    
    .timeline-time {
        font-size: 1.5rem;
        margin-bottom: 0;
    }
    
    .timeline-desc {
        font-size: 0.9rem;
    }

    .company-subtitle {
        font-size: 1rem; /* 与小屏幕正文字体大小一致 */
        margin-bottom: 20px; /* 与小屏幕正文段落间距一致 */
    }

    .footer-bottom {
        font-size: 0.8rem;
    }

    .qr-code {
        min-width: 160px;
        padding: 10px;
    }
    
    .qr-code img {
        width: 100px;
        height: 100px;
    }
}

/* 微信小程序二维码样式 */
.miniprogram-link {
    position: relative;
}

.miniprogram-link .qr-code {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    min-width: 200px;
    text-align: center;
}

.miniprogram-link .qr-code::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top-color: white;
}

.miniprogram-link .qr-code img {
    width: 150px;
    height: 150px;
    display: block;
    margin: 0 auto 10px;
    border-radius: 5px;
}

.miniprogram-link .qr-code p {
    color: #333;
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0;
}

.miniprogram-link:hover .qr-code {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-10px);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .miniprogram-link .qr-code {
        left: 0;
        transform: translateX(0);
        min-width: 180px;
    }
    
    .miniprogram-link .qr-code img {
        width: 120px;
        height: 120px;
    }
    
    .miniprogram-link:hover .qr-code {
        transform: translateY(-10px);
    }
}

@media (max-width: 480px) {
    .miniprogram-link .qr-code {
        min-width: 160px;
        padding: 10px;
    }
    
    .miniprogram-link .qr-code img {
        width: 100px;
        height: 100px;
    }
}

/* QQ二维码样式 */
.qq-link {
    position: relative;
}

.qq-link .qr-code {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    min-width: 200px;
    text-align: center;
}

.qq-link .qr-code::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top-color: white;
}

.qq-link .qr-code img {
    width: 150px;
    height: 150px;
    display: block;
    margin: 0 auto 10px;
    border-radius: 5px;
}

.qq-link .qr-code p {
    color: #333;
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0;
}

.qq-link:hover .qr-code {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-10px);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .qq-link .qr-code {
        left: 0;
        transform: translateX(0);
        min-width: 180px;
    }
    
    .qq-link .qr-code img {
        width: 120px;
        height: 120px;
    }
    
    .qq-link:hover .qr-code {
        transform: translateY(-10px);
    }
}

@media (max-width: 480px) {
    .qq-link .qr-code {
        min-width: 160px;
        padding: 10px;
    }
    
    .qq-link .qr-code img {
        width: 100px;
        height: 100px;
    }
}
