/* ========================================
   index.css — 首页专属样式
   ======================================== */

/* ---------- Hero 区域 ---------- */
.hero {
    padding: 120px 0 64px;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.hero-greeting {
    font-size: 1rem;
    color: #4a6cf7;
    font-weight: 500;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 8px;
}

.hero-title {
    font-family: 'Noto Serif SC', serif;
    font-size: 3.6rem;
    font-weight: 700;
    line-height: 1.15;
    color: #1e1e2a;
    margin-bottom: 12px;
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    color: #4a4a5a;
    margin-bottom: 12px;
}

.hero-desc {
    font-size: 1rem;
    color: #6a6a7a;
    margin-bottom: 28px;
    max-width: 420px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* Hero 右侧视觉 */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-avatar {
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e8ecf8, #d5ddf5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
    box-shadow: 0 12px 48px rgba(74, 108, 247, 0.12);
    transition: transform 0.4s ease;
}
.hero-avatar:hover {
    transform: scale(1.04);
}

/* ---------- 特色卡片 ---------- */
.features {
    padding: 64px 0 80px;
    background-color: #ffffff;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 8px;
}

.feature-card {
    text-align: center;
    padding: 40px 24px;
    border-radius: 20px;
    background-color: #fafaf8;
    border: 1px solid rgba(30, 30, 42, 0.04);
    transition: all 0.35s ease;
}
.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(30, 30, 42, 0.06);
    border-color: rgba(74, 108, 247, 0.15);
}

.feature-icon {
    font-size: 2.4rem;
    color: #4a6cf7;
    margin-bottom: 16px;
}
.feature-card h3 {
    font-family: 'Noto Serif SC', serif;
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: #1e1e2a;
}
.feature-card p {
    font-size: 0.95rem;
    color: #6a6a7a;
    line-height: 1.7;
}

/* ---------- 最新文章 ---------- */
.recent-posts {
    padding: 64px 0 80px;
    background-color: #fafaf8;
}

.post-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.post-item {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 24px;
    padding: 20px 24px;
    background-color: #ffffff;
    border-radius: 16px;
    border: 1px solid rgba(30, 30, 42, 0.04);
    transition: all 0.3s ease;
}
.post-item:hover {
    box-shadow: 0 8px 28px rgba(30, 30, 42, 0.05);
    border-color: rgba(74, 108, 247, 0.10);
}

.post-date {
    font-size: 0.85rem;
    color: #8a8a9a;
    font-weight: 500;
    padding-top: 2px;
}

.post-info h3 {
    font-family: 'Noto Serif SC', serif;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 4px;
}
.post-info h3 a {
    color: #1e1e2a;
}
.post-info h3 a:hover {
    color: #4a6cf7;
}
.post-info p {
    font-size: 0.95rem;
    color: #6a6a7a;
    margin-bottom: 8px;
    line-height: 1.6;
}
.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

/* ---------- 页脚 ---------- */
.footer {
    margin-top: auto;
    padding: 32px 0;
    border-top: 1px solid rgba(30, 30, 42, 0.06);
    background-color: #ffffff;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-info p {
    font-size: 0.9rem;
    color: #6a6a7a;
}

.footer-social {
    display: flex;
    gap: 20px;
}
.footer-social a {
    font-size: 1.3rem;
    color: #6a6a7a;
    transition: color 0.25s ease;
}
.footer-social a:hover {
    color: #4a6cf7;
}

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-desc {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-actions {
        justify-content: center;
    }
    .hero-title {
        font-size: 2.6rem;
    }
    .hero-avatar {
        width: 200px;
        height: 200px;
        font-size: 4.5rem;
    }
    .features-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
    .post-item {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .post-date {
        color: #8a8a9a;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 100px 0 40px;
        min-height: auto;
    }
    .hero-title {
        font-size: 2rem;
    }
    .hero-avatar {
        width: 160px;
        height: 160px;
        font-size: 3.6rem;
    }
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    .avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}
}