* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft Yahei", sans-serif;
    color: #333; line-height: 1.7; background: #fff;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
.container { width: 92%; max-width: 1200px; margin: 0 auto; }

.btn {
    display: inline-block; padding: 10px 24px; background: #f28c60; color: #fff;
    border-radius: 99px; border: none; cursor: pointer; font-size: 15px;
    transition: .2s; text-align: center;
}
.btn:hover { background: #e07346; }
.btn-gray { background: #9aa0a6; }
.btn-gray:hover { background: #85898f; }
.btn.disabled { cursor: not-allowed; opacity: .8; }
.btn-ghost { background: transparent; border: 1px solid #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.2); }
.btn-full { width: 100%; }

.section { padding: 56px 0; }
.bg-light { background: #fdf6f2; }
.title { text-align: center; font-size: 26px; margin-bottom: 32px; color: #3a3a3a; }
.empty { text-align: center; color: #999; padding: 24px 0; }
.meta { font-size: 14px; color: #777; margin: 6px 0 12px; }

/* 提示 */
.tip { color: #e64340; background: #fff5f5; padding: 10px 14px; border-radius: 8px; margin-bottom: 22px; font-size: 14px; }
.alert-ok { background: #e7f7ed; color: #2f9e5f; padding: 12px 16px; border-radius: 10px; margin-bottom: 18px; font-size: 15px; }
.alert-err { background: #fdecec; color: #c53030; padding: 12px 16px; border-radius: 10px; margin-bottom: 18px; font-size: 14px; }
.empty-box { text-align: center; padding: 60px 0; }
.empty-box p { color: #888; margin-bottom: 20px; }

/* 头部 */
.header { background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.06); padding: 14px 0; position: sticky; top: 0; z-index: 99; }
.header .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.logo { font-size: 20px; font-weight: 700; color: #f28c60; display: inline-flex; align-items: center; gap: 6px; }
.logo .logo-icon { font-size: 22px; line-height: 1; }
.logo .logo-img { height: 30px; width: auto; border-radius: 6px; }
.nav { display: flex; flex-wrap: wrap; gap: 4px; }
.nav a { padding: 6px 10px; font-size: 14px; border-radius: 6px; color: #555; }
.nav a:hover { color: #f28c60; }
.nav a.active { color: #f28c60; font-weight: 600; background: #fdf1ea; }

/* 横幅 */
.banner {
    height: 400px;
    background: linear-gradient(rgba(0,0,0,.35), rgba(0,0,0,.5)), url("../upload/banner-home.jpg") center/cover no-repeat;
    display: flex; align-items: center; color: #fff;
}
.banner-sm { height: 260px; background: linear-gradient(rgba(242,140,96,.55), rgba(224,115,70,.65)), url("../upload/banner-donate.jpg") center/cover no-repeat; }
.banner-text { width: 92%; max-width: 1200px; margin: 0 auto; }
.banner-text h1 { font-size: 40px; margin-bottom: 12px; }
.banner-text p { font-size: 17px; margin-bottom: 26px; opacity: .95; }

/* 公告 */
.notice-panel { background: #fff; border: 1px solid #f3e3d9; border-radius: 14px; padding: 22px 24px; }
.notice-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.notice-head h2 { font-size: 20px; }
.notice-head .more { font-size: 14px; color: #f28c60; }
.notice-list { list-style: none; }
.notice-list li { padding: 10px 0; border-bottom: 1px dashed #eee; font-size: 15px; }
.notice-list li:last-child { border-bottom: none; }
.notice-list li a { display: block; }
.notice-list li a:hover { color: #f28c60; }
.notice-list .dot { display: inline-block; width: 6px; height: 6px; background: #f28c60; border-radius: 50%; margin-right: 10px; vertical-align: middle; }
.notice-list .date { float: right; color: #aaa; font-size: 13px; }
.badge-top { display: inline-block; background: #ffe3d4; color: #e07346; font-size: 12px; padding: 1px 6px; border-radius: 4px; margin-right: 8px; }

.notice-wrap { max-width: 860px; }
.notice-item { background: #fff; border: 1px solid #f0f0f0; border-radius: 12px; padding: 20px 22px; margin-bottom: 16px; }
.notice-item h3 { font-size: 17px; margin-bottom: 6px; }
.notice-item .time { font-size: 13px; color: #aaa; margin-bottom: 10px; }
.notice-item .content { font-size: 15px; color: #555; line-height: 1.9; }

/* 统计 */
.stats-section { padding: 36px 0; }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat-card { text-align: center; padding: 22px 10px; background: #fdf6f2; border-radius: 12px; }
.stat-card b { display: block; font-size: 24px; color: #f28c60; }
.stat-card span { font-size: 13px; color: #888; }

/* 筛选 */
.filter-bar { display: flex; gap: 10px; justify-content: center; margin-bottom: 28px; flex-wrap: wrap; }
.filter-btn {
    padding: 7px 18px; border: 1px solid #eee; background: #fff; border-radius: 99px;
    font-size: 14px; color: #666; cursor: pointer;
}
.filter-btn:hover { border-color: #f28c60; color: #f28c60; }
.filter-btn.active { background: #f28c60; border-color: #f28c60; color: #fff; }

/* 动物卡片 */
.animal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; }
.animal-card { background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 4px 14px rgba(0,0,0,.07); transition: .25s; }
.animal-card:hover { transform: translateY(-6px); box-shadow: 0 10px 24px rgba(0,0,0,.1); }
.animal-card img { width: 100%; height: 200px; object-fit: cover; background: #f5f5f5; }
.card-body { padding: 16px; }
.card-body h3 { font-size: 18px; margin-bottom: 8px; }
.card-body h3 .sex { font-size: 13px; color: #999; font-weight: normal; margin-left: 6px; }
.tag { display: inline-block; font-size: 12px; background: #fce8dd; color: #e07346; padding: 3px 9px; border-radius: 4px; margin: 0 6px 6px 0; }
.tag.t-green { background: #e6f6ec; color: #2f9e5f; }
.tag.t-gray { background: #f0f0f0; color: #888; }
.card-body .btn { padding: 7px 16px; font-size: 14px; }

/* 入口卡片 */
.entry-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.entry-grid-2 { grid-template-columns: repeat(2, 1fr); max-width: 780px; margin: 0 auto; }
.entry-card { background: #fff; border-radius: 14px; padding: 28px 24px; text-align: center; box-shadow: 0 4px 14px rgba(0,0,0,.05); }
.entry-icon { font-size: 34px; margin-bottom: 10px; }
.entry-card h3 { margin-bottom: 10px; font-size: 18px; }
.entry-card p { font-size: 14px; color: #777; margin-bottom: 18px; }

/* 关于 / 联系 */
.about-wrap { max-width: 980px; margin: 0 auto; }
.about-wrap.with-img { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; max-width: 1040px; }
.about-img img { width: 100%; border-radius: 14px; object-fit: cover; }
.about-text { text-align: center; }
.about-wrap.with-img .about-text { text-align: left; }
.about-text p { margin-bottom: 14px; color: #555; }
.contact-info { text-align: center; }
.contact-info p { margin-bottom: 10px; color: #555; }

/* 详情 */
.detail-card { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.detail-img img { width: 100%; border-radius: 14px; background: #f5f5f5; }
.detail-info h2 { font-size: 26px; margin-bottom: 12px; }
.pet-tag span { display: inline-block; margin: 0 8px 8px 0; background: #fce8dd; color: #e07346; padding: 4px 12px; border-radius: 6px; font-size: 13px; }
.pet-desc { margin: 16px 0 26px; line-height: 1.9; color: #555; }
.detail-info .btn { margin: 0 10px 10px 0; }

/* 表单 */
.form-wrap { max-width: 660px; background: #fff; padding: 30px 28px; border-radius: 14px; box-shadow: 0 6px 24px rgba(0,0,0,.06); margin: 0 auto; }
.form-item { margin-bottom: 18px; }
.form-item label { display: block; margin-bottom: 6px; font-size: 15px; font-weight: 500; }
.form-item label i { color: #e64340; font-style: normal; }
.form-item input, .form-item select, .form-item textarea {
    width: 100%; padding: 11px 12px; border: 1px solid #e3e3e3; border-radius: 8px;
    font-size: 15px; font-family: inherit; background: #fafafa;
}
.form-item input:focus, .form-item select:focus, .form-item textarea:focus { outline: none; border-color: #f28c60; background: #fff; }

/* 捐赠 */
.donate-info { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.donate-card { background: #fdf6f2; border-radius: 12px; padding: 22px; }
.donate-card h3 { margin-bottom: 10px; font-size: 17px; }
.donate-card p { font-size: 14px; color: #666; word-break: break-all; }
.donate-card .qr-img { width: 100%; max-width: 180px; margin: 0 auto 12px; border-radius: 10px; background: #fff; padding: 8px; }
.donate-note { margin-top: 24px; font-size: 14px; color: #888; text-align: center; }
.donor-wall { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.donor-wall li { background: #fdf6f2; border-radius: 10px; padding: 14px 16px; font-size: 14px; }
.donor-wall li b { color: #e07346; }
.donor-wall li p { color: #888; font-size: 13px; margin-top: 4px; }
.donor-wall li .donor-pet { color: #e07346; font-weight: 600; }

/* 自定义板块 */
.custom-inner { max-width: 900px; margin: 0 auto; text-align: center; }
.custom-inner p { margin-bottom: 12px; color: #555; }
.custom-inner-img { max-width: 900px; margin: 0 auto 22px; }
.custom-inner-img img { width: 100%; border-radius: 14px; }
.custom-more { margin-top: 18px; }
.custom-page { max-width: 900px; }
.custom-page-img { margin-bottom: 24px; }
.custom-page-img img { width: 100%; border-radius: 14px; }
.custom-page-text p { margin-bottom: 14px; color: #555; font-size: 15.5px; }
.custom-page-back { margin-top: 30px; text-align: center; }
.custom-page-back .btn { margin: 0 6px; }

/* 页脚 */
.footer { background: #2f3235; color: #bbb; text-align: center; padding: 26px 0; font-size: 13px; }
.footer a { color: #f28c60; }

/* 移动端 */
@media (max-width: 768px) {
    .banner { height: 300px; }
    .banner-text h1 { font-size: 26px; }
    .banner-text p { font-size: 15px; }
    .nav a { padding: 5px 7px; font-size: 13px; }
    .animal-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .animal-card img { height: 140px; }
    .card-body { padding: 12px; }
    .card-body h3 { font-size: 16px; }
    .detail-card { grid-template-columns: 1fr; gap: 20px; }
    .about-wrap.with-img { grid-template-columns: 1fr; gap: 18px; }
    .entry-grid, .entry-grid-2 { grid-template-columns: 1fr; }
    .donate-info { grid-template-columns: 1fr; }
    .stat-row { grid-template-columns: repeat(2, 1fr); }
    .form-wrap { padding: 20px 16px; }
    .section { padding: 36px 0; }
    .notice-list .date { display: none; }
}
@media (max-width: 480px) {
    .animal-grid { grid-template-columns: 1fr; }
    .animal-card img { height: 210px; }
}

/* 物品购置 */
.balance-row { margin-bottom: 8px; }
.stat-card-main { background: #fff4ec; border: 1px solid #f6c8b1; }
.stat-card-main b { color: #e07346; }
.balance-tip { text-align: center; color: #999; font-size: 13px; margin: 10px 0 26px; }
.purchase-list { max-width: 900px; margin: 0 auto; }
.purchase-list li { background: #fff; border: 1px solid #f0e6e0; border-radius: 14px; padding: 18px 22px; margin-bottom: 14px; }
.purchase-list li:hover { box-shadow: 0 6px 18px rgba(226,115,70,.10); }
.purchase-head { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.purchase-head h3 { font-size: 17px; margin: 0; color: #333; }
.purchase-amount { color: #e07346; font-size: 17px; white-space: nowrap; }
.purchase-meta { margin: 8px 0 0; color: #999; font-size: 13px; display: flex; gap: 16px; flex-wrap: wrap; }
.purchase-note { margin: 10px 0 0; color: #555; font-size: 14px; line-height: 1.7; }
.purchase-foot { max-width: 900px; margin: 26px auto 0; padding: 16px 20px; background: #fdf6f2; border-radius: 12px; color: #666; font-size: 14px; line-height: 1.8; }
.purchase-list.compact li { padding: 14px 18px; }
.purchase-home-foot { max-width: 900px; margin: 22px auto 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; color: #666; }
.purchase-home-foot b { color: #e07346; font-size: 18px; }
@media (max-width: 640px) { .purchase-head h3 { font-size: 15px; } }

/* 页脚备案信息 */
.footer .beian { margin-top: 6px; font-size: 12px; color: #999; }
.footer .beian a { color: #999; text-decoration: none; }
.footer .beian a:hover { color: #f28c60; }
.footer .beian .sep { margin: 0 6px; color: #ccc; }

/* 年月筛选 */
.month-bar { display: flex; align-items: center; justify-content: center; gap: 8px; margin: -8px 0 24px; flex-wrap: wrap; font-size: 14px; color: #888; }
.month-bar select { padding: 8px 12px; border: 1px solid #e6dcd5; border-radius: 8px; background: #fff; color: #555; font-size: 14px; }
.month-bar select:focus { outline: none; border-color: #f28c60; }
.month-sum { text-align: center; color: #666; font-size: 14px; margin: 0 0 18px; }
.month-sum b { color: #e07346; }

/* 合作伙伴 */
.partner-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; max-width: 1000px; margin: 0 auto; }
.partner-card { background: #fff; border: 1px solid #f0e6e0; border-radius: 14px; padding: 22px 18px; text-align: center; transition: box-shadow .2s; }
.partner-card:hover { box-shadow: 0 8px 22px rgba(226,115,70,.12); }
.partner-logo { height: 84px; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.partner-logo img { max-height: 84px; max-width: 160px; object-fit: contain; }
.partner-logo-text { width: 70px; height: 70px; margin: 7px auto 12px; border-radius: 50%; background: #fdf1ea; color: #e07346; font-size: 28px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.partner-card h3 { font-size: 16px; margin: 0 0 8px; color: #333; }
.partner-card h3 a { color: #333; text-decoration: none; }
.partner-card h3 a:hover { color: #e07346; }
.partner-card p { margin: 0; font-size: 13px; color: #777; line-height: 1.7; }

/* 广告位 */
.ad-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; max-width: 1000px; margin: 0 auto; }
.ad-card { background: #fff; border: 1px solid #f0e6e0; border-radius: 14px; overflow: hidden; }
.ad-card img { width: 100%; display: block; }
.ad-body { padding: 12px 16px; }
.ad-body h3 { font-size: 15px; margin: 0 0 4px; color: #333; }
.ad-body p { margin: 0; font-size: 13px; color: #888; }
.ad-tag { font-size: 11px; color: #bbb; }
@media (max-width: 640px) { .partner-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } .partner-card { padding: 16px 12px; } }

/* 详情页补充信息 */
.pet-extra { margin: 6px 0; color: #666; font-size: 14px; line-height: 1.75; }
.pet-extra b { color: #e07346; font-weight: 600; }

/* 待领养列表「查看更多」 */
.list-more { text-align: center; margin-top: 26px; }

/* 物品购置：两列卡片，描边更明显 */
.purchase-list.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.purchase-list.grid li { margin-bottom: 0; border: 1.5px solid #ecd9cd; background: #fffdfb; }
.purchase-list.grid li:hover { border-color: #f0bfa6; }
.purchase-list.grid .purchase-note { font-size: 13px; }
@media (max-width: 760px) { .purchase-list.grid { grid-template-columns: 1fr; } }

/* 首页统计卡：购置支出可点击跳转 */
.stat-card-link { display: block; text-decoration: none; border: 1.5px solid #f6c8b1; transition: .2s; }
.stat-card-link:hover { background: #fff2e9; border-color: #f28c60; transform: translateY(-2px); }
.stat-card-link span { color: #c2754d; }

/* 捐赠方式卡片图标 */
.donate-card h3 { display: flex; align-items: center; gap: 6px; }
.donate-icon { width: 26px; height: 26px; object-fit: contain; border-radius: 6px; }
.donate-icon-emoji { font-size: 20px; line-height: 1; }
