/* ==================== 基础重置 ==================== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { overflow-x: hidden; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #1f2937;
    line-height: 1.6;
    background: #f8fafc;
    overflow-x: hidden;
    width: 100%;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; font-size: 14px; }

/* ==================== 顶部栏 ==================== */
.top-bar {
    background: #0a1628;
    color: rgba(255,255,255,0.7);
    font-size: 12px;
    padding: 8px 0;
}
.top-bar .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.top-bar a.whatsapp-btn {
    background: #10b981;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}
.top-bar a.whatsapp-btn:hover { background: #059669; }

/* ==================== 导航 ==================== */
.header {
    background: white;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 100;
}
.header .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    font-size: 18px;
    color: #0068c8;
    letter-spacing: 0.05em;
}
.logo svg { width: 24px; height: 24px; }
.nav { display: flex; gap: 4px; }
.nav a {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #4b5563;
    transition: all 0.2s;
}
.nav a:hover { background: #f3f4f6; color: #1f2937; }
.nav a.active { background: #0068c8; color: white; }

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 5px;
    background: none;
    border: none;
}
.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: #4b5563;
    transition: all 0.3s;
}

/* ==================== 容器 ==================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==================== 首页 Hero ==================== */
.hero {
    background: linear-gradient(135deg, #0a1628 0%, #1e3a5f 100%);
    color: white;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero .container { position: relative; z-index: 1; }
.hero h1 {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 16px;
    word-break: break-word;
}
.hero h1 span { color: #0068c8; display: block; }
.hero p {
    font-size: 16px;
    color: rgba(255,255,255,0.7);
    max-width: 480px;
    margin-bottom: 32px;
    word-break: break-word;
}
.hero-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
}
.btn-primary {
    background: #0068c8;
    color: white;
    box-shadow: 0 4px 12px rgba(0,104,200,0.3);
}
.btn-primary:hover { background: #0056a8; }
.btn-outline {
    border: 2px solid white;
    color: white;
}
.btn-outline:hover { background: rgba(255,255,255,0.1); }
.btn-sm { padding: 8px 16px; font-size: 13px; }

/* ==================== 搜索卡片 ==================== */
.search-section { padding: 48px 0; background: white; }
.search-section h2 {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 24px;
    word-break: break-word;
}
.search-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    border: 1px solid #e5e7eb;
    padding: 24px;
    max-width: 800px;
    margin: 0 auto;
}
.tabs {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.tab-btn {
    padding: 8px 24px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    background: #f3f4f6;
    color: #4b5563;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}
.tab-btn.active { background: #0068c8; color: white; }
.tab-btn:hover:not(.active) { background: #e5e7eb; }

.filter-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
.filter-grid .form-select,
.filter-grid .form-input {
    width: 100%;
    height: 44px;
    padding: 0 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f9fafb;
    color: #374151;
}
.filter-grid .form-select:focus,
.filter-grid .form-input:focus {
    outline: none;
    border-color: #0068c8;
    box-shadow: 0 0 0 3px rgba(0,104,200,0.1);
}

/* ==================== 车辆卡片 ==================== */
.section { padding: 64px 0; }
.section.bg-white { background: white; }
.section.bg-gray { background: #f8fafc; }

.section-header {
    text-align: center;
    margin-bottom: 40px;
}
.eyebrow {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #0068c8;
    display: block;
    margin-bottom: 8px;
}
.section-header h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
    word-break: break-word;
}
.section-header p { color: #6b7280; }

.car-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.car-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    cursor: pointer;
    transition: all 0.3s;
}
.car-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.1);
}
.car-card-image {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
}
.car-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.car-card:hover .car-card-image img { transform: scale(1.05); }
.car-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.car-card-placeholder svg {
    width: 64px;
    height: 64px;
    color: #9ca3af;
}
.badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    color: white;
}
.badge-new { background: #0068c8; }
.badge-used { background: #6b7280; }
.badge-featured { background: #f59e0b; left: auto; right: 12px; }

.car-card-body { padding: 20px; }
.car-brand {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #9ca3af;
}
.car-title {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin: 4px 0 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.car-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}
.car-specs span {
    font-size: 12px;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 4px;
}
.car-specs svg {
    width: 14px;
    height: 14px;
    color: #d1d5db;
}
.car-price {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}
.car-price-value {
    font-size: 20px;
    font-weight: 700;
    color: #0068c8;
}
.car-price-label {
    font-size: 11px;
    color: #9ca3af;
}
.car-enquire {
    font-size: 13px;
    font-weight: 600;
    color: #0068c8;
}

/* ==================== 统计条 ==================== */
.stats-bar {
    background: linear-gradient(90deg, #0068c8, #00b8d4);
    padding: 40px 0;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}
.stats-grid .stat-number {
    font-size: 36px;
    font-weight: 700;
    color: white;
}
.stats-grid .stat-label {
    font-size: 14px;
    color: rgba(255,255,255,0.8);
    margin-top: 4px;
}

/* ==================== 车辆详情弹窗 ==================== */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}
.modal-overlay.active { opacity: 1; visibility: visible; }

.modal-content {
    background: white;
    border-radius: 16px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow: auto;
    position: relative;
    transform: scale(0.95);
    transition: transform 0.3s;
}
.modal-overlay.active .modal-content { transform: scale(1); }

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: none;
    cursor: pointer;
}
.modal-close:hover { background: white; }

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.modal-gallery {
    background: #f9fafb;
}
.modal-main-image {
    aspect-ratio: 1;
    position: relative;
}
.modal-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.modal-main-image .badge {
    top: 16px;
    left: 16px;
}

.modal-thumbnails {
    display: flex;
    gap: 8px;
    padding: 12px;
    overflow-x: auto;
}
.modal-thumb {
    width: 72px;
    height: 72px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid transparent;
    cursor: pointer;
}
.modal-thumb.active { border-color: #0068c8; }
.modal-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-info { padding: 32px; }
.modal-info .car-brand { margin-bottom: 4px; }
.modal-info h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    word-break: break-word;
}
.modal-price {
    font-size: 28px;
    font-weight: 700;
    color: #0068c8;
    margin-bottom: 24px;
}
.modal-price span {
    font-size: 13px;
    color: #9ca3af;
    font-weight: 400;
    margin-left: 8px;
}

.specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 24px;
}
.spec-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: #f9fafb;
    border-radius: 8px;
}
.spec-item svg {
    width: 18px;
    height: 18px;
    color: #9ca3af;
    flex-shrink: 0;
}
.spec-item .spec-label {
    font-size: 11px;
    color: #9ca3af;
    text-transform: uppercase;
}
.spec-item .spec-value {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}

.description-box {
    margin-bottom: 24px;
}
.description-box h3 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}
.description-box p {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.6;
}

/* ==================== 图片灯箱 ==================== */
.lightbox {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.9);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}
.lightbox.active { opacity: 1; visibility: visible; }
.lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 4px;
}
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 32px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    border: none;
}
.lightbox-close:hover { background: rgba(255,255,255,0.2); }
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 36px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    border: none;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.2); }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.7);
    font-size: 14px;
}

/* ==================== 询盘表单 ==================== */
.enquire-form {
    background: white;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #e5e7eb;
}
.form-group { margin-bottom: 16px; }
.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 6px;
}
.form-group label .required { color: #ef4444; }
.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f9fafb;
    color: #374151;
    transition: all 0.2s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: #0068c8;
    box-shadow: 0 0 0 3px rgba(0,104,200,0.1);
}
.form-textarea { resize: vertical; min-height: 100px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ==================== 页脚 ==================== */
.footer {
    background: #0a1628;
    color: rgba(255,255,255,0.6);
    padding: 48px 0 24px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 32px;
    margin-bottom: 32px;
}
.footer h4 {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
    margin-bottom: 16px;
}
.footer a {
    display: block;
    font-size: 14px;
    margin-bottom: 8px;
    transition: color 0.2s;
}
.footer a:hover { color: white; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px;
    text-align: center;
    font-size: 12px;
    color: rgba(255,255,255,0.3);
}

/* ==================== Flash消息 ==================== */
.flash {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
}
.flash-success { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.flash-error { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }

/* ==================== 加载中 ==================== */
.loading {
    text-align: center;
    padding: 48px;
    color: #9ca3af;
}

/* ==================== 空状态 ==================== */
.empty-state {
    text-align: center;
    padding: 64px 20px;
    color: #9ca3af;
}
.empty-state svg {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    color: #d1d5db;
}

/* ==================== 分页 ==================== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
    flex-wrap: wrap;
}
.pagination a, .pagination span {
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
}
.pagination a {
    background: white;
    border: 1px solid #e5e7eb;
    color: #4b5563;
}
.pagination a:hover { background: #f3f4f6; }
.pagination span { background: #0068c8; color: white; }

/* ==================== 响应式 - Tablet ==================== */
@media (max-width: 1024px) {
    .car-grid { grid-template-columns: repeat(2, 1fr); }
    .filter-grid { grid-template-columns: repeat(2, 1fr); }
    .modal-body { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .modal-content { max-width: 95%; }
    .hero { padding: 60px 0; }
}

/* ==================== 响应式 - Mobile ==================== */
@media (max-width: 768px) {
    .hamburger { display: flex; }
    .nav {
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 16px;
        border-bottom: 1px solid #e5e7eb;
        display: none;
        z-index: 99;
    }
    .nav.open { display: flex; }
    .hero { padding: 48px 0; }
    .hero h1 { font-size: 26px; }
    .hero p { font-size: 14px; }
    .car-grid { grid-template-columns: 1fr; }
    .filter-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .stats-grid .stat-number { font-size: 28px; }
    .footer-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .modal-content { max-height: 95vh; border-radius: 12px; }
    .modal-info { padding: 20px; }
    .modal-info h2 { font-size: 18px; }
    .modal-price { font-size: 22px; }
    .specs-grid { grid-template-columns: 1fr; }
    .lightbox-prev, .lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }
    .lightbox-prev { left: 8px; }
    .lightbox-next { right: 8px; }
    .section { padding: 48px 0; }
    .section-header h2 { font-size: 24px; }
    .search-section h2 { font-size: 22px; }
    .pagination a, .pagination span { padding: 6px 10px; font-size: 13px; }
}

/* ==================== 响应式 - Small Mobile ==================== */
@media (max-width: 480px) {
    .hero h1 { font-size: 22px; }
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .stats-grid .stat-number { font-size: 24px; }
    .btn { padding: 10px 20px; font-size: 13px; }
    .top-bar { font-size: 11px; }
    .modal-content { margin: 10px; }
    .modal-thumbnails { padding: 8px; gap: 6px; }
    .modal-thumb { width: 56px; height: 56px; }
}

/* ==================== 后台管理 ==================== */
.admin-layout { display: flex; min-height: 100vh; width: 100%; overflow-x: hidden; }
.admin-sidebar {
    width: 240px;
    background: #0a1628;
    color: white;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 200;
    transition: transform 0.3s ease;
}
.admin-sidebar-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    gap: 10px;
}
.admin-sidebar-header svg { width: 24px; height: 24px; color: #0068c8; }
.admin-sidebar-header span { font-weight: 700; font-size: 14px; }
.admin-nav { flex: 1; padding: 12px; overflow-y: auto; }
.admin-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    transition: all 0.2s;
    margin-bottom: 4px;
}
.admin-nav a:hover, .admin-nav a.active { background: #0068c8; color: white; }
.admin-nav a svg { width: 18px; height: 18px; }
.admin-sidebar-footer {
    padding: 16px;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.admin-sidebar-footer p { font-size: 12px; color: rgba(255,255,255,0.4); margin-bottom: 8px; }
.admin-sidebar-footer a { display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,0.6); font-size: 14px; }

.admin-main {
    flex: 1;
    background: #f3f4f6;
    overflow: auto;
    margin-left: 240px;
    min-height: 100vh;
}
.admin-header {
    background: white;
    padding: 16px 24px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.admin-header h1 { font-size: 20px; font-weight: 700; }
.admin-content { padding: 24px; }
.admin-section {
    background: white;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
}
.admin-section-header {
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}
.admin-section-header h2 { font-size: 16px; font-weight: 600; }

/* 后台表格 */
.table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
table.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    min-width: 700px;
}
table.admin-table th {
    text-align: left;
    padding: 12px 20px;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    white-space: nowrap;
}
table.admin-table td {
    padding: 12px 20px;
    border-bottom: 1px solid #f3f4f6;
    vertical-align: middle;
}
table.admin-table tr:hover td { background: #f9fafb; }

.status-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}
.status-new { background: #dbeafe; color: #1e40af; }
.status-read { background: #fef3c7; color: #92400e; }
.status-replied { background: #d1fae5; color: #065f46; }
.status-active { background: #d1fae5; color: #065f46; }
.status-sold { background: #fee2e2; color: #991b1b; }
.status-hidden { background: #f3f4f6; color: #4b5563; }

.btn-icon {
    padding: 6px;
    border-radius: 6px;
    color: #6b7280;
    display: inline-flex;
    text-decoration: none;
}
.btn-icon:hover { background: #f3f4f6; }
.btn-icon.delete:hover { background: #fee2e2; color: #ef4444; }

/* 移动端侧边栏汉堡菜单 */
.admin-menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
}
.admin-menu-toggle svg {
    width: 24px;
    height: 24px;
    color: #374151;
}

/* 后台响应式 */
@media (max-width: 768px) {
    .admin-sidebar {
        transform: translateX(-100%);
    }
    .admin-sidebar.open {
        transform: translateX(0);
    }
    .admin-main {
        margin-left: 0;
    }
    .admin-menu-toggle {
        display: block;
    }
    .admin-header {
        padding: 12px 16px;
    }
    .admin-content {
        padding: 16px;
    }
    /* 遮罩层 */
    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: 150;
    }
    .sidebar-overlay.active {
        display: block;
    }
}

@media (max-width: 480px) {
    .admin-header h1 { font-size: 16px; }
    .admin-content { padding: 12px; }
}

/* ==================== 后台表单 ==================== */
.form-section {
    background: white;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    padding: 24px;
    margin-bottom: 16px;
}
.form-section h3 {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    color: #9ca3af;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
}
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
@media (max-width: 768px) {
    .form-grid { grid-template-columns: 1fr; }
    .form-section { padding: 16px; }
}
