/* 首页专用样式 */

/* 幻灯片容器 */
.hero-slider {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

/* 幻灯片 */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 幻灯片1背景 */
.slide:nth-child(1) {
    background-image: url('/images/slide1.jpg');
    background-color: #667eea; /* 图片加载失败时的备用颜色 */
}

/* 幻灯片2背景 */
.slide:nth-child(2) {
    background-image: url('/images/slide2.jpg');
    background-color: #764ba2;
}

/* 幻灯片3背景 */
.slide:nth-child(3) {
    background-image: url('/images/slide3.jpg');
    background-color: #667eea;
}

.slide.active {
    opacity: 1;
}

/* 幻灯片遮罩层（渐变效果） */
.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.7) 0%, rgba(118, 75, 162, 0.7) 100%);
}

/* 幻灯片内容 */
.slide-content {
    position: relative;
    z-index: 2;
    max-width: 75vw;
    width: 75%;
    text-align: center;
    color: white;
    animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-content h1 {
    font-size: 56px;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
}

.slide-content p {
    font-size: 22px;
    margin-bottom: 40px;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.2);
}

.slide-content .cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: white;
    color: #667eea;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    font-size: 18px;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.slide-content .cta-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* 左右箭头 */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.3);
    color: white;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 32px;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
}

.slider-arrow:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: translateY(-50%) scale(1.1);
}

.slider-arrow.prev {
    left: 30px;
}

.slider-arrow.next {
    right: 30px;
}

/* 底部圆点指示器 */
.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 10;
}

.dot {
    width: 14px;
    height: 14px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.dot.active {
    background: white;
    border-color: #667eea;
    transform: scale(1.3);
}

/* 公司简介区域（GEO 优化） */
.company-intro {
    background: white;
    padding: 60px 20px;
    text-align: center;
}

.company-intro .container {
    max-width: 75vw;
    width: 75%;
    margin: 0 auto;
}

.company-intro h1 {
    font-size: 36px;
    font-weight: bold;
    color: #333;
    margin-bottom: 30px;
    line-height: 1.4;
}

.company-intro p {
    font-size: 16px;
    color: #666;
    line-height: 1.8;
    margin: 0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* 公司介绍引用模块 */
.intro-quote-section {
    background: white;
    padding: 40px 15px;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease-in-out;
}

.intro-quote-section.fade-in-visible {
    opacity: 1;
    transform: translateY(0);
}

.quote-container {
    max-width: 75vw;
    width: 75%;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    gap: 30px;
    position: relative;
}

.quote-mark {
    font-size: 80px;
    font-weight: bold;
    color: #667eea;
    line-height: 1;
    flex-shrink: 0;
    opacity: 0.3;
}

.quote-left {
    opacity: 0.3;
}

.quote-right {
    opacity: 0.3;
    margin-left: auto;
    margin-top: auto;
    align-self: flex-end;
}

.quote-content {
    flex: 1;
    padding: 20px 0;
}

.quote-content h1 {
    font-size: 36px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.4;
}

.quote-content h1 .company-name {
    display: inline;
}

.quote-content h1 .company-slogan {
    display: inline;
}

.quote-content p {
    font-size: 16px;
    color: #666;
    line-height: 1.8;
    margin: 0;
}

.quote-bottom-line {
    width: 300px;
    height: 2px;
    background: #333;
    margin-top: 30px;
}

/* 我们的服务板块 */
.services-about-section {
    background: #f8f9fa;
    padding: 80px 0;
    width: 100%;
}

.services-about-container {
    max-width: 75vw;
    width: 75%;
    margin: 0 auto;
}

.services-about-title {
    text-align: center;
    font-size: 36px;
    font-weight: bold;
    color: #333;
    margin-bottom: 50px;
}

.services-about-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.service-about-card {
    background: white;
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.service-about-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 82, 204, 0.15);
}

.service-about-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-about-card h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 20px;
    font-weight: 600;
}

.service-about-list {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
}

.service-about-list li {
    font-size: 14px;
    color: #666;
    padding: 8px 0;
    line-height: 1.6;
}

.service-about-button {
    display: inline-block;
    padding: 10px 30px;
    background: linear-gradient(135deg, #0052cc 0%, #0066ff 100%);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}

.service-about-button:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 82, 204, 0.3);
}

/* 我们的优势板块 */
.advantages-section {
    background: linear-gradient(135deg, #fff5f5 0%, #fff 50%, #f5f7ff 100%);
    padding: 80px 0;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.advantages-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 107, 107, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.advantages-container {
    max-width: 75vw;
    width: 75%;
    margin: 0 auto;
    display: flex;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.advantages-left {
    flex: 1;
}

.advantage-cards {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr;
    gap: 20px;
    align-items: center;
}

.advantage-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s;
}

.advantage-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.card-middle-group {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.card-header {
    margin-bottom: 15px;
}

.card-icon {
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 2px;
}

.card-team .card-icon {
    color: #ffb347;
}

.card-profession .card-icon {
    color: #87ceeb;
}

.card-service .card-icon {
    color: #87ceeb;
}

.card-price .card-icon {
    color: #9370db;
}

.advantage-card h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
    font-weight: 600;
}

.advantage-card p {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.card-team {
    border-bottom: 3px solid #ffb347;
    margin-top: 30px;
}

.card-profession {
    border-bottom: 3px solid #87ceeb;
}

.card-service {
    border-bottom: 3px solid #87ceeb;
}

.card-price {
    border-bottom: 3px solid #9370db;
    margin-top: 30px;
}

.advantages-right {
    flex: 1;
    padding-left: 20px;
}

.advantages-right h2 {
    font-size: 36px;
    color: #333;
    margin-bottom: 15px;
    font-weight: bold;
}

.advantages-subtitle {
    text-align: left;
    font-size: 18px;
    color: #666;
    margin-bottom: 30px;
    font-weight: 500;
}

.advantages-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.advantage-item h4 {
    font-size: 16px;
    color: #333;
    margin-bottom: 10px;
    font-weight: 600;
}

.advantage-item p {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
    margin: 0;
}

/* 首页文章模块样式 */
.articles-section {
    background: #f8f9fa;
    padding: 80px 0;
    width: 100%;
}

.articles-container {
    max-width: 75vw;
    width: 75%;
    margin: 0 auto;
}

.articles-section .section-title {
    text-align: center;
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
}

.articles-section .section-subtitle {
    text-align: center;
    font-size: 16px;
    color: #666;
    margin-bottom: 50px;
    line-height: 1.6;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.articles-section .articles-grid {
    max-width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.articles-section .article-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.articles-section .article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.articles-section .article-content {
    padding: 25px;
}

.articles-section .article-title {
    font-size: 22px;
    margin-bottom: 15px;
    color: #333;
    line-height: 1.4;
}

.articles-section .article-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.articles-section .article-title a:hover {
    color: #667eea;
}

.articles-section .article-summary {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.8;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    height: calc(1.8em * 2);
}

.articles-section .article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #999;
    font-size: 14px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.articles-section .read-more {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
}

.articles-section .read-more:hover {
    text-decoration: underline;
    opacity: 0.8;
}

/* 查看更多按钮容器 */
.view-more-container {
    text-align: center;
    margin-top: 50px;
}

.view-more-button {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.view-more-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero-slider {
        height: 400px;
    }

    .intro-quote-section {
        padding: 40px 15px;
    }

    /* 我们的服务板块 - 移动端 */
    .services-about-section {
        padding: 60px 0;
    }

    .services-about-container {
        width: 95%;
        max-width: 95%;
    }

    .services-about-title {
        font-size: 28px;
        margin-bottom: 40px;
    }

    .services-about-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .service-about-card {
        padding: 30px 20px;
    }

    .service-about-icon {
        width: 60px;
        height: 60px;
    }

    .service-about-icon svg {
        width: 60px;
        height: 60px;
    }

    .service-about-card h3 {
        font-size: 18px;
    }

    .service-about-list li {
        font-size: 13px;
    }

    .quote-container {
        width: 95%;
        max-width: 95%;
        flex-direction: column;
        gap: 0;
    }

    .quote-content h1 {
        font-size: 24px;
        margin-bottom: 15px;
    }

    .quote-content h1 .company-name {
        display: block;
    }

    .quote-content h1 .company-slogan {
        display: block;
        margin-top: 5px;
        font-weight: normal;
        color: #666;
    }

    /* 移动端引号样式 */
    .quote-mark {
        font-size: 40px;
        margin: 0;
    }

    .quote-left {
        align-self: flex-start;
        margin-bottom: -10px;
    }

    .quote-right {
        align-self: flex-end;
        margin-top: -10px;
        margin-left: 0;
    }

    .quote-content {
        padding: 10px 0;
    }

    /* 我们的优势板块 - 移动端 */
    .advantages-section {
        padding: 60px 0;
    }

    .advantages-container {
        width: 95%;
        max-width: 95%;
        flex-direction: column;
        gap: 40px;
    }

    .advantages-left {
        width: 100%;
        order: 2;
    }

    .advantages-right {
        width: 100%;
        padding-left: 0;
        order: 1;
    }

    .advantages-right h2 {
        font-size: 28px;
        text-align: center;
    }

    .advantages-subtitle {
        text-align: center;
        font-size: 14px;
        margin-bottom: 30px;
    }

    .advantage-cards {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .advantage-card {
        padding: 25px 20px;
    }

    .advantages-list {
        display: none;
    }

    .card-team {
        margin-top: 0;
    }

    .card-price {
        margin-top: 0;
    }

    .advantage-card h3 {
        font-size: 16px;
    }

    .advantage-card p {
        font-size: 12px;
    }

    .advantages-list {
        gap: 20px;
    }

    .advantage-item h4 {
        font-size: 15px;
    }

    .advantage-item p {
        font-size: 13px;
    }

    .slide-content {
        width: 95%;
        padding: 0 15px;
    }

    .slide-content h1 {
        font-size: 28px;
    }

    .slide-content p {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .slide-content .cta-button {
        padding: 5px 30px;
        font-size: 16px;
    }

    .slider-arrow {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }

    .slider-arrow.prev {
        left: 10px;
    }

    .slider-arrow.next {
        right: 10px;
    }

    .dot {
        width: 10px;
        height: 10px;
    }

    /* 首页文章模块响应式 */
    .articles-section {
        padding: 60px 0;
    }

    .articles-container {
        width: 95%;
        max-width: 95%;
    }

    .articles-section .section-title {
        font-size: 28px;
    }

    .articles-section .section-subtitle {
        font-size: 14px;
        margin-bottom: 30px;
    }

    .articles-section .articles-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .articles-section .article-card {
        padding: 0;
    }

    .articles-section .article-content {
        padding: 20px;
    }

    .articles-section .article-title {
        font-size: 18px;
    }

    .view-more-container {
        margin-top: 30px;
    }

    .view-more-button {
        padding: 12px 30px;
        font-size: 14px;
    }
}
