/* ==========================================================================
   Emopets No-Image Homepage - Restyle & Override
   ========================================================================== */

/* 保留已有正常布局 (Hero, Categories, Trust, Newsletter) */

.emo-aff-hero {
    background: linear-gradient(135deg, #f0f7ff 0%, #e8f0fe 100%);
    padding: 60px 20px;
    text-align: center;
    border-radius: 0 0 20px 20px;
}

.emo-aff-hero .hero-content { max-width: 700px; margin: 0 auto; }

.hero-badge {
    display: inline-block; background: #ffffff; color: #2563eb;
    font-size: 0.85rem; font-weight: 600; padding: 6px 16px;
    border-radius: 20px; margin-bottom: 15px; box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.emo-aff-hero h1 { font-size: 2.5rem !important; font-weight: 800; line-height: 1.2; margin-bottom: 15px; color: #1f2937; }

.emo-aff-hero .highlight { color: #2563eb; }

.custom-hero-search {
    display: flex !important; max-width: 480px; margin: 25px auto 0;
    background: #fff; padding: 5px; border-radius: 30px; box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.custom-hero-search input[type="search"] {
    flex: 1; border: none !important; background: transparent !important;
    padding: 10px 20px !important; font-size: 0.95rem; outline: none !important; box-shadow: none !important;
}

.custom-hero-search button {
    background: #2563eb !important; color: #ffffff !important; border: none !important;
    padding: 10px 25px !important; border-radius: 25px !important; font-weight: 600; cursor: pointer;
}

.custom-hero-search button:hover { background: #1d4ed8 !important; }

.emo-categories { margin-top: -30px; padding: 0 10px 50px; position: relative; z-index: 10; }

.category-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px; }

.cat-card {
    background: #ffffff; padding: 20px 15px; border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05); text-decoration: none !important;
    color: inherit; text-align: center; border: 1px solid #f0f0f0; transition: transform 0.2s;
}

.cat-card:hover { transform: translateY(-4px); }

.cat-card .icon { font-size: 1.8rem; display: block; margin-bottom: 8px; }

.cat-card h3 { font-size: 1rem !important; margin-bottom: 4px !important; color: #111827; }

.cat-card p { font-size: 0.8rem !important; color: #6b7280; margin: 0 !important; }

/* ==========================================================================
   === NEW: Text List Style for Featured Guides (No Images) ===
   ========================================================================== */

.emo-featured-guides.text-list-style {
    padding: 40px 0 80px;
    background: #ffffff; /* 确保背景纯白，显得干净 */
}

.emo-featured-guides.text-list-style .section-title {
    text-align: center;
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.emo-featured-guides.text-list-style h2 {
    font-size: 2rem !important;
    font-weight: 700;
    color: #111827;
}

.posts-list {
    max-width: 800px; /* 限制列表宽度，提高阅读舒适度 */
    margin: 0 auto;
}

/* 每一个文章列表项的样式 */
.aff-post-list-item {
    display: flex;
    padding: 25px 0;
    border-bottom: 1px solid #e5e7eb; /* 细分隔线 */
    transition: background-color 0.2s;
}

.aff-post-list-item:last-child {
    border-bottom: none; /* 最后一项没有分隔线 */
}

/* 左侧日期和分类 */
.post-meta-side {
    width: 120px;
    flex-shrink: 0;
    padding-right: 20px;
    text-align: right;
    display: flex;
    flex-direction: column;
    margin-top: 4px; /* 稍微下移，与标题对齐 */
}

.post-date {
    font-size: 0.85rem;
    color: #9ca3af;
    margin-bottom: 5px;
}

.post-cat-inline {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: #2563eb;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* 右侧核心内容区 */
.post-content-main {
    flex: 1;
}

.post-content-main h3 {
    font-size: 1.25rem !important;
    font-weight: 700;
    line-height: 1.3 !important;
    margin: 0 0 10px 0 !important;
}

.post-content-main h3 a {
    color: #111827 !important;
    text-decoration: none !important;
    transition: color 0.2s;
}

.post-content-main h3 a:hover {
    color: #2563eb !important;
}

.post-excerpt {
    font-size: 0.9rem !important;
    color: #4b5563;
    line-height: 1.5 !important;
    margin-bottom: 15px !important;
}

.read-more-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: #2563eb !important;
    text-decoration: none !important;
    border-bottom: 1px solid transparent;
    padding-bottom: 2px;
}

.read-more-link:hover {
    border-bottom: 1px solid #2563eb;
}

/* ==========================================================================
   Trust & Newsletter Styles (Keep existing)
   ========================================================================== */

.emo-trust-section { background: #f9fafb; padding: 40px 20px; border-radius: 12px; margin-bottom: 40px; }

.trust-box { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; text-align: center; }

.trust-item h4 { font-size: 1rem !important; margin-bottom: 5px !important; }

.trust-item p { font-size: 0.82rem !important; color: #6b7280; margin: 0 !important; }

.emo-newsletter { padding-bottom: 40px; }

.newsletter-box { background: #0f172a; color: #fff; padding: 40px 20px; border-radius: 16px; text-align: center; }

.newsletter-box h2 { color: #fff !important; font-size: 1.6rem !important; margin-bottom: 8px !important; }

.newsletter-box p { color: #94a3b8; font-size: 0.9rem; margin-bottom: 20px; }

.newsletter-form { display: flex; justify-content: center; gap: 8px; max-width: 450px; margin: 0 auto; }

.newsletter-form input { flex: 1; padding: 10px 18px !important; border-radius: 25px !important; border: none !important; outline: none !important; font-size: 0.9rem; }

.newsletter-form button { background: #2563eb !important; color: #fff !important; border: none !important; padding: 10px 22px !important; border-radius: 25px !important; font-weight: 600; cursor: pointer; }

/* 响应式适配 */
@media (max-width: 640px) {
    .aff-post-list-item { flex-direction: column; }
    .post-meta-side { width: 100%; text-align: left; flex-direction: row; align-items: center; gap: 10px; margin-bottom: 10px; padding-right: 0; }
    .post-meta-side { margin-top: 0; }
    .custom-hero-search { flex-direction: column; border-radius: 15px; padding: 10px; }
    .custom-hero-search button { margin-top: 10px; border-radius: 10px !important; }
}