/* 林氏祠堂财务公示平台 V3.5 — 公开端响应式优化 */
:root{
  --public-gap:16px;
  --public-radius:18px;
  --public-shadow:0 8px 26px rgba(55,36,22,.065);
}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body.public-body{min-width:0;overflow-x:hidden;background:#f8f7f4}
body.public-body img{max-width:100%}
body.public-body a,body.public-body button{-webkit-tap-highlight-color:transparent}
body.public-body .container{width:min(1160px,calc(100% - 32px))}
body.public-body .page-wrap{min-height:calc(100vh - 180px)}
body.public-body .site-header{z-index:100;border-bottom-color:rgba(231,223,215,.85);box-shadow:0 2px 12px rgba(55,36,22,.025)}
body.public-body .header-inner{position:relative}
body.public-body .brand{min-width:0}
body.public-body .brand>span:last-child{min-width:0}
body.public-body .brand strong,body.public-body .brand small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.public-body .site-header nav a{position:relative}
body.public-body .site-header nav a.active{color:var(--red)}
body.public-body .site-header nav a.active:after{content:"";position:absolute;left:8px;right:8px;bottom:-10px;height:2px;border-radius:2px;background:var(--red)}
body.public-body .public-menu-toggle{flex:none}
body.public-body .public-nav-backdrop{display:none}
body.public-body .home-carousel,body.public-body .hero{box-shadow:var(--public-shadow)}
body.public-body .stat-card,body.public-body .panel,body.public-body .activity-card,body.public-body .activity-finance-card-v31,body.public-body .notice-list{box-shadow:var(--public-shadow)}
body.public-body .activity-finance-card-v31,body.public-body .activity-card,body.public-body .expense-entry-v34,body.public-body .chip,body.public-body .btn{transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease,background .18s ease}
body.public-body .section-head>*{min-width:0}
body.public-body .section-head p{overflow-wrap:anywhere}
body.public-body .activity-finance-card-head-v31 h3,body.public-body .activity-info h3,body.public-body .detail-head h1{overflow-wrap:anywhere}
body.public-body .toolbar .btn{min-height:44px}
body.public-body table{font-variant-numeric:tabular-nums}
body.public-body .donation-table-v34{table-layout:fixed}
body.public-body .donation-table-v34 td,body.public-body .donation-table-v34 th{overflow-wrap:anywhere}
body.public-body .site-footer .muted{color:#bbaea4}
body.public-body .annual-table-v35{min-width:0}
body.public-body .annual-table-v35 td,body.public-body .annual-table-v35 th{white-space:nowrap}
body.public-body .notice-content{overflow-wrap:anywhere}
.wechat-visitor-consent-v861{position:fixed;z-index:108;left:50%;bottom:94px;width:min(560px,calc(100% - 28px));transform:translateX(-50%);display:flex;align-items:center;gap:18px;padding:16px 18px;border:1px solid #eadbd1;border-radius:18px;background:rgba(255,255,255,.97);box-shadow:0 16px 50px rgba(55,36,22,.2);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}
.wechat-visitor-consent-v861[hidden]{display:none}
.wechat-visitor-consent-v861>div:first-child{min-width:0;flex:1}.wechat-visitor-consent-v861 strong{display:block;font-size:15px;color:#2c211c}.wechat-visitor-consent-v861 p{margin:5px 0 0;color:#75665d;font-size:12px;line-height:1.55}
.wechat-visitor-consent-actions-v861{display:flex;flex:none;gap:8px}.wechat-visitor-consent-actions-v861 a,.wechat-visitor-consent-actions-v861 button{min-height:38px;padding:9px 13px;border-radius:10px;border:1px solid #d9c8bd;font:inherit;font-size:13px;cursor:pointer;text-decoration:none}.wechat-visitor-consent-actions-v861 a{border-color:#982c28;background:#982c28;color:#fff}.wechat-visitor-consent-actions-v861 button{background:#fff;color:#67574e}
.wechat-oauth-message-v861{position:fixed;z-index:109;left:50%;top:78px;width:min(520px,calc(100% - 28px));transform:translateX(-50%);padding:12px 16px;border-radius:12px;background:#fff3e8;color:#8e3f18;box-shadow:0 10px 35px rgba(55,36,22,.15);font-size:13px;text-align:center}

@media (max-width:900px){
  body.public-body .container{width:min(100% - 28px,760px)}
  body.public-body .site-header nav a.active:after{display:none}
  body.public-body .page-wrap{padding:20px 0 42px}
  body.public-body .section{margin-top:26px}
  body.public-body .section-head{align-items:flex-end}
  body.public-body .home-carousel{max-height:none}
  body.public-body .activity-finance-grid-v31{gap:14px}
}

@media (max-width:800px){
  .wechat-visitor-consent-v861{align-items:stretch;flex-direction:column;gap:12px;bottom:88px}.wechat-visitor-consent-actions-v861{display:grid;grid-template-columns:1fr 1fr}.wechat-visitor-consent-actions-v861 a,.wechat-visitor-consent-actions-v861 button{text-align:center}
  body.public-body .site-header{backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px)}
  body.public-body .header-inner{min-height:64px;gap:10px}
  body.public-body .brand{gap:9px;max-width:calc(100% - 52px)}
  body.public-body .brand-mark{width:38px;height:38px;font-size:22px;box-shadow:inset 0 0 0 2px rgba(255,255,255,.28)}
  body.public-body .brand strong{font-size:16px;line-height:1.25}
  body.public-body .brand small{display:block;font-size:10px;line-height:1.25;max-width:230px}
  body.public-body .public-header-actions{gap:0}
  body.public-body .public-menu-toggle{display:grid;place-items:center;width:42px;height:42px;padding:0;border-radius:13px;font-size:0;background:#fff;box-shadow:0 4px 15px rgba(55,36,22,.055)}
  body.public-body .public-menu-toggle:before,body.public-body .public-menu-toggle:after,body.public-body .public-menu-toggle span{content:"";display:block;width:18px;height:2px;border-radius:2px;background:var(--ink);transition:.2s ease}
  body.public-body .public-menu-toggle{gap:4px}
  body.public-body .public-menu-toggle span{pointer-events:none}
  body.public-body .site-header.public-nav-open .public-menu-toggle:before{transform:translateY(6px) rotate(45deg)}
  body.public-body .site-header.public-nav-open .public-menu-toggle span{opacity:0}
  body.public-body .site-header.public-nav-open .public-menu-toggle:after{transform:translateY(-6px) rotate(-45deg)}
  body.public-body .site-header nav{position:fixed!important;display:grid!important;visibility:hidden;opacity:0;pointer-events:none;left:14px;right:14px;top:72px;padding:10px!important;grid-template-columns:1fr 1fr;gap:6px!important;border:1px solid var(--line);border-radius:16px;background:rgba(255,255,255,.98);box-shadow:0 20px 48px rgba(45,28,18,.18);transform:translateY(-8px);transition:.18s ease;z-index:102}
  body.public-body .site-header.public-nav-open nav{visibility:visible;opacity:1;pointer-events:auto;transform:translateY(0)}
  body.public-body .site-header nav a{display:flex;align-items:center;justify-content:center;min-height:46px;padding:10px 8px!important;border-radius:11px;background:#faf7f3;font-size:14px;text-align:center}
  body.public-body .site-header nav a.active{background:#f3e5dd;color:var(--red)}
  body.public-body .public-nav-backdrop{position:fixed;display:block;visibility:hidden;opacity:0;pointer-events:none;inset:64px 0 0;background:rgba(34,23,18,.22);transition:.18s ease;z-index:99}
  body.public-body .site-header.public-nav-open+.public-nav-backdrop{visibility:visible;opacity:1;pointer-events:auto}
  body.public-body.public-menu-locked{overflow:hidden}

  body.public-body .home-carousel{min-height:0;aspect-ratio:16/10;border-radius:18px}
  body.public-body .home-carousel .carousel-content{padding:24px 22px 28px;justify-content:flex-end;max-width:100%}
  body.public-body .home-carousel .carousel-content .eyebrow{font-size:10px}
  body.public-body .home-carousel .carousel-content h1{font-size:clamp(23px,7vw,31px);line-height:1.16;margin:6px 0 5px;letter-spacing:1px}
  body.public-body .home-carousel .carousel-content p{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin:0;font-size:13px;line-height:1.55}
  body.public-body .home-carousel .hero-actions{margin-top:12px}
  body.public-body .home-carousel .hero-actions .btn{min-height:38px;padding:8px 14px;font-size:13px}
  body.public-body .carousel-shade{background:linear-gradient(0deg,rgba(30,15,10,.72) 0%,rgba(30,15,10,.32) 48%,rgba(30,15,10,.04) 78%)}
  body.public-body .carousel-dots{bottom:9px}

  body.public-body .hero{min-height:240px;padding:28px 22px;border-radius:18px}
  body.public-body .hero h1{font-size:30px;letter-spacing:1px}
  body.public-body .hero p{font-size:14px}
  body.public-body .hero-actions{margin-top:20px;flex-wrap:wrap}

  body.public-body .stat-grid,body.public-body .stat-grid.three{gap:10px;margin:14px 0 0}
  body.public-body .stat-card{min-height:106px;padding:15px;border-radius:15px;display:flex;flex-direction:column;justify-content:center}
  body.public-body .stat-card span{font-size:12px}
  body.public-body .stat-card strong{font-size:clamp(20px,5.5vw,25px);line-height:1.2;margin-top:7px;white-space:nowrap}
  body.public-body .stat-card small{font-size:11px;margin-top:4px}

  body.public-body .section-head{display:flex;align-items:flex-start;margin-bottom:13px}
  body.public-body .section-head h2{font-size:21px;line-height:1.3}
  body.public-body .section-head p{font-size:13px;line-height:1.55}
  body.public-body .section-head>a{flex:none;font-size:13px;padding-top:2px}
  body.public-body .eyebrow{font-size:10px;letter-spacing:1.4px}

  body.public-body .activity-finance-card-v31{min-height:0;padding:17px;border-radius:17px}
  body.public-body .activity-finance-card-head-v31{gap:10px}
  body.public-body .activity-finance-card-head-v31 time{font-size:11px;margin-bottom:3px}
  body.public-body .activity-finance-card-head-v31 h3{font-size:18px;line-height:1.35;margin-bottom:3px}
  body.public-body .activity-finance-card-head-v31 p{font-size:12px;line-height:1.45}
  body.public-body .activity-finance-totals-v31{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin-top:14px}
  body.public-body .activity-finance-totals-v31>div,body.public-body .activity-finance-totals-v31>div:last-child{grid-column:auto;padding:10px 7px;text-align:center;border-radius:11px}
  body.public-body .activity-finance-totals-v31 span,body.public-body .activity-finance-totals-v31 small{font-size:10px;white-space:nowrap}
  body.public-body .activity-finance-totals-v31 strong{font-size:clamp(14px,4vw,18px);margin:5px 0 2px;white-space:nowrap}
  body.public-body .activity-finance-enter-v31{padding-top:14px;font-size:12px;gap:8px}
  body.public-body .activity-finance-enter-v31 span{font-size:17px}

  body.public-body .page-title{padding:16px 0 13px}
  body.public-body .page-title h1{font-size:28px;line-height:1.25;margin:3px 0}
  body.public-body .page-title p{margin:4px 0 0;font-size:13px}
  body.public-body .filter-bar{gap:7px;margin-bottom:14px;overflow-x:auto;flex-wrap:nowrap;padding-bottom:3px;scrollbar-width:none}
  body.public-body .filter-bar::-webkit-scrollbar{display:none}
  body.public-body .chip{flex:none;padding:7px 13px;font-size:13px}

  body.public-body .activity-card.large{position:relative;display:grid;grid-template-columns:54px minmax(0,1fr);align-items:start;gap:13px;padding:16px 14px;border-radius:16px}
  body.public-body .activity-date{width:54px;padding:0 12px 0 0}
  body.public-body .activity-date b{font-size:23px;line-height:1.2}
  body.public-body .activity-date span{font-size:10px}
  body.public-body .activity-info{padding-right:0}
  body.public-body .activity-info h3{padding-right:58px;font-size:17px;line-height:1.4;margin-bottom:3px}
  body.public-body .activity-info p{font-size:12px;line-height:1.45}
  body.public-body .activity-card.large>.badge{position:absolute;right:13px;top:14px;font-size:10px;padding:3px 7px}
  body.public-body .mini-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-top:11px}
  body.public-body .mini-stats span{display:flex;flex-direction:column;gap:2px;padding:7px 5px;border-radius:9px;background:#faf7f3;text-align:center;font-size:10px;min-width:0}
  body.public-body .mini-stats b{font-size:12px;white-space:nowrap}

  body.public-body .detail-head{display:block;padding:14px 0 10px}
  body.public-body .detail-head>div:last-child{margin-top:9px}
  body.public-body .detail-head h1{font-size:28px;line-height:1.25;margin:9px 0 3px}
  body.public-body .detail-head p{font-size:13px;line-height:1.5}
  body.public-body .back-link{display:inline-flex;align-items:center;min-height:38px;font-size:13px}
  body.public-body .intro-box{padding:14px 16px;font-size:13px}

  body.public-body .expense-entry-v34{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;margin:14px 0 18px;padding:16px;border-radius:16px}
  body.public-body .expense-entry-copy-v34 strong{font-size:18px}
  body.public-body .expense-entry-copy-v34 em{font-size:12px;max-width:none}
  body.public-body .expense-entry-total-v34{min-width:0;text-align:right;margin:0}
  body.public-body .expense-entry-total-v34 strong{font-size:20px}
  body.public-body .expense-entry-total-v34 b{font-size:11px}

  body.public-body .toolbar{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:16px 0}
  body.public-body .toolbar .btn{width:100%;padding:9px 10px;font-size:13px}
  body.public-body .panel{padding:16px;border-radius:16px}
  body.public-body .donation-table-wrap-v34{overflow:visible}
  body.public-body .donation-table-v34{width:100%;min-width:0}
  body.public-body .donation-table-v34 th,body.public-body .donation-table-v34 td{padding:11px 6px;font-size:14px}
  body.public-body .donation-table-v34 th{font-size:11px}
  body.public-body .donation-table-v34 th:first-child,body.public-body .donation-table-v34 td:first-child{width:62%}
  body.public-body .donation-table-v34 th:last-child,body.public-body .donation-table-v34 td:last-child{width:38%}

  body.public-body .expense-page-head-v34{display:flex;align-items:flex-end;gap:10px}
  body.public-body .expense-page-head-v34>div:first-child{min-width:0;flex:1}
  body.public-body .expense-page-total-v34{min-width:116px;padding:10px 11px;border-radius:12px}
  body.public-body .expense-page-total-v34 strong{font-size:20px}
  body.public-body .public-expense-list-v34{gap:10px}
  body.public-body .public-expense-item-v34{grid-template-columns:30px minmax(0,1fr);gap:9px;padding:13px;border-radius:13px}
  body.public-body .public-expense-index-v34{width:28px;height:28px;border-radius:9px;font-size:12px}
  body.public-body .public-expense-title-v34{align-items:center}
  body.public-body .public-expense-title-v34 strong{font-size:14px;line-height:1.45}
  body.public-body .public-expense-title-v34 b{font-size:15px}
  body.public-body .receipt-gallery-v31{min-width:0;gap:6px}
  body.public-body .receipt-gallery-v31 a{width:50px;height:50px}
  body.public-body .receipt-gallery-v31 .receipt-pdf-v31{width:auto;min-width:86px;padding:0 10px}

  body.public-body .annual-panel-v35{padding:0;background:transparent;border:0;box-shadow:none}
  body.public-body .annual-table-wrap-v35{overflow:visible}
  body.public-body .annual-table-v35{display:block;width:100%;min-width:0}
  body.public-body .annual-table-v35 thead{display:none}
  body.public-body .annual-table-v35 tbody{display:grid;gap:11px}
  body.public-body .annual-table-v35 tr{display:grid;grid-template-columns:1fr 1fr;gap:0;background:#fff;border:1px solid var(--line);border-radius:15px;padding:12px 14px;box-shadow:var(--public-shadow)}
  body.public-body .annual-table-v35 td{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:7px 0;border:0;font-size:13px;text-align:right!important;white-space:normal}
  body.public-body .annual-table-v35 td:before{content:attr(data-label);color:var(--muted);font-size:11px;font-weight:400;text-align:left}
  body.public-body .annual-table-v35 td:first-child{grid-column:1/-1;padding-bottom:10px;margin-bottom:2px;border-bottom:1px solid var(--line);font-size:17px}
  body.public-body .annual-table-v35 td:first-child:before{content:"年度账目"}
  body.public-body .annual-table-v35 td:last-child{grid-column:1/-1;padding-top:10px;margin-top:2px;border-top:1px solid var(--line)}
  body.public-body .annual-table-v35 .empty{display:block;grid-column:1/-1;text-align:center;padding:28px}

  body.public-body .notice-cards{gap:11px}
  body.public-body .notice-card{padding:17px}
  body.public-body .notice-card h2{font-size:19px;line-height:1.4}
  body.public-body .notice-content{font-size:14px;line-height:1.75}
  body.public-body .notice-list a{padding:14px 16px;gap:3px}
  body.public-body .notice-list time{font-size:11px}

  body.public-body .site-footer{padding:28px 0 calc(28px + env(safe-area-inset-bottom));font-size:13px}
  body.public-body .site-footer p{margin:4px 0}
}

@media (max-width:480px){
  body.public-body .container{width:calc(100% - 24px)}
  body.public-body .brand small{max-width:190px}
  body.public-body .home-carousel{aspect-ratio:4/3}
  body.public-body .stat-grid,body.public-body .stat-grid.three{grid-template-columns:1fr 1fr}
  body.public-body .stat-card{min-height:98px;padding:13px}
  body.public-body .stat-card strong{font-size:clamp(18px,5.5vw,23px)}
  body.public-body .section-head{display:block}
  body.public-body .section-head>a{display:inline-flex;margin-top:8px}
  body.public-body .activity-finance-totals-v31{gap:5px}
  body.public-body .activity-finance-totals-v31>div{padding:9px 4px}
  body.public-body .activity-finance-totals-v31 span{font-size:9px}
  body.public-body .activity-finance-totals-v31 strong{font-size:14px}
  body.public-body .activity-finance-totals-v31 small{font-size:9px}
  body.public-body .expense-entry-v34{display:block}
  body.public-body .expense-entry-total-v34{display:flex;align-items:end;justify-content:space-between;margin-top:11px;padding-top:11px;border-top:1px solid var(--line);text-align:left}
  body.public-body .expense-entry-total-v34 small,body.public-body .expense-entry-total-v34 strong,body.public-body .expense-entry-total-v34 b{margin:0}
  body.public-body .toolbar{grid-template-columns:1fr}
  body.public-body .expense-page-head-v34{display:block}
  body.public-body .expense-page-total-v34{text-align:left;margin-top:10px;min-width:0}
}

@media (max-width:360px){
  body.public-body .brand strong{font-size:14px}
  body.public-body .brand small{display:none}
  body.public-body .stat-card strong{font-size:18px}
  body.public-body .activity-finance-card-head-v31 .badge{font-size:9px}
  body.public-body .activity-finance-totals-v31 strong{font-size:13px}
  body.public-body .activity-info h3{font-size:16px}
  body.public-body .annual-table-v35 tr{grid-template-columns:1fr}
  body.public-body .annual-table-v35 td,body.public-body .annual-table-v35 td:first-child,body.public-body .annual-table-v35 td:last-child{grid-column:1}
}

@media (hover:none){
  body.public-body .activity-finance-card-v31:hover,body.public-body .activity-card:hover,body.public-body .expense-entry-v34:hover,body.public-body .btn:hover{transform:none;box-shadow:var(--public-shadow)}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  body.public-body *,body.public-body *:before,body.public-body *:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}
}

@media print{
  body.public-body .public-nav-backdrop{display:none!important}
  body.public-body .annual-table-v35{display:table}
  body.public-body .annual-table-v35 thead{display:table-header-group}
  body.public-body .annual-table-v35 tbody{display:table-row-group}
  body.public-body .annual-table-v35 tr{display:table-row;border:0;padding:0;box-shadow:none}
  body.public-body .annual-table-v35 td{display:table-cell;padding:10px;border-bottom:1px solid var(--line)}
  body.public-body .annual-table-v35 td:before{display:none}
}

/* V3.5 final polish: balanced activity totals and clearer annual cards. */
@media (max-width:800px){
  body.public-body .stat-grid.three .stat-card:last-child{grid-column:1/-1;min-height:88px}
  body.public-body .annual-table-v35 tbody{grid-template-columns:repeat(2,minmax(0,1fr))}
  body.public-body .annual-table-v35 tr{grid-template-columns:1fr}
  body.public-body .annual-table-v35 td,body.public-body .annual-table-v35 td:first-child,body.public-body .annual-table-v35 td:last-child{grid-column:1}
}
@media (max-width:600px){
  body.public-body .annual-table-v35 tbody{grid-template-columns:1fr}
}


/* V3.6: unified return button and manually maintained fund cards. */
body.public-body .public-page-return-v36{display:flex;align-items:center;margin:2px 0 12px}
body.public-body .public-back-button-v36{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:8px 15px;border:1px solid var(--line);border-radius:12px;background:#fff;color:var(--ink);font:inherit;font-size:14px;font-weight:700;cursor:pointer;box-shadow:0 5px 16px rgba(55,36,22,.045);transition:.18s ease}
body.public-body .public-back-button-v36:hover{border-color:#c9a88d;color:var(--red);transform:translateY(-1px)}
body.public-body .stat-grid-six-v36{grid-template-columns:repeat(3,minmax(0,1fr))}
body.public-body .manual-balance-v36{position:relative;overflow:hidden}
body.public-body .manual-balance-v36:after{content:"";position:absolute;right:-30px;bottom:-34px;width:100px;height:100px;border-radius:50%;background:rgba(255,255,255,.3)}
body.public-body .manual-balance-v36.ancestral{background:linear-gradient(135deg,#fff9ed,#f7ead2);border-color:#ead1a9}
body.public-body .manual-balance-v36.ancestral strong{color:#87551e}
body.public-body .manual-balance-v36.fund{background:linear-gradient(135deg,#eef8f3,#dfeee7);border-color:#c4ddcf}
body.public-body .manual-balance-v36.fund strong{color:#176b50}
body.public-body .manual-balance-v36 span,body.public-body .manual-balance-v36 strong,body.public-body .manual-balance-v36 small{position:relative;z-index:1}
@media (max-width:800px){
  body.public-body .public-page-return-v36{margin:0 0 8px}
  body.public-body .public-back-button-v36{min-height:38px;padding:7px 13px;font-size:13px;border-radius:11px}
  body.public-body .stat-grid-six-v36{grid-template-columns:1fr 1fr}
}
@media (max-width:360px){
  body.public-body .stat-grid-six-v36{grid-template-columns:1fr 1fr}
  body.public-body .stat-grid-six-v36 .stat-card strong{font-size:17px}
}
@media print{body.public-body .public-page-return-v36{display:none!important}}

/* V3.7: activity-based cumulative statistics and complete mobile banner display. */
body.public-body .stat-grid-v37 .stat-card{min-width:0}
body.public-body a.stat-card{display:block;color:var(--ink);text-decoration:none}
body.public-body .year-expense-v37{position:relative;overflow:hidden;background:linear-gradient(135deg,#fff7e8,#f3e0bc);border-color:#e8ca92}
body.public-body .year-expense-v37 strong{color:#8a5513}
body.public-body .year-expense-v37:after{content:"年度";position:absolute;right:13px;top:10px;color:rgba(138,85,19,.14);font-size:38px;font-weight:900;line-height:1}
body.public-body .year-expense-v37 span,body.public-body .year-expense-v37 strong,body.public-body .year-expense-v37 small{position:relative;z-index:1}
body.public-body .year-expense-v37:hover{border-color:#d5ad67;transform:translateY(-2px);box-shadow:0 10px 26px rgba(94,61,21,.12)}
body.public-body .carousel-mobile-link-v37{display:none}

@media (max-width:800px){
  /* Always show the whole uploaded banner on phones, even if desktop mode is set to cover. */
  body.public-body .home-carousel{
    width:100%;
    height:auto!important;
    min-height:clamp(150px,43vw,190px)!important;
    aspect-ratio:21/9!important;
    border-radius:16px;
    background:#321a15;
  }
  body.public-body .home-carousel .carousel-track,
  body.public-body .home-carousel .carousel-slide{height:100%}
  body.public-body .home-carousel .carousel-slide[data-fit="contain"] .carousel-image,
  body.public-body .home-carousel .carousel-slide[data-fit="cover"] .carousel-image,
  body.public-body .home-carousel .carousel-image{
    width:100%;
    height:100%;
    object-fit:contain!important;
    object-position:center center!important;
  }
  body.public-body .home-carousel .carousel-backdrop{
    inset:-14px;
    background-position:center center;
    background-size:cover;
    filter:blur(16px) brightness(.62) saturate(.9);
    transform:scale(1.08);
    opacity:.95;
  }
  /* Mobile focuses on the banner artwork itself instead of covering it with another text layer. */
  body.public-body .home-carousel .carousel-content,
  body.public-body .home-carousel .carousel-shade{display:none!important}
  body.public-body .carousel-mobile-link-v37{
    position:absolute;
    z-index:4;
    right:10px;
    bottom:10px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:32px;
    padding:6px 11px;
    border:1px solid rgba(255,255,255,.68);
    border-radius:999px;
    background:rgba(50,23,18,.72);
    color:#fff;
    font-size:12px;
    font-weight:700;
    backdrop-filter:blur(8px);
    -webkit-backdrop-filter:blur(8px);
  }
  body.public-body .carousel-dots{bottom:7px;max-width:50%;overflow:hidden}
  body.public-body .carousel-dots button{width:7px;height:7px}
  body.public-body .carousel-dots button.active{width:20px}
  body.public-body .stat-grid-v37 .stat-card{min-height:108px}
  body.public-body .stat-grid-v37 .stat-card small{font-size:10px;line-height:1.45}
}

@media (max-width:480px){
  body.public-body .home-carousel{
    min-height:clamp(142px,42vw,170px)!important;
    aspect-ratio:21/9!important;
    margin-top:2px;
  }
  body.public-body .carousel-mobile-link-v37{right:8px;bottom:8px;min-height:29px;padding:5px 9px;font-size:11px}
  body.public-body .stat-grid-v37 .stat-card{min-height:104px;padding:13px 12px}
  body.public-body .stat-grid-v37 .stat-card span{font-size:12px}
  body.public-body .stat-grid-v37 .stat-card strong{font-size:clamp(17px,5.2vw,22px);white-space:nowrap}
  body.public-body .stat-grid-v37 .stat-card small{font-size:9.5px}
}

@media (max-width:360px){
  body.public-body .home-carousel{min-height:136px!important}
  body.public-body .stat-grid-v37 .stat-card strong{font-size:16px}
  body.public-body .year-expense-v37:after{font-size:30px}
}

/* V3.8 捐款名单：金额降序，自定义内容在姓名下方展示 */
.donation-person-v38{
  min-width:0;
}
.donation-person-v38 b{
  display:block;
  color:#17120f;
  line-height:1.35;
}
.donation-custom-v38{
  display:block;
  margin-top:5px;
  color:#8b7568;
  font-size:12px;
  line-height:1.45;
  white-space:normal;
  overflow-wrap:anywhere;
}
.donation-amount-v38{
  white-space:nowrap;
  vertical-align:top;
}
@media (max-width:480px){
  .donation-table-v34 th:first-child,
  .donation-table-v34 td:first-child{width:68%;}
  .donation-table-v34 th:last-child,
  .donation-table-v34 td:last-child{width:32%;}
  .donation-custom-v38{font-size:11px;margin-top:4px;}
}

/* V3.9：活动详情已移除打印和导出入口；捐款排序由服务端数值排序保证。 */


/* V4.0 捐款备注分组：普通捐款、新婚、出丁及其他备注分别展示。 */
.donation-panel-v40{overflow:visible}
.donation-main-head-v40{margin-bottom:16px}
.donation-group-nav-v40{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:0 0 16px;
}
.donation-group-nav-v40 a{
  display:inline-flex;
  align-items:center;
  gap:7px;
  min-height:36px;
  padding:7px 12px;
  border:1px solid #eadfd7;
  border-radius:999px;
  background:#fffaf6;
  color:#5c4034;
  font-weight:700;
  text-decoration:none;
}
.donation-group-nav-v40 a.special{
  border-color:#e6c6a8;
  background:#fff3e7;
  color:#8b2b24;
}
.donation-group-nav-v40 small{font-size:11px;color:#9a7d6c;font-weight:600}
.donation-groups-v40{display:grid;gap:18px}
.donation-group-v40{
  overflow:hidden;
  border:1px solid #eadfd7;
  border-radius:18px;
  background:#fff;
}
.donation-group-v40.is-special{
  border-color:#e5c3a5;
  box-shadow:0 10px 28px rgba(118,64,38,.07);
}
.donation-group-head-v40{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:15px 18px;
  border-bottom:1px solid #eee4dd;
  background:#faf7f4;
}
.donation-group-v40.is-special .donation-group-head-v40{
  background:linear-gradient(135deg,#fff7ed,#fff1e3);
}
.donation-group-head-v40>div{display:flex;align-items:center;gap:9px;min-width:0}
.donation-group-label-v40{font-size:18px;line-height:1.25;font-weight:800;color:#241713}
.donation-group-v40.is-special .donation-group-label-v40{color:#8f2922}
.donation-group-head-v40 small{
  display:inline-flex;
  align-items:center;
  min-height:24px;
  padding:3px 8px;
  border-radius:999px;
  background:rgba(255,255,255,.82);
  color:#896f61;
  font-size:11px;
  white-space:nowrap;
}
.donation-group-head-v40 strong{color:#007b67;font-size:17px;white-space:nowrap}
.donation-table-v40{margin:0}
.donation-table-v40 thead th{background:#fff}
.donation-table-v40 tr:last-child td{border-bottom:0}

@media (max-width:600px){
  .donation-main-head-v40{align-items:flex-start;gap:8px}
  .donation-main-head-v40>div{min-width:0}
  .donation-group-nav-v40{
    flex-wrap:nowrap;
    overflow-x:auto;
    padding:0 0 4px;
    scrollbar-width:none;
    -webkit-overflow-scrolling:touch;
  }
  .donation-group-nav-v40::-webkit-scrollbar{display:none}
  .donation-group-nav-v40 a{flex:0 0 auto;min-height:34px;padding:6px 11px}
  .donation-groups-v40{gap:14px}
  .donation-group-v40{border-radius:14px}
  .donation-group-head-v40{padding:12px 13px}
  .donation-group-label-v40{font-size:16px}
  .donation-group-head-v40 strong{font-size:15px}
  .donation-table-v40 th,.donation-table-v40 td{padding:12px 12px!important}
}

/* V4.1：品牌居中、公开导航始终可见，不再使用折叠菜单。 */
body.public-body .public-header-v41{
  position:sticky;
  top:0;
  z-index:100;
  background:rgba(250,248,244,.97);
  border-bottom:1px solid rgba(226,216,207,.95);
  box-shadow:0 4px 18px rgba(55,36,22,.045);
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
}
body.public-body .public-header-inner-v41{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  min-height:0;
  padding:12px 0 0;
  gap:10px;
}
body.public-body .public-brand-v41{
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  max-width:760px;
  min-width:0;
  gap:11px;
  text-align:left;
}
body.public-body .public-brand-v41 .brand-mark{
  flex:0 0 auto;
  width:44px;
  height:44px;
  font-size:25px;
}
body.public-body .public-brand-text-v41{
  min-width:0;
}
body.public-body .public-brand-v41 strong{
  display:block;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:19px;
  line-height:1.28;
  letter-spacing:.2px;
}
body.public-body .public-brand-v41 small{
  display:block;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:var(--muted);
  font-size:12px;
  line-height:1.35;
}
body.public-body .site-header nav.public-nav-v41{
  position:static!important;
  display:grid!important;
  visibility:visible!important;
  opacity:1!important;
  pointer-events:auto!important;
  transform:none!important;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:0!important;
  width:min(620px,100%);
  margin:0 auto;
  padding:0!important;
  border:0!important;
  border-top:1px solid rgba(226,216,207,.78)!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
body.public-body .site-header nav.public-nav-v41 a{
  position:relative;
  display:flex!important;
  align-items:center;
  justify-content:center;
  min-width:0;
  min-height:46px;
  padding:10px 6px!important;
  border-radius:0!important;
  background:transparent!important;
  color:#4f4239;
  font-size:14px;
  font-weight:700;
  line-height:1.2;
  text-align:center;
  white-space:nowrap;
}
body.public-body .site-header nav.public-nav-v41 a:after{
  content:"";
  position:absolute;
  left:22%;
  right:22%;
  bottom:0;
  height:3px;
  border-radius:3px 3px 0 0;
  background:transparent;
}
body.public-body .site-header nav.public-nav-v41 a.active{
  color:var(--red);
  background:rgba(127,29,29,.045)!important;
}
body.public-body .site-header nav.public-nav-v41 a.active:after{
  background:var(--red);
}
body.public-body .site-header nav.public-nav-v41 a:hover{
  color:var(--red);
  background:rgba(127,29,29,.04)!important;
}
body.public-body .public-menu-toggle,
body.public-body .public-nav-backdrop{
  display:none!important;
}

@media (min-width:801px){
  body.public-body .public-header-inner-v41{padding-top:14px;gap:11px}
  body.public-body .public-brand-v41{width:auto}
  body.public-body .site-header nav.public-nav-v41{width:min(680px,100%)}
}

@media (max-width:800px){
  body.public-body .public-header-inner-v41{
    width:100%;
    padding:10px 12px 0;
    gap:8px;
  }
  body.public-body .public-brand-v41{
    max-width:100%;
    gap:9px;
  }
  body.public-body .public-brand-v41 .brand-mark{
    width:41px;
    height:41px;
    font-size:23px;
  }
  body.public-body .public-brand-v41 strong{
    font-size:17px;
  }
  body.public-body .public-brand-v41 small{
    display:block!important;
    max-width:none!important;
    font-size:10.5px;
  }
  body.public-body .site-header nav.public-nav-v41{
    width:100%;
  }
  body.public-body .site-header nav.public-nav-v41 a{
    min-height:43px;
    padding:9px 3px!important;
    font-size:13px;
  }
  body.public-body .site-header nav.public-nav-v41 a.active:after{
    left:18%;
    right:18%;
  }
  body.public-body .page-wrap{
    padding-top:16px;
  }
}

@media (max-width:380px){
  body.public-body .public-header-inner-v41{padding-left:8px;padding-right:8px}
  body.public-body .public-brand-v41 .brand-mark{width:38px;height:38px;font-size:21px}
  body.public-body .public-brand-v41 strong{font-size:15px}
  body.public-body .public-brand-v41 small{font-size:9.5px}
  body.public-body .site-header nav.public-nav-v41 a{min-height:41px;font-size:12px;padding-left:1px!important;padding-right:1px!important}
}

/* V4.2 — centered masthead and permanently visible navigation.
   These rules intentionally override all legacy mobile drawer styles. */
body.public-body header.site-header.public-header-v42{
  position:sticky!important;
  top:0!important;
  z-index:200!important;
  width:100%!important;
  background:rgba(255,253,249,.97)!important;
  border-bottom:1px solid rgba(225,214,204,.9)!important;
  box-shadow:0 3px 16px rgba(55,36,22,.045)!important;
  backdrop-filter:blur(14px)!important;
  -webkit-backdrop-filter:blur(14px)!important;
}
body.public-body .public-header-inner-v42{
  position:relative!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  width:min(1160px,calc(100% - 24px))!important;
  min-height:0!important;
  margin:0 auto!important;
  padding:12px 0 0!important;
  gap:8px!important;
}
body.public-body .public-brand-v42{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:auto!important;
  max-width:100%!important;
  margin:0 auto!important;
  gap:10px!important;
  color:var(--ink)!important;
  text-align:left!important;
  text-decoration:none!important;
}
body.public-body .public-brand-v42 .brand-mark{
  flex:0 0 auto!important;
  width:44px!important;
  height:44px!important;
  display:grid!important;
  place-items:center!important;
  border-radius:50%!important;
  font-size:25px!important;
}
body.public-body .public-brand-text-v42{
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-start!important;
  justify-content:center!important;
  min-width:0!important;
}
body.public-body .public-brand-text-v42 strong{
  display:block!important;
  max-width:100%!important;
  font-size:20px!important;
  line-height:1.25!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
body.public-body .public-brand-text-v42 small{
  display:block!important;
  max-width:100%!important;
  margin-top:2px!important;
  font-size:11px!important;
  line-height:1.25!important;
  color:#806f64!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
body.public-body header.site-header.public-header-v42 nav.public-nav-v42{
  position:static!important;
  inset:auto!important;
  display:grid!important;
  visibility:visible!important;
  opacity:1!important;
  pointer-events:auto!important;
  transform:none!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  width:min(720px,100%)!important;
  margin:0 auto!important;
  padding:0!important;
  gap:0!important;
  border:0!important;
  border-top:1px solid rgba(225,214,204,.72)!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
body.public-body header.site-header.public-header-v42 nav.public-nav-v42 a{
  position:relative!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-width:0!important;
  min-height:44px!important;
  padding:9px 4px!important;
  border-radius:0!important;
  background:transparent!important;
  color:#4f4239!important;
  font-size:14px!important;
  font-weight:750!important;
  line-height:1.2!important;
  text-align:center!important;
  white-space:nowrap!important;
  text-decoration:none!important;
}
body.public-body header.site-header.public-header-v42 nav.public-nav-v42 a:after{
  content:""!important;
  position:absolute!important;
  left:22%!important;
  right:22%!important;
  bottom:0!important;
  height:3px!important;
  border-radius:3px 3px 0 0!important;
  background:transparent!important;
}
body.public-body header.site-header.public-header-v42 nav.public-nav-v42 a.active{
  color:var(--red)!important;
  background:rgba(127,29,29,.045)!important;
}
body.public-body header.site-header.public-header-v42 nav.public-nav-v42 a.active:after{
  background:var(--red)!important;
}
body.public-body header.site-header.public-header-v42 .public-menu-toggle,
body.public-body header.site-header.public-header-v42 .public-header-actions,
body.public-body .public-nav-backdrop{
  display:none!important;
}
@media (max-width:800px){
  body.public-body .public-header-inner-v42{
    width:100%!important;
    padding:10px 10px 0!important;
    gap:8px!important;
  }
  body.public-body .public-brand-v42{
    width:100%!important;
    padding:0 8px!important;
  }
  body.public-body .public-brand-v42 .brand-mark{
    width:40px!important;
    height:40px!important;
    font-size:22px!important;
  }
  body.public-body .public-brand-text-v42 strong{
    font-size:17px!important;
  }
  body.public-body .public-brand-text-v42 small{
    display:block!important;
    font-size:10px!important;
  }
  body.public-body header.site-header.public-header-v42 nav.public-nav-v42{
    width:100%!important;
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
  }
  body.public-body header.site-header.public-header-v42 nav.public-nav-v42 a{
    min-height:42px!important;
    padding:8px 2px!important;
    font-size:13px!important;
  }
  body.public-body .page-wrap{padding-top:16px!important}
}
@media (max-width:360px){
  body.public-body .public-header-inner-v42{padding-left:6px!important;padding-right:6px!important}
  body.public-body .public-brand-v42{gap:8px!important;padding-left:4px!important;padding-right:4px!important}
  body.public-body .public-brand-v42 .brand-mark{width:37px!important;height:37px!important;font-size:20px!important}
  body.public-body .public-brand-text-v42 strong{font-size:15px!important}
  body.public-body .public-brand-text-v42 small{font-size:9px!important}
  body.public-body header.site-header.public-header-v42 nav.public-nav-v42 a{font-size:12px!important;padding-left:1px!important;padding-right:1px!important}
}

/* V4.3 base — remove the public logo/title masthead and keep only the four direct navigation entries. */
body.public-body header.site-header.public-header-v43{
  position:sticky!important;
  top:0!important;
  z-index:200!important;
  width:100%!important;
  background:rgba(255,253,249,.97)!important;
  border-bottom:1px solid rgba(225,214,204,.92)!important;
  box-shadow:0 3px 14px rgba(55,36,22,.04)!important;
  backdrop-filter:blur(14px)!important;
  -webkit-backdrop-filter:blur(14px)!important;
}
body.public-body .public-header-inner-v43{
  position:relative!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:min(760px,calc(100% - 24px))!important;
  min-height:52px!important;
  margin:0 auto!important;
  padding:0!important;
}
body.public-body header.site-header.public-header-v43 nav.public-nav-v43{
  position:static!important;
  inset:auto!important;
  display:grid!important;
  visibility:visible!important;
  opacity:1!important;
  pointer-events:auto!important;
  transform:none!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  width:100%!important;
  margin:0!important;
  padding:4px 0!important;
  gap:4px!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
body.public-body header.site-header.public-header-v43 nav.public-nav-v43 a{
  position:relative!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-width:0!important;
  min-height:44px!important;
  padding:8px 6px!important;
  border-radius:10px!important;
  background:transparent!important;
  color:#4f4239!important;
  font-size:14px!important;
  font-weight:750!important;
  line-height:1.2!important;
  text-align:center!important;
  white-space:nowrap!important;
  text-decoration:none!important;
}
body.public-body header.site-header.public-header-v43 nav.public-nav-v43 a:after{
  content:""!important;
  position:absolute!important;
  left:24%!important;
  right:24%!important;
  bottom:3px!important;
  height:3px!important;
  border-radius:3px!important;
  background:transparent!important;
}
body.public-body header.site-header.public-header-v43 nav.public-nav-v43 a.active{
  color:var(--red)!important;
  background:rgba(127,29,29,.06)!important;
}
body.public-body header.site-header.public-header-v43 nav.public-nav-v43 a.active:after{
  background:var(--red)!important;
}
body.public-body header.site-header.public-header-v43 .brand,
body.public-body header.site-header.public-header-v43 .brand-mark,
body.public-body header.site-header.public-header-v43 .public-menu-toggle,
body.public-body header.site-header.public-header-v43 .public-header-actions,
body.public-body .public-nav-backdrop{
  display:none!important;
}
@media (max-width:800px){
  body.public-body .public-header-inner-v43{
    width:100%!important;
    min-height:50px!important;
    padding:0 8px!important;
  }
  body.public-body header.site-header.public-header-v43 nav.public-nav-v43{
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
    gap:2px!important;
    padding:4px 0!important;
  }
  body.public-body header.site-header.public-header-v43 nav.public-nav-v43 a{
    min-height:42px!important;
    padding:7px 2px!important;
    border-radius:9px!important;
    font-size:13px!important;
  }
  body.public-body .page-wrap{padding-top:14px!important}
}
@media (max-width:360px){
  body.public-body .public-header-inner-v43{padding-left:4px!important;padding-right:4px!important}
  body.public-body header.site-header.public-header-v43 nav.public-nav-v43 a{font-size:12px!important;padding-left:1px!important;padding-right:1px!important}
}

/* V4.5 — homepage external phonebook entry plus V4.4 public refinements. */
body.public-body .home-stat-neutral-v44,
body.public-body .stat-grid-v37 .home-stat-neutral-v44,
body.public-body .stat-grid-v37 .home-stat-neutral-v44.highlight,
body.public-body .stat-grid-v37 a.home-stat-neutral-v44{
  background:#fff!important;
  border-color:#eadfd6!important;
  color:#241c18!important;
  box-shadow:0 8px 24px rgba(55,36,22,.055)!important;
}
body.public-body .home-stat-neutral-v44 span,
body.public-body .home-stat-neutral-v44 small{color:#806f64!important}
body.public-body .home-stat-neutral-v44 strong,
body.public-body .home-stat-neutral-v44.highlight strong,
body.public-body .year-expense-v37.home-stat-neutral-v44 strong{color:#201916!important}
body.public-body .year-expense-v37.home-stat-neutral-v44:after{content:none!important;display:none!important}
body.public-body .year-expense-v37.home-stat-neutral-v44:hover{
  border-color:#d8c4b4!important;
  background:#fff!important;
  box-shadow:0 10px 27px rgba(55,36,22,.08)!important;
}
body.public-body .manual-balance-v36.home-stat-balance-v44,
body.public-body .manual-balance-v36.home-stat-balance-v44.ancestral,
body.public-body .manual-balance-v36.home-stat-balance-v44.fund{
  border-color:rgba(111,54,50,.32)!important;
  color:#fff!important;
  box-shadow:0 10px 26px rgba(89,42,38,.13)!important;
}
body.public-body .manual-balance-v36.home-stat-balance-v44.ancestral{
  background:linear-gradient(135deg,#9b5650,#82433f)!important;
}
body.public-body .manual-balance-v36.home-stat-balance-v44.fund{
  background:linear-gradient(135deg,#a9655e,#8f4d48)!important;
}
body.public-body .manual-balance-v36.home-stat-balance-v44 span,
body.public-body .manual-balance-v36.home-stat-balance-v44 strong,
body.public-body .manual-balance-v36.home-stat-balance-v44 small{
  color:#fff!important;
  text-shadow:0 1px 1px rgba(67,27,24,.12)!important;
}
body.public-body .manual-balance-v36.home-stat-balance-v44 small{color:rgba(255,245,242,.82)!important}
body.public-body .manual-balance-v36.home-stat-balance-v44:after{background:rgba(255,255,255,.09)!important}

body.public-body .donation-tools-v44{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:18px;
  margin:16px 0 14px;
  padding:14px;
  border:1px solid #eadfd6;
  border-radius:15px;
  background:#fff;
}
body.public-body .donation-search-v44{display:block;flex:1;min-width:0}
body.public-body .donation-search-v44>span{
  display:block;
  margin:0 0 7px;
  color:#5f4d42;
  font-size:13px;
  font-weight:800;
}
body.public-body .donation-search-control-v44{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto auto;
  gap:8px;
  align-items:center;
}
body.public-body .donation-search-control-v44 input{
  width:100%;
  min-height:44px;
  padding:10px 13px;
  border:1px solid #dcccc0;
  border-radius:11px;
  background:#fff;
  color:#241c18;
  font:inherit;
  font-size:14px;
  outline:none;
  transition:border-color .18s ease,box-shadow .18s ease;
}
body.public-body .donation-search-control-v44 input:focus{
  border-color:#a9655e;
  box-shadow:0 0 0 3px rgba(169,101,94,.12);
}
body.public-body .donation-search-control-v44 button{
  min-height:44px;
  padding:9px 15px;
  border:1px solid #8d4b46;
  border-radius:11px;
  background:#8d4b46;
  color:#fff;
  font:inherit;
  font-size:13px;
  font-weight:800;
  white-space:nowrap;
  cursor:pointer;
}
body.public-body .donation-search-control-v44 .donation-search-clear-v44{
  border-color:#dfd2c9;
  background:#fff;
  color:#6b584d;
}
body.public-body .donation-search-control-v44 button:hover{filter:brightness(.97)}
body.public-body .donation-search-summary-v44{
  flex:none;
  max-width:270px;
  margin:0 0 3px;
  color:#7d6a5e;
  font-size:12px;
  line-height:1.55;
  text-align:right;
}
body.public-body .donation-search-summary-v44.is-filtered{color:#8d403a;font-weight:700}
body.public-body .donation-search-empty-v44{
  margin:14px 0 0;
  padding:24px 16px;
  border:1px dashed #d7c5b8;
  border-radius:14px;
  background:#fffaf6;
  color:#806f64;
  text-align:center;
}
body.public-body [data-donation-row][hidden],
body.public-body [data-donation-group][hidden],
body.public-body [data-donation-nav][hidden]{display:none!important}
body.public-body .donation-search-match-v44{background:linear-gradient(90deg,rgba(252,242,229,.7),rgba(255,255,255,0))}

body.public-body .public-back-top-v44{
  position:fixed;
  right:max(18px,env(safe-area-inset-right));
  bottom:max(22px,calc(env(safe-area-inset-bottom) + 16px));
  z-index:180;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:10px 14px;
  border:1px solid rgba(120,64,59,.25);
  border-radius:999px;
  background:rgba(139,73,68,.94);
  color:#fff;
  box-shadow:0 10px 26px rgba(67,29,26,.22);
  font:inherit;
  font-size:13px;
  font-weight:800;
  cursor:pointer;
  opacity:0;
  visibility:hidden;
  transform:translateY(10px);
  transition:opacity .18s ease,transform .18s ease,visibility .18s ease;
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
}
body.public-body .public-back-top-v44.is-visible{
  opacity:1;
  visibility:visible;
  transform:translateY(0);
}
body.public-body .public-back-top-v44:hover{background:#80443f}

@media (max-width:800px){
  body.public-body .donation-tools-v44{display:block;margin:13px 0 12px;padding:12px}
  body.public-body .donation-search-summary-v44{max-width:none;margin:8px 2px 0;text-align:left}
  body.public-body .public-back-top-v44{right:12px;bottom:max(14px,calc(env(safe-area-inset-bottom) + 10px));min-height:42px;padding:9px 12px;font-size:12px}
}
@media (max-width:480px){
  body.public-body .donation-search-control-v44{grid-template-columns:minmax(0,1fr) auto}
  body.public-body .donation-search-control-v44 .donation-search-clear-v44{grid-column:1/-1;min-height:38px}
  body.public-body .donation-search-control-v44 input{min-height:43px;font-size:14px}
  body.public-body .donation-search-control-v44 button{min-height:43px;padding-left:13px;padding-right:13px}
}
@media print{
  body.public-body .donation-tools-v44,
  body.public-body .public-back-top-v44{display:none!important}
}


/* V4.5 — 首页“林氏电话簿”外部跳转入口。 */
body.public-body .phonebook-entry-v45{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:22px;
  margin:16px 0 0;
  padding:18px 20px 18px 24px;
  overflow:hidden;
  border:1px solid #e8d9d1;
  border-radius:18px;
  background:linear-gradient(135deg,#fff 0%,#fffaf7 58%,#f7e9e3 100%);
  color:#281b17;
  text-decoration:none;
  box-shadow:0 8px 26px rgba(55,36,22,.065);
  transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease;
}
body.public-body .phonebook-entry-v45:before{
  content:"";
  position:absolute;
  inset:0 auto 0 0;
  width:5px;
  background:#8f3b38;
}
body.public-body .phonebook-entry-v45:hover{
  transform:translateY(-2px);
  border-color:#d7b9ae;
  box-shadow:0 13px 34px rgba(55,36,22,.10);
}
body.public-body .phonebook-copy-v45{
  display:grid;
  min-width:0;
  gap:3px;
  font-style:normal;
}
body.public-body .phonebook-copy-v45 small{
  color:#9a6757;
  font-size:11px;
  font-weight:700;
  letter-spacing:1.2px;
}
body.public-body .phonebook-copy-v45 strong{
  color:#2d1c18;
  font-size:21px;
  line-height:1.3;
}
body.public-body .phonebook-copy-v45 em{
  color:#76635b;
  font-size:13px;
  font-style:normal;
  line-height:1.55;
}
body.public-body .phonebook-action-v45{
  display:inline-flex;
  flex:none;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:44px;
  padding:10px 17px;
  border-radius:12px;
  background:#8f3b38;
  color:#fff;
  font-size:14px;
  font-weight:750;
  box-shadow:0 7px 18px rgba(143,59,56,.20);
}
body.public-body .phonebook-action-v45 b{
  font-size:18px;
  line-height:1;
  transition:transform .18s ease;
}
body.public-body .phonebook-entry-v45:hover .phonebook-action-v45 b{transform:translateX(3px)}

@media (max-width:600px){
  body.public-body .phonebook-entry-v45{
    gap:12px;
    margin-top:12px;
    padding:14px 13px 14px 18px;
    border-radius:15px;
  }
  body.public-body .phonebook-copy-v45 small{font-size:9px;letter-spacing:.8px}
  body.public-body .phonebook-copy-v45 strong{font-size:17px}
  body.public-body .phonebook-copy-v45 em{font-size:11px;line-height:1.4}
  body.public-body .phonebook-action-v45{
    min-height:40px;
    padding:8px 12px;
    border-radius:11px;
    font-size:12px;
    white-space:nowrap;
  }
}

@media (max-width:360px){
  body.public-body .phonebook-copy-v45 em{display:none}
  body.public-body .phonebook-action-v45{padding-inline:10px}
}

/* V5.0 — integrated clan phonebook module. */
body.public-body header.site-header.public-header-v43 nav.public-nav-v43{
  grid-template-columns:repeat(5,minmax(0,1fr))!important;
}
body.public-body header.site-header.public-header-v43 nav.public-nav-v43 a{
  padding-left:3px!important;
  padding-right:3px!important;
}
.phonebook-hero-v50{
  display:flex;align-items:flex-end;justify-content:space-between;gap:24px;
  margin:8px 0 18px;padding:28px;border:1px solid #eadfd6;border-radius:22px;
  background:linear-gradient(135deg,#fff 0%,#fff9f5 55%,#f1ddd4 100%);
  box-shadow:0 10px 30px rgba(55,36,22,.07);
}
.phonebook-hero-v50 span,.phonebook-form-panel-v50>span{display:block;color:#a06c52;font-size:11px;font-weight:800;letter-spacing:1.5px}
.phonebook-hero-v50 h1,.phonebook-form-panel-v50 h1{margin:5px 0 6px;font-size:30px;line-height:1.25}
.phonebook-hero-v50 p,.phonebook-form-panel-v50 p{margin:0;color:#75645b}
.phonebook-submit-link-v50{display:inline-flex;align-items:center;justify-content:center;flex:none;min-height:44px;padding:10px 17px;border-radius:12px;background:#8f3b38;color:#fff;font-weight:800;box-shadow:0 7px 18px rgba(143,59,56,.18)}
.phonebook-search-v50{margin:0 0 16px;padding:16px;border:1px solid #eadfd6;border-radius:16px;background:#fff;box-shadow:0 7px 22px rgba(55,36,22,.045)}
.phonebook-search-v50 label{margin:0 0 8px;color:#5f4d42;font-size:13px}
.phonebook-search-v50>div{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:8px}
.phonebook-search-v50 input{min-height:46px;margin:0}
.phonebook-search-v50 button,.phonebook-search-v50 a{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:9px 17px;border:1px solid #8f3b38;border-radius:10px;background:#8f3b38;color:#fff;font-weight:800;cursor:pointer}
.phonebook-search-v50 a{border-color:#e0d4cb;background:#fff;color:#6b584d}
.phonebook-search-v50 small{display:block;margin-top:8px;color:#8a786e}
.phonebook-list-v50{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.phonebook-card-v50{display:flex;align-items:center;justify-content:space-between;gap:14px;min-width:0;padding:16px;border:1px solid #eadfd6;border-radius:16px;background:#fff;box-shadow:0 6px 20px rgba(55,36,22,.045)}
.phonebook-card-v50.is-top{border-left:5px solid #9b5650}
.phonebook-card-copy-v50{min-width:0}
.phonebook-card-title-v50{display:flex;align-items:center;gap:8px}
.phonebook-card-title-v50 strong{font-size:18px}
.phonebook-card-title-v50 span{padding:2px 7px;border-radius:999px;background:#fff0d4;color:#8a5d00;font-size:10px;font-weight:800}
.phonebook-number-v50{display:inline-block;margin-top:4px;color:#0f766e;font-size:17px;font-weight:800;letter-spacing:.3px}
.phonebook-card-copy-v50 p{margin:5px 0 0;color:#7d6a5e;font-size:12px;overflow-wrap:anywhere}
.phonebook-card-actions-v50{display:flex;flex:none;gap:7px}
.phonebook-card-actions-v50 a,.phonebook-card-actions-v50 button{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:7px 12px;border:1px solid #d9cbc1;border-radius:10px;background:#fff;color:#6b3c38;font:inherit;font-size:12px;font-weight:800;cursor:pointer}
.phonebook-card-actions-v50 a{border-color:#a9655e;background:#a9655e;color:#fff}
.phonebook-empty-v50{grid-column:1/-1;padding:42px 20px;border:1px dashed #d7c5b8;border-radius:16px;background:#fffaf6;color:#806f64;text-align:center}
.phonebook-note-v50{margin:18px 0 0;padding:15px 18px;border-left:4px solid #b88a44;border-radius:10px;background:#fff8ec;color:#6f5b4e;font-size:13px;line-height:1.75}
.phonebook-form-panel-v50{max-width:720px;margin:8px auto;padding:28px;border:1px solid #eadfd6;border-radius:22px;background:#fff;box-shadow:0 10px 30px rgba(55,36,22,.07)}
.phonebook-form-v50{margin-top:22px}
.phonebook-form-v50 button{display:inline-flex;align-items:center;justify-content:center;width:100%;min-height:48px;border:0;border-radius:11px;background:#8f3b38;color:#fff;font:inherit;font-weight:800;cursor:pointer}
@media(max-width:800px){
  body.public-body header.site-header.public-header-v43 nav.public-nav-v43{grid-template-columns:repeat(5,minmax(0,1fr))!important}
  body.public-body header.site-header.public-header-v43 nav.public-nav-v43 a{font-size:12px!important;padding-left:1px!important;padding-right:1px!important}
  .phonebook-hero-v50{align-items:flex-start;margin-top:2px;padding:20px;border-radius:18px}
  .phonebook-hero-v50 h1{font-size:25px}
  .phonebook-hero-v50 p{font-size:13px}
  .phonebook-list-v50{grid-template-columns:1fr}
}
@media(max-width:520px){
  body.public-body .public-header-inner-v43{padding-left:2px!important;padding-right:2px!important}
  body.public-body header.site-header.public-header-v43 nav.public-nav-v43{gap:0!important}
  body.public-body header.site-header.public-header-v43 nav.public-nav-v43 a{min-height:44px!important;padding:7px 0!important;border-radius:7px!important;font-size:11px!important;font-weight:700!important}
  .phonebook-hero-v50{display:block;padding:17px}
  .phonebook-submit-link-v50{width:100%;margin-top:14px}
  .phonebook-search-v50>div{grid-template-columns:minmax(0,1fr) auto}
  .phonebook-search-v50>div>a{grid-column:1/-1;min-height:38px}
  .phonebook-card-v50{align-items:flex-start;padding:14px}
  .phonebook-card-title-v50 strong{font-size:17px}
  .phonebook-number-v50{font-size:16px}
  .phonebook-card-actions-v50{display:grid;gap:6px}
  .phonebook-card-actions-v50 a,.phonebook-card-actions-v50 button{min-height:36px;padding:6px 10px}
  .phonebook-form-panel-v50{padding:20px 16px;border-radius:18px}
}
/* V8.5.2 财务列表精简与详情支出展示 */
.activity-simple-list-v852{display:grid;gap:12px}.activity-simple-card-v852{display:grid;grid-template-columns:minmax(0,1fr) auto 18px;align-items:center;gap:14px;padding:20px;border:1px solid #eaded5;border-radius:18px;background:#fff;color:#35251e;text-decoration:none;box-shadow:0 7px 22px rgba(67,42,29,.05)}.activity-simple-card-v852 h3{margin:0;font-size:19px}.activity-simple-card-v852 small{display:block;margin-top:6px;color:#8f7a6e;font-size:11px}.activity-simple-card-v852>span{color:#8f7a6e;font-size:11px;text-align:right}.activity-simple-card-v852>span strong{display:block;margin-top:4px;color:#9b2f2b;font-size:20px}.activity-simple-card-v852>b{color:#a18475;font-size:22px}.activity-expense-list-v852{display:grid}.activity-expense-list-v852>a{display:grid;grid-template-columns:minmax(0,1fr) auto 14px;align-items:center;gap:12px;padding:13px 4px;border-bottom:1px solid #eee3dc;color:#382820;text-decoration:none}.activity-expense-list-v852>a:last-child{border-bottom:0}.activity-expense-list-v852 span b,.activity-expense-list-v852 span small{display:block}.activity-expense-list-v852 span small{margin-top:4px;color:#947f73;font-size:11px}.activity-expense-list-v852>a>strong{color:#a02f2b;font-size:16px}.activity-expense-list-v852 i{color:#a18475;font-style:normal;font-size:20px}@media(max-width:600px){.activity-simple-card-v852{padding:16px;gap:10px}.activity-simple-card-v852 h3{font-size:16px}.activity-simple-card-v852>span strong{font-size:17px}.activity-expense-list-v852>a{padding:12px 2px}}
