/* Header */
.aid-home .header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.aid-home .header-title {
  font-size: 17px;
  font-weight: 600;
}

.aid-home .logo-section {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #1677ff;
  font-weight: 600;
  font-size: 16px;
}

.aid-home .logo-icon {
  width: 28px;
  height: 28px;
  background: #1677ff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 14px;
}

.aid-home .btn-outline {
  border: 1px solid #1677ff;
  color: #1677ff;
  background: #fff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
}

.aid-home .btn-primary {
  background: #ff6b00;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 24px;
  font-size: 15px;
  font-weight: 500;
}

.aid-home .btn-blue {
  background: #1677ff;
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
}

/* Banner */
.aid-home .banner {
  background: #fff8e8;
  color: #d46b08;
  text-align: center;
  padding: 12px;
  font-weight: 600;
  font-size: 15px;
  margin: 10px 12px;
  border-radius: 8px;
}

.aid-home .stats {
  padding: 8px 16px 16px;
  font-size: 14px;
  color: #666;
}

.aid-home .stats strong {
  color: #ff6b00;
}

/* Case Cards */
.aid-home .case-grid {
  display: flex;
  gap: 8px;
  padding: 0 12px 16px;
  overflow-x: auto;
}

.aid-home .case-card {
  flex: 0 0 160px;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.aid-home .case-img {
  height: 110px;
  background: #eee center/cover no-repeat;
  position: relative;
}

.aid-home .case-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.5);
  color: #fff;
  font-size: 11px;
  padding: 4px 6px;
  display: flex;
  justify-content: space-between;
}

.aid-home .case-info {
  padding: 8px;
}

.aid-home .sos-tag {
  background: #ff4d4f;
  color: #fff;
  font-size: 10px;
  padding: 1px 4px;
  border-radius: 2px;
  margin-right: 4px;
}

.aid-home .case-title {
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.aid-home .progress-bar {
  height: 4px;
  background: #f0f0f0;
  border-radius: 2px;
  margin: 6px 0;
  overflow: hidden;
}

.aid-home .progress-fill {
  height: 100%;
  background: #ff6b00;
  width: 30%;
}

.aid-home .raised {
  font-size: 12px;
  color: #ff6b00;
  font-weight: 600;
}

.aid-home .user-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 12px;
  color: #999;
}

.aid-home .avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ddd;
  margin-right: 4px;
}

/* List Cases */
.aid-home .section-title {
  font-size: 16px;
  font-weight: 600;
  padding: 16px 16px 8px;
}

.aid-home .list-case {
  background: #fff;
  margin: 8px 12px;
  padding: 12px;
  border-radius: 10px;
  display: flex;
  gap: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.aid-home .list-img {
  width: 80px;
  height: 80px;
  border-radius: 6px;
  background: #eee center/cover;
  flex-shrink: 0;
}

.aid-home .list-content {
  flex: 1;
}

.aid-home .list-title {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.aid-home .list-meta {
  font-size: 12px;
  color: #999;
  margin: 4px 0;
}

.aid-home .list-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
}

.aid-home .tag-orange {
  color: #ff6b00;
  font-size: 12px;
}


.aid-home {background:white;min-height:100vh;margin:0 -16px;padding-bottom:72px}
.aid-home a {color:inherit;text-decoration:none}
.aid-home .btn-outline {color:#1677ff}
.aid-home .case-img img {width:100%;height:100%;object-fit:cover}
.aid-home .list-img {object-fit:cover}
.aid-home .btn-primary {padding:4px 10px;font-size:12px}
.aid-home .list-content {min-width:0}
.aid-home progress {width:100%;height:5px;accent-color:#ff6b00}

.aid-home .section-title{margin:0;text-align:left}
.aid-featured{display:flex;gap:8px;overflow-x:auto;padding:0 12px 8px}
.aid-featured .list-case{min-width:0;flex:0 0 min(68%,210px);display:flex;flex-direction:column;margin:0}
.aid-featured .list-img{width:100%;height:88px}
.aid-home .list-title{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden;overflow-wrap:anywhere;white-space:normal;line-height:1.4;height:2.8em;text-overflow:ellipsis}
.aid-pulse{position:fixed;bottom:calc(88px + env(safe-area-inset-bottom,0px));right:max(12px,calc((100vw - 500px)/2 + 12px));z-index:8;display:flex;align-items:flex-end;flex-direction:column;pointer-events:none}
.aid-heart{height:44px;width:44px;border-radius:50%;display:grid;place-items:center;font-size:30px;color:#fff3d5;background:radial-gradient(at 32% 20%,#ffd875,#ff9c26 62%,#ff7817);box-shadow:0 2px 8px #ae580033;animation:aid-beat 1.6s ease-in-out infinite}
.aid-heart-label,.aid-bubble{background:#ff961f;color:white;border-radius:20px;font-size:12px;padding:2px 8px}
.aid-bubbles{position:relative;width:125px;height:58px;margin-bottom:4px}
.aid-bubble{position:absolute;bottom:0;right:0;display:flex;align-items:center;gap:4px;max-width:125px;height:23px;box-sizing:border-box;transition:opacity .45s,transform .45s;animation:aid-arrive .4s ease-out}
.aid-bubble span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.aid-bubble img{width:18px;height:18px;border-radius:50%;object-fit:cover}
.aid-bubble.older{transform:translateY(-27px);opacity:.42}
@keyframes aid-arrive{from{opacity:0;transform:translateY(9px)}}
@keyframes aid-beat{50%{transform:scale(1.07)}}
@media(prefers-reduced-motion:reduce){.aid-heart,.aid-bubble{animation:none;transition:none}}

.aid-home .aid-list [hidden],.aid-home .aid-expand[hidden]{display:none}
.aid-home .aid-expand{display:block;width:calc(100% - 24px);margin:8px 12px;padding:10px;background:#fff;color:#385577;border:1px solid #e6ebf0;border-radius:10px}
.aid-window{--row:54px;height:calc(20 * var(--row));overflow:hidden;margin:0 12px;background:white;border-radius:12px;box-shadow:0 1px 5px #263b4d12}
.aid-donor{height:var(--row);box-sizing:border-box;display:flex;align-items:center;gap:7px;margin:0 10px;border-bottom:1px solid #f0f1f3;font-size:13px;white-space:nowrap}
.aid-donor img,.aid-initial{flex:none;width:30px;height:30px;border-radius:50%;object-fit:cover}
.aid-initial{display:grid;place-items:center;background:#fff2dd;color:#944600}
.aid-donor b{min-width:0;overflow:hidden;text-overflow:ellipsis}
.aid-donor em{color:#d45900;font-style:normal}
.aid-donor small{color:#85521f}
.aid-donor time{margin-left:auto;color:#697586;font-size:11px}
@media(max-width:350px){.aid-donor{gap:3px;margin:0 5px;font-size:12px}}

.aid-community .aid-donor,.aid-community .aid-donor *{font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;font-style:normal}
.aid-community .aid-donor{font-size:14px;line-height:1.45}
.aid-community .aid-donor em,.aid-community .aid-donor small,.aid-community .aid-donor time{font-size:inherit;font-weight:400}
.aid-emblem{width:74px;height:76px;position:relative;display:grid;justify-items:center;align-items:start}
.aid-emblem .aid-heart{width:68px;height:68px;font-size:42px;line-height:1}
.aid-emblem .aid-heart-label{position:absolute;bottom:0;left:50%;transform:translateX(-50%);padding:3px 8px;white-space:nowrap;line-height:18px;box-shadow:0 1px 4px #bc5b1833}
.aid-pulse .aid-bubble{max-width:none;white-space:nowrap;font:600 12px/1.2 -apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif}
.aid-bubble .bubble-heart{color:white}

.aid-community .aid-donor em{font-size:18px;font-weight:700;line-height:1.2;flex:none}
.aid-home .aid-pulse .aid-emblem{animation:aid-emblem-float 1.8s ease-in-out infinite!important}
@keyframes aid-emblem-float{0%,100%{transform:translateY(0)}50%{transform:translateY(-12px)}}
@media(prefers-reduced-motion:reduce){.aid-home .aid-pulse .aid-emblem{animation-name:aid-emblem-gentle!important}}
@keyframes aid-emblem-gentle{0%,100%{transform:translateY(0)}50%{transform:translateY(-4px)}}
.aid-pulse .aid-bubbles{margin-bottom:14px}

.aid-home .list-footer .btn-primary{flex:0 0 auto;white-space:nowrap}
.aid-home .list-footer .raised{min-width:0;overflow-wrap:anywhere}
