/* ============================================================
   拼车小程序 · 完整样式 v5.0
   包含：前台 + 后台 + 登录/注册 + 模态框 + 深色模式支持
   ============================================================ */

/* ---------- 全局 ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
    background: radial-gradient(ellipse at 10% 20%, #eef2ff 0%, #dbeafe 60%, #ede9fe 100%);
    color: #1e293b;
    padding-bottom: 76px;
    line-height: 1.6;
    min-height: 100vh;
    transition: background 0.3s, color 0.3s;
}
/* 深色模式（若 body.dark 存在） */
body.dark {
    background: radial-gradient(ellipse at 10% 20%, #0f172a 0%, #1e293b 60%, #0f172a 100%);
    color: #e2e8f0;
}

/* ---------- 容器 ---------- */
.container {
    max-width: 720px;
    padding: 0 16px;
    margin: 0 auto;
}

/* ---------- 顶部导航（前台） ---------- */
.navbar.bg-primary {
    background: rgba(59, 130, 246, 0.75) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.15);
    border: none;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}
.navbar .navbar-brand {
    font-weight: 700;
    font-size: 1.3rem;
    color: #fff !important;
}
.navbar .navbar-brand i {
    font-size: 1.6rem;
    margin-right: 8px;
}
.navbar .navbar-text {
    font-weight: 500;
    color: rgba(255,255,255,0.9) !important;
}
.navbar .btn-outline-light {
    border-radius: 40px;
    border: 2px solid rgba(255,255,255,0.3);
    padding: 0.25rem 1.4rem;
    font-weight: 600;
    transition: all 0.3s;
}
.navbar .btn-outline-light:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
    border-color: rgba(255,255,255,0.7);
}

/* ---------- 底部导航 ---------- */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(255,255,255,0.3);
    padding: 10px 0 env(safe-area-inset-bottom);
    box-shadow: 0 -8px 32px rgba(0,0,0,0.04);
    z-index: 1000;
    max-width: 480px;
    margin: 0 auto;
}
.bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #94a3b8;
    font-size: 12px;
    padding: 4px 0;
    transition: all 0.3s;
    cursor: pointer;
}
.bottom-nav .nav-item i {
    font-size: 26px;
    margin-bottom: 2px;
    transition: all 0.3s;
}
.bottom-nav .nav-item.active {
    color: #3b82f6;
}
.bottom-nav .nav-item.active i {
    color: #3b82f6;
    transform: scale(1.15);
    text-shadow: 0 4px 12px rgba(59,130,246,0.3);
}
.bottom-nav .nav-item:hover {
    color: #3b82f6;
}

/* ---------- 通用卡片（毛玻璃） ---------- */
.card,
.ride-card,
.list-group-item,
.user-info,
#page-publish .card,
.auth-card,
.admin-card {
    background: rgba(255,255,255,0.65) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.4) !important;
    border-radius: 24px !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.02);
    transition: all 0.3s cubic-bezier(0.25,0.46,0.45,0.94);
    overflow: hidden;
}
.card:hover,
.ride-card:hover,
.list-group-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.05);
    border-color: rgba(59,130,246,0.15) !important;
}
body.dark .card,
body.dark .ride-card,
body.dark .list-group-item,
body.dark .user-info,
body.dark #page-publish .card,
body.dark .auth-card,
body.dark .admin-card {
    background: rgba(30,41,59,0.8) !important;
    border-color: rgba(255,255,255,0.1) !important;
    color: #e2e8f0;
}

/* ---------- 按钮统一渐变 ---------- */
.btn-primary,
.auth-btn,
#page-publish .btn-primary,
.search-section .btn-primary,
.admin-navbar .btn-outline-light {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6) !important;
    border: none !important;
    border-radius: 40px !important;
    padding: 10px 24px;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(59,130,246,0.2);
    transition: all 0.3s;
    color: #fff !important;
}
.btn-primary:hover,
.auth-btn:hover,
#page-publish .btn-primary:hover,
.search-section .btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 36px rgba(59,130,246,0.3);
}
.btn-primary:active {
    transform: scale(0.96);
}
.btn-success {
    background: linear-gradient(135deg, #22c55e, #16a34a) !important;
    border: none !important;
    border-radius: 40px !important;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(34,197,94,0.2);
}
.btn-success:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 36px rgba(34,197,94,0.3);
}
.btn-outline-primary {
    border: 2px solid #3b82f6 !important;
    color: #3b82f6 !important;
    border-radius: 40px !important;
    font-weight: 600;
    background: transparent !important;
}
.btn-outline-primary:hover {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6) !important;
    color: #fff !important;
    border-color: transparent !important;
    transform: translateY(-2px);
}
.btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626) !important;
    border: none !important;
    border-radius: 40px !important;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(239,68,68,0.2);
}
.btn-danger:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 36px rgba(239,68,68,0.3);
}
.btn-secondary {
    background: rgba(148,163,184,0.6) !important;
    backdrop-filter: blur(4px);
    border: none !important;
    border-radius: 40px !important;
    font-weight: 600;
}
.btn-secondary:hover {
    background: rgba(100,116,139,0.8) !important;
    transform: translateY(-2px);
}

/* ---------- 表单输入（毛玻璃） ---------- */
.form-control,
.search-section .form-control,
#page-publish .form-control,
#page-publish textarea,
.auth-input {
    background: rgba(255,255,255,0.4) !important;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 2px solid rgba(226,232,240,0.5) !important;
    border-radius: 16px !important;
    padding: 12px 18px;
    font-size: 1rem;
    transition: all 0.3s;
    color: #0f172a;
}
.form-control:focus,
.search-section .form-control:focus,
#page-publish .form-control:focus,
#page-publish textarea:focus,
.auth-input:focus {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 4px rgba(59,130,246,0.1) !important;
    background: rgba(255,255,255,0.7) !important;
}
.input-group {
    background: rgba(255,255,255,0.3);
    border-radius: 16px;
    border: 2px solid rgba(226,232,240,0.5);
    transition: all 0.3s;
    overflow: hidden;
}
.input-group:focus-within {
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59,130,246,0.1);
    background: rgba(255,255,255,0.5);
}
.input-group .form-control {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
}
.input-group-text {
    background: transparent !important;
    border: none !important;
    color: #64748b !important;
    padding: 0 0 0 16px !important;
}

/* ---------- 搜索栏 ---------- */
.search-section {
    background: rgba(255,255,255,0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255,255,255,0.3);
    padding: 16px 0;
}
.search-section .form-control {
    background: rgba(255,255,255,0.5) !important;
}
.search-section .btn-primary {
    padding: 10px 24px;
}

/* ---------- 首页拼车卡片 ---------- */
.ride-card .card-body .d-flex {
    flex-wrap: wrap !important;
    align-items: flex-start !important;
    gap: 4px 0;
}
.ride-card .card-title {
    flex: 1 1 100% !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: unset !important;
    margin-bottom: 2px;
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
}
.ride-card .card-body .d-flex > div:last-child {
    flex: 0 0 auto !important;
    margin-left: auto !important;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
}
.ride-card .ride-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 16px;
    padding: 14px 0;
    margin: 12px 0;
    border-top: 1px solid rgba(0,0,0,0.04);
    border-bottom: 1px solid rgba(0,0,0,0.04);
}
.ride-card .ride-meta > div {
    font-size: 0.9rem;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 6px;
}
.ride-card .ride-meta i {
    color: #3b82f6;
    width: 20px;
}
.badge {
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 40px;
    font-size: 0.75rem;
}
.badge.bg-success {
    background: linear-gradient(135deg, #22c55e, #16a34a) !important;
}
.badge.bg-warning {
    background: linear-gradient(135deg, #facc15, #eab308) !important;
    color: #1e293b !important;
}
.badge.bg-secondary {
    background: linear-gradient(135deg, #94a3b8, #64748b) !important;
}
.badge.bg-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626) !important;
}
.ride-card.border-warning {
    border-left: 4px solid #facc15 !important;
}
.ride-card .owner {
    margin-top: 8px;
    border-top: 1px solid rgba(0,0,0,0.04);
    padding-top: 8px;
    font-size: 0.9rem;
}
/* 当前用户自身标签 */
.user-self {
    color: #3b82f6;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.user-self .badge {
    font-size: 0.7rem;
    padding: 2px 8px;
    background: #3b82f6;
    color: #fff;
}
body.dark .user-self {
    color: #60a5fa;
}
body.dark .user-self .badge {
    background: #60a5fa;
    color: #0f172a;
}

/* ---------- 详情页 ---------- */
.route-header {
    background: rgba(248,250,252,0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 24px;
    border-radius: 20px;
    margin-bottom: 24px;
    border: 1px solid rgba(255,255,255,0.3);
}
.route-header h5 {
    font-weight: 700;
    font-size: 1.25rem;
}
.route-header .text-primary {
    color: #2563eb !important;
}
.route-header .status {
    font-size: 0.8rem;
}
.info-item {
    padding: 12px 0;
    border-bottom: 1px solid rgba(0,0,0,0.04);
}
.info-item:last-child {
    border-bottom: none;
}
.info-item .label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #94a3b8;
}
.info-item .value {
    font-size: 1.05rem;
    font-weight: 600;
    color: #0f172a;
}
.contact-link {
    color: #3b82f6;
    font-weight: 500;
    text-decoration: underline;
    cursor: pointer;
}
.action-bar .btn {
    border-radius: 40px;
    padding: 14px 0;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}
.action-bar .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}
.action-bar .btn:active {
    transform: scale(0.96);
}

/* ---------- 我的页面 ---------- */
.user-info {
    background: rgba(255,255,255,0.6) !important;
    padding: 28px 24px;
    margin-bottom: 24px;
}
.user-info .username {
    font-size: 1.3rem;
    font-weight: 700;
    color: #0f172a;
}
.user-info .logout-btn {
    border-radius: 40px;
    padding: 8px 28px;
    font-weight: 600;
    border: none;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    transition: all 0.3s;
}
.user-info .logout-btn:hover {
    transform: scale(1.04);
    box-shadow: 0 8px 24px rgba(239,68,68,0.3);
}
.nav-tabs .nav-link {
    border: none;
    font-weight: 600;
    color: #64748b;
    padding: 14px 0;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
}
.nav-tabs .nav-link.active {
    color: #3b82f6;
    border-bottom-color: #3b82f6;
    background: transparent;
}
.nav-tabs .nav-link:hover {
    border-bottom-color: #94a3b8;
}
.list-group-item .btn-group-vertical .btn {
    border-radius: 30px;
    margin-bottom: 4px;
    border: 1px solid rgba(0,0,0,0.06);
    background: rgba(255,255,255,0.3);
}
.list-group-item .btn-group-vertical .btn:hover {
    background: rgba(59,130,246,0.1);
    border-color: #3b82f6;
}

/* ---------- 发布页面 ---------- */
#page-publish .card {
    background: rgba(255,255,255,0.6) !important;
}
#page-publish .form-label {
    font-weight: 600;
    color: #1e293b;
}
#page-publish .btn-primary {
    padding: 16px 0;
    font-size: 1.1rem;
}

/* ---------- 登录/注册页面 ---------- */
.auth-page {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(ellipse at 10% 20%, #eef2ff 0%, #dbeafe 60%, #ede9fe 100%);
}
.auth-container {
    width: 100%;
    max-width: 440px;
    padding: 20px;
    margin: 20px auto;
}
.auth-card {
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 32px;
    padding: 40px 32px;
    box-shadow: 0 24px 64px rgba(0,0,0,0.04);
    border: 1px solid rgba(255,255,255,0.5);
    transition: transform 0.3s;
}
.auth-card:hover {
    transform: translateY(-2px);
}
.auth-header {
    text-align: center;
    margin-bottom: 28px;
}
.auth-header i {
    font-size: 3.5rem;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.auth-header h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}
.auth-header p {
    color: #64748b;
    font-size: 0.95rem;
}
.auth-alert {
    border-radius: 16px;
    padding: 12px 16px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(0,0,0,0.05);
}
.auth-alert.alert-danger {
    color: #991b1b;
    border-left: 4px solid #ef4444;
}
.auth-alert.alert-success {
    color: #166534;
    border-left: 4px solid #22c55e;
}
.auth-alert-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    margin-left: auto;
    opacity: 0.6;
}
.auth-alert-close:hover {
    opacity: 1;
}
.auth-form .form-group {
    margin-bottom: 18px;
}
.auth-form label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 6px;
}
.auth-form label i {
    color: #3b82f6;
}
.auth-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid rgba(226,232,240,0.6);
    border-radius: 16px;
    font-size: 1rem;
    background: rgba(255,255,255,0.4);
    backdrop-filter: blur(4px);
    transition: all 0.3s;
}
.auth-input:focus {
    border-color: #3b82f6;
    background: rgba(255,255,255,0.7);
    box-shadow: 0 0 0 4px rgba(59,130,246,0.1);
}
.auth-btn {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 40px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    box-shadow: 0 8px 24px rgba(59,130,246,0.25);
    transition: all 0.3s;
    margin-top: 6px;
    letter-spacing: 2px;
}
.auth-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 36px rgba(59,130,246,0.35);
}
.auth-footer {
    text-align: center;
    margin-top: 24px;
    color: #64748b;
}
.auth-footer a {
    color: #3b82f6;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 2px solid transparent;
}
.auth-footer a:hover {
    border-bottom-color: #3b82f6;
}
/* 深色模式适配登录/注册 */
body.dark .auth-card {
    background: rgba(30,41,59,0.8) !important;
    border-color: rgba(255,255,255,0.1) !important;
}
body.dark .auth-header h1 {
    color: #e2e8f0;
}
body.dark .auth-header p,
body.dark .auth-footer {
    color: #94a3b8;
}
body.dark .auth-input {
    background: rgba(51,65,85,0.6);
    border-color: rgba(71,85,105,0.5);
    color: #e2e8f0;
}
body.dark .auth-input:focus {
    background: rgba(51,65,85,0.8);
}
body.dark .auth-alert {
    background: rgba(30,41,59,0.6);
    color: #e2e8f0;
}
body.dark .auth-alert.alert-danger {
    color: #fca5a5;
    border-left-color: #ef4444;
}
body.dark .auth-form label {
    color: #e2e8f0;
}
/* 移动端适配 */
@media (max-width: 480px) {
    .auth-card {
        padding: 28px 20px;
    }
    .auth-header i {
        font-size: 2.8rem;
    }
    .auth-header h1 {
        font-size: 1.5rem;
    }
}

/* ---------- 免责声明模态框 ---------- */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal-overlay.show {
    display: flex;
}
.modal-content {
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 32px;
    max-width: 560px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 32px 64px rgba(0,0,0,0.08);
    border: 1px solid rgba(255,255,255,0.3);
    overflow: hidden;
    animation: modalIn 0.3s ease;
}
@keyframes modalIn {
    from { transform: scale(0.95) translateY(20px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
}
.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}
.modal-header h3 {
    margin: 0;
    font-weight: 700;
    color: #0f172a;
    font-size: 1.2rem;
}
.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    line-height: 1;
    color: #94a3b8;
    cursor: pointer;
    padding: 0 4px;
    transition: color 0.2s;
}
.modal-close:hover {
    color: #ef4444;
}
.modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
    color: #1e293b;
    font-size: 0.95rem;
    line-height: 1.7;
}
.modal-body h4 {
    font-weight: 600;
    margin-top: 16px;
    margin-bottom: 6px;
    color: #0f172a;
}
.modal-body p {
    margin: 0 0 10px 0;
}
.modal-body p:last-child {
    margin-bottom: 0;
}
.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid rgba(0,0,0,0.05);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    flex-shrink: 0;
}
.modal-footer .btn {
    padding: 10px 28px;
    border-radius: 40px;
    font-weight: 600;
    border: none;
    transition: all 0.3s;
}
.modal-footer .btn-secondary {
    background: rgba(148,163,184,0.3);
    color: #1e293b;
}
.modal-footer .btn-secondary:hover {
    background: rgba(148,163,184,0.5);
}
.modal-footer .btn-primary {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: #fff;
    box-shadow: 0 8px 24px rgba(59,130,246,0.2);
}
.modal-footer .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 36px rgba(59,130,246,0.3);
}
.disclaimer-group {
    margin-top: 4px;
}
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    color: #475569;
    cursor: pointer;
}
.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #3b82f6;
    cursor: pointer;
    flex-shrink: 0;
}
.checkbox-label a {
    color: #3b82f6;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 2px solid transparent;
}
.checkbox-label a:hover {
    border-bottom-color: #3b82f6;
}
body.dark .modal-content {
    background: rgba(30,41,59,0.85);
    border-color: rgba(255,255,255,0.1);
}
body.dark .modal-header h3,
body.dark .modal-body,
body.dark .modal-body h4 {
    color: #e2e8f0;
}
body.dark .modal-body p {
    color: #94a3b8;
}
body.dark .modal-footer .btn-secondary {
    background: rgba(148,163,184,0.2);
    color: #e2e8f0;
}
body.dark .checkbox-label {
    color: #94a3b8;
}

/* ---------- 后台导航菜单 ---------- */
.admin-navbar {
    background: rgba(59, 130, 246, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}
.admin-navbar-brand {
    font-weight: 700;
    color: #fff;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 8px;
}
.admin-navbar-brand i {
    font-size: 1.5rem;
}
.admin-navbar-menu {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: 0;
    padding: 0;
}
.admin-navbar-menu li a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: 40px;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
}
.admin-navbar-menu li a:hover {
    background: rgba(255,255,255,0.15);
    color: #fff;
}
.admin-navbar-menu li.active a {
    background: rgba(255,255,255,0.2);
    color: #fff;
}
.admin-navbar-actions {
    display: flex;
    gap: 8px;
}
.admin-navbar-actions .btn-outline-light {
    border-radius: 40px;
    padding: 0.25rem 1rem;
    border-color: rgba(255,255,255,0.3);
}
@media (max-width: 768px) {
    .admin-navbar {
        flex-direction: column;
        align-items: stretch;
    }
    .admin-navbar-brand,
    .admin-navbar-menu,
    .admin-navbar-actions {
        justify-content: center;
    }
}

/* ---------- 后台表格/卡片 ---------- */
.admin-card {
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(12px);
    border-radius: 24px;
    padding: 20px;
    border: 1px solid rgba(255,255,255,0.3);
}
.admin-table th {
    font-weight: 600;
    color: #475569;
    border-bottom: 2px solid rgba(0,0,0,0.05);
}
.admin-table td {
    vertical-align: middle;
}
.admin-table .badge {
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 40px;
}
.admin-table .btn-sm {
    border-radius: 40px;
    padding: 0.2rem 0.8rem;
}
.admin-table .form-select-sm {
    border-radius: 40px;
    padding: 0.2rem 1.8rem 0.2rem 0.8rem;
    background-position: right 0.5rem center;
}
.stat-card {
    background: rgba(255,255,255,0.4);
    backdrop-filter: blur(8px);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.2);
}
.stat-card .number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #0f172a;
}
.stat-card .label {
    color: #64748b;
    font-size: 0.95rem;
}
.stat-card .icon {
    font-size: 2rem;
    opacity: 0.4;
    color: #3b82f6;
}
.stat-card .icon.orange { color: #f59e0b; }
.stat-card .icon.green { color: #22c55e; }
.stat-card .icon.purple { color: #8b5cf6; }
.search-form .form-control,
.search-form .btn,
.search-form .form-select {
    border-radius: 40px;
}
.search-form .form-control,
.search-form .form-select {
    background: rgba(255,255,255,0.5);
    border: 1px solid rgba(226,232,240,0.5);
}
.log-action {
    background: rgba(59,130,246,0.1);
    padding: 2px 10px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #3b82f6;
}
body.dark .log-action {
    background: rgba(59,130,246,0.2);
    color: #60a5fa;
}

/* ---------- 分页 ---------- */
.pagination .page-link {
    border: none;
    border-radius: 40px;
    padding: 0.6rem 1.2rem;
    margin: 0 4px;
    color: #475569;
    font-weight: 500;
    background: rgba(255,255,255,0.3);
    backdrop-filter: blur(4px);
    transition: all 0.3s;
}
.pagination .page-link:hover {
    background: rgba(59,130,246,0.1);
    color: #3b82f6;
    transform: translateY(-2px);
}
.pagination .active .page-link {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: #fff;
    box-shadow: 0 8px 24px rgba(59,130,246,0.3);
}
.pagination .disabled .page-link {
    color: #94a3b8;
    opacity: 0.5;
    cursor: not-allowed;
}

/* ---------- 空状态 ---------- */
.empty {
    text-align: center;
    padding: 80px 20px;
    color: #94a3b8;
}
.empty i {
    font-size: 5rem;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.4;
}
.empty .btn-primary {
    border-radius: 40px;
    padding: 12px 36px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border: none;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(59,130,246,0.25);
}

/* ---------- 滚动条美化 ---------- */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: rgba(241,245,249,0.3);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: #3b82f6;
}

/* ---------- 响应式 ---------- */
@media (max-width: 576px) {
    .navbar .navbar-brand {
        font-size: 1.1rem;
    }
    .ride-card .ride-meta {
        grid-template-columns: 1fr 1fr;
        gap: 4px 8px;
    }
    .bottom-nav .nav-item i {
        font-size: 22px;
    }
    .bottom-nav .nav-item span {
        font-size: 10px;
    }
    .container {
        padding: 0 12px;
    }
    .route-header {
        padding: 16px;
    }
    .info-item .value {
        font-size: 0.95rem;
    }
    .modal-content {
        border-radius: 24px;
        max-width: 100%;
        margin: 10px;
    }
    .modal-header {
        padding: 16px 18px;
    }
    .modal-body {
        padding: 18px;
        font-size: 0.9rem;
    }
    .modal-footer {
        padding: 12px 18px;
        flex-wrap: wrap;
    }
    .modal-footer .btn {
        flex: 1;
        padding: 10px 0;
        text-align: center;
    }
}
@media (min-width: 768px) {
    body {
        padding-bottom: 0;
    }
    .bottom-nav {
        display: none;
    }
}

/* ---------- 工具类 ---------- */
.shadow-hover {
    transition: all 0.3s;
}
.shadow-hover:hover {
    box-shadow: 0 16px 48px rgba(0,0,0,0.06) !important;
    transform: translateY(-4px);
}
.text-muted {
    color: #64748b !important;
}
body.dark .text-muted {
    color: #94a3b8 !important;
}