/*
Theme Name: Leosplain AI Productivity Child
Theme URI: https://leosplain.com
Template: leosplain-dynamic-minimalist
Author: Leosplain
Author URI: https://leosplain.com
Description: 专业 AI 生产力与自动化技术 Child Theme。专为 Leosplain Dynamic Minimalist 深度打造，全站文案、CTA 按钮、核心分类入口、精选专栏与版权文案 100% 后台动态化管理，无任何 Hardcode 字段，全面兼容 SEO/GEO 与原生 Customizer。
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: leosplain-child
Tags: blog, modern, minimalist, ai-productivity, dark-mode, custom-colors, custom-menu, theme-options
*/

/* ==========================================================================
   AI Productivity Child Theme Enhanced Design Tokens & Micro-Interactions
   ========================================================================== */

/* 1. Hero Zone Enhancements */
.home-hero-zone {
    text-align: center;
    padding: 3.5rem 1rem 3rem;
    max-width: 860px;
    margin: 0 auto;
}

.hero-tag-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 1rem;
    border-radius: 9999px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-heading);
    letter-spacing: 0.02em;
    margin-bottom: 1.5rem;
    transition: all var(--speed-normal) var(--ease-out-smooth);
}

.hero-tag-pill:hover {
    border-color: var(--border-hover);
    transform: translateY(-1px);
}

.hero-main-title {
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: var(--text-heading);
    margin-bottom: 1.25rem;
}

.hero-lead-text {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    line-height: 1.6;
    color: var(--text-muted);
    max-width: 680px;
    margin: 0 auto 2.25rem;
}

.hero-cta-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.hero-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.75rem;
    border-radius: 9999px;
    background: var(--accent-btn-bg);
    color: var(--accent-btn-text);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    box-shadow: var(--card-shadow);
    transition: all var(--speed-normal) var(--ease-out-smooth);
}

.hero-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--card-shadow-hover);
    opacity: 0.95;
}

.hero-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.75rem;
    border-radius: 9999px;
    background: var(--bg-surface);
    color: var(--text-heading);
    border: 1px solid var(--border-subtle);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all var(--speed-normal) var(--ease-out-smooth);
}

.hero-btn-secondary:hover {
    background: var(--bg-surface-hover);
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

/* 2. Top 3 Category Portals */
.category-portals-section {
    padding: 1.5rem 0 3.5rem;
}

.section-header-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 1.75rem;
    gap: 1rem;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 1rem;
}

.section-title-wrap h2 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-heading);
    margin: 0 0 0.35rem;
}

.section-title-wrap p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

.category-portals-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.category-portal-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.75rem;
    border-radius: 16px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    text-decoration: none;
    transition: all var(--speed-normal) var(--ease-out-smooth);
    position: relative;
    overflow: hidden;
}

.category-portal-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: transparent;
    transition: background var(--speed-normal);
}

.category-portal-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-3px);
    box-shadow: var(--card-shadow);
    background: var(--bg-surface-hover);
}

.category-portal-card:hover::before {
    background: var(--text-heading);
}

.portal-top-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.portal-index-badge {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.portal-count-chip {
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    border-radius: 9999px;
    background: var(--bg-canvas);
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
}

.portal-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-heading);
    margin: 0 0 0.5rem;
    letter-spacing: -0.01em;
}

.portal-desc {
    font-size: 0.875rem;
    line-height: 1.55;
    color: var(--text-muted);
    margin: 0 0 1.25rem;
    flex-grow: 1;
}

.portal-arrow-cta {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-heading);
}

.portal-arrow-cta svg {
    transition: transform var(--speed-fast) var(--ease-out-smooth);
}

.category-portal-card:hover .portal-arrow-cta svg {
    transform: translateX(4px);
}

/* 3. Featured Showcase Grid */
.featured-showcase-section {
    padding: 2rem 0 3.5rem;
}

.featured-cards-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 1.5rem;
}

.featured-side-stack {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.featured-main-card,
.featured-mini-card {
    border-radius: 16px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all var(--speed-normal) var(--ease-out-smooth);
}

.featured-main-card:hover,
.featured-mini-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: var(--card-shadow);
}

.featured-thumb-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: var(--bg-muted);
}

.featured-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s var(--ease-out-smooth);
}

.featured-main-card:hover .featured-thumb-wrap img,
.featured-mini-card:hover .featured-thumb-wrap img {
    transform: scale(1.03);
}

.featured-pill-overlay {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(9, 9, 11, 0.85);
    backdrop-filter: blur(8px);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.featured-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.featured-title {
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-heading);
    margin: 0.5rem 0 0.75rem;
}

.featured-title a {
    color: inherit;
    text-decoration: none;
}

.featured-title a:hover {
    text-decoration: underline;
}

.featured-mini-card .featured-title {
    font-size: 1.05rem;
    margin: 0.35rem 0 0.5rem;
}

.featured-mini-card .featured-body {
    padding: 1.2rem;
}

/* 4. In-Article & End-of-Article Newsletter / CTA Box */
.article-lead-magnet-card {
    margin: 3rem 0;
    padding: 2.25rem;
    border-radius: 16px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    position: relative;
    box-shadow: var(--card-shadow);
}

.article-lead-magnet-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 1px;
    background: linear-gradient(135deg, var(--border-strong), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.magnet-header-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.magnet-badge {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: var(--text-heading);
    color: var(--bg-canvas);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
}

.magnet-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-heading);
    margin: 0;
}

.magnet-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.magnet-action-row {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* 5. Responsive Adjustments */
@media (max-width: 960px) {
    .category-portals-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .featured-cards-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .home-hero-zone {
        padding: 2rem 0.5rem 2rem;
    }
    .category-portals-grid {
        grid-template-columns: 1fr;
    }
    .hero-cta-group {
        flex-direction: column;
        width: 100%;
    }
    .hero-btn-primary,
    .hero-btn-secondary {
        width: 100%;
        justify-content: center;
    }
    .article-lead-magnet-card {
        padding: 1.5rem;
    }
}
