/* 
 * 慈善网 - 统一样式表
 * 风格：温暖、大爱、包容、信任感
 * 配色：#e67e22 (暖橙色 - 希望/热情), #27ae60 (生命绿 - 生机/公益), #fff5f0 (暖白背景), #333 (深灰文字)
 */

/* 1. 全局基础 */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif; font-size: 15px; color: #333; line-height: 1.7; background: #fffbf8; }
a { text-decoration: none; color: #333; transition: 0.3s; }
a:hover { color: #e67e22; }
ul { list-style: none; }
img { max-width: 100% !important; height: auto !important; display: block; }

.container { width: 1200px; margin: 0 auto; }
.clearfix::after { content: ""; display: block; clear: both; }

/* 2. 头部设计 - 温暖品牌感 */
.top-bar { background: #e67e22; color: #fff; padding: 6px 0; font-size: 12px; letter-spacing: 1px; }
.header { background: #fff; padding: 35px 0; border-bottom: 1px solid #ffe8d6; }
.header-flex { display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; align-items: center; gap: 15px; }
.logo-icon { width: 50px; height: 50px; background: linear-gradient(135deg, #e67e22, #f39c12); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 28px; color: #fff; }
.logo h1 { font-size: 32px; color: #e67e22; font-weight: 700; }
.logo p { font-size: 12px; color: #999; letter-spacing: 3px; margin-top: 2px; }

/* 3. 导航条 */
.nav-wrap { background: #fff; box-shadow: 0 3px 10px rgba(0,0,0,0.04); position: sticky; top: 0; z-index: 1000; }
.nav { display: flex; height: 50px; align-items: center; justify-content: center; }
.nav li a { display: block; padding: 0 25px; line-height: 50px; font-size: 15px; color: #555; }
.nav li a:hover, .nav li.active a { color: #e67e22; background: #fff5f0; border-bottom: 3px solid #e67e22; }

/* 4. 首页英雄区 - 大图焦点 */
.hero-section { margin: 30px 0; display: grid; grid-template-columns: 2fr 1fr; gap: 20px; }
.hero-main { height: 400px; position: relative; border-radius: 12px; overflow: hidden; }
.hero-main img { width: 100%; height: 100%; object-fit: cover; }
.hero-caption { position: absolute; bottom: 0; left: 0; right: 0; padding: 40px; background: linear-gradient(transparent, rgba(0,0,0,0.8)); color: #fff; }
.hero-caption .label { background: #27ae60; padding: 5px 15px; font-size: 12px; font-weight: bold; display: inline-block; border-radius: 3px; margin-bottom: 15px; }
.hero-caption h2 { font-size: 28px; margin-bottom: 10px; }
.hero-summary { font-size: 14px; opacity: 0.8; }

.hero-side { display: flex; flex-direction: column; gap: 20px; }
.hero-side-item { flex: 1; position: relative; border-radius: 10px; overflow: hidden; }
.hero-side-item img { width: 100%; height: 100%; object-fit: cover; }
.hero-side-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.3); display: flex; align-items: flex-end; padding: 20px; color: #fff; font-weight: bold; font-size: 14px; transition: 0.3s; }
.hero-side-item:hover .hero-side-overlay { background: rgba(230, 126, 34, 0.7); }

/* 5. 善心格子卡片 */
.charity-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; margin-bottom: 50px; }
.charity-card { background: #fff; border-radius: 10px; overflow: hidden; transition: 0.3s; border: 1px solid #ffe8d6; }
.charity-card:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(230, 126, 34, 0.1); }
.charity-img { height: 200px; overflow: hidden; }
.charity-img img { width: 100%; height: 100%; object-fit: cover; }
.charity-info { padding: 20px; }
.charity-info .tag { color: #27ae60; font-size: 12px; font-weight: bold; margin-bottom: 8px; display: block; }
.charity-info h3 { font-size: 17px; margin-bottom: 12px; height: 48px; overflow: hidden; line-height: 1.4; }
.charity-meta { font-size: 12px; color: #aaa; display: flex; justify-content: space-between; padding-top: 12px; border-top: 1px solid #fafafa; }

/* 6. 捐赠/项目进度条 */
.donate-bar { background: #fff; border-radius: 10px; padding: 25px; margin-bottom: 50px; border: 1px solid #ffe8d6; }
.donate-bar h3 { font-size: 20px; color: #e67e22; margin-bottom: 20px; display: flex; align-items: center; }
.donate-bar h3::before { content: "❤"; margin-right: 10px; font-size: 24px; }
.progress-item { margin-bottom: 20px; }
.progress-item label { font-size: 14px; margin-bottom: 8px; display: block; }
.progress-track { height: 12px; background: #f1f1f1; border-radius: 6px; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(to right, #27ae60, #2ecc71); border-radius: 6px; transition: width 1s ease; }

/* 7. 板块标题 */
.section-head { display: flex; align-items: center; margin-bottom: 25px; margin-top: 50px; }
.section-head h2 { font-size: 24px; color: #e67e22; font-weight: 700; }
.section-head .line { flex: 1; height: 1px; background: #ffe8d6; margin-left: 25px; }

/* 8. 内容页样式 */
.article-container { display: grid; grid-template-columns: 840px 330px; gap: 30px; margin: 30px 0; }
.article-wrap { background: #fff; padding: 45px; border-radius: 12px; border: 1px solid #ffe8d6; }
.article-header { border-bottom: 1px solid #f0f0f0; padding-bottom: 30px; margin-bottom: 35px; }
.article-header h1 { font-size: 30px; color: #1a1a1a; line-height: 1.3; margin-bottom: 20px; }
.article-meta { font-size: 13px; color: #999; display: flex; gap: 20px; }
.article-body { font-size: 16px; color: #444; line-height: 1.9; }
.article-body p { margin-bottom: 25px; }
.article-body img { border-radius: 8px; margin: 30px 0; }
.article-footer-line { margin-top: 50px; padding-top: 25px; border-top: 1px solid #f0f0f0; display: flex; justify-content: space-between; font-weight: bold; color: #e67e22; font-size: 14px; }

/* 9. 侧边栏 */
.side-box { background: #fff; border-radius: 10px; padding: 20px; margin-bottom: 25px; border: 1px solid #ffe8d6; }
.side-box-title { font-size: 17px; font-weight: 700; color: #e67e22; margin-bottom: 18px; border-left: 4px solid #27ae60; padding-left: 12px; }
.hot-list li { padding: 10px 0; border-bottom: 1px dashed #f0f0f0; display: flex; gap: 10px; align-items: flex-start; }
.hot-num { width: 22px; height: 22px; background: #fdf2f0; color: #e67e22; text-align: center; line-height: 22px; font-size: 11px; font-weight: bold; border-radius: 4px; flex-shrink: 0; }

/* 10. 分页与页脚 */
.pagination { margin: 40px 0; text-align: center; }
.pagination li { display: inline-block; margin: 0 4px; }
.pagination li a { display: block; padding: 8px 16px; background: #fff; border: 1px solid #ffe8d6; border-radius: 6px; color: #e67e22; }
.pagination li.thisclass a { background: #e67e22; color: #fff; border-color: #e67e22; }

.footer { background: #333; color: #bbb; padding: 60px 0 30px; margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 50px; }
.footer h4 { color: #fff; margin-bottom: 20px; font-size: 16px; }
.footer-links a { color: #999; display: block; margin-bottom: 10px; font-size: 13px; }
.footer-bottom { border-top: 1px solid #444; margin-top: 40px; padding-top: 25px; text-align: center; font-size: 12px; }
