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

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
    text-align: left;
}

/* 段落样式 - 首行缩进两格 */
p {
    text-align: justify;
    text-indent: 2em; /* 首行缩进两个字符 */
    margin-bottom: 15px;
}

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

/* 顶部导航 */
header {
    background-color: #333;
    color: #fff;
    padding: 20px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

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

.logo h1 {
    font-size: 24px;
    font-weight: bold;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #ff6b6b;
}

/* 轮播图/横幅 */
.banner {
    background: linear-gradient(135deg, #07c160 0%, #06ae56 50%, #059e4e 100%);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    margin-top: 70px;
    position: relative;
    overflow: hidden;
}

/* 背景层动画 */
.banner-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.banner-bg-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: bgSlide 18s infinite ease-in-out;
}

.layer-1 {
    background: radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
                linear-gradient(135deg, #07c160 0%, #06ae56 100%);
    animation-delay: 0s;
}

.layer-2 {
    background: radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.12) 0%, transparent 50%),
                radial-gradient(circle at 60% 60%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
                linear-gradient(135deg, #06ae56 0%, #059e4e 100%);
    animation-delay: 6s;
}

.layer-3 {
    background: radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
                linear-gradient(135deg, #059e4e 0%, #07c160 100%);
    animation-delay: 12s;
}

@keyframes bgSlide {
    0%, 33.33% { opacity: 1; }
    38.33%, 100% { opacity: 0; }
}

/* 微信图标 */
.wechat-icon-wrapper {
    margin-bottom: 30px;
    animation: float 3s ease-in-out infinite;
}

.wechat-icon {
    font-size: 120px;
    color: #fff;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.4));
    animation: pulse 2s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

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

.banner-content {
    position: relative;
    z-index: 2;
    transform: translateY(0);
    animation: fadeInUp 2s ease-out;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

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

.banner-content h2 {
    font-size: 56px;
    margin-bottom: 25px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    letter-spacing: 2px;
    font-weight: 700;
}

.banner-content p {
    font-size: 24px;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.95;
    animation: fadeInDelay 3s ease-out;
    text-indent: 0;
    text-align: center;
}

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

/* 装饰性元素 */
.banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 40%, rgba(0, 0, 0, 0.1) 100%);
    z-index: 1;
}

/* 主要按钮样式 */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 45px;
    background: #fff;
    color: #07c160;
    border: 2px solid transparent;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    animation: fadeInDelay 4s ease-out;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    background: #f0fff4;
    color: #059e4e;
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
}

.btn-primary:active {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* 通用章节样式 */
section {
    padding: 80px 0;
}

section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 36px;
    color: #333;
    position: relative;
}

section h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: #ff6b6b;
    margin: 15px auto 0;
    border-radius: 2px;
}

/* 关于我们 */
.about {
    background-color: #fff;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 18px;
    line-height: 1.8;
}

.about-content p {
    margin-bottom: 20px;
}

/* 服务项目 */
.services {
    background-color: #f5f5f5;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    margin-top: 40px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.service-item {
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Font Awesome 服务图标样式 */
.service-icon {
    display: block;
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    font-size: 36px;
    color: white;
    background: linear-gradient(135deg, #c41e3a 0%, #8B0000 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(196, 30, 58, 0.3);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

/* 图标悬停效果 */
.service-item:hover .service-icon {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(196, 30, 58, 0.4);
    background: linear-gradient(135deg, #8B0000 0%, #c41e3a 100%);
}

.service-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 30px rgba(196, 30, 58, 0.2);
}

.service-item h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
    position: relative;
    z-index: 1;
}

.service-item p {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
    text-indent: 0; /* 取消首行缩进 */
    text-align: center;
    position: relative;
    z-index: 1;
}

/* 添加底部装饰条 */
.service-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #c41e3a 0%, #8B0000 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-item:hover::after {
    transform: scaleX(1);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .service-item {
        padding: 20px;
    }
}

/* 联系我们 */
.contact {
    background-color: #f9f9f9;
    padding: 60px 0;
}

.contact h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #333;
}

.contact-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.contact-info {
    flex: 1;
    min-width: 300px;
    text-align: center;
    line-height: 2.5;
    font-size: 18px;
}

.contact-info p {
    margin-bottom: 15px;
}

.contact-info strong {
    color: #ff6b6b;
}

.wechat-qrcode {
    text-align: center;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.wechat-qrcode:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.qrcode-img {
    width: 180px;
    height: auto;
    margin-bottom: 10px;
    border: 1px solid #eee;
}

.qrcode-text {
    margin: 0;
    font-weight: bold;
    color: #333;
    text-indent: 0;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .contact-content {
        flex-direction: column;
    }
    
    .qrcode-img {
        width: 150px;
    }
}

/* 页脚 */
footer {
    background-color: #333;
    color: #fff;
    padding: 30px 0;
    text-align: center;
}

.footer-content p {
    text-indent: 0; /* 取消首行缩进 */
    text-align: center; /* 保持居中对齐 */
    margin-bottom: 10px;
    font-size: 16px;
}

.footer-content a {
    color: #fff;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.footer-content a:hover {
    color: #ff6b6b;
}

/* 响应式设计 */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        padding: 10px 0;
    }

    .logo h1 {
        margin-bottom: 15px;
        text-align: center;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    nav ul li {
        margin: 0 15px;
    }

    .banner {
        margin-top: 120px;
        height: 60vh;
    }

    .wechat-icon {
        font-size: 80px;
    }

    .banner-content h2 {
        font-size: 36px;
    }

    .banner-content p {
        font-size: 18px;
    }

    section h2 {
        font-size: 28px;
    }

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

    .about-content, .contact-info {
        font-size: 16px;
    }
}

/* 二维码弹窗样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    position: relative;
    background-color: #fff;
    margin: 5% auto;
    padding: 40px 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 380px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
}

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

.close-btn {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 32px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: #333;
}

.modal-qrcode {
    width: 260px;
    height: 260px;
    margin-bottom: 20px;
    border: 2px solid #eee;
    border-radius: 8px;
}

.modal-wechatid {
    font-size: 18px;
    color: #333;
    margin-bottom: 15px;
    text-indent: 0;
}

.modal-wechatid span {
    font-weight: bold;
    color: #c41e3a;
    font-size: 20px;
}

.copy-btn {
    background: linear-gradient(135deg, #c41e3a 0%, #8B0000 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.copy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(196, 30, 58, 0.4);
}

.copy-hint {
    color: #27ae60;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s ease;
    text-indent: 0;
    margin: 0;
}

.copy-hint.show {
    opacity: 1;
}

@media (max-width: 480px) {
    .banner-content h2 {
        font-size: 28px;
    }

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

    section {
        padding: 60px 0;
    }

    section h2 {
        font-size: 24px;
    }

    .service-item {
        padding: 20px;
    }

    .modal-content {
        padding: 30px 20px;
    }

    .modal-qrcode {
        width: 220px;
        height: 220px;
    }
}