/* ==========================================================================
   全球汽车出口管理系统 - 核心设计样式表 (css/style.css)
   视觉规范：高端暗黑科技风格 (Cyberpunk-Glassmorphism)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Noto+Sans+SC:wght@300;400;500;700&display=swap');

:root {
    --bg-primary: #070b19;
    --bg-secondary: #0c122c;
    --bg-card: rgba(17, 25, 54, 0.6);
    --border-color: rgba(255, 255, 255, 0.08);
    
    --color-primary: #00f2fe;
    --color-secondary: #4facfe;
    --color-accent: #c084fc;
    --color-success: #10b981;
    --color-warning: #f59e0b;
    --color-danger: #ef4444;
    --color-text-main: #f3f4f6;
    --color-text-muted: #9ca3af;
    
    --gradient-primary: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
    --gradient-glow: 0 0 15px rgba(0, 242, 254, 0.4);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    background-color: var(--bg-primary);
    color: var(--color-text-main);
    font-family: 'Outfit', 'Noto Sans SC', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    line-height: 1.5;
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
}

/* ==========================================
   通用布局组件
   ========================================== */

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.glass-panel {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    transition: var(--transition-smooth);
}

.glass-panel:hover {
    border-color: rgba(0, 242, 254, 0.2);
}

/* ==========================================
   Header & Navigation
   ========================================== */

header {
    background: rgba(7, 11, 25, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 15px 0;
    transition: var(--transition-smooth);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--gradient-glow);
}

.logo-text {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 1px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-subtitle {
    font-size: 10px;
    color: var(--color-text-muted);
    text-transform: uppercase;
    display: block;
    margin-top: -3px;
}

.nav-links {
    display: flex;
    gap: 10px;
    list-style: none;
    overflow-x: auto;
}

.nav-links li a {
    color: var(--color-text-muted);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition-smooth);
    white-space: nowrap;
}

.nav-links li a:hover,
.nav-links li.active a {
    color: var(--color-text-main);
    background: rgba(0, 242, 254, 0.1);
    border: 1px solid rgba(0, 242, 254, 0.2);
}

.action-bar {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* 语言切换按钮 */
.lang-selector {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 3px;
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--color-text-muted);
    font-family: inherit;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    transition: var(--transition-smooth);
}

.lang-btn.active {
    background: var(--gradient-primary);
    color: #000;
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.3);
}

/* ==========================================
   演示角色切换面板 (Demo Controller Floating)
   ========================================== */

.demo-console {
    background: rgba(12, 18, 44, 0.95);
    border: 2px solid var(--color-primary);
    box-shadow: 0 0 25px rgba(0, 242, 254, 0.2);
    border-radius: 12px;
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 1000;
    padding: 15px;
    max-width: 320px;
    transition: var(--transition-smooth);
}

.demo-console.minimized {
    max-height: 48px;
    max-width: 200px;
    overflow: hidden;
    opacity: 0.7;
}

.demo-console:hover {
    opacity: 1;
}

.demo-console-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 8px;
    margin-bottom: 12px;
}

.demo-console-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: 0.5px;
}

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

.demo-role-btn {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 6px;
    color: var(--color-text-muted);
    font-size: 12px;
    padding: 8px;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition-smooth);
}

.demo-role-btn:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.2);
    color: var(--color-text-main);
}

.demo-role-btn.active {
    background: var(--gradient-primary);
    color: #000;
    font-weight: 700;
    border-color: transparent;
    box-shadow: var(--gradient-glow);
}

/* ==========================================
   页面视图容器 (View Swapping)
   ========================================== */

main {
    flex: 1;
    padding: 30px 0;
}

.view-section {
    display: none;
    animation: fadeIn 0.4s ease forwards;
}

.view-section.active {
    display: block;
}

#view-login.active {
    display: flex;
}

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

/* ==========================================
   1. 🏠 首页 (Homepage)
   ========================================== */

.hero-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 480px;
    padding: 40px 0;
    gap: 40px;
}

.hero-content {
    flex: 1;
    max-width: 650px;
}

.hero-tag {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(0, 242, 254, 0.1);
    border: 1px solid rgba(0, 242, 254, 0.3);
    color: var(--color-primary);
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.hero-content h1 {
    font-size: 42px;
    line-height: 1.2;
    font-weight: 800;
    margin-bottom: 20px;
}

.hero-content p {
    color: var(--color-text-muted);
    font-size: 16px;
    margin-bottom: 30px;
    line-height: 1.6;
}

.hero-btn-group {
    display: flex;
    gap: 15px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #000;
    border: none;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: var(--gradient-glow);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-smooth);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(0, 242, 254, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-text-main);
    border: 1px solid var(--border-color);
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

.hero-glow-back {
    position: absolute;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(0, 242, 254, 0.25) 0%, rgba(79, 172, 254, 0) 70%);
    filter: blur(20px);
    z-index: 1;
}

.hero-car-mockup {
    width: 100%;
    max-width: 550px;
    z-index: 2;
    filter: drop-shadow(0 15px 30px rgba(0, 242, 254, 0.3));
    animation: floatCar 4s ease-in-out infinite;
}

@keyframes floatCar {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* 热门品牌 */
.brands-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    margin: 40px 0;
}

.brand-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.brand-card:hover {
    background: rgba(0, 242, 254, 0.05);
    border-color: var(--color-primary);
    transform: translateY(-5px);
}

.brand-logo {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--color-text-main);
}

.brand-name {
    font-size: 13px;
    color: var(--color-text-muted);
}

/* 核心服务保障 */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.service-card {
    padding: 30px;
    border-radius: 16px;
    background: rgba(17, 25, 54, 0.4);
    border: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

.service-card:hover {
    border-color: rgba(192, 132, 252, 0.3);
    transform: scale(1.02);
}

.service-icon {
    font-size: 32px;
    margin-bottom: 20px;
    color: var(--color-primary);
}

.service-card h3 {
    font-size: 18px;
    margin-bottom: 12px;
    color: var(--color-text-main);
}

.service-card p {
    color: var(--color-text-muted);
    font-size: 14px;
    line-height: 1.6;
}

/* ==========================================
   2. 🚗 车源大厅 (Car Hall) & 卡片
   ========================================== */

.hall-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
}

.filter-sidebar {
    height: fit-content;
}

.filter-section {
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 20px;
}

.filter-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.filter-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--color-text-main);
}

.select-custom, .input-custom {
    width: 100%;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--color-text-main);
    padding: 10px 14px;
    font-family: inherit;
    font-size: 13px;
    outline: none;
    transition: var(--transition-smooth);
}

.select-custom:focus, .input-custom:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 8px rgba(0, 242, 254, 0.2);
}

.select-custom option {
    background-color: #0c122c;
    color: var(--color-text-main);
}

.search-bar-row {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.search-bar-row .input-custom {
    flex: 1;
    font-size: 14px;
}

.cars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.car-item-card {
    background: rgba(17, 25, 54, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.car-item-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-primary);
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
}

.car-card-img-wrapper {
    position: relative;
    padding-top: 60%; /* 16:9 ratio placeholder */
    background: #0f172a;
}

.car-card-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.car-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    background: rgba(0,0,0,0.8);
    border: 1px solid rgba(255,255,255,0.1);
}

.car-badge.status-available { color: var(--color-primary); border-color: var(--color-primary); }
.car-badge.status-ordered { color: var(--color-warning); border-color: var(--color-warning); }
.car-badge.status-shipped { color: var(--color-accent); border-color: var(--color-accent); }
.car-badge.status-delivered { color: var(--color-success); border-color: var(--color-success); }
.car-badge.status-completed { color: #fff; background: var(--color-success); }

.car-card-info {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.car-card-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}

.car-card-specs {
    font-size: 12px;
    color: var(--color-text-muted);
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.car-card-price {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.car-card-price-val {
    color: var(--color-primary);
}

/* ==========================================
   3. 📋 车辆详情页 (Car Details)
   ========================================== */

.details-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 30px;
}

.details-main-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* 图片轮播组件 */
.carousel-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #0f172a;
    border: 1px solid var(--border-color);
}

.carousel-stage {
    position: relative;
    padding-top: 56.25%; /* 16:9 */
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 2;
}

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

.carousel-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.carousel-nav-btn:hover {
    background: var(--color-primary);
    color: #000;
}

.carousel-nav-prev { left: 15px; }
.carousel-nav-next { right: 15px; }

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: rgba(0,0,0,0.4);
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    cursor: pointer;
}

.carousel-dot.active {
    background: var(--color-primary);
    width: 20px;
    border-radius: 4px;
}

.angle-label-overlay {
    position: absolute;
    bottom: 50px;
    left: 15px;
    background: rgba(0,0,0,0.7);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
    z-index: 5;
}

/* 视频播放器 */
.video-section-box {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.video-section-box h3 {
    padding: 16px;
    background: rgba(255,255,255,0.02);
    border-bottom: 1px solid var(--border-color);
}

.video-wrapper {
    position: relative;
    padding-top: 56.25%; /* 16:9 */
    background: #000;
}

.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.vin-stamp-overlay {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(16, 185, 129, 0.85);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.5px;
    z-index: 5;
}

/* 侧边信息栏 */
.details-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: fit-content;
}

.detail-price-box {
    text-align: center;
}

.detail-price-main {
    font-size: 32px;
    font-weight: 800;
    color: var(--color-primary);
    margin: 8px 0;
}

.detail-price-multilingual {
    display: flex;
    justify-content: center;
    gap: 12px;
    font-size: 12px;
    color: var(--color-text-muted);
}

.detail-spec-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin: 15px 0;
}

.detail-spec-item {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-color);
    padding: 10px;
    border-radius: 8px;
}

.detail-spec-label {
    font-size: 11px;
    color: var(--color-text-muted);
}

.detail-spec-value {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
}

/* ==========================================
   4. 💳 确认订单页 (Confirm Order)
   ========================================== */

.order-layout {
    display: grid;
    grid-template-columns: 1fr 450px;
    gap: 30px;
}

.order-bill-summary {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 15px;
}

.bill-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    padding: 8px 0;
    border-bottom: 1px dashed rgba(255,255,255,0.05);
}

.bill-row.total {
    border-bottom: none;
    font-size: 18px;
    font-weight: 800;
    color: var(--color-primary);
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 15px;
    margin-top: 10px;
}

/* ==========================================
   5. 📦 我的订单与 6 步物流时间轴 (My Orders & Timeline)
   ========================================== */

.timeline-horizontal {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin: 40px 0;
}

.timeline-horizontal::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 40px;
    right: 40px;
    height: 3px;
    background: rgba(255,255,255,0.08);
    z-index: 1;
}

.timeline-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    z-index: 2;
    text-align: center;
}

.timeline-dot {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 2px solid var(--color-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--color-text-muted);
    transition: var(--transition-smooth);
}

.timeline-node.completed .timeline-dot {
    background: var(--color-success);
    border-color: var(--color-success);
    color: #000;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
}

.timeline-node.active .timeline-dot {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #000;
    box-shadow: var(--gradient-glow);
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 242, 254, 0.7); }
    70% { transform: scale(1.08); box-shadow: 0 0 0 10px rgba(0, 242, 254, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 242, 254, 0); }
}

.timeline-label {
    font-size: 12px;
    font-weight: 600;
    margin-top: 12px;
    max-width: 110px;
    color: var(--color-text-muted);
}

.timeline-node.active .timeline-label,
.timeline-node.completed .timeline-label {
    color: var(--color-text-main);
}

/* 模拟地图追踪 */
.map-tracker-box {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    position: relative;
    height: 380px;
    background: #0f162e;
}

.map-svg-bg {
    width: 100%;
    height: 100%;
    opacity: 0.75;
}

.map-marker {
    position: absolute;
    width: 16px;
    height: 16px;
    background: var(--color-primary);
    border: 3px solid #fff;
    border-radius: 50%;
    box-shadow: var(--gradient-glow);
    transition: top 1.5s ease, left 1.5s ease;
    z-index: 5;
}

.map-marker-pulse {
    position: absolute;
    width: 40px;
    height: 40px;
    background: rgba(0, 242, 254, 0.3);
    border-radius: 50%;
    animation: mapPulse 1.5s infinite;
    z-index: 4;
    transform: translate(-12px, -12px);
}

@keyframes mapPulse {
    0% { transform: scale(0.5); opacity: 1; }
    100% { transform: scale(1.8); opacity: 0; }
}

/* ==========================================
   6. 🏢 车商后台 (Dealer Workspace)
   ========================================== */

.step-form-indicator {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.step-indicator-item {
    flex: 1;
    text-align: center;
    padding: 10px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text-muted);
}

.step-indicator-item.active {
    background: rgba(0, 242, 254, 0.1);
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.upload-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.upload-slot {
    border: 2px dashed rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.02);
    border-radius: 8px;
    height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 11px;
    color: var(--color-text-muted);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.upload-slot:hover {
    border-color: var(--color-primary);
    background: rgba(0, 242, 254, 0.05);
}

.upload-slot img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    top: 0;
    left: 0;
}

.upload-slot input {
    display: none;
}

/* ==========================================
   7. 🤝 翻译服务与模拟聊天室 (Translator Chat)
   ========================================== */

.chat-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 20px;
    height: 520px;
}

.chat-list {
    border-right: 1px solid var(--border-color);
    overflow-y: auto;
}

.chat-user-item {
    padding: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-user-item:hover, .chat-user-item.active {
    background: rgba(0, 242, 254, 0.05);
}

.chat-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.chat-user-info {
    flex: 1;
}

.chat-user-name {
    font-size: 13px;
    font-weight: 700;
}

.chat-user-status {
    font-size: 11px;
    color: var(--color-success);
}

.chat-window {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.chat-window-header {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    font-weight: 700;
    color: var(--color-primary);
}

.chat-messages-box {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background: rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-bubble {
    max-width: 70%;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.4;
    word-break: break-word;
}

.chat-bubble.sent {
    background: var(--gradient-primary);
    color: #000;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

.chat-bubble.received {
    background: rgba(255,255,255,0.06);
    color: #fff;
    align-self: flex-start;
    border-bottom-left-radius: 2px;
    border: 1px solid var(--border-color);
}

.chat-bubble-meta {
    font-size: 10px;
    margin-top: 4px;
    opacity: 0.6;
}

.chat-input-row {
    display: flex;
    gap: 10px;
    padding: 15px;
    border-top: 1px solid var(--border-color);
}

/* ==========================================
   8. 📊 数据大屏看板 (Charts & KPIs)
   ========================================== */

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.kpi-card {
    background: rgba(17, 25, 54, 0.5);
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: 12px;
}

.kpi-label {
    font-size: 12px;
    color: var(--color-text-muted);
}

.kpi-value {
    font-size: 26px;
    font-weight: 800;
    color: var(--color-primary);
    margin-top: 6px;
}

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

.chart-card {
    background: rgba(17, 25, 54, 0.4);
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: 16px;
}

.chart-container-svg {
    width: 100%;
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* ==========================================
   交互表单与表格 (Admin / Providers)
   ========================================== */

.table-custom {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    text-align: left;
}

.table-custom th, .table-custom td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
    font-size: 13px;
}

.table-custom th {
    font-weight: 700;
    color: var(--color-text-muted);
    background: rgba(255,255,255,0.02);
}

.table-custom tr:hover td {
    background: rgba(255,255,255,0.02);
}

.grid-buttons {
    display: flex;
    gap: 8px;
}

.btn-sm {
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 11px;
    cursor: pointer;
    font-weight: 700;
}

.btn-success { background: var(--color-success); color: #000; border: none; }
.btn-danger { background: var(--color-danger); color: #fff; border: none; }
.btn-info { background: var(--color-secondary); color: #000; border: none; }

/* ==========================================
   9. 审核与交车须知模态框 (Modals)
   ========================================== */

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.modal-content {
    background: var(--bg-secondary);
    border: 1px solid var(--color-primary);
    border-radius: 16px;
    width: 100%;
    max-width: 500px;
    padding: 24px;
    box-shadow: 0 0 30px rgba(0,242,254,0.3);
    max-height: 85vh; /* 限制弹窗最高占屏幕的 85% */
    overflow-y: auto; /* 当内容超出时，在内部启用纵向滚动条，防止顶部和底部内容被屏幕挡住 */
}

/* ==========================================
   响应式断点设计
   ========================================== */

@media (max-width: 1024px) {
    .details-layout, .order-layout, .hall-layout, .charts-row {
        grid-template-columns: 1fr;
    }
    
    .kpi-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-section {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-btn-group {
        justify-content: center;
    }
    
    .kpi-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline-horizontal {
        flex-direction: column;
        gap: 15px;
        margin: 20px 0;
    }
    
    .timeline-horizontal::before {
        display: none;
    }
    
    .timeline-node {
        flex-direction: row;
        text-align: left;
        gap: 15px;
    }
    
    .timeline-label {
        margin-top: 0;
        max-width: 100%;
    }
}

@keyframes scannerLine {
    0% { top: 0%; opacity: 0.8; }
    50% { top: 100%; opacity: 0.8; }
    100% { top: 0%; opacity: 0.8; }
}
