
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
    background-color: #f8fafc;
    padding: 0;
}

.container {
    max-width: 500px;
    margin: 0 auto;
    background: #fff;
    min-height: 100vh;
    box-shadow: 0 0 20px rgba(0,0,0,0.02);
    position: relative;
}

/* 头部样式 */
.header {
    text-align: center;
    padding: 28px 20px 16px;
    background: linear-gradient(135deg, #1677ff08 0%, #fff 100%);
}

.header h1 {
    color: #1677ff;
    font-size: 32px;
    margin-bottom: 8px;
    font-weight: 700;
    letter-spacing: 1px;
}

.header p {
    color: #5e6b7d;
    font-size: 15px;
    line-height: 1.5;
}

/* 标签页 */
.tabs {
    display: flex;
    background: #f1f5f9;
    border-radius: 100px;
    margin: 16px 20px 24px;
    padding: 4px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.02);
}

.tab {
    flex: 1;
    padding: 12px 0;
    text-align: center;
    font-size: 15px;
    font-weight: 500;
    color: #475569;
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.tab.active {
    background: #fff;
    color: #1677ff;
    box-shadow: 0 4px 10px rgba(22, 119, 255, 0.12);
    font-weight: 600;
}

.page {
    display: none;
    padding: 0 20px 30px;
}

.page.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0.6; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 输入组 */
.input-group {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.input-group input {
    flex: 1;
    padding: 16px 18px;
    border: 1.5px solid #e2e8f0;
    border-radius: 18px;
    font-size: 16px;
    background: #fff;
    transition: all 0.2s;
    box-shadow: 0 2px 6px rgba(0,0,0,0.01);
}

.input-group input:focus {
    border-color: #1677ff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.1);
}

/* 按钮样式 */
.btn {
    padding: 16px 24px;
    border: none;
    border-radius: 18px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
    background: #1677ff;
    color: #fff;
    box-shadow: 0 8px 16px rgba(22, 119, 255, 0.2);
}

.btn:hover {
    background: #0e5fd8;
    transform: scale(0.98);
}

.btn-green {
    background: #07c160;
    box-shadow: 0 8px 16px rgba(7, 193, 96, 0.2);
}

.btn-green:hover {
    background: #06aa54;
}

/* 复选框行 */
.checkbox-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    color: #334155;
    font-size: 15px;
    background: #f8fafc;
    padding: 12px 16px;
    border-radius: 16px;
}

.checkbox-row input {
    width: 20px;
    height: 20px;
    accent-color: #1677ff;
    margin: 0;
}

/* 实时大厅头部 */
.hall-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding: 0 4px;
}

.hall-header h2 {
    font-size: 18px;
    font-weight: 600;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hall-stats {
    color: #64748b;
    font-size: 14px;
    background: #f1f5f9;
    padding: 6px 16px;
    border-radius: 30px;
}

.hall-stats strong {
    color: #1677ff;
    margin: 0 4px;
}

/* 用户发布状态提示 */
.user-status-bar {
    background: #e6f4ff;
    border-radius: 16px;
    padding: 12px 16px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #1677ff;
    font-size: 14px;
    border: 1px solid #91caff;
}

.user-status-bar .badge {
    background: #1677ff;
    color: white;
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
}

.user-status-bar .warning {
    background: #ff4d4f;
}

/* 搜索框 */
.search-box {
    margin-bottom: 20px;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 14px 18px;
    padding-left: 46px;
    border: 1.5px solid #e2e8f0;
    border-radius: 30px;
    font-size: 15px;
    background: #f8fafc;
    transition: all 0.2s;
}

.search-box input:focus {
    border-color: #1677ff;
    outline: none;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.1);
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 18px;
}

.clear-search {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 18px;
    cursor: pointer;
    display: none;
}

.clear-search:hover {
    color: #1677ff;
}
/* 外部搜索结果样式 */
.external-result {
    display: block;
    background: linear-gradient(145deg, #f0f9ff, #e6f4ff);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #91caff;
    animation: fadeIn 0.3s ease;
    box-shadow: 0 4px 12px rgba(22, 119, 255, 0.08);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 外部任务卡片样式 */
.external-task-card {
    background: #fff;
    border-radius: 16px;
    padding: 16px;
    margin-top: 12px;
    border: 1px solid #e6f4ff;
}

.external-task-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.external-task-id {
    color: #1677ff;
    font-weight: 600;
    font-size: 14px;
}

.external-task-time {
    color: #94a3b8;
    font-size: 12px;
}

.external-contact-info {
    display: flex;
    gap: 16px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 12px;
    margin-bottom: 12px;
}

.external-contact-type {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #475569;
    font-size: 14px;
}

.external-contact-type i {
    color: #1677ff;
}

/* 搜索结果提示 */
.search-result-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding: 12px 16px;
    background: #e6f4ff;
    border-radius: 16px;
    color: #1677ff;
    font-size: 14px;
}

.search-result-info span {
    font-weight: 600;
}

.btn-clear-search {
    padding: 6px 14px;
    background: #fff;
    border: 1px solid #1677ff;
    border-radius: 20px;
    color: #1677ff;
    font-size: 13px;
    cursor: pointer;
    text-decoration: none;
}

/* 双列网格布局 - 实时大厅卡片（优化版） */
.hall-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
}

.hall-card {
    background: #fff;
    border: 1px solid #f0f2f5;
    border-radius: 16px;
    padding: 14px 14px 12px;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
}

.hall-card:hover {
    border-color: #1677ff30;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}

.hall-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    position: relative;
}

.hall-time {
    color: #94a3b8;
    font-size: 11px;
    white-space: nowrap;
}

.hall-score {
    font-size: 22px;
    font-weight: 700;
    color: #1677ff;
    line-height: 1;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

/* 举报按钮 - 右上角 */
.btn-report-small {
    padding: 4px 10px;
    background: #fff1f0;
    color: #ff4d4f;
    border: 1px solid #ffccc7;
    border-radius: 14px;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    margin-left: auto;
}

.btn-report-small:hover {
    background: #ff4d4f;
    color: #fff;
    border-color: #ff4d4f;
}

.hall-actions {
    display: flex;
    gap: 8px;
    margin-top: 2px;
}

.btn-copy-small {
    flex: 1;
    padding: 8px 0;
    background: #1677ff;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    white-space: nowrap;
}

.btn-copy-small:hover {
    background: #0e5fd8;
}

.btn-copy-disabled {
    flex: 1;
    padding: 8px 0;
    background: #e2e8f0;
    color: #94a3b8;
    border: none;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    cursor: not-allowed;
    text-align: center;
    white-space: nowrap;
}

/* 空状态 */
.empty-state {
    text-align: center;
    color: #94a3b8;
    padding: 60px 20px;
    font-size: 15px;
    grid-column: span 2;
}

.empty-state span {
    font-size: 48px;
    display: block;
    margin-bottom: 16px;
}

/* 加载更多 */
.loading-more {
    grid-column: span 2;
    text-align: center;
    padding: 20px;
    color: #94a3b8;
    font-size: 14px;
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #e2e8f0;
    border-top-color: #1677ff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 温馨提示弹窗 - 复制权限控制 */
.tip-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(6px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.tip-modal-content {
    background: #fff;
    border-radius: 28px;
    width: 90%;
    max-width: 380px;
    padding: 28px 24px;
    animation: modalFadeIn 0.3s;
    text-align: center;
}

.tip-modal h3 {
    color: #1677ff;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
}

.tip-modal p {
    color: #475569;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.tip-highlight {
    background: #e6f4ff;
    color: #1677ff;
    padding: 12px 16px;
    border-radius: 16px;
    font-weight: 600;
    margin-bottom: 24px;
}

.tip-actions {
    display: flex;
    gap: 12px;
}

.btn-tip-primary {
    flex: 1;
    padding: 16px;
    background: #1677ff;
    color: #fff;
    border: none;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.btn-tip-secondary {
    flex: 1;
    padding: 16px;
    background: #f1f5f9;
    color: #475569;
    border: none;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

/* 复制弹窗 */
.copy-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(6px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.copy-modal-content {
    background: #fff;
    border-radius: 28px;
    width: 90%;
    max-width: 400px;
    padding: 28px 24px;
    animation: modalFadeIn 0.3s;
}

.copy-modal-header {
    text-align: center;
    margin-bottom: 16px;
}

.copy-modal-header h3 {
    color: #1677ff;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
}

.copy-modal-header p {
    color: #ff4d4f;
    font-size: 14px;
    background: #fff1f0;
    padding: 8px 16px;
    border-radius: 30px;
    display: inline-block;
}

.copy-modal-body {
    background: #f8fafc;
    border-radius: 18px;
    padding: 20px;
    margin-bottom: 20px;
    word-break: break-all;
    font-size: 15px;
    color: #0f172a;
    line-height: 1.6;
    border: 1px solid #e2e8f0;
    max-height: 200px;
    overflow-y: auto;
}

.copy-modal-footer {
    display: flex;
    gap: 12px;
}

.btn-copy-confirm {
    flex: 1;
    padding: 16px;
    background: #1677ff;
    color: #fff;
    border: none;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.btn-copy-close {
    flex: 1;
    padding: 16px;
    background: #f1f5f9;
    color: #475569;
    border: none;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

/* 反馈弹窗 */
.feedback-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(6px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.feedback-modal-content {
    background: #fff;
    border-radius: 28px;
    width: 90%;
    max-width: 400px;
    padding: 28px 24px;
    animation: modalFadeIn 0.3s;
}

.feedback-modal h3 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
}

.feedback-modal textarea {
    width: 100%;
    padding: 18px;
    border: 1.5px solid #e2e8f0;
    border-radius: 18px;
    font-size: 15px;
    resize: vertical;
    min-height: 140px;
    margin-bottom: 20px;
    background: #f8fafc;
}

.feedback-modal textarea:focus {
    border-color: #1677ff;
    outline: none;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.1);
}

.feedback-actions {
    display: flex;
    gap: 12px;
}

.btn-feedback-submit {
    flex: 1;
    padding: 16px;
    background: #1677ff;
    color: #fff;
    border: none;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.btn-feedback-cancel {
    flex: 1;
    padding: 16px;
    background: #f1f5f9;
    color: #475569;
    border: none;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

/* 详情弹窗 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(6px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: #fff;
    border-radius: 28px;
    width: 90%;
    max-width: 420px;
    padding: 28px 24px;
    animation: modalFadeIn 0.3s;
}

/* 匹配页结果项 */
.result-item {
    background: #fff;
    border: 1px solid #edf2f7;
    border-radius: 20px;
    padding: 18px;
    margin-bottom: 16px;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}

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

.tag {
    background: linear-gradient(145deg, #1677ff, #0e5fd8);
    color: #fff;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
}

.total {
    color: #1677ff;
    font-weight: 700;
    font-size: 16px;
    background: #1677ff10;
    padding: 6px 14px;
    border-radius: 30px;
}

.score-sum {
    color: #1e293b;
    margin-bottom: 16px;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    background: #f8fafc;
    padding: 12px;
    border-radius: 16px;
}

.score-sum span {
    color: #1677ff;
    margin: 0 4px;
}

.btn-detail {
    width: 100%;
    padding: 14px;
    background: #1677ff;
    color: #fff;
    border: none;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

/* 统计条 */
.stats-bar {
    display: flex;
    justify-content: space-between;
    background: #f8fafc;
    padding: 12px 16px;
    border-radius: 16px;
    margin-bottom: 20px;
    color: #475569;
    font-size: 14px;
}

/* 提示消息 */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 12px 24px;
    border-radius: 40px;
    font-size: 15px;
    z-index: 3000;
    animation: toastFade 2s ease forwards;
    pointer-events: none;
    white-space: nowrap;
}

@keyframes toastFade {
    0% { opacity: 0; transform: translateX(-50%) translateY(20px); }
    15% { opacity: 1; transform: translateX(-50%) translateY(0); }
    85% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(-20px); }
}

/* LIVE标识 */
.live-badge {
    background: #ff4d4f;
    color: white;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 30px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

/* 响应式 */
@media (max-width: 480px) {
    .hall-grid {
        gap: 8px;
    }
    
    .hall-card {
        padding: 14px 12px;
    }
    
    .hall-score {
        font-size: 22px;
    }
    
    .btn-copy-small, .btn-report-small, .btn-copy-disabled {
        padding: 8px 0;
        font-size: 12px;
    }
}
