/* Q&A 问答墙 - 全新设计 */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
    background: linear-gradient(160deg, #FFF8F0 0%, #FFF0F5 40%, #F0F8FF 100%);
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
    padding-bottom: 40px;
}

.container {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ===== 头部 ===== */
.site-header {
    text-align: center;
    padding: 48px 20px 28px;
}
.site-header h1 {
    font-size: 2.4rem;
    color: #E85D4E;
    margin-bottom: 10px;
    font-weight: 800;
    letter-spacing: -1px;
}
.site-header .subtitle {
    font-size: 1.05rem;
    color: #999;
    font-weight: 400;
}

/* ===== 导航 ===== */
.nav-bar {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}
.nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    cursor: pointer;
}
.nav-btn-primary {
    background: linear-gradient(135deg, #FF6B6B, #FF8E8E);
    color: #fff;
    box-shadow: 0 4px 16px rgba(255, 107, 107, 0.35);
}
.nav-btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 24px rgba(255, 107, 107, 0.45);
}
.nav-btn-secondary {
    background: #fff;
    color: #FF6B6B;
    border-color: #FFD1D1;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.nav-btn-secondary:hover {
    background: #FFF0F0;
    border-color: #FF6B6B;
    transform: translateY(-2px);
}

/* ===== 卡片通用 ===== */
.card {
    background: #fff;
    border-radius: 24px;
    padding: 28px;
    margin-bottom: 20px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

/* ===== 问答墙卡片 ===== */
.qa-card {
    background: #fff;
    border-radius: 24px;
    padding: 28px;
    margin-bottom: 20px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    border-left: 5px solid #FFD93D;
    transition: all 0.3s ease;
}
.qa-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}
.qa-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}
.gender-tag {
    background: linear-gradient(135deg, #E8F5E9, #C8E6C9);
    color: #2E7D32;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
}
.date-tag {
    color: #bbb;
    font-size: 0.9rem;
}
.qa-content { margin-bottom: 14px; }
.qa-label {
    font-weight: 800;
    color: #E85D4E;
    font-size: 1.15rem;
    margin-bottom: 6px;
}
.qa-text {
    color: #444;
    font-size: 1rem;
    line-height: 1.7;
    word-break: break-word;
}
.qa-text.collapsed { cursor: pointer; }
.expand-btn {
    display: inline-block;
    margin-top: 6px;
    color: #FF6B6B;
    font-size: 0.9rem;
    cursor: pointer;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 10px;
    background: #FFF0F0;
    transition: all 0.2s;
}
.expand-btn:hover {
    background: #FF6B6B;
    color: #fff;
}

/* ===== 空状态 ===== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}
.empty-state .emoji {
    font-size: 4rem;
    margin-bottom: 16px;
    display: block;
}
.empty-state p {
    font-size: 1.1rem;
    color: #aaa;
}

/* ===== 提问表单 ===== */
.ask-card {
    background: linear-gradient(180deg, #fff 0%, #FFFBF5 100%);
    border: 2px solid #FFE4D6;
}
.form-group {
    margin-bottom: 26px;
}
.form-label {
    display: block;
    font-weight: 700;
    color: #555;
    margin-bottom: 10px;
    font-size: 0.95rem;
}
.form-label .required {
    color: #FF6B6B;
    margin-left: 3px;
}
.form-hint {
    font-size: 0.85rem;
    color: #aaa;
    margin-top: 6px;
}
.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #F0E6E0;
    border-radius: 16px;
    font-size: 1rem;
    font-family: inherit;
    background: #FFFCFA;
    transition: all 0.3s ease;
    color: #333;
    outline: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
    border-color: #FF6B6B;
    box-shadow: 0 0 0 4px rgba(255, 107, 107, 0.12);
    background: #fff;
}
.form-textarea {
    min-height: 140px;
    resize: vertical;
}
.form-select {
    cursor: pointer;
    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='%23aaa' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    padding-right: 44px;
}

/* 单选组 */
.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.radio-option { position: relative; }
.radio-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0; height: 0;
}
.radio-option label {
    display: inline-block;
    padding: 10px 18px;
    border: 2px solid #F0E6E0;
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.25s ease;
    background: #FFFCFA;
    color: #666;
}
.radio-option input[type="radio"]:checked + label {
    border-color: #FF6B6B;
    background: linear-gradient(135deg, #FFF0F0, #FFE4E4);
    color: #E85D4E;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(255,107,107,0.15);
}
.radio-option label:hover {
    border-color: #FFB3B3;
}

/* ===== 提交按钮 ===== */
.submit-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #FF6B6B, #FF8E8E);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 1.15rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(255, 107, 107, 0.35);
    letter-spacing: 1px;
}
.submit-btn:hover:not(:disabled) {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 8px 28px rgba(255, 107, 107, 0.45);
}
.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ===== 回执票据设计 ===== */
.receipt-envelope {
    max-width: 480px;
    margin: 30px auto;
    position: relative;
}
.receipt-envelope::before {
    content: '';
    position: absolute;
    top: -8px; left: 20px; right: 20px;
    height: 16px;
    background: linear-gradient(135deg, #FFD93D, #FFC107);
    border-radius: 8px 8px 0 0;
    opacity: 0.6;
}
.receipt-ticket {
    background: linear-gradient(180deg, #FFFBF0 0%, #FFF8E7 100%);
    border-radius: 20px;
    padding: 32px 28px;
    border: 2px dashed #FFD93D;
    position: relative;
    box-shadow: 0 8px 32px rgba(255, 193, 7, 0.15);
}
.receipt-ticket::before,
.receipt-ticket::after {
    content: '';
    position: absolute;
    width: 24px; height: 24px;
    background: linear-gradient(160deg, #FFF8F0 0%, #FFF0F5 40%, #F0F8FF 100%);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
}
.receipt-ticket::before { left: -12px; }
.receipt-ticket::after { right: -12px; }
.receipt-ticket h3 {
    text-align: center;
    color: #E85D4E;
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: 800;
}
.receipt-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px dashed rgba(0,0,0,0.08);
    font-size: 0.95rem;
}
.receipt-row:last-child { border-bottom: none; }
.receipt-row .receipt-label {
    color: #999;
    font-weight: 500;
}
.receipt-row .receipt-value {
    color: #333;
    font-weight: 700;
    text-align: right;
    word-break: break-all;
    max-width: 55%;
}
.receipt-id {
    font-family: "SF Mono", "Courier New", monospace;
    background: #fff;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #E85D4E;
    border: 1px solid #FFE4D6;
}
.receipt-stamp {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 70px;
    height: 70px;
    border: 3px solid #FF6B6B;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FF6B6B;
    font-size: 0.75rem;
    font-weight: 800;
    transform: rotate(-15deg);
    opacity: 0.4;
    pointer-events: none;
}

/* ===== 成功页面 ===== */
.success-box {
    text-align: center;
    padding: 40px 16px;
}
.success-icon {
    font-size: 5rem;
    margin-bottom: 16px;
    display: block;
    animation: bounceIn 0.6s ease;
}
.success-box h2 {
    color: #E85D4E;
    font-size: 1.9rem;
    margin-bottom: 8px;
    font-weight: 800;
}
.success-sub {
    color: #aaa;
    font-size: 1.05rem;
    margin-bottom: 24px;
}
.warning-box {
    background: linear-gradient(135deg, #FFF3E0, #FFE0B2);
    border-radius: 16px;
    padding: 16px 20px;
    margin: 20px auto;
    max-width: 480px;
    border-left: 4px solid #FF9800;
}
.warning-box p {
    color: #E65100;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 6px;
}
.warning-box small {
    color: #F57C00;
    font-size: 0.85rem;
}

/* ===== 查询页面 ===== */
.search-box {
    max-width: 520px;
    margin: 0 auto 28px;
    display: flex;
    gap: 12px;
}
.search-box .form-input {
    flex: 1;
}
.search-box .submit-btn {
    width: auto;
    padding: 14px 36px;
    white-space: nowrap;
}

.status-badge {
    display: inline-block;
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
}
.status-pending {
    background: linear-gradient(135deg, #FFF3E0, #FFE0B2);
    color: #E65100;
}
.status-answered {
    background: linear-gradient(135deg, #E8F5E9, #C8E6C9);
    color: #2E7D32;
}
.status-deleted {
    background: linear-gradient(135deg, #FFEBEE, #FFCDD2);
    color: #C62828;
}

/* 查询结果 */
.result-card {
    background: linear-gradient(180deg, #fff 0%, #FAFAFA 100%);
    border-radius: 24px;
    padding: 28px;
    margin-bottom: 20px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.04);
}
.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}
.result-header h3 {
    color: #555;
    font-size: 1.15rem;
    font-weight: 700;
}
.result-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid #f5f5f5;
    font-size: 0.95rem;
    gap: 16px;
}
.result-row:last-child { border-bottom: none; }
.result-row .result-label {
    color: #999;
    font-weight: 500;
    white-space: nowrap;
    min-width: 80px;
}
.result-row .result-value {
    color: #333;
    font-weight: 600;
    text-align: right;
    word-break: break-word;
    flex: 1;
}
.result-answer {
    background: linear-gradient(135deg, #E8F5E9, #C8E6C9);
    border-radius: 16px;
    padding: 20px;
    margin-top: 16px;
}
.result-answer .answer-label {
    color: #2E7D32;
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 1rem;
}
.result-answer .answer-text {
    color: #1B5E20;
    line-height: 1.7;
    font-size: 1rem;
}

.waiting-box {
    text-align: center;
    margin-top: 24px;
    padding: 28px;
    background: linear-gradient(135deg, #FFF9E6, #FFF3E0);
    border-radius: 20px;
}
.waiting-box .waiting-emoji {
    font-size: 3rem;
    margin-bottom: 10px;
    display: block;
}
.waiting-box p {
    color: #E65100;
    font-weight: 700;
    font-size: 1.1rem;
}

/* ===== 提示框 ===== */
.alert {
    padding: 16px 22px;
    border-radius: 18px;
    margin-bottom: 24px;
    font-size: 0.95rem;
    font-weight: 600;
}
.alert-error {
    background: linear-gradient(135deg, #FFEBEE, #FFCDD2);
    color: #C62828;
    border: 1px solid #EF9A9A;
}
.alert-success {
    background: linear-gradient(135deg, #E8F5E9, #C8E6C9);
    color: #2E7D32;
    border: 1px solid #A5D6A7;
}
.alert-info {
    background: linear-gradient(135deg, #E3F2FD, #BBDEFB);
    color: #1565C0;
    border: 1px solid #90CAF9;
}

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

@keyframes shrinkOut {
    0% { transform: scale(1); opacity: 1; }
    60% { transform: scale(0.96); opacity: 0.6; }
    100% { transform: scale(0.92); opacity: 0; }
}
.shrink-out { animation: shrinkOut 0.7s ease forwards; }

@keyframes bounceIn {
    0% { transform: scale(0.3); opacity: 0; }
    50% { transform: scale(1.15); }
    70% { transform: scale(0.95); }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes floatUp {
    0% { transform: translateY(0) rotate(0deg); opacity: 1; }
    100% { transform: translateY(-80px) rotate(15deg); opacity: 0; }
}

@keyframes popIn {
    0% { transform: scale(0.5); opacity: 0; }
    60% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}
.pop-in { animation: popIn 0.5s ease forwards; }

/* 提交动画 */
.submit-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(8px);
    z-index: 999;
    display: none;
    align-items: center;
    justify-content: center;
}
.submit-overlay.active { display: flex; }
.submit-anim-box {
    text-align: center;
    animation: popIn 0.4s ease;
}
.submit-anim-box .anim-paper {
    font-size: 5rem;
    margin-bottom: 16px;
    display: inline-block;
}
.submit-anim-box .anim-paper.fly {
    animation: floatUp 1.2s ease forwards;
}
.submit-anim-box .anim-text {
    font-size: 1.4rem;
    color: #E85D4E;
    font-weight: 800;
}
.submit-anim-box .anim-sub {
    font-size: 1rem;
    color: #aaa;
    margin-top: 6px;
}

/* ===== 管理后台 ===== */
.admin-header {
    background: #fff;
    border-radius: 24px;
    padding: 24px 28px;
    margin-bottom: 24px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.04);
}
.admin-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}
.admin-header-top h1 {
    font-size: 1.5rem;
    color: #E85D4E;
    font-weight: 800;
}
.admin-header-top .admin-subtitle {
    color: #bbb;
    font-size: 0.9rem;
}
.admin-nav {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    border-top: 1px solid #f5f5f5;
    padding-top: 16px;
}
.admin-nav a {
    padding: 8px 16px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 0.9rem;
    color: #888;
    background: #f8f8f8;
    transition: all 0.25s ease;
    font-weight: 600;
}
.admin-nav a:hover, .admin-nav a.active {
    background: linear-gradient(135deg, #FF6B6B, #FF8E8E);
    color: #fff;
    box-shadow: 0 2px 8px rgba(255,107,107,0.25);
}

.admin-card {
    background: #fff;
    border-radius: 24px;
    padding: 28px;
    margin-bottom: 20px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.04);
}
.admin-card h2 {
    font-size: 1.15rem;
    color: #555;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 2px solid #f5f5f5;
    font-weight: 700;
}

/* 统计网格 */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}
.stat-item {
    background: linear-gradient(135deg, #FFF9E6, #FFF0F5);
    border-radius: 20px;
    padding: 24px 16px;
    text-align: center;
    border: 1px solid rgba(0,0,0,0.04);
    transition: transform 0.3s ease;
}
.stat-item:hover { transform: translateY(-3px); }
.stat-item .stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: #E85D4E;
    line-height: 1;
}
.stat-item .stat-label {
    font-size: 0.85rem;
    color: #aaa;
    margin-top: 8px;
    font-weight: 600;
}

/* 数据容量条 */
.size-bar-wrap {
    margin-top: 12px;
    background: #f5f5f5;
    border-radius: 12px;
    height: 20px;
    overflow: hidden;
}
.size-bar {
    height: 100%;
    border-radius: 12px;
    background: linear-gradient(90deg, #FF6B6B, #FFD93D);
    transition: width 0.5s ease;
}
.size-text {
    font-size: 1.3rem;
    color: #E85D4E;
    font-weight: 800;
    margin-bottom: 4px;
}

/* 后台问题列表 */
.question-list { margin-top: 8px; }
.question-item {
    background: linear-gradient(180deg, #fff 0%, #FAFAFA 100%);
    border: 2px solid #f0f0f0;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 14px;
    transition: all 0.3s ease;
    cursor: pointer;
}
.question-item:hover {
    border-color: #FFD1D1;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.question-item.active {
    border-color: #FF6B6B;
    box-shadow: 0 4px 20px rgba(255,107,107,0.1);
}
.question-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.question-summary .q-id {
    font-family: "SF Mono", "Courier New", monospace;
    font-size: 0.8rem;
    color: #bbb;
    background: #f5f5f5;
    padding: 4px 10px;
    border-radius: 8px;
    font-weight: 600;
}
.question-summary .q-preview {
    flex: 1;
    color: #555;
    font-size: 0.95rem;
    margin: 0 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
}
.question-summary .q-status {
    font-size: 0.8rem;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 700;
}

.question-detail {
    display: none;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px dashed #f0f0f0;
    animation: fadeIn 0.3s ease;
}
.question-detail.open { display: block; }

.detail-grid {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 10px 16px;
    font-size: 0.9rem;
    margin-bottom: 20px;
}
.detail-grid .detail-label {
    color: #aaa;
    font-weight: 600;
}
.detail-grid .detail-value {
    color: #333;
    word-break: break-word;
}
.detail-grid .detail-value.wall-yes { color: #2E7D32; font-weight: 700; }
.detail-grid .detail-value.wall-no { color: #E65100; font-weight: 700; }

.detail-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

/* 按钮 */
.btn {
    padding: 10px 20px;
    border-radius: 14px;
    border: none;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}
.btn-primary {
    background: linear-gradient(135deg, #FF6B6B, #FF8E8E);
    color: #fff;
    box-shadow: 0 2px 10px rgba(255,107,107,0.25);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(255,107,107,0.35);
}
.btn-danger {
    background: linear-gradient(135deg, #EF5350, #E53935);
    color: #fff;
    box-shadow: 0 2px 10px rgba(239,83,80,0.25);
}
.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(239,83,80,0.35);
}
.btn-secondary {
    background: #f5f5f5;
    color: #666;
}
.btn-secondary:hover { background: #e8e8e8; }
.btn-success {
    background: linear-gradient(135deg, #66BB6A, #4CAF50);
    color: #fff;
    box-shadow: 0 2px 10px rgba(102,187,106,0.25);
}
.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(102,187,106,0.35);
}

/* 开关 */
.toggle-switch {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}
.toggle-switch input[type="checkbox"] {
    appearance: none;
    width: 52px;
    height: 28px;
    background: #ddd;
    border-radius: 14px;
    position: relative;
    cursor: pointer;
    transition: background 0.3s ease;
    outline: none;
}
.toggle-switch input[type="checkbox"]::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    background: #fff;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.toggle-switch input[type="checkbox"]:checked {
    background: linear-gradient(135deg, #66BB6A, #81C784);
}
.toggle-switch input[type="checkbox"]:checked::after {
    transform: translateX(24px);
}
.toggle-label {
    font-weight: 700;
    color: #555;
    font-size: 0.95rem;
}

/* 表格 */
.table-wrap { overflow-x: auto; border-radius: 16px; }
.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.9rem;
    border-radius: 16px;
    overflow: hidden;
}
.data-table th, .data-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}
.data-table th {
    color: #888;
    font-weight: 700;
    background: #fafafa;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover { background: #fafafa; }

/* 登录页 */
.login-box {
    max-width: 420px;
    margin: 60px auto;
    background: #fff;
    border-radius: 28px;
    padding: 44px 36px;
    box-shadow: 0 12px 48px rgba(0,0,0,0.1);
    border: 1px solid rgba(0,0,0,0.04);
}
.login-box h2 {
    text-align: center;
    color: #E85D4E;
    margin-bottom: 32px;
    font-size: 1.6rem;
    font-weight: 800;
}

/* 快捷操作 */
.quick-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* 响应式 */
@media (max-width: 640px) {
    .site-header h1 { font-size: 1.8rem; }
    .site-header { padding: 32px 16px 20px; }
    .nav-btn { padding: 10px 20px; font-size: 0.9rem; }
    .card, .qa-card, .admin-card { padding: 20px; border-radius: 20px; }
    .search-box { flex-direction: column; }
    .search-box .submit-btn { width: 100%; }
    .admin-header-top { flex-direction: column; text-align: center; }
    .question-summary { flex-direction: column; align-items: flex-start; }
    .question-summary .q-preview { margin: 6px 0; white-space: normal; }
    .detail-grid { grid-template-columns: 1fr; gap: 4px; }
    .detail-grid .detail-label { margin-top: 8px; }
    .detail-actions { flex-direction: column; }
    .detail-actions .btn { width: 100%; justify-content: center; }
    .receipt-row { flex-direction: column; align-items: flex-start; gap: 4px; }
    .receipt-row .receipt-value { max-width: 100%; text-align: left; }
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
    .result-row { flex-direction: column; align-items: flex-start; }
    .result-row .result-value { text-align: left; }
}
