/* 首页 Hero 区域样式 */

/* 确保主页模板的 main 标签不受 container 限制 */
body.page-template-page-home .site-main,
body.page-template-page-home .site-main.container {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    position: relative;
}

body.page-template-page-home .site-content {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    position: relative;
}

/* 确保body在主页模板也是100%宽度 */
body.page-template-page-home {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.hero-section {
    position: relative;
    min-height: 80vh;
    background-image: url('../images/bg1.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 80px 0;
    display: flex;
    align-items: center;
    overflow: hidden;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    left: 0;
    right: 0;
    box-sizing: border-box;
}

/* 确保 hero-section 不受父容器限制 */
.site-content .hero-section,
.site-main .hero-section {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
}

.hero-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 60px;
    max-width: 1400px;
    margin: 0 auto;
}

/* 左侧内容区 */
.hero-left {
    flex: 1;
    max-width: 600px;
    color: #fff;
    z-index: 2;
}

.hero-title {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 40px;
    line-height: 1.2;
    color: #fff;
}

.hero-features {
    list-style: none;
    margin-bottom: 40px;
    padding: 0;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    font-size: 18px;
    color: #fff;
}

.check-icon {
    width: 24px;
    height: 24px;
    margin-right: 15px;
    flex-shrink: 0;
}

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

.btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-download {
    background-color: #ffa326;
    color: #fff;
}

.btn-download:hover {
    background-color: #e8921f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 163, 38, 0.4);
}

.btn-subscribe {
    background-color: #2196f3;
    color: #fff;
}

.btn-subscribe:hover {
    background-color: #1976d2;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.4);
}

/* 右侧图片区 */
.hero-right {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-image {
    max-width: 100%;
    height: auto;
    display: block;
    position: relative;
    z-index: 1;
}

/* 首页内容区 */
.page-content {
    padding: 60px 0;
    background-color: #fff;
}

.section-title {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 40px;
    text-align: center;
    color: #333;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-left {
        max-width: 100%;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-right {
        margin-top: 40px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: auto;
        padding: 60px 0;
    }
    
    .hero-title {
        font-size: 28px;
        margin-bottom: 30px;
    }
    
    .feature-item {
        font-size: 16px;
        margin-bottom: 15px;
    }
    
    .check-icon {
        width: 20px;
        height: 20px;
        margin-right: 12px;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
    
    .hero-image {
        max-width: 80%;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 24px;
    }
    
    .feature-item {
        font-size: 14px;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 14px;
    }
}

/* 为什么要选择QuickQ 区块 */
.why-choose-section {
    position: relative;
    padding: 80px 0;
    background-image: url('../images/bg5.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    left: 0;
    right: 0;
    box-sizing: border-box;
}

/* 确保 why-choose-section 不受父容器限制 */
.site-content .why-choose-section,
.site-main .why-choose-section {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
}

.why-choose-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.why-choose-title {
    font-size: 36px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 60px;
    color: #333;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.feature-card {
    background-color: #fff;
    border-radius: 12px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.feature-icon img {
    max-width: 100%;
    height: auto;
    display: block;
}

.feature-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
    text-align: center;
}

.feature-description {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
    text-align: center;
    margin: 0;
}

/* 咨询客服浮动按钮 */
.floating-service-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
}

.service-btn-link {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #ffa326;
    color: #fff;
    padding: 12px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(255, 163, 38, 0.4);
    transition: all 0.3s ease;
}

.service-btn-link:hover {
    background-color: #e8921f;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 163, 38, 0.5);
    color: #fff;
}

.service-btn-icon {
    font-size: 20px;
}

.service-btn-text {
    font-size: 16px;
}

/* 响应式设计 - 为什么要选择QuickQ 区块 */
@media (max-width: 768px) {
    .why-choose-section {
        padding: 60px 0;
    }
    
    .why-choose-title {
        font-size: 28px;
        margin-bottom: 40px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 20px;
    }
    
    .feature-card {
        padding: 30px 20px;
    }
    
    .feature-title {
        font-size: 20px;
    }
    
    .feature-description {
        font-size: 14px;
    }
    
    .floating-service-btn {
        bottom: 20px;
        right: 20px;
    }
    
    .service-btn-link {
        padding: 10px 16px;
        font-size: 14px;
    }
    
    .service-btn-icon {
        font-size: 18px;
    }
    
    .service-btn-text {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .why-choose-title {
        font-size: 24px;
    }
    
    .feature-card {
        padding: 25px 15px;
    }
    
    .feature-title {
        font-size: 18px;
    }
    
    .feature-description {
        font-size: 13px;
    }
}

/* 遍布全球的高速服务器 区块 */
.map-section {
    position: relative;
    padding: 80px 0;
    background-color: #fff;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    left: 0;
    right: 0;
    box-sizing: border-box;
}

/* 确保 map-section 不受父容器限制 */
.site-content .map-section,
.site-main .map-section {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
}

.map-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.map-title {
    font-size: 36px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 60px;
    color: #333;
}

.map-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.map-image {
    width: 120%;
    height: auto;
    display: block;
    position: relative;
    z-index: 1;
    margin: 0 auto;
    max-width: none;
    transform: scale(1.2);
    transform-origin: center center;
}

.map-nodes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.map-node {
    position: absolute;
    width: 8px;
    height: 8px;
    background-color: #2196f3;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
    box-shadow: 0 0 0 0 rgba(33, 150, 243, 0.4);
}

.map-node.active {
    width: 12px;
    height: 12px;
    background-color: #ffa326;
    box-shadow: 0 0 0 4px rgba(255, 163, 38, 0.3),
                0 0 0 8px rgba(255, 163, 38, 0.2),
                0 0 0 12px rgba(255, 163, 38, 0.1);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 4px rgba(255, 163, 38, 0.3),
                    0 0 0 8px rgba(255, 163, 38, 0.2),
                    0 0 0 12px rgba(255, 163, 38, 0.1);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(255, 163, 38, 0.4),
                    0 0 0 12px rgba(255, 163, 38, 0.3),
                    0 0 0 18px rgba(255, 163, 38, 0.2);
    }
    100% {
        box-shadow: 0 0 0 4px rgba(255, 163, 38, 0.3),
                    0 0 0 8px rgba(255, 163, 38, 0.2),
                    0 0 0 12px rgba(255, 163, 38, 0.1);
    }
}

/* 响应式设计 - 地图区块 */
@media (max-width: 768px) {
    .map-section {
        padding: 60px 0;
    }
    
    .map-title {
        font-size: 28px;
        margin-bottom: 40px;
    }
}

@media (max-width: 480px) {
    .map-title {
        font-size: 24px;
    }
    
    .map-node {
        width: 6px;
        height: 6px;
    }
    
    .map-node.active {
        width: 10px;
        height: 10px;
    }
}

/* 用户的声音 区块 */
.testimonials-section {
    position: relative;
    padding: 80px 0;
    background-color: #fff;
    overflow: visible;
}

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

.testimonials-title {
    font-size: 36px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 60px;
    color: #333;
}

.testimonials-carousel-wrapper {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 60px;
    box-sizing: border-box;
    overflow: visible;
    min-height: 400px;
}

/* 轮播图容器 - 全宽显示，不受wrapper限制 */
.testimonials-carousel {
    position: relative;
    width: 100vw;
    max-width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    overflow: hidden;
    padding-top: 150px;
    padding-bottom: 0;
    z-index: 3;
    margin-top: -320px;
    box-sizing: border-box;
    /* 使用clip-path限制可见区域为3个卡片（1230px = 3*400 + 2*15） */
    clip-path: polygon(
        calc(50% - 615px) 0%,
        calc(50% + 615px) 0%,
        calc(50% + 615px) 100%,
        calc(50% - 615px) 100%
    );
}


/* 蓝色渐变背景容器 */
.carousel-gradient-bg {
    position: relative;
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    z-index: 1;
}

/* 箭头按钮 - 在背景容器位置内，顶部 */
.carousel-arrow {
    position: absolute;
    top: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    transition: transform 0.3s ease;
    z-index: 10;
}

.carousel-arrow-left {
    left: 120px;
}

.carousel-arrow-right {
    right: 120px;
}

.carousel-arrow:hover {
    transform: scale(1.1);
}

.carousel-arrow img {
    width: 40px;
    height: 40px;
    display: block;
}


.testimonials-track {
    display: flex;
    transition: transform 0.5s ease;
    will-change: transform;
    gap: 15px;
    width: max-content;
    position: relative;
    box-sizing: border-box;
    /* 居中显示，初始位置显示前3个卡片（615px = 1.5个卡片宽度 + 1个gap） */
    margin-left: calc(50vw - 615px);
}

.testimonial-card {
    flex: 0 0 400px;
    box-sizing: border-box;
    position: relative;
    z-index: 4;
    background-color: #fff;
    border-radius: 15px;
    padding: 60px 25px 40px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    text-align: center;
    height: 360px;
    min-height: 360px;
    display: flex;
    flex-direction: column;
    min-width: 0;
    margin-top: -80px;
    transform: translateY(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.testimonial-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin: -40px auto 20px;
    border: 4px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

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

.testimonial-name {
    font-size: 22px;
    font-weight: bold;
    margin-top: 60px;
    margin-bottom: 20px;
    color: #333;
    text-align: left;
    width: 100%;
}

.testimonial-text {
    font-size: 18px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 25px;
    text-align: left;
    flex-grow: 1;
}

.testimonial-stars {
    display: flex;
    gap: 5px;
    justify-content: flex-end;
    width: 100%;
    margin-top: auto;
}

.testimonial-stars img {
    width: 24px;
    height: 24px;
}

/* 响应式设计 - 用户评价区块 */
@media (max-width: 1024px) {
    .testimonial-card {
        flex: 0 0 calc(50% - 10px);
        max-width: none;
    }
}

@media (max-width: 768px) {
    .testimonials-section {
        padding: 60px 0;
    }
    
    .testimonials-title {
        font-size: 28px;
        margin-bottom: 40px;
    }
    
    .testimonials-carousel-wrapper {
        padding: 0 50px;
        overflow: visible;
    }
    
    .carousel-gradient-bg {
        height: 300px;
        margin-bottom: -240px;
    }
    
    .carousel-arrow-left {
        left: -50px;
    }
    
    .carousel-arrow-right {
        right: -50px;
    }
    
    .carousel-arrow img {
        width: 30px;
        height: 30px;
    }
    
    .testimonials-carousel {
        padding-top: 240px;
        padding-bottom: 0;
        margin-top: -240px;
        width: 100vw;
        max-width: 100vw;
        left: 50%;
        right: 50%;
        margin-left: -50vw;
        margin-right: -50vw;
    }
    
    .testimonials-track {
        padding: 0 15px;
    }
    
    .testimonial-card {
        flex: 0 0 calc(50% - 6px);
        height: 360px;
        min-height: 360px;
        margin-top: -60px;
        padding: 50px 25px 35px;
    }
    
    .testimonials-track {
        gap: 12px;
    }
    
    .testimonial-avatar {
        width: 70px;
        height: 70px;
        margin: -35px auto 15px;
    }
    
    .testimonial-name {
        font-size: 18px;
    }
    
    .testimonial-text {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .testimonials-title {
        font-size: 24px;
    }
    
    .testimonials-carousel-wrapper {
        padding: 0 40px;
        overflow: visible;
    }
    
    .carousel-gradient-bg {
        height: 250px;
        margin-bottom: -200px;
    }
    
    .carousel-arrow-left {
        left: -40px;
    }
    
    .carousel-arrow-right {
        right: -40px;
    }
    
    .carousel-arrow img {
        width: 25px;
        height: 25px;
    }
    
    .testimonials-carousel {
        padding-top: 200px;
        padding-bottom: 0;
        margin-top: -200px;
        width: 100vw;
        max-width: 100vw;
        left: 50%;
        right: 50%;
        margin-left: -50vw;
        margin-right: -50vw;
    }
    
    .testimonials-track {
        padding: 0 10px;
    }
    
    .testimonial-card {
        height: 360px;
        min-height: 360px;
        margin-top: -50px;
        padding: 50px 20px 35px;
    }
    
    .testimonial-name {
        font-size: 20px;
        margin-top: 50px;
    }
    
    .testimonial-text {
        font-size: 16px;
    }
    
    .testimonial-stars img {
        width: 20px;
        height: 20px;
    }
    
    .testimonial-card {
        padding: 0 10px;
    }
}

/* 最新文章九宫格区块样式 */
.news-section {
    padding: 4rem 0;
    background: #f9fafb;
}

/* 使用更具体的选择器来覆盖首页的容器样式 */
body.home .news-section .container,
body.page-template-front-page .news-section .container {
    max-width: 1000px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
    box-sizing: border-box;
}

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    gap: 1rem;
    flex-wrap: nowrap;
}

.news-header .section-title {
    flex: 1;
    margin: 0;
    min-width: 0;
    text-align: left;
}

.news-more-link {
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}

.news-more-link:hover {
    color: #1d4ed8;
}

.news-more-link svg {
    margin-left: 0.25rem;
}

.news-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .news-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.news-card {
    background: #fff;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.3s;
    text-decoration: none;
    display: block;
    color: inherit;
}

.news-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.news-image-wrapper {
    aspect-ratio: 16 / 9;
    background: #e5e7eb;
    position: relative;
    overflow: hidden;
}

.news-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-content {
    padding: 1.5rem;
    padding-bottom: 2rem;
    min-height: 10rem;
    display: flex;
    flex-direction: column;
}

.news-meta {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
    flex-shrink: 0;
}

.news-meta-separator {
    margin: 0 0.5rem;
}

.news-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.375rem;
    color: #111827;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
    flex-shrink: 0;
}

.news-excerpt {
    color: #4b5563;
    font-size: 0.875rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.6;
    flex: 1;
}

.no-posts {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2rem;
    color: #6b7280;
}

/* 客服团队区块样式 */
.customer-service-section {
    padding: 4rem 0;
    background: #fff;
}

.customer-service-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.customer-service-text {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.customer-service-button {
    display: inline-block;
    padding: 12px 40px;
    background-color: #fff;
    color: #667eea;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.customer-service-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background-color: #f0f0f0;
}

/* 响应式设计 - 客服团队区块 */
@media (max-width: 768px) {
    .customer-service-container {
        padding: 2rem 1.5rem;
    }
    
    .customer-service-text {
        font-size: 1.25rem;
        margin-bottom: 1.5rem;
    }
    
    .customer-service-button {
        padding: 10px 30px;
        font-size: 0.9rem;
    }
}

