/* ==========================================
   Love Healing - 情感治愈主题样式
   ========================================== */

/* --- 基础重置与全局样式 --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Serif SC', 'PingFang SC', 'Microsoft YaHei', serif;
    color: #4a3728;
    background: #fdf6f0;
    line-height: 1.8;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: #c0695e;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #a04e44;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- 头部导航 --- */
.love-header {
    background: linear-gradient(135deg, #f8e8e0, #fdf0e8);
    border-bottom: 1px solid rgba(192, 105, 94, 0.15);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #c0695e;
    font-weight: 700;
    font-size: 20px;
}

.logo-icon {
    font-size: 24px;
    color: #e8756a;
}

.logo-text {
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-links .nav-link {
    color: #7a5c50;
    font-size: 15px;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
}

.nav-links .nav-link:hover {
    color: #c0695e;
    border-bottom-color: #c0695e;
}

.user-greeting {
    color: #b08070 !important;
    font-size: 14px !important;
    cursor: default;
    border-bottom: none !important;
}

/* --- Hero 区域 --- */
.hero-section {
    background: linear-gradient(135deg, #e8a598 0%, #f2c4b8 40%, #f8ddd4 100%);
    padding: 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 60%);
    animation: float 8s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(20px, -20px); }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 36px;
    color: #fff;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(160, 78, 68, 0.3);
    margin-bottom: 16px;
    letter-spacing: 3px;
}

.hero-subtitle {
    font-size: 16px;
    color: rgba(255,255,255,0.9);
    line-height: 2;
    text-shadow: 0 1px 4px rgba(160, 78, 68, 0.2);
}

/* --- 页面内部 Banner --- */
.page-banner {
    background: linear-gradient(135deg, #e8a598, #f2c4b8);
    padding: 50px 20px;
    text-align: center;
}

.page-banner h1 {
    font-size: 28px;
    color: #fff;
    margin-bottom: 8px;
    text-shadow: 0 2px 6px rgba(160, 78, 68, 0.3);
}

.page-banner p {
    font-size: 15px;
    color: rgba(255,255,255,0.85);
}

/* --- 分类筛选 --- */
.cate-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 30px 0 10px;
    justify-content: center;
}

.cate-tag {
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 14px;
    color: #8a6a5e;
    background: #fff;
    border: 1px solid #e8d0c8;
    transition: all 0.3s;
}

.cate-tag:hover,
.cate-tag.active {
    background: #c0695e;
    color: #fff;
    border-color: #c0695e;
}

/* --- 文章卡片网格 --- */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
    padding: 30px 0 50px;
}

.article-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(160, 78, 68, 0.08);
    transition: all 0.35s ease;
    display: block;
    color: inherit;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(160, 78, 68, 0.15);
    color: inherit;
}

.card-image {
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #f8e8e0, #f2d8d0);
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.article-card:hover .card-image img {
    transform: scale(1.05);
}

.card-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8e0d8, #f0d0c5);
}

.card-image-placeholder span {
    font-size: 48px;
    color: rgba(192, 105, 94, 0.3);
}

.card-body {
    padding: 20px;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    font-size: 12px;
    color: #b0908a;
}

.card-cate {
    background: #fdf0e8;
    color: #c0695e;
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 12px;
}

.card-title {
    font-size: 17px;
    font-weight: 600;
    color: #4a3728;
    margin-bottom: 8px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-desc {
    font-size: 14px;
    color: #9a7a6e;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- 空状态 --- */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: #b0908a;
}

.empty-icon {
    font-size: 60px;
    color: #e0c0b8;
    margin-bottom: 16px;
}

.empty-state p {
    font-size: 16px;
}

/* --- 分页 --- */
.pagination-wrap {
    text-align: center;
    padding: 20px 0 60px;
}

.pagination-wrap ul {
    display: inline-flex;
    gap: 6px;
    list-style: none;
}

.pagination-wrap li a,
.pagination-wrap li span {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 14px;
    color: #8a6a5e;
    background: #fff;
    border: 1px solid #e8d0c8;
    transition: all 0.3s;
}

.pagination-wrap li a:hover,
.pagination-wrap li.active span {
    background: #c0695e;
    color: #fff;
    border-color: #c0695e;
}

/* --- 文章详情页 --- */
.article-detail {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    margin: 30px auto 50px;
    box-shadow: 0 2px 12px rgba(160, 78, 68, 0.08);
    max-width: 800px;
}

/* 面包屑 */
.breadcrumb {
    font-size: 13px;
    color: #b0908a;
    margin-bottom: 30px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0e0d8;
}

.breadcrumb a {
    color: #b0908a;
}

.breadcrumb a:hover {
    color: #c0695e;
}

.breadcrumb .sep {
    margin: 0 8px;
    color: #d0b8b0;
}

.breadcrumb .current {
    color: #7a5c50;
}

.article-header {
    text-align: center;
    margin-bottom: 30px;
}

.article-title {
    font-size: 28px;
    font-weight: 700;
    color: #3a2820;
    line-height: 1.5;
    margin-bottom: 16px;
}

.article-meta {
    font-size: 13px;
    color: #b0908a;
    margin-bottom: 16px;
}

.article-summary {
    font-size: 15px;
    color: #9a7a6e;
    background: #fdf6f0;
    padding: 16px 20px;
    border-radius: 8px;
    border-left: 3px solid #e8a598;
    text-align: left;
    line-height: 1.8;
}

.article-cover {
    margin: 0 -40px 30px;
    overflow: hidden;
}

.article-cover img {
    width: 100%;
    display: block;
}

/* 文章正文排版 */
.article-content {
    font-size: 16px;
    line-height: 2;
    color: #4a3728;
}

.article-content h1,
.article-content h2,
.article-content h3 {
    color: #3a2820;
    margin: 28px 0 16px;
    font-weight: 600;
}

.article-content h1 { font-size: 24px; }
.article-content h2 { font-size: 20px; }
.article-content h3 { font-size: 18px; }

.article-content p {
    margin-bottom: 16px;
}

.article-content img {
    border-radius: 8px;
    margin: 16px 0;
}

.article-content blockquote {
    border-left: 3px solid #e8a598;
    padding: 12px 20px;
    margin: 20px 0;
    background: #fdf6f0;
    border-radius: 0 8px 8px 0;
    color: #7a5c50;
    font-style: italic;
}

.article-content ul,
.article-content ol {
    padding-left: 24px;
    margin-bottom: 16px;
}

.article-content li {
    margin-bottom: 8px;
}

.article-content a {
    color: #c0695e;
    border-bottom: 1px dashed #c0695e;
}

.article-content a:hover {
    border-bottom-style: solid;
}

/* 文章底部 */
.article-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #f0e0d8;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 24px;
    background: linear-gradient(135deg, #e8a598, #c0695e);
    color: #fff;
    border-radius: 24px;
    font-size: 14px;
    transition: all 0.3s;
}

.back-btn:hover {
    color: #fff;
    box-shadow: 0 4px 16px rgba(192, 105, 94, 0.35);
    transform: translateY(-1px);
}

/* --- 底部 Footer --- */
.love-footer {
    background: linear-gradient(135deg, #f0dcd4, #f8e8e0);
    padding: 40px 20px;
    text-align: center;
    margin-top: auto;
    border-top: 1px solid rgba(192, 105, 94, 0.1);
}

.footer-inner {
    max-width: 600px;
    margin: 0 auto;
}

.footer-icon {
    font-size: 28px;
    color: #e8756a;
}

.footer-slogan {
    font-size: 15px;
    color: #9a7a6e;
    margin: 10px 0 20px;
    font-style: italic;
}

.footer-links {
    margin-bottom: 16px;
}

.footer-links a {
    color: #8a6a5e;
    font-size: 14px;
}

.footer-links a:hover {
    color: #c0695e;
}

.footer-links .divider {
    margin: 0 12px;
    color: #d0b8b0;
}

.footer-copyright {
    font-size: 12px;
    color: #b0a098;
}

.footer-copyright a {
    color: #b0a098;
}

.footer-copyright a:hover {
    color: #c0695e;
}

/* --- 响应式 --- */
@media (max-width: 768px) {
    .hero-title {
        font-size: 26px;
    }

    .hero-subtitle {
        font-size: 14px;
    }

    .article-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .article-detail {
        padding: 24px 16px;
        margin: 16px auto 30px;
    }

    .article-title {
        font-size: 22px;
    }

    .article-cover {
        margin: 0 -16px 20px;
    }

    .header-inner {
        height: 56px;
    }

    .logo a {
        font-size: 17px;
    }

    .nav-links {
        gap: 14px;
    }

    .nav-links .nav-link {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 50px 16px;
    }

    .hero-title {
        font-size: 22px;
        letter-spacing: 1px;
    }

    .card-image {
        height: 160px;
    }
}
