/* ===== 溪潮 v5.0 统一设计系统 ===== */
:root {
    --primary: #1a5276;
    --primary-light: #2980b9;
    --primary-bg: #eaf2f8;
    --accent: #e74c3c;
    --success: #27ae60;
    --warning: #f39c12;
    --info: #3498db;
    --gray-50: #f8f9fa;
    --gray-100: #ecf0f1;
    --gray-200: #bdc3c7;
    --gray-300: #95a5a6;
    --gray-500: #7f8c8d;
    --gray-700: #34495e;
    --gray-900: #2c3e50;
    --radius: 8px;
    --radius-lg: 12px;
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-lg: 0 4px 20px rgba(0,0,0,0.12);
    --nav-h: 56px;
    --transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
    background: var(--gray-50);
    color: var(--gray-900);
    line-height: 1.6;
    min-height: 100vh;
}

/* ===== 导航栏 ===== */
.navbar {
    background: linear-gradient(135deg, var(--primary) 0%, #1a6b5a 100%);
    color: white;
    display: flex;
    align-items: center;
    padding: 0 20px;
    height: var(--nav-h);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
.nav-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    margin-right: 32px;
    flex-shrink: 0;
}
.nav-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255,255,255,0.2);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: -0.5px;
    backdrop-filter: blur(4px);
}
.nav-title {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 1px;
}
.nav-links {
    display: flex;
    gap: 4px;
    flex: 1;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.nav-links::-webkit-scrollbar { display: none; }
.nav-links a {
    color: rgba(255,255,255,0.82);
    text-decoration: none;
    padding: 8px 14px;
    border-radius: var(--radius);
    font-size: 14px;
    transition: var(--transition);
    white-space: nowrap;
    flex-shrink: 0;
    position: relative;
}
.nav-links a:hover {
    background: rgba(255,255,255,0.12);
    color: white;
}
.nav-links a.active {
    background: rgba(255,255,255,0.22);
    color: white;
    font-weight: 500;
}
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}
.nav-toggle span {
    display: block;
    width: 22px;
    height: 2.5px;
    background: white;
    border-radius: 2px;
    transition: var(--transition);
    margin: 0 auto;
}
.nav-toggle.active span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}
.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}
.nav-user {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    flex-shrink: 0;
}
.user-info { opacity: 0.9; white-space: nowrap; }
.notif-icon {
    position: relative;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}
.notif-badge-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    transition: var(--transition);
}
.notif-icon:hover .notif-badge-icon {
    background: rgba(255,255,255,0.3);
}
.notif-badge-count {
    position: absolute;
    top: -4px;
    right: -6px;
    background: #e53935;
    color: #fff;
    font-size: 10px;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    text-align: center;
    line-height: 18px;
    padding: 0 4px;
    font-weight: 700;
    border: 1.5px solid var(--primary);
}
.badge {
    background: #e53935;
    color: #fff;
    font-size: 11px;
    padding: 1px 6px;
    border-radius: 10px;
    margin-left: 4px;
    vertical-align: top;
}

/* ===== 容器 ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 24px; }

/* ===== 登录页 ===== */
.login-page {
    min-height: calc(100vh - var(--nav-h) - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: linear-gradient(135deg, #e8f4f8 0%, #d4e8f0 50%, #c5dce5 100%);
    position: relative;
    overflow: hidden;
}
.login-page::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(26,82,118,0.04) 0%, transparent 60%);
    animation: pulse 15s ease-in-out infinite;
}
@keyframes pulse {
    0%,100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 1; }
}
.login-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(26,82,118,0.15);
    width: 100%;
    max-width: 420px;
    padding: 40px 32px;
    position: relative;
    z-index: 1;
}
.login-header { text-align: center; margin-bottom: 32px; }
.login-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary) 0%, #1a6b5a 100%);
    color: white;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 16px;
    box-shadow: 0 4px 16px rgba(26,82,118,0.3);
}
.login-title { font-size: 26px; font-weight: 700; color: var(--primary); margin-bottom: 6px; }
.login-subtitle { font-size: 14px; color: var(--gray-500); }
.login-form { display: flex; flex-direction: column; gap: 20px; }
.login-form .form-group { margin-bottom: 0; }
.login-form .form-group input {
    padding: 14px 16px;
    font-size: 15px;
    border: 2px solid var(--gray-200);
    border-radius: 10px;
    transition: var(--transition);
}
.login-form .form-group input:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 4px rgba(41,128,185,0.1);
}
.login-form .form-group label { font-size: 14px; color: var(--gray-700); margin-bottom: 8px; }
.login-form .btn-primary {
    padding: 14px 24px;
    font-size: 16px;
    border-radius: 10px;
    margin-top: 8px;
    background: linear-gradient(135deg, var(--primary) 0%, #1a6b5a 100%);
}
.login-form .btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-light) 0%, #22886a 100%);
    box-shadow: 0 6px 20px rgba(26,82,118,0.35);
}
.login-footer { text-align: center; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--gray-100); font-size: 12px; color: var(--gray-300); }

/* ===== 表单通用 ===== */
.form-group { margin-bottom: 16px; }
.form-group label {
    display: block; font-size: 13px; font-weight: 500;
    color: var(--gray-700); margin-bottom: 6px;
}
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 10px 12px;
    border: 1px solid var(--gray-200); border-radius: var(--radius);
    font-size: 14px; font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: white; -webkit-appearance: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none; border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(41,128,185,0.15);
}
.form-group textarea { resize: vertical; }
.required { color: var(--accent); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.full-width { grid-column: 1 / -1; }
.checkbox-group { display: flex; flex-wrap: wrap; gap: 10px; }
.checkbox-item { display: flex; align-items: center; gap: 4px; font-size: 13px; cursor: pointer; font-weight: 400; }
.checkbox-item input[type="checkbox"] { width: 16px; height: 16px; flex-shrink: 0; }

/* ===== 按钮 ===== */
.btn-primary {
    background: var(--primary); color: white; border: none;
    padding: 10px 24px; border-radius: var(--radius);
    font-size: 14px; cursor: pointer; font-family: inherit;
    font-weight: 500; transition: var(--transition);
    text-decoration: none; display: inline-block;
    box-shadow: 0 2px 5px rgba(26,82,118,0.2);
}
.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26,82,118,0.35);
}
.btn-primary:active { transform: translateY(0); }
.btn-secondary {
    background: var(--gray-100); color: var(--gray-700); border: none;
    padding: 10px 24px; border-radius: var(--radius);
    font-size: 14px; cursor: pointer; font-family: inherit;
    transition: var(--transition); text-decoration: none; display: inline-block;
}
.btn-secondary:hover { background: var(--gray-200); transform: translateY(-2px); }
.btn-block { display: block; width: 100%; text-align: center; }
.btn-large { padding: 12px 32px; font-size: 16px; }
.btn-sm { padding: 5px 12px; font-size: 12px; border-radius: 4px; transition: var(--transition); }
.btn-sm:hover { transform: scale(1.05); }
.btn-edit { background: #e6effb; color: #409eff; padding: 6px 14px; border: none; border-radius: var(--radius); font-size: 13px; cursor: pointer; font-family: inherit; transition: var(--transition); display: inline-flex; align-items: center; gap: 4px; }
.btn-edit:hover { background: #c6e2ff; transform: scale(1.05); }
.btn-link { color: var(--primary); text-decoration: none; font-size: 13px; margin-right: 8px; transition: var(--transition); }
.btn-link:hover { color: var(--primary-light); }

/* ===== 选题表单 ===== */
.submit-form, .topic-form { background: white; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.form-section { padding: 20px; border-bottom: 1px solid var(--gray-100); }
.form-section:last-of-type { border-bottom: none; }
.form-section h3, .section-title {
    font-size: 16px; font-weight: 700; color: var(--primary);
    margin-bottom: 16px; padding-bottom: 8px;
    border-bottom: 2px solid var(--primary-bg);
}
.section-hint { font-size: 13px; color: var(--gray-500); font-weight: 400; margin-left: 8px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.form-actions { padding: 20px; display: flex; gap: 16px; justify-content: center; background: var(--gray-50); border-radius: 0 0 var(--radius-lg) var(--radius-lg); }

/* ===== 统计卡片 ===== */
.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 24px; }
.stat-card {
    background: white; border-radius: var(--radius-lg);
    padding: 16px; box-shadow: var(--shadow);
    text-align: center; border-top: 3px solid var(--primary);
    transition: var(--transition);
}
.stat-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.12); }
.stat-card.stat-total, .stat-card.stat-green { border-top-color: var(--success); }
.stat-card.stat-pending-minister, .stat-card.stat-pending { border-top-color: var(--warning); }
.stat-card.stat-pending-leader, .stat-card.stat-orange { border-top-color: var(--warning); }
.stat-card.stat-approved { border-top-color: var(--success); }
.stat-card.stat-revising, .stat-card.stat-blue { border-top-color: var(--info); }
.stat-card.stat-completed { border-top-color: #1faa36; }
.stat-number, .stat-num { font-size: 32px; font-weight: 700; color: var(--primary); line-height: 1.2; }
.stat-card.stat-pending .stat-number, .stat-card.stat-pending-minister .stat-number, .stat-card.stat-pending-leader .stat-number { color: var(--warning); }
.stat-card.stat-approved .stat-number, .stat-card.stat-green .stat-num { color: var(--success); }
.stat-card.stat-revising .stat-number, .stat-card.stat-blue .stat-num { color: var(--info); }
.stat-label { font-size: 12px; color: var(--gray-500); margin-top: 4px; }

/* ===== 仪表盘 ===== */
.dashboard-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 24px; }
.dash-card {
    background: white; border-radius: var(--radius-lg);
    padding: 16px; box-shadow: var(--shadow);
    transition: var(--transition);
}
.dash-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.1); }
.dash-card h3 { font-size: 15px; margin-bottom: 14px; color: var(--gray-700); }
.bar-chart { display: flex; flex-direction: column; gap: 8px; }
.bar-row { display: flex; align-items: center; gap: 8px; }
.bar-label { width: 72px; font-size: 12px; text-align: right; color: var(--gray-700); flex-shrink: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-track { flex: 1; height: 18px; background: var(--gray-100); border-radius: 9px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 9px; transition: width 0.5s ease; min-width: 2px; }
.status-待审核 { background: var(--warning); }
.status-已通过 { background: var(--success); }
.status-修改后执行 { background: var(--info); }
.status-暂缓 { background: var(--gray-300); }
.status-不采纳 { background: var(--accent); }
.status-已认领 { background: #8e44ad; }
.status-待认领 { background: #16a085; }
.dept-bar { background: var(--primary-light); }
.bar-value { width: 28px; font-size: 13px; font-weight: 600; color: var(--gray-700); }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-item {
    background: var(--primary-bg); color: var(--primary);
    padding: 4px 12px; border-radius: 16px; font-size: 13px;
    transition: var(--transition);
}
.tag-item:hover { background: var(--primary); color: white; transform: scale(1.05); }
.recent-list { display: flex; flex-direction: column; gap: 8px; }
.recent-item {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 12px; background: var(--gray-50);
    border-radius: var(--radius); text-decoration: none;
    color: var(--gray-700); transition: var(--transition);
}
.recent-item:hover { background: var(--primary-bg); }
.recent-title { flex: 1; font-size: 13px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent-meta { font-size: 11px; color: var(--gray-500); flex-shrink: 0; }
.announcement-item-home {
    display: flex; align-items: center; gap: 6px;
    padding: 8px 12px; background: var(--gray-50);
    border-radius: var(--radius); margin-bottom: 6px;
}
.ann-title-home { flex: 1; font-size: 13px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ann-meta { font-size: 11px; color: var(--gray-500); flex-shrink: 0; }
.ann-pin { flex-shrink: 0; }

/* ===== 快捷操作 ===== */
.quick-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.action-btn {
    padding: 14px 28px; border-radius: var(--radius-lg);
    font-size: 14px; font-weight: 600; text-decoration: none;
    transition: var(--transition); box-shadow: var(--shadow);
}
.action-submit { background: var(--primary); color: white; }
.action-submit:hover { background: var(--primary-light); transform: translateY(-3px); box-shadow: 0 6px 20px rgba(26,82,118,0.35); }
.action-track { background: white; color: var(--primary); border: 2px solid var(--primary); }
.action-track:hover { background: var(--primary-bg); transform: translateY(-3px); box-shadow: 0 6px 20px rgba(26,82,118,0.2); }
.action-my { background: var(--success); color: white; }
.action-my:hover { background: #219a52; transform: translateY(-3px); box-shadow: 0 6px 20px rgba(39,174,96,0.35); }

/* ===== 状态徽章 ===== */
.status-badge {
    display: inline-block; padding: 2px 10px;
    border-radius: 12px; font-size: 12px; font-weight: 500;
    white-space: nowrap;
}
.status-badge.status-待审核, .status-badge.status-待部长审核, .status-badge.status-待团长审核 { background: #fef3e2; color: #b7791f; }
.status-badge.status-已通过 { background: #e6f7ed; color: #1a7f37; }
.status-badge.status-修改后执行 { background: #e3f2fd; color: #1565c0; }
.status-badge.status-暂缓 { background: #f0f0f0; color: #666; }
.status-badge.status-不采纳 { background: #fde8e8; color: #c53030; }
.status-badge.status-已认领 { background: #f3e8ff; color: #7c3aed; }
.status-badge.status-待认领 { background: #e6faf5; color: #0d9373; }
.status-badge.status-已完成 { background: #e6f7ed; color: #1a7f37; }
.urgency-badge { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 12px; font-weight: 600; background: #fde8e8; color: var(--accent); }

/* ===== 表格 ===== */
.topics-table-wrap {
    background: white; border-radius: var(--radius-lg);
    box-shadow: var(--shadow); overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.topics-table {
    width: 100%; border-collapse: collapse;
    font-size: 14px; min-width: 600px;
}
.topics-table th {
    background: var(--primary); color: white;
    padding: 10px 14px; text-align: left;
    font-weight: 500; white-space: nowrap;
}
.topics-table td { padding: 10px 14px; border-bottom: 1px solid var(--gray-100); }
.topics-table tbody tr { transition: all 0.15s ease; }
.topics-table tbody tr:hover td { background: var(--primary-bg); }
.topics-table a { color: var(--primary); text-decoration: none; font-weight: 500; }
.topics-table a:hover { text-decoration: underline; }
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th, .data-table td { padding: 10px 12px; text-align: center; border-bottom: 1px solid #e8e8e8; }
.data-table th { background: #f7f8fa; font-weight: 500; }
.data-table td:first-child, .data-table td:nth-child(2) { text-align: left; }

/* ===== 筛选栏 ===== */
.filter-bar {
    background: white; border-radius: var(--radius-lg);
    padding: 14px 16px; box-shadow: var(--shadow); margin-bottom: 16px;
}
.filter-form { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.filter-input, .filter-select {
    padding: 8px 12px; border: 1px solid var(--gray-200);
    border-radius: var(--radius); font-size: 14px; font-family: inherit;
    transition: var(--transition);
}
.filter-input:focus, .filter-select:focus { border-color: var(--primary-light); box-shadow: 0 0 0 3px rgba(41,128,185,0.15); }
.filter-input { width: 240px; }
.filter-select { width: 130px; }

/* ===== 详情页 ===== */
.detail-page { max-width: 1200px; margin: 0 auto; }
.back-link { color: var(--primary); text-decoration: none; font-size: 14px; transition: var(--transition); }
.back-link:hover { text-decoration: underline; }
.detail-header { margin: 16px 0; }
.detail-header h2 { font-size: 20px; color: var(--gray-900); margin-bottom: 8px; word-break: break-word; }
.detail-meta { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--gray-500); flex-wrap: wrap; }
.detail-grid { display: grid; grid-template-columns: 1fr 340px; gap: 20px; }
.detail-main { min-width: 0; }
.detail-side { display: flex; flex-direction: column; gap: 16px; }
.detail-section {
    background: white; border-radius: var(--radius-lg);
    padding: 16px; box-shadow: var(--shadow); margin-bottom: 16px;
}
.detail-section h3 { font-size: 15px; color: var(--primary); margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--gray-100); }
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.info-item { margin-bottom: 8px; word-break: break-word; }
.info-item label { display: block; font-size: 12px; color: var(--gray-500); margin-bottom: 2px; }
.info-item span, .info-item p { font-size: 14px; color: var(--gray-900); }
.info-block .info-item { margin-bottom: 12px; }
.info-block .info-item p { white-space: pre-wrap; line-height: 1.7; }
.section-review { border-left: 3px solid var(--success); }

/* ===== 分享/审批/反馈 ===== */
.share-bar { display: flex; gap: 8px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; }
.share-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 16px; border: 1px solid var(--gray-200);
    border-radius: var(--radius); font-size: 13px; cursor: pointer;
    background: white; color: var(--gray-700); transition: var(--transition);
    font-family: inherit;
}
.share-btn:hover { background: var(--primary-bg); border-color: var(--primary-light); color: var(--primary); transform: translateY(-2px); }
.share-btn-wechat { background: #07c160; color: white; border-color: #07c160; }
.share-btn-wechat:hover { background: #06ad56; }
.share-btn-copy { background: var(--primary); color: white; border-color: var(--primary); }
.share-btn-copy:hover { background: var(--primary-light); }
.share-tip { font-size: 12px; color: var(--success); display: none; }
.side-card { background: white; border-radius: var(--radius-lg); padding: 16px; box-shadow: var(--shadow); }
.side-card h3 { font-size: 15px; margin-bottom: 12px; color: var(--gray-700); }
.review-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.btn-approve { background: #e6f7ed; color: #1a7f37; }
.btn-approve:hover { background: #bfe5cc; transform: translateY(-1px); }
.btn-revise { background: #e3f2fd; color: #1565c0; }
.btn-revise:hover { background: #c5dff8; transform: translateY(-1px); }
.btn-hold { background: #f0f0f0; color: #666; }
.btn-hold:hover { background: #e0e0e0; transform: translateY(-1px); }
.btn-reject { background: #fde8e8; color: #c53030; }
.btn-reject:hover { background: #f9c7c7; transform: translateY(-1px); }
.btn-approve, .btn-revise, .btn-hold, .btn-reject {
    padding: 8px; border: none; border-radius: var(--radius);
    font-size: 13px; cursor: pointer; font-family: inherit;
    font-weight: 500; transition: var(--transition);
}
.feedback-list { max-height: 400px; overflow-y: auto; margin-bottom: 12px; }
.feedback-item { padding: 10px; border-bottom: 1px solid var(--gray-100); }
.feedback-item:last-child { border-bottom: none; }
.fb-header { display: flex; justify-content: space-between; margin-bottom: 4px; }
.fb-author { font-size: 13px; font-weight: 600; color: var(--primary); }
.fb-time { font-size: 11px; color: var(--gray-300); }
.fb-content { font-size: 13px; color: var(--gray-700); white-space: pre-wrap; }
.feedback-form { display: flex; gap: 8px; align-items: flex-end; }
.feedback-form textarea { flex: 1; padding: 8px; border: 1px solid var(--gray-200); border-radius: var(--radius); font-size: 13px; font-family: inherit; resize: none; }

/* ===== 空状态/提示 ===== */
.empty-state { text-align: center; padding: 60px 20px; color: var(--gray-500); }
.empty-state p { margin-bottom: 16px; }
.empty-hint { color: var(--gray-500); font-size: 13px; }

/* ===== Flash 消息 ===== */
.flash-messages { margin-bottom: 16px; }
.flash { padding: 10px 16px; border-radius: var(--radius); margin-bottom: 8px; font-size: 14px; }
.flash-success { background: #e6f7ed; color: #1a7f37; border: 1px solid #bfe5cc; }
.flash-error { background: #fde8e8; color: #c53030; border: 1px solid #f5b3b3; }

/* ===== 页脚 ===== */
.footer {
    text-align: center; padding: 20px;
    color: var(--gray-500); font-size: 12px;
    margin-top: 40px; border-top: 1px solid var(--gray-100);
    background: white;
}
.footer-links {
    display: flex; justify-content: center; align-items: center;
    gap: 16px; flex-wrap: wrap; margin-bottom: 8px;
}
.footer-links a {
    color: var(--gray-500); text-decoration: none;
    transition: var(--transition); font-size: 13px;
}
.footer-links a:hover { color: var(--primary); }
.footer-wechat { color: #07c160 !important; }
.footer-wechat:hover { color: #06ad56 !important; }
.footer-logout { color: var(--accent) !important; }
.footer-logout:hover { color: #c0392b !important; }
.footer-stats { font-size: 12px; color: var(--gray-300); }
.footer-stats strong { color: var(--gray-500); }
.footer-copy { font-size: 11px; color: var(--gray-300); margin-top: 4px; }

/* ===== 页面标题 ===== */
.page-title { font-size: 20px; color: var(--gray-900); margin-bottom: 20px; }

/* ===== 水印 ===== */
.watermark-layer {
    position: fixed; top: 0; left: 0;
    width: 100%; height: 100%; z-index: 9999;
    pointer-events: none; background-repeat: repeat; overflow: hidden;
}

/* ===== 协作/进展/交稿 ===== */
.member-list { display: flex; flex-wrap: wrap; gap: 8px; }
.member-tag { background: #e6effb; color: #409eff; padding: 4px 10px; border-radius: 14px; font-size: 13px; display: inline-flex; align-items: center; gap: 4px; }
.btn-remove { background: none; border: none; color: #f56c6c; cursor: pointer; font-size: 12px; padding: 0 2px; }
.btn-remove:hover { color: #e04040; }
.progress-timeline { border-left: 3px solid #409eff; padding-left: 16px; }
.progress-item { margin-bottom: 12px; position: relative; }
.progress-item::before { content: ''; position: absolute; left: -21px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: #409eff; }
.progress-time { font-size: 12px; color: #909399; }
.progress-author { font-size: 13px; font-weight: 500; color: #303133; }
.progress-content { font-size: 14px; color: #606266; margin-top: 2px; }
.section-deliver { border: 2px dashed #67c23a; padding: 16px; border-radius: 8px; background: #f9fff5; }
.section-complete { border-left: 4px solid #67c23a; background: #f0f9eb; padding: 16px; border-radius: 0 8px 8px 0; }
.inline-form { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.rank-cell { font-size: 16px; text-align: center !important; }
.num-highlight { color: #409eff; font-weight: 700; }
.num-highlight-green { color: #67c23a; font-weight: 700; }
.role-tag { padding: 2px 8px; border-radius: 10px; font-size: 12px; }
.role-reviewer { background: #e6effb; color: #409eff; }
.role-student { background: #e1f3d8; color: #67c23a; }

/* ===== 公告 ===== */
.ann-card { background: #fff; border: 1px solid #e8e8e8; border-radius: 10px; padding: 20px; margin-bottom: 16px; transition: var(--transition); }
.ann-card:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,0.1); }
.ann-pinned { border-left: 4px solid #e6a23c; background: #fffbf0; }
.pin-badge { background: #fdf6ec; color: #e6a23c; font-size: 12px; padding: 2px 8px; border-radius: 4px; margin-right: 8px; }
.ann-title { display: inline; font-size: 18px; font-weight: 600; color: #303133; margin: 0; }
.ann-meta { font-size: 13px; color: #909399; margin-top: 4px; display: flex; gap: 12px; flex-wrap: wrap; }
.ann-content { margin-top: 12px; font-size: 15px; line-height: 1.7; color: #606266; }
.ann-actions { margin-top: 12px; display: flex; gap: 8px; }
.btn-edit-ann { background: #e6effb; color: #409eff; border: none; padding: 4px 12px; border-radius: 4px; font-size: 13px; cursor: pointer; }
.btn-del-ann { background: #fde2e2; color: #f56c6c; border: none; padding: 4px 12px; border-radius: 4px; font-size: 13px; cursor: pointer; }

/* ===== 认领 ===== */
.claim-item { display: flex; justify-content: space-between; align-items: flex-start; padding: 16px; border: 1px solid #e8e8e8; border-radius: 8px; margin-bottom: 12px; transition: var(--transition); }
.claim-item:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,0.1); }
.claim-item-mine { border-left: 4px solid #67c23a; background: #f9fff5; }
.claim-main { flex: 1; min-width: 0; }
.claim-header { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; flex-wrap: wrap; }
.claim-title { font-size: 16px; font-weight: 600; color: #303133; }
.claim-link { text-decoration: none; }
.claim-link:hover { color: #409eff; }
.claim-meta { display: flex; flex-wrap: wrap; gap: 10px; font-size: 13px; color: #909399; }
.claim-detail { font-size: 14px; color: #606266; margin-top: 4px; }
.claim-detail label { color: #909399; font-weight: 500; }
.claim-action { margin-left: 12px; display: flex; align-items: center; flex-shrink: 0; }
.btn-claim { background: #409eff; color: #fff; border: none; padding: 8px 24px; border-radius: 6px; font-size: 15px; font-weight: 500; cursor: pointer; transition: var(--transition); }
.btn-claim:hover { background: #3a8ee6; transform: scale(1.05); box-shadow: 0 4px 12px rgba(64,158,255,0.4); }
.btn-cancel-claim { background: #fde2e2; color: #f56c6c; border: none; padding: 6px 16px; border-radius: 6px; font-size: 13px; cursor: pointer; }
.btn-cancel-claim:hover { background: #f9c7c7; }

/* ===== 分页 ===== */
.pagination { display: flex; justify-content: center; align-items: center; gap: 8px; margin: 24px 0; flex-wrap: wrap; }
.pagination a, .pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; padding: 0 12px; border-radius: var(--radius); font-size: 14px; text-decoration: none; transition: var(--transition); }
.pagination a { background: white; color: var(--gray-700); border: 1px solid var(--gray-200); }
.pagination a:hover { background: var(--primary-bg); border-color: var(--primary-light); color: var(--primary); transform: translateY(-1px); }
.pagination a.active, .pagination .current { background: var(--primary); color: white; border-color: var(--primary); }
.pagination .disabled { color: var(--gray-300); cursor: not-allowed; }
.pagination .page-info { color: var(--gray-500); font-size: 13px; margin: 0 8px; }

/* ===== 导出按钮 ===== */
.btn-export {
    background: linear-gradient(135deg, #67c23a 0%, #5daf34 100%);
    color: white; padding: 8px 16px; border: none;
    border-radius: var(--radius); font-size: 13px; cursor: pointer;
    font-family: inherit; transition: var(--transition);
    display: inline-flex; align-items: center; gap: 6px;
    box-shadow: 0 2px 8px rgba(103,194,58,0.3);
}
.btn-export:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(103,194,58,0.4); }

/* ===== 板块标签页 ===== */
.section-tabs { display: flex; gap: 8px; margin-bottom: 24px; padding: 0; flex-wrap: wrap; }
.section-tabs a {
    padding: 8px 20px; font-size: 14px; color: #606266;
    text-decoration: none; background: #f5f7fa;
    border: 1px solid #dcdfe6; border-radius: 20px;
    transition: var(--transition); white-space: nowrap; cursor: pointer;
}
.section-tabs a:hover { color: #409eff; border-color: #c6e2ff; background: #ecf5ff; }
.section-tabs a.tab-active {
    color: #fff; font-weight: 600;
    background: linear-gradient(135deg, #409eff, #1a5276);
    border-color: #409eff; box-shadow: 0 2px 8px rgba(64,158,255,0.3);
}

/* ===== 平台胶囊 ===== */
.platform-group { display: flex; flex-wrap: wrap; gap: 10px; }
.platform-pill {
    padding: 8px 18px; border: 2px solid #dcdfe6;
    border-radius: 20px; font-size: 14px; color: #606266;
    cursor: pointer; user-select: none; transition: var(--transition);
    background: #fff;
}
.platform-pill:hover { border-color: var(--primary); color: var(--primary); }
.platform-pill.active { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 500; }

/* ===== 滚动条 ===== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--gray-100); border-radius: 3px; }
::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gray-500); }

/* ===== 参与者选择 ===== */
.participant-picker { display: flex; flex-direction: column; gap: 8px; }
.participant-search-wrap { position: relative; }
.participant-dropdown {
    position: absolute; top: 100%; left: 0; right: 0;
    background: white; border: 1px solid var(--gray-200);
    border-radius: var(--radius); box-shadow: var(--shadow-lg);
    max-height: 200px; overflow-y: auto; z-index: 10;
}
.participant-dropdown .dropdown-item { padding: 8px 12px; cursor: pointer; font-size: 13px; }
.participant-dropdown .dropdown-item:hover { background: var(--primary-bg); }
.selected-participants { display: flex; flex-wrap: wrap; gap: 6px; }
.selected-participants .participant-tag {
    background: var(--primary-bg); color: var(--primary);
    padding: 4px 10px; border-radius: 14px; font-size: 13px;
    display: inline-flex; align-items: center; gap: 4px;
}
.participant-tag .remove { cursor: pointer; font-weight: 700; }

/* ===== 标签输入 ===== */
.tag-input-wrapper { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 6px 8px; border: 1px solid var(--gray-200); border-radius: var(--radius); min-height: 40px; }
.tag-input-wrapper input { border: none; outline: none; flex: 1; min-width: 120px; padding: 4px; font-size: 13px; }
.selected-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.selected-tags .tag-chip { background: var(--primary-bg); color: var(--primary); padding: 2px 10px; border-radius: 12px; font-size: 12px; display: inline-flex; align-items: center; gap: 4px; }
.tag-chip .remove { cursor: pointer; }
.tag-dropdown { position: absolute; top: 100%; left: 0; right: 0; background: white; border: 1px solid var(--gray-200); border-radius: var(--radius); box-shadow: var(--shadow-lg); max-height: 200px; overflow-y: auto; z-index: 10; }
.tag-dropdown .dropdown-item { padding: 8px 12px; cursor: pointer; font-size: 13px; }
.tag-dropdown .dropdown-item:hover { background: var(--primary-bg); }
.topic-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.topic-tags .tag-chip { background: var(--primary-bg); color: var(--primary); padding: 2px 10px; border-radius: 12px; font-size: 12px; }

/* ===== 选题卡片（首页/待认领等） ===== */
.topic-card-mini {
    display: block; padding: 12px 16px; background: white;
    border-radius: var(--radius); border: 1px solid var(--gray-100);
    text-decoration: none; color: var(--gray-700);
    transition: var(--transition); margin-bottom: 8px;
}
.topic-card-mini:hover { border-color: var(--primary-light); box-shadow: 0 2px 8px rgba(0,0,0,0.06); transform: translateX(4px); }
.topic-mini-title { font-size: 14px; font-weight: 500; margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topic-mini-meta { display: flex; gap: 8px; font-size: 12px; color: var(--gray-500); }
.welcome-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.welcome-title { font-size: 22px; font-weight: 700; color: var(--gray-900); }
.welcome-date { font-size: 14px; color: var(--gray-500); margin-top: 4px; }
.btn-submit { background: var(--primary); color: white; padding: 10px 24px; border-radius: var(--radius); font-size: 14px; text-decoration: none; transition: var(--transition); }
.btn-submit:hover { background: var(--primary-light); transform: translateY(-2px); }
.pending-banner {
    background: linear-gradient(135deg, #fef3e2 0%, #fde8e8 100%);
    border: 1px solid #f5dab1; border-radius: var(--radius-lg);
    padding: 12px 16px; margin-bottom: 20px; cursor: pointer;
    transition: var(--transition);
}
.pending-banner:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.banner-inner { display: flex; align-items: center; gap: 8px; }
.banner-icon { font-size: 20px; }
.banner-text { flex: 1; font-size: 14px; color: var(--gray-700); }
.banner-arrow { color: var(--gray-500); }
.section-block { margin-bottom: 24px; }
.section-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.section-title-inline { font-size: 16px; font-weight: 700; color: var(--gray-900); }
.section-link { font-size: 13px; color: var(--primary); text-decoration: none; transition: var(--transition); }
.section-link:hover { color: var(--primary-light); }
.recent-topics { display: flex; flex-direction: column; gap: 0; }
.top-reporters { display: flex; gap: 12px; flex-wrap: wrap; }
.reporter-card {
    display: flex; align-items: center; gap: 10px;
    background: white; padding: 12px 16px; border-radius: var(--radius-lg);
    box-shadow: var(--shadow); flex: 1; min-width: 180px;
    transition: var(--transition);
}
.reporter-card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.reporter-rank {
    width: 32px; height: 32px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; font-weight: 700; color: white; flex-shrink: 0;
}
.reporter-rank-1 { background: linear-gradient(135deg, #ffd700, #ffb300); }
.reporter-rank-2 { background: linear-gradient(135deg, #c0c0c0, #909090); }
.reporter-rank-3 { background: linear-gradient(135deg, #cd7f32, #a05a2c); }
.reporter-info { flex: 1; min-width: 0; }
.reporter-name { font-size: 14px; font-weight: 600; color: var(--gray-900); }
.reporter-dept { font-size: 12px; color: var(--gray-500); }
.reporter-count { font-size: 18px; font-weight: 700; color: var(--primary); }
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 24px; }
.stat-icon { font-size: 28px; margin-bottom: 4px; }
.stat-body { text-align: center; }

/* ===== 响应式 ===== */
@media (max-width: 768px) {
    .navbar { flex-wrap: wrap; height: auto; padding: 10px 12px; gap: 8px; }
    .nav-brand { margin-right: auto; }
    .nav-toggle { display: flex; order: 2; }
    .nav-links {
        order: 3; width: 100%; flex-direction: column;
        gap: 2px; max-height: 0; overflow: hidden;
        transition: max-height 0.3s ease; padding: 0;
    }
    .nav-links.nav-open { max-height: 500px; padding: 8px 0; }
    .nav-links a {
        width: 100%; padding: 12px 16px; border-radius: var(--radius);
        font-size: 15px; background: rgba(255,255,255,0.06);
    }
    .nav-links a:hover, .nav-links a.active { background: rgba(255,255,255,0.2); }
    .nav-user { gap: 8px; font-size: 12px; order: 1; }
    .user-info { display: none; }

    .container { padding: 12px; }
    .login-card { padding: 24px 16px; }

    .stat-cards, .stats-row { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .stat-card { padding: 12px; }
    .stat-number, .stat-num { font-size: 24px; }
    .stat-label { font-size: 11px; }

    .dashboard-grid { grid-template-columns: 1fr; gap: 12px; }
    .dash-card { padding: 14px; }
    .dash-card h3 { font-size: 14px; }

    .form-grid { grid-template-columns: 1fr; }
    .form-row-3 { grid-template-columns: 1fr; gap: 0; }
    .form-section { padding: 14px; }
    .form-actions { padding: 14px; flex-direction: column; }
    .form-actions .btn-primary, .form-actions .btn-secondary { width: 100%; text-align: center; }

    .filter-form { flex-direction: column; align-items: stretch; gap: 8px; }
    .filter-input, .filter-select { width: 100%; }

    .detail-grid { grid-template-columns: 1fr; gap: 12px; }
    .detail-header h2 { font-size: 18px; }
    .detail-meta { font-size: 12px; gap: 6px; }
    .detail-section { padding: 14px; margin-bottom: 12px; }
    .info-grid { grid-template-columns: 1fr; gap: 8px; }

    .topics-table-wrap { border-radius: var(--radius); }
    .topics-table { min-width: unset; font-size: 13px; }
    .topics-table th, .topics-table td { padding: 8px 10px; }
    .data-table { font-size: 13px; }
    .data-table th, .data-table td { padding: 8px 8px; }

    .quick-actions { flex-direction: column; }
    .action-btn { text-align: center; padding: 12px; font-size: 14px; }

    .share-bar { gap: 6px; }
    .share-btn { padding: 6px 12px; font-size: 12px; }

    .claim-item { flex-direction: column; gap: 10px; padding: 12px; }
    .claim-action { margin-left: 0; width: 100%; }
    .claim-action .btn-claim { width: 100%; text-align: center; }
    .claim-title { font-size: 15px; }

    .ann-card { padding: 14px; }
    .ann-title { font-size: 16px; }

    .page-title { font-size: 18px; margin-bottom: 16px; }
    .feedback-form { flex-direction: column; }
    .feedback-form textarea { width: 100%; }

    .form-row { flex-direction: column; gap: 8px; }
    .form-row .form-group { width: 100%; }
    .form-row .btn-primary { width: 100%; text-align: center; }

    .progress-timeline { padding-left: 12px; }
    .section-deliver { padding: 12px; }
    .review-actions { grid-template-columns: 1fr 1fr; gap: 6px; }

    .section-tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; flex-wrap: nowrap; gap: 6px; padding-bottom: 4px; }
    .section-tabs a { padding: 6px 14px; font-size: 13px; flex-shrink: 0; }

    .welcome-bar { flex-direction: column; align-items: flex-start; gap: 12px; }
    .welcome-title { font-size: 18px; }
    .btn-submit { width: 100%; text-align: center; }
    .stats-row { grid-template-columns: repeat(2, 1fr); }
    .top-reporters { flex-direction: column; }
    .reporter-card { min-width: unset; }

    .footer-links { gap: 10px; }
    .footer-links a { font-size: 12px; }
    .btn-export { width: 100%; justify-content: center; margin-top: 12px; }
}

@media (max-width: 380px) {
    .stat-cards, .stats-row { grid-template-columns: 1fr 1fr; }
    .stat-number, .stat-num { font-size: 20px; }
    .login-card { padding: 20px 12px; }
    .nav-links a { padding: 10px 14px; font-size: 14px; }
}
/* ===== 移动端表格卡片化 ===== */
@media (max-width: 768px) {
    .topics-table-wrap { overflow: visible; }
    .topics-table, .data-table {
        display: block;
        min-width: unset;
    }
    .topics-table thead, .data-table thead { display: none; }
    .topics-table tbody, .data-table tbody { display: block; }
    .topics-table tr, .data-table tr {
        display: block;
        border: 1px solid var(--gray-100);
        border-radius: var(--radius-lg);
        margin-bottom: 12px;
        padding: 12px 16px;
        background: white;
        box-shadow: var(--shadow);
    }
    .topics-table td, .data-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: right;
        border: none;
        padding: 6px 0;
        font-size: 13px;
    }
    .topics-table td::before, .data-table td::before {
        content: attr(data-label);
        font-weight: 500;
        color: var(--gray-500);
        font-size: 12px;
        text-align: left;
    }
    .topics-table td a, .data-table td a { font-weight: 500; }
    .topics-table tbody tr:hover td, .data-table tbody tr:hover td { background: transparent; }
    .topics-table tbody tr:hover { transform: none; box-shadow: 0 4px 16px rgba(0,0,0,0.1); }
}

/* nav search */
.nav-search input { color: #fff; }
.nav-search input::placeholder { color: rgba(255,255,255,0.6); }
@media (max-width: 768px) { .nav-search { display: none !important; } }
