/* EVS Frontend CSS */
.evs-browser { max-width: 1200px; margin: 0 auto; padding: 20px; }

/* 高德控件尺寸重置（防止主题继承放大） */
.amap-maptype { width: 120px !important; font-size: 12px !important; line-height: 20px !important; }
.amap-maptype * { font-size: 12px !important; line-height: 20px !important; margin: 0 !important; }
.amap-maptype label { display: block !important; padding: 4px 8px !important; margin: 0 !important; line-height: 20px !important; cursor: pointer; }
.amap-maptype input { margin-right: 4px !important; vertical-align: middle; }
.amap-maptype .amap-maptype-line, .amap-maptype hr { margin: 4px 0 !important; border: none !important; border-top: 1px solid #ccc !important; }
.amap-tool-bar, .amap-tool-bar * { font-size: 12px !important; line-height: 1.4 !important; }
.evs-tabs { display: flex; gap: 0; margin-bottom: 20px; border-bottom: 2px solid #ddd; }
.evs-tab {
    padding: 10px 24px; background: none; border: none; cursor: pointer;
    font-size: 15px; color: #666; border-bottom: 2px solid transparent; margin-bottom: -2px;
}
.evs-tab.active { color: #2271b1; border-bottom-color: #2271b1; font-weight: bold; }
.evs-filters { background: #f9f9f9; padding: 15px; border-radius: 6px; margin-bottom: 20px; }
.evs-filter-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.evs-filter-row:last-child { margin-bottom: 0; }
.evs-filter-row select, .evs-filter-row input {
    padding: 8px 10px; border: 1px solid #ddd; border-radius: 4px; font-size: 14px;
}
.evs-filter-row select { min-width: 150px; }
.evs-filter-row .evs-price-min, .evs-filter-row .evs-price-max { width: 90px; }
.evs-filter-row .evs-keyword { flex: 1; min-width: 180px; }
.evs-search-btn { padding: 6px 18px; background: #2271b1; color: #fff; border: none; border-radius: 4px; cursor: pointer; }
.evs-search-btn:hover { background: #135e96; }
.evs-price-unit { color: #999; font-size: 13px; }

/* 平铺标签选择器 */
.evs-chip-row { align-items: center; }
.evs-chip-label { color: #666; font-size: 13px; white-space: nowrap; font-weight: bold; }
.evs-chip {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 5px 12px; background: #fff; border: 1px solid #ddd;
    border-radius: 16px; font-size: 13px; cursor: pointer; margin-right: 6px;
    transition: all .15s;
}
.evs-chip:hover { border-color: #2271b1; }
.evs-chip.active { background: #2271b1; color: #fff; border-color: #2271b1; }
.evs-chip input { display: none; }

.evs-region-wrap { max-width: 1200px; margin: 0 auto; padding: 20px; }
.evs-region-filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 15px; }
.evs-region-filters select { padding: 8px 12px; min-width: 160px; border: 1px solid #ddd; border-radius: 4px; }
.evs-region-secondary { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; padding: 10px; background: #f9f9f9; border-radius: 4px; }
.evs-type-filter label { margin-right: 12px; font-size: 14px; }
.evs-level-filter select, .evs-keyword { padding: 6px 10px; border: 1px solid #ddd; border-radius: 4px; }

.evs-station-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.evs-station-card { background: #fff; border: 1px solid #eee; border-radius: 6px; overflow: hidden; transition: box-shadow .2s; }
.evs-station-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.1); }
.evs-station-card .thumb { width: 100%; aspect-ratio: 4/3; object-fit: cover; background: #f0f0f0; display: block; }
.evs-station-card .body { padding: 6px 8px; }
.evs-station-card .evs-station-title { font-size: 20px; font-weight: bold; margin: 10px 0; line-height: 1.3; }
.evs-station-card .evs-station-title a { color: #222; text-decoration: none; }
.evs-station-card .tags { margin-bottom: 5px; line-height: 1; }
.evs-station-card .tag { display: inline-block; padding: 2px 8px; background: #e7f0fa; color: #2271b1; border-radius: 3px; font-size: 12px; margin: 0 4px 5px 0; vertical-align: top; }
.evs-station-card .tag.level { background: #fff3cd; color: #856404; }
.evs-station-card .tag.wh { background: #e0e7ff; color: #3730a3; }

/* 站点属性标签：按属性维度配色（卡片与地图气泡共用） */
.evs-attr-tag { display: inline-block; padding: 2px 8px; border-radius: 3px; font-size: 12px; line-height: 1.6; margin: 0 4px 3px 0; }
.evs-attr-tag.evs-attr-charging-station { background: #e7f0fa; color: #2271b1; }
.evs-attr-tag.evs-attr-connector-standard { background: #ede9fe; color: #6d28d9; }
.evs-attr-tag.evs-attr-charging-efficiency { background: #fee2e2; color: #b91c1c; }
.evs-attr-tag.evs-attr-swap-station { background: #dcfce7; color: #15803d; }
.evs-attr-tag.evs-attr-swap-mode { background: #ccfbf1; color: #0f766e; }
.evs-attr-tag.evs-attr-service-vehicle { background: #fef3c7; color: #b45309; }
.tag.evs-attr-status { background: #e5e7eb; color: #374151; }
.tag.evs-attr-status.evs-status-running { background: #dcfce7; color: #15803d; }
.tag.evs-attr-status.evs-status-building { background: #fef3c7; color: #b45309; }
.tag.evs-attr-status.evs-status-planned { background: #e0e7ff; color: #3730a3; }
.tag.evs-attr-status.evs-status-stopped { background: #f3f4f6; color: #6b7280; }
.evs-station-card .price { font-size: 14px; color: #d63636; font-weight: bold; margin: 4px 0; }
.evs-station-card .addr { color: #666; font-size: 13px; line-height: 1.4; }

.evs-pagination { margin-top: 20px; text-align: center; }
.evs-pagination .page-numbers { display: inline-block; padding: 6px 12px; margin: 0 3px; border: 1px solid #ddd; border-radius: 4px; text-decoration: none; }
.evs-pagination .current { background: #2271b1; color: #fff; }

.evs-map-wrap { max-width: 1200px; margin: 20px auto 0; padding: 0; border-radius: 4px; overflow: visible; }
.evs-map-filters { display: flex; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; align-items: center; }
.evs-map-filters select { padding: 8px 12px; min-width: 180px; border: 1px solid #ddd; border-radius: 4px; font-size: 14px; }
.evs-map-apply-btn, .evs-map-clear-btn { padding: 8px 20px; border: none; border-radius: 4px; cursor: pointer; font-size: 14px; }
.evs-map-apply-btn { background: #2271b1; color: #fff; }
.evs-map-apply-btn:hover { background: #135e96; }
.evs-map-clear-btn { background: #f0f0f1; color: #2c3338; border: 1px solid #c3c4c7; }
.evs-map-clear-btn:hover { background: #e3e3e5; }
.evs-map-count { margin-top: 10px; text-align: right; color: #666; }

/* 地图 marker 样式 */
.evs-marker-pin {
    width: 28px; height: 28px; line-height: 28px; text-align: center;
    background: #fff; border: 2px solid #2271b1; border-radius: 50%;
    font-size: 16px; box-shadow: 0 2px 6px rgba(0,0,0,.2);
}
.evs-cluster-pin {
    width: 40px; height: 40px; line-height: 40px; text-align: center;
    background: #2271b1; color: #fff; border-radius: 50%;
    border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.3);
    font-weight: bold; font-size: 14px;
}

/* 详情页 */
.evs-detail-wrap { max-width: 1000px; margin: 0 auto; padding: 20px; background: #fff; font-size: 16px; }
.evs-breadcrumb { font-size: 16px; color: #666; margin-bottom: 15px; }
.evs-breadcrumb a { color: #2271b1; }
.evs-detail-gallery { margin-bottom: 30px; }
.evs-detail-gallery img.main { width: 100%; max-height: 450px; object-fit: cover; border-radius: 8px; }
.evs-detail-gallery .thumbs { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.evs-detail-gallery .thumbs img { width: 80px; height: 60px; object-fit: cover; border-radius: 4px; cursor: pointer; border: 2px solid transparent; }
.evs-detail-gallery .thumbs img.active { border-color: #2271b1; }
.evs-detail-wrap h1 { font-size: 24px; margin: 0 0 10px; }
.evs-detail-title-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.evs-detail-title-row h1 { margin: 0; }
.evs-detail-title-row .evs-edit-park-btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 16px; border-radius: 6px; background: #2271b1; color: #fff !important; font-size: 14px; line-height: 1.4; text-decoration: none; white-space: nowrap; }
.evs-detail-title-row .evs-edit-park-btn:hover { background: #135e96; color: #fff !important; }
.evs-detail-tags { margin-bottom: 30px; }
.evs-detail-tags .tag { display: inline-block; padding: 3px 12px; background: #e7f0fa; color: #2271b1; border-radius: 3px; font-size: 16px; margin: 0 6px 6px 0; }
.evs-detail-tags .tag.level { background: #fff3cd; color: #856404; }
.evs-detail-tags .tag.wh { background: #e0e7ff; color: #3730a3; }
.evs-detail-tags .tag.status { background: #2271b1; color: #fff; }
.evs-detail-wrap h3 { margin: 30px 0 10px; font-size: 16px; }
.evs-detail-wrap h4 { font-size: 16px; }
.evs-detail-wrap .evs-unit { font-size: 16px; }
.evs-detail-table { width: 100%; border-collapse: collapse; margin: 10px 0 0; }
.evs-detail-table th { text-align: left; width: 200px; padding: 10px; background: #f9f9f9; border: 1px solid #eee; }
.evs-detail-table td { padding: 10px; border: 1px solid #eee; }
.evs-attach-list { list-style: none; padding: 0; }
.evs-attach-list li { padding: 8px 0; border-bottom: 1px dashed #eee; }
.evs-attach-list a { color: #2271b1; }

/* 新闻列表 */
.evs-news-list, .evs-report-list { margin-bottom: 15px; }
.evs-news-item, .evs-report-item {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 12px; border-bottom: 1px solid #f0f0f0;
}
.evs-news-item:hover { background: #f9f9f9; }
.evs-news-icon { flex: 0 0 auto; }
.evs-news-item a {
    flex: 1; color: #2271b1; text-decoration: none;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.evs-news-item a:hover { text-decoration: underline; }
.evs-news-arrow { color: #999; font-size: 12px; }

.evs-nav { display: flex; justify-content: space-between; margin-top: 30px; padding-top: 20px; border-top: 1px solid #eee; }

/* 归档页 */
.evs-archive-wrap { max-width: 1100px; margin: 0 auto; padding: 20px; }
.evs-archive-title { font-size: 28px; margin: 0 0 5px; }
.evs-archive-subtitle { color: #666; margin: 0 0 25px; }
.evs-archive-list { display: flex; flex-direction: column; gap: 16px; }
.evs-archive-card {
    display: flex; gap: 20px; background: #fff; border: 1px solid #e8e8e8;
    border-radius: 8px; overflow: hidden; transition: box-shadow .2s;
}
.evs-archive-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.08); }
.evs-archive-thumb { flex: 0 0 280px; display: block; }
.evs-archive-thumb img { width: 100%; height: 180px; object-fit: cover; display: block; }
.evs-archive-info { flex: 1; padding: 16px 20px 16px 0; }
.evs-archive-name { margin: 0 0 8px; font-size: 22px; }
.evs-archive-name a { color: #23282d; text-decoration: none; }
.evs-archive-name a:hover { color: #2271b1; }
.evs-archive-tags { margin-bottom: 10px; }
.evs-archive-meta .meta-row { font-size: 15px; color: #555; margin-bottom: 4px; }
.evs-archive-meta .meta-label {
    display: inline-block; min-width: 48px; color: #999; margin-right: 6px;
}
.evs-archive-pagination { margin-top: 25px; text-align: center; }
.evs-archive-pagination .page-numbers {
    display: inline-block; padding: 6px 12px; margin: 0 3px;
    border: 1px solid #ddd; border-radius: 4px; text-decoration: none;
}
.evs-archive-pagination .current { background: #2271b1; color: #fff; }
.evs-archive-empty { text-align: center; color: #999; padding: 40px 0; }
@media (max-width: 640px) {
    .evs-archive-card { flex-direction: column; }
    .evs-archive-thumb { flex: none; }
    .evs-archive-thumb img { height: 180px; }
    .evs-archive-info { padding: 16px; }
}

/* 列表 meta 行 dashicon */
.evs-archive-meta .meta-row { display: flex; align-items: center; gap: 6px; margin: 4px 0; color: #555; font-size: 15px; }
.evs-archive-meta .dashicons { color: #999; font-size: 16px; width: 16px; height: 16px; }

/* 地图 marker pin */
.evs-marker-pin { cursor: pointer; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3)); }
.evs-marker-pin:hover { transform: scale(1.1); transform-origin: bottom center; }

/* 地图全屏 */
.evs-map-wrap { position: relative; }
.evs-map-wrap:fullscreen { width: 100vw; height: 100vh; background: #fff; }
.evs-map-wrap:fullscreen #evs-map-canvas { height: 100vh !important; }
.evs-map-fullscreen {
    position: absolute; top: 10px; right: 10px; z-index: 10;
    background: #fff; border: 1px solid #ddd; border-radius: 4px;
    width: 36px; height: 36px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.evs-map-fullscreen:hover { background: #f5f5f5; }
.evs-map-fullscreen .dashicons { font-size: 20px; width: 20px; height: 20px; line-height: 1; }

/* 列表响应式 */
@media (max-width: 1400px) { .evs-station-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 1100px) { .evs-station-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 800px) { .evs-station-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) {
    .evs-station-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .evs-station-card .body { padding: 6px; }
    .evs-station-card .evs-station-title { font-size: 14px; margin: 6px 0; }
    .evs-station-card .tags { line-height: 1; }
    .evs-station-card .tag { font-size: 11px; padding: 1px 6px; }
    .evs-station-card .price { font-size: 13px; }
    .evs-station-card .addr { font-size: 12px; }
}

/* 地图容器强制尺寸 */
.evs-view-map { min-height: 600px; }
#evs-map-canvas { width: 100% !important; min-height: 400px; background: #e8e8e8; }
.evs-map-wrap { position: relative; }
#evs-map-status { position: absolute; top: 10px; left: 10px; z-index: 200; background: rgba(255,255,255,.92); padding: 6px 12px; border-radius: 4px; font-size: 13px; color: #333; box-shadow: 0 1px 4px rgba(0,0,0,.15); }

/* 地图容器移出屏幕但保持尺寸，避免高德在display:none时初始化出错 */
.evs-offscreen {
    position: absolute !important;
    left: -99999px !important;
    top: 0 !important;
    width: 100%;
    visibility: hidden;
    pointer-events: none;
}
.evs-view-map:not(.evs-offscreen) {
    position: relative;
    visibility: visible;
    pointer-events: auto;
}


/* === 新能源站补充样式 === */
.evs-station-card .thumb-link { display: block; }
.evs-station-card .meta { font-size: 13px; color: #555; margin: 4px 0; line-height: 1.5; }
.evs-station-card .body .tags { line-height: 1; }
.evs-empty, .evs-loading { grid-column: 1 / -1; padding: 24px 0; text-align: center; color: #888; font-size: 14px; }
.evs-type-sub-row { margin-top: -2px; }
.evs-attr-sub { margin-left: 60px; margin-top: -2px; }
.evs-attr-sub .evs-chip { background: #f6f7f7; }
.evs-attr-sub .evs-chip.active { background: #2271b1; }
.evs-chip-group::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 3px;
    vertical-align: middle;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
}
.evs-sub-group { font-size: 12px; color: #8a8a8a; margin: 0 6px 0 14px; white-space: nowrap; }
.evs-chip-sub { background: #f6f7f7; }
.evs-chip-sub.active { background: #2271b1; }
.evs-status-select, .evs-brand-select { min-width: 130px; }
.evs-filter-row-secondary { margin-top: -2px; }
.evs-new-station-btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 6px 18px; background: #2271b1; color: #fff !important;
    border: none; border-radius: 4px; font-family: inherit;
    font-size: 16px; line-height: 28.8px; text-decoration: none; white-space: nowrap;
}
.evs-new-station-btn:hover { background: #135e96; color: #fff !important; }
.evs-detail-title-row .evs-edit-station-btn {
    display: inline-flex; align-items: center; gap: 6px; padding: 7px 16px; border-radius: 6px;
    background: #2271b1; color: #fff !important; font-size: 16px; line-height: 1.4;
    text-decoration: none; white-space: nowrap;
}
.evs-detail-title-row .evs-edit-station-btn:hover { background: #135e96; color: #fff !important; }
.evs-detail-content { color: #333; line-height: 1.8; font-size: 16px; }
.evs-detail-wrap .evs-news-arrow { font-size: 16px; }
.evs-unit { color: #888; font-size: 12px; }
.evs-iw { min-width: 210px; max-width: 280px; font-size: 13px; line-height: 1.6; padding: 2px 0; }
.evs-iw-title { font-size: 15px; font-weight: bold; margin-bottom: 4px; }
.evs-iw-title a { color: #2271b1; text-decoration: none; }
.evs-iw-tags { color: #666; font-size: 12px; margin-bottom: 4px; }
.evs-iw-stats { color: #333; font-size: 12px; margin-bottom: 4px; }
.evs-iw-addr { color: #888; font-size: 12px; }
.evs-iw-link { margin-top: 6px; }
.evs-iw-link a { color: #2271b1; text-decoration: none; font-size: 12px; }
/* ============ 前台投稿表单 [ev_station_submit] ============ */
.evs-form { max-width: 980px; margin: 0 auto; color: #1f2937; font-size: 14px; }
.evs-form-title { font-size: 22px; margin: 0 0 8px; }
.evs-form-desc { color: #6b7280; margin: 0 0 16px; line-height: 1.7; }
.evs-form-msg { padding: 12px 14px; border-radius: 8px; margin-bottom: 16px; font-size: 14px; }
.evs-form-msg.is-success { background: #edfaef; color: #1a7f37; border: 1px solid #b7ebc6; }
.evs-form-msg.is-error { background: #fdecea; color: #c62828; border: 1px solid #f5c6c6; }
.evs-form-sec { border: 1px solid #e5e7eb; border-radius: 10px; padding: 16px 18px 8px; margin-bottom: 16px; background: #fff; }
.evs-form-sec h3 { font-size: 16px; margin: 0 0 6px; padding-bottom: 8px; border-bottom: 1px solid #f0f1f3; }
.evs-form-sec-desc { font-size: 12px; color: #9ca3af; margin: 6px 0 12px; }
.evs-form-grid { display: flex; flex-wrap: wrap; gap: 0 26px; }
.evs-form-item { flex: 1 1 calc(50% - 26px); min-width: 260px; padding: 6px 0 10px; box-sizing: border-box; }
.evs-form-item-types, .evs-form-item-region, .evs-form-item-coords, .evs-form-item-photos, .evs-form-item-news, .evs-form-item-textarea { flex-basis: 100%; }
.evs-form-label { display: flex; align-items: center; gap: 2px; margin: 0 0 5px; font-size: 13px; font-weight: 500; color: #374151; }
.evs-form-label .req { color: #dc2626; }
.evs-form-input { width: 100% !important; max-width: none; box-sizing: border-box; padding: 8px 10px !important; border: 1px solid #d1d5db !important; border-radius: 6px; font-size: 14px !important; line-height: 1.5; background: #fff !important; color: #1f2937 !important; box-shadow: none !important; height: auto !important; }
.evs-form-input:focus { outline: none !important; border-color: #2271b1 !important; box-shadow: 0 0 0 3px rgba(34,113,177,.15) !important; }
.evs-form-textarea { min-height: 72px; resize: vertical; }
.evs-form-unit-wrap { display: flex; align-items: center; gap: 8px; }
.evs-form-unit-wrap .evs-form-input { flex: 1 1 auto; width: auto !important; }
.evs-form-unit { font-style: normal; font-size: 12px; color: #6b7280; white-space: nowrap; }
.evs-form-checks { display: flex; flex-wrap: wrap; gap: 7px 18px; padding-top: 4px; }
.evs-form-check { display: inline-flex !important; align-items: center; gap: 5px; margin: 0 !important; font-size: 13px; font-weight: 400; color: #374151; width: auto !important; }
.evs-form-check input { width: auto !important; margin: 0 !important; }
.evs-form-region, .evs-form-coords { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.evs-form-region .evs-form-region-select { flex: 1 1 0; min-width: 0; width: auto !important; }
.evs-form-coords .evs-form-coord { flex: 0 0 150px; width: 150px !important; background: #f9fafb !important; }
.evs-form-mini-btn { display: inline-block; padding: 7px 13px; font-size: 13px; line-height: 1.4; color: #1f2937 !important; background: #f9fafb !important; border: 1px solid #d1d5db !important; border-radius: 6px; cursor: pointer; white-space: nowrap; text-decoration: none !important; }
.evs-form-mini-btn:hover { background: #f0f1f3 !important; }
.evs-form-map { height: 320px; border: 1px solid #e5e7eb; border-radius: 8px; overflow: hidden; margin-top: 10px; }
.evs-form-note { font-size: 12px; color: #9ca3af; margin: 6px 0 4px; }
.evs-form-photo-list { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 8px; }
.evs-photo-item { position: relative; }
.evs-photo-item img { width: 110px; height: 82px; object-fit: cover; border-radius: 6px; border: 1px solid #d1d5db; display: block; }
.evs-photo-del { position: absolute; top: -8px; right: -8px; width: 20px; height: 20px; border-radius: 50%; border: none; background: #dc2626; color: #fff; cursor: pointer; line-height: 1; font-size: 13px; padding: 0; }
.evs-form-news-row { display: flex; gap: 8px; margin-bottom: 8px; align-items: center; flex-wrap: wrap; }
.evs-form-news-row .evs-news-title { flex: 0 0 38%; width: 38% !important; }
.evs-form-news-row .evs-news-url { flex: 1 1 auto; width: auto !important; }
.evs-form-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.evs-form-submit { margin-top: 18px; padding-top: 16px; border-top: 1px solid #e5e7eb; display: flex; align-items: center; flex-wrap: wrap; gap: 14px; }
.evs-form-btn { display: inline-block; padding: 11px 34px; background: #2271b1 !important; color: #fff !important; border: none !important; border-radius: 8px; font-size: 15px; font-weight: 500; cursor: pointer; line-height: 1.4; }
.evs-form-btn:hover { background: #135e96 !important; }
.evs-form-btn:disabled { opacity: .6; cursor: not-allowed; }
.evs-form-hint { font-size: 12px; color: #9ca3af; }
.evs-form-tip { max-width: 980px; margin: 0 auto; padding: 28px; border: 1px dashed #d1d5db; border-radius: 10px; text-align: center; color: #6b7280; }
.evs-form-type-tree { display: flex; flex-direction: column; gap: 14px; margin-top: 8px; }
.evs-form-type-tree .evs-type-group { border: 1px solid #e5e7eb; border-left: 3px solid #2271b1; border-radius: 8px; padding: 12px 14px; margin: 0; background: #fafbfc; }
.evs-form-type-tree .evs-type-group-head { display: flex !important; align-items: center; gap: 8px; margin: 0 !important; padding-bottom: 10px; border-bottom: 1px dashed #e5e7eb; cursor: pointer; }
.evs-form-type-tree .evs-type-group-name { font-weight: 600; color: #1f2937; }
.evs-form-type-tree .evs-type-children { display: flex; flex-wrap: wrap; gap: 10px 12px; margin-top: 10px; }
.evs-form-type-tree .evs-type-subgroup { flex: 1 1 100%; display: block; border: 1px solid #e5e7eb; border-radius: 6px; padding: 10px 12px; margin: 0; background: #fff; }
.evs-form-type-tree .evs-type-subgroup-head { display: flex !important; align-items: center; gap: 8px; margin: 0 0 8px !important; cursor: pointer; }
.evs-form-type-tree .evs-type-subgroup-name { font-weight: 600; color: #374151; }
.evs-form-type-tree .evs-type-subgroup-options { display: flex; flex-wrap: wrap; gap: 8px 10px; }
.evs-form-type-tree .evs-type-leaf { display: inline-flex !important; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid #d1d5db; border-radius: 999px; background: #fff; margin: 0 !important; color: #374151; font-weight: 400; cursor: pointer; transition: all .15s; }
.evs-form-type-tree .evs-type-leaf:hover { border-color: #2271b1; color: #2271b1; }
.evs-form-type-tree .evs-type-leaf:has(input:checked) { background: #e7f0fa; border-color: #2271b1; color: #1d4ed8; }
.evs-form-type-tree .evs-type-leaf input,
.evs-form-type-tree .evs-type-group-head input,
.evs-form-type-tree .evs-type-subgroup-head input { margin: 0; accent-color: #2271b1; }

/* 深色模式：跟随主题 body.night / body.nightmode / 插件 dark 选项 */
body.night .evs-form,
body.nightmode .evs-form,
.evs-form.evs-form--dark { color: #e5e7eb; }
body.night .evs-form-sec,
body.nightmode .evs-form-sec,
.evs-form.evs-form--dark .evs-form-sec { background: #1f2430; border-color: #374151; }
body.night .evs-form-sec h3,
body.nightmode .evs-form-sec h3,
.evs-form.evs-form--dark .evs-form-sec h3 { color: #e5e7eb; border-color: #374151; }
body.night .evs-form-label, body.night .evs-form-check, body.night .evs-form-desc,
body.nightmode .evs-form-label, body.nightmode .evs-form-check, body.nightmode .evs-form-desc,
.evs-form.evs-form--dark .evs-form-label,
.evs-form.evs-form--dark .evs-form-check,
.evs-form.evs-form--dark .evs-form-desc { color: #d1d5db; }
body.night .evs-form-input, body.nightmode .evs-form-input,
.evs-form.evs-form--dark .evs-form-input { background: #252b36 !important; color: #e5e7eb !important; border-color: #4b5563 !important; }
body.night .evs-form-mini-btn, body.nightmode .evs-form-mini-btn,
.evs-form.evs-form--dark .evs-form-mini-btn { background: #252b36 !important; color: #e5e7eb !important; border-color: #4b5563 !important; }
body.night .evs-form-coords .evs-form-coord, body.nightmode .evs-form-coords .evs-form-coord,
.evs-form.evs-form--dark .evs-form-coords .evs-form-coord { background: #252b36 !important; }
body.night .evs-photo-item img, body.nightmode .evs-photo-item img,
.evs-form.evs-form--dark .evs-photo-item img { border-color: #4b5563; }
body.night .evs-form-sec-desc, body.night .evs-form-note, body.night .evs-form-hint,
body.nightmode .evs-form-sec-desc, body.nightmode .evs-form-note, body.nightmode .evs-form-hint,
.evs-form.evs-form--dark .evs-form-sec-desc,
.evs-form.evs-form--dark .evs-form-note,
.evs-form.evs-form--dark .evs-form-hint { color: #9ca3af; }
body.night .evs-form-type-tree .evs-type-group-name,
body.nightmode .evs-form-type-tree .evs-type-group-name,
.evs-form.evs-form--dark .evs-type-group-name { color: #e5e7eb; }
body.night .evs-form-type-tree .evs-type-subgroup,
body.nightmode .evs-form-type-tree .evs-type-subgroup { border-color: #4b5563; }

@media (prefers-color-scheme: dark) {
  .evs-form.evs-form--auto .evs-form-sec { background: #1f2430; border-color: #374151; }
  .evs-form.evs-form--auto { color: #e5e7eb; }
  .evs-form.evs-form--auto .evs-form-input { background: #252b36 !important; color: #e5e7eb !important; border-color: #4b5563 !important; }
}

@media (max-width: 640px) {
  .evs-form-item { flex-basis: 100%; }
  .evs-form-coords .evs-form-coord { flex: 1 1 40%; }
  .evs-form-map { height: 260px; }
}
/* 折叠的选填分组 */
.evs-form-fold { padding: 0; }
.evs-form-fold > summary { list-style: none; cursor: pointer; padding: 14px 18px; font-size: 15px; font-weight: 600; color: #1f2937; display: flex; align-items: center; justify-content: space-between; }
.evs-form-fold > summary::-webkit-details-marker { display: none; }
.evs-form-fold-hint { font-size: 12px; font-weight: 400; color: #6b7280; }
.evs-form-fold[open] > summary { border-bottom: 1px solid #f0f1f3; }
.evs-form-fold[open] .evs-form-fold-hint { display: none; }
.evs-form-fold .evs-form-sec-desc { padding: 0 18px; }
.evs-form-fold .evs-form-grid { padding: 6px 18px 2px; }
body.night .evs-form-fold > summary, body.nightmode .evs-form-fold > summary,
.evs-form.evs-form--dark .evs-form-fold > summary { color: #e5e7eb; }
body.night .evs-form-fold[open] > summary, body.nightmode .evs-form-fold[open] > summary,
.evs-form.evs-form--dark .evs-form-fold[open] > summary { border-color: #374151; }
/* === 插件主题模式：深色（查询页 / 详情页 / 归档页） === */
body.evs-theme-dark .evs-browser,
body.evs-theme-dark .evs-detail-wrap {
    background: #1f2430;
    color: #e5e7eb;
}
body.evs-theme-dark .evs-tabs { border-bottom-color: #374151; }
body.evs-theme-dark .evs-tab { color: #aaa; }
body.evs-theme-dark .evs-tab.active { color: #fff; border-bottom-color: #2271b1; }
body.evs-theme-dark .evs-filters { background: #252b36; }
body.evs-theme-dark .evs-filter-row select,
body.evs-theme-dark .evs-filter-row input,
body.evs-theme-dark .evs-region-filters select {
    background: #333; color: #eee; border-color: #555;
}
body.evs-theme-dark .evs-chip-label { color: #aaa; }
body.evs-theme-dark .evs-chip { background: #333; color: #ddd; border-color: #555; }
body.evs-theme-dark .evs-chip:hover { border-color: #4a9eda; }
body.evs-theme-dark .evs-chip.active { background: #2271b1; color: #fff; border-color: #2271b1; }
body.evs-theme-dark .evs-station-card { background: #2d2d2d; border-color: #444; }
body.evs-theme-dark .evs-station-card .evs-station-title a { color: #eee; }
body.evs-theme-dark .evs-station-card .meta,
body.evs-theme-dark .evs-station-card .addr { color: #aaa; }
body.evs-theme-dark .evs-station-card .price { color: #f87171; }
body.evs-theme-dark .evs-station-card .thumb { background: #333; }
body.evs-theme-dark .evs-empty,
body.evs-theme-dark .evs-loading { color: #999; }
body.evs-theme-dark .evs-pagination .page-numbers { background: #2d2d2d; border-color: #444; color: #ddd; }
body.evs-theme-dark .evs-pagination .current { background: #2271b1; color: #fff; }
body.evs-theme-dark #evs-map-status { background: rgba(45,45,45,.92); color: #eee; }
body.evs-theme-dark .evs-breadcrumb { color: #999; }
body.evs-theme-dark .evs-breadcrumb a { color: #4a9eda; }
body.evs-theme-dark .evs-detail-wrap h1,
body.evs-theme-dark .evs-detail-wrap h3,
body.evs-theme-dark .evs-detail-wrap h4 { color: #eee; }
body.evs-theme-dark .evs-detail-tags .tag { background: #374151; color: #e5e7eb; }
body.evs-theme-dark .evs-detail-tags .tag.status { background: #1e3a5f; color: #93c5fd; }
body.evs-theme-dark .evs-detail-tags .tag.wh { background: #312e81; color: #c7d2fe; }
body.evs-theme-dark .evs-detail-table th,
body.evs-theme-dark .evs-detail-table td { background: #333; border-color: #444; color: #ddd; }
body.evs-theme-dark .evs-detail-table th { background: #3a3a3a; color: #ccc; }
body.evs-theme-dark .evs-detail-content { color: #ddd; }
body.evs-theme-dark .evs-attach-list li { border-bottom-color: #444; }
body.evs-theme-dark .evs-attach-list a { color: #4a9eda; }
body.evs-theme-dark .evs-nav { border-top-color: #444; }
body.evs-theme-dark .evs-detail-gallery .thumbs img { border-color: #555; }
body.evs-theme-dark .evs-detail-gallery .thumbs img.active { border-color: #2271b1; }
body.evs-theme-dark .evs-attr-tag { background: #374151; color: #d1d5db; }
body.evs-theme-dark .evs-attr-tag.evs-attr-charging-station { background: #1e3a5f; color: #93c5fd; }
body.evs-theme-dark .evs-attr-tag.evs-attr-connector-standard { background: #312e81; color: #c7d2fe; }
body.evs-theme-dark .evs-attr-tag.evs-attr-charging-efficiency { background: #4c1d1d; color: #fca5a5; }
body.evs-theme-dark .evs-attr-tag.evs-attr-swap-station { background: #14532d; color: #86efac; }
body.evs-theme-dark .evs-attr-tag.evs-attr-swap-mode { background: #134e4a; color: #5eead4; }
body.evs-theme-dark .evs-attr-tag.evs-attr-service-vehicle { background: #422006; color: #fbbf24; }
body.evs-theme-dark .tag.evs-attr-status.evs-status-running { background: #14532d; color: #86efac; }
body.evs-theme-dark .tag.evs-attr-status.evs-status-building { background: #422006; color: #fbbf24; }
body.evs-theme-dark .tag.evs-attr-status.evs-status-planned { background: #312e81; color: #c7d2fe; }
body.evs-theme-dark .tag.evs-attr-status.evs-status-stopped { background: #374151; color: #d1d5db; }

@media (prefers-color-scheme: dark) {
    body.evs-theme-auto .evs-browser,
    body.evs-theme-auto .evs-detail-wrap { background: #1f2430; color: #e5e7eb; }
    body.evs-theme-auto .evs-tabs { border-bottom-color: #374151; }
    body.evs-theme-auto .evs-tab { color: #aaa; }
    body.evs-theme-auto .evs-tab.active { color: #fff; }
    body.evs-theme-auto .evs-filters { background: #252b36; }
    body.evs-theme-auto .evs-filter-row select,
    body.evs-theme-auto .evs-filter-row input,
    body.evs-theme-auto .evs-region-filters select { background: #333; color: #eee; border-color: #555; }
    body.evs-theme-auto .evs-chip-label { color: #aaa; }
    body.evs-theme-auto .evs-chip { background: #333; color: #ddd; border-color: #555; }
    body.evs-theme-auto .evs-station-card { background: #2d2d2d; border-color: #444; }
    body.evs-theme-auto .evs-station-card .evs-station-title a { color: #eee; }
    body.evs-theme-auto .evs-station-card .meta,
    body.evs-theme-auto .evs-station-card .addr { color: #aaa; }
    body.evs-theme-auto .evs-station-card .price { color: #f87171; }
    body.evs-theme-auto .evs-detail-wrap h1,
    body.evs-theme-auto .evs-detail-wrap h3,
    body.evs-theme-auto .evs-detail-wrap h4 { color: #eee; }
    body.evs-theme-auto .evs-detail-table th,
    body.evs-theme-auto .evs-detail-table td { background: #333; border-color: #444; color: #ddd; }
    body.evs-theme-auto .evs-detail-table th { background: #3a3a3a; color: #ccc; }
    body.evs-theme-auto .evs-detail-content { color: #ddd; }
    body.evs-theme-auto .evs-detail-tags .tag { background: #374151; color: #e5e7eb; }
    body.evs-theme-auto .evs-breadcrumb { color: #999; }
    body.evs-theme-auto .evs-breadcrumb a { color: #4a9eda; }
    body.evs-theme-auto .evs-attach-list li { border-bottom-color: #444; }
    body.evs-theme-auto .evs-attach-list a { color: #4a9eda; }
    body.evs-theme-auto .evs-nav { border-top-color: #444; }
}

/* 前台编辑页统一 16px */
.evs-form,
.evs-form *,
.evs-form-tip { font-size: 16px !important; }
/* 归档页深色模式 */
body.evs-theme-dark .evs-archive-wrap { color: #e5e7eb; }
body.evs-theme-dark .evs-archive-title { color: #eee; }
body.evs-theme-dark .evs-archive-card { background: #2d2d2d; border-color: #444; }
body.evs-theme-dark .evs-archive-name a { color: #eee; }
body.evs-theme-dark .evs-archive-name a:hover { color: #4a9eda; }
body.evs-theme-dark .evs-archive-meta .meta-row { color: #aaa; }
body.evs-theme-dark .evs-archive-meta .dashicons { color: #888; }
body.evs-theme-dark .evs-archive-pagination .page-numbers { background: #2d2d2d; border-color: #444; color: #ddd; }
body.evs-theme-dark .evs-archive-pagination .current { background: #2271b1; color: #fff; }
body.evs-theme-dark .evs-archive-empty { color: #999; }

@media (prefers-color-scheme: dark) {
    body.evs-theme-auto .evs-archive-wrap { color: #e5e7eb; }
    body.evs-theme-auto .evs-archive-title { color: #eee; }
    body.evs-theme-auto .evs-archive-card { background: #2d2d2d; border-color: #444; }
    body.evs-theme-auto .evs-archive-name a { color: #eee; }
    body.evs-theme-auto .evs-archive-meta .meta-row { color: #aaa; }
    body.evs-theme-auto .evs-archive-meta .dashicons { color: #888; }
    body.evs-theme-auto .evs-archive-pagination .page-numbers { background: #2d2d2d; border-color: #444; color: #ddd; }
    body.evs-theme-auto .evs-archive-empty { color: #999; }
}
/* 归档页深色：列表容器底色 */
body.evs-theme-dark .evs-archive-wrap { background: #1f2430; }
@media (prefers-color-scheme: dark) {
    body.evs-theme-auto .evs-archive-wrap { background: #1f2430; }
}

/* 编辑页深色：页面底色与文字对比 */
body.evs-theme-dark.evs-submit-page .evs-form { background: #1f2430; padding: 20px; border-radius: 8px; }
body.evs-theme-dark.evs-submit-page .evs-form-title { color: #f9fafb; }
body.evs-theme-dark.evs-submit-page .evs-form-desc { color: #cbd5e1; }
body.evs-theme-dark.evs-submit-page .evs-form-label,
body.evs-theme-dark.evs-submit-page .evs-form-check { color: #e5e7eb; }
body.evs-theme-dark.evs-submit-page .evs-form-sec-desc,
body.evs-theme-dark.evs-submit-page .evs-form-note,
body.evs-theme-dark.evs-submit-page .evs-form-hint,
body.evs-theme-dark.evs-submit-page .evs-form-fold-hint { color: #cbd5e1; }
body.evs-theme-dark.evs-submit-page .evs-form-sec { background: #252b36; }
body.evs-theme-dark.evs-submit-page .evs-form-fold > summary { color: #f3f4f6; }
body.evs-theme-dark.evs-submit-page .evs-form-fold[open] > summary { border-color: #374151; }
body.evs-theme-dark.evs-submit-page .evs-form-mini-btn { background: #2a3140 !important; color: #e5e7eb !important; border-color: #4b5563 !important; }
body.evs-theme-dark.evs-submit-page .evs-form-mini-btn:hover { background: #374151 !important; }
body.evs-theme-dark.evs-submit-page .evs-photo-item img { border-color: #4b5563; }

@media (prefers-color-scheme: dark) {
    body.evs-theme-auto.evs-submit-page .evs-form { background: #1f2430; padding: 20px; border-radius: 8px; }
    body.evs-theme-auto.evs-submit-page .evs-form-title { color: #f9fafb; }
    body.evs-theme-auto.evs-submit-page .evs-form-desc { color: #cbd5e1; }
    body.evs-theme-auto.evs-submit-page .evs-form-label,
    body.evs-theme-auto.evs-submit-page .evs-form-check { color: #e5e7eb; }
    body.evs-theme-auto.evs-submit-page .evs-form-sec-desc,
    body.evs-theme-auto.evs-submit-page .evs-form-note,
    body.evs-theme-auto.evs-submit-page .evs-form-hint,
    body.evs-theme-auto.evs-submit-page .evs-form-fold-hint { color: #cbd5e1; }
    body.evs-theme-auto.evs-submit-page .evs-form-sec { background: #252b36; }
    body.evs-theme-auto.evs-submit-page .evs-form-fold > summary { color: #f3f4f6; }
    body.evs-theme-auto.evs-submit-page .evs-form-fold[open] > summary { border-color: #374151; }
    body.evs-theme-auto.evs-submit-page .evs-form-mini-btn { background: #2a3140 !important; color: #e5e7eb !important; border-color: #4b5563 !important; }
    body.evs-theme-auto.evs-submit-page .evs-form-mini-btn:hover { background: #374151 !important; }
    body.evs-theme-auto.evs-submit-page .evs-photo-item img { border-color: #4b5563; }
}

/* 站点属性层级树：深色 */
body.evs-theme-dark .evs-form-type-tree .evs-type-group,
.evs-form.evs-form--dark .evs-form-type-tree .evs-type-group { background: #252b36; border-color: #374151; border-left-color: #4a9eda; }
body.evs-theme-dark .evs-form-type-tree .evs-type-group-head,
.evs-form.evs-form--dark .evs-form-type-tree .evs-type-group-head { border-bottom-color: #4b5563; }
body.evs-theme-dark .evs-form-type-tree .evs-type-group-name,
.evs-form.evs-form--dark .evs-form-type-tree .evs-type-group-name { color: #f3f4f6; }
body.evs-theme-dark .evs-form-type-tree .evs-type-subgroup,
.evs-form.evs-form--dark .evs-form-type-tree .evs-type-subgroup { background: #2a3140; border-color: #414b5c; }
body.evs-theme-dark .evs-form-type-tree .evs-type-subgroup-name,
.evs-form.evs-form--dark .evs-form-type-tree .evs-type-subgroup-name { color: #e5e7eb; }
body.evs-theme-dark .evs-form-type-tree .evs-type-leaf,
.evs-form.evs-form--dark .evs-form-type-tree .evs-type-leaf { background: #252b36; border-color: #4b5563; color: #e5e7eb; }
body.evs-theme-dark .evs-form-type-tree .evs-type-leaf:hover,
.evs-form.evs-form--dark .evs-form-type-tree .evs-type-leaf:hover { border-color: #4a9eda; color: #93c5fd; }
body.evs-theme-dark .evs-form-type-tree .evs-type-leaf:has(input:checked),
.evs-form.evs-form--dark .evs-form-type-tree .evs-type-leaf:has(input:checked) { background: #1e3a5f; border-color: #4a9eda; color: #93c5fd; }

@media (prefers-color-scheme: dark) {
    .evs-form.evs-form--auto .evs-form-type-tree .evs-type-group { background: #252b36; border-color: #374151; border-left-color: #4a9eda; }
    .evs-form.evs-form--auto .evs-form-type-tree .evs-type-group-head { border-bottom-color: #4b5563; }
    .evs-form.evs-form--auto .evs-form-type-tree .evs-type-group-name { color: #f3f4f6; }
    .evs-form.evs-form--auto .evs-form-type-tree .evs-type-subgroup { background: #2a3140; border-color: #414b5c; }
    .evs-form.evs-form--auto .evs-form-type-tree .evs-type-subgroup-name { color: #e5e7eb; }
    .evs-form.evs-form--auto .evs-form-type-tree .evs-type-leaf { background: #252b36; border-color: #4b5563; color: #e5e7eb; }
    .evs-form.evs-form--auto .evs-form-type-tree .evs-type-leaf:has(input:checked) { background: #1e3a5f; border-color: #4a9eda; color: #93c5fd; }
}

/* 详情页站点位置地图 */
.evs-detail-map { width: 100%; height: 360px; margin: 12px 0 24px; border: 1px solid #e5e7eb; border-radius: 8px; overflow: hidden; background: #e8e8e8; }
