/* ============================================
   试验区众包公示语纠错平台 - 前台样式
   主题：政务蓝 #1A4B8C + 行动橙 #FF6B35
   ============================================ */

:root {
    --color-primary: #1A4B8C;
    --color-primary-dark: #0F3366;
    --color-primary-light: #E8F0FB;
    --color-accent: #FF6B35;
    --color-accent-dark: #E55A2B;
    --color-success: #1DC981;
    --color-warning: #EFAA17;
    --color-danger: #E8463A;
    --color-info: #3B82F6;

    --color-text: #1F2937;
    --color-text-muted: #6B7280;
    --color-text-light: #9CA3AF;

    --color-bg: #F5F7FA;
    --color-surface: #FFFFFF;
    --color-border: #E5E7EB;
    --color-border-dark: #D1D5DB;

    --radius-sm: 4px;
    --radius: 8px;
    --radius-lg: 12px;

    --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
    --shadow: 0 2px 8px rgba(0,0,0,.08);
    --shadow-lg: 0 8px 24px rgba(0,0,0,.12);

    --font-sans: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

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

body {
    font-family: var(--font-sans);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
    font-size: 15px;
}

a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-accent); }

img { max-width: 100%; height: auto; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ==================== 头部 ==================== */
.site-header {
    background: var(--color-surface);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-top {
    background: var(--color-primary-dark);
    color: rgba(255,255,255,.85);
    font-size: 13px;
    padding: 6px 0;
}
.header-top-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.header-contact span { margin-right: 8px; }
.header-contact .sep { color: rgba(255,255,255,.3); }
.header-user .link { color: rgba(255,255,255,.85); margin-left: 12px; }
.header-user .link:hover { color: #fff; text-decoration: underline; }

.header-main { padding: 16px 0; }
.header-main-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.logo { display: flex; align-items: center; gap: 12px; }
.logo-mark {
    width: 48px;
    height: 48px;
    background: var(--color-primary);
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
}
.logo-text strong { display: block; font-size: 20px; color: var(--color-primary); }
.logo-text small { display: block; font-size: 12px; color: var(--color-text-muted); }

.main-nav { display: flex; gap: 8px; flex-wrap: wrap; }
.main-nav a {
    padding: 8px 16px;
    color: var(--color-text);
    font-size: 15px;
    border-radius: var(--radius);
    transition: all .2s;
}
.main-nav a:hover { background: var(--color-primary-light); color: var(--color-primary); }
.main-nav a.active { background: var(--color-primary); color: #fff; }

.btn-report {
    background: var(--color-accent);
    color: #fff !important;
    padding: 10px 24px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 15px;
    transition: background .2s;
    box-shadow: 0 2px 6px rgba(255,107,53,.3);
}
.btn-report:hover { background: var(--color-accent-dark); color: #fff; }

/* ==================== 主体 ==================== */
.site-main { min-height: calc(100vh - 200px); }

/* ==================== Banner ==================== */
.hero {
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
    color: #fff;
    padding: 60px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('https://trae-api-cn.mchost.guru/api/ide/v1/text_to_image?prompt=Aerial%20view%20of%20a%20coastal%20university%20campus%20in%20Hainan%20with%20modern%20buildings%2C%20tropical%20greenery%2C%20blue%20sky%2C%20aerial%20photography&image_size=landscape_16_9') center/cover;
    opacity: .25;
}
.hero-content { position: relative; z-index: 1; }
.hero h1 { font-size: 36px; margin-bottom: 12px; font-weight: 700; }
.hero p { font-size: 18px; opacity: .9; margin-bottom: 24px; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-btn {
    padding: 12px 32px;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 600;
    transition: all .2s;
}
.hero-btn-primary { background: var(--color-accent); color: #fff; }
.hero-btn-primary:hover { background: var(--color-accent-dark); color: #fff; }
.hero-btn-outline { border: 2px solid #fff; color: #fff; }
.hero-btn-outline:hover { background: #fff; color: var(--color-primary); }

/* ==================== 数据总览 ==================== */
.stats-bar {
    background: var(--color-surface);
    padding: 32px 0;
    box-shadow: var(--shadow);
    margin-bottom: 32px;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
}
.stat-item .stat-num {
    font-size: 32px;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.2;
}
.stat-item .stat-label { font-size: 14px; color: var(--color-text-muted); }
.stat-item.accent .stat-num { color: var(--color-accent); }
.stat-item.success .stat-num { color: var(--color-success); }

/* ==================== 内容区块 ==================== */
.section { margin-bottom: 40px; }
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: 12px;
}
.section-title { font-size: 20px; color: var(--color-primary); font-weight: 600; }
.section-more { font-size: 14px; }

.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

/* ==================== 卡片 ==================== */
.card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }

.card-body { padding: 20px; }

/* 上报列表卡片 */
.report-list { display: flex; flex-direction: column; gap: 16px; }
.report-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 16px;
    display: flex;
    gap: 16px;
    transition: box-shadow .2s;
}
.report-card:hover { box-shadow: var(--shadow); }
.report-thumb {
    width: 100px;
    height: 100px;
    background: var(--color-bg);
    border-radius: var(--radius);
    overflow: hidden;
    flex-shrink: 0;
}
.report-thumb img { width: 100%; height: 100%; object-fit: cover; }
.report-info { flex: 1; min-width: 0; }
.report-info h3 {
    font-size: 16px;
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.report-meta { display: flex; gap: 12px; font-size: 13px; color: var(--color-text-muted); flex-wrap: wrap; }
.report-desc {
    font-size: 14px;
    color: var(--color-text-muted);
    margin: 6px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 状态标签 */
.badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 500;
}
.badge-pending { background: rgba(239,170,23,.15); color: #B45309; }
.badge-translating, .badge-reviewing { background: rgba(59,130,246,.15); color: #1D4ED8; }
.badge-approved { background: rgba(34,197,94,.15); color: #15803D; }
.badge-processing { background: rgba(111,111,255,.15); color: #4B3FE3; }
.badge-completed { background: rgba(29,201,129,.15); color: #059669; }
.badge-rejected { background: rgba(232,70,58,.15); color: #B91C1C; }

/* 信息公开列表 */
.info-list { list-style: none; }
.info-list li {
    padding: 10px 0;
    border-bottom: 1px dashed var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}
.info-list li:last-child { border: none; }
.info-list a { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.info-list .info-date { color: var(--color-text-light); font-size: 13px; flex-shrink: 0; }

/* ==================== 表单 ==================== */
.form-card { max-width: 720px; margin: 0 auto; }
.form-group { margin-bottom: 20px; }
.form-label { display: block; margin-bottom: 6px; font-weight: 500; }
.form-label .req { color: var(--color-danger); }
.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--color-border-dark);
    border-radius: var(--radius);
    font-size: 15px;
    font-family: inherit;
    transition: border-color .2s;
}
.form-control:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(26,75,140,.1); }
textarea.form-control { min-height: 100px; resize: vertical; }
select.form-control { cursor: pointer; }

.form-hint { font-size: 13px; color: var(--color-text-muted); margin-top: 4px; }

/* 图片上传 */
.upload-area {
    border: 2px dashed var(--color-border-dark);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: border-color .2s, background .2s;
}
.upload-area:hover { border-color: var(--color-primary); background: var(--color-primary-light); }
.upload-area.has-files { border-style: solid; }
.upload-icon { font-size: 36px; color: var(--color-text-light); margin-bottom: 8px; }
.upload-text { color: var(--color-text-muted); font-size: 14px; }
.upload-text strong { color: var(--color-primary); }

.preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
    margin-top: 16px;
}
.preview-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--color-bg);
}
.preview-item img { width: 100%; height: 100%; object-fit: cover; }
.preview-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    background: rgba(0,0,0,.5);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 按钮 */
.btn {
    display: inline-block;
    padding: 10px 28px;
    border: none;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all .2s;
    font-family: inherit;
}
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: var(--color-primary-dark); }
.btn-accent { background: var(--color-accent); color: #fff; }
.btn-accent:hover { background: var(--color-accent-dark); }
.btn-success { background: var(--color-success); color: #fff; }
.btn-danger { background: var(--color-danger); color: #fff; }
.btn-outline { background: transparent; border: 1px solid var(--color-border-dark); color: var(--color-text); }
.btn-outline:hover { background: var(--color-bg); }
.btn-block { width: 100%; }
.btn-lg { padding: 12px 36px; font-size: 16px; }

/* 进度查询结果 */
.track-result {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 32px;
    max-width: 720px;
    margin: 0 auto;
}
.timeline { position: relative; padding-left: 32px; }
.timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: var(--color-border);
}
.timeline-item { position: relative; margin-bottom: 24px; }
.timeline-item::before {
    content: '';
    position: absolute;
    left: -28px;
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--color-border-dark);
    border: 2px solid #fff;
}
.timeline-item.active::before { background: var(--color-primary); }
.timeline-item .timeline-time { font-size: 13px; color: var(--color-text-muted); }
.timeline-item .timeline-title { font-weight: 500; margin: 2px 0; }
.timeline-item .timeline-note { font-size: 13px; color: var(--color-text-muted); }

/* ==================== 页脚 ==================== */
.site-footer {
    background: var(--color-primary-dark);
    color: rgba(255,255,255,.8);
    padding: 40px 0 20px;
    margin-top: 60px;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 32px;
}
.footer-col h4 { font-size: 16px; margin-bottom: 12px; color: #fff; }
.footer-col p { font-size: 14px; margin-bottom: 6px; line-height: 1.8; }
.footer-col a { color: rgba(255,255,255,.8); }
.footer-col a:hover { color: #fff; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.15);
    padding-top: 20px;
    text-align: center;
    font-size: 13px;
}

/* ==================== Toast ==================== */
.toast {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-text);
    color: #fff;
    padding: 12px 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    z-index: 9999;
    opacity: 0;
    transition: opacity .3s, transform .3s;
    pointer-events: none;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.success { background: var(--color-success); }
.toast.error { background: var(--color-danger); }

/* ==================== 响应式 ==================== */
@media (max-width: 768px) {
    .header-top { display: none; }
    .header-main-inner { gap: 12px; }
    .main-nav { order: 3; width: 100%; justify-content: center; overflow-x: auto; }
    .main-nav a { padding: 6px 12px; font-size: 14px; white-space: nowrap; }
    .btn-report { padding: 8px 16px; font-size: 14px; }

    .hero { padding: 40px 0; }
    .hero h1 { font-size: 26px; }
    .hero p { font-size: 15px; }

    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stat-item .stat-num { font-size: 26px; }

    .content-grid { grid-template-columns: 1fr; }

    .footer-grid { grid-template-columns: 1fr; gap: 20px; }

    .report-card { flex-direction: column; }
    .report-thumb { width: 100%; height: 160px; }
}
