/**
 * 文件名：charity.css
 * 用途：公益模块专用样式（首页公益行动区、生日愿望认领、公益信任页）
 *      2026-10-22 改版：配色、边框、圆角、阴影、上浮全部对齐全站粉系
 *      （border 2px #f9ccd7 / radius 10px / 双层阴影 / hover translateY(-3px)），
 *      主色统一用全站粉 #ff7a93，hover 深一档 #ff5a80。
 * 创建日期：2026-10-22
 */

:root {
    /* 与全站 indexnew.css 同一套取值，改这里不改结构 */
    --charity-pink: #ff7a93;
    --charity-pink-deep: #ff5a80;
    --charity-line: #f9ccd7;
    --charity-soft: #fff0f4;
    --charity-paper: #fff7f9;
    --charity-ink: #ff7a93;
    --charity-ink-soft: #ff9aae;
    --charity-warm: #ff7a93;
    --charity-warm-soft: #fff0f4;
    --charity-text: #555;
    --charity-muted: #999;
    --charity-ok: #ff7a93;
    --charity-radius: 10px;
    /* 2026-11-20：与全站版块阴影令牌 --shadow-card 取值对齐
       （原来是 15px 羽化 + 75% 不透明度的粉色，属于「发光」而不是「阴影」） */
    --charity-shadow: 0 2px 6px rgba(180, 90, 120, .05), 0 10px 26px rgba(255, 122, 147, .14);
    --charity-shadow-hover: 0 2px 6px rgba(180, 90, 120, .05), 0 12px 30px rgba(255, 122, 147, .2);
}

/* ============ 通用容器：与全站 .moe-container 完全一致 ============ */
.charity-wrap {
    width: 98%;
    max-width: 1500px;
    margin: 0 auto;
    padding: 16px 0;
    box-sizing: border-box;
}

/* 公益卡片基础（与 .a-module / .ablessing-form 同款） */
.charity-section {
    background: #fff;
    border: 2px solid var(--charity-line);
    border-radius: var(--charity-radius);
    padding: 20px;
    margin: 0 0 25px;
    box-shadow: var(--charity-shadow);
    transition: all .3s ease;
    box-sizing: border-box;
}

.charity-section:hover {
    box-shadow: var(--charity-shadow-hover);
    transform: translateY(-3px);
}

.charity-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 700;
    color: var(--charity-pink);
}

.charity-section-title::before {
    content: "";
    width: 4px;
    height: 18px;
    border-radius: 2px;
    background: var(--charity-pink);
}

.charity-section-desc {
    margin: 0 0 16px;
    font-size: 13px;
    line-height: 1.7;
    color: var(--charity-muted);
}

/* ============ 首页公益行动区 ============ */
.charity-hero {
    background: linear-gradient(180deg, #fffafc 0%, #ffffff 60%);
    border: 2px solid var(--charity-line);
    border-radius: var(--charity-radius);
    padding: 20px 22px;
    margin: 25px 0 25px;
    box-shadow: var(--charity-shadow);
    transition: all .3s ease;
    box-sizing: border-box;
}

.charity-hero:hover {
    box-shadow: var(--charity-shadow-hover);
    transform: translateY(-3px);
}

/* 首页：放在 .ahome-container 内，宽度与三栏主体 .amain-wrapper 逐断点对齐
   .amain-wrapper 取值：>1366 为 85%；1025-1366 与 ≤992 都是 100% */
.ahome-container > .charity-hero {
    width: 1480px;
}

/* 断点与 .amain-wrapper 完全一致：1025-1366 铺满，993-1024 仍是 85%（与三栏基础值同步） */
@media (min-width: 1025px) and (max-width: 1366px) {
    .ahome-container > .charity-hero {
        width: 100%;
    }
}

.charity-hero-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 4px;
    justify-content: center;
}

.charity-hero-title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #000000;
}

.charity-hero-tagline {
    font-size: 13px;
    color: var(--charity-pink);
    font-weight: 600;
}

.charity-hero-lead {
    margin: 6px 0 16px;
    font-size: 13.5px;
    line-height: 1.8;
    color: var(--charity-text);
    text-align: center;
}

.charity-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.charity-stat {
    background: #fffafb;
    border: 1px dashed var(--charity-line);
    border-radius: var(--charity-radius);
    padding: 12px 10px;
    text-align: center;
    transition: all .3s ease;
}

.charity-stat:hover {
    background: var(--charity-soft);
    transform: translateY(-3px);
}

.charity-stat-num {
    display: block;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.2;
    color: var(--charity-pink);
    font-variant-numeric: tabular-nums;
}

.charity-stat-num small {
    font-size: 12px;
    font-weight: 600;
    margin-left: 2px;
    color: var(--charity-muted);
}

.charity-stat-label {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: var(--charity-muted);
}

.charity-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

/* 按钮：与全站 .asubmit-btn 同款 */
.charity-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 11px 26px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
    transition: all .3s ease;
    cursor: pointer;
}

.charity-btn-primary {
    background: var(--charity-pink);
    color: #fff;
    box-shadow: 0 4px 8px rgba(255, 122, 147, .25);
}

.charity-btn-primary:hover {
    background: var(--charity-pink-deep);
    color: #fff;
    box-shadow: 0 5px 10px rgba(255, 122, 147, .3);
    transform: translateY(-2px);
}

.charity-btn-ghost {
    background: #fff;
    color: var(--charity-pink);
    border-color: var(--charity-line);
}

.charity-btn-ghost:hover {
    background: var(--charity-soft);
    border-color: var(--charity-pink);
    color: var(--charity-pink-deep);
    transform: translateY(-2px);
}

/* ============ 生日愿望列表 ============ */
.wish-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 17px;
    /* 与下方「认领之后会发生什么」拉开和其它模块一致的间距 */
    margin: 0 0 25px;
}

.wish-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 2px solid var(--charity-line);
    border-radius: var(--charity-radius);
    overflow: hidden;
    box-shadow: var(--charity-shadow);
    transition: all .3s ease;
}

.wish-card:hover {
    box-shadow: var(--charity-shadow-hover);
    transform: translateY(-3px);
}

.wish-card-cover {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 200px;
    background: var(--charity-soft);
    overflow: hidden;
}

.wish-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.wish-card-cover .wish-cover-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 34px;
    color: var(--charity-ink-soft);
}

.wish-card-body {
    padding: 14px 14px 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.wish-card-title {
    margin: 0 0 6px;
    font-size: 15.5px;
    font-weight: 700;
    color: var(--charity-text);
    line-height: 1.5;
}

.wish-card-meta {
    font-size: 12.5px;
    color: var(--charity-muted);
    margin-bottom: 8px;
}

.wish-card-desc {
    font-size: 13px;
    line-height: 1.7;
    color: #666;
    margin: 0 0 12px;
    flex: 1;
}

.wish-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.wish-amount {
    font-size: 13px;
    color: var(--charity-pink);
    font-weight: 700;
}

/* 状态标签 */
.wish-badge {
    display: inline-block;
    padding: 2px 9px;
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1.8;
    white-space: nowrap;
}

.wish-badge-wait {
    background: var(--charity-soft);
    color: var(--charity-pink-deep);
}

.wish-badge-claim {
    background: var(--charity-soft);
    color: var(--charity-pink);
}

.wish-badge-done {
    background: #f6f6f6;
    color: #666;
}

/* 筛选条 */
.wish-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 18px;
}

.wish-filter a {
    padding: 6px 14px;
    border-radius: 6px;
    border: 1px solid var(--charity-line);
    background: #fff;
    font-size: 13px;
    color: var(--charity-text);
    text-decoration: none;
    transition: all .3s ease;
}

.wish-filter a.on,
.wish-filter a:hover {
    border-color: var(--charity-pink);
    color: var(--charity-pink);
    background: var(--charity-soft);
}

/* ---------- 分页（与全站保持一致） ---------- */
.charity-pager {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin: 26px 0 25px;
}

.charity-pager a,
.charity-pager span {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid var(--charity-line);
    background: #fff;
    font-size: 13.5px;
    color: var(--charity-text);
    text-decoration: none;
    line-height: 1.4;
}

.charity-pager a:hover {
    border-color: var(--charity-pink);
    color: var(--charity-pink);
    background: var(--charity-soft);
}

.charity-pager .current {
    background: var(--charity-pink);
    border-color: var(--charity-pink);
    color: #fff;
}

/* ============ 愿望详情 ============ */
.wish-detail {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: 20px;
    align-items: start;
    margin: 25px 0 25px;
}

.wish-detail-main {
    background: #fff;
    border: 2px solid var(--charity-line);
    border-radius: var(--charity-radius);
    padding: 20px;
    box-shadow: var(--charity-shadow);
    box-sizing: border-box;
    height: 100%;
}

.wish-detail-title {
    margin: 0 0 27px;
    font-size: 21px;
    font-weight: 700;
    color: #333;
    line-height: 1.5;
    text-align: center;
}

.wish-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    font-size: 13px;
    color: var(--charity-muted);
    margin-bottom: 14px;
}

/* 2026-10-28 优化：封面图限高，不再占掉半个屏幕。
   object-fit: cover 会把多余部分裁成横幅（想完整显示不裁切，改成 contain 即可） */
.wish-detail-cover {
    width: 100%;
    max-height: 600px;
    object-fit: cover;
    object-position: center;
    border-radius: var(--charity-radius);
    margin-bottom: 16px;
    display: block;
    background: var(--charity-soft);
}

.wish-detail-text {
    font-size: 14.5px;
    line-height: 1.9;
    color: #444;
    word-break: break-word;
}

.wish-note {
    margin-top: 18px;
    padding: 12px 14px;
    background: var(--charity-paper);
    border: 1px dashed var(--charity-line);
    border-radius: var(--charity-radius);
    font-size: 12.5px;
    line-height: 1.8;
    color: #8a7a80;
}

/* 2026-11-13 愿望详情页卡片悬停浮动：与列表页 .wish-card 同款规格（全站统一） */
.wish-detail-main,
.wish-claim-box,
.wish-note {
    transition: all .3s ease;
}
.wish-detail-main:hover,
.wish-claim-box:hover,
.wish-note:hover {
    box-shadow: var(--charity-shadow-hover);
    transform: translateY(-3px);
}

/* ============ 2026-11-15：公益页里的「相关推荐」块 ============
   style.css 里 .related-blessings 已经按全站卡片规范统一了阴影（粉色光晕 .75），
   但公益页的卡片用的是 2px 边框 + 10px 圆角，推荐块跟在它们中间时，
   边框粗细和圆角还得跟着本页走，否则并排看仍然差一口气。
   只在 .charity-wrap 内生效，不影响文章页 / 祝福页 / 生日档案页。 */
.charity-wrap .related-blessings {
    border-width: 2px;
    border-radius: var(--charity-radius);
}

/* 认领侧栏 */
.wish-claim-box {
    background: #fff;
    border: 2px solid var(--charity-line);
    border-radius: var(--charity-radius);
    padding: 18px;
    box-shadow: var(--charity-shadow);
    /* 2026-10-28：右栏新增寻亲推荐块，取消 sticky，避免认领框遮挡下方内容 */
    position: static;
    box-sizing: border-box;
}

.wish-claim-box h3 {
    margin: 0 0 27px;
    font-size: 16px;
    color: #333;
}

.wish-claim-box label {
    display: block;
    margin: 10px 0 5px;
    font-size: 13px;
    color: var(--charity-text);
}

.wish-claim-box input,
.wish-claim-box textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 9px 12px;
    border: 1px solid var(--charity-line);
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    background: #fff;
    transition: all .3s ease;
}

.wish-claim-box input:focus,
.wish-claim-box textarea:focus {
    outline: none;
    border-color: var(--charity-pink);
    box-shadow: 0 0 0 3px rgba(255, 122, 147, .14);
}

.wish-claim-box .charity-btn {
    width: 91%;
    margin-top: 14px;
}

.wish-claimed-tip {
    padding: 14px;
    border-radius: var(--charity-radius);
    background: var(--charity-soft);
    color: var(--charity-pink-deep);
    font-size: 13.5px;
    line-height: 1.8;
    text-align: center;
}

/* ============ 愿望详情 · 右栏寻亲推荐 ============ */
/* 新增日期：2026-10-28 */
.wish-xunqin-rec {
    margin-top: 18px;
    padding: 16px 16px 10px;
    background: #fff;
    border: 2px solid var(--charity-line);
    border-radius: var(--charity-radius);
    box-shadow: var(--charity-shadow);
    box-sizing: border-box;
}

.wish-xunqin-rec h3 {
    margin: 0 0 10px;
    font-size: 15px;
    font-weight: 700;
    color: var(--charity-pink);
    line-height: 1.5;
}

.wish-xunqin-rec h3 span {
    margin-left: 4px;
    font-size: 11.5px;
    font-weight: 400;
    color: #b3a6ab;
}

.wish-xunqin-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.wish-xunqin-list li + li {
    border-top: 1px dashed var(--charity-line);
}

.wish-xunqin-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 0;
    text-decoration: none;
    color: inherit;
}

.wish-xunqin-thumb {
    flex: 0 0 auto;
    width: 64px;
    height: 64px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--charity-soft);
    border: 1px solid var(--charity-line);
}

.wish-xunqin-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wish-xunqin-info {
    display: block;
    min-width: 0;
}

.wish-xunqin-title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    font-size: 13px;
    line-height: 1.55;
    color: #4a4046;
    transition: color .25s ease;
}

.wish-xunqin-list a:hover .wish-xunqin-title {
    color: var(--charity-pink);
}

.wish-xunqin-date {
    display: block;
    margin-top: 3px;
    font-size: 11.5px;
    color: #b3a6ab;
}

.wish-xunqin-more {
    display: block;
    margin-top: 8px;
    padding-top: 9px;
    border-top: 1px dashed var(--charity-line);
    text-align: center;
    font-size: 12.5px;
    color: var(--charity-pink);
    text-decoration: none;
}

.wish-xunqin-more:hover {
    text-decoration: underline;
}

/* ============ 前台提交表单（替 TA 许个愿） ============ */
.charity-form-group {
    margin: 0 0 18px;
    padding: 0 0 14px;
    border-bottom: 1px dashed var(--charity-line);
}

.charity-form-group:last-of-type {
    border-bottom: 0;
    padding-bottom: 0;
}

.charity-form-group h3 {
    margin: 0 0 4px;
    font-size: 15px;
    color: var(--charity-pink);
}

.charity-form-hint {
    margin: 0 0 12px;
    font-size: 12.5px;
    line-height: 1.75;
    color: var(--charity-muted);
}

.charity-form-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 12px;
}

.charity-field {
    display: block;
    min-width: 0;
}

.charity-field-wide {
    grid-column: span 2;
}

.charity-field-label {
    display: block;
    margin: 0 0 6px;
    font-size: 13px;
    color: var(--charity-text);
}

.charity-field-label i {
    color: var(--charity-pink-deep);
    font-style: normal;
}

.charity-field input,
.charity-field select,
.charity-field textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 9px 12px;
    font-size: 14px;
    font-family: inherit;
    color: #333;
    background: #fff;
    border: 1px solid var(--charity-line);
    border-radius: 6px;
    transition: all .3s ease;
}

.charity-field textarea {
    resize: vertical;
    line-height: 1.8;
}

.charity-field input:focus,
.charity-field select:focus,
.charity-field textarea:focus {
    outline: none;
    border-color: var(--charity-pink);
    box-shadow: 0 0 0 3px rgba(255, 122, 147, .14);
}

.charity-file {
    display: block;
    font-size: 13px;
    color: var(--charity-text);
}

.charity-alert {
    margin: 0 0 16px;
    padding: 12px 14px;
    border-radius: var(--charity-radius);
    background: var(--charity-soft);
    border: 1px solid var(--charity-line);
    color: var(--charity-pink-deep);
    font-size: 13.5px;
    line-height: 1.9;
}

.charity-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

/* ============ 公益信任页 ============ */
.charity-prose {
    background: #fff;
    border: 2px solid var(--charity-line);
    border-radius: var(--charity-radius);
    padding: 24px;
    font-size: 14.5px;
    line-height: 1.95;
    color: #444;
    box-shadow: var(--charity-shadow);
    transition: all .3s ease;
    box-sizing: border-box;
}

.charity-prose:hover {
    box-shadow: var(--charity-shadow-hover);
    transform: translateY(-3px);
}

.charity-prose h2 {
    margin: 26px 0 10px;
    font-size: 17px;
    color: var(--charity-pink);
    border-left: 4px solid var(--charity-pink);
    padding-left: 10px;
}

.charity-prose h2:first-child {
    margin-top: 0;
}

.charity-prose ul {
    padding-left: 20px;
    margin: 8px 0 14px;
}

/* 收掉正文卡片底部多余留白 */
.charity-prose > *:last-child {
    margin-bottom: 0;
}

.charity-prose li {
    margin: 5px 0;
}

.charity-prose a {
    color: var(--charity-pink);
    text-decoration: underline;
}

.charity-prose a:hover {
    color: var(--charity-pink-deep);
}

.charity-flows {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin: 16px 0 4px;
}

.charity-flow {
    background: var(--charity-paper);
    border: 1px dashed var(--charity-line);
    border-radius: var(--charity-radius);
    padding: 14px;
    font-size: 13px;
    line-height: 1.7;
    color: var(--charity-text);
    transition: all .3s ease;
}

.charity-flow:hover {
    background: var(--charity-soft);
    transform: translateY(-3px);
}

.charity-flow b {
    display: block;
    color: var(--charity-pink);
    font-size: 13.5px;
    margin-bottom: 4px;
}

.charity-flow span {
    display: block;
    color: var(--charity-pink);
    font-weight: 700;
    font-size: 12px;
    margin-bottom: 6px;
}

/* ============ 文章底部引导 ============ */
.article-charity-cta {
    margin: 17px 0 10px;
    padding: 18px 20px;
    border-radius: var(--charity-radius);
    background: var(--charity-paper);
    border: 2px solid var(--charity-line);
    font-size: 14px;
    line-height: 1.85;
    color: var(--charity-text);
    transition: all .3s ease;
}
/*
.article-charity-cta:hover {
    box-shadow: var(--charity-shadow-hover);
    transform: translateY(-3px);
}
*/
.article-charity-cta strong {
    color: var(--charity-pink);
    display: block;
    font-size: 15px;
    margin-bottom: 4px;
}

.article-charity-cta .charity-actions {
    margin-top: 12px;
}

/*右侧广告*/

.acategory-gg {
  background: #ffffff;
  border: 2px solid #f9ccd7;
  border-radius: 10px;
  padding: 1px;
  margin: 17px 0;
  box-shadow: var(--shadow-card);
  transition: all 0.3s ease;
  /* 新增：让容器成为图片的参考基准 */
  position: relative;
  overflow: hidden; /* 超出部分隐藏 */
}

/* 新增：图片自适应样式 */
.acategory-gg img {
  display: block; /* 去掉图片默认的行内空白 */
  width: 100%; /* 宽度铺满容器 */
  height: auto; /* 高度自动，保持比例 */
  max-width: 100%; /* 最大宽度不超过容器 */
  border-radius: 6px; /* 可选：和容器圆角呼应，更美观 */
}

/* 可选：a标签也铺满，点击区域更大 */
.acategory-gg a {
  display: block;
  width: 100%;
}

/* 模块悬停效果 
.acategory-gg:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}
*/


/* ============ 移动端 ============ */
@media (max-width: 992px) {
    .ahome-container > .charity-hero {
        width: 100%;
    }
}

@media (max-width: 900px) {
    .wish-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .wish-detail {
        grid-template-columns: 1fr;
    }

    .wish-claim-box {
        position: static;
    }

    .charity-flows {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .charity-wrap {
        width: 96%;
        padding: 12px 0;
    }

    /* 提交表单在手机端单列，避免三列挤压 */
    .charity-form-row {
        grid-template-columns: 1fr;
    }

    .charity-field-wide {
        grid-column: auto;
    }
}

@media (max-width: 640px) {
    .charity-hero {
        padding: 16px 14px;
        margin-bottom: 15px;
    }

    .charity-hero-title {
        font-size: 17px;
    }

    .charity-stats {
        gap: 8px;
    }

    .charity-stat {
        padding: 10px 6px;
    }

    .charity-stat-num {
        font-size: 19px;
    }

    .charity-stat-label {
        font-size: 11px;
    }

    .charity-actions {
        gap: 8px;
    }

    .charity-btn {
        flex: 1 1 auto;
        padding: 10px 12px;
        font-size: 13px;
        white-space: nowrap;
    }

    .wish-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .wish-card-cover {
        aspect-ratio: 16 / 9;
    }

    .wish-detail-main {
        padding: 16px;
    }

    .wish-detail-title {
        font-size: 18px;
    }

    /* 2026-10-28：手机端封面进一步限高，避免一屏只看到一张图 */
    .wish-detail-cover {
        max-height: 220px;
    }

    .wish-xunqin-thumb {
        width: 56px;
        height: 56px;
    }

    .charity-flows {
        grid-template-columns: 1fr;
    }

    .charity-prose {
        padding: 18px 16px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .charity-wrap {
        width: 100%;
        padding: 8px 10px;
    }
}

/* ============================================================
   2026-11-16：从 wish_detail.php 的页面内联样式迁入
   原来这三块直接写在页面的 <style> 里，页面被撑得很长、也不好复用。
   搬到这里之后 wish_detail.php 只剩一个 <link>。
   改这段记得同步抬 wish_detail.php 里 charity.css 的版本号。
   ============================================================ */

/* ---------- 发布者署名 + 加好友（2026-10-27） ---------- */
.wish-publisher{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:12px 0 18px;padding:10px 12px;background:#fff8fb;border:1px solid #ffe3ef;border-radius:10px;font-size:13.5px;color:#666;}
.wish-publisher-avatar{width:32px;height:32px;border-radius:50%;object-fit:cover;border:1px solid #ffd6e7;flex:0 0 auto;
    transition:transform .22s ease,box-shadow .22s ease;}
.wish-publisher-avatar:hover{transform:scale(1.5);box-shadow:0 4px 12px rgba(255,105,180,.35);position:relative;z-index:5;}
.wish-publisher-text b{color:#c72e6e;font-weight:600;}

/* ---------- 礼物物流（2026-11-13） ----------
   全宽卡片，与下方留言板同一宽度；边框/阴影/悬停上浮用本文件的 charity 变量，
   与详情页其它卡片完全同规格 */
.wish-shipment{background:#fff;border:2px solid var(--charity-line);border-radius:var(--charity-radius);
    padding:18px 20px;margin-top:0;box-shadow:var(--charity-shadow);transition:all .3s ease;}
.wish-shipment:hover{box-shadow:var(--charity-shadow-hover);transform:translateY(-3px);}
.wish-shipment .ws-title{margin:0 0 12px;font-size:17px;color:#e60073;font-weight:700;}
.wish-shipment .ws-empty{font-size:14px;color:#9b8792;}
.wish-shipment .ws-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:12px;}
.wish-shipment .ws-item{border:1px dashed #ffc9dd;border-radius:10px;padding:12px 14px;background:#fffafc;}
.wish-shipment .ws-line1{display:flex;align-items:center;gap:10px;flex-wrap:wrap;}
.wish-shipment .ws-badge{font-size:12px;color:#fff;background:#e60073;border-radius:999px;padding:2px 10px;flex:0 0 auto;}
.wish-shipment .ws-company{font-size:15px;color:#333;}
.wish-shipment .ws-no{font-size:14px;color:#e60073;letter-spacing:.5px;background:#fff0f7;border-radius:6px;padding:2px 8px;}
.wish-shipment .ws-copy{margin-left:auto;flex:0 0 auto;border:1px solid #ff9cc4;background:#fff;color:#e60073;
    font-size:12.5px;border-radius:999px;padding:5px 12px;cursor:pointer;transition:all .2s ease;}
.wish-shipment .ws-copy:hover{background:#e60073;color:#fff;}
.wish-shipment .ws-line2{margin-top:6px;font-size:12.5px;color:#b3a6ab;}
.wish-shipment .ws-tip{margin-top:10px;font-size:12px;color:#b58a9c;}
@media (max-width:640px){
    .wish-shipment{padding:14px;}
    .wish-shipment .ws-copy{margin-left:0;}
}

/* ---------- 愿望页底部相关推荐（2026-11-15 建，2026-11-16 迁入） ----------
   1) style.css 里 .related-blessings 原来没写 box-sizing，width:100% 再加 20px 内边距
      会让右边缘比别的卡片多出 40px —— 这就是之前「左边对齐、右边突出来」的原因；
   2) 用 auto-fill 而不是 auto-fit，条数不足时列数不变，卡片不会被拉成通栏。 */
.wish-related { width: 100%; max-width: 100%; box-sizing: border-box; }
.wish-related .related-list { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
/* 手机端 style.css 给 .related-blessings 留的是 margin:20px 10px 0 + max-width:93%
   （靠缩到 93% 来抵消左右各 10px 的外边距）。这里已经改回 max-width:100%，
   若仍保留 10px 外边距，整块会比容器宽出 20px，又变成「右边突出来」，
   所以手机端把左右外边距归零，与上下「礼物物流 / 留言板」同宽。 */
@media (max-width: 768px) {
    .wish-related { margin: 20px 0 0; }
}
@media (max-width: 1024px) {
    .wish-related .related-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
    .wish-related .related-list { grid-template-columns: 1fr; }
}

/* ============================================================
 * 2026-11-16 内联样式外迁：wish_submit.php（提交生日愿望）
 * 一、原页面 <style> 块：登录昵称代入提示 + 公开账号开关 + 收货隐私提示
 * ========================================================== */
.ws-self-tip { display: block; font-style: normal; font-size: 12.5px; line-height: 1.7; color: #e0568f; margin-top: 6px; }
.ws-self-tip b { color: #c72e6e; font-weight: 600; }
.ws-public-row { display: flex; align-items: flex-start; gap: 8px; margin-top: 14px; padding: 10px 12px; background: #fff7fb; border: 1px solid #ffe0ee; border-radius: 8px; font-size: 13px; line-height: 1.7; color: #555; cursor: pointer; }
.ws-public-row input { margin-top: 3px; accent-color: #e60073; flex: 0 0 auto; }
.ws-public-row b { color: #c72e6e; font-weight: 600; }
.ws-privacy-tip { margin: 0 0 12px; padding: 10px 12px; background: #f0fbf4; border: 1px solid #cdeeda; border-radius: 8px; font-size: 13px; line-height: 1.8; color: #2e7d4f; }
.ws-privacy-tip b { color: #1e6b3c; font-weight: 600; }

/* 二、正文里两处零散强调（原为行内 color / margin-top） */
.wish-em { color: #c72e6e; }
.charity-note.wish-note-gap { margin-top: 12px; }

/* ============================================================
 * 2026-11-17 内联样式外迁：privacy.php（隐私政策页）
 * 复用公益说明页的 CSS 变量，只补正文排版节奏
 * ========================================================== */
.privacy-doc {
    background: #fff;
    border: 2px solid var(--charity-line, #f9ccd7);
    border-radius: var(--charity-radius, 10px);
    box-shadow: var(--charity-shadow, 0 2px 10px rgba(230, 0, 115, .08));
    padding: 28px 30px;
    line-height: 2;
    color: #444;
    font-size: 14.5px;
}

.privacy-doc h2 {
    font-size: 18px;
    color: #c72e6e;
    margin: 26px 0 10px;
    padding-top: 18px;
    border-top: 1px dashed #f3d3e0;
}

.privacy-doc h2:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.privacy-doc ul { padding-left: 20px; margin: 8px 0; }
.privacy-doc li { margin-bottom: 6px; }
.privacy-doc b { color: #c72e6e; font-weight: 600; }

.privacy-foot { margin-top: 22px; color: #8a8a8a; font-size: 13px; }
.privacy-foot a { color: #e60073; }

@media (max-width: 640px) {
    .privacy-doc { padding: 18px 16px; }
}

/* ============================================================
 * 2026-11-20 文章底部公益引导降噪（article.php）
 * ------------------------------------------------------------
 * 背景：原来「认领一个生日愿望」与「看看失踪儿童地图」是两个同尺寸按钮，
 *       和上方卡片 CTA、下方礼物按钮形成四个并列粉色块，主次不分。
 * 现在：公益只保留一个主按钮，第二个入口降级为文字链；
 *       主按钮继续复用 .charity-btn .charity-btn-primary，不新增按钮样式。
 * ========================================================== */
.article-charity-cta .charity-actions {
    align-items: center;
}

.article-charity-cta .charity-more-link {
    font-size: 13px;
    line-height: 1.6;
    color: var(--charity-pink, #e60073);
    text-decoration: none;
    border-bottom: 1px dashed rgba(230, 0, 115, 0.35);
    padding-bottom: 1px;
    transition: color .2s ease, border-color .2s ease;
}

.article-charity-cta .charity-more-link:hover {
    color: var(--charity-pink-deep, #c72e6e);
    border-bottom-color: var(--charity-pink-deep, #c72e6e);
}
