﻿/* ========================================
   普标链 - 管理后台样式 (admin.css)
   ======================================== */

/* ===== Main Layout ===== */
.main { padding: 2rem 0; min-height: calc(100vh - 200px); }

/* ===== Tabs ===== */
.tabs {
    display: flex; gap: 0.5rem; margin-bottom: 2rem;
    background: white; padding: 0.5rem; border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
.tab {
    flex: 1; padding: 0.875rem 1.5rem; background: transparent; border: none;
    border-radius: var(--radius-sm); cursor: pointer; font-size: 0.95rem;
    font-weight: 600; color: var(--gray-600); transition: all 0.2s var(--ease);
    font-family: inherit;
}
.tab:hover { background: var(--gray-50); color: var(--gray-900); }
.tab.active { background: var(--brand); color: white; box-shadow: var(--shadow-sm); }
.tab:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* ===== Card ===== */
.card {
    background: white; border-radius: var(--radius-lg); padding: 2.5rem;
    box-shadow: var(--shadow); margin-bottom: 2rem;
}
.card h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 2rem; color: var(--gray-900); }

/* ===== Alert ===== */
.alert {
    padding: 1.25rem 1.5rem; border-radius: var(--radius); margin-bottom: 1.5rem;
    display: none; font-size: 0.95rem; line-height: 1.7; word-break: break-all;
}
.alert-success { background: var(--success-bg); color: #065f46; border: 2px solid var(--success); }
.alert-error { background: var(--danger-bg); color: #991b1b; border: 2px solid var(--danger); }
.alert code { background: rgba(255,255,255,0.5); padding: 0.15rem 0.4rem; border-radius: 4px; font-size: 0.85rem; }

/* ===== Step Bar ===== */
.step-bar {
    display: flex; align-items: center; justify-content: center;
    gap: 0; margin-bottom: 2.5rem; padding: 1rem 0;
}
.step {
    display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
    position: relative; z-index: 1;
}
.step-dot {
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--gray-200); color: var(--gray-500);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.9rem; font-weight: 700;
    transition: all 0.3s var(--ease); border: 3px solid white;
    box-shadow: 0 0 0 2px var(--gray-200);
}
.step-label {
    font-size: 0.8rem; font-weight: 600; color: var(--gray-500);
    transition: all 0.3s var(--ease); white-space: nowrap;
}
.step.active .step-dot {
    background: var(--brand); color: white;
    box-shadow: 0 0 0 2px var(--brand), 0 4px 12px rgba(59,130,246,0.3);
}
.step.active .step-label { color: var(--brand); font-weight: 700; }
.step.done .step-dot {
    background: var(--success); color: white;
    box-shadow: 0 0 0 2px var(--success);
}
.step.done .step-label { color: var(--success); }
.step-line {
    width: 60px; height: 3px; background: var(--gray-200);
    margin: 0 0.5rem; margin-bottom: 1.5rem;
    transition: all 0.3s var(--ease); border-radius: 2px;
}
@media (max-width: 640px) {
    .step-bar { padding: 0.5rem 0; }
    .step-label { font-size: 0.7rem; }
    .step-dot { width: 32px; height: 32px; font-size: 0.8rem; }
    .step-line { width: 24px; margin: 0 0.25rem; margin-bottom: 1.2rem; }
}

/* ===== Step Panel ===== */
.step-panel { display: none; animation: fadeIn 0.3s var(--ease); }
.step-panel.active { display: block; }
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.step-title {
    text-align: center; margin-bottom: 2rem;
}
.step-badge {
    display: inline-block; background: var(--brand); color: white;
    font-size: 0.75rem; font-weight: 700; padding: 0.3rem 0.8rem;
    border-radius: 20px; margin-bottom: 0.75rem;
}
.step-title h2 {
    font-size: 1.5rem; font-weight: 700; color: var(--gray-900); margin-bottom: 0.5rem;
}
.step-desc {
    color: var(--gray-500); font-size: 0.9rem;
}

/* ===== Scene Selection ===== */
.scene-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem;
    margin-bottom: 2rem;
}
.scene-card {
    background: white; border: 2px solid var(--gray-200); border-radius: var(--radius-lg);
    padding: 1.75rem; cursor: pointer; transition: all 0.2s var(--ease);
    text-align: center; position: relative;
}
.scene-card:hover { border-color: var(--brand); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.scene-card.active { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-glow), var(--shadow-lg); }
.scene-card.active::after {
    content: '✓'; position: absolute; top: 0.75rem; right: 0.75rem;
    width: 24px; height: 24px; background: var(--brand); color: white;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 0.75rem; font-weight: 700;
}
.scene-icon {
    width: 56px; height: 56px; border-radius: var(--radius-lg);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.scene-icon svg { width: 28px; height: 28px; }
.scene-title { font-size: 1.1rem; font-weight: 700; color: var(--gray-900); margin-bottom: 0.5rem; }
.scene-desc { font-size: 0.8rem; color: var(--gray-500); line-height: 1.5; margin-bottom: 0.75rem; }
.scene-time {
    display: inline-block; background: var(--gray-100); color: var(--gray-600);
    font-size: 0.75rem; font-weight: 600; padding: 0.25rem 0.75rem; border-radius: 20px;
}
@media (max-width: 768px) {
    .scene-grid { grid-template-columns: 1fr; }
}

/* ===== Photo Area ===== */
.photo-area { display: flex; flex-direction: column; gap: 1.25rem; margin-bottom: 1.5rem; }

.photo-slot-card {
    background: white; border: 2px solid var(--gray-200); border-radius: var(--radius-lg);
    padding: 1.25rem; transition: all 0.2s var(--ease);
}
.photo-slot-card:hover { border-color: var(--gray-300); }
.photo-slot-card.complete { border-color: var(--success); background: #f0fdf4; }
.photo-slot-card.error { border-color: var(--danger); background: #fef2f2; }

.slot-card-header {
    display: flex; align-items: center; gap: 0.875rem; margin-bottom: 1rem;
}
.slot-icon-wrap {
    width: 44px; height: 44px; border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.slot-icon-wrap svg { width: 22px; height: 22px; }
.slot-title-wrap { flex: 1; }
.slot-title { font-size: 1rem; font-weight: 700; color: var(--gray-900); }
.slot-subtitle { font-size: 0.8rem; color: var(--gray-500); }
.slot-count {
    background: var(--gray-100); color: var(--gray-600);
    font-size: 0.8rem; font-weight: 700; padding: 0.3rem 0.75rem;
    border-radius: 20px;
}

.slot-thumbs {
    display: flex; flex-wrap: wrap; gap: 0.625rem; margin-bottom: 1rem;
    min-height: 80px;
}
.photo-thumb {
    position: relative; width: 80px; height: 80px; border-radius: var(--radius-sm);
    overflow: hidden; border: 2px solid var(--gray-100); cursor: pointer;
    transition: all 0.2s var(--ease);
}
.photo-thumb:hover { transform: scale(1.05); border-color: var(--brand); }
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; }
.photo-thumb .thumb-ok {
    position: absolute; bottom: 3px; right: 3px;
    width: 18px; height: 18px; border-radius: 50%;
    background: var(--success); color: white; font-size: 0.65rem;
    display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.photo-thumb .thumb-err {
    position: absolute; bottom: 3px; right: 3px;
    width: 18px; height: 18px; border-radius: 50%;
    background: var(--danger); color: white; font-size: 0.65rem;
    display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.photo-thumb .thumb-remove {
    position: absolute; top: 3px; right: 3px;
    width: 20px; height: 20px; border-radius: 50%;
    background: rgba(0,0,0,0.5); color: white; font-size: 0.75rem;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; opacity: 0; transition: all 0.2s var(--ease);
    border: none; padding: 0;
}
.photo-thumb:hover .thumb-remove { opacity: 1; }

.slot-actions { display: flex; gap: 0.5rem; }
.slot-upload-btn {
    display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 0.5rem 1rem; background: var(--brand); color: white;
    border-radius: var(--radius-sm); font-size: 0.85rem; font-weight: 600;
    cursor: pointer; transition: all 0.2s var(--ease); border: none;
    font-family: inherit;
}
.slot-upload-btn:hover { background: var(--brand-dark); }
.slot-upload-btn svg { width: 16px; height: 16px; }
.slot-url-btn {
    display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 0.5rem 1rem; background: white; color: var(--brand);
    border: 1.5px solid var(--gray-200); border-radius: var(--radius-sm);
    font-size: 0.85rem; font-weight: 600; cursor: pointer;
    transition: all 0.2s var(--ease); font-family: inherit;
}
.slot-url-btn:hover { border-color: var(--brand); background: var(--brand-glow); }
.slot-url-btn svg { width: 14px; height: 14px; }

.slot-exif-status {
    margin-top: 0.75rem; padding: 0.625rem 0.875rem; border-radius: var(--radius-sm);
    font-size: 0.8rem; display: none;
}
.slot-exif-status.show { display: block; }
.slot-exif-status.ok { background: #dcfce7; color: #166534; }
.slot-exif-status.warn { background: #fef9c3; color: #854d0e; }
.slot-exif-status.err { background: #fee2e2; color: #991b1b; }

/* EXIF 逐张详情 */
.exif-detail-list { display: flex; flex-direction: column; gap: 0.35rem; }
.exif-detail-item { display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; font-size: 0.8rem; }
.exif-tag {
    display: inline-block; padding: 0.1rem 0.4rem; border-radius: 4px;
    font-size: 0.75rem; font-weight: 600;
}
.exif-tag.ok { background: rgba(16,185,129,0.12); color: #065f46; }
.exif-tag.err { background: rgba(239,68,68,0.12); color: #991b1b; }
.exif-tag.warn { background: rgba(245,158,11,0.12); color: #92400e; }

/* ===== Cert Area ===== */
.cert-area {
    background: white; border: 2px dashed var(--gray-300); border-radius: var(--radius-lg);
    padding: 1.5rem; margin-bottom: 1.5rem; transition: all 0.2s var(--ease);
}
.cert-area:hover { border-color: var(--brand); background: var(--brand-glow); }
.cert-header {
    display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem;
}
.cert-icon {
    width: 40px; height: 40px; border-radius: var(--radius);
    background: var(--gray-100); display: flex; align-items: center; justify-content: center;
}
.cert-icon svg { width: 20px; height: 20px; stroke: var(--gray-600); fill: none; stroke-width: 2; }
.cert-title { font-size: 0.95rem; font-weight: 700; color: var(--gray-900); }
.cert-subtitle { font-size: 0.8rem; color: var(--gray-500); }
.cert-upload {
    display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
    padding: 1.5rem; border: 2px dashed var(--gray-300); border-radius: var(--radius);
    cursor: pointer; transition: all 0.2s var(--ease); text-align: center;
}
.cert-upload:hover { border-color: var(--brand); background: white; }
.cert-upload input[type="file"] { display: none; }
.cert-upload-icon svg { width: 32px; height: 32px; stroke: var(--gray-400); }
.cert-upload-text strong { display: block; color: var(--gray-900); font-size: 0.9rem; }
.cert-upload-text span { display: block; color: var(--gray-500); font-size: 0.8rem; }
.cert-file-name {
    margin-top: 0.75rem; font-size: 0.85rem; color: var(--gray-700); font-weight: 600;
}

/* ===== URL Input ===== */
.url-input { margin-top: 0.5rem; display: none; }
.url-input.show { display: block; }
.url-input input {
    width: 100%; padding: 0.65rem 0.85rem; border: 2px solid var(--gray-200);
    border-radius: var(--radius-sm); font-size: 0.85rem; transition: all 0.2s var(--ease);
    font-family: inherit;
}
.url-input input:focus { outline: none; border-color: var(--brand); }

/* ===== EXIF Panel ===== */
.exif-panel {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid var(--gray-200); border-radius: var(--radius-lg);
    padding: 1.5rem; margin-bottom: 2rem;
}
.exif-panel-title {
    font-size: 1rem; font-weight: 700; color: var(--gray-900); margin-bottom: 1rem;
}
.exif-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
}
.exif-stat {
    background: white; border-radius: var(--radius); padding: 1rem;
    text-align: center; border: 1px solid var(--gray-100);
    transition: all 0.2s var(--ease);
}
.exif-stat:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.exif-stat-icon { font-size: 1.5rem; margin-bottom: 0.5rem; }
.exif-stat-label { font-size: 0.75rem; color: var(--gray-500); font-weight: 600; margin-bottom: 0.25rem; }
.exif-stat-value { font-size: 0.85rem; color: var(--gray-900); font-weight: 700; }
.exif-stat-value.ok { color: var(--success); }
.exif-stat-value.err { color: var(--danger); }
@media (max-width: 768px) {
    .exif-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== Form Section ===== */
.form-section { margin-bottom: 2rem; }
.form-section-title {
    display: flex; align-items: center; justify-content: space-between;
    font-size: 0.95rem; font-weight: 700; color: var(--gray-900);
    margin-bottom: 1rem; padding-bottom: 0.75rem; border-bottom: 2px solid var(--gray-100);
}
.required-hint { font-size: 0.75rem; color: var(--gray-500); font-weight: 500; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label {
    display: block; font-weight: 600; margin-bottom: 0.5rem;
    color: var(--gray-900); font-size: 0.9rem;
}
.form-group input,
.form-group textarea {
    width: 100%; padding: 0.75rem 1rem; border: 2px solid var(--gray-200);
    border-radius: var(--radius-sm); font-size: 0.9rem;
    transition: all 0.2s var(--ease); font-family: inherit;
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-glow);
}
.form-group input[readonly] {
    background: #f0fdf4; color: var(--gray-900); border-color: #bbf7d0; cursor: default;
}
.form-group input[readonly].empty {
    background: var(--gray-50); color: var(--gray-500); border-color: var(--gray-200);
}
.form-group small {
    display: block; margin-top: 0.3rem; color: var(--gray-500); font-size: 0.78rem;
}
.auto-badge {
    display: inline-block; background: #dbeafe; color: var(--brand);
    font-size: 0.7rem; padding: 0.15rem 0.5rem; border-radius: 4px;
    font-weight: 700; margin-left: 0.5rem; vertical-align: middle;
}

/* ===== Step Actions ===== */
.step-actions {
    display: flex; justify-content: center; gap: 1rem; margin-top: 2rem;
    padding-top: 1.5rem; border-top: 1px solid var(--gray-200);
}
.btn-next {
    padding: 0.875rem 2rem; background: var(--brand); color: white;
    border: none; border-radius: var(--radius); font-size: 1rem;
    font-weight: 700; cursor: pointer; transition: all 0.2s var(--ease);
    font-family: inherit; box-shadow: var(--shadow);
}
.btn-next:hover { background: var(--brand-dark); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-next:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-prev {
    padding: 0.875rem 1.5rem; background: white; color: var(--gray-700);
    border: 2px solid var(--gray-200); border-radius: var(--radius);
    font-size: 1rem; font-weight: 600; cursor: pointer;
    transition: all 0.2s var(--ease); font-family: inherit;
}
.btn-prev:hover { border-color: var(--gray-300); background: var(--gray-50); }

/* ===== Submit Preview ===== */
.submit-preview {
    background: var(--gray-50); border-radius: var(--radius-lg);
    padding: 1.5rem; margin-bottom: 1.5rem; border: 1px solid var(--gray-200);
}
.preview-section { margin-bottom: 1.5rem; }
.preview-section:last-child { margin-bottom: 0; }
.preview-label {
    font-size: 0.8rem; font-weight: 700; color: var(--gray-500);
    text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.75rem;
}
.preview-photos { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.preview-photo-item {
    width: 80px; height: 80px; border-radius: var(--radius-sm);
    overflow: hidden; border: 2px solid var(--gray-200);
}
.preview-photo-item img { width: 100%; height: 100%; object-fit: cover; }
.preview-info { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
.preview-info-item {
    background: white; padding: 0.75rem 1rem; border-radius: var(--radius-sm);
    border: 1px solid var(--gray-200);
}
.preview-info-label { font-size: 0.75rem; color: var(--gray-500); font-weight: 600; }
.preview-info-value { font-size: 0.9rem; color: var(--gray-900); font-weight: 500; }

.btn-submit {
    display: flex; align-items: center; justify-content: center; gap: 0.5rem;
    width: 100%; padding: 1.125rem; background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
    color: white; border: none; border-radius: var(--radius); font-size: 1.05rem;
    font-weight: 700; cursor: pointer; transition: all 0.2s var(--ease);
    font-family: inherit; box-shadow: var(--shadow-lg);
}
.btn-submit:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(59,130,246,0.3); }
.btn-submit:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.submit-note {
    text-align: center; color: var(--gray-500); font-size: 0.8rem; margin-top: 0.75rem;
}

/* ===== Table ===== */
.table-wrapper { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 600px; }
th, td { padding: 1rem 1.25rem; text-align: left; border-bottom: 1px solid var(--gray-200); }
th { background: var(--gray-50); font-weight: 700; font-size: 0.8rem; color: var(--gray-500); text-transform: uppercase; letter-spacing: 0.05em; }
td { font-size: 0.9rem; }
tr:hover { background: var(--gray-50); cursor: pointer; }
.badge { display: inline-block; padding: 0.25rem 0.75rem; border-radius: 20px; font-size: 0.75rem; font-weight: 700; }
.empty { text-align: center; padding: 4rem; color: var(--gray-500); font-size: 1rem; }

/* ===== Modal ===== */
.modal {
    display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6); z-index: 1000; align-items: center; justify-content: center;
    padding: 1.5rem; backdrop-filter: blur(4px);
}
.modal.active { display: flex; }
.modal-content {
    background: white; border-radius: var(--radius-lg); max-width: 900px;
    width: 100%; max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow-xl);
}
.modal-header {
    padding: 1.5rem 2rem; border-bottom: 1px solid var(--gray-200);
    display: flex; justify-content: space-between; align-items: center;
    position: sticky; top: 0; background: white; z-index: 10;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.modal-header h3 { font-size: 1.25rem; font-weight: 700; }
.modal-close {
    background: none; border: none; font-size: 1.75rem;
    cursor: pointer; color: var(--gray-500); padding: 0.25rem; line-height: 1;
    transition: all 0.2s var(--ease);
}
.modal-close:hover { color: var(--gray-900); }
.modal-body { padding: 2rem; }

.detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.detail-item {
    padding: 1rem; background: var(--gray-50); border-radius: var(--radius-sm);
    border: 1px solid var(--gray-100);
}
.detail-label {
    font-size: 0.75rem; font-weight: 700; color: var(--gray-500);
    text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.3rem;
}
.detail-value {
    font-size: 0.9rem; color: var(--gray-900); word-break: break-all; font-weight: 500;
}
.detail-value code {
    background: white; padding: 0.2rem 0.5rem; border-radius: 4px;
    font-size: 0.8rem; border: 1px solid var(--gray-200);
}

.photo-gallery {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.5rem;
}
.photo-gallery-item { text-align: center; }
.photo-gallery-item img {
    width: 100%; height: 140px; object-fit: cover; border-radius: var(--radius-sm);
    box-shadow: var(--shadow); border: 2px solid var(--gray-100); cursor: pointer;
    transition: all 0.2s var(--ease);
}
.photo-gallery-item img:hover { transform: scale(1.02); box-shadow: var(--shadow-lg); }
.photo-gallery-item .label { font-size: 0.8rem; color: var(--gray-500); margin-top: 0.5rem; font-weight: 600; }

/* ===== Image Viewer ===== */
.image-viewer {
    display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.9); z-index: 2000; align-items: center; justify-content: center;
    padding: 2rem;
}
.image-viewer.active { display: flex; }
.image-viewer img { max-width: 90%; max-height: 90%; object-fit: contain; border-radius: var(--radius); }
.image-viewer-close {
    position: absolute; top: 1rem; right: 1rem;
    background: rgba(255,255,255,0.2); border: none; color: white;
    width: 40px; height: 40px; border-radius: 50%; font-size: 1.5rem;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: all 0.2s var(--ease);
}
.image-viewer-close:hover { background: rgba(255,255,255,0.3); }

/* ===== Certificate Download ===== */
.cert-download {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.5rem 1rem; background: var(--brand); color: white;
    text-decoration: none; border-radius: var(--radius-sm);
    font-size: 0.85rem; font-weight: 600; transition: all 0.2s var(--ease); margin-top: 0.5rem;
}
.cert-download:hover { background: var(--brand-dark); }
.cert-download svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .container { padding: 0 1.5rem; }
    .card { padding: 2rem; }
}

@media (max-width: 768px) {
    .container { padding: 0 1rem; }
    .card { padding: 1.5rem; }
    .mobile-menu-btn { display: block; }
    .nav-links {
        display: none; position: absolute; top: 100%; left: 0; right: 0;
        background: var(--dark-900); flex-direction: column; padding: 1rem; gap: 0;
        border-top: 1px solid rgba(255,255,255,0.1);
    }
    .nav-links.active { display: flex; }
    .nav-links a { padding: 1rem; border-bottom: 1px solid rgba(255,255,255,0.1); }
    .nav-links a:last-child { border-bottom: none; }
    .tabs { flex-direction: column; }
    .form-row { grid-template-columns: 1fr; }
    .detail-grid { grid-template-columns: 1fr; }
    .photo-gallery { grid-template-columns: 1fr 1fr; }
    .exif-grid { grid-template-columns: repeat(2, 1fr); }
    .preview-info { grid-template-columns: 1fr; }
    .step-actions { flex-direction: column; }
    .btn-next, .btn-prev { width: 100%; }
    .modal-header { padding: 1.25rem 1.5rem; }
    .modal-body { padding: 1.5rem; }
}

@media (max-width: 480px) {
    .photo-gallery { grid-template-columns: 1fr; }
    .logo-text h1 { font-size: 1.1rem; }
}

/* ===== 场景拍照指导 ===== */
.scene-guidance {
    display: flex; align-items: flex-start; gap: 0.5rem;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 1px solid #bfdbfe; border-radius: var(--radius-sm);
    padding: 0.625rem 0.875rem; margin-bottom: 0.75rem;
}
.sg-icon { font-size: 1rem; flex-shrink: 0; margin-top: 1px; }
.sg-body { flex: 1; }
.sg-title { font-size: 0.8rem; font-weight: 700; color: #1e40af; margin-bottom: 0.15rem; }
.sg-req { font-size: 0.75rem; color: #3b82f6; line-height: 1.4; }

/* ========================================
   存证详情弹窗 - 直观呈现
   ======================================== */

/* 裁决大卡片 */
.detail-hero {
    border-radius: var(--radius-lg); padding: 2rem 1.5rem; margin-bottom: 1.5rem;
    text-align: center; position: relative;
}
.detail-hero-icon { font-size: 3rem; margin-bottom: 0.5rem; }
.detail-hero-status { font-size: 1.5rem; font-weight: 800; margin-bottom: 0.5rem; }
.detail-hero-summary { font-size: 0.9rem; opacity: 0.85; max-width: 600px; margin: 0 auto; }
.detail-hero-score {
    display: inline-block; margin-top: 0.75rem; padding: 0.4rem 1rem;
    background: rgba(255,255,255,0.5); border-radius: 20px;
    font-size: 0.85rem; font-weight: 700;
}

/* 信息卡片网格 */
.detail-info-cards {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0.75rem;
    margin-bottom: 1.5rem;
}
.detail-info-card {
    background: white; border: 1px solid var(--gray-200); border-radius: var(--radius);
    padding: 1rem; box-shadow: var(--shadow-sm);
}
.detail-info-header {
    display: flex; align-items: center; gap: 0.4rem; margin-bottom: 0.5rem;
}
.detail-info-icon { font-size: 1.1rem; }
.detail-info-title { font-size: 0.75rem; font-weight: 700; color: var(--gray-500); text-transform: uppercase; letter-spacing: 0.05em; }
.detail-info-value { font-size: 0.9rem; font-weight: 700; color: var(--gray-900); word-break: break-all; }
.detail-info-value.link a { color: var(--brand); text-decoration: none; }
.detail-info-value.link a:hover { text-decoration: underline; }

/* 通用详情区块 */
.detail-section {
    background: white; border: 1px solid var(--gray-200); border-radius: var(--radius-lg);
    padding: 1.25rem; margin-bottom: 1rem; box-shadow: var(--shadow-sm);
}
.detail-section-header {
    display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1rem;
}
.detail-section-icon {
    width: 32px; height: 32px; background: var(--brand-glow); border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center; font-size: 1rem;
}
.detail-section-title { font-size: 1rem; font-weight: 700; color: var(--gray-900); flex: 1; }
.detail-section-count { font-size: 0.8rem; color: var(--gray-500); font-weight: 600; }

/* 照片墙 */
.detail-photo-wall {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0.75rem;
}
.detail-photo-item {
    border-radius: var(--radius); overflow: hidden; border: 1px solid var(--gray-200);
    background: var(--gray-50); cursor: pointer; transition: all 0.2s var(--ease);
}
.detail-photo-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--brand); }
.detail-photo-item img { width: 100%; height: 110px; object-fit: cover; display: block; }
.detail-photo-meta {
    padding: 0.5rem; display: flex; align-items: center; justify-content: space-between;
    font-size: 0.75rem; font-weight: 600; color: var(--gray-700);
}
.detail-photo-badge {
    font-size: 0.65rem; font-weight: 700; padding: 0.1rem 0.35rem; border-radius: 4px;
}
.detail-photo-hash {
    padding: 0.35rem 0.5rem; font-size: 0.7rem; font-family: var(--font-mono);
    color: var(--gray-500); background: var(--gray-100);
    border-top: 1px solid var(--gray-200); word-break: break-all;
    cursor: help;
}

/* 证书行 */
.detail-cert-row { margin-bottom: 0.75rem; }
.detail-cert-row:last-child { margin-bottom: 0; }
.detail-cert-hash {
    margin-top: 0.35rem; padding: 0.35rem 0.5rem; font-size: 0.7rem;
    font-family: var(--font-mono); color: var(--gray-500); background: var(--gray-100);
    border-radius: var(--radius-sm); word-break: break-all; cursor: help;
}

/* 时间轴 */
.detail-timeline { position: relative; padding-left: 1.75rem; }
.detail-timeline::before {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
    background: linear-gradient(180deg, var(--brand) 0%, var(--success) 100%);
}
.detail-timeline-item { position: relative; padding-bottom: 1.25rem; }
.detail-timeline-item:last-child { padding-bottom: 0; }
.detail-timeline-item::before {
    content: ''; position: absolute; left: calc(-1.75rem - 5px); top: 0.25rem;
    width: 10px; height: 10px; border-radius: 50%; background: white;
    border: 3px solid var(--dot-color, var(--brand)); box-shadow: 0 0 0 2px white;
}
.detail-timeline-time { font-size: 0.75rem; color: var(--gray-500); font-weight: 600; margin-bottom: 0.2rem; }
.detail-timeline-title { font-size: 0.9rem; font-weight: 700; color: var(--gray-900); margin-bottom: 0.2rem; }
.detail-timeline-detail { font-size: 0.75rem; color: var(--gray-500); }
.detail-timeline-detail code { background: var(--gray-100); padding: 0.1rem 0.3rem; border-radius: 4px; font-size: 0.7rem; font-family: var(--font-mono); }

/* EXIF 卡片 */
.detail-exif-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 0.5rem; }
.detail-exif-card { background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: var(--radius-sm); padding: 0.75rem; }
.detail-exif-label { font-size: 0.7rem; font-weight: 700; color: var(--gray-500); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.2rem; }
.detail-exif-value { font-size: 0.8rem; font-weight: 600; color: var(--gray-900); }
.detail-exif-value.ok { color: var(--success); }
.detail-exif-value.warn { color: var(--warning); }
.detail-exif-value.err { color: var(--danger); }

/* 证据列表 */
.detail-evidence-list { list-style: none; padding: 0; margin: 0; }
.detail-evidence-item { display: flex; align-items: flex-start; gap: 0.5rem; padding: 0.5rem 0; border-bottom: 1px solid var(--gray-100); }
.detail-evidence-item:last-child { border-bottom: none; }
.detail-evidence-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 1px; }
.detail-evidence-text { flex: 1; color: var(--gray-700); font-size: 0.85rem; }

/* 标识符标签 */
.detail-id-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.detail-id-tag {
    display: inline-flex; align-items: center; gap: 0.35rem;
    background: #dbeafe; color: #1e3a8a; padding: 0.35rem 0.75rem;
    border-radius: 20px; font-size: 0.8rem; font-weight: 600;
}
.detail-id-tag-type { font-size: 0.7rem; opacity: 0.7; font-weight: 700; text-transform: uppercase; }

/* 区块信息 */
.detail-block-info { background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 1rem; }
.detail-block-row { display: flex; justify-content: space-between; align-items: center; padding: 0.4rem 0; border-bottom: 1px solid var(--gray-100); }
.detail-block-row:last-child { border-bottom: none; }
.detail-block-label { font-size: 0.8rem; color: var(--gray-500); font-weight: 600; }
.detail-block-value { font-size: 0.8rem; color: var(--gray-900); font-family: var(--font-mono); word-break: break-all; text-align: right; max-width: 60%; }

/* 核验按钮 */
.detail-verify-btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.75rem 1.5rem; background: var(--brand); color: white;
    text-decoration: none; border-radius: var(--radius-sm);
    font-weight: 600; font-size: 0.9rem; transition: all 0.2s var(--ease);
}
.detail-verify-btn:hover { background: var(--brand-dark); }
.detail-verify-btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; }

/* ===== 追加存证 - 类型选择器 ===== */
.type-selector {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.75rem;
}
.type-option {
    background: white; border: 2px solid var(--gray-200); border-radius: var(--radius);
    padding: 1rem; text-align: center; cursor: pointer; transition: all 0.2s var(--ease);
}
.type-option:hover { border-color: var(--brand); }
.type-option.active { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-glow); }
.type-icon {
    width: 40px; height: 40px; border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 0.5rem;
}
.type-icon svg { width: 20px; height: 20px; }
.type-title { font-size: 0.85rem; font-weight: 700; color: var(--gray-900); margin-bottom: 0.2rem; }
.type-desc { font-size: 0.7rem; color: var(--gray-500); }

/* 列表追加小按钮 */
.append-mini-btn {
    padding: 0.25rem 0.5rem; background: var(--brand); color: white;
    border: none; border-radius: var(--radius-sm); font-size: 0.75rem;
    font-weight: 600; cursor: pointer; transition: all 0.2s var(--ease);
    font-family: inherit; white-space: nowrap;
}
.append-mini-btn:hover { background: var(--brand-dark); }

/* ===== 任务聚合列表 ===== */
.task-list { display: flex; flex-direction: column; gap: 0.75rem; }
.task-card {
    background: white; border: 1px solid var(--gray-200); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm); overflow: hidden;
}
.task-header {
    display: flex; align-items: center; gap: 1rem; padding: 1rem 1.25rem;
    cursor: pointer; transition: background 0.2s var(--ease);
}
.task-header:hover { background: var(--gray-50); }
.task-thumb {
    width: 64px; height: 64px; border-radius: var(--radius-sm);
    overflow: hidden; flex-shrink: 0; border: 1px solid var(--gray-200);
    cursor: pointer; background: var(--gray-100);
}
.task-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.task-thumb.empty {
    display: flex; align-items: center; justify-content: center;
    font-size: 1.25rem; color: var(--gray-400);
}
.task-main { flex: 1; min-width: 0; }
.task-id { font-size: 0.95rem; font-weight: 700; color: var(--gray-900); word-break: break-all; }
.task-id a { color: var(--brand); text-decoration: none; }
.task-id a:hover { text-decoration: underline; }
.task-meta { font-size: 0.8rem; color: var(--gray-500); margin-top: 0.2rem; }
.task-stats { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }
.task-stat { font-size: 0.8rem; color: var(--gray-600); font-weight: 600; }
.task-time { font-size: 0.8rem; color: var(--gray-500); white-space: nowrap; }
.task-toggle { font-size: 0.7rem; color: var(--gray-400); margin-left: 0.25rem; }

.task-detail { border-top: 1px solid var(--gray-100); }
.task-detail-inner { padding: 1rem 1.25rem; }
.task-att-item {
    display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap;
    padding: 0.5rem 0; border-bottom: 1px solid var(--gray-100);
}
.task-att-item:last-child { border-bottom: none; }
.task-att-badge {
    font-size: 0.7rem; font-weight: 700; padding: 0.15rem 0.5rem; border-radius: 4px;
}
.detail-badge-purple { background: #ede9fe; color: #5b21b6; }
.task-att-time { font-size: 0.8rem; color: var(--gray-500); }
.task-att-block { font-size: 0.8rem; color: var(--gray-600); }
.task-att-hash {
    font-size: 0.7rem; font-family: var(--font-mono); color: var(--gray-500);
    background: var(--gray-100); padding: 0.1rem 0.4rem; border-radius: 4px;
}
.task-att-preview {
    font-size: 0.8rem; color: var(--brand); text-decoration: none; font-weight: 600;
}
.task-att-preview:hover { text-decoration: underline; }

@media (max-width: 768px) {
    .task-header { flex-wrap: wrap; gap: 0.5rem; }
    .task-time { width: 100%; }
}

@media (max-width: 640px) {
    .type-selector { grid-template-columns: repeat(2, 1fr); }
}

/* 致命问题 */
.fatal-issues { background: #fef2f2; border: 1px solid #fecaca; border-radius: var(--radius); padding: 1rem; }
.fatal-issues-title { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; font-weight: 700; color: #991b1b; margin-bottom: 0.75rem; }
.fatal-issues-list { list-style: none; padding: 0; margin: 0; }
.fatal-issues-list li { display: flex; align-items: flex-start; gap: 0.5rem; padding: 0.35rem 0; font-size: 0.85rem; color: #991b1b; }
