/* ========== 全局样式 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
    background: linear-gradient(180deg, #f8fafc 0%, #f0f4f8 100%);
    color: #333;
    min-height: 100vh;
}

a { text-decoration: none; color: inherit; }

/* ========== 导航栏 ========== */
.navbar {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    font-size: 19px;
    font-weight: 700;
    color: #0f2744;
    letter-spacing: 0.5px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    color: #555;
    transition: all 0.2s;
}

.nav-link:hover {
    background: #e8f0fe;
    color: #1557b0;
}

.nav-login-btn {
    background: #1a73e8;
    color: #fff !important;
    font-weight: 500;
}

.nav-login-btn:hover {
    background: #1557b0;
}

/* ========== 用户名下拉菜单 ========== */
.user-dropdown {
    position: relative;
}

.user-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: none;
    background: none;
    cursor: pointer;
    border-radius: 8px;
    color: #555;
    font-size: 14px;
    transition: background 0.2s;
}

.user-btn:hover {
    background: #f0f4ff;
}

.user-icon {
    color: #1a73e8;
    width: 28px;
    height: 28px;
    background: #e8f0fe;
    border-radius: 50%;
    padding: 4px;
}

.username-text {
    font-weight: 500;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.arrow-icon {
    transition: transform 0.2s;
}

.user-dropdown:hover .arrow-icon {
    transform: rotate(180deg);
}

.dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 44px;
    min-width: 180px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    padding: 6px;
    z-index: 200;
}

.dropdown-menu.show {
    display: block;
    animation: dropdownIn 0.15s ease;
}

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

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
    color: #444;
    transition: background 0.15s;
}

.dropdown-item:hover {
    background: #f5f7fa;
}

.dropdown-item svg {
    color: #888;
    flex-shrink: 0;
}

.dropdown-divider {
    height: 1px;
    background: #eee;
    margin: 4px 0;
}

.dropdown-logout {
    color: #e74c3c;
}

.dropdown-logout svg {
    color: #e74c3c;
}

/* ========== 导航下拉菜单（信息公开） ========== */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.nav-dropdown-btn .arrow-icon {
    transition: transform 0.2s;
}

.nav-dropdown.open .nav-dropdown-btn .arrow-icon {
    transform: rotate(180deg);
}

.nav-dropdown.open .nav-link {
    background: #f0f4ff;
    color: #1a73e8;
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    left: 0;
    top: 44px;
    min-width: 200px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    padding: 6px;
    z-index: 200;
}

.nav-dropdown.open .nav-dropdown-menu {
    display: block;
    animation: dropdownIn 0.15s ease;
}

/* ========== 消息提示 ========== */
.messages {
    max-width: 1200px;
    margin: 16px auto 0;
    padding: 0 24px;
}

.message {
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 8px;
    animation: slideIn 0.3s ease;
}

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

.message-success {
    background: #e6f7ed;
    color: #1e7e34;
    border: 1px solid #b7ebc9;
}

.message-error {
    background: #ffeaea;
    color: #c0392b;
    border: 1px solid #f5c6cb;
}

.message-warning {
    background: #fff3e0;
    color: #e67e22;
    border: 1px solid #ffd8a8;
}

/* ========== 主体内容 ========== */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    min-height: calc(100vh - 56px - 180px);
}

/* ========== 首页 Hero 大图区 ========== */
.home-hero {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    margin: 24px 0 32px;
    min-height: 520px;
    display: flex;
    align-items: center;
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

.hero-image-wrap {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(10,40,80,0.82) 0%, rgba(10,40,80,0.45) 60%, rgba(10,40,80,0.2) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
    padding: 48px 56px;
    color: #fff;
}

.hero-badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 18px;
    backdrop-filter: blur(4px);
}

.home-hero h1 {
    font-size: 38px;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 16px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.hero-subtitle {
    font-size: 17px;
    line-height: 1.7;
    opacity: 0.92;
    margin-bottom: 28px;
    max-width: 520px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.btn-lg {
    padding: 14px 32px;
    font-size: 16px;
    border-radius: 10px;
}

.btn-white {
    background: #fff;
    color: #1a73e8;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-white:hover {
    background: #f0f4ff;
    transform: translateY(-1px);
}

/* ========== 快速入口卡片 ========== */
.home-quick-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.quick-link-card {
    background: #fff;
    border-radius: 16px;
    padding: 28px 22px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    transition: all 0.25s;
    border: 1px solid #f0f0f0;
}

.quick-link-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(26,115,232,0.12);
    border-color: #d6e4ff;
}

.quick-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, #e8f0fe, #f0f4ff);
    font-size: 26px;
    margin-bottom: 14px;
}

.quick-link-card h3 {
    font-size: 17px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 8px;
}

.quick-link-card p {
    font-size: 13px;
    color: #888;
    line-height: 1.5;
}

/* ========== 页脚 ========== */
.site-footer {
    background: #0f2744;
    color: rgba(255,255,255,0.8);
    padding: 44px 24px 28px;
    margin-top: 60px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.footer-brand strong {
    display: block;
    font-size: 18px;
    color: #fff;
    margin-bottom: 6px;
}

.footer-brand p {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    letter-spacing: 2px;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    font-size: 14px;
    color: rgba(255,255,255,0.75);
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #fff;
}

.footer-copyright {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
}

/* ========== 响应式适配 ========== */
@media (max-width: 900px) {
    .home-hero {
        min-height: 360px;
    }
    .home-hero h1 {
        font-size: 28px;
    }
    .home-quick-links {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 560px) {
    .home-hero h1 {
        font-size: 24px;
    }
    .hero-content {
        padding: 32px 24px;
    }
    .home-quick-links {
        grid-template-columns: 1fr;
    }
    .nav-container {
        padding: 0 16px;
    }
    .nav-links {
        gap: 4px;
    }
    .nav-link {
        padding: 6px 10px;
        font-size: 13px;
    }
    .nav-brand {
        font-size: 15px;
    }
}



/* 隐藏未找到图片时的占位 */
.hero-image-wrap:has(img[style*="display: none"]) {
    background: linear-gradient(135deg, #0f2744 0%, #1a73e8 100%);
}


/* ========== 按钮 ========== */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.btn-primary {
    background: linear-gradient(135deg, #1a73e8, #0d5bc6);
    color: #fff;
    box-shadow: 0 4px 14px rgba(26,115,232,0.25);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1557b0, #0a4a9e);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(26,115,232,0.3);
}

.btn-outline {
    border: 2px solid #1a73e8;
    color: #1a73e8;
    background: #fff;
}

.btn-outline:hover {
    background: #f0f4ff;
}

.btn-block {
    width: 100%;
    text-align: center;
}

/* ========== 认证表单 ========== */
.auth-container {
    display: flex;
    justify-content: center;
    padding: 60px 20px;
}

.auth-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    padding: 40px;
    width: 100%;
    max-width: 420px;
}

.auth-card h2 {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 24px;
    text-align: center;
}

.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-form label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #555;
    margin-bottom: 6px;
}

.auth-form input {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    font-size: 15px;
    color: #333;
    transition: border-color 0.2s;
    outline: none;
}

.auth-form input:focus {
    border-color: #1a73e8;
    box-shadow: 0 0 0 3px rgba(26,115,232,0.1);
}

.auth-form input:disabled {
    background: #f5f7fa;
    color: #999;
}

.auth-form button[type="submit"] {
    margin-top: 8px;
}

.auth-errors {
    background: #ffeaea;
    color: #c0392b;
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: 14px;
}

.auth-errors p {
    margin-bottom: 4px;
}

.auth-errors p:last-child {
    margin-bottom: 0;
}

.auth-switch {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #888;
}

.auth-switch a {
    color: #1a73e8;
    font-weight: 500;
}

.auth-switch a:hover {
    text-decoration: underline;
}

/* ========== 登录方式切换标签 ========== */
.login-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 24px;
    background: #f5f7fa;
    border-radius: 10px;
    padding: 4px;
}

.login-tab {
    flex: 1;
    padding: 10px 0;
    border: none;
    background: transparent;
    font-size: 14px;
    font-weight: 500;
    color: #888;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s;
}

.login-tab.active {
    background: #fff;
    color: #1a73e8;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.login-tab:hover:not(.active) {
    color: #555;
}

/* ========== 验证码输入行 ========== */
.sms-code-row {
    display: flex;
    gap: 10px;
}

.sms-code-row input {
    flex: 1;
}

.btn-sms {
    flex-shrink: 0;
    padding: 10px 16px;
    background: #f0f4ff;
    color: #1a73e8;
    border: 1.5px solid #c5d5f0;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.btn-sms:hover:not(:disabled) {
    background: #e0e8ff;
    border-color: #1a73e8;
}

.btn-sms:disabled {
    background: #f5f7fa;
    color: #bbb;
    border-color: #e0e0e0;
    cursor: not-allowed;
}

/* ========== 页面通用 ========== */
.page-container {
    padding: 40px 0;
}

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}

.page-header h1 {
    font-size: 24px;
    font-weight: 700;
    color: #0f2744;
}

.breadcrumb {
    margin-bottom: 20px;
    font-size: 14px;
}

.breadcrumb a {
    color: #1a73e8;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* ========== 首页活动区域 ========== */
.home-section {
    margin-top: 20px;
    padding: 0 0 40px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.section-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: #0f2744;
}

.view-all {
    font-size: 14px;
    color: #1a73e8;
    font-weight: 500;
}

.view-all:hover {
    text-decoration: underline;
}

/* ========== 活动卡片网格 ========== */
.activity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 20px;
}

.activity-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    padding: 24px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.activity-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.activity-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.activity-title {
    font-size: 17px;
    font-weight: 600;
    line-height: 1.4;
}

.activity-title a {
    color: #1a1a2e;
}

.activity-title a:hover {
    color: #1a73e8;
}

/* 状态标签 */
.activity-status,
.badge {
    flex-shrink: 0;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.status-enrolling,
.badge-enrolling {
    background: #e8f5e9;
    color: #2e7d32;
}

.status-ongoing,
.badge-ongoing {
    background: #e3f2fd;
    color: #1565c0;
}

.status-finished,
.badge-finished {
    background: #f5f5f5;
    color: #757575;
}

.badge-audit {
    background: #fff3e0;
    color: #e65100;
}

.badge-audit-pending {
    background: #fff8e1;
    color: #f9a825;
}

.badge-audit-approved {
    background: #e8f5e9;
    color: #2e7d32;
}

.badge-audit-rejected {
    background: #ffebee;
    color: #c62828;
}

.badge-record-signed_up {
    background: #e3f2fd;
    color: #1565c0;
}

.badge-record-served {
    background: #e8f5e9;
    color: #2e7d32;
}

.badge-record-cancelled {
    background: #f5f5f5;
    color: #9e9e9e;
}

.activity-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #777;
}

.meta-item svg {
    color: #aaa;
    flex-shrink: 0;
}

.activity-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}

/* 报名进度条 */
.enroll-progress {
    flex: 1;
    margin-right: 16px;
}

.progress-bar {
    height: 6px;
    background: #eee;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 4px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #1a73e8, #4da3ff);
    border-radius: 3px;
    transition: width 0.4s ease;
}

.progress-text {
    font-size: 12px;
    color: #999;
}

/* 小按钮 */
.btn-sm {
    padding: 6px 14px;
    font-size: 13px;
    border-radius: 8px;
}

/* ========== 活动详情 ========== */
.detail-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
    padding: 36px;
}

.detail-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid #f0f0f0;
}

.detail-header h1 {
    font-size: 26px;
    font-weight: 700;
    color: #1a1a2e;
}

.detail-badges {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.detail-meta {
    margin-bottom: 28px;
}

.meta-row {
    display: flex;
    padding: 10px 0;
    border-bottom: 1px solid #f8f8f8;
}

.meta-label {
    width: 90px;
    font-size: 14px;
    color: #999;
    flex-shrink: 0;
}

.meta-value {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.detail-section {
    margin-bottom: 28px;
}

.detail-section h3 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #333;
}

.detail-content {
    font-size: 15px;
    line-height: 1.8;
    color: #555;
    white-space: pre-line;
}

/* 报名区域 */
.enroll-section {
    background: #f8fafc;
    border-radius: 12px;
    padding: 24px;
    margin-top: 8px;
}

.enroll-section h3 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 16px;
}

.enroll-progress-large {
    margin-bottom: 20px;
}

.progress-bar-large {
    height: 10px;
    background: #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill-large {
    height: 100%;
    background: linear-gradient(90deg, #1a73e8, #4da3ff);
    border-radius: 5px;
    transition: width 0.4s ease;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #666;
}

.progress-info strong {
    color: #1a73e8;
}

.enroll-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}

.btn-large {
    padding: 14px 40px;
    font-size: 16px;
}

.btn-danger {
    border-color: #e74c3c;
    color: #e74c3c;
}

.btn-danger:hover {
    background: #ffeaea;
    border-color: #c0392b;
    color: #c0392b;
}

.enrolled-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 18px;
    background: #e8f5e9;
    color: #2e7d32;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
}

.cancelled-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    background: #f5f5f5;
    color: #9e9e9e;
    border-radius: 10px;
    font-size: 14px;
}

.served-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    background: #e8f5e9;
    color: #2e7d32;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
}

.full-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    background: #ffebee;
    color: #c62828;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
}

.na-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    background: #f5f5f5;
    color: #9e9e9e;
    border-radius: 10px;
    font-size: 14px;
}

/* ========== 表单卡片 ========== */
.form-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
    padding: 36px;
    max-width: 700px;
    margin: 0 auto;
}

.form-card h1 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
}

.form-hint {
    font-size: 14px;
    color: #999;
    margin-bottom: 28px;
}

.styled-form .form-group {
    margin-bottom: 20px;
}

.styled-form label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #555;
    margin-bottom: 6px;
}

.required {
    color: #e74c3c;
}

.styled-form input[type="text"],
.styled-form input[type="number"],
.styled-form input[type="datetime-local"],
.styled-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    font-size: 15px;
    color: #333;
    outline: none;
    transition: border-color 0.2s;
    font-family: inherit;
}

.styled-form input:focus,
.styled-form textarea:focus {
    border-color: #1a73e8;
    box-shadow: 0 0 0 3px rgba(26,115,232,0.1);
}

.styled-form textarea {
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-errors {
    background: #ffeaea;
    color: #c0392b;
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: 14px;
}

.error-item {
    margin-bottom: 4px;
}

.error-item:last-child {
    margin-bottom: 0;
}

/* ========== 表格 ========== */
.table-container {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    overflow: hidden;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    text-align: left;
    padding: 14px 20px;
    font-size: 13px;
    font-weight: 600;
    color: #888;
    background: #fafbfc;
    border-bottom: 1px solid #eee;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.data-table th a {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.data-table th a:hover {
    color: #4A90D9;
}

.data-table td {
    padding: 14px 20px;
    font-size: 14px;
    border-bottom: 1px solid #f8f8f8;
    color: #444;
}

.data-table tr:last-child td {
    border-bottom: none;
}

.data-table tr:hover td {
    background: #fafbfc;
}

.data-table td a {
    color: #1a73e8;
    font-weight: 500;
}

.data-table td a:hover {
    text-decoration: underline;
}

/* ========== 空状态 ========== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state svg {
    margin-bottom: 16px;
    opacity: 0.4;
}

.empty-state p {
    font-size: 16px;
    color: #999;
    margin-bottom: 20px;
}

/* ========== 操作按钮组 ========== */
.action-btns {
    display: flex;
    gap: 6px;
    align-items: center;
}

.btn-danger {
    background: #fff;
    border: 1.5px solid #e74c3c;
    color: #e74c3c;
    cursor: pointer;
    padding: 6px 14px;
    font-size: 13px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-danger:hover {
    background: #e74c3c;
    color: #fff;
}

/* ========== 表单提交区 ========== */
.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid #f0f0f0;
}

/* ========== 只读字段 ========== */
.readonly-field {
    padding: 12px 16px;
    background: #f5f7fa;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    font-size: 15px;
    color: #666;
    margin: 0;
}

/* ========== 区域标签 ========== */
.district-badge {
    display: inline-block;
    padding: 2px 10px;
    background: #e8f0fe;
    color: #1a73e8;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 500;
    margin-right: 6px;
}

/* ========== 活动筛选器 ========== */
.filter-bar {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    padding: 20px 24px;
    margin-bottom: 28px;
    border: 1px solid rgba(0,0,0,0.04);
}

.filter-form {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.filter-label {
    font-size: 12px;
    font-weight: 500;
    color: #888;
}

.filter-input {
    padding: 9px 14px;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    font-size: 14px;
    color: #333;
    background: #fff;
    outline: none;
    transition: border-color 0.2s;
    min-width: 150px;
}

.filter-input:focus {
    border-color: #1a73e8;
    box-shadow: 0 0 0 3px rgba(26,115,232,0.1);
}

.filter-separator {
    font-size: 18px;
    color: #ccc;
    padding-bottom: 10px;
}

.btn-filter {
    padding: 10px 28px;
    font-size: 14px;
    height: 42px;
}

.btn-filter-reset {
    padding: 10px 20px;
    font-size: 14px;
    height: 42px;
    border: 1.5px solid #e0e0e0;
    color: #888;
    background: #fff;
    border-radius: 10px;
    text-decoration: none;
    line-height: 20px;
    transition: all 0.2s;
}

.btn-filter-reset:hover {
    border-color: #bbb;
    color: #555;
    background: #f5f7fa;
}

/* ========== 表单下拉选择 ========== */
.styled-form select {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    font-size: 15px;
    color: #333;
    background: #fff;
    outline: none;
    transition: border-color 0.2s;
    font-family: inherit;
    appearance: auto;
}

.styled-form select:focus {
    border-color: #1a73e8;
    box-shadow: 0 0 0 3px rgba(26,115,232,0.1);
}

/* ========== 个人中心志愿者信息 ========== */
.profile-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
    padding: 36px;
    max-width: 600px;
    margin: 0 auto;
}

.profile-card h1 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 24px;
}

.volunteer-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}

.stat-item {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: #1a73e8;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 13px;
    color: #999;
}

.role-badge-large {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 20px;
}

.role-inactive {
    background: #f5f5f5;
    color: #9e9e9e;
}

.role-member {
    background: #e8f5e9;
    color: #2e7d32;
}

.role-star1 {
    background: #e8f5e9;
    color: #2e7d32;
}

.role-star2 {
    background: #e3f2fd;
    color: #1565c0;
}

.role-star3 {
    background: #fff3e0;
    color: #e65100;
}

.role-star4 {
    background: linear-gradient(135deg, #ffd54f, #ffb300);
    color: #5d4037;
}

.level-progress {
    margin: 20px 0 28px;
}

.level-progress .progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #888;
    margin-bottom: 8px;
}

.profile-actions {
    display: flex;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

/* ========== 班次表格（详情页） ========== */
.hint-text {
    font-size: 13px;
    color: #aaa;
    font-weight: 400;
}

.shifts-table-wrapper {
    overflow-x: auto;
    margin-bottom: 16px;
}

.shifts-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.shifts-table th {
    text-align: left;
    padding: 10px 14px;
    font-size: 12px;
    font-weight: 600;
    color: #888;
    background: #f1f3f5;
    border-bottom: 2px solid #e0e0e0;
}

.shifts-table td {
    padding: 10px 14px;
    border-bottom: 1px solid #f0f0f0;
    color: #444;
}

.shift-row:hover td {
    background: #f8fafc;
}

.shift-full td {
    color: #bbb;
}

.shift-enrolled td {
    background: #f1f8e9;
}

.shifts-table input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #1a73e8;
    cursor: pointer;
}

.check-mark {
    display: inline-block;
    width: 16px;
    text-align: center;
    color: #2e7d32;
    font-weight: bold;
    font-size: 18px;
}

.check-mark.served {
    color: #1565c0;
}

/* 班次状态标签 */
.badge-enrolled {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.badge-served {
    background: #e3f2fd;
    color: #1565c0;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.badge-available {
    background: #e8f0fe;
    color: #1a73e8;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.badge-full {
    background: #ffebee;
    color: #c62828;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.places-left {
    font-size: 12px;
    color: #1a73e8;
    margin-left: 6px;
}

/* 已报名班次汇总 */
.enrolled-summary {
    background: #fff;
    border-radius: 10px;
    padding: 16px;
    margin: 12px 0 16px;
    border: 1px solid #e8f5e9;
}

.enrolled-summary p {
    font-size: 13px;
    color: #666;
    margin-bottom: 10px;
}

.enrolled-shifts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.enrolled-shift-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: #e8f5e9;
    color: #2e7d32;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 500;
}

.btn-tag-cancel {
    background: none;
    border: none;
    color: #c62828;
    cursor: pointer;
    font-size: 16px;
    padding: 0 2px;
    line-height: 1;
    font-weight: bold;
    transition: color 0.2s;
}

.btn-tag-cancel:hover {
    color: #b71c1c;
}

/* 班次星期显示 */
.weekday {
    font-size: 12px;
    color: #999;
    margin-left: 4px;
}

/* ========== 班次摘要点（列表卡片） ========== */
.shift-summary {
    flex-wrap: wrap;
}

.shift-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 3px;
    cursor: default;
}

.dot-ok {
    background: #4caf50;
}

.dot-soon {
    background: #ff9800;
}

.dot-full {
    background: #e0e0e0;
}

/* ========== 报名要求提示 ========== */
.enroll-notice {
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-radius: 10px;
    padding: 12px 18px;
    margin-bottom: 16px;
    font-size: 14px;
    color: #e65100;
}

.enroll-notice strong {
    color: #bf360c;
}

/* ========== 报名要求标签（列表卡片） ========== */
.badge-requirement {
    background: #fff3e0;
    color: #e65100;
    border: 1px solid #ffcc80;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

/* ========== 二手捐助 - 状态标签 ========== */
.badge-available {
    background: #e8f5e9;
    color: #2e7d32;
}

.badge-reserved {
    background: #fff3e0;
    color: #e65100;
}

.badge-contacted {
    background: #e3f2fd;
    color: #1565c0;
}

.badge-completed {
    background: #f3e5f5;
    color: #7b1fa2;
}

.badge-removed {
    background: #f5f5f5;
    color: #9e9e9e;
}

/* ========== 二手捐助 - 成色标签 ========== */
.badge-condition-new {
    background: #c8e6c9;
    color: #2e7d32;
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 13px;
}

.badge-condition-like_new {
    background: #dcedc8;
    color: #558b2f;
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 13px;
}

.badge-condition-good {
    background: #fff9c4;
    color: #f9a825;
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 13px;
}

.badge-condition-fair {
    background: #ffe0b2;
    color: #e65100;
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 13px;
}

/* ========== 二手捐助 - 照片画廊 ========== */
.goods-image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 28px;
}

.goods-gallery-item {
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
    transition: transform 0.2s;
}

.goods-gallery-item:hover {
    transform: scale(1.03);
}

.goods-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ========== 二手捐助 - 操作面板 ========== */
.goods-action-panel {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin: 24px 0 8px;
}

/* ========== 二手捐助 - 联系方式面板 ========== */
.goods-contact-panel {
    background: #fff8e1;
    border: 2px solid #ffcc80;
    border-radius: 14px;
    padding: 24px;
    margin-top: 20px;
}

.goods-contact-panel h3 {
    color: #e65100;
    margin-bottom: 4px;
}

.contact-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.contact-card {
    padding: 16px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.8;
}

.contact-card strong {
    display: block;
    margin-bottom: 8px;
    font-size: 15px;
}

.contact-self {
    background: #e3f2fd;
    border: 1px solid #bbdefb;
}

.contact-other {
    background: #f3e5f5;
    border: 1px solid #e1bee7;
}

/* ========== 二手捐助 - 留言区 ========== */
.comment-list {
    margin-bottom: 20px;
}

.comment-item {
    padding: 14px 0;
    border-bottom: 1px solid #f0f0f0;
}

.comment-item:last-child {
    border-bottom: none;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
}

.comment-author {
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

.comment-guest {
    color: #888;
}

.comment-time {
    font-size: 12px;
    color: #bbb;
}

.comment-body {
    font-size: 14px;
    line-height: 1.7;
    color: #555;
}

.comment-form {
    margin-top: 16px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 12px;
}

/* ========== 二手捐助 - 积分面板 ========== */
.goods-points-bar {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    padding: 14px 28px;
    border-radius: 14px;
}

.points-value {
    font-size: 32px;
    font-weight: 800;
}

.points-label {
    font-size: 14px;
    opacity: 0.9;
}

/* ========== 文章系统 - 布局 ========== */
.articles-layout,
.articles-detail-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 28px;
}

.articles-main {
    min-width: 0;
}

.articles-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sidebar-block {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.sidebar-block h3 {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #1a73e8;
}

.sidebar-block ul {
    list-style: none;
}

.sidebar-block ul li {
    padding: 6px 0;
    border-bottom: 1px dashed #f0f0f0;
}

.sidebar-block ul li:last-child {
    border-bottom: none;
}

.sidebar-block ul li a {
    font-size: 13px;
    color: #555;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.2s;
}

.sidebar-block ul li a:hover {
    color: #1a73e8;
}

.sidebar-empty {
    color: #bbb;
    font-size: 13px;
}

.article-info-list li {
    font-size: 14px;
    color: #555;
    padding: 4px 0;
}

/* ========== 文章系统 - 工具栏 ========== */
.articles-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.articles-search {
    display: flex;
    flex: 1;
    gap: 8px;
}

.search-input {
    flex: 1;
    padding: 9px 14px;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.search-input:focus {
    border-color: #1a73e8;
    box-shadow: 0 0 0 3px rgba(26,115,232,0.1);
}

/* ========== 文章系统 - 分类标签 ========== */
.category-tabs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.category-tab {
    padding: 7px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    background: #f0f2f5;
    color: #666;
    transition: all 0.2s;
}

.category-tab:hover {
    background: #e0e4ea;
    color: #333;
}

.category-tab.active {
    background: #1a73e8;
    color: #fff;
}

/* ========== 文章系统 - 卡片 ========== */
.article-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.article-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    display: flex;
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.article-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.article-card-cover {
    width: 200px;
    min-height: 130px;
    flex-shrink: 0;
}

.article-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-card-body {
    padding: 18px 20px;
    flex: 1;
}

.article-card-header {
    margin-bottom: 10px;
}

.article-card-header h2 {
    font-size: 16px;
    font-weight: 600;
    margin-top: 6px;
}

.article-card-header h2 a {
    color: #1a1a2e;
}

.article-card-header h2 a:hover {
    color: #1a73e8;
}

.article-card-meta {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: #aaa;
}

/* ========== 文章系统 - 分类/状态贴片 ========== */
.badge-top {
    background: #ffcdd2;
    color: #c62828;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    margin-right: 4px;
}

.badge-cat-announcement {
    background: #fff3e0;
    color: #e65100;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.badge-cat-news {
    background: #e3f2fd;
    color: #1565c0;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.badge-cat-video {
    background: #fce4ec;
    color: #c62828;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.badge-cat-policy {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.badge-draft {
    background: #f5f5f5;
    color: #9e9e9e;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

/* ========== 文章系统 - 详情 ========== */
.article-detail-card {
    padding: 36px;
}

.article-detail-badges {
    margin-bottom: 16px;
}

.article-detail-title {
    font-size: 26px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 16px;
    line-height: 1.4;
}

.article-detail-meta {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: #999;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.article-admin-actions {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.article-detail-cover {
    margin-bottom: 24px;
    border-radius: 12px;
    overflow: hidden;
}

.article-detail-cover img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
}

.article-video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    margin-bottom: 24px;
    border-radius: 12px;
    overflow: hidden;
}

.article-video-wrapper iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
}

.article-content {
    font-size: 16px;
    line-height: 1.9;
    color: #444;
}

.article-content img {
    max-width: 100%;
    border-radius: 8px;
    margin: 12px 0;
}

.article-detail-footer {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
    font-size: 13px;
    color: #bbb;
}

/* ========== 文章系统 - 评论区 ========== */
.article-comment-section {
    margin-top: 20px;
    padding: 28px 36px;
}

.article-comment-section h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #1a73e8;
}

.no-comments {
    color: #bbb;
    font-size: 14px;
    text-align: center;
    padding: 20px 0;
}

.comment-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    font-size: 14px;
    resize: vertical;
    outline: none;
    transition: border-color 0.2s;
    font-family: inherit;
    margin-bottom: 10px;
}

.comment-form textarea:focus {
    border-color: #1a73e8;
    box-shadow: 0 0 0 3px rgba(26,115,232,0.1);
}

.comment-login-hint {
    text-align: center;
    padding: 16px;
    font-size: 14px;
    color: #999;
    background: #f8fafc;
    border-radius: 10px;
}

.comment-login-hint a {
    color: #1a73e8;
    font-weight: 500;
}

.comment-login-hint a:hover {
    text-decoration: underline;
}

/* ========== 文章系统 - 分页 ========== */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 24px;
}

.page-link {
    padding: 8px 18px;
    background: #fff;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    color: #1a73e8;
    transition: all 0.2s;
}

.page-link:hover {
    border-color: #1a73e8;
    background: #f0f4ff;
}

.page-current {
    font-size: 14px;
    color: #888;
}
