/* ========================================
   点亮梦想慈善会 - 公益社区平台 CSS
   ======================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #FF6B35;
  --primary-dark: #e55c2a;
  --secondary: #F7931E;
  --accent: #07C160;
  --dark: #1a1a2e;
  --dark2: #16213e;
  --text: #333;
  --text-light: #666;
  --text-muted: #999;
  --bg-gray: #f7f8fa;
  --border: #e8e8e8;
  --white: #fff;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 32px rgba(0,0,0,0.14);
  --radius: 12px;
  --radius-lg: 20px;
}

html { scroll-behavior: smooth; }
body { font-family: 'Noto Sans SC', -apple-system, sans-serif; color: var(--text); background: var(--white); overflow-x: hidden; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ===== HEADER ===== */
#header { position: sticky; top: 0; z-index: 1000; background: var(--white); box-shadow: 0 2px 12px rgba(0,0,0,0.08); }

.header-top { background: var(--dark); color: rgba(255,255,255,0.8); font-size: 13px; padding: 6px 0; }
.header-top .container { display: flex; justify-content: space-between; align-items: center; }
.ht-left { display: flex; align-items: center; gap: 4px; }
.ht-right { display: flex; align-items: center; gap: 8px; }

.btn-sm { padding: 3px 12px; border-radius: 20px; font-size: 12px; text-decoration: none; background: var(--primary); color: white; transition: all .2s; }
.btn-sm:hover { background: var(--primary-dark); }
.btn-sm.btn-outline { background: transparent; border: 1px solid rgba(255,255,255,0.4); color: rgba(255,255,255,0.85); }
.btn-sm.btn-outline:hover { border-color: white; color: white; }
.btn-sm.btn-wechat { background: var(--accent); display: flex; align-items: center; gap: 4px; }
.btn-sm.btn-wechat:hover { background: #06ae54; }

.header-main { padding: 12px 0; }
.header-main .container { display: flex; align-items: center; gap: 24px; }

.logo-wrap { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo-icon { width: 48px; height: 48px; }
.logo-icon svg { width: 100%; height: 100%; }
.logo-text h1 { font-size: 18px; font-weight: 700; color: var(--dark); line-height: 1.2; }
.logo-text p { font-size: 11px; color: var(--text-muted); }
.logo-icon-sm { width: 36px; height: 36px; }

.main-nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.main-nav a { padding: 6px 14px; border-radius: 8px; font-size: 14px; color: var(--text); text-decoration: none; font-weight: 500; transition: all .2s; }
.main-nav a:hover, .main-nav a.active { color: var(--primary); background: rgba(255,107,53,0.08); }

/* 导航下拉菜单 */
.nav-dropdown { position: relative; }
.nav-dropdown .nav-parent { cursor: pointer; display: flex; align-items: center; gap: 2px; }
.nav-dropdown-menu { display: none; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); background: #fff; border-radius: 12px; box-shadow: 0 8px 30px rgba(0,0,0,0.12); padding: 8px 0; min-width: 160px; z-index: 1000; margin-top: 4px; }
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu { display: block; animation: navFadeIn .2s ease; }
.nav-dropdown-menu a { display: block; padding: 8px 20px; font-size: 13px; color: var(--text); border-radius: 0; white-space: nowrap; }
.nav-dropdown-menu a:hover { background: rgba(255,107,53,0.08); color: var(--primary); }
.nav-divider { height: 1px; background: #eee; margin: 4px 12px; }
.nav-sub-title { padding: 6px 20px 2px; font-size: 11px; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }
@keyframes navFadeIn { from { opacity: 0; transform: translateX(-50%) translateY(-6px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }

.nav-toggle { display: none; background: none; border: none; font-size: 22px; cursor: pointer; margin-left: 12px; }

/* ===== HERO ===== */
.hero { position: relative; }
.hero-swiper { height: 560px; }
.swiper-slide { display: flex; align-items: center; }
.hero-content { max-width: 560px; padding: 0 60px; color: white; z-index: 2; }
.hero-tag { display: inline-block; background: rgba(255,255,255,0.15); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,0.25); padding: 5px 16px; border-radius: 20px; font-size: 13px; margin-bottom: 20px; }
.hero-content h2 { font-size: 42px; font-weight: 900; line-height: 1.1; margin-bottom: 8px; }
.hero-content h3 { font-size: 28px; font-weight: 700; opacity: 0.9; margin-bottom: 16px; }
.hero-content p { font-size: 15px; opacity: 0.8; line-height: 1.7; margin-bottom: 28px; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-hero-primary { padding: 12px 28px; background: var(--primary); color: white; border-radius: 30px; text-decoration: none; font-weight: 700; font-size: 15px; transition: all .3s; box-shadow: 0 4px 16px rgba(255,107,53,0.4); }
.btn-hero-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 6px 24px rgba(255,107,53,0.5); }
.btn-hero-outline { padding: 12px 28px; border: 2px solid rgba(255,255,255,0.7); color: white; border-radius: 30px; text-decoration: none; font-weight: 700; font-size: 15px; transition: all .3s; }
.btn-hero-outline:hover { background: rgba(255,255,255,0.15); border-color: white; }

.hero-visual { position: absolute; right: 80px; top: 50%; transform: translateY(-50%); }
.floating-cards { display: flex; flex-direction: column; gap: 14px; }
.fcard { background: rgba(255,255,255,0.12); backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,0.2); padding: 14px 20px; border-radius: 14px; color: white; font-size: 14px; min-width: 220px; animation: floatUp 3s ease-in-out infinite; }
.fcard strong { display: block; font-size: 22px; font-weight: 800; margin-top: 4px; }
.fcard1 { animation-delay: 0s; }
.fcard2 { animation-delay: 1s; }
.fcard3 { animation-delay: 2s; }
@keyframes floatUp { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)} }

/* ===== TICKER ===== */
.donation-ticker { background: var(--dark); color: white; padding: 10px 0; display: flex; align-items: center; overflow: hidden; }
.ticker-label { flex-shrink: 0; padding: 0 20px; font-size: 13px; font-weight: 600; color: var(--secondary); border-right: 1px solid rgba(255,255,255,0.15); white-space: nowrap; }
.ticker-track { flex: 1; overflow: hidden; margin-left: 16px; }
.ticker-inner { display: flex; gap: 48px; animation: tickerScroll 40s linear infinite; white-space: nowrap; }
.ticker-inner span { font-size: 13px; color: rgba(255,255,255,0.85); flex-shrink: 0; }
.ticker-inner span em { color: var(--secondary); font-style: normal; font-weight: 700; }
@keyframes tickerScroll { from{transform:translateX(0)} to{transform:translateX(-50%)} }

/* ===== STATS ===== */
.stats-section { background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%); padding: 48px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 24px; }
.stat-item { text-align: center; color: white; }
.stat-icon { font-size: 32px; margin-bottom: 8px; }
.stat-num { font-size: 36px; font-weight: 900; line-height: 1; }
.stat-unit { font-size: 13px; opacity: 0.8; margin-top: 2px; }
.stat-label { font-size: 14px; opacity: 0.9; margin-top: 6px; font-weight: 500; }

/* ===== SECTION BASE ===== */
.section { padding: 80px 0; }
.section-gray { background: var(--bg-gray); }
.section-header { text-align: center; margin-bottom: 48px; }
.section-tag { display: inline-block; background: rgba(255,107,53,0.1); color: var(--primary); padding: 4px 16px; border-radius: 20px; font-size: 13px; font-weight: 600; margin-bottom: 12px; }
.section-header h2 { font-size: 32px; font-weight: 800; color: var(--dark); margin-bottom: 12px; }
.section-header p { font-size: 15px; color: var(--text-light); }

/* ===== PROJECT FILTER ===== */
.project-filter { display: flex; gap: 8px; justify-content: center; margin-bottom: 36px; flex-wrap: wrap; }
.filter-btn { padding: 7px 18px; border-radius: 24px; border: 1.5px solid var(--border); background: white; color: var(--text); font-size: 14px; cursor: pointer; transition: all .2s; }
.filter-btn:hover, .filter-btn.active { background: var(--primary); color: white; border-color: var(--primary); }

/* ===== PROJECT CARDS ===== */
.projects-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.project-card { background: white; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); transition: all .3s; }
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.project-img { position: relative; }
.proj-img-placeholder { height: 160px; display: flex; align-items: center; justify-content: center; font-size: 52px; }
.project-badge { position: absolute; top: 12px; left: 12px; background: var(--accent); color: white; font-size: 12px; padding: 3px 10px; border-radius: 20px; font-weight: 600; }
.project-badge.project-badge-urgent { background: #f44336; }
.project-platform { position: absolute; top: 12px; right: 12px; }
.pt-tag { font-size: 11px; padding: 3px 8px; border-radius: 6px; font-weight: 600; color: white; }
.pt-tencent { background: #07C160; }
.pt-alipay { background: #1677FF; }
.pt-douyin { background: #111; }
.project-body { padding: 20px; }
.project-body h4 { font-size: 16px; font-weight: 700; margin-bottom: 8px; color: var(--dark); }
.project-body > p { font-size: 13px; color: var(--text-light); line-height: 1.6; margin-bottom: 12px; }
.project-org { font-size: 12px; color: var(--text-muted); margin-bottom: 16px; }
.project-org span { font-weight: 600; color: var(--text-light); }
.project-progress { margin-bottom: 16px; }
.progress-info { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 8px; }
.progress-info strong { color: var(--primary); font-size: 15px; }
.progress-bar { height: 8px; background: #f0f0f0; border-radius: 4px; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--primary), var(--secondary)); border-radius: 4px; }
.progress-meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-muted); margin-top: 8px; }
.project-actions { display: flex; gap: 10px; }
.btn-donate { flex: 1; text-align: center; padding: 9px; background: var(--primary); color: white; border-radius: 8px; text-decoration: none; font-size: 14px; font-weight: 600; transition: all .2s; }
.btn-donate:hover { background: var(--primary-dark); }
.btn-track { flex: 1; text-align: center; padding: 9px; border: 1.5px solid var(--border); color: var(--text); border-radius: 8px; text-decoration: none; font-size: 14px; transition: all .2s; }
.btn-track:hover { border-color: var(--primary); color: var(--primary); }
.section-more { text-align: center; margin-top: 40px; }
.btn-more { padding: 12px 36px; border: 2px solid var(--primary); color: var(--primary); border-radius: 28px; text-decoration: none; font-size: 15px; font-weight: 600; transition: all .3s; }
.btn-more:hover { background: var(--primary); color: white; }

/* ===== ACTIVITIES ===== */
.activities-list { display: flex; flex-direction: column; gap: 16px; }
.activity-card { background: white; border-radius: var(--radius); padding: 24px; display: flex; align-items: center; gap: 24px; box-shadow: var(--shadow); transition: all .2s; }
.activity-card:hover { transform: translateX(4px); box-shadow: var(--shadow-hover); }
.act-date { flex-shrink: 0; width: 64px; text-align: center; background: var(--primary); color: white; border-radius: 12px; padding: 10px; }
.act-date strong { display: block; font-size: 26px; font-weight: 900; line-height: 1; }
.act-date span { font-size: 12px; opacity: 0.9; }
.act-body { flex: 1; }
.act-tags { display: flex; gap: 8px; margin-bottom: 8px; }
.tag-type { background: rgba(255,107,53,0.1); color: var(--primary); font-size: 12px; padding: 2px 10px; border-radius: 12px; font-weight: 600; }
.tag-pts { background: rgba(247,147,30,0.1); color: var(--secondary); font-size: 12px; padding: 2px 10px; border-radius: 12px; font-weight: 600; }
.act-body h4 { font-size: 16px; font-weight: 700; margin-bottom: 6px; color: var(--dark); }
.act-body p { font-size: 13px; color: var(--text-light); margin-bottom: 4px; }
.btn-join { flex-shrink: 0; padding: 10px 22px; background: var(--accent); color: white; border-radius: 24px; text-decoration: none; font-size: 14px; font-weight: 600; transition: all .2s; }
.btn-join:hover { background: #06ae54; }

/* ===== AIDED ===== */
.aided-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.aided-left .section-tag { display: inline-block; margin-bottom: 12px; }
.aided-left h2 { font-size: 36px; font-weight: 800; margin-bottom: 16px; color: var(--dark); line-height: 1.2; }
.aided-left > p { color: var(--text-light); line-height: 1.7; margin-bottom: 32px; }
.aided-features { display: flex; flex-direction: column; gap: 20px; margin-bottom: 32px; }
.af-item { display: flex; align-items: flex-start; gap: 16px; }
.af-icon { font-size: 28px; flex-shrink: 0; }
.af-text h5 { font-size: 15px; font-weight: 700; margin-bottom: 4px; color: var(--dark); }
.af-text p { font-size: 13px; color: var(--text-light); line-height: 1.6; }
.btn-aided { display: inline-block; padding: 12px 28px; background: var(--dark); color: white; border-radius: 28px; text-decoration: none; font-weight: 600; transition: all .3s; }
.btn-aided:hover { background: var(--primary); }

.permission-chart { background: white; border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-hover); }
.permission-chart h4 { font-size: 16px; font-weight: 700; margin-bottom: 20px; color: var(--dark); }
.perm-layer { padding: 12px 18px; border-radius: 10px; margin-bottom: 10px; display: flex; flex-direction: column; gap: 4px; }
.perm-l1 { background: linear-gradient(135deg,#FF6B35,#F7931E); color: white; }
.perm-l2 { background: linear-gradient(135deg,#2196F3,#03A9F4); color: white; }
.perm-l3 { background: linear-gradient(135deg,#9C27B0,#E91E63); color: white; }
.perm-l4 { background: rgba(255,107,53,0.08); color: var(--text); border: 1.5px solid rgba(255,107,53,0.2); }
.perm-l5 { background: var(--bg-gray); color: var(--text-light); }
.pl-label { font-size: 14px; font-weight: 700; }
.pl-desc { font-size: 12px; opacity: 0.85; }
.perm-l4 .pl-desc, .perm-l5 .pl-desc { opacity: 0.7; }

/* ===== ORGS ===== */
.orgs-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 20px; }
.org-card { background: white; border-radius: var(--radius-lg); padding: 24px; text-align: center; box-shadow: var(--shadow); transition: all .3s; position: relative; }
.org-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.org-logo { width: 64px; height: 64px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 28px; margin: 0 auto 12px; }
.org-card h5 { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.org-card > p { font-size: 12px; color: var(--text-muted); margin-bottom: 10px; }
.org-stats { display: flex; justify-content: center; gap: 8px; font-size: 11px; color: var(--text-light); margin-bottom: 12px; }
.org-badge { font-size: 11px; padding: 2px 10px; border-radius: 12px; font-weight: 600; }
.org-verified { background: rgba(7,193,96,0.1); color: var(--accent); }
.org-apply .org-logo { background: #f5f5f5; }
.btn-apply { display: inline-block; margin-top: 8px; padding: 8px 20px; background: var(--primary); color: white; border-radius: 20px; text-decoration: none; font-size: 13px; font-weight: 600; }

/* ===== SHOP ===== */
.shop-tabs { display: flex; gap: 8px; justify-content: center; margin-bottom: 36px; }
.shop-tab { padding: 10px 28px; border-radius: 28px; border: 1.5px solid var(--border); background: white; font-size: 15px; cursor: pointer; font-weight: 600; transition: all .2s; }
.shop-tab.active { background: var(--primary); color: white; border-color: var(--primary); }
.shop-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; margin-bottom: 32px; }
.shop-card { background: white; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); transition: all .3s; }
.shop-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.shop-img { height: 120px; display: flex; align-items: center; justify-content: center; font-size: 48px; }
.shop-body { padding: 16px; }
.shop-body h5 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.shop-body > p { font-size: 13px; color: var(--text-light); margin-bottom: 12px; line-height: 1.5; }
.shop-price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 12px; }
.pts-price { font-size: 16px; font-weight: 800; color: var(--primary); }
.or-money { font-size: 13px; color: var(--text-muted); }
.btn-exchange { display: block; text-align: center; padding: 9px; background: linear-gradient(135deg,var(--primary),var(--secondary)); color: white; border-radius: 8px; text-decoration: none; font-size: 14px; font-weight: 600; transition: all .2s; }
.btn-exchange:hover { opacity: 0.9; }
.shop-entry-banner { background: linear-gradient(135deg,var(--dark),var(--dark2)); border-radius: var(--radius-lg); padding: 28px 36px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.shop-entry-banner h4 { font-size: 20px; font-weight: 700; color: white; margin-bottom: 8px; }
.shop-entry-banner p { color: rgba(255,255,255,0.7); font-size: 14px; }
.btn-seller { flex-shrink: 0; padding: 12px 28px; background: var(--primary); color: white; border-radius: 28px; text-decoration: none; font-weight: 700; font-size: 15px; transition: all .3s; }
.btn-seller:hover { background: var(--primary-dark); }

/* ===== DONATE ===== */
.section-donate { background: linear-gradient(135deg,#1a1a2e,#16213e,#0f3460); color: white; }
.section-donate .section-tag { background: rgba(255,107,53,0.2); }
.section-donate h2 { color: white; }
.donate-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: flex-start; padding-top: 20px; }
.donate-channels { margin-top: 24px; }
.donate-channels h4 { font-size: 16px; font-weight: 700; color: rgba(255,255,255,0.9); margin-bottom: 16px; }
.channel-item { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 20px; padding: 16px; background: rgba(255,255,255,0.06); border-radius: 12px; border: 1px solid rgba(255,255,255,0.08); }
.ch-icon { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
.ch-enterprise { background: rgba(255,107,53,0.2); }
.ch-tencent { background: rgba(7,193,96,0.2); }
.ch-alipay { background: rgba(22,119,255,0.2); }
.ch-douyin { background: rgba(255,255,255,0.1); }
.ch-info h5 { font-size: 14px; font-weight: 700; color: white; margin-bottom: 4px; }
.ch-info p { font-size: 13px; color: rgba(255,255,255,0.6); margin-bottom: 6px; }
.ch-detail { font-size: 12px; color: rgba(255,255,255,0.4); }
.ch-btn { font-size: 12px; color: var(--secondary); text-decoration: none; font-weight: 600; }
.ch-btn:hover { color: var(--primary); }

.donate-form-card { background: white; border-radius: var(--radius-lg); padding: 32px; }
.donate-form-card h4 { font-size: 20px; font-weight: 700; color: var(--dark); margin-bottom: 24px; }
.amount-select { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-bottom: 20px; }
.amt-btn { padding: 10px; border: 2px solid var(--border); background: white; border-radius: 10px; font-size: 16px; font-weight: 700; cursor: pointer; transition: all .2s; color: var(--text); }
.amt-btn:hover, .amt-btn.active { border-color: var(--primary); color: var(--primary); background: rgba(255,107,53,0.06); }
.amt-custom { grid-column: span 3; padding: 10px 16px; border: 2px solid var(--border); border-radius: 10px; font-size: 15px; outline: none; }
.amt-custom:focus { border-color: var(--primary); }
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-size: 13px; font-weight: 600; color: var(--text-light); margin-bottom: 8px; }
.form-select { width: 100%; padding: 10px 14px; border: 1.5px solid var(--border); border-radius: 10px; font-size: 14px; outline: none; }
.form-select:focus { border-color: var(--primary); }
.pay-methods, .anon-toggle { display: flex; gap: 16px; }
.pay-opt, .toggle-opt { display: flex; align-items: center; gap: 6px; font-size: 14px; cursor: pointer; }
.form-textarea { width: 100%; padding: 10px 14px; border: 1.5px solid var(--border); border-radius: 10px; font-size: 14px; resize: none; height: 72px; outline: none; font-family: inherit; }
.form-textarea:focus { border-color: var(--primary); }
.btn-donate-submit { width: 100%; padding: 14px; background: linear-gradient(135deg,var(--primary),var(--secondary)); color: white; border: none; border-radius: 12px; font-size: 16px; font-weight: 700; cursor: pointer; transition: all .3s; }
.btn-donate-submit:hover { opacity: 0.9; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255,107,53,0.4); }
.btn-tencent-donate { background: linear-gradient(135deg, #07C160, #06AD56) !important; }
.btn-tencent-donate:hover { box-shadow: 0 6px 20px rgba(7,193,96,0.4) !important; }
.btn-offline-donate { background: linear-gradient(135deg, #667eea, #764ba2) !important; font-size: 14px !important; }
.btn-offline-donate:hover { box-shadow: 0 6px 20px rgba(102,126,234,0.4) !important; }
.donate-divider { display: flex; align-items: center; margin: 12px 0; color: var(--text-muted); font-size: 13px; }
.donate-divider::before, .donate-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.donate-divider span { padding: 0 12px; }
.donate-tip { font-size: 12px; color: var(--text-muted); text-align: center; margin-top: 12px; line-height: 1.8; }

/* ===== PARTNERS ===== */
.honor-levels { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; margin-bottom: 32px; }
.honor-card { background: white; border-radius: var(--radius-lg); padding: 28px; text-align: center; box-shadow: var(--shadow); border-top: 4px solid var(--border); transition: all .3s; }
.honor-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.honor-silver { border-top-color: #9E9E9E; }
.honor-gold { border-top-color: var(--secondary); background: linear-gradient(to bottom, #fffbf0, white); }
.honor-icon { font-size: 40px; margin-bottom: 12px; }
.honor-card h5 { font-size: 18px; font-weight: 700; margin-bottom: 6px; color: var(--dark); }
.honor-card > p { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.honor-card ul { list-style: none; text-align: left; display: flex; flex-direction: column; gap: 8px; }
.honor-card ul li { font-size: 14px; color: var(--text); }
.apply-partner-banner { background: linear-gradient(135deg,var(--primary),var(--secondary)); border-radius: var(--radius-lg); padding: 28px 36px; display: flex; align-items: center; justify-content: space-between; gap: 24px; color: white; }
.apply-partner-banner h4 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.apply-partner-banner p { font-size: 14px; opacity: 0.85; }
.btn-apply-partner { flex-shrink: 0; padding: 12px 28px; background: white; color: var(--primary); border-radius: 28px; text-decoration: none; font-weight: 700; font-size: 15px; transition: all .3s; }
.btn-apply-partner:hover { transform: scale(1.05); }

/* ===== TRANSPARENCY ===== */
.transparency-layout { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; align-items: flex-start; }
.fund-chart-wrap { display: flex; flex-direction: column; align-items: center; }
.chart-legend { margin-top: 20px; display: flex; flex-direction: column; gap: 8px; width: 100%; }
.cl-item { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text); }
.cl-item span { width: 14px; height: 14px; border-radius: 4px; flex-shrink: 0; }
.fund-flow h4 { font-size: 18px; font-weight: 700; margin-bottom: 20px; color: var(--dark); }
.flow-table { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.flow-row { display: grid; grid-template-columns: 70px 1fr 80px 100px 70px; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: 14px; align-items: center; }
.flow-row:last-child { border-bottom: none; }
.flow-header { background: var(--bg-gray); font-weight: 700; font-size: 13px; color: var(--text-light); }
.flow-done { color: var(--accent); font-weight: 600; font-size: 12px; }
.flow-doing { color: var(--secondary); font-weight: 600; font-size: 12px; }
.btn-more-flow { display: inline-block; margin-top: 16px; font-size: 14px; color: var(--primary); text-decoration: none; font-weight: 600; }

/* ===== CTA ===== */
.section-cta { background: linear-gradient(135deg,#f8f9ff,#eef2ff); }
.cta-layout { display: grid; grid-template-columns: 1fr 360px; gap: 60px; align-items: center; }
.cta-layout h2 { font-size: 28px; font-weight: 800; margin-bottom: 28px; color: var(--dark); }
.cta-features { display: flex; flex-direction: column; gap: 16px; margin-bottom: 36px; }
.cta-feat { display: flex; align-items: center; gap: 12px; font-size: 16px; color: var(--text); }
.cta-feat span { font-size: 24px; }
.cta-qrs { display: flex; gap: 32px; }
.qr-wrap { text-align: center; }
.qr-placeholder { width: 100px; height: 100px; background: white; border-radius: 12px; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow); padding: 10px; margin-bottom: 8px; }
.qr-wrap p { font-size: 13px; color: var(--text-light); font-weight: 600; }

.phone-frame { width: 240px; background: var(--dark); border-radius: 36px; padding: 16px; box-shadow: 0 20px 60px rgba(0,0,0,0.3); margin: 0 auto; }
.phone-screen { background: white; border-radius: 24px; overflow: hidden; }
.ps-header { background: linear-gradient(135deg,var(--primary),var(--secondary)); color: white; text-align: center; padding: 14px; font-size: 14px; font-weight: 700; }
.ps-item { padding: 14px 16px; border-bottom: 1px solid #f0f0f0; font-size: 14px; color: var(--text); display: flex; align-items: center; justify-content: space-between; }
.ps-highlight { background: rgba(255,107,53,0.05); color: var(--primary); font-weight: 600; }
.badge-dot { background: var(--primary); color: white; font-size: 11px; padding: 1px 6px; border-radius: 10px; }
.ps-donate-btn { background: linear-gradient(135deg,var(--primary),var(--secondary)); color: white; text-align: center; padding: 14px; font-size: 15px; font-weight: 700; cursor: pointer; }

/* ===== NEWS ===== */
/* 新闻分类筛选Tab */
.news-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
  padding: 4px 0;
}
.news-filter-btn {
  padding: 8px 20px;
  border-radius: 24px;
  border: 2px solid #e0e0e0;
  background: #fff;
  color: #666;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
}
.news-filter-btn:hover {
  border-color: #667eea;
  color: #667eea;
}
.news-filter-btn.active {
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 12px rgba(102,126,234,0.35);
}
.news-filter-divider {
  display: inline-block;
  width: 1px;
  height: 28px;
  background: #ddd;
  margin: 0 6px;
  vertical-align: middle;
}
.news-filter-label {
  display: inline-block;
  padding: 4px 10px;
  font-size: 11px;
  color: #999;
  font-weight: 600;
  letter-spacing: 1px;
}
.news-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.news-card { background: white; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.news-img { height: 200px; display: flex; align-items: center; justify-content: center; font-size: 60px; }
.news-body { padding: 24px; }
.news-tag { display: inline-block; background: rgba(255,107,53,0.1); color: var(--primary); font-size: 12px; padding: 2px 10px; border-radius: 12px; margin-bottom: 10px; font-weight: 600; }
.news-body h4 { font-size: 17px; font-weight: 700; margin-bottom: 10px; color: var(--dark); line-height: 1.5; }
.news-body > p { font-size: 14px; color: var(--text-light); line-height: 1.7; margin-bottom: 16px; }
.news-meta { display: flex; justify-content: space-between; align-items: center; }
.news-meta span { font-size: 13px; color: var(--text-muted); }
.read-more { font-size: 13px; color: var(--primary); text-decoration: none; font-weight: 600; }
.news-list { display: flex; flex-direction: column; gap: 0; background: white; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.news-item { display: flex; align-items: flex-start; gap: 16px; padding: 18px 24px; border-bottom: 1px solid var(--border); }
.news-item:last-child { border-bottom: none; }
.ni-date { flex-shrink: 0; font-size: 13px; font-weight: 700; color: var(--text-muted); padding-top: 2px; }
.ni-content h5 { font-size: 14px; font-weight: 600; color: var(--text); line-height: 1.5; margin-top: 6px; }

/* ===== FOOTER ===== */
.footer { background: var(--dark); color: rgba(255,255,255,0.75); padding: 60px 0 0; }

/* ===== 新闻详情弹窗 ===== */
#newsDetailModal .modal-content h3 { font-size: 18px; font-weight: 700; color: #1a1a2e; margin: 20px 0 10px; }
#newsDetailModal .modal-content h4 { font-size: 16px; font-weight: 600; color: #333; margin: 16px 0 8px; }
#newsDetailModal .modal-content ul { padding-left: 20px; margin: 8px 0; }
#newsDetailModal .modal-content li { margin-bottom: 6px; line-height: 1.6; }
#newsDetailModal .modal-content blockquote { border-left: 3px solid #667eea; padding: 8px 16px; margin: 12px 0; background: #f5f3ff; border-radius: 0 8px 8px 0; font-style: italic; color: #555; }
#newsDetailModal .modal-content strong { color: #1a1a2e; }
.news-item:hover { background: rgba(102,126,234,0.05); transition: background 0.2s; border-radius: 8px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 48px; padding-bottom: 48px; }
.footer-brand .logo-wrap { gap: 10px; margin-bottom: 16px; }
.footer-brand h3 { font-size: 16px; font-weight: 700; color: white; }
.footer-brand > p { font-size: 14px; line-height: 1.7; margin-bottom: 20px; }
.social-links { display: flex; gap: 12px; }
.social-links a { font-size: 22px; text-decoration: none; transition: transform .2s; }
.social-links a:hover { transform: scale(1.2); }
.footer-links h4, .footer-contact h4 { font-size: 15px; font-weight: 700; color: white; margin-bottom: 16px; }
.footer-links { display: flex; flex-direction: column; gap: 0; }
.footer-links a { font-size: 14px; color: rgba(255,255,255,0.6); text-decoration: none; padding: 6px 0; transition: color .2s; }
.footer-links a:hover { color: var(--primary); }
.footer-contact p { font-size: 14px; margin-bottom: 8px; }
.footer-cert { margin-top: 16px; display: flex; flex-direction: column; gap: 6px; }
.footer-cert span { font-size: 12px; color: rgba(255,255,255,0.5); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 20px 0; text-align: center; font-size: 13px; }
.footer-bottom a { color: rgba(255,255,255,0.5); text-decoration: none; }
.footer-bottom a:hover { color: var(--primary); }

/* ===== FLOAT DONATE ===== */
.float-donate { position: fixed; right: 24px; bottom: 80px; z-index: 500; }
.float-donate a { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 56px; height: 56px; background: linear-gradient(135deg,var(--primary),var(--secondary)); color: white; border-radius: 50%; text-decoration: none; justify-content: center; box-shadow: 0 4px 20px rgba(255,107,53,0.5); transition: all .3s; font-size: 11px; animation: pulse 2s ease-in-out infinite; }
.float-donate a:hover { transform: scale(1.1); }
.float-donate span:first-child { font-size: 20px; }

/* ========================================
   登录/注册弹窗样式
   ======================================== */

.auth-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s;
  backdrop-filter: blur(6px);
}
.auth-modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

/* ===== 通用弹窗遮罩层 ===== */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  backdrop-filter: blur(6px);
}
.modal-overlay .modal-content {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  animation: modalFadeIn 0.3s ease;
}
@keyframes modalFadeIn {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.auth-modal {
  background: #fff;
  border-radius: var(--radius-lg);
  width: 420px;
  max-width: 92vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 24px 80px rgba(0,0,0,0.25);
  animation: modalSlideIn .35s ease;
  overflow: hidden;
}
.auth-modal-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 36px 32px 8px;
}
.auth-modal-footer {
  padding: 12px 32px 20px;
  display: flex;
  gap: 12px;
  flex-shrink: 0;
  border-top: 1px solid #f0f0f0;
  background: #fff;
}
.auth-modal-footer .btn-back {
  flex: 1;
  padding: 12px;
  border-radius: 12px;
  border: 2px solid #FF6B35;
  background: #fff;
  color: #FF6B35;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
}
.auth-modal-footer .btn-back:hover {
  background: #fff5f0;
}
.auth-modal-footer .btn-close-modal {
  flex: 1;
  padding: 12px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, #FF6B35, #F7931E);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
}
.auth-modal-footer .btn-close-modal:hover {
  box-shadow: 0 4px 16px rgba(255,107,53,0.4);
}

@keyframes modalSlideIn {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.auth-close {
  position: absolute;
  top: 14px; right: 16px;
  font-size: 26px;
  color: #999;
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
  transition: color .2s;
}
.auth-close:hover { color: #333; }

.auth-tabs {
  display: flex;
  margin-bottom: 28px;
  gap: 12px;
}
.auth-tab {
  flex: 1;
  padding: 10px;
  border: 2px solid #eee;
  border-radius: 10px;
  background: none;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  color: #666;
  transition: all .2s;
}
.auth-tab.active {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(255,107,53,0.06);
}
.auth-tab:hover:not(.active) {
  border-color: #ccc;
  color: #333;
}

/* 表单 */
.auth-form { }
.auth-field {
  margin-bottom: 18px;
}
.auth-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #555;
  margin-bottom: 6px;
}
.auth-field input,
.auth-field select {
  width: 100%;
  padding: 11px 14px;
  border: 2px solid #e8e8e8;
  border-radius: 10px;
  font-size: 15px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  box-sizing: border-box;
}
.auth-field input:focus,
.auth-field select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255,107,53,0.12);
}

.auth-submit {
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all .3s;
  margin-top: 6px;
}
.auth-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(255,107,53,0.4);
}

.auth-switch {
  text-align: center;
  margin-top: 16px;
  font-size: 13px;
  color: #888;
}
.auth-switch a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}
.auth-switch a:hover { text-decoration: underline; }

/* 用户欢迎文字（已登录状态）*/
.user-welcome {
  font-size: 13px;
  color: #fff;
  font-weight: 600;
  margin-right: 8px;
  background: linear-gradient(135deg, #FF6B35, #F7931E);
  padding: 4px 14px;
  border-radius: 20px;
  cursor: pointer;
  display: inline-block;
  transition: opacity .2s;
}
.user-welcome:hover { opacity: 0.85; }

/* 个人中心菜单 */
.uc-menu { display: flex; flex-direction: column; gap: 0; }
.uc-item {
  display: block;
  padding: 14px 18px;
  text-decoration: none;
  color: #333;
  font-size: 15px;
  border-bottom: 1px solid #f5f5f5;
  transition: background .2s, color .2s;
  border-radius: 10px;
  cursor: pointer;
}
.uc-item:hover { background: #fff5f0; color: #FF6B35; }

/* ===== 我的捐赠记录 ===== */
.donation-summary {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
}
.ds-card {
  flex: 1;
  background: linear-gradient(135deg, #fff5f0, #ffede5);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
}
.ds-label {
  display: block;
  font-size: 12px;
  color: #888;
  margin-bottom: 6px;
}
.ds-value {
  display: block;
  font-size: 24px;
  font-weight: 800;
  color: #333;
}
.donation-list {
  max-height: 320px;
  overflow-y: auto;
  margin-bottom: 4px;
}
.donation-list::-webkit-scrollbar { width: 4px; }
.donation-list::-webkit-scrollbar-track { background: #f5f5f5; border-radius: 2px; }
.donation-list::-webkit-scrollbar-thumb { background: #ddd; border-radius: 2px; }

.donation-record {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: #fafafa;
  border-radius: 10px;
  margin-bottom: 8px;
  transition: background .2s;
}
.donation-record:hover { background: #f0f0f0; }
.dr-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.dr-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, rgba(255,107,53,0.1), rgba(247,147,30,0.1));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.dr-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.dr-info strong {
  font-size: 14px;
  color: #333;
}
.dr-info span {
  font-size: 12px;
  color: #999;
}
.dr-right {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-end;
}
.dr-amount {
  font-size: 17px;
  font-weight: 700;
  color: var(--primary);
}
.dr-status {
  font-size: 11px;
  color: #fff;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 600;
}
.empty-state {
  text-align: center;
  padding: 32px 16px;
  color: #999;
}
@keyframes fadeUp { from{opacity:0;transform:translateY(8px)} to{opacity:1;transform:translateY(0)} }

/* ===== 我的活动 ===== */
.act-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}
.act-tab {
  flex: 1;
  padding: 8px;
  border: 2px solid #eee;
  border-radius: 8px;
  background: none;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  color: #666;
  transition: all .2s;
}
.act-tab.active {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(255,107,53,0.06);
}
.act-tab:hover:not(.active) {
  border-color: #ccc;
  color: #333;
}
.activity-record {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: #fafafa;
  border-radius: 10px;
  margin-bottom: 8px;
  transition: background .2s;
}
.activity-record:hover { background: #f0f0f0; }
.ar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}
.ar-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, rgba(7,193,96,0.1), rgba(76,175,80,0.1));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.ar-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.ar-info strong {
  font-size: 14px;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ar-info span {
  font-size: 12px;
  color: #999;
  white-space: nowrap;
}
.ar-right {
  flex-shrink: 0;
  margin-left: 8px;
}
.ar-status {
  font-size: 11px;
  color: #fff;
  padding: 3px 10px;
  border-radius: 10px;
  font-weight: 600;
  white-space: nowrap;
}

/* ===== 我的积分 ===== */
.points-balance-card {
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  margin-bottom: 20px;
}
.pb-label {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 8px;
}
.pb-value {
  font-size: 42px;
  font-weight: 900;
  color: #F7931E;
  line-height: 1;
  margin-bottom: 16px;
}
.pb-row {
  display: flex;
  justify-content: center;
  gap: 40px;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 14px;
}
.pb-item {
  text-align: center;
}
.pb-item-label {
  display: block;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 4px;
}
.pb-item-value {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}
.points-ways {
  background: #f9f9f9;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
}
.pw-title {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 12px;
}
.pw-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.pw-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border-radius: 8px;
  padding: 10px 12px;
}
.pw-icon {
  font-size: 20px;
  flex-shrink: 0;
}
.pw-text {
  font-size: 13px;
  font-weight: 600;
  color: #333;
  white-space: nowrap;
}
.pw-rule {
  font-size: 11px;
  color: #999;
  margin-left: auto;
  white-space: nowrap;
}
.points-record {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #fafafa;
  border-radius: 10px;
  margin-bottom: 6px;
  transition: background .2s;
}
.points-record:hover { background: #f0f0f0; }
.pr-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}
.pr-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.pr-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.pr-info strong {
  font-size: 13px;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pr-info span {
  font-size: 11px;
  color: #999;
}
.pr-right {
  flex-shrink: 0;
  text-align: right;
  margin-left: 8px;
}
.pr-change {
  font-size: 16px;
  font-weight: 700;
  display: block;
}
.pr-balance {
  font-size: 11px;
  color: #aaa;
  display: block;
}

/* ===== 账号设置 ===== */
.settings-avatar {
  text-align: center;
  padding: 20px 0;
  margin-bottom: 16px;
  border-bottom: 1px solid #f0f0f0;
}
.sa-icon {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, #FF6B35, #F7931E);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: #fff;
  margin-bottom: 10px;
}
.sa-name {
  font-size: 18px;
  font-weight: 700;
  color: #333;
}
.sa-id {
  font-size: 12px;
  color: #999;
  margin-top: 4px;
}
.settings-section {
  margin-bottom: 16px;
}
.ss-title {
  font-size: 13px;
  font-weight: 600;
  color: #888;
  padding: 0 4px 8px;
}
.setting-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: #fafafa;
  border-radius: 10px;
  margin-bottom: 6px;
  transition: background .2s;
}
.setting-item:hover { background: #f0f0f0; }
.si-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.si-icon {
  font-size: 18px;
  flex-shrink: 0;
}
.si-label {
  font-size: 14px;
  color: #333;
  font-weight: 500;
}
.si-right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.si-value {
  font-size: 13px;
  color: #888;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.si-btn {
  font-size: 12px;
  color: #FF6B35;
  background: rgba(255,107,53,0.08);
  border: none;
  padding: 4px 12px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  white-space: nowrap;
  transition: all .2s;
}
.si-btn:hover {
  background: rgba(255,107,53,0.15);
}
.si-arrow {
  font-size: 18px;
  color: #ccc;
  font-weight: 300;
}
.settings-danger .setting-item:hover {
  background: rgba(244,67,54,0.05);
}
@keyframes pulse { 0%,100%{box-shadow:0 4px 20px rgba(255,107,53,0.5)} 50%{box-shadow:0 4px 32px rgba(255,107,53,0.8)} }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(3,1fr); }
  .projects-grid { grid-template-columns: repeat(2,1fr); }
  .orgs-grid { grid-template-columns: repeat(3,1fr); }
  .transparency-layout { grid-template-columns: 1fr; }
  .cta-layout { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
}

@media (max-width: 768px) {
  .header-top { display: none; }
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: white; flex-direction: column; padding: 16px; box-shadow: var(--shadow); }
  .main-nav.open { display: flex; }
  .nav-dropdown-menu { position: static; transform: none; box-shadow: none; padding: 0 0 0 16px; display: none; }
  .nav-dropdown.open .nav-dropdown-menu { display: block; animation: none; }
  .nav-dropdown .nav-parent::after { content: ' ▾'; font-size: 10px; }
  .nav-toggle { display: block; }
  .hero-swiper { height: 420px; }
  .hero-content { padding: 0 32px; }
  .hero-content h2 { font-size: 28px; }
  .hero-content h3 { font-size: 20px; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .projects-grid { grid-template-columns: 1fr; }
  .aided-layout { grid-template-columns: 1fr; }
  .donate-layout { grid-template-columns: 1fr; }
  .honor-levels { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .orgs-grid { grid-template-columns: repeat(2,1fr); }
  .shop-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 60px 0; }
  .shop-entry-banner { flex-direction: column; text-align: center; }
  .apply-partner-banner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .shop-grid { grid-template-columns: 1fr; }
  .activity-card { flex-direction: column; align-items: flex-start; }
  .flow-row { grid-template-columns: 50px 1fr 70px; }
  .flow-row span:nth-child(4), .flow-row span:nth-child(5) { display: none; }
}

/* ===== 项目管理弹窗 ===== */
#pmModal * { box-sizing: border-box; }
#pmModal input:focus,
#pmModal textarea:focus,
#pmModal select:focus {
  outline: none;
  border-color: #667eea !important;
  box-shadow: 0 0 0 3px rgba(102,126,234,0.15);
}
#pmModal button:hover { opacity: 0.88; }
#pmModal textarea { font-family: inherit; }

/* ===== 私信系统 v1.2 ===== */

.msg-panel {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.4);
  animation: fadeIn 0.2s ease;
}

.msg-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
}

.msg-container {
  position: relative;
  width: 900px;
  max-width: 96vw;
  height: 80vh;
  max-height: 700px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  display: flex;
  overflow: hidden;
  animation: modalSlideIn 0.3s ease;
}

/* 左侧会话列表 */
.msg-sidebar {
  width: 300px;
  border-right: 1px solid #f0f0f0;
  display: flex;
  flex-direction: column;
  background: #fafafa;
}

.msg-sidebar-header {
  padding: 16px;
  padding-right: 48px;
  border-bottom: 1px solid #f0f0f0;
  position: relative;
}

.msg-sidebar-header h3 {
  margin: 0;
  font-size: 16px;
  color: #333;
}

.msg-search {
  padding: 8px 12px;
  border-bottom: 1px solid #f0f0f0;
}

.msg-search input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 13px;
  outline: none;
  box-sizing: border-box;
}

.msg-search input:focus {
  border-color: #FF6B35;
}

.msg-list {
  flex: 1;
  overflow-y: auto;
  padding: 4px 0;
}

/* 会话项 */
.msg-conv-item {
  padding: 12px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background 0.15s;
  border-bottom: 1px solid #f8f8f8;
}

.msg-conv-item:hover { background: #fff5ee; }
.msg-conv-item.active { background: #fff0e6; }

.msg-conv-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FF6B35, #F7931E);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
}

.msg-conv-info { flex: 1; min-width: 0; }

.msg-conv-name {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.msg-conv-last {
  font-size: 12px;
  color: #999;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.msg-conv-badge {
  background: #FF6B35;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  flex-shrink: 0;
}

/* 右侧聊天区 */
.msg-chat {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.msg-chat-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.msg-chat-active {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.msg-chat-header {
  padding: 12px 16px;
  border-bottom: 1px solid #f0f0f0;
  font-size: 15px;
  font-weight: 600;
  color: #333;
  display: flex;
  align-items: center;
  gap: 8px;
}

.msg-chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  background: #f8f8f8;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* 消息气泡 */
.msg-bubble {
  max-width: 70%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.5;
  word-break: break-word;
}

.msg-bubble-me {
  align-self: flex-end;
  background: linear-gradient(135deg, #FF6B35, #F7931E);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.msg-bubble-other {
  align-self: flex-start;
  background: #fff;
  color: #333;
  border-bottom-left-radius: 4px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.msg-bubble-name {
  font-size: 11px;
  color: #999;
  margin-bottom: 3px;
}

.msg-bubble-text { white-space: pre-wrap; }

.msg-bubble-img img {
  max-width: 200px;
  border-radius: 8px;
  cursor: pointer;
}

.msg-bubble-time {
  font-size: 10px;
  color: #ccc;
  margin-top: 3px;
  text-align: right;
}

.msg-bubble-other .msg-bubble-time { text-align: left; }

/* 已读回执 */
.msg-receipt {
  font-size: 11px;
  margin-left: 4px;
}
.msg-receipt.sent {
  color: #ccc;
}
.msg-receipt.read {
  color: #4FC3F7;
}

/* 输入区域 */
.msg-chat-input {
  padding: 10px 12px;
  border-top: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
}

.msg-img-upload {
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 6px;
  border-radius: 8px;
  transition: background 0.15s;
}

.msg-img-upload:hover { background: #f0f0f0; }

.msg-chat-input input[type="text"] {
  flex: 1;
  padding: 8px 14px;
  border: 1px solid #e0e0e0;
  border-radius: 20px;
  font-size: 14px;
  outline: none;
}

.msg-chat-input input[type="text"]:focus { border-color: #FF6B35; }

.msg-send-btn {
  padding: 8px 18px;
  background: linear-gradient(135deg, #FF6B35, #F7931E);
  color: #fff;
  border: none;
  border-radius: 20px;
  font-size: 14px;
  cursor: pointer;
  transition: opacity 0.15s;
}

.msg-send-btn:hover { opacity: 0.85; }

.msg-empty {
  text-align: center;
  padding: 40px 20px;
  color: #ccc;
  font-size: 13px;
  line-height: 1.8;
}

/* 手机端适配 */
@media (max-width: 768px) {
  .msg-container {
    width: 100vw;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
  }
  .msg-sidebar {
    width: 100%;
  }
  .msg-chat {
    display: none;
  }
  .msg-container.show-chat .msg-sidebar { display: none; }
  .msg-container.show-chat .msg-chat { display: flex; }
}
