/* 设计系统变量 */
:root {
  --background: oklch(1.0000 0 0);
  --foreground: oklch(0 0 0);
  --card: oklch(1.0000 0 0);
  --card-foreground: oklch(0 0 0);
  --popover: oklch(1.0000 0 0);
  --popover-foreground: oklch(0 0 0);
  --primary: oklch(0.6489 0.2370 26.9728);
  --primary-foreground: oklch(1.0000 0 0);
  --secondary: oklch(0.9680 0.2110 109.7692);
  --secondary-foreground: oklch(0 0 0);
  --muted: oklch(0.9551 0 0);
  --muted-foreground: oklch(0.3211 0 0);
  --accent: oklch(0.5635 0.2408 260.8178);
  --accent-foreground: oklch(1.0000 0 0);
  --destructive: oklch(0 0 0);
  --destructive-foreground: oklch(1.0000 0 0);
  --border: oklch(0 0 0);
  --input: oklch(0 0 0);
  --ring: oklch(0.6489 0.2370 26.9728);
  --chart-1: oklch(0.6489 0.2370 26.9728);
  --chart-2: oklch(0.9680 0.2110 109.7692);
  --chart-3: oklch(0.5635 0.2408 260.8178);
  --chart-4: oklch(0.7323 0.2492 142.4953);
  --chart-5: oklch(0.5931 0.2726 328.3634);
  --sidebar: oklch(0.9551 0 0);
  --sidebar-foreground: oklch(0 0 0);
  --sidebar-primary: oklch(0.6489 0.2370 26.9728);
  --sidebar-primary-foreground: oklch(1.0000 0 0);
  --sidebar-accent: oklch(0.5635 0.2408 260.8178);
  --sidebar-accent-foreground: oklch(1.0000 0 0);
  --sidebar-border: oklch(0 0 0);
  --sidebar-ring: oklch(0.6489 0.2370 26.9728);
  --font-sans: 'DM Sans', 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
  --font-serif: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
  --font-mono: 'Space Mono', 'Consolas', 'Monaco', monospace;
  --radius: 12px;
  --shadow-2xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-xs: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  --shadow-sm: 0 2px 4px -1px rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.06);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 6px 12px -2px rgba(0, 0, 0, 0.1), 0 3px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 20px -3px rgba(0, 0, 0, 0.1), 0 4px 8px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 40px -5px rgba(0, 0, 0, 0.1), 0 8px 16px -4px rgba(0, 0, 0, 0.05);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --tracking-normal: 0em;
  --spacing: 0.25rem;
  
  /* 圆角系统 */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

.dark {
  --background: oklch(0 0 0);
  --foreground: oklch(1.0000 0 0);
  --card: oklch(0.3211 0 0);
  --card-foreground: oklch(1.0000 0 0);
  --popover: oklch(0.3211 0 0);
  --popover-foreground: oklch(1.0000 0 0);
  --primary: oklch(0.7044 0.1872 23.1858);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.9691 0.2005 109.6228);
  --secondary-foreground: oklch(0 0 0);
  --muted: oklch(0.3211 0 0);
  --muted-foreground: oklch(0.8452 0 0);
  --accent: oklch(0.6755 0.1765 252.2592);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(1.0000 0 0);
  --destructive-foreground: oklch(0 0 0);
  --border: oklch(1.0000 0 0);
  --input: oklch(1.0000 0 0);
  --ring: oklch(0.7044 0.1872 23.1858);
  --chart-1: oklch(0.7044 0.1872 23.1858);
  --chart-2: oklch(0.9691 0.2005 109.6228);
  --chart-3: oklch(0.6755 0.1765 252.2592);
  --chart-4: oklch(0.7395 0.2268 142.8504);
  --chart-5: oklch(0.6131 0.2458 328.0714);
  --sidebar: oklch(0 0 0);
  --sidebar-foreground: oklch(1.0000 0 0);
  --sidebar-primary: oklch(0.7044 0.1872 23.1858);
  --sidebar-primary-foreground: oklch(0 0 0);
  --sidebar-accent: oklch(0.6755 0.1765 252.2592);
  --sidebar-accent-foreground: oklch(0 0 0);
  --sidebar-border: oklch(1.0000 0 0);
  --sidebar-ring: oklch(0.7044 0.1872 23.1858);
}

/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    line-height: 1.6;
    color: var(--foreground);
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    background-attachment: fixed;
    letter-spacing: var(--tracking-normal);
    position: relative;
}

/* 动态背景装饰 */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: backgroundMove 20s linear infinite;
    z-index: -1;
}

@keyframes backgroundMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* 装饰性浮动形状 */
.floating-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(232, 99, 87, 0.1), rgba(255, 153, 102, 0.1));
    backdrop-filter: blur(2px);
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    left: 5%;
    animation: float 20s ease-in-out infinite;
}

.shape-2 {
    width: 200px;
    height: 200px;
    top: 60%;
    right: 10%;
    animation: float 15s ease-in-out infinite 2s;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
}

.shape-3 {
    width: 150px;
    height: 150px;
    bottom: 20%;
    left: 15%;
    animation: float 18s ease-in-out infinite 4s;
    background: linear-gradient(135deg, rgba(255, 153, 102, 0.08), rgba(232, 99, 87, 0.08));
}

.shape-4 {
    width: 250px;
    height: 250px;
    top: 30%;
    right: 20%;
    animation: float 22s ease-in-out infinite 1s;
    background: linear-gradient(135deg, rgba(154, 209, 212, 0.1), rgba(147, 197, 253, 0.1));
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(30px, -30px) rotate(90deg);
    }
    50% {
        transform: translate(60px, 20px) rotate(180deg);
    }
    75% {
        transform: translate(-20px, 40px) rotate(270deg);
    }
}


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

/* 头部样式 */
.header {
    background: linear-gradient(135deg, rgba(232, 99, 87, 0.95) 0%, rgba(255, 153, 102, 0.95) 100%);
    backdrop-filter: blur(10px);
    color: var(--primary-foreground);
    padding: 1rem 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header:hover {
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15);
}

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

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: white;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--primary-foreground);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    transition: all 0.3s;
    border: 2px solid transparent;
}

.nav-link:hover,
.nav-link.active {
    background-color: var(--accent);
    color: var(--accent-foreground);
    box-shadow: var(--shadow-sm);
    border-color: var(--border);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* 主要内容区域 */
.main {
    min-height: calc(100vh - 140px);
    padding: 2rem 0;
}

/* 首页样式 */
.hero {
    text-align: center;
    padding: 5rem 2rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%);
    backdrop-filter: blur(10px);
    color: var(--card-foreground);
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    margin-bottom: 3rem;
    border: 2px solid rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease-out;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(232, 99, 87, 0.05) 0%, transparent 70%);
    animation: heroGlow 8s ease-in-out infinite;
}

@keyframes heroGlow {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(10%, 10%) scale(1.1); }
}

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

.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--foreground);
    font-weight: 700;
    background: linear-gradient(135deg, #e86357 0%, #ff9966 50%, #667eea 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
    animation: titleSlide 0.8s ease-out 0.2s both;
}

@keyframes titleSlide {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-description {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
    position: relative;
    z-index: 1;
    animation: titleSlide 0.8s ease-out 0.4s both;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
    animation: titleSlide 0.8s ease-out 0.6s both;
}

/* 功能特性 */
.features {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.6) 100%);
    backdrop-filter: blur(10px);
    color: var(--card-foreground);
    padding: 3rem;
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    border: 2px solid rgba(255, 255, 255, 0.8);
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    color: var(--foreground);
    font-weight: 700;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

.feature-card {
    text-align: center;
    padding: 2.5rem;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%);
    backdrop-filter: blur(10px);
    color: var(--muted-foreground);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(232, 99, 87, 0.1), transparent);
    transition: left 0.5s;
}

.feature-card:hover::before {
    left: 100%;
}

.feature-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 60px rgba(232, 99, 87, 0.2);
    background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(255, 240, 235, 1) 100%);
    border-color: rgba(232, 99, 87, 0.3);
}

.feature-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    display: inline-block;
    animation: iconFloat 3s ease-in-out infinite;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

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

.feature-card:nth-child(1) .feature-icon { animation-delay: 0s; }
.feature-card:nth-child(2) .feature-icon { animation-delay: 0.2s; }
.feature-card:nth-child(3) .feature-icon { animation-delay: 0.4s; }

.feature-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--foreground);
    font-weight: 600;
}

.feature-description {
    color: var(--muted-foreground);
    line-height: 1.6;
}

/* 公告区域样式 */
.announcements-section {
    margin-top: 4rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.6) 100%);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    border: 2px solid rgba(255, 255, 255, 0.8);
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.announcements-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.announcement-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(245, 247, 250, 0.95) 100%);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    border-left: 4px solid var(--primary);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.announcement-card:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
}

.announcement-card.priority-urgent {
    border-left-color: #ef4444;
    background: linear-gradient(135deg, rgba(254, 242, 242, 0.95) 0%, rgba(254, 226, 226, 0.95) 100%);
}

.announcement-card.priority-high {
    border-left-color: #f97316;
    background: linear-gradient(135deg, rgba(255, 247, 237, 0.95) 0%, rgba(254, 234, 209, 0.95) 100%);
}

.announcement-card.priority-normal {
    border-left-color: var(--primary);
}

.announcement-card.priority-low {
    border-left-color: #6b7280;
}

.announcement-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.announcement-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--foreground);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.announcement-priority-badge {
    font-size: 0.7rem;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-weight: 500;
}

.announcement-priority-badge.urgent {
    background: #ef4444;
    color: white;
}

.announcement-priority-badge.high {
    background: #f97316;
    color: white;
}

.announcement-meta {
    font-size: 0.8rem;
    color: var(--muted-foreground);
}

.announcement-content {
    color: var(--foreground);
    line-height: 1.6;
    margin: 0;
    white-space: pre-wrap;
}

.announcement-footer {
    margin-top: 0.75rem;
    font-size: 0.75rem;
    color: var(--muted-foreground);
}

.announcement-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 2rem;
    color: var(--muted-foreground);
}

.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--muted);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.no-announcements {
    text-align: center;
    padding: 2rem;
    color: var(--muted-foreground);
}

.no-data-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 0.5rem;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--border);
    border-radius: 50px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
    font-family: var(--font-sans);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    z-index: -1;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, #e86357 0%, #ff9966 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(232, 99, 87, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(232, 99, 87, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%);
    backdrop-filter: blur(10px);
    color: #333;
    border: 2px solid rgba(232, 99, 87, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, rgba(232, 99, 87, 0.1) 0%, rgba(255, 153, 102, 0.1) 100%);
    border-color: rgba(232, 99, 87, 0.6);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.btn-full {
    width: 100%;
}

/* 登录页面样式 */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.login-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.85) 100%);
    backdrop-filter: blur(20px);
    color: var(--card-foreground);
    padding: 3rem;
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    border: 2px solid rgba(255, 255, 255, 0.8);
    width: 100%;
    max-width: 400px;
    animation: slideIn 0.6s ease-out;
    position: relative;
    overflow: hidden;
}

.login-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(232, 99, 87, 0.05) 0%, transparent 70%);
    animation: cardGlow 8s ease-in-out infinite;
}

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

@keyframes cardGlow {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-10%, -10%) rotate(180deg); }
}

.login-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--foreground);
    font-weight: 700;
    background: linear-gradient(135deg, #e86357 0%, #ff9966 50%, #667eea 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
}

.login-form {
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--foreground);
}

.form-input,
.form-select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    font-size: 1rem;
    font-family: var(--font-sans);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    color: var(--foreground);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: #e86357;
    box-shadow: 0 0 0 3px rgba(232, 99, 87, 0.1), 0 4px 15px rgba(232, 99, 87, 0.2);
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 1);
}

.form-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.login-info {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 5px;
    border-left: 4px solid #667eea;
}

.login-info h4 {
    margin-bottom: 1rem;
    color: #333;
}

.login-info ul {
    list-style: none;
}

.login-info li {
    padding: 0.25rem 0;
    color: #666;
}

.admin-note {
    margin-top: 1rem;
    padding: 0.75rem;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 5px;
    color: #856404;
    font-size: 0.9rem;
}

.form-help {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.8rem;
    color: #6c757d;
}

.quick-fill-btn {
    background: #17a2b8;
    color: white;
    border: none;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    font-size: 0.8rem;
    cursor: pointer;
    margin-left: 0.5rem;
    transition: background-color 0.3s;
}

.quick-fill-btn:hover {
    background: #138496;
}

.password-strength {
    margin-top: 0.5rem;
}

.strength-bar {
    width: 100%;
    height: 4px;
    background: #e9ecef;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 0.25rem;
}

.strength-fill {
    height: 100%;
    transition: width 0.3s, background-color 0.3s;
    width: 0%;
}

.strength-fill.weak {
    width: 33%;
    background: #dc3545;
}

.strength-fill.medium {
    width: 66%;
    background: #ffc107;
}

.strength-fill.strong {
    width: 100%;
    background: #28a745;
}

.strength-text {
    font-size: 0.8rem;
    font-weight: 500;
}

.strength-text.weak {
    color: #dc3545;
}

.strength-text.medium {
    color: #ffc107;
}

.strength-text.strong {
    color: #28a745;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    padding: 20px;
    background-color: rgba(0,0,0,0.5);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--card);
    color: var(--card-foreground);
    margin: 0 auto;
    padding: 0;
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-2xl);
    border: 2px solid var(--border);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e9ecef;
}

.modal-header h3 {
    margin: 0;
    color: var(--foreground);
    font-weight: 700;
}

.modal-close {
    cursor: pointer;
    color: #999;
}

/* 模态框头部的关闭按钮（×号）样式 */
.modal-header .modal-close {
    font-size: 1.5rem;
    font-weight: bold;
    line-height: 1;
}

.modal-close:hover {
    color: #333;
}

.register-form {
    padding: 1.5rem;
}

/* 控制台样式 */
.dashboard-section {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%);
    backdrop-filter: blur(10px);
    color: var(--card-foreground);
    padding: 2rem;
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    border: 2px solid rgba(255, 255, 255, 0.8);
    animation: fadeInUp 0.6s ease-out;
}

.dashboard-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--foreground);
    font-weight: 700;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 0.5rem;
}

/* 学生控制台 */
.student-info-card {
    background: linear-gradient(135deg, rgba(232, 99, 87, 0.95) 0%, rgba(255, 153, 102, 0.95) 100%);
    backdrop-filter: blur(10px);
    color: var(--primary-foreground);
    padding: 2rem;
    border-radius: 25px;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: 0 15px 45px rgba(232, 99, 87, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
    animation: slideIn 0.6s ease-out;
}

.student-info-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: cardGlow 10s ease-in-out infinite;
}

.student-avatar {
    font-size: 3rem;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    color: white;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
    animation: avatarBounce 2s ease-in-out infinite;
}

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

.student-details h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
    position: relative;
    z-index: 1;
}

.student-details p {
    margin: 0.25rem 0;
    opacity: 0.95;
    position: relative;
    z-index: 1;
}

/* 余额显示样式 */
.student-balance,
.driver-balance {
    margin-left: auto;
    text-align: center;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 1rem 1.5rem;
    border-radius: 15px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 1;
}

.balance-label {
    font-size: 0.85rem;
    opacity: 0.9;
    margin-bottom: 0.25rem;
}

.balance-amount {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.student-balance .btn,
.driver-balance .btn {
    margin-top: 0.5rem;
}

/* 充值模态框样式 */
.recharge-options {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
    margin: 1.5rem 0;
}

.recharge-amount-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--border);
    background: var(--card);
    color: var(--card-foreground);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s;
    font-family: var(--font-sans);
}

.recharge-amount-btn:hover,
.recharge-amount-btn.active {
    border-color: var(--primary);
    background: var(--primary);
    color: var(--primary-foreground);
}

.custom-amount {
    margin: 1.5rem 0;
}

.custom-amount label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.custom-amount input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: var(--font-sans);
}

.btn-full {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
}

.recharge-tip {
    text-align: center;
    margin-top: 1rem;
    color: var(--muted-foreground);
    font-size: 0.9rem;
}

.destination-card {
    background: var(--card);
    color: var(--card-foreground);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-lg);
}

.destination-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.destination-header h4 {
    margin: 0;
    color: var(--foreground);
    font-weight: 600;
}

.destination-badge {
    background: var(--secondary);
    color: var(--secondary-foreground);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-xl);
    font-weight: 600;
    border: 2px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.destination-info p {
    margin: 0.5rem 0;
    color: var(--muted-foreground);
}

.student-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    justify-content: center;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-icon {
    font-size: 1.2rem;
}

.modal-body {
    padding: 1.5rem;
}

.modal-description {
    margin-bottom: 1.5rem;
    color: #666;
    text-align: center;
}

/* 出发地选择样式 */
.pickup-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 1rem;
}

.pickup-btn {
    padding: 0.75rem 1rem;
    border: 2px solid var(--border);
    background: var(--card);
    color: var(--card-foreground);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-sans);
    font-size: 0.9rem;
}

.pickup-btn:hover {
    border-color: var(--primary);
    background: var(--muted);
}

.pickup-btn.active {
    border-color: var(--primary);
    background: var(--primary);
    color: var(--primary-foreground);
}

.pickup-icon {
    font-size: 1.2rem;
}

.pickup-name {
    font-weight: 500;
}

.dormitory-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.dormitory-btn {
    padding: 1.5rem;
    border: 2px solid var(--border);
    background: var(--card);
    color: var(--card-foreground);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-sans);
}

.dormitory-btn:hover {
    border-color: var(--primary);
    background: var(--muted);
    color: var(--muted-foreground);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.dormitory-icon {
    font-size: 2rem;
}

.dormitory-name {
    font-weight: 600;
    color: var(--foreground);
}

.dormitory-count {
    font-size: 0.8rem;
    color: var(--muted-foreground);
    background: var(--muted);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    font-weight: 500;
}

.timer-display {
    background: var(--secondary);
    color: var(--secondary-foreground);
    border: 2px solid var(--border);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    text-align: center;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-lg);
}

.timer-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.timer-content .btn {
    margin-left: 1rem;
}

.timer-icon {
    font-size: 2rem;
}

.timer-text p {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 500;
}

.timer-text small {
    color: #6c757d;
}

.waiting-status {
    background: var(--accent);
    color: var(--accent-foreground);
    border: 2px solid var(--border);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
    box-shadow: var(--shadow-lg);
}

.waiting-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.waiting-icon {
    font-size: 2rem;
}

.waiting-text h4 {
    margin: 0 0 0.5rem 0;
    color: var(--accent-foreground);
    font-weight: 600;
}

.waiting-text p {
    margin: 0;
    color: var(--accent-foreground);
}

/* 司机已接单状态 */
.accepted-status {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
    box-shadow: var(--shadow-lg);
    border: 2px solid #059669;
}

.accepted-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.accepted-icon {
    font-size: 2.5rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.accepted-text h4 {
    margin: 0 0 0.5rem 0;
    color: white;
    font-weight: 600;
    font-size: 1.25rem;
}

.accepted-text p {
    margin: 0 0 0.25rem 0;
    color: rgba(255, 255, 255, 0.95);
}

.accepted-text .accepted-time {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
}

/* 预约订单样式 */
.scheduled-orders-section,
.scheduled-orders-driver-section {
    background: var(--card);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
    border: 2px solid var(--border);
}

.scheduled-orders-list,
.scheduled-orders-waiting-list,
.scheduled-orders-accepted-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.scheduled-order-item {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 2px solid #bae6fd;
    border-radius: var(--radius);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s;
}

.scheduled-order-item:hover {
    border-color: #0ea5e9;
    box-shadow: var(--shadow-sm);
}

.scheduled-order-item.accepted {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-color: #86efac;
}

.scheduled-order-info {
    flex: 1;
}

.scheduled-order-route {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.scheduled-order-time {
    font-size: 0.9rem;
    color: #0284c7;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.scheduled-order-time.soon {
    color: #ea580c;
    font-weight: 600;
}

.scheduled-order-student {
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 0.25rem;
}

.scheduled-order-driver {
    font-size: 0.85rem;
    color: #16a34a;
    margin-top: 0.25rem;
}

.scheduled-order-actions {
    display: flex;
    gap: 0.5rem;
}

.scheduled-order-actions .btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.order-type-option:has(input:checked) {
    border-color: var(--primary);
    background: rgba(232, 99, 87, 0.05);
}

/* 司机控制台 */
.driver-info-card {
    background: var(--secondary);
    color: var(--secondary-foreground);
    padding: 2rem;
    border-radius: var(--radius-xl);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-xl);
    border: 2px solid var(--border);
}

.driver-avatar {
    font-size: 3rem;
    background: var(--accent);
    color: var(--accent-foreground);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--border);
    box-shadow: var(--shadow-md);
}

.driver-details h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
}

.driver-details p {
    margin: 0.25rem 0;
    opacity: 0.9;
}

.driver-actions {
    display: flex;
    gap: 1rem;
}

.stats-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.overview-card {
    background: var(--card);
    color: var(--card-foreground);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s;
}

.overview-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.overview-icon {
    font-size: 2rem;
    background: var(--muted);
    color: var(--muted-foreground);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.overview-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.overview-label {
    color: var(--muted-foreground);
    font-size: 0.9rem;
    font-weight: 500;
}

.destination-stats {
    margin-bottom: 2rem;
}

.stats-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.stats-header h3 {
    margin: 0;
    color: #333;
}

.stats-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.last-updated {
    font-size: 0.9rem;
    color: #666;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.stat-card {
    background: var(--card);
    color: var(--card-foreground);
    padding: 1.5rem;
    border-radius: var(--radius-xl);
    border: 2px solid var(--border);
    transition: all 0.3s;
    box-shadow: var(--shadow-lg);
}

.stat-card:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.stat-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.stat-icon {
    font-size: 1.5rem;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--foreground);
    font-weight: 600;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
    text-align: center;
}

.stat-details {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--muted-foreground);
}

.stat-waiting, .stat-time {
    background: var(--muted);
    color: var(--muted-foreground);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    font-weight: 500;
}

.pickup-btn {
    background: var(--secondary);
    color: var(--secondary-foreground);
    border: 2px solid var(--border);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    font-weight: 600;
    font-family: var(--font-sans);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.pickup-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: var(--primary);
    color: var(--primary-foreground);
    border-color: var(--primary);
}

.pickup-btn:disabled {
    background: var(--muted);
    color: var(--muted-foreground);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.chart-container {
    background: var(--card);
    color: var(--card-foreground);
    padding: 2rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--border);
    margin-bottom: 2rem;
    height: 400px;
    position: relative;
}

#destinationChart {
    width: 100% !important;
    height: 300px !important;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.chart-header h3 {
    margin: 0;
    color: var(--foreground);
    font-weight: 700;
}

.chart-controls {
    display: flex;
    gap: 1rem;
}

.pickup-history {
    background: var(--card);
    color: var(--card-foreground);
    padding: 2rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--border);
}

.pickup-history h3 {
    margin: 0 0 1.5rem 0;
    color: var(--foreground);
    font-weight: 700;
}

.history-list {
    max-height: 300px;
    overflow-y: auto;
}

.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    transition: all 0.3s;
}

.history-item:hover {
    background: var(--muted);
    color: var(--muted-foreground);
}

.history-item:last-child {
    border-bottom: none;
}

.history-time {
    color: var(--muted-foreground);
    font-size: 0.9rem;
    font-weight: 500;
}

.history-details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
}

.history-destination {
    font-weight: 600;
    color: var(--primary);
}

.history-count {
    font-size: 0.8rem;
    color: var(--muted-foreground);
    font-weight: 500;
}

/* 管理员控制台 */
.admin-info-card {
    background: var(--destructive);
    color: var(--destructive-foreground);
    padding: 2rem;
    border-radius: var(--radius-xl);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-xl);
    border: 2px solid var(--border);
}

.admin-avatar {
    font-size: 3rem;
    background: var(--accent);
    color: var(--accent-foreground);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--border);
    box-shadow: var(--shadow-md);
}

.admin-details h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
}

.admin-details p {
    margin: 0.25rem 0;
    opacity: 0.9;
}

.admin-actions {
    display: flex;
    gap: 1rem;
}

.admin-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.admin-sections {
    display: grid;
    gap: 2rem;
}

.admin-section {
    background: var(--card);
    color: var(--card-foreground);
    padding: 2rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--border);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e9ecef;
}

.section-header h3 {
    margin: 0;
    color: var(--foreground);
    font-weight: 700;
}

.section-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.search-box {
    position: relative;
}

.search-input {
    padding: 0.5rem 2rem 0.5rem 1rem;
    border: 2px solid var(--input);
    border-radius: var(--radius-xl);
    font-size: 0.9rem;
    font-family: var(--font-sans);
    background: var(--background);
    color: var(--foreground);
    width: 200px;
    transition: all 0.3s;
}

.search-input:focus {
    outline: none;
    border-color: var(--ring);
    box-shadow: var(--shadow-sm);
}

.search-icon {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted-foreground);
}

.filter-select {
    padding: 0.5rem 1rem;
    border: 2px solid var(--input);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-family: var(--font-sans);
    background: var(--background);
    color: var(--foreground);
    transition: all 0.3s;
}

.filter-select:focus {
    outline: none;
    border-color: var(--ring);
    box-shadow: var(--shadow-sm);
}

.user-table-container {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 2px solid var(--border);
}

.user-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--card);
    color: var(--card-foreground);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.user-table th,
.user-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.user-table th {
    background: var(--destructive);
    color: var(--destructive-foreground);
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 10;
}

.user-table tr:hover {
    background: var(--muted);
    color: var(--muted-foreground);
}

.checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.bulk-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--muted);
    color: var(--muted-foreground);
    border-radius: var(--radius-lg);
    border: 2px solid var(--border);
    margin-top: 1rem;
    box-shadow: var(--shadow-sm);
}

.bulk-info {
    font-weight: 600;
    color: var(--foreground);
}

.btn-danger {
    background: var(--destructive);
    color: var(--destructive-foreground);
    border-color: var(--destructive);
}

.btn-danger:hover {
    background: var(--accent);
    color: var(--accent-foreground);
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.stat-card {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 15px;
    padding: 1.5rem;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.stat-card:hover {
    border-color: #dc3545;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(220, 53, 69, 0.2);
}

.stat-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e9ecef;
}

.stat-icon {
    font-size: 1.5rem;
}

.stat-label {
    font-size: 1.1rem;
    color: #333;
    font-weight: 500;
}

.stat-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
}

.stat-item .stat-label {
    font-size: 0.9rem;
    color: #666;
    font-weight: 400;
}

.stat-item span:last-child {
    font-weight: 500;
    color: #dc3545;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.setting-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    border: 2px solid #e9ecef;
    transition: all 0.3s;
}

.setting-card:hover {
    border-color: #dc3545;
    transform: translateY(-2px);
}

.setting-card h4 {
    margin: 0 0 1rem 0;
    color: #333;
    font-size: 1.1rem;
}

.setting-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.setting-input {
    padding: 0.5rem;
    border: 2px solid #e9ecef;
    border-radius: 5px;
    width: 80px;
    text-align: center;
}

.setting-unit {
    color: #666;
    font-size: 0.9rem;
}

.setting-description {
    font-size: 0.8rem;
    color: #666;
    margin: 0;
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #dc3545;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.settings-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* 通知系统样式 */
.notification {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
}

.notification-content {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    gap: 0.75rem;
}

.notification-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.notification-message {
    flex: 1;
    font-size: 0.95rem;
    line-height: 1.4;
}

.notification-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s;
    flex-shrink: 0;
}

.notification-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* 通知类型特定样式 */
.notification-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.notification-error {
    background: linear-gradient(135deg, #dc3545 0%, #e83e8c 100%);
}

.notification-warning {
    background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
    color: #212529;
}

.notification-warning .notification-close {
    color: #212529;
}

.notification-warning .notification-close:hover {
    background-color: rgba(33, 37, 41, 0.1);
}

.notification-info {
    background: linear-gradient(135deg, #17a2b8 0%, #6f42c1 100%);
}

/* 实时通信状态指示器 */
.realtime-status {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.realtime-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #28a745;
    animation: pulse 2s infinite;
}

.realtime-indicator.disconnected {
    background: #dc3545;
    animation: none;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(40, 167, 69, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
    }
}

/* 加载状态和过渡动画 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-text {
    margin-top: 1rem;
    color: #333;
    font-size: 1rem;
    font-weight: 500;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 页面过渡动画 */
.page-transition {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease-in-out;
}

.page-transition.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* 卡片悬停动画 */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* 按钮点击动画 */
.btn-click {
    transition: all 0.2s ease;
}

.btn-click:active {
    transform: scale(0.95);
}

/* 输入框焦点动画 */
.input-focus {
    transition: all 0.3s ease;
}

.input-focus:focus {
    transform: scale(1.02);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* 数据更新动画 */
.data-update {
    animation: dataUpdate 0.5s ease-in-out;
}

@keyframes dataUpdate {
    0% {
        background-color: rgba(102, 126, 234, 0.1);
    }
    100% {
        background-color: transparent;
    }
}

/* 成功状态动画 */
.success-flash {
    animation: successFlash 0.6s ease-in-out;
}

@keyframes successFlash {
    0% {
        background-color: rgba(40, 167, 69, 0.2);
    }
    100% {
        background-color: transparent;
    }
}

/* 错误状态动画 */
.error-shake {
    animation: errorShake 0.5s ease-in-out;
}

@keyframes errorShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* 移动端优化 */
@media (max-width: 768px) {
    /* 描述文字在移动端保持自然换行 */
    .hero-description {
        line-height: 1.6;
    }
    
    /* 导航栏移动端优化 */
    .nav-container {
        padding: 0.5rem 1rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .nav-title {
        font-size: 1.2rem;
    }
    
    /* 主要内容区域移动端优化 */
    .main-content {
        padding: 1rem;
    }
    
    .dashboard-section {
        padding: 1rem;
    }
    
    /* 卡片布局移动端优化 */
    .student-info-card,
    .driver-info-card,
    .admin-info-card {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .student-actions,
    .driver-actions,
    .admin-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
        margin: 0.25rem 0;
    }
    
    /* 统计卡片移动端优化 */
    .stats-overview,
    .admin-overview {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    /* 表格移动端优化 */
    .user-table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .user-table {
        min-width: 600px;
    }
    
    .user-table th,
    .user-table td {
        padding: 0.5rem;
        font-size: 0.9rem;
    }
    
    /* 模态框移动端优化 */
    .modal {
        margin: 1rem;
        max-width: calc(100% - 2rem);
    }
    
    .modal-content {
        padding: 1.5rem;
    }
    
    /* 宿舍区选择移动端优化 */
    .dormitory-options {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .dormitory-btn {
        padding: 1rem;
        font-size: 1rem;
    }
    
    /* 图表容器移动端优化 */
    .chart-container {
        height: 350px;
        padding: 1rem;
    }
    
    #destinationChart {
        height: 250px !important;
    }
    
    /* 通知系统移动端优化 */
    .notification {
        right: 10px;
        left: 10px;
        max-width: none;
        min-width: auto;
    }
    
    .notification-content {
        padding: 1rem;
    }
    
    /* 实时状态指示器移动端优化 */
    .realtime-status {
        bottom: 10px;
        right: 10px;
        font-size: 0.7rem;
        padding: 0.3rem 0.8rem;
    }
    
    /* 搜索和过滤移动端优化 */
    .section-controls {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .search-input {
        width: 100%;
    }
    
    .filter-select {
        width: 100%;
    }
    
    /* 设置网格移动端优化 */
    .settings-grid {
        grid-template-columns: 1fr;
    }
    
    /* 批量操作移动端优化 */
    .bulk-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .bulk-actions .btn {
        width: 100%;
    }
}

/* 超小屏幕优化 */
@media (max-width: 480px) {
    .main-content {
        padding: 0.5rem;
    }
    
    .dashboard-section {
        padding: 0.5rem;
    }
    
    .modal {
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
    }
    
    .modal-content {
        padding: 1rem;
    }
    
    .btn {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .notification {
        right: 5px;
        left: 5px;
    }
    
    .notification-content {
        padding: 0.75rem;
    }
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
    .card-hover:hover {
        transform: none;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }
    
    .btn:hover {
        transform: none;
    }
    
    .btn:active {
        transform: scale(0.95);
    }
    
    /* 增加触摸目标大小 */
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .checkbox {
        width: 24px;
        height: 24px;
    }
    
    .notification-close {
        width: 32px;
        height: 32px;
        font-size: 1.8rem;
    }
}

/* 未登录提示 */
.not-logged-in {
    text-align: center;
    padding: 4rem 2rem;
}

.not-logged-in h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #333;
}

.not-logged-in p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
}

/* 页脚样式 */
.footer {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%);
    backdrop-filter: blur(10px);
    color: var(--muted-foreground);
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
    border-top: 2px solid rgba(232, 99, 87, 0.2);
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.05);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-list {
        gap: 1rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

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

    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

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

    .login-card {
        margin: 1rem;
        padding: 2rem;
    }

    .modal-content {
        margin: 5% auto;
        width: 95%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }

    .hero {
        padding: 2rem 1rem;
    }

    .features {
        padding: 2rem 1rem;
    }

    .dashboard-section {
        padding: 1rem;
    }

    .dormitory-options {
        grid-template-columns: 1fr;
    }
}

/* ==================== 新功能样式 ==================== */

/* 排队等候信息卡片 */
.queue-info-card {
    background: linear-gradient(135deg, rgba(86, 53, 241, 0.1), rgba(86, 53, 241, 0.05));
    border: 2px solid var(--accent);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.queue-header {
    margin-bottom: 1rem;
}

.queue-header h4 {
    color: var(--accent);
    font-size: 1.1rem;
}

.queue-content {
    display: flex;
    gap: 2rem;
    align-items: center;
    flex-wrap: wrap;
}

.queue-position {
    text-align: center;
    padding: 1rem 2rem;
    background: var(--accent);
    border-radius: var(--radius-md);
    color: white;
}

.queue-label {
    font-size: 0.85rem;
    opacity: 0.9;
}

.queue-number {
    font-size: 2.5rem;
    font-weight: bold;
    display: block;
}

.queue-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    flex: 1;
}

.queue-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.queue-item-label {
    font-size: 0.8rem;
    color: var(--muted-foreground);
}

.queue-item-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--foreground);
}

/* 公告横幅 */
.announcement-banner {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    z-index: 999;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    padding: 0.75rem 1rem;
    box-shadow: var(--shadow-md);
}

.announcement-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.announcement-banner-icon {
    font-size: 1.2rem;
}

.announcement-banner-text {
    flex: 1;
    font-size: 0.95rem;
}

.announcement-banner-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.announcement-banner-close:hover {
    opacity: 1;
}

/* 公告列表 */
.announcement-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.announcement-item {
    background: var(--card);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    border-left: 4px solid var(--muted);
    box-shadow: var(--shadow-sm);
}

.announcement-item.priority-urgent {
    border-left-color: #ef4444;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.05), transparent);
}

.announcement-item.priority-high {
    border-left-color: #f59e0b;
}

.announcement-item.priority-normal {
    border-left-color: var(--primary);
}

.announcement-item.priority-low {
    border-left-color: var(--muted-foreground);
}

.announcement-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.announcement-item-title {
    font-weight: 600;
    font-size: 1rem;
    color: var(--foreground);
}

.announcement-item-meta {
    font-size: 0.75rem;
    color: var(--muted-foreground);
}

.announcement-item-content {
    font-size: 0.9rem;
    color: var(--muted-foreground);
    line-height: 1.5;
}

.announcement-item-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

/* 评价星级 */
.star-rating {
    display: flex;
    gap: 0.5rem;
    font-size: 2rem;
    cursor: pointer;
}

.star {
    color: #d1d5db;
    transition: color 0.2s, transform 0.2s;
}

.star:hover,
.star.active {
    color: #fbbf24;
    transform: scale(1.1);
}

.star.active {
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
}

/* 评价表单 */
.review-form .form-textarea {
    resize: vertical;
    min-height: 80px;
}

/* 数据统计大屏 */
.stats-dashboard {
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-top: 1rem;
}

.dashboard-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.dashboard-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 1.25rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.dashboard-card-header {
    font-size: 0.85rem;
    color: var(--muted-foreground);
    margin-bottom: 0.5rem;
}

.dashboard-card-value {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary);
}

.dashboard-card-sub {
    font-size: 0.75rem;
    color: var(--muted-foreground);
    margin-top: 0.5rem;
}

.dashboard-section-inner {
    background: white;
    border-radius: var(--radius-md);
    padding: 1.25rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
}

.dashboard-section-inner h4 {
    margin-bottom: 1rem;
    color: var(--foreground);
    font-size: 1rem;
}

/* 热门目的地 */
.hot-destinations {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.hot-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
}

.hot-item-count {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
}

/* 司机排行榜 */
.driver-ranking {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ranking-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: var(--muted);
    border-radius: var(--radius-sm);
}

.ranking-position {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: bold;
    font-size: 0.9rem;
}

.ranking-position.top-1 {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
}

.ranking-position.top-2 {
    background: linear-gradient(135deg, #9ca3af, #6b7280);
    color: white;
}

.ranking-position.top-3 {
    background: linear-gradient(135deg, #d97706, #b45309);
    color: white;
}

.ranking-name {
    flex: 1;
    font-weight: 500;
}

.ranking-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--muted-foreground);
}

.ranking-orders {
    color: var(--primary);
    font-weight: 600;
}

.ranking-rating {
    color: #fbbf24;
}

/* 历史订单评价状态 */
.history-item-review {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.review-stars {
    color: #fbbf24;
    font-size: 0.9rem;
}

.review-btn {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

/* 模态框小尺寸 */
.modal-small {
    max-width: 400px;
}

/* 表单文本域 */
.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    resize: vertical;
}

.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(232, 99, 87, 0.15);
}

/* 响应式适配 */
@media (max-width: 768px) {
    .queue-content {
        flex-direction: column;
        align-items: stretch;
    }

    .queue-position {
        padding: 1rem;
    }

    .queue-details {
        grid-template-columns: 1fr 1fr;
    }

    .dashboard-row {
        grid-template-columns: 1fr;
    }

    .hot-destinations {
        flex-direction: column;
    }

    .announcement-banner-content {
        flex-wrap: wrap;
    }
}

/* ==================== 评价系统样式 ==================== */

/* 已完成订单区域（可联系学生） */
.completed-orders-section {
    background: var(--card);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    margin-top: 2rem;
    box-shadow: var(--shadow-md);
    border: 2px solid var(--border);
}

.completed-orders-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e9ecef;
}

.completed-orders-section h3 {
    margin: 0;
    font-size: 1.25rem;
}

.completed-orders-section .section-desc {
    font-size: 0.9rem;
    color: var(--muted-foreground);
}

.completed-orders-section .orders-list {
    max-height: 400px;
    overflow-y: auto;
}

.order-item-empty {
    text-align: center;
    padding: 2rem;
    color: var(--muted-foreground);
}

/* 司机评价区域 */
.driver-reviews-section {
    background: var(--card);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    margin-top: 2rem;
    box-shadow: var(--shadow-md);
    border: 2px solid var(--border);
}

.driver-reviews-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e9ecef;
}

.driver-reviews-section h3 {
    margin: 0;
    font-size: 1.25rem;
}

.driver-rating-summary {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.rating-stars {
    font-size: 1.1rem;
    color: #f59e0b;
    font-weight: 600;
}

.rating-count {
    font-size: 0.9rem;
    color: var(--muted-foreground);
}

/* 评价列表 */
.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 400px;
    overflow-y: auto;
}

.review-item {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: var(--radius-lg);
    padding: 1rem 1.25rem;
    border: 1px solid #e2e8f0;
    transition: transform 0.2s, box-shadow 0.2s;
}

.review-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.review-stars {
    color: #f59e0b;
    font-size: 1rem;
    letter-spacing: 2px;
}

.review-time {
    font-size: 0.8rem;
    color: var(--muted-foreground);
}

.review-destination {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 0.5rem;
}

.review-comment {
    font-size: 0.95rem;
    color: #334155;
    font-style: italic;
    padding: 0.5rem 0;
    line-height: 1.5;
}

.review-no-comment {
    color: #94a3b8;
}

.review-anonymous {
    text-align: right;
    font-size: 0.8rem;
    color: #94a3b8;
    margin-top: 0.5rem;
}

.review-item-empty {
    text-align: center;
    padding: 2rem;
    color: var(--muted-foreground);
    font-size: 0.95rem;
}

/* 历史订单中的评价按钮 */
.history-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.history-time {
    flex-shrink: 0;
    min-width: 140px;
}

.history-details {
    flex: 1;
    min-width: 0;
}

.history-destination {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.history-actions {
    margin-left: auto;
    flex-shrink: 0;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.history-actions .btn-small {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
}

.review-done-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* 评价按钮悬停效果 */
.review-order-btn:hover {
    transform: scale(1.05);
}

/* ==================== 订单列表样式 ==================== */

/* 待接单/已接单订单列表 */
.waiting-orders-list,
.accepted-orders-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.order-card {
    background: var(--card);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    transition: all 0.3s;
}

.order-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.order-card.accepted {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(234, 88, 12, 0.05) 0%, rgba(234, 88, 12, 0.02) 100%);
}

.order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.order-id {
    font-size: 0.8rem;
    color: var(--muted-foreground);
}

.order-time {
    font-size: 0.8rem;
    color: var(--muted-foreground);
}

.order-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.order-route {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
}

.order-route-icon {
    font-size: 1.5rem;
}

.order-route-arrow {
    color: var(--primary);
    font-weight: bold;
}

.order-pickup,
.order-destination {
    font-weight: 500;
}

.order-student {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--muted-foreground);
}

.order-wait-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--muted-foreground);
}

.order-card-footer {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.order-card-footer .btn {
    flex: 1;
}

.btn-accept {
    background: linear-gradient(135deg, var(--primary) 0%, #c2410c 100%);
    color: var(--primary-foreground);
    border: none;
}

.btn-complete {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
}

.btn-cancel-order {
    background: var(--card);
    color: var(--muted-foreground);
    border: 2px solid var(--border);
}

.btn-cancel-order:hover {
    border-color: #ef4444;
    color: #ef4444;
}

.order-item-empty {
    text-align: center;
    padding: 2rem;
    color: var(--muted-foreground);
    background: var(--muted);
    border-radius: var(--radius-md);
}

/* ==================== 地点选择样式 ==================== */

.location-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 1rem;
}

.location-btn {
    padding: 0.75rem 1.25rem;
    border: 2px solid var(--border);
    background: var(--card);
    color: var(--card-foreground);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-sans);
    font-size: 0.9rem;
}

.location-btn:hover {
    border-color: var(--primary);
    background: var(--muted);
}

.location-btn.active {
    border-color: var(--primary);
    background: var(--primary);
    color: var(--primary-foreground);
}

.location-btn.selected {
    border-color: var(--accent);
    background: var(--accent);
    color: var(--accent-foreground);
}

.loading-text {
    text-align: center;
    padding: 1rem;
    color: var(--muted-foreground);
}

/* ==================== 地点管理列表样式 ==================== */

.location-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.location-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: all 0.2s;
}

.location-item:hover {
    box-shadow: var(--shadow-sm);
}

.location-item.disabled {
    opacity: 0.6;
    background: var(--muted);
}

.location-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.location-name {
    font-weight: 500;
    font-size: 1rem;
}

.location-type-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    background: var(--muted);
    color: var(--muted-foreground);
}

.location-type-badge.pickup {
    background: #dbeafe;
    color: #1d4ed8;
}

.location-type-badge.destination {
    background: #fef3c7;
    color: #92400e;
}

.location-type-badge.both {
    background: #d1fae5;
    color: #065f46;
}

.location-status-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
}

.location-status-badge.active {
    background: #d1fae5;
    color: #065f46;
}

.location-status-badge.inactive {
    background: #fee2e2;
    color: #991b1b;
}

.location-actions {
    display: flex;
    gap: 0.5rem;
}

.location-loading {
    text-align: center;
    padding: 1.5rem;
    color: var(--muted-foreground);
}

/* ==================== 已接订单区域样式 ==================== */

.accepted-orders-section {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.accepted-orders-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.accepted-orders-section .section-header h3 {
    margin: 0;
}

.accepted-orders-section .section-desc {
    font-size: 0.85rem;
    color: var(--muted-foreground);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .history-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .history-actions {
        margin-left: 0;
        margin-top: 0.5rem;
        width: 100%;
    }
    
    .history-actions .btn-small,
    .history-actions .review-done-badge {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
    
    .driver-reviews-section .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .order-card-footer {
        flex-direction: column;
    }
    
    .order-route {
        flex-wrap: wrap;
    }
    
    .location-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .location-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

/* ==================== 个人设置样式 ==================== */

/* 头部用户头像 */
.user-avatar-small {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.user-avatar-small:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.user-avatar-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-avatar-small span {
    font-size: 1.1rem;
}

/* 个人设置模态框头像区域 */
.profile-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.avatar-upload-hint:hover {
    background: #5a67d8;
    transform: scale(1.1);
}

/* 用户信息区布局调整 */
.user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
