/* ===== 全局重置 ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", Arial, sans-serif; background: #fafafa; color: #333; line-height: 1.6; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
a { text-decoration: none; color: #2e7d32; }
img { max-width: 100%; height: auto; }

/* ===== 头部 ===== */
.site-header { background: #fff; border-bottom: 2px solid #e8f5e9; padding: 12px 0; position: sticky; top: 0; z-index: 999; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.header-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.site-title { font-size: 1.5em; font-weight: bold; color: #2e7d32; }
.nav-menu { list-style: none; display: flex; gap: 20px; }
.nav-menu a { color: #333; }
.nav-menu a:hover { color: #2e7d32; }
.header-actions { display: flex; align-items: center; gap: 16px; }
.cart-icon { position: relative; font-size: 1.2em; color: #333; }
.cart-count { position: absolute; top: -8px; right: -12px; background: #e53935; color: #fff; font-size: 0.5em; padding: 2px 8px; border-radius: 50%; }

/* ===== 首页横幅 ===== */
.hero-section { background: linear-gradient(135deg, #2e7d32, #4caf50); color: #fff; padding: 50px 0; text-align: center; margin-bottom: 30px; }
.hero-section h1 { font-size: 2.5rem; margin-bottom: 6px; }
.hero-subtitle { font-size: 1.1rem; opacity: 0.9; margin-bottom: 14px; }
.hero-stats { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; margin-bottom: 16px; }
.hero-stats span { background: rgba(255,255,255,0.15); padding: 4px 18px; border-radius: 30px; font-size: 0.9rem; }
.hero-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.btn-primary { display: inline-block; background: #fff; color: #2e7d32; padding: 10px 32px; border-radius: 30px; font-weight: 600; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 4px 15px rgba(0,0,0,0.15); }
.btn-secondary { display: inline-block; background: rgba(255,255,255,0.2); color: #fff; padding: 10px 32px; border-radius: 30px; font-weight: 600; border: 2px solid #fff; }
.btn-secondary:hover { background: rgba(255,255,255,0.3); }

/* ===== 最新动态 ===== */
.latest-news-section { padding: 20px 0; }
.section-header { margin-bottom: 24px; }
.section-header h2 { font-size: 1.8rem; color: #2e7d32; margin: 0; }
.section-desc { color: #888; font-size: 0.95rem; margin: 0; }
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.news-card { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,0.05); transition: 0.3s; }
.news-card:hover { transform: translateY(-4px); box-shadow: 0 8px 25px rgba(0,0,0,0.1); }
/* ===== 最新动态（混合类型） ===== */
.latest-dynamic-section {
    padding: 20px 0;
}
.latest-dynamic-section .section-header {
    margin-bottom: 24px;
}
/* 复用news-card，增加动态专属微调 */
.dynamic-card .news-image {
    height: 180px; /* 稍矮一点，突出文字 */
}
.dynamic-card .news-excerpt {
    -webkit-line-clamp: 2; /* 动态摘要只显示2行 */
}

/* ===== 图片占位（统一版本） ===== */
.news-image .placeholder-img,
.news-image .placeholder {
    width: 100%;
    height: 100%;
    min-height: 180px;
    background: #f0ebe3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #8b7a6b;
    border-radius: 0;
}
.news-image .placeholder-img span,
.news-image .placeholder span {
    display: block;
}
.news-image .placeholder-img .placeholder-text,
.news-image .placeholder .placeholder-text {
    font-size: 0.85rem;
    margin-top: 6px;
    color: #aaa;
    max-width: 80%;
    text-align: center;
}
/* 针对不同卡片微调背景 */
.adoption-card .news-image .placeholder-img {
    background: #f5e6da;
}
.news-image { 
    height: 200px; 
    overflow: hidden; 
    background: #e8f5e9; 
    position: relative; /* 为徽章定位做准备 */
}
.news-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.news-image.placeholder { display: flex; align-items: center; justify-content: center; font-size: 3rem; color: #a5d6a7; }
.news-body { padding: 16px 20px 20px; }
.news-meta { display: flex; justify-content: space-between; font-size: 0.8rem; color: #999; margin-bottom: 6px; }
.post-type-badge { background: #e8f5e9; color: #2e7d32; padding: 2px 12px; border-radius: 20px; }
.news-title { font-size: 1.1rem; margin: 0 0 6px; }
.news-title a { color: #333; }
.news-title a:hover { color: #2e7d32; }
.news-excerpt { font-size: 0.92rem; color: #666; line-height: 1.6; margin: 0 0 10px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.read-more { font-weight: 600; color: #2e7d32; font-size: 0.9rem; }
.read-more:hover { text-decoration: underline; }
.pagination { text-align: center; margin: 30px 0; }
.pagination .page-numbers { display: inline-block; padding: 8px 14px; margin: 0 4px; border-radius: 6px; background: #fff; border: 1px solid #e0e0e0; color: #333; }
.pagination .page-numbers.current { background: #2e7d32; color: #fff; border-color: #2e7d32; }
.pagination .page-numbers:hover:not(.current) { background: #e8f5e9; }

/* ===== 认养入口 ===== */
.adoption-entry { margin: 30px 0; }
.adoption-banner { display: flex; justify-content: space-between; align-items: center; background: linear-gradient(135deg, #fdf6f0, #f5e6da); border-radius: 16px; padding: 24px 32px; flex-wrap: wrap; gap: 16px; }
.adoption-banner-content .badge { background: #bf6f4a; color: #fff; padding: 2px 14px; border-radius: 30px; font-size: 0.75rem; font-weight: 700; }
.adoption-banner-content h2 { color: #7a3e2a; margin: 6px 0 4px; font-size: 1.4rem; }
.adoption-banner-features { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 0.85rem; color: #666; }
.adoption-banner-price { text-align: center; background: rgba(255,255,255,0.5); padding: 12px 24px; border-radius: 14px; }
.adoption-banner-price .amount { font-size: 2rem; font-weight: 700; color: #bf6f4a; }
.adoption-banner-price .limit { display: block; font-size: 0.8rem; color: #e65100; }

/* ===== 详情页 ===== */
.featured-image { margin-bottom: 20px; }
.featured-image img { width: 100%; max-height: 500px; object-fit: cover; border-radius: 16px; }
.entry-header h1 { color: #2e7d32; font-size: 2rem; margin: 0 0 8px; }
.entry-meta { display: flex; flex-wrap: wrap; gap: 16px 24px; color: #666; font-size: 0.95rem; }
.entry-content { font-size: 1.05em; line-height: 1.9; }
.entry-content h2 { color: #2e7d32; border-bottom: 2px solid #a5d6a7; padding-bottom: 8px; margin-top: 32px; }
.booking-card { background: #f8fdf8; border: 2px solid #a5d6a7; border-radius: 16px; padding: 24px; margin: 30px 0; }
.price-display { text-align: center; padding-bottom: 16px; border-bottom: 1px solid #e8f5e9; }
.price-display .amount { display: block; font-size: 2.6rem; font-weight: 700; color: #2e7d32; }
.price-display .badge { display: inline-block; background: #e8f5e9; padding: 4px 16px; border-radius: 30px; font-size: 0.8rem; color: #2e7d32; }
.booking-card select { width: 100%; padding: 12px 14px; border-radius: 8px; border: 1px solid #ddd; font-size: 1em; margin: 16px 0 12px; }
.btn-book { width: 100%; background: #2e7d32; color: #fff; padding: 14px; border: none; border-radius: 30px; font-size: 1.1rem; font-weight: 600; cursor: pointer; transition: 0.3s; }
.btn-book:hover { background: #1b5e20; }
.split-note { background: #f0f7f0; padding: 12px; border-radius: 10px; text-align: center; font-size: 0.85rem; color: #2e7d32; margin-top: 16px; }

/* ===== 底部 ===== */
.site-footer { background: #1b3a1b; color: rgba(255,255,255,0.8); padding: 40px 0 20px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 30px; margin-bottom: 30px; }
.footer-col h4 { color: #fff; margin-bottom: 12px; }
.footer-col a { color: rgba(255,255,255,0.7); }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 16px; text-align: center; font-size: 0.85rem; }

/* ===== 认养套餐页面样式 ===== */
.adoption-hero { background: linear-gradient(135deg, #fdf6f0, #f5e6da); border-radius: 20px; padding: 30px 36px; margin-bottom: 30px; text-align: center; border-left: 6px solid #bf6f4a; }
.adoption-hero h1 { color: #7a3e2a; font-size: 2rem; margin: 0 0 8px; }
.price-tag { display: inline-block; background: #bf6f4a; color: #fff; padding: 10px 32px; border-radius: 50px; margin-top: 8px; }
.price-tag .amount { font-size: 2rem; font-weight: 700; }
.price-tag .limit { background: rgba(255,255,255,0.2); padding: 2px 14px; border-radius: 30px; font-size: 0.8rem; margin-left: 12px; }
.adoption-table { width: 100%; border-collapse: collapse; margin: 12px 0; }
.adoption-table th { background: #7a3e2a; color: #fff; padding: 10px 14px; text-align: left; }
.adoption-table td { padding: 10px 14px; border-bottom: 1px solid #f0f0f0; }
.seasons-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 16px 0; }
.season-card { background: #fff; border-radius: 14px; padding: 16px 18px; box-shadow: 0 2px 10px rgba(0,0,0,0.04); border-top: 4px solid #ccc; }
.season-card.spring { border-top-color: #4caf50; }
.season-card.summer { border-top-color: #ff9800; }
.season-card.autumn { border-top-color: #ff5722; }
.season-card.winter { border-top-color: #2196f3; }
.season-card h3 { margin: 0 0 6px; color: #7a3e2a; }
.audience-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.audience-card { background: #fdf6f0; border-radius: 14px; padding: 16px 18px; border-left: 4px solid #bf6f4a; }
.audience-card h4 { margin: 0 0 4px; color: #7a3e2a; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 16px; margin: 16px 0; }
.step { background: #fafafa; border-radius: 14px; padding: 16px; text-align: center; }
.step .step-num { display: inline-block; background: #bf6f4a; color: #fff; width: 36px; height: 36px; line-height: 36px; border-radius: 50%; font-weight: 700; margin-bottom: 6px; }
.contact-block { background: #f8fdf8; border-radius: 16px; padding: 24px; margin-top: 20px; border: 2px solid #a5d6a7; }
.contact-table { width: 100%; border-collapse: collapse; }
.contact-table th { background: #2e7d32; color: #fff; padding: 8px 14px; text-align: left; }
.contact-table td { padding: 8px 14px; border-bottom: 1px solid #e8f5e9; }
.faq-item { background: #fafafa; border-radius: 12px; padding: 14px 20px; margin-bottom: 10px; }
.faq-item h4 { color: #7a3e2a; margin: 0 0 4px; }
.cta-box { background: linear-gradient(135deg, #fdf6f0, #f5e6da); border-radius: 16px; padding: 30px; text-align: center; }

/* ===== 响应式 ===== */
@media (max-width: 768px) {
    .hero-section h1 { font-size: 1.8rem; }
    .news-grid { grid-template-columns: 1fr 1fr; }
    .adoption-banner { flex-direction: column; text-align: center; }
    .seasons-grid { grid-template-columns: 1fr 1fr; }
    .contact-table { font-size: 0.85rem; }
}
@media (max-width: 480px) {
    .news-grid { grid-template-columns: 1fr; }
    .hero-section { padding: 30px 0; }
    .seasons-grid { grid-template-columns: 1fr; }
    .audience-grid { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr 1fr; }
    .adoption-hero h1 { font-size: 1.5rem; }
	/* 480px 下进一步收紧 */
.news-card .news-body {
    padding: 12px 14px 16px;
}
.news-title {
    font-size: 0.95rem;
}
.news-excerpt {
    font-size: 0.82rem;
    -webkit-line-clamp: 2;
}
.news-image .placeholder-img,
.news-image .placeholder {
    min-height: 120px;
    font-size: 2.2rem;
}
}
