/* HelloWorld 首页专用样式 */

/* ========================================
   SEO 优化
======================================== */
.seo-h1 {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

/* ========================================
   HelloWorld 品牌色
======================================== */
:root {
    --hw-primary: #2563EB;
    --hw-secondary: #F59E0B;
    --hw-accent: #10B981;
    --hw-dark: #1E40AF;
    --hw-gray: #6B7280;
    --hw-light-gray: #F9FAFB;
    --hw-white: #FFFFFF;
}

/* ========================================
   Hero 区域
======================================== */
.hero-section-hw {
    padding: 100px 0 80px;
    background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
    position: relative;
    overflow: hidden;
}

.hero-section-hw::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-container-hw {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content-hw {
    z-index: 1;
}

.hero-title-hw {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--hw-dark);
    margin-bottom: 20px;
}

.hero-subtitle-hw {
    font-size: 18px;
    line-height: 1.6;
    color: var(--hw-gray);
    margin-bottom: 30px;
}

.hero-buttons-hw {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.btn-hw-primary {
    padding: 16px 32px;
    background: var(--hw-primary);
    color: var(--hw-white);
    border-radius: 8px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-hw-primary:hover {
    background: var(--hw-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-hw-secondary {
    padding: 16px 32px;
    background: transparent;
    color: var(--hw-primary);
    border: 2px solid var(--hw-primary);
    border-radius: 8px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-hw-secondary:hover {
    background: var(--hw-primary);
    color: var(--hw-white);
}

.hero-platforms-hw {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 14px;
    color: var(--hw-gray);
}

.platform-icons-hw {
    display: flex;
    gap: 15px;
}

.platform-icons-hw span {
    font-size: 13px;
}

.hero-image-hw {
    position: relative;
    z-index: 1;
}

.hero-mockup-hw {
    background: var(--hw-white);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.mockup-screen-hw {
    background: linear-gradient(135deg, #F3F4F6 0%, #E5E7EB 100%);
    border-radius: 12px;
    padding: 40px;
}

.translation-demo-hw {
    display: flex;
    align-items: center;
    gap: 20px;
}

.demo-input-hw,
.demo-output-hw {
    flex: 1;
    background: var(--hw-white);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.demo-lang-hw {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: var(--hw-primary);
    background: #EFF6FF;
    padding: 4px 12px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.demo-input-hw p,
.demo-output-hw p {
    font-size: 16px;
    color: var(--hw-dark);
    margin: 0;
}

.demo-arrow-hw {
    font-size: 24px;
    color: var(--hw-primary);
    font-weight: 700;
}

/* ========================================
   核心功能区域
======================================== */
.features-section-hw {
    padding: 80px 0;
    background: var(--hw-white);
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title-hw {
    font-size: 40px;
    font-weight: 700;
    text-align: center;
    color: var(--hw-dark);
    margin-bottom: 15px;
}

.section-desc-hw {
    font-size: 18px;
    text-align: center;
    color: var(--hw-gray);
    margin-bottom: 50px;
}

.features-grid-hw {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.feature-card-hw {
    background: var(--hw-white);
    border: 2px solid #E5E7EB;
    border-radius: 16px;
    padding: 40px;
    transition: all 0.3s ease;
}

.feature-card-hw:hover {
    border-color: var(--hw-primary);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.15);
    transform: translateY(-5px);
}

.feature-icon-hw {
    font-size: 48px;
    margin-bottom: 20px;
}

.feature-title-hw {
    font-size: 24px;
    font-weight: 700;
    color: var(--hw-dark);
    margin-bottom: 15px;
}

.feature-desc-hw {
    font-size: 15px;
    line-height: 1.6;
    color: var(--hw-gray);
    margin-bottom: 20px;
}

.feature-list-hw {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list-hw li {
    font-size: 14px;
    color: var(--hw-gray);
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
}

.feature-list-hw li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--hw-accent);
    font-weight: 700;
}

/* ========================================
   产品特色区域
======================================== */
.advantages-section-hw {
    padding: 80px 0;
    background: var(--hw-light-gray);
}

.advantages-list-hw {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 50px;
}

.advantage-item-hw {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.advantage-number-hw {
    font-size: 48px;
    font-weight: 700;
    color: var(--hw-primary);
    opacity: 0.2;
    flex-shrink: 0;
    line-height: 1;
}

.advantage-content-hw h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--hw-dark);
    margin-bottom: 12px;
}

.advantage-content-hw p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--hw-gray);
}

/* ========================================
   下载 CTA 区域
======================================== */
.download-section-hw {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--hw-primary) 0%, var(--hw-dark) 100%);
    color: var(--hw-white);
}

.download-container-hw {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.download-title-hw {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 15px;
}

.download-subtitle-hw {
    font-size: 18px;
    margin-bottom: 50px;
    opacity: 0.95;
}

.download-platforms-hw {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.platform-card-hw {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    text-decoration: none;
    color: var(--hw-white);
    transition: all 0.3s ease;
}

.platform-card-hw:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-5px);
}

.platform-icon-hw {
    font-size: 56px;
    margin-bottom: 20px;
}

.platform-card-hw h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.platform-card-hw p {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 20px;
}

.download-btn-hw {
    display: inline-block;
    padding: 12px 24px;
    background: var(--hw-white);
    color: var(--hw-primary);
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.platform-card-hw:hover .download-btn-hw {
    background: var(--hw-secondary);
    color: var(--hw-white);
}

/* ========================================
   FAQ 区域
======================================== */
.faq-section-hw {
    padding: 80px 0;
    background: var(--hw-white);
}

.faq-list-hw {
    max-width: 900px;
    margin: 50px auto 0;
}

.faq-item-hw {
    background: var(--hw-white);
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item-hw:hover {
    border-color: var(--hw-primary);
}

.faq-question-hw {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    user-select: none;
}

.faq-question-hw h3 {
    font-size: 17px;
    font-weight: 600;
    color: var(--hw-dark);
    margin: 0;
}

.faq-toggle-hw {
    font-size: 28px;
    font-weight: 300;
    color: var(--hw-primary);
    transition: transform 0.3s ease;
}

.faq-item-hw.active .faq-toggle-hw {
    transform: rotate(45deg);
}

.faq-answer-hw {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item-hw.active .faq-answer-hw {
    max-height: 300px;
    padding: 0 25px 20px;
}

.faq-answer-hw p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--hw-gray);
    margin: 0;
}

/* ========================================
   响应式设计
======================================== */
@media (max-width: 1024px) {
    .hero-container-hw {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .features-grid-hw {
        grid-template-columns: 1fr;
    }
    
    .advantages-list-hw {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero-section-hw {
        padding: 60px 0;
    }
    
    .hero-title-hw {
        font-size: 36px;
    }
    
    .hero-subtitle-hw {
        font-size: 16px;
    }
    
    .hero-buttons-hw {
        flex-direction: column;
    }
    
    .btn-hw-primary,
    .btn-hw-secondary {
        width: 100%;
        text-align: center;
    }
    
    .section-title-hw,
    .download-title-hw {
        font-size: 32px;
    }
    
    .download-platforms-hw {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title-hw {
        font-size: 28px;
    }
    
    .section-title-hw,
    .download-title-hw {
        font-size: 28px;
    }
    
    .translation-demo-hw {
        flex-direction: column;
    }
    
    .demo-arrow-hw {
        transform: rotate(90deg);
    }
}

/* ========================================
   HelloWorld 导航栏差异化样式
======================================== */
.multi-header-box {
    background: #FFFFFF;
    border-bottom: 3px solid #2563EB;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.1);
}

.multi-main-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.helloworld-logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.helloworld-logo-link:hover {
    transform: scale(1.05);
}

.helloworld-logo-img {
    height: 40px;
    width: auto;
}

.helloworld-logo-text {
    font-size: 24px;
    font-weight: 700;
    color: #2563EB;
}

.multi-header-box .multi-nav-white a {
    color: #1E40AF !important;
    font-weight: 500;
}

.multi-header-box .multi-nav-white a:hover {
    color: #2563EB !important;
    background: rgba(37, 99, 235, 0.05);
}

/* HelloWorld 底部差异化样式 */
.footer {
    background: linear-gradient(135deg, #1E40AF 0%, #2563EB 100%);
    color: #FFFFFF;
}

.footer .logo {
    font-size: 26px;
    font-weight: 700;
    color: #F59E0B;
    margin-bottom: 15px;
}

.footer .section h3 {
    color: #F59E0B;
    border-bottom: 2px solid #F59E0B;
    padding-bottom: 8px;
}

.footer .section a {
    color: rgba(255, 255, 255, 0.9);
}

.footer .section a:hover {
    color: #F59E0B;
    padding-left: 5px;
}

.footer-bottom {
    background: #1E40AF;
    color: rgba(255, 255, 255, 0.8);
}

/* HelloWorld FAQ 混合式布局 - 手风琴但视觉更现代 */
.faq-list-hw {
    max-width: 900px;
    margin: 50px auto 0;
}

.faq-item-hw {
    background: #FFFFFF;
    border: 2px solid #E5E7EB;
    border-radius: 16px;
    margin-bottom: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.faq-item-hw::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #2563EB 0%, #10B981 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.faq-item-hw:hover::before {
    opacity: 1;
}

.faq-item-hw:hover {
    border-color: #2563EB;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.15);
    transform: translateX(5px);
}

.faq-question-hw {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 28px;
    cursor: pointer;
    user-select: none;
}

.faq-question-hw h3 {
    font-size: 17px;
    font-weight: 600;
    color: #1E40AF;
    margin: 0;
    transition: color 0.3s ease;
}

.faq-item-hw:hover .faq-question-hw h3 {
    color: #2563EB;
}

.faq-toggle-hw {
    font-size: 28px;
    font-weight: 300;
    color: #2563EB;
    transition: transform 0.3s ease, color 0.3s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 50%;
}

.faq-item-hw.active .faq-toggle-hw {
    transform: rotate(45deg);
    background: #2563EB;
    color: #FFFFFF;
}

.faq-answer-hw {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background: rgba(37, 99, 235, 0.02);
}

.faq-item-hw.active .faq-answer-hw {
    max-height: 300px;
    padding: 0 28px 22px;
}

.faq-answer-hw p {
    font-size: 15px;
    line-height: 1.8;
    color: #6B7280;
    margin: 0;
}
