/* 益守护 - 全局样式 & 主题系统 */
:root,
[data-theme="default"] {
    --primary: #1e3a5f;
    --primary-light: #2d5a87;
    --primary-dark: #152a45;
    --accent: #e8734a;
    --accent-light: #f0956e;
    --accent-dark: #c85a32;
    --bg: #f5f7fa;
    --bg-card: #ffffff;
    --bg-sidebar: #1e3a5f;
    --bg-sidebar-hover: #2d5a87;
    --text: #2d3748;
    --text-light: #718096;
    --text-muted: #a0aec0;
    --border: #e2e8f0;
    --success: #38a169;
    --warning: #d69e2e;
    --danger: #e53e3e;
    --info: #3182ce;
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --radius: 8px;
    --radius-lg: 12px;
    --transition: 0.25s ease;
}

[data-theme="dark"] {
    --primary: #90cdf4;
    --primary-light: #bee3f8;
    --primary-dark: #63b3ed;
    --accent: #f6ad55;
    --accent-light: #fbd38d;
    --accent-dark: #ed8936;
    --bg: #1a202c;
    --bg-card: #2d3748;
    --bg-sidebar: #171923;
    --bg-sidebar-hover: #2d3748;
    --text: #e2e8f0;
    --text-light: #a0aec0;
    --text-muted: #718096;
    --border: #4a5568;
    --shadow: 0 2px 8px rgba(0,0,0,0.3);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.4);
}

[data-theme="ocean"] {
    --primary: #0077b6;
    --primary-light: #00b4d8;
    --primary-dark: #023e8a;
    --accent: #48cae4;
    --accent-light: #90e0ef;
    --accent-dark: #0096c7;
    --bg: #f0f8ff;
    --bg-card: #ffffff;
    --bg-sidebar: #023e8a;
    --bg-sidebar-hover: #0077b6;
    --text: #1b263b;
    --text-light: #415a77;
    --text-muted: #778da9;
    --border: #caf0f8;
    --shadow: 0 2px 8px rgba(0,119,182,0.08);
    --shadow-lg: 0 8px 24px rgba(0,119,182,0.12);
}

[data-theme="forest"] {
    --primary: #2d6a4f;
    --primary-light: #40916c;
    --primary-dark: #1b4332;
    --accent: #d4a373;
    --accent-light: #e9c46a;
    --accent-dark: #bc6c25;
    --bg: #f8f9f0;
    --bg-card: #ffffff;
    --bg-sidebar: #1b4332;
    --bg-sidebar-hover: #2d6a4f;
    --text: #2b2d2f;
    --text-light: #555b6e;
    --text-muted: #89919e;
    --border: #d8e2dc;
    --shadow: 0 2px 8px rgba(45,106,79,0.08);
    --shadow-lg: 0 8px 24px rgba(45,106,79,0.12);
}

[data-theme="sunset"] {
    --primary: #7c3aed;
    --primary-light: #8b5cf6;
    --primary-dark: #5b21b6;
    --accent: #f59e0b;
    --accent-light: #fbbf24;
    --accent-dark: #d97706;
    --bg: #faf5ff;
    --bg-card: #ffffff;
    --bg-sidebar: #3b0764;
    --bg-sidebar-hover: #5b21b6;
    --text: #1e1b4b;
    --text-light: #4c1d95;
    --text-muted: #7c3aed;
    --border: #e9d5ff;
    --shadow: 0 2px 8px rgba(124,58,237,0.08);
    --shadow-lg: 0 8px 24px rgba(124,58,237,0.12);
}

/* 基础重置 */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; }
input, select, textarea, button { font-family: inherit; font-size: inherit; }

/* 容器 */
.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.container-sm { max-width: 768px; margin: 0 auto; padding: 0 16px; }

/* 卡片 */
.card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 24px;
    margin-bottom: 20px;
    transition: box-shadow var(--transition);
}
.card:hover { box-shadow: var(--shadow-lg); }
.card-title { font-size: 18px; font-weight: 600; margin-bottom: 16px; color: var(--text); display: flex; align-items: center; gap: 8px; }
.card-title::before { content: ''; width: 4px; height: 20px; background: var(--accent); border-radius: 2px; }

/* 按钮 */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 10px 20px; border: none; border-radius: var(--radius);
    font-size: 14px; font-weight: 500; cursor: pointer;
    transition: all var(--transition); text-decoration: none;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; transform: translateY(-1px); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); color: #fff; }
.btn-outline { background: transparent; border: 1.5px solid var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-success { background: var(--success); color: #fff; }

/* 表单 */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; color: var(--text); }
.form-control {
    width: 100%; padding: 10px 14px;
    border: 1.5px solid var(--border); border-radius: var(--radius);
    background: var(--bg-card); color: var(--text);
    transition: border-color var(--transition);
    outline: none; font-size: 14px;
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(30,58,95,0.1); }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23718096' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }
textarea.form-control { min-height: 100px; resize: vertical; }

/* 表格 */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); font-size: 14px; }
.table th { background: var(--bg); font-weight: 600; color: var(--text-light); font-size: 13px; white-space: nowrap; }
.table tr:hover td { background: rgba(30,58,95,0.02); }

/* 徽章 */
.badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 500; }
.badge-success { background: #c6f6d5; color: #22543d; }
.badge-warning { background: #fefcbf; color: #744210; }
.badge-danger { background: #fed7d7; color: #742a2a; }
.badge-info { background: #bee3f8; color: #2a4365; }
.badge-default { background: #e2e8f0; color: #4a5568; }
.badge-secondary { background: #e2e8f0; color: #4a5568; }
.badge-primary { background: var(--primary); color: #fff; }
/* 活动状态徽章 */
.status-pending { background: #fefcbf; color: #744210; }
.status-approved { background: #c6f6d5; color: #22543d; }
.status-rejected { background: #fed7d7; color: #742a2a; }
.status-in-progress { background: #bee3f8; color: #2a4365; }
.status-completed { background: #c6f6d5; color: #22543d; }
.status-cancelled { background: #e2e8f0; color: #4a5568; }

/* 统计卡片 */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card { background: var(--bg-card); border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow); text-align: center; transition: transform var(--transition); }
.stat-card:hover { transform: translateY(-2px); }
.stat-card .stat-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; font-size: 24px; }
.stat-card .stat-value { font-size: 28px; font-weight: 700; color: var(--primary); }
.stat-card .stat-label { font-size: 13px; color: var(--text-light); margin-top: 4px; }

/* 导航栏 */
.navbar {
    background: var(--bg-card);
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    position: sticky; top: 0; z-index: 100;
    padding: 0 16px;
}
.navbar-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; height: 60px; position: relative; }
.navbar-brand { font-size: 20px; font-weight: 700; color: var(--primary); display: flex; align-items: center; gap: 10px; }
.navbar-brand img { height: 38px; width: auto; max-width: 120px; object-fit: contain; }
.navbar-brand svg { color: var(--primary); flex-shrink: 0; }
.navbar-brand span { color: var(--accent); }
.navbar-site-name { font-size: 18px; font-weight: 600; color: var(--text); letter-spacing: 0.5px; margin-left: 10px; padding-left: 12px; border-left: 2px solid var(--primary); white-space: nowrap; line-height: 1.2; }
.navbar-nav { display: flex; gap: 4px; list-style: none; }
.navbar-nav a { padding: 8px 16px; border-radius: var(--radius); color: var(--text-light); font-size: 14px; font-weight: 500; transition: all var(--transition); }
.navbar-nav a:hover, .navbar-nav a.active { color: var(--primary); background: rgba(30,58,95,0.06); }
.navbar-toggle { display: none; background: none; border: none; font-size: 24px; color: var(--text); cursor: pointer; }

/* 页脚 */
.footer { background: var(--primary-dark); color: rgba(255,255,255,0.7); padding: 40px 16px 20px; margin-top: 60px; }
.footer-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; }
.footer h4 { color: #fff; font-size: 16px; margin-bottom: 16px; }
.footer a { color: rgba(255,255,255,0.6); display: block; padding: 4px 0; font-size: 14px; }
.footer a:hover { color: var(--accent); }
.footer-bottom { max-width: 1200px; margin: 24px auto 0; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); text-align: center; font-size: 13px; }

/* 时间轴 */
.timeline { position: relative; padding-left: 28px; }
.timeline::before { content: ''; position: absolute; left: 8px; top: 0; bottom: 0; width: 2px; background: var(--border); }
.timeline-item { position: relative; margin-bottom: 24px; }
.timeline-item::before { content: ''; position: absolute; left: -24px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); border: 2px solid var(--bg-card); }
.timeline-item .time { font-size: 12px; color: var(--text-muted); margin-bottom: 4px; }
.timeline-item .content { font-size: 14px; color: var(--text); }

/* 分页 */
.pagination { display: flex; justify-content: center; gap: 4px; margin-top: 24px; }
.pagination a, .pagination span { padding: 8px 14px; border-radius: var(--radius); font-size: 14px; border: 1px solid var(--border); color: var(--text); }
.pagination a:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.pagination .active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* 模态框 */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 1000; display: none; align-items: center; justify-content: center; padding: 16px; }
.modal-overlay.active { display: flex; }
.modal { background: var(--bg-card); border-radius: var(--radius-lg); max-width: 600px; width: 100%; max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow-lg); }
.modal.show { display: block; position: fixed; inset: 0; z-index: 1000; margin: 0; padding: 0; max-height: none; overflow: visible; }
.modal.show::before { content: ''; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: -1; }
.modal-content { background: var(--bg-card); border-radius: var(--radius-lg); max-width: 600px; width: 90%; max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow-lg); margin: 5vh auto; position: relative; z-index: 1; }
.modal-lg { max-width: 800px; }
.modal-header { padding: 20px 24px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.modal-header h3 { font-size: 18px; }
.modal-close { background: none; border: none; font-size: 24px; cursor: pointer; color: var(--text-light); }
.modal-body { padding: 24px; }
.modal-footer { padding: 16px 24px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 12px; }
.close { background: none; border: none; font-size: 24px; cursor: pointer; color: var(--text-light); line-height: 1; }
.close:hover { color: var(--text); }

/* 页面头部 */
.page-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.page-header h2 { font-size: 22px; font-weight: 600; margin: 0; }

/* 表单网格 */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full-width { grid-column: 1 / -1; }
.form-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); }

/* 数据表格 */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { background: var(--bg-main); padding: 12px 16px; text-align: left; font-weight: 600; font-size: 13px; color: var(--text-light); border-bottom: 2px solid var(--border); }
.data-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: 14px; }
.data-table tr:hover { background: var(--bg-main); }
.data-table .empty { text-align: center; color: var(--text-muted); padding: 40px; }

/* 必填标记 */
.required { color: var(--danger); }

/* 管理后台布局 */
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar {
    width: 240px; background: var(--bg-sidebar); color: #fff;
    position: fixed; top: 0; left: 0; bottom: 0; z-index: 50;
    display: flex; flex-direction: column;
    transition: transform var(--transition);
}
.admin-sidebar-header { padding: 20px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.admin-sidebar-header h2 { font-size: 18px; color: #fff; }
.admin-sidebar-header p { font-size: 12px; opacity: 0.6; margin-top: 4px; }
.admin-sidebar-nav { flex: 1; padding: 12px 0; overflow-y: auto; }
.admin-sidebar-nav a {
    display: flex; align-items: center; gap: 10px;
    padding: 11px 20px; color: rgba(255,255,255,0.7);
    font-size: 14px; transition: all var(--transition);
    border-left: 3px solid transparent;
}
.admin-sidebar-nav a:hover { background: var(--bg-sidebar-hover); color: #fff; }
.admin-sidebar-nav a.active { background: var(--bg-sidebar-hover); color: #fff; border-left-color: var(--accent); }
.admin-sidebar-nav .nav-icon { width: 20px; text-align: center; font-size: 16px; }
.admin-sidebar-footer { padding: 16px 20px; border-top: 1px solid rgba(255,255,255,0.1); }
.admin-main { flex: 1; margin-left: 240px; }
.admin-topbar {
    background: var(--bg-card); padding: 0 24px;
    height: 60px; display: flex; align-items: center; justify-content: space-between;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    position: sticky; top: 0; z-index: 40;
}
.admin-topbar .page-title { font-size: 18px; font-weight: 600; }
.admin-topbar .topbar-actions { display: flex; align-items: center; gap: 12px; }
.admin-content { padding: 24px; }

/* 主题切换器 */
.theme-switcher { display: flex; gap: 6px; align-items: center; }
.theme-dot { width: 20px; height: 20px; border-radius: 50%; cursor: pointer; border: 2px solid transparent; transition: all var(--transition); }
.theme-dot:hover { transform: scale(1.2); }
.theme-dot.active { border-color: var(--text); box-shadow: 0 0 0 2px var(--bg); }
.theme-dot[data-theme="default"] { background: linear-gradient(135deg, #1e3a5f, #e8734a); }
.theme-dot[data-theme="dark"] { background: linear-gradient(135deg, #1a202c, #f6ad55); }
.theme-dot[data-theme="ocean"] { background: linear-gradient(135deg, #0077b6, #48cae4); }
.theme-dot[data-theme="forest"] { background: linear-gradient(135deg, #2d6a4f, #d4a373); }
.theme-dot[data-theme="sunset"] { background: linear-gradient(135deg, #7c3aed, #f59e0b); }

/* Hero区域 */
.hero {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
    color: #fff; padding: 60px 16px; text-align: center;
}
.hero h1 { font-size: 36px; margin-bottom: 12px; }
.hero p { font-size: 16px; opacity: 0.85; max-width: 600px; margin: 0 auto; }

/* 响应式 */
@media (max-width: 768px) {
    .navbar-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg-card); flex-direction: column; padding: 8px 16px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); border-top: 1px solid rgba(0,0,0,0.05); z-index: 99; }
    .navbar-nav.show { display: flex; animation: slideDown 0.2s ease; }
    .navbar-nav li { border-bottom: 1px solid rgba(0,0,0,0.05); }
    .navbar-nav li:last-child { border-bottom: none; }
    .navbar-nav a { padding: 14px 16px; display: block; font-size: 15px; }
    .navbar-toggle { display: block; padding: 8px 12px; border-radius: var(--radius); }
    .navbar-toggle:active { background: rgba(0,0,0,0.05); }
    .hero h1 { font-size: 26px; }
    .hero { padding: 40px 16px; }
    .stat-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .stat-card { padding: 12px 8px; }
    .stat-card .stat-value { font-size: 20px; }
    .stat-card .stat-label { font-size: 11px; }
    .stat-card .stat-icon { width: 36px; height: 36px; font-size: 18px; margin-bottom: 8px; }
    .footer-inner { grid-template-columns: 1fr; }
    .admin-sidebar { transform: translateX(-100%); }
    .admin-sidebar.show { transform: translateX(0); }
    .admin-main { margin-left: 0; }
    .admin-content { padding: 16px; }
    .table th, .table td { padding: 8px 10px; font-size: 13px; }
    .modal { margin: 8px; }
    .section-title { font-size: 22px; }
    .card-grid { grid-template-columns: 1fr; }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 480px) {
    .stat-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .stat-card { padding: 12px 8px; }
    .stat-card .stat-value { font-size: 16px; }
    .stat-card .stat-label { font-size: 10px; }
}

/* 动画 */
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.fade-in { animation: fadeIn 0.4s ease; }

/* 筛选栏 */
.filter-bar { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; align-items: flex-end; }
.filter-bar .form-group { margin-bottom: 0; min-width: 150px; }

/* 空状态 */
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.empty-state .icon { font-size: 48px; margin-bottom: 16px; }
.empty-state p { font-size: 15px; }

/* 星级评分 */
.star-rating { display: flex; gap: 4px; }
.star-rating .star { font-size: 20px; color: #e2e8f0; cursor: pointer; }
.star-rating .star.active { color: #f6ad55; }

/* 照片网格 */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.photo-grid img { width: 100%; height: 120px; object-fit: cover; border-radius: var(--radius); cursor: pointer; }

/* ==================== 志愿者H5端样式 ==================== */

/* 志愿者登录页 */
.vol-login-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark, #1a365d) 100%);
    padding: 20px;
}
.vol-login-card {
    width: 100%;
    max-width: 380px;
    background: #fff;
    border-radius: 16px;
    padding: 40px 32px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}
.vol-login-card .vol-logo {
    text-align: center;
    margin-bottom: 32px;
}
.vol-login-card .vol-logo h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 4px;
    letter-spacing: 2px;
}
.vol-login-card .vol-logo p {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
}
.vol-login-card .vol-login-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    margin: 0 0 24px;
}
.vol-login-card .form-group {
    margin-bottom: 20px;
}
.vol-login-card .form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
}
.vol-login-card .form-group input {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 15px;
    color: var(--text-primary);
    background: #f8fafc;
    transition: all 0.2s;
    box-sizing: border-box;
}
.vol-login-card .form-group input:focus {
    outline: none;
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(44, 82, 130, 0.1);
}
.vol-login-card .form-group input::placeholder {
    color: #a0aec0;
}
.vol-login-card .vol-login-btn {
    width: 100%;
    height: 46px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 8px;
}
.vol-login-card .vol-login-btn:hover {
    background: var(--primary-dark, #1a365d);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(44, 82, 130, 0.3);
}
.vol-login-card .vol-login-btn:active {
    transform: translateY(0);
}
.vol-login-card .vol-login-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 12px;
    color: var(--text-muted);
}

/* 志愿者端主容器 */
.vol-container {
    min-height: 100vh;
    background: #f0f2f5;
    padding-bottom: 64px;
}

/* 志愿者端顶部 */
.vol-header {
    background: var(--primary);
    color: #fff;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.vol-header .vol-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}
.vol-header .vol-brand-icon {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}
.vol-header .vol-brand h1 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}
.vol-header .vol-user {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    opacity: 0.9;
}
.vol-header .vol-avatar {
    width: 30px;
    height: 30px;
    background: rgba(255,255,255,0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
}

/* 志愿者端底部导航 */
.vol-tabbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: #fff;
    border-top: 1px solid #e2e8f0;
    display: flex;
    z-index: 100;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
}
.vol-tabbar a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    text-decoration: none;
    color: #718096;
    font-size: 11px;
    font-weight: 500;
    transition: color 0.2s;
}
.vol-tabbar a .vol-tab-icon {
    font-size: 20px;
    line-height: 1;
}
.vol-tabbar a.active {
    color: var(--primary);
}
.vol-tabbar a.active .vol-tab-icon {
    transform: scale(1.1);
}

/* 志愿者端内容区 */
.vol-content {
    padding: 16px;
    max-width: 600px;
    margin: 0 auto;
}

/* 志愿者统计卡片 */
.vol-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}
.vol-stat-card {
    background: #fff;
    border-radius: 12px;
    padding: 18px 16px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.vol-stat-card .vol-stat-num {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
}
.vol-stat-card .vol-stat-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* 志愿者区块标题 */
.vol-section-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 20px 0 12px;
    padding-left: 4px;
}

/* 志愿者记录卡片 */
.vol-record-card {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.vol-record-card .vol-record-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}
.vol-record-card .vol-record-item {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}
.vol-record-card .vol-record-status {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 500;
}
.vol-record-card .vol-record-status.pending {
    background: #fef3cd;
    color: #856404;
}
.vol-record-card .vol-record-status.approved {
    background: #d4edda;
    color: #155724;
}
.vol-record-card .vol-record-status.rejected {
    background: #f8d7da;
    color: #721c24;
}
.vol-record-card .vol-record-meta {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.8;
}

/* 志愿者表单 */
.vol-form {
    background: #fff;
    border-radius: 12px;
    padding: 20px 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.vol-form .form-group {
    margin-bottom: 18px;
}
.vol-form .form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
}
.vol-form .form-group input,
.vol-form .form-group select,
.vol-form .form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    color: var(--text-primary);
    background: #f8fafc;
    box-sizing: border-box;
    transition: all 0.2s;
}
.vol-form .form-group input:focus,
.vol-form .form-group select:focus,
.vol-form .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(44, 82, 130, 0.08);
}
.vol-form .form-group textarea {
    resize: vertical;
    min-height: 80px;
}
.vol-form .vol-submit-btn {
    width: 100%;
    height: 44px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.vol-form .vol-submit-btn:hover {
    background: var(--primary-dark, #1a365d);
}
.vol-form .vol-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* 志愿者退出按钮 */
.vol-logout {
    display: block;
    text-align: center;
    padding: 12px;
    color: #e53e3e;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    margin-top: 20px;
}

/* 志愿者空状态 */
.vol-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}
.vol-empty .vol-empty-icon {
    font-size: 40px;
    margin-bottom: 12px;
    opacity: 0.5;
}
.vol-empty p {
    font-size: 14px;
    margin: 0;
}

/* 协议上传区域样式 */
.upload-section-title {
    font-size: 15px;
    font-weight: 600;
    color: #1976d2;
    margin: 16px 0 12px 0;
    padding: 10px 14px;
    background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
    border-radius: 8px;
    border-left: 4px solid #1976d2;
}
.upload-section {
    background: #fafbfc;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 14px;
}
.upload-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}
.upload-row:last-child {
    border-bottom: none;
}
.upload-label {
    font-size: 13px;
    color: #555;
    min-width: 70px;
    font-weight: 500;
}
.upload-area {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    flex: 1;
}
.upload-add {
    width: 56px;
    height: 56px;
    border: 2px dashed #bbb;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: #fff;
    transition: all 0.2s ease;
}
.upload-add:hover {
    border-color: #1976d2;
    background: #e3f2fd;
}
.upload-add:active {
    transform: scale(0.95);
}
.upload-plus {
    font-size: 22px;
    color: #1976d2;
    line-height: 1;
    font-weight: 300;
}
.upload-text {
    font-size: 10px;
    color: #888;
    margin-top: 2px;
}
.upload-preview {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid #e0e0e0;
    cursor: pointer;
}

/* 照片预览项样式 */
.photo-item {
    position: relative;
    display: inline-block;
    width: 70px;
    height: 70px;
    margin: 4px;
    border-radius: 8px;
    overflow: visible;
}
.photo-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    cursor: pointer;
    transition: border-color 0.2s;
}
.photo-thumb:hover {
    border-color: #42a5f5;
}
.photo-actions {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 2px;
    background: rgba(255,255,255,0.95);
    border-radius: 12px;
    padding: 2px 4px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.photo-action-btn {
    width: 20px;
    height: 20px;
    font-size: 11px;
    text-align: center;
    line-height: 20px;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.2s;
}
.photo-action-btn.view {
    color: #1976d2;
}
.photo-action-btn.view:hover {
    background: #e3f2fd;
}
.photo-action-btn.edit {
    color: #f57c00;
}
.photo-action-btn.edit:hover {
    background: #fff3e0;
}
.photo-action-btn.delete {
    color: #e53935;
    font-weight: bold;
}
.photo-action-btn.delete:hover {
    background: #ffebee;
}

/* 照片查看大图弹窗 */
.photo-view-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.9);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s;
}
.photo-view-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}
.photo-view-content img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
}
.photo-view-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 28px;
    width: 36px;
    height: 36px;
    text-align: center;
    line-height: 36px;
    cursor: pointer;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    transition: background 0.2s;
}
.photo-view-close:hover {
    background: rgba(255,255,255,0.4);
}

/* 志愿者端响应式 */
@media (max-width: 480px) {
    .vol-login-card {
        padding: 32px 24px;
    }
    .vol-stat-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .vol-stat-card .vol-stat-num {
        font-size: 24px;
    }
}

/* 打印隐藏 */
@media print {
    .admin-sidebar, .admin-topbar, .no-print { display: none !important; }
    .admin-main { margin-left: 0 !important; }
}

/* ========== 前台·媒体报导 ========== */
.media-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    padding: 8px 4px;
}
@media (max-width: 1100px) {
    .media-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
    .media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
}
@media (max-width: 420px) {
    .media-grid { grid-template-columns: 1fr; }
}
.media-chip {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    padding: 22px 22px;
    background: var(--bg, #f7f9fc);
    border: 1px solid var(--border, #e5e9f0);
    border-left: 3px solid var(--primary, #2c7be5);
    border-radius: 8px;
    color: var(--text, #1f2d3d);
    font-size: 15px;
    line-height: 1.5;
    font-weight: 500;
    text-decoration: none;
    transition: all .25s ease;
    position: relative;
}
.media-chip:hover {
    border-color: var(--primary, #2c7be5);
    border-left-width: 3px;
    color: var(--primary, #2c7be5);
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(44, 123, 229, 0.12);
}

/* 媒体报导列表页 —— 序号 + 标题 + 元信息，大方排布 */
.media-row {
    padding: 22px 8px;
    border-bottom: 1px dashed var(--border, #e5e9f0);
}
.media-row:last-child { border-bottom: none; }
.media-row-inline {
    display: flex;
    align-items: baseline;
    gap: 20px;
    flex-wrap: nowrap;
}
.media-row-num {
    flex: 0 0 auto;
    width: 42px;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary, #2c7be5);
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.5px;
    text-align: left;
    line-height: 1.4;
}
.media-row-title {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 16px;
    font-weight: 500;
    color: var(--text, #1f2d3d);
    text-decoration: none;
    line-height: 1.7;
    transition: color .2s;
}
.media-row-title:hover { color: var(--primary, #2c7be5); }
.media-row-meta {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--text-muted, #8a94a6);
    font-size: 13px;
    white-space: nowrap;
}
.media-row-meta::before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--text-muted, #c0c7d2);
}
.media-row-date {
    font-variant-numeric: tabular-nums;
}
.media-row-source {
    max-width: 180px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: var(--accent, #f6ad55);
    font-weight: 500;
    padding-left: 14px;
    border-left: 1px solid var(--border, #e5e9f0);
}
@media (max-width: 720px) {
    .media-row { padding: 18px 4px; }
    .media-row-inline {
        flex-wrap: wrap;
        gap: 8px 12px;
    }
    .media-row-num { width: 32px; font-size: 17px; }
    .media-row-title { flex-basis: calc(100% - 44px); font-size: 15px; }
    .media-row-meta {
        flex-basis: 100%;
        padding-left: 44px;
        font-size: 12.5px;
    }
    .media-row-meta::before { display: none; }
    .media-row-source { padding-left: 12px; }
}
