/* ===== 河北省爱心公益协会官网 - 共享样式 ===== */

/* Reset & Base */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: -apple-system, "Microsoft YaHei", "PingFang SC", "Helvetica Neue", sans-serif; color: #333; line-height: 1.6; background: #f8f8f8; }
a { color: #c32136; text-decoration: none; transition: color .2s; }
a:hover { color: #a01a2d; }
img { max-width: 100%; height: auto; }
ul, ol { list-style: none; }

/* ===== Header ===== */
.site-header { background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.06); position: sticky; top: 0; z-index: 100; }
.header-inner { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo-area { display: flex; align-items: center; gap: 12px; }
.logo-icon { width: 48px; height: 48px; background: #fff; border: 1px solid #eee; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #c32136; font-size: 24px; font-weight: 700; }
.logo-text { font-size: 20px; font-weight: 700; color: #333; line-height: 1.3; }
.logo-text small { font-size: 12px; color: #888; font-weight: 400; }

/* Navigation */
.main-nav { display: flex; gap: 2px; }
.nav-item { position: relative; }
.nav-item > a { padding: 8px 16px; font-size: 15px; color: #555; border-radius: 6px; transition: all .2s; display: block; white-space: nowrap; }
.nav-item > a:hover, .nav-item > a.active { color: #c32136; background: #fef2f2; }
.nav-item > a.active::after { content: ''; position: absolute; bottom: -8px; left: 50%; transform: translateX(-50%); width: 20px; height: 3px; background: #c32136; border-radius: 2px; }

/* Dropdown arrow */
.nav-item.has-sub > a::after { content: '▾'; font-size: 12px; margin-left: 4px; opacity: .5; }

/* Dropdown menu */
.dropdown-menu { position: absolute; top: 100%; left: 0; min-width: 160px; background: #fff; border-radius: 8px; padding: 8px 0; box-shadow: 0 8px 24px rgba(0,0,0,.12); opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .2s ease; z-index: 50; }
.nav-item.has-sub:hover .dropdown-menu, .nav-item.has-sub.open .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu a { display: block; padding: 10px 20px; font-size: 14px; color: #555; border-radius: 0; transition: all .15s; }
.dropdown-menu a:hover { color: #c32136; background: #fef2f2; }

/* Mobile menu button */
.nav-item.has-sub > a { cursor: pointer; }
.mobile-menu-btn { display: none; width: 36px; height: 36px; background: none; border: 1px solid #ddd; border-radius: 6px; cursor: pointer; font-size: 20px; color: #555; }

/* ===== Banner / Slideshow ===== */
.slideshow { position: relative; width: 100%; aspect-ratio: 21/7; max-height: 380px; overflow: hidden; }
.slideshow .slides { display: flex; transition: transform .6s ease; height: 100%; }
.slideshow .slide { min-width: 100%; height: 100%; position: relative; display: flex; align-items: center; }
.slideshow .slide-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.slideshow .slide-overlay { position: absolute; inset: 0; }
.slideshow .slide-content { position: relative; z-index: 2; color: #fff; padding: 0 120px; max-width: 720px; }
.slideshow .slide-content h2 { font-size: 42px; font-weight: 700; margin-bottom: 16px; line-height: 1.2; text-shadow: 0 2px 8px rgba(0,0,0,.3); }
.slideshow .slide-content p { font-size: 16px; opacity: .92; line-height: 1.7; }
.slideshow .slide-content .slide-btn { display: inline-block; margin-top: 24px; padding: 12px 32px; background: #c32136; border: none; color: #fff; border-radius: 6px; font-size: 15px; transition: all .2s; }
.slideshow .slide-content .slide-btn:hover { background: #a01a2d; color: #fff; }
.slideshow .slide-arrows { position: absolute; top: 50%; transform: translateY(-50%); width: 100%; display: flex; justify-content: space-between; padding: 0 24px; z-index: 3; }
.slideshow .slide-arrows button { width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.3); color: #fff; font-size: 18px; cursor: pointer; transition: all .2s; display: flex; align-items: center; justify-content: center; }
.slideshow .slide-arrows button:hover { background: rgba(255,255,255,.4); }
.slideshow .slide-dots { position: absolute; bottom: 24px; left: 120px; display: flex; gap: 10px; z-index: 3; }
.slideshow .slide-dots button { width: 40px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.4); border: none; cursor: pointer; transition: all .2s; }
.slideshow .slide-dots button.active { background: #c32136; width: 56px; }

/* Inner page banner */
.site-banner { background: linear-gradient(135deg, #c32136 0%, #d45a30 50%, #e8723c 100%); color: #fff; padding: 60px 20px; text-align: center; position: relative; overflow: hidden; }
.site-banner::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="15" fill="rgba(255,255,255,0.05)"/><circle cx="80" cy="70" r="25" fill="rgba(255,255,255,0.03)"/><circle cx="50" cy="50" r="10" fill="rgba(255,255,255,0.04)"/></svg>'); background-size: 200px; animation: float 20s linear infinite; }
@keyframes float { from { transform: translateY(0); } to { transform: translateY(-100px); } }
.banner-title { font-size: 36px; font-weight: 700; margin-bottom: 12px; position: relative; }
.banner-subtitle { font-size: 16px; opacity: .9; position: relative; max-width: 600px; margin: 0 auto; }

/* ===== Homepage Layout ===== */
.home-stats-bar { background: #c32136; color: #fff; padding: 24px 20px; }
.home-stats-bar .stats-row { max-width: 1200px; margin: 0 auto; gap: 0; }
.home-stats-bar .stat-item { background: transparent; box-shadow: none; padding: 0; }
.home-stats-bar .stat-item .num { color: #fff; font-size: 32px; }
.home-stats-bar .stat-item .label { color: rgba(255,255,255,.8); }

.home-main { max-width: 1200px; margin: 0 auto; padding: 48px 20px; }
.home-section { margin-bottom: 48px; }
.home-section:last-child { margin-bottom: 0; }

/* Featured News + List */
.featured-news-wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; }
.featured-news-card { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 16/10; display: flex; align-items: flex-end; }
.featured-news-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.featured-news-card .overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.75) 0%, rgba(0,0,0,.2) 50%, transparent 100%); }
.featured-news-card .content { position: relative; z-index: 2; padding: 28px; color: #fff; }
.featured-news-card .tag { display: inline-block; padding: 4px 12px; background: #c32136; border-radius: 4px; font-size: 12px; margin-bottom: 12px; }
.featured-news-card h3 { font-size: 22px; font-weight: 700; line-height: 1.4; margin-bottom: 10px; }
.featured-news-card p { font-size: 14px; opacity: .85; line-height: 1.6; }

.news-mini-list { display: flex; flex-direction: column; gap: 12px; }
.news-mini-item { display: flex; gap: 14px; background: #fff; border-radius: 10px; padding: 14px; box-shadow: 0 1px 6px rgba(0,0,0,.04); transition: all .2s; }
.news-mini-item:hover { box-shadow: 0 4px 12px rgba(0,0,0,.08); }
.news-mini-item .mini-thumb { width: 100px; height: 72px; border-radius: 8px; object-fit: cover; background: #eee; flex-shrink: 0; }
.news-mini-item .mini-info { flex: 1; min-width: 0; }
.news-mini-item .mini-info h4 { font-size: 14px; font-weight: 600; color: #333; line-height: 1.5; margin-bottom: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-mini-item .mini-info h4:hover { color: #c32136; }
.news-mini-item .mini-info .meta { font-size: 12px; color: #aaa; }

/* Horizontal Activity Cards */
.activity-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.activity-row .act-item { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 4/5; display: flex; flex-direction: column; justify-content: flex-end; }
.activity-row .act-item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.activity-row .act-item .overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.8) 0%, transparent 70%); }
.activity-row .act-item .content { position: relative; z-index: 2; padding: 20px; color: #fff; }
.activity-row .act-item .content h4 { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.activity-row .act-item .content p { font-size: 12px; opacity: .8; margin-bottom: 10px; }
.activity-row .act-item .content .act-date { font-size: 12px; opacity: .7; }

/* Volunteer Cards */
.volunteer-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.volunteer-row .vol-card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,.04); transition: all .3s; }
.volunteer-row .vol-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,.1); }
.volunteer-row .vol-card img { width: 100%; aspect-ratio: 1/1; object-fit: cover; display: block; }
.volunteer-row .vol-card .info { padding: 16px; }
.volunteer-row .vol-card .info h4 { font-size: 15px; color: #333; margin-bottom: 4px; }
.volunteer-row .vol-card .info p { font-size: 13px; color: #888; display: -webkit-box; -webkit-line-clamp: 2; overflow: hidden; }

/* Member Logo Wall */
.member-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.member-tab { padding: 8px 22px; border: none; background: transparent; color: #555; font-size: 15px; cursor: pointer; border-radius: 4px; transition: all .2s; }
.member-tab:hover { color: #0891b2; }
.member-tab.active { background: #0891b2; color: #fff; }
.member-tab-panel { display: none; }
.member-tab-panel.active { display: block; }
.member-logo-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.member-logo-row .logo-item { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: #fff; border: 1px solid #eee; border-radius: 8px; transition: all .2s; }
.member-logo-row .logo-item:hover { border-color: #c32136; }
.member-logo-row .logo-item img { width: 40px; height: 40px; object-fit: contain; }
.member-logo-row .logo-item .logo-fallback { width: 40px; height: 40px; background: linear-gradient(135deg,#fef2f2,#fff); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 16px; color: #c32136; font-weight: 700; }
.member-logo-row .logo-item .name { font-size: 14px; color: #333; font-weight: 500; white-space: nowrap; }

/* ===== Section Container ===== */
.section { max-width: 1200px; margin: 0 auto; padding: 40px 20px; }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.section-title { font-size: 22px; font-weight: 700; color: #333; display: flex; align-items: center; gap: 8px; }
.section-title .icon { color: #c32136; font-size: 20px; }
.section-title::before { content: ''; width: 4px; height: 22px; background: #c32136; border-radius: 2px; }
.section-more { font-size: 14px; color: #888; padding: 6px 16px; border: 1px solid #ddd; border-radius: 20px; transition: all .2s; }
.section-more:hover { color: #c32136; border-color: #c32136; background: #fef2f2; }

/* ===== Cards ===== */
.card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,.04); transition: all .3s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,.1); }
.card-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; background: #eee; }
.card-body { padding: 16px 20px; }
.card-title { font-size: 16px; font-weight: 600; color: #333; margin-bottom: 8px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-title:hover { color: #c32136; }
.card-desc { font-size: 13px; color: #888; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { font-size: 12px; color: #aaa; margin-top: 12px; display: flex; align-items: center; gap: 12px; }
.card-meta .tag { display: inline-block; padding: 2px 8px; background: #fef2f2; color: #c32136; border-radius: 4px; font-size: 12px; }
.card-meta .video-tag { background: #e6f1fb; color: #185fa5; }

/* ===== Grid Layouts ===== */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

/* ===== Tabs ===== */
.tab-nav { display: flex; gap: 4px; margin-bottom: 20px; border-bottom: 2px solid #eee; padding-bottom: 0; }
.tab-nav a { padding: 10px 20px; font-size: 14px; color: #666; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all .2s; }
.tab-nav a:hover, .tab-nav a.active { color: #c32136; border-bottom-color: #c32136; }

/* ===== Breadcrumb ===== */
.breadcrumb { max-width: 1200px; margin: 0 auto; padding: 16px 20px; font-size: 13px; color: #888; }
.breadcrumb a { color: #888; }
.breadcrumb a:hover { color: #c32136; }
.breadcrumb span { color: #333; }

/* ===== Intro Block ===== */
.intro-block { background: #fff; border-radius: 12px; padding: 32px; box-shadow: 0 2px 8px rgba(0,0,0,.04); }
.intro-block h3 { font-size: 18px; color: #333; margin-bottom: 16px; }
.intro-block p { font-size: 14px; color: #666; line-height: 1.8; }

/* ===== Stats Row ===== */
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat-item { background: #fff; border-radius: 12px; padding: 24px; text-align: center; box-shadow: 0 2px 8px rgba(0,0,0,.04); }
.stat-item .num { font-size: 28px; font-weight: 700; color: #c32136; }
.stat-item .label { font-size: 13px; color: #888; margin-top: 4px; }

/* ===== News List ===== */
.news-list-item { display: flex; gap: 20px; padding: 20px; background: #fff; border-radius: 8px; margin-bottom: 12px; transition: all .2s; box-shadow: 0 1px 4px rgba(0,0,0,.03); }
.news-list-item:hover { box-shadow: 0 4px 12px rgba(0,0,0,.08); }
.news-list-item .thumb { width: 240px; aspect-ratio: 16/10; object-fit: cover; border-radius: 8px; background: #eee; flex-shrink: 0; }
.news-list-item .info { flex: 1; }
.news-list-item .info h3 { font-size: 17px; color: #333; margin-bottom: 8px; line-height: 1.5; }
.news-list-item .info h3:hover { color: #c32136; }
.news-list-item .info p { font-size: 13px; color: #888; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-list-item .info .meta { font-size: 12px; color: #aaa; margin-top: 10px; display: flex; gap: 12px; align-items: center; }

/* ===== Pagination ===== */
.pagination { display: flex; justify-content: center; gap: 8px; margin: 32px 0; }
.pagination a, .pagination span { padding: 8px 16px; border: 1px solid #ddd; border-radius: 6px; font-size: 14px; color: #555; transition: all .2s; }
.pagination a:hover { border-color: #c32136; color: #c32136; }
.pagination span.current { background: #c32136; color: #fff; border-color: #c32136; }

/* ===== Article Detail ===== */
.article-detail { max-width: 860px; margin: 0 auto; background: #fff; border-radius: 12px; padding: 40px; border: 1px solid #eee; }
.article-detail h1 { font-size: 24px; color: #333; line-height: 1.5; margin-bottom: 16px; }
.article-detail .article-meta { font-size: 13px; color: #888; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid #eee; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.article-detail .article-meta .tag { padding: 2px 10px; background: #fef2f2; color: #c32136; border-radius: 4px; }
.article-detail .article-meta .source-tag { color: #993C1D; background: #FAECE7; padding: 2px 10px; border-radius: 4px; }
.article-detail .article-content { font-size: 15px; line-height: 1.8; color: #444; word-break: break-word; overflow-wrap: break-word; }
.article-detail .article-content p { margin-bottom: 16px; }
.article-detail .article-content img { max-width: 100%; height: auto; border-radius: 8px; margin: 16px 0; }
.article-detail .article-content table { max-width: 100%; display: block; overflow-x: auto; }
.article-detail .video-player { width: 100%; aspect-ratio: 16/9; background: #1a1a1a; border-radius: 8px; margin: 16px 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 48px; cursor: pointer; position: relative; }

/* ===== Sidebar ===== */
.content-with-sidebar { max-width: 1200px; margin: 0 auto; padding: 32px 20px; display: grid; grid-template-columns: 220px 1fr; gap: 32px; }
.content-with-sidebar .content-title { font-size: 20px; font-weight: 700; color: #333; padding-bottom: 16px; margin-bottom: 0; border-bottom: 2px solid #c32136; display: inline-block; }
.sidebar .widget { background: #fff; border-radius: 12px; padding: 20px; margin-bottom: 16px; box-shadow: 0 2px 8px rgba(0,0,0,.04); }
.sidebar .widget-title { font-size: 16px; font-weight: 600; color: #333; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 2px solid #c32136; }
.sidebar .widget a { display: block; padding: 8px 0; font-size: 14px; color: #555; border-bottom: 1px solid #f5f5f5; }
.sidebar .widget a:hover { color: #c32136; }
.sidebar .hot-list li { display: flex; align-items: center; gap: 8px; padding: 10px 0; border-bottom: 1px solid #f5f5f5; }
.sidebar .hot-list li .rank { width: 24px; height: 24px; border-radius: 4px; background: #f0f0f0; color: #888; font-size: 12px; display: flex; align-items: center; justify-content: center; }
.sidebar .hot-list li:nth-child(-n+3) .rank { background: #fef2f2; color: #c32136; }

/* ===== Member Grid ===== */
.member-card { background: #fff; border-radius: 12px; padding: 24px; text-align: center; box-shadow: 0 2px 8px rgba(0,0,0,.04); transition: all .3s; }
.member-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,.1); }
.member-card .member-logo { width: 80px; height: 80px; border-radius: 12px; object-fit: contain; margin: 0 auto 12px; }
.member-card .member-name { font-size: 14px; font-weight: 600; color: #333; margin-bottom: 4px; }
.member-card .member-type { font-size: 12px; color: #888; }

/* ===== Volunteer Card ===== */
.volunteer-card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,.04); transition: all .3s; }
.volunteer-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,.1); }
.volunteer-card .volunteer-info { padding: 16px; }
.volunteer-card .volunteer-info h3 { font-size: 15px; color: #333; margin-bottom: 4px; }
.volunteer-card .volunteer-info .story { font-size: 13px; color: #888; }

/* ===== Timeline ===== */
.timeline { position: relative; padding: 24px 0; }
.timeline::before { content: ''; position: absolute; left: 20px; top: 0; bottom: 0; width: 3px; background: #eee; border-radius: 2px; }
.timeline-item { display: flex; gap: 24px; margin-bottom: 24px; }
.timeline-item .year { width: 80px; text-align: right; font-size: 18px; font-weight: 700; color: #c32136; flex-shrink: 0; }
.timeline-item .event { background: #fff; border-radius: 8px; padding: 16px 20px; box-shadow: 0 2px 8px rgba(0,0,0,.04); }
.timeline-item .event p { font-size: 14px; color: #555; line-height: 1.6; }

/* ===== Contact Page ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.contact-info-list { display: flex; flex-direction: column; gap: 16px; }
.contact-info-item { background: #fff; border-radius: 12px; padding: 20px; display: flex; gap: 16px; align-items: center; box-shadow: 0 2px 8px rgba(0,0,0,.04); }
.contact-info-item .icon { width: 48px; height: 48px; background: #fef2f2; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; color: #c32136; }
.contact-info-item .text h4 { font-size: 14px; color: #333; margin-bottom: 4px; }
.contact-info-item .text p { font-size: 13px; color: #888; }
.contact-form { background: #fff; border-radius: 12px; padding: 32px; box-shadow: 0 2px 8px rgba(0,0,0,.04); }
.contact-form h3 { font-size: 18px; color: #333; margin-bottom: 20px; }
.form-group { margin-bottom: 16px; }
.form-group label { font-size: 14px; color: #555; margin-bottom: 6px; display: block; }
.form-group input, .form-group textarea { width: 100%; padding: 10px 16px; border: 1px solid #ddd; border-radius: 8px; font-size: 14px; outline: none; transition: border-color .2s; }
.form-group input:focus, .form-group textarea:focus { border-color: #c32136; }
.form-group textarea { height: 120px; resize: vertical; }
.submit-btn { background: #c32136; color: #fff; padding: 12px 32px; border: none; border-radius: 8px; font-size: 15px; cursor: pointer; transition: background .2s; }
.submit-btn:hover { background: #a01a2d; }

/* ===== Footer ===== */
.site-footer { background: #2a2a2a; color: #ccc; padding: 48px 20px 24px; margin-top: 40px; }
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-bottom: 32px; }
.footer-col h4 { color: #fff; font-size: 16px; margin-bottom: 16px; }
.footer-col p { font-size: 13px; line-height: 1.8; }
.footer-col a { color: #ccc; font-size: 13px; display: block; padding: 4px 0; }
.footer-col a:hover { color: #fff; }
.footer-col .qr-code { width: 120px; height: 120px; background: #3a3a3a; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #888; font-size: 12px; margin-top: 12px; }
.footer-bottom { border-top: 1px solid #444; padding-top: 16px; text-align: center; font-size: 12px; color: #888; }
.footer-infringement { text-align: center; font-size: 12px; color: #999; padding-top: 10px; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .content-with-sidebar { grid-template-columns: 1fr; }
  .sidebar { order: -1; }
  .home-main { padding: 32px 16px; }
  .featured-news-wrap { grid-template-columns: 1fr; }
  .activity-row { grid-template-columns: repeat(2, 1fr); }
  .volunteer-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .header-inner { height: 60px; }
  .logo-text { font-size: 16px; }
  .main-nav { display: none; position: fixed; top: 60px; left: 0; right: 0; bottom: 0; background: #fff; padding: 0; flex-direction: column; overflow-y: auto; z-index: 99; }
  .main-nav.open { display: flex; }
  .nav-item > a { padding: 14px 16px; border-bottom: 1px solid #eee; border-radius: 0; font-size: 16px; }
  .nav-item.has-sub > a::after { content: '▸'; font-size: 14px; }
  .dropdown-menu { position: static; box-shadow: none; padding: 0 16px; max-height: 0; overflow: hidden; opacity: 0; transition: max-height .3s ease, opacity .2s; }
  .nav-item.has-sub.open .dropdown-menu { max-height: 300px; opacity: 1; visibility: visible; transform: none; }
  .dropdown-menu a { padding: 10px 16px 10px 32px; font-size: 14px; border-bottom: 1px solid #f5f5f5; }
  .mobile-menu-btn { display: flex; align-items: center; justify-content: center; }
  .slideshow { aspect-ratio: 16/9; max-height: 360px; }
  .slideshow .slide-content { padding: 0 24px; max-width: 85%; }
  .slideshow .slide-content h2 { font-size: 22px; margin-bottom: 10px; }
  .slideshow .slide-content p { font-size: 13px; }
  .slideshow .slide-content .slide-btn { padding: 8px 20px; font-size: 12px; margin-top: 16px; }
  .slideshow .slide-dots { left: 24px; bottom: 16px; }
  .home-stats-bar .stat-item .num { font-size: 22px; }
  .banner-title { font-size: 24px; }
  .banner-subtitle { font-size: 14px; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .news-list-item { flex-direction: column; }
  .news-list-item .thumb { width: 100%; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 24px 16px; }
  .article-detail { padding: 24px 16px; }
  .home-main { padding: 24px 16px; }
  .home-section { margin-bottom: 32px; }
  .activity-row { grid-template-columns: 1fr; }
  .activity-row .act-item { aspect-ratio: 16/9; }
  .volunteer-row { grid-template-columns: 1fr; }
  .news-mini-item .mini-thumb { width: 80px; height: 60px; }
  .featured-news-card h3 { font-size: 16px; }
  .featured-news-card .content { padding: 16px; }
}

/* ===== Home News Section (Screenshot Style) ===== */
.home-news-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; align-items: stretch; }
.home-news-featured { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 16/10; display: flex; align-items: flex-end; min-height: 320px; }
.home-news-featured img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.news-featured-placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.news-featured-placeholder span { color: #fff; font-size: 48px; font-weight: 700; opacity: .9; letter-spacing: 8px; }
.home-news-featured .overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.8) 0%, rgba(0,0,0,.3) 50%, transparent 100%); }
.home-news-featured .content { position: relative; z-index: 2; padding: 28px; color: #fff; }
.home-news-featured .tag { display: inline-block; padding: 4px 12px; border-radius: 4px; font-size: 12px; margin-bottom: 12px; }
.home-news-featured h3 { font-size: 22px; font-weight: 700; line-height: 1.4; margin-bottom: 10px; }
.home-news-featured p { font-size: 14px; opacity: .85; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 12px; }
.home-news-featured .date { font-size: 13px; opacity: .7; }

.home-news-list { display: flex; flex-direction: column; gap: 12px; }
.home-news-item { display: flex; gap: 14px; background: #fff; border-radius: 10px; padding: 14px; border: 1px solid #eee; transition: all .2s; align-items: center; }
.home-news-item:hover { border-color: #c32136; }
.home-news-item .item-thumb { width: 80px; height: 80px; border-radius: 8px; flex-shrink: 0; overflow: hidden; display: flex; align-items: center; justify-content: center; position: relative; }
.home-news-item .item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.home-news-item .item-thumb .thumb-text { color: #fff; font-size: 14px; font-weight: 600; text-align: center; line-height: 1.2; padding: 4px; }
.home-news-item .item-info { flex: 1; min-width: 0; }
.home-news-item .tag { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 12px; margin-bottom: 6px; }
.home-news-item h4 { font-size: 15px; font-weight: 600; color: #333; line-height: 1.5; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.home-news-item:hover h4 { color: #c32136; }
.home-news-item .meta { font-size: 12px; color: #aaa; }

/* ===== Static Banners ===== */
.home-banner-row { display: flex; flex-direction: row; align-items: stretch; gap: 20px; margin: 24px 0; }
.home-banner-item { flex: 1 1 0; min-width: 0; overflow: hidden; border-radius: 8px; }
.home-banner-item img { width: 100%; height: auto; display: block; }
.home-banner-full { margin: 24px 0; overflow: hidden; border-radius: 8px; }
.home-banner-full img { width: 100%; height: auto; display: block; }

/* ===== Project Cards ===== */
.project-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.project-card { background: #fff; border-radius: 12px; overflow: hidden; border: 1px solid #eee; transition: all .2s; }
.project-card:hover { border-color: #c32136; transform: translateY(-4px); }
.project-card .project-cover { width: 100%; background: #f5f5f5; overflow: hidden; }
.project-card .project-cover img { width: 100%; height: auto; display: block; }
.project-card .project-cover-default { width: 100%; aspect-ratio: 2/1; display: flex; align-items: center; justify-content: center; color: #c32136; }
.project-card .project-cover-default svg { width: 48px; height: 48px; }
.project-card .project-info { padding: 16px; }
.project-card .project-info h4 { font-size: 16px; font-weight: 600; color: #333; margin-bottom: 8px; }
.project-card .project-info p { font-size: 13px; color: #888; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.project-list-page .project-card { text-decoration: none; }
.project-list-page .project-info h4 { font-size: 15px; font-weight: 500; }

/* ===== Floating Contact Sidebar ===== */
.contact-float { position: fixed; right: 0; top: 50%; transform: translateY(-50%); z-index: 90; display: flex; flex-direction: column; gap: 1px; }
.contact-float-item { position: relative; width: 50px; height: 50px; background: #fff; border: 1px solid #eee; border-right: none; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all .2s; }
.contact-float-item:first-child { border-radius: 8px 0 0 0; }
.contact-float-item:last-child { border-radius: 0 0 0 8px; }
.contact-float-item:hover { background: #c32136; border-color: #c32136; }
.contact-float-item:hover .contact-icon { color: #fff; }
.contact-float-item .contact-icon { font-size: 20px; color: #c32136; transition: color .2s; }
.contact-float-item .contact-icon svg { width: 22px; height: 22px; display: block; }
.contact-float-panel { position: absolute; right: 58px; top: 50%; transform: translateY(-50%) scale(0); transform-origin: right center; opacity: 0; visibility: hidden; background: #fff; border-radius: 8px; padding: 16px; box-shadow: 0 8px 24px rgba(0,0,0,.12); border: 1px solid #eee; min-width: 180px; transition: all .2s ease; }
.contact-float-item:hover .contact-float-panel { transform: translateY(-50%) scale(1); opacity: 1; visibility: visible; }
.contact-float-panel::after { content: ''; position: absolute; right: -6px; top: 50%; transform: translateY(-50%); width: 10px; height: 10px; background: #fff; border-top: 1px solid #eee; border-right: 1px solid #eee; transform: translateY(-50%) rotate(45deg); }
.contact-float-panel .panel-title { font-size: 13px; color: #888; margin-bottom: 8px; }
.contact-float-panel .panel-text { font-size: 15px; color: #333; font-weight: 600; word-break: break-all; }
.contact-float-panel .panel-qr { width: 140px; height: 140px; margin: 0 auto; }
.contact-float-panel .panel-qr img { width: 100%; height: 100%; object-fit: contain; }

@media (max-width: 1024px) {
  .home-news-grid { grid-template-columns: 1fr; }
  .project-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .project-row { grid-template-columns: 1fr; }
  .contact-float { display: none; }
}


/* Sub category bar */
.sub-cate-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.sub-cate-bar a { padding: 6px 16px; background: #fff; border: 1px solid #eee; border-radius: 20px; font-size: 13px; color: #555; transition: all .2s; }
.sub-cate-bar a:hover { border-color: #c32136; color: #c32136; background: #fef2f2; }

/* Empty state */
.empty-state { text-align: center; padding: 80px 20px; background: #fff; border-radius: 8px; border: 1px solid #eee; }
.empty-state .empty-icon { width: 56px; height: 56px; margin: 0 auto 16px; opacity: .5; }
.empty-state .empty-icon svg { width: 100%; height: 100%; display: block; }
.empty-state .empty-text { font-size: 15px; color: #666; margin-bottom: 8px; }
.empty-state .empty-tips { font-size: 13px; color: #aaa; }

/* Simple text news list */
.news-list-simple { display: flex; flex-direction: column; }
.news-list-simple .news-list-item { display: block; padding: 24px 0; border-bottom: 1px solid #eee; transition: all .2s; }
.news-list-simple .news-list-item:hover { padding-left: 8px; }
.news-list-simple .news-list-item:hover h3 { color: #c32136; }
.news-list-simple .news-list-item h3 { font-size: 18px; color: #333; line-height: 1.5; margin-bottom: 10px; font-weight: 600; transition: color .2s; }
.news-list-simple .news-list-item p { font-size: 14px; color: #888; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Sidebar category tree */
.cate-tree { display: flex; flex-direction: column; gap: 4px; }
.cate-tree > a { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; font-size: 14px; color: #444; font-weight: 500; border-radius: 8px; transition: all .2s; }
.cate-tree > a::after { content: '›'; color: #bbb; font-size: 16px; transition: color .2s; }
.cate-tree > a:hover { color: #c32136; background: #fef2f2; }
.cate-tree > a.active { color: #c32136; background: #fff5f6; font-weight: 600; }
.cate-tree > a.active::after { color: #c32136; }
.cate-tree .cate-all { border-bottom: 1px solid #f5f5f5; border-radius: 8px 8px 0 0; margin-bottom: 4px; }
.cate-tree .cate-children { padding-left: 12px; border-left: 2px solid #f5f5f5; margin: 0 0 10px 4px; }
.cate-tree .cate-children a { display: block; padding: 6px 0 6px 10px; font-size: 13px; color: #666; border-left: 2px solid transparent; margin-left: -2px; }
.cate-tree .cate-children a:hover, .cate-tree .cate-children a.active { color: #c32136; border-left-color: #c32136; background: #fef2f2; }

/* Sidebar QR code */
.qr-box { text-align: center; padding: 10px 0; }
.qr-box img { width: 100%; max-width: 160px; border-radius: 8px; }
.qr-box p { font-size: 12px; color: #888; margin-top: 8px; }

/* Sidebar hot list improvements */
.hot-list li { display: flex; align-items: flex-start; gap: 8px; padding: 10px 0; border-bottom: 1px solid #f5f5f5; }
.hot-list li .rank { width: 22px; height: 22px; border-radius: 4px; background: #f0f0f0; color: #888; font-size: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px; }
.hot-list li:nth-child(-n+3) .rank { background: #fef2f2; color: #c32136; }
.hot-list li .hot-info { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.hot-list li .hot-info a { font-size: 14px; color: #555; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hot-list li .hot-info a:hover { color: #c32136; }
.hot-list li .hot-info .hot-meta { font-size: 12px; color: #aaa; }

/* Activity page filter - text underline style */
.activity-filter { display: flex; gap: 24px; align-items: center; padding: 0 0 12px; border-bottom: 1px solid #eee; margin-bottom: 24px; }
.activity-filter a { padding: 0 0 8px; font-size: 14px; color: #666; border-bottom: 2px solid transparent; transition: all .2s; }
.activity-filter a:hover { color: #c32136; }
.activity-filter a.active { color: #c32136; border-bottom-color: #c32136; font-weight: 500; }

/* ===== Page Header (replaces site-banner) ===== */
.page-header { background: #fff !important; border-bottom: 2px solid #c32136 !important; }
.page-header .ph-inner { max-width: 1200px; margin: 0 auto; padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; }
.page-header .ph-left { display: flex; flex-direction: column; gap: 4px; }
.page-header .ph-crumb { font-size: 12px; color: #999; }
.page-header .ph-crumb a { color: #999; }
.page-header .ph-crumb a:hover { color: #c32136; }
.page-header .ph-title { font-size: 22px; font-weight: 700; color: #333; }
.page-header .ph-desc { font-size: 13px; color: #888; }

/* ===== Card flat style (no shadow, border only) ===== */
.card { background: #fff; border-radius: 8px; overflow: hidden; border: 1px solid #eee; transition: border-color .2s; }
.card:hover { border-color: #c32136; transform: none; box-shadow: none; }

/* Activity grid card */
.act-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.act-card { background: #fff; border-radius: 8px; overflow: hidden; border: 1px solid #eee; transition: border-color .2s; position: relative; }
.act-card:hover { border-color: #c32136; }
.act-card .act-cover { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; background: #f5f5f5; }
.act-card .act-cover-placeholder { width: 100%; aspect-ratio: 16/9; background: #f5f5f5; display: flex; align-items: center; justify-content: center; color: #ccc; font-size: 14px; }
.act-card .act-status { position: absolute; top: 12px; right: 12px; padding: 3px 10px; border-radius: 4px; font-size: 12px; color: #fff; }
.act-card .act-status.ongoing { background: #c32136; }
.act-card .act-status.upcoming { background: #EF9F27; }
.act-card .act-status.finished { background: #aaa; }
.act-card .act-body { padding: 16px; }
.act-card .act-body h3 { font-size: 15px; font-weight: 600; color: #333; margin-bottom: 8px; line-height: 1.5; }
.act-card .act-body .act-time { font-size: 12px; color: #999; margin-bottom: 4px; }
.act-card .act-body .act-loc { font-size: 12px; color: #aaa; }

/* Volunteer grid card (image + title only) */
.vol-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.vol-card { background: #fff; border-radius: 8px; overflow: hidden; border: 1px solid #eee; transition: border-color .2s; }
.vol-card:hover { border-color: #c32136; }
.vol-card .vol-img { width: 100%; aspect-ratio: 3/2; object-fit: cover; display: block; background: #f5f5f5; }
.vol-card .vol-img-placeholder { width: 100%; aspect-ratio: 3/2; background: linear-gradient(135deg, #fef2f2, #fff5f5); display: flex; align-items: center; justify-content: center; font-size: 40px; color: #ddd; }
.vol-card .vol-title { padding: 12px 16px; font-size: 14px; font-weight: 500; color: #333; }

/* Member grid card with type tag */
.mem-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.mem-card { background: #fff; border-radius: 8px; padding: 24px 20px; text-align: center; border: 1px solid #eee; transition: border-color .2s; }
a.mem-card { display: block; text-decoration: none; color: inherit; }
.mem-card:hover { border-color: #c32136; }
.mem-card .mem-logo { width: 64px; height: 64px; border-radius: 10px; object-fit: contain; margin: 0 auto 12px; display: block; }
.mem-card .mem-logo-placeholder { width: 64px; height: 64px; border-radius: 10px; background: #f5f5f5; margin: 0 auto 12px; display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 700; color: #c32136; }
.mem-card .mem-name { font-size: 14px; font-weight: 600; color: #333; margin-bottom: 8px; }
.mem-type-tag { display: inline-block; padding: 2px 10px; border-radius: 4px; font-size: 11px; }
.mem-type-tag.t1 { background: #fef2f2; color: #c32136; }
.mem-type-tag.t2 { background: #eaf3de; color: #3b6d11; }
.mem-type-tag.t3 { background: #e6f1fb; color: #185fa5; }

/* Pagination flat */
.pagination { display: flex; justify-content: center; gap: 6px; margin: 32px 0; }
.pagination a, .pagination span { padding: 6px 12px; border: 1px solid #ddd; border-radius: 4px; font-size: 13px; color: #555; transition: all .2s; }
.pagination a:hover { border-color: #c32136; color: #c32136; }
.pagination span.current { background: #c32136; color: #fff; border-color: #c32136; }

/* News list item flat */
.news-list-modern .news-list-item { border: 1px solid #eee; box-shadow: none; }
.news-list-modern .news-list-item:hover { box-shadow: none; border-color: #c32136; transform: none; }

/* Sidebar widget flat */
.sidebar .widget { border: 1px solid #eee; box-shadow: none; }

/* Intro block flat */
.intro-block { border: 1px solid #eee; box-shadow: none; }

/* Contact items flat */
.contact-info-item { border: 1px solid #eee; box-shadow: none; }
.contact-form { border: 1px solid #eee; box-shadow: none; }

/* ===== Contact Page Layout ===== */
.contact-layout { display: grid; grid-template-columns: 360px 1fr; gap: 24px; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.contact-info-side .contact-info-list { display: flex; flex-direction: column; gap: 16px; }
.contact-info-side .contact-info-item { align-items: flex-start; }
.contact-info-side .contact-info-item .text h4 { font-size: 15px; margin-bottom: 6px; }
.contact-info-side .contact-info-item .text p { font-size: 14px; color: #555; }
.contact-map-side { min-width: 0; }
.contact-map-box { position: relative; height: 100%; min-height: 420px; border: 1px solid #eee; border-radius: 12px; overflow: hidden; background: #f8f9fa; }
.contact-map-box img { display: block; width: 100%; height: 100%; object-fit: cover; }
.contact-map-box.no-image::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, transparent, transparent 39px, #e9ecef 40px), repeating-linear-gradient(90deg, transparent, transparent 39px, #e9ecef 40px); opacity: .6; pointer-events: none; }
.contact-map-box.has-image::before { display: none; }
.map-pin { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -100%); display: flex; flex-direction: column; align-items: center; }
.map-pin .pin-dot { width: 24px; height: 24px; background: #c32136; border: 3px solid #fff; border-radius: 50%; box-shadow: 0 2px 8px rgba(0,0,0,.2); position: relative; z-index: 2; }
.map-pin .pin-dot::after { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 8px; height: 8px; background: #fff; border-radius: 50%; }
.map-pin .pin-pulse { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); width: 24px; height: 10px; background: rgba(195,33,54,.2); border-radius: 50%; animation: pinPulse 1.5s ease-out infinite; }
@keyframes pinPulse { 0% { transform: translateX(-50%) scale(1); opacity: .6; } 100% { transform: translateX(-50%) scale(3); opacity: 0; } }
.map-label { position: absolute; top: calc(50% + 18px); left: 50%; transform: translateX(-50%); background: #c32136; color: #fff; font-size: 12px; padding: 4px 10px; border-radius: 4px; white-space: nowrap; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
@media (max-width: 1024px) {
  .contact-layout { grid-template-columns: 1fr; }
  .contact-map-box { min-height: 320px; }
}
@media (max-width: 768px) {
  .contact-map-box { min-height: 260px; }
}

/* Responsive for new grids */
@media (max-width: 768px) {
  .act-grid-2 { grid-template-columns: 1fr; }
  .vol-grid-3 { grid-template-columns: 1fr; }
  .mem-grid-3 { grid-template-columns: 1fr; }
  .page-header .ph-inner { flex-direction: column; align-items: flex-start; gap: 4px; }
  .page-header .ph-desc { display: none; }
}
