/* ========================================
 * 南京蓝天救援队 · 救援指挥中心
 * 前台自定义样式
 * ======================================== */

/* ========== 全局变量 ========== */
:root {
    --bg-start: #0a0e27;
    --bg-end: #1a1f4e;
    --card-bg: rgba(10, 20, 60, 0.6);
    --card-border: rgba(0, 212, 255, 0.3);
    --card-border-hover: rgba(0, 212, 255, 0.6);
    --glow-color: rgba(0, 212, 255, 0.15);
    --text-primary: #e0e8ff;
    --text-secondary: #8a9bc4;
    --text-accent: #00d4ff;
    --text-highlight: #ffdd44;
    --color-male: #4fc3f7;
    --color-female: #f48fb1;
    --color-party: #ff5252;
    --color-green: #4caf50;
    --color-yellow: #ffeb3b;
    --color-orange: #ff9800;
    --color-red: #f44336;
}

/* ========== 基础重置 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    background: linear-gradient(135deg, var(--bg-start) 0%, var(--bg-end) 100%);
    color: var(--text-primary);
    min-height: 100vh;
    position: relative;
}

/* 背景装饰光晕 */
body::before {
    content: '';
    position: fixed;
    top: -20%;
    left: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: '';
    position: fixed;
    bottom: -20%;
    right: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(100, 0, 200, 0.05) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* ========== 粒子背景Canvas ========== */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

#app {
    z-index: 10;
}

/* ========== 顶部标题栏 ========== */
.header-bar {
    background: linear-gradient(180deg, rgba(0, 30, 80, 0.9) 0%, rgba(0, 20, 60, 0.5) 100%);
    border-bottom: 1px solid var(--card-border);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.1), inset 0 -1px 0 rgba(0, 212, 255, 0.1);
    position: relative;
    overflow: hidden;
}

/* 顶部光带动画 */
.header-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--text-accent), transparent);
    animation: scan-line 6s linear infinite;
}

@keyframes scan-line {
    0% { left: -100%; }
    100% { left: 100%; }
}

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

/* Logo区域 */
.header-left {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 52px;
    height: 52px;
    filter: drop-shadow(0 0 8px rgba(0, 212, 255, 0.5));
    animation: logo-rotate 20s linear infinite;
}

@keyframes logo-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.logo-name {
    font-size: 18px;
    font-weight: bold;
    color: var(--text-accent);
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.4);
}

.logo-sub {
    font-size: 10px;
    color: var(--text-secondary);
    letter-spacing: 2px;
}

/* 中间标题 */
.header-center {
    flex: 1;
    text-align: center;
    min-width: 200px;
}

.main-title {
    font-size: 28px;
    font-weight: bold;
    background: linear-gradient(180deg, #ffffff 0%, #00d4ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(0, 212, 255, 0.3);
    letter-spacing: 4px;
    white-space: nowrap;
}

.title-decoration {
    width: 60%;
    max-width: 300px;
    height: 2px;
    margin: 6px auto 0;
    background: linear-gradient(90deg, transparent, var(--text-accent), transparent);
    position: relative;
}

.title-decoration::after {
    content: '';
    position: absolute;
    top: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    background: var(--text-accent);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--text-accent);
}

/* 右侧时间和状态 */
.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.status-lights {
    display: flex;
    gap: 12px;
}

.status-light-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.status-label {
    font-size: 10px;
    color: var(--text-secondary);
}

.time-display {
    text-align: right;
}

.time-date {
    font-size: 13px;
    color: var(--text-secondary);
}

.time-clock {
    font-size: 24px;
    font-weight: bold;
    color: var(--text-accent);
    font-family: "Courier New", monospace;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
    letter-spacing: 2px;
}

.time-week {
    font-size: 11px;
    color: var(--text-secondary);
}

/* ========== 状态指示灯 ========== */
.status-light {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    position: relative;
}

.status-green {
    background: var(--color-green);
    box-shadow: 0 0 8px var(--color-green);
    animation: pulse-green 2s ease-in-out infinite;
}

.status-yellow {
    background: var(--color-yellow);
    box-shadow: 0 0 8px var(--color-yellow);
    animation: pulse-yellow 1.5s ease-in-out infinite;
}

.status-red {
    background: var(--color-red);
    box-shadow: 0 0 8px var(--color-red);
    animation: pulse-red 1s ease-in-out infinite;
}

@keyframes pulse-green {
    0%, 100% { box-shadow: 0 0 8px var(--color-green); }
    50% { box-shadow: 0 0 16px var(--color-green), 0 0 24px var(--color-green); }
}

@keyframes pulse-yellow {
    0%, 100% { box-shadow: 0 0 8px var(--color-yellow); }
    50% { box-shadow: 0 0 16px var(--color-yellow), 0 0 24px var(--color-yellow); }
}

@keyframes pulse-red {
    0%, 100% { box-shadow: 0 0 8px var(--color-red); }
    50% { box-shadow: 0 0 16px var(--color-red), 0 0 24px var(--color-red); }
}

/* ========== 发光卡片 ========== */
.glow-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    padding: 0;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow:
        0 0 20px var(--glow-color),
        inset 0 0 30px rgba(0, 212, 255, 0.03);
    transition: border-color 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

/* 卡片边框渐变发光 */
.glow-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--text-accent), transparent);
    opacity: 0.6;
}

/* 卡片右上角装饰 */
.glow-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 30px;
    height: 30px;
    border-top: 2px solid var(--card-border);
    border-right: 2px solid var(--card-border);
    border-top-right-radius: 8px;
    opacity: 0.5;
}

.glow-card:hover {
    border-color: var(--card-border-hover);
    box-shadow:
        0 0 30px rgba(0, 212, 255, 0.25),
        inset 0 0 30px rgba(0, 212, 255, 0.05);
}

/* ========== 卡片头部 ========== */
.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: linear-gradient(90deg, rgba(0, 212, 255, 0.08) 0%, transparent 100%);
}

.card-title-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-icon {
    color: var(--text-accent);
    font-size: 16px;
    text-shadow: 0 0 8px rgba(0, 212, 255, 0.5);
}

.card-title {
    font-size: 15px;
    font-weight: bold;
    color: var(--text-primary);
    letter-spacing: 1px;
}

.card-meta {
    font-size: 12px;
    color: var(--text-secondary);
}

/* ========== 科技分割线 ========== */
.tech-divider {
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(0, 212, 255, 0.3) 20%,
        rgba(0, 212, 255, 0.5) 50%,
        rgba(0, 212, 255, 0.3) 80%,
        transparent 100%);
    position: relative;
}

.tech-divider::before {
    content: '';
    position: absolute;
    left: 50%;
    top: -2px;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: var(--text-accent);
    border-radius: 50%;
    box-shadow: 0 0 6px var(--text-accent);
}

/* ========== 卡片内容区 ========== */
.card-body {
    padding: 14px 16px;
    flex: 1;
    overflow-y: auto;
}

/* 自定义滚动条 */
.card-body::-webkit-scrollbar {
    width: 4px;
}

.card-body::-webkit-scrollbar-track {
    background: rgba(0, 212, 255, 0.05);
}

.card-body::-webkit-scrollbar-thumb {
    background: rgba(0, 212, 255, 0.3);
    border-radius: 2px;
}

/* ========== 任务信息行 ========== */
.info-row {
    display: flex;
    align-items: flex-start;
    padding: 6px 0;
    border-bottom: 1px dashed rgba(0, 212, 255, 0.1);
    gap: 8px;
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    flex-shrink: 0;
    width: 70px;
    font-size: 13px;
    color: var(--text-secondary);
}

.info-value {
    flex: 1;
    font-size: 14px;
    color: var(--text-primary);
    word-break: break-all;
}

/* ========== 风险等级标签 ========== */
.risk-badge {
    display: inline-block;
    padding: 2px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 1px;
}

.risk-low {
    background: rgba(76, 175, 80, 0.2);
    color: var(--color-green);
    border: 1px solid var(--color-green);
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.3);
}

.risk-medium {
    background: rgba(255, 235, 59, 0.2);
    color: var(--color-yellow);
    border: 1px solid var(--color-yellow);
    box-shadow: 0 0 10px rgba(255, 235, 59, 0.3);
}

.risk-high {
    background: rgba(255, 152, 0, 0.2);
    color: var(--color-orange);
    border: 1px solid var(--color-orange);
    box-shadow: 0 0 10px rgba(255, 152, 0, 0.3);
}

.risk-extreme {
    background: rgba(244, 67, 54, 0.2);
    color: var(--color-red);
    border: 1px solid var(--color-red);
    box-shadow: 0 0 10px rgba(244, 67, 54, 0.3);
    animation: risk-blink 1.5s ease-in-out infinite;
}

@keyframes risk-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* ========== 数据面板 ========== */
.data-panel {
    display: grid;
    gap: 12px;
}

.personnel-grid {
    grid-template-columns: repeat(2, 1fr);
}

.data-item {
    text-align: center;
    padding: 16px 8px;
    background: linear-gradient(180deg, rgba(0, 212, 255, 0.08) 0%, rgba(0, 212, 255, 0.02) 100%);
    border: 1px solid rgba(0, 212, 255, 0.15);
    border-radius: 6px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.data-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--text-accent), transparent);
}

.data-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.2);
}

.data-value {
    font-size: 36px;
    font-weight: bold;
    font-family: "Courier New", monospace;
    color: var(--text-accent);
    text-shadow: 0 0 15px rgba(0, 212, 255, 0.4);
    line-height: 1.2;
}

.data-male { color: var(--color-male); text-shadow: 0 0 15px rgba(79, 195, 247, 0.4); }
.data-female { color: var(--color-female); text-shadow: 0 0 15px rgba(244, 143, 177, 0.4); }
.data-party { color: var(--color-party); text-shadow: 0 0 15px rgba(255, 82, 82, 0.4); }

.data-label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* ========== 数字跳动动画 ========== */
.number-animate {
    display: inline-block;
    transition: transform 0.3s;
}

.number-animate.pulse {
    animation: number-pulse 0.5s ease-out;
}

@keyframes number-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); text-shadow: 0 0 25px currentColor; }
    100% { transform: scale(1); }
}

/* ========== 装备列表 ========== */
.equipment-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.equipment-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: rgba(0, 212, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.1);
    border-radius: 4px;
    font-size: 13px;
    transition: background 0.3s;
}

.equipment-item:hover {
    background: rgba(0, 212, 255, 0.1);
}

.equipment-name {
    color: var(--text-primary);
}

.equipment-count {
    color: var(--text-accent);
    font-weight: bold;
    font-family: "Courier New", monospace;
}

/* ========== 照片轮播 ========== */
.photo-carousel {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.carousel-main {
    width: 100%;
    height: 320px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s;
}

.carousel-main img.fade-out {
    opacity: 0;
}

/* 轮播图描述文字 */
.carousel-desc {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px 16px;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.8) 100%);
    color: var(--text-primary);
    font-size: 13px;
    z-index: 2;
}

.carousel-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
}

.empty-icon {
    font-size: 40px;
    opacity: 0.5;
}

.empty-text {
    font-size: 14px;
}

/* 轮播控制按钮 */
.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.carousel-btn {
    width: 36px;
    height: 36px;
    border: 1px solid var(--card-border);
    background: rgba(0, 212, 255, 0.1);
    color: var(--text-accent);
    font-size: 24px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    line-height: 1;
}

.carousel-btn:hover {
    background: rgba(0, 212, 255, 0.2);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
}

.carousel-indicators {
    display: flex;
    gap: 6px;
}

.carousel-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(0, 212, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s;
}

.carousel-indicator.active {
    background: var(--text-accent);
    box-shadow: 0 0 8px var(--text-accent);
    width: 24px;
    border-radius: 4px;
}

/* 缩略图 */
.carousel-thumbnails {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 0;
}

.carousel-thumbnails::-webkit-scrollbar {
    height: 4px;
}

.carousel-thumbnails::-webkit-scrollbar-thumb {
    background: rgba(0, 212, 255, 0.3);
    border-radius: 2px;
}

.thumbnail {
    flex-shrink: 0;
    width: 80px;
    height: 54px;
    border: 2px solid transparent;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.3s;
    opacity: 0.5;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail.active {
    border-color: var(--text-accent);
    opacity: 1;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

.thumbnail:hover {
    opacity: 0.8;
}

/* ========== 处置进展时间线 ========== */
.progress-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding-left: 8px;
}

.timeline-item {
    position: relative;
    padding: 8px 0 16px 24px;
    border-left: 2px solid rgba(0, 212, 255, 0.2);
}

.timeline-item:last-child {
    border-left-color: transparent;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 10px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--text-accent);
    box-shadow: 0 0 8px var(--text-accent);
}

.timeline-item.completed::before {
    background: var(--color-green);
    box-shadow: 0 0 8px var(--color-green);
}

.timeline-time {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.timeline-content {
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.5;
}

.timeline-status {
    display: inline-block;
    margin-top: 4px;
    padding: 1px 8px;
    font-size: 11px;
    border-radius: 8px;
}

.status-completed {
    background: rgba(76, 175, 80, 0.2);
    color: var(--color-green);
}

.status-ongoing {
    background: rgba(0, 212, 255, 0.2);
    color: var(--text-accent);
}

/* ========== 协作单位列表 ========== */
.collaboration-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.collaboration-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: rgba(0, 212, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.1);
    border-radius: 4px;
    transition: background 0.3s;
}

.collaboration-item:hover {
    background: rgba(0, 212, 255, 0.1);
}

.collaboration-icon {
    width: 32px;
    height: 32px;
    background: rgba(0, 212, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.collaboration-info {
    flex: 1;
    min-width: 0;
}

.collaboration-name {
    font-size: 13px;
    color: var(--text-primary);
    font-weight: bold;
}

.collaboration-contact {
    font-size: 12px;
    color: var(--text-secondary);
}

/* ========== 领导指令列表 ========== */
.command-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.command-item {
    padding: 10px 12px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.05) 0%, rgba(0, 212, 255, 0.05) 100%);
    border: 1px solid rgba(0, 212, 255, 0.1);
    border-left: 3px solid var(--text-highlight);
    border-radius: 4px;
}

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

.command-leader {
    font-size: 13px;
    color: var(--text-highlight);
    font-weight: bold;
}

.command-time {
    font-size: 11px;
    color: var(--text-secondary);
}

.command-content {
    font-size: 13px;
    color: var(--text-primary);
    line-height: 1.5;
}

/* ========== 现场指挥/秘书信息 ========== */
.contact-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: rgba(0, 212, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.1);
    border-radius: 4px;
}

.contact-avatar {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--text-accent), rgba(0, 100, 200, 0.5));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    flex-shrink: 0;
}

.contact-info {
    flex: 1;
}

.contact-name {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: bold;
}

.contact-role {
    font-size: 12px;
    color: var(--text-secondary);
}

.contact-phone {
    font-size: 13px;
    color: var(--text-accent);
    font-family: "Courier New", monospace;
}

/* ========== 空状态 ========== */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    gap: 12px;
    color: var(--text-secondary);
}

.empty-state.hidden {
    display: none;
}

/* ========== 底部走马灯 ========== */
.footer-bar {
    background: linear-gradient(0deg, rgba(0, 30, 80, 0.9) 0%, rgba(0, 20, 60, 0.5) 100%);
    border-top: 1px solid var(--card-border);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.1);
    padding: 10px 0;
}

.marquee-container {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0 24px;
}

.marquee-label {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    padding: 4px 12px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid var(--card-border);
    border-radius: 4px;
    font-size: 13px;
    color: var(--text-accent);
    font-weight: bold;
}

.marquee-icon {
    font-size: 16px;
}

.marquee-wrapper {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.marquee-wrapper::before,
.marquee-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 40px;
    z-index: 2;
    pointer-events: none;
}

.marquee-wrapper::before {
    left: 0;
    background: linear-gradient(90deg, rgba(10, 14, 39, 0.9), transparent);
}

.marquee-wrapper::after {
    right: 0;
    background: linear-gradient(270deg, rgba(10, 14, 39, 0.9), transparent);
}

.marquee-content {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    animation: marquee-scroll 30s linear infinite;
}

.marquee-content:hover {
    animation-play-state: paused;
}

@keyframes marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.marquee-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 30px;
    font-size: 14px;
    color: var(--text-primary);
}

.marquee-item-time {
    color: var(--text-accent);
    font-family: "Courier New", monospace;
    font-size: 12px;
}

.marquee-separator {
    color: var(--text-secondary);
    opacity: 0.5;
}

.marquee-text {
    color: var(--text-secondary);
    font-size: 14px;
    padding: 0 20px;
}

/* 刷新状态 */
.refresh-status {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    padding: 4px 12px;
    background: rgba(0, 212, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.1);
    border-radius: 4px;
}

.refresh-text {
    font-size: 12px;
    color: var(--text-secondary);
}

/* ========== 响应式适配 ========== */

/* 大屏（1920px以上） */
@media (min-width: 1920px) {
    .main-title {
        font-size: 36px;
    }
    .data-value {
        font-size: 44px;
    }
    .carousel-main {
        height: 420px;
    }
}

/* 平板（768px-1024px） */
@media (max-width: 1024px) {
    .main-title {
        font-size: 22px;
        letter-spacing: 2px;
    }
    .header-inner {
        padding: 10px 16px;
    }
    .logo-name {
        font-size: 15px;
    }
    .time-clock {
        font-size: 20px;
    }
    .data-value {
        font-size: 30px;
    }
    .carousel-main {
        height: 280px;
    }
}

/* 手机端（768px以下） */
@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        gap: 10px;
        padding: 8px 12px;
    }

    .header-left,
    .header-right {
        width: 100%;
        justify-content: center;
    }

    .header-center {
        width: 100%;
        order: -1;
    }

    .main-title {
        font-size: 16px;
        letter-spacing: 1px;
        white-space: normal;
    }

    .logo-text {
        display: none;
    }

    .status-lights {
        gap: 8px;
    }

    .time-clock {
        font-size: 18px;
    }

    .main-content {
        gap: 8px !important;
        padding: 8px !important;
    }

    .glow-card {
        min-height: auto;
    }

    .data-value {
        font-size: 26px;
    }

    .data-label {
        font-size: 11px;
    }

    .carousel-main {
        height: 200px;
    }

    .thumbnail {
        width: 60px;
        height: 40px;
    }

    .card-title {
        font-size: 13px;
    }

    .card-header {
        padding: 8px 12px;
    }

    .card-body {
        padding: 10px 12px;
    }

    .marquee-container {
        padding: 0 12px;
        gap: 8px;
        flex-wrap: wrap;
    }

    .marquee-label {
        font-size: 11px;
        padding: 2px 8px;
    }

    .refresh-status {
        font-size: 11px;
    }

    .marquee-wrapper {
        order: 3;
        width: 100%;
    }
}

/* 小屏手机（480px以下） */
@media (max-width: 480px) {
    .main-title {
        font-size: 14px;
    }

    .personnel-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .data-item {
        padding: 10px 4px;
    }

    .data-value {
        font-size: 22px;
    }

    .info-label {
        width: 60px;
        font-size: 12px;
    }

    .info-value {
        font-size: 13px;
    }

    .carousel-main {
        height: 160px;
    }

    .carousel-btn {
        width: 30px;
        height: 30px;
        font-size: 20px;
    }
}
