/**
 * Yowww Tools Homepage Styles - Minimalist Design
 * 极简主义设计风格，专注于内容和阅读体验
 * 灵感来源：Medusa.js 和 Gwern.net 的简洁设计理念
 * 配色方案：蓝色、淡蓝色、灰色系
 */

/* Reset and Base Styles */
.yowww-homepage {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    line-height: 1.7;
    color: #374151;
    background: #ffffff;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: #1f2937;
    font-weight: 600;
    line-height: 1.4;
}

/* Top Banner - 简化版顶部横幅 */
.top-banner {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 12px 0;
    text-align: center;
}

.banner-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 0.9rem;
    color: #64748b;
}

.banner-icon {
    color: #3b82f6;
}

.banner-cta {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.banner-cta:hover {
    background: #eff6ff;
}

/* Hero Section - 极简英雄区域 */
.hero-section {
    background: #ffffff;
    padding: 60px 0;
    border-bottom: 1px solid #f1f5f9;
}

.hero-section .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #dbeafe;
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 24px;
}

.badge-icon {
    font-size: 0.9rem;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 24px;
    line-height: 1.1;
    color: #0f172a;
}

.brand-highlight {
    color: #3b82f6;
}

.tagline {
    display: block;
    font-size: 1.1rem;
    font-weight: 400;
    color: #64748b;
    margin-top: 8px;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 32px;
    color: #64748b;
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin: 32px 0;
}

.stat-item {
    text-align: left;
}

.stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: #1e40af;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.9rem;
    color: #64748b;
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    display: inline-block;
    font-size: 0.95rem;
}

.btn-primary {
    background: #3b82f6;
    color: white;
    border: 1px solid #3b82f6;
}

.btn-primary:hover {
    background: #2563eb;
    border-color: #2563eb;
}

.btn-secondary {
    background: transparent;
    color: #374151;
    border: 1px solid #d1d5db;
}

.btn-secondary:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

/* Hero Visual - 简化的视觉元素 */
.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.floating-cards {
    position: relative;
    width: 100%;
    height: 350px;
}

.tool-card {
    position: absolute;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    min-width: 140px;
}

.tool-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-color: #cbd5e1;
}

.tool-card .icon {
    font-size: 1.4rem;
    line-height: 1;
}

.tool-card .label {
    font-weight: 500;
    font-size: 0.9rem;
    color: #374151;
    margin: 0;
}

.tool-card .count {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 2px;
}

/* 工具卡片位置 */
.tool-card.ai-tools {
    top: 20px;
    left: 20px;
    border-color: #dbeafe;
}

.tool-card.ai-tools .icon {
    color: #3b82f6;
}

.tool-card.productivity {
    top: 120px;
    right: 40px;
    border-color: #dcfce7;
}

.tool-card.productivity .icon {
    color: #059669;
}

.tool-card.utilities {
    bottom: 80px;
    left: 60px;
    border-color: #fef3c7;
}

.tool-card.utilities .icon {
    color: #d97706;
}

/* Featured Categories - 极简分类区域 */
.featured-categories {
    padding: 60px 0;
    background: #fafbfc;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-title {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #0f172a;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #64748b;
    margin: 0;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

/* 大屏幕优化 - 显示更多列 */
@media (min-width: 1200px) {
    .container {
        max-width: 1600px;
    }
    
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }
    
    .articles-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 18px;
    }
    
    .trust-stats {
        grid-template-columns: repeat(6, 1fr);
        gap: 25px;
    }
    
    .hero-section .container {
        gap: 60px;
    }
    
    .featured-categories {
        padding: 50px 0;
    }
    
    .latest-articles {
        padding: 50px 0;
    }
}

@media (min-width: 1600px) {
    .container {
        max-width: 1800px;
    }
    
    .categories-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
    }
    
    .articles-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 16px;
    }
    
    .category-card {
        padding: 18px 16px;
    }
    
    .article-content {
        padding: 14px;
    }
}

.category-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px 18px;
    transition: all 0.2s ease;
    position: relative;
}

.category-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.category-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 16px;
}

.category-icon {
    font-size: 2.4rem;
    line-height: 1;
    color: #64748b;
}

.category-badge {
    background: #f1f5f9;
    color: #475569;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.trending-badge {
    background: #eff6ff;
    color: #1d4ed8;
}

.category-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #0f172a;
}

.category-card p {
    color: #64748b;
    margin-bottom: 16px;
    line-height: 1.6;
    font-size: 0.95rem;
}

.category-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 12px 16px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #f1f5f9;
}

.tool-count {
    font-weight: 600;
    color: #1e40af;
    font-size: 0.9rem;
}

.popularity {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
}

.category-link {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.9rem;
}

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

/* Latest Articles - 极简文章区域 */
.latest-articles {
    padding: 60px 0;
    background: white;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.view-all-link {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
    font-size: 0.9rem;
}

.view-all-link:hover {
    color: #1d4ed8;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.article-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.article-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.article-image {
    height: 180px;
    overflow: hidden;
    background: #f8fafc;
}

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

.article-content {
    padding: 16px;
}

.article-meta {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 0.85rem;
}

.category {
    background: #eff6ff;
    color: #1d4ed8;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 500;
}

.date {
    color: #64748b;
}

.article-title {
    margin-bottom: 12px;
}

.article-title a {
    color: #0f172a;
    text-decoration: none;
    font-weight: 600;
    line-height: 1.4;
    font-size: 1.1rem;
}

.article-title a:hover {
    color: #3b82f6;
}

.article-excerpt {
    color: #64748b;
    margin-bottom: 16px;
    line-height: 1.6;
    font-size: 0.9rem;
}

.read-more {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
    font-size: 0.9rem;
}

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

/* Newsletter Section - 极简订阅区域 */
.newsletter-section {
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    padding: 50px 0;
}

.newsletter-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.newsletter-text h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #0f172a;
}

.newsletter-text p {
    color: #64748b;
    font-size: 1rem;
    line-height: 1.6;
}

.email-signup {
    display: flex;
    gap: 12px;
    margin-bottom: 8px;
}

.email-signup input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s ease;
}

.email-signup input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.privacy-note {
    font-size: 0.85rem;
    color: #64748b;
    margin: 0;
}

/* Trust Section - 极简信任指标 */
.trust-section {
    padding: 50px 0;
    background: white;
}

.trust-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 30px;
    text-align: center;
}

.stat-number {
    font-size: 2.4rem;
    font-weight: 700;
    color: #1e40af;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 1rem;
    color: #64748b;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .banner-content {
        flex-direction: column;
        gap: 8px;
        font-size: 0.85rem;
    }
    
    .hero-section {
        padding: 60px 0;
    }
    
    .hero-section .container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.4rem;
    }
    
    .hero-stats {
        justify-content: center;
        gap: 24px;
    }
    
    .floating-cards {
        height: 250px;
    }
    
    .tool-card {
        position: relative;
        display: inline-flex;
        margin: 8px;
    }
    
    .tool-card.ai-tools,
    .tool-card.productivity,
    .tool-card.utilities {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        bottom: auto;
    }
    
    .featured-categories {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .category-card {
        padding: 20px 16px;
    }
    
    .category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .newsletter-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .email-signup {
        flex-direction: column;
    }
    
    .trust-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .category-card h3 {
        font-size: 1.2rem;
    }
    
    .trust-stats {
        grid-template-columns: 1fr;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus States for Accessibility */
.btn:focus,
.banner-cta:focus,
.category-link:focus,
.view-all-link:focus,
.read-more:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Loading Animation */
.yowww-homepage {
    animation: fadeIn 0.6s ease-out;
}

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