/* 
 * popularthreadz.com - 首页专用样式
 * 非对称居中聚焦布局
 */

/* Hero Section - 全屏 Banner */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-light-green) 0%, var(--color-white) 50%, var(--color-light-blue) 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 150%;
    background: radial-gradient(circle, rgba(129, 199, 132, 0.1) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 60%;
    height: 100%;
    background: radial-gradient(circle, rgba(100, 181, 246, 0.1) 0%, transparent 70%);
    animation: float 25s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(30px, -30px) rotate(5deg);
    }
    66% {
        transform: translate(-20px, 20px) rotate(-5deg);
    }
}

.hero-container {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    text-align: left;
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: var(--color-white);
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--color-accent-green);
    font-weight: 600;
    margin-bottom: 25px;
    box-shadow: var(--shadow-soft);
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.2;
    color: var(--color-text-dark);
    margin-bottom: 25px;
}

.hero-title span {
    background: linear-gradient(135deg, var(--color-accent-green), var(--color-accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--color-text-gray);
    margin-bottom: 35px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image {
    width: 100%;
    max-width: 550px;
    height: auto;
    border-radius: 20px;
    box-shadow: var(--shadow-hover);
    animation: heroImageFloat 6s ease-in-out infinite;
}

@keyframes heroImageFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

.hero-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
}

.shape-1 {
    width: 200px;
    height: 200px;
    background: var(--color-accent-green);
    top: 10%;
    right: 10%;
    animation: pulse 4s ease-in-out infinite;
}

.shape-2 {
    width: 150px;
    height: 150px;
    background: var(--color-accent-blue);
    bottom: 20%;
    left: 5%;
    animation: pulse 5s ease-in-out infinite 1s;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.2;
    }
}

/* Features Section - 核心优势 */
.features {
    background: var(--color-white);
    position: relative;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.feature-card {
    background: var(--color-white);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
    border: 1px solid var(--color-border);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--color-accent-green);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, var(--color-light-green), var(--color-light-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.feature-title {
    font-size: 1.4rem;
    color: var(--color-text-dark);
    margin-bottom: 15px;
}

.feature-text {
    color: var(--color-text-gray);
    line-height: 1.7;
}

/* Services Section - 服务板块 */
.services {
    background: linear-gradient(180deg, var(--color-light-green) 0%, var(--color-white) 100%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.service-card {
    background: var(--color-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.service-card.reverse {
    direction: rtl;
}

.service-card.reverse .service-content {
    direction: ltr;
}

.service-image {
    width: 100%;
    height: 100%;
    min-height: 300px;
    object-fit: cover;
}

.service-content {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.service-tag {
    display: inline-block;
    padding: 6px 15px;
    background: var(--color-light-green);
    color: var(--color-accent-green);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
    align-self: flex-start;
}

.service-title {
    font-size: 1.6rem;
    color: var(--color-text-dark);
    margin-bottom: 15px;
}

.service-text {
    color: var(--color-text-gray);
    line-height: 1.8;
    margin-bottom: 25px;
}

/* News Section - 资讯列表 */
.news {
    background: var(--color-white);
}

.news-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.news-tab {
    padding: 10px 25px;
    background: var(--color-white);
    border: 2px solid var(--color-border);
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text-gray);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.news-tab.active,
.news-tab:hover {
    background: linear-gradient(135deg, var(--color-accent-green), var(--color-accent-blue));
    border-color: transparent;
    color: var(--color-white);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.news-card {
    background: var(--color-white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.news-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.news-content {
    padding: 20px;
}

.news-title {
    font-size: 1.1rem;
    color: var(--color-text-dark);
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-excerpt {
    color: var(--color-text-gray);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--color-text-gray);
}

.news-date {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* CTA Section */
.cta {
    background: linear-gradient(135deg, var(--color-accent-green) 0%, var(--color-accent-blue) 100%);
    padding: 100px 0;
    text-align: center;
}

.cta-title {
    font-size: 2.5rem;
    color: var(--color-white);
    margin-bottom: 20px;
}

.cta-text {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto 40px;
}

.cta .btn {
    background: var(--color-white);
    color: var(--color-accent-green);
}

.cta .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .service-card,
    .service-card.reverse {
        grid-template-columns: 1fr;
        direction: ltr;
    }
    
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 600px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
}
