/* ========================================
   产业地图 - 高保真原型样式
   一比一还原设计规格
   ======================================== */

/* 精确设计规格变量 */
:root {
    /* 主色系 - 精确RGB值 */
    --primary: #0060F0;
    --primary-rgb: 0, 96, 240;
    --header-gradient-start: #366EF9;
    --header-gradient-end: #5B7CFF;
    
    /* 中性色系 */
    --text-dark: #161A23;
    --text-primary: #333333;
    --text-secondary: #6A6D72;
    --text-light: #999999;
    --text-muted: rgba(22, 26, 35, 0.64);
    
    /* 边框和背景 */
    --border-color: #D5D8DA;
    --bg-white: #FFFFFF;
    --bg-gray: #F5F5F5;
    --bg-hover: #F0F2F5;
    
    /* 精确尺寸 */
    --header-height: 64px;
    --left-panel-width: 300px;
    --right-panel-width: 420px;
    
    /* 字体 */
    --font-family: "PingFang SC", -apple-system, Arial, "Microsoft Yahei", BlinkMacSystemFont, "Segoe UI", "Hiragino Sans GB", "Helvetica Neue", Helvetica, sans-serif;
}

/* ========================================
   面包屑导航样式
   ======================================== */
.breadcrumb-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(0, 96, 240, 0.08) 0%, rgba(0, 96, 240, 0.03) 100%);
    border-bottom: 1px solid var(--border-color);
    font-size: 13px;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    margin-right: 8px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.back-btn:hover {
    background: #0050D0;
}

.breadcrumb-link {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb-link:hover {
    text-decoration: underline;
}

.breadcrumb-sep {
    color: var(--text-light);
    margin: 0 4px;
}

.breadcrumb-current {
    color: var(--text-primary);
    font-weight: 500;
}

/* 区域列表箭头指示器 */
.district-item .arrow {
    color: var(--text-light);
    font-size: 16px;
    margin-left: auto;
    transition: transform 0.2s;
}

.district-item.has-children:hover .arrow {
    transform: translateX(3px);
    color: var(--primary);
}

.district-item.has-children {
    cursor: pointer;
}

/* 可点击的地图标签 */
.district-label.clickable {
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.district-label.clickable:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* 全局重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: var(--font-family);
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-dark);
    background: var(--bg-gray);
    height: 100%;
    overflow: hidden;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* 防止输入框聚焦时页面缩放 */
input, select, textarea {
    font-size: 16px;
    -webkit-appearance: none;
    appearance: none;
}

/* iOS 输入框样式修复 */
input:focus, select:focus, textarea:focus {
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: inherit;
    cursor: pointer;
}

/* ========================================
   顶部导航栏 - 精确64px高度
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: linear-gradient(90deg, var(--header-gradient-start) 0%, var(--header-gradient-end) 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    z-index: 1000;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 32px;
    height: 32px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.logo-subtitle {
    font-size: 12px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.2;
}

.divider {
    width: 1px;
    height: 20px;
    background: rgba(255, 255, 255, 0.3);
}

.region-select {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s;
}

.region-select:hover {
    background: rgba(255, 255, 255, 0.3);
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 8px 18px;
    font-size: 14px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    border-radius: 4px;
    transition: all 0.3s;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.nav-link.active {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-weight: 500;
}

/* 下拉菜单 */
.nav-dropdown {
    position: relative;
}

.nav-dropdown .nav-link {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-dropdown .nav-link svg {
    transition: transform 0.2s;
}

.nav-dropdown:hover .nav-link svg {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 500px;
    background: var(--bg-white);
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    padding: 12px 20px;
    display: none;
    z-index: 1001;
}

.nav-dropdown:hover .dropdown-menu {
    display: flex;
    gap: 8px;
}

.dropdown-item {
    padding: 10px 20px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
    white-space: nowrap;
    border-radius: 4px;
    transition: all 0.2s;
}

.dropdown-item:hover {
    background: rgba(0, 96, 240, 0.08);
    color: var(--primary);
}

.header-right {
    display: flex;
    align-items: center;
}

/* 汉堡菜单按钮 - 默认隐藏 */
.menu-btn {
    display: none;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    margin-right: 8px;
}

.menu-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.menu-btn svg {
    transition: transform 0.3s;
}

.menu-btn.active svg {
    transform: rotate(90deg);
}

.user-btn {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.user-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* ========================================
   主体布局
   ======================================== */
.main-content {
    display: flex;
    height: calc(100vh - var(--header-height));
    margin-top: var(--header-height);
}

/* ========================================
   左侧面板 - 精确300px宽度
   ======================================== */
.left-panel {
    width: var(--left-panel-width);
    background: var(--bg-white);
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.05);
    z-index: 10;
}

/* 搜索区域 */
.search-area {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
}

.search-row {
    display: flex;
    margin-bottom: 12px;
}

.city-select {
    width: 90px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--border-color);
    border-right: none;
    border-radius: 4px 0 0 4px;
    background: var(--bg-gray);
    font-size: 14px;
    color: var(--text-dark);
    outline: none;
    cursor: pointer;
}

.search-input-wrap {
    flex: 1;
    display: flex;
}

.search-input {
    flex: 1;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--border-color);
    border-right: none;
    font-size: 14px;
    color: var(--text-dark);
    outline: none;
    transition: border-color 0.3s;
}

.search-input::placeholder {
    color: var(--text-light);
}

.search-input:focus {
    border-color: var(--primary);
}

.search-btn {
    width: 46px;
    height: 40px;
    background: var(--primary);
    border: none;
    border-radius: 0 4px 4px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.search-btn:hover {
    background: #0050D0;
}

.filter-row {
    display: flex;
    gap: 10px;
}

.industry-select {
    flex: 1;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: var(--bg-white);
    font-size: 14px;
    color: var(--text-dark);
    outline: none;
    cursor: pointer;
}

.refresh-btn {
    width: 40px;
    height: 40px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.refresh-btn:hover {
    border-color: var(--primary);
    background: rgba(0, 96, 240, 0.05);
}

/* 区域列表 */
.district-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
}

.district-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.2s;
}

.district-item:hover {
    background: var(--bg-hover);
}

.district-item.active {
    background: rgba(0, 96, 240, 0.08);
}

.district-item .name {
    font-size: 14px;
    color: var(--text-dark);
}

.district-item.active .name {
    color: var(--primary);
    font-weight: 500;
}

.district-item .count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 20px;
    padding: 0 8px;
    background: var(--text-dark);
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    border-radius: 10px;
}

/* 选中区域标签 */
.selected-area {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 16px;
    background: rgba(0, 96, 240, 0.06);
    border-top: 1px solid var(--border-color);
}

.selected-area .area-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--primary);
}

.selected-area .area-info {
    font-size: 12px;
    color: var(--text-secondary);
}

/* ========================================
   地图区域
   ======================================== */
.map-section {
    flex: 1;
    position: relative;
    background: #E5E3DF;
}

#map {
    width: 100%;
    height: 100%;
}

/* 地图控件 - 左侧 */
.map-controls-left {
    position: absolute;
    left: 16px;
    bottom: 80px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 500;
}

/* 地图控件 - 右侧 */
.map-controls-right {
    position: absolute;
    right: 16px;
    bottom: 80px;
    display: flex;
    flex-direction: column;
    z-index: 500;
}

.ctrl-btn {
    width: 36px;
    height: 36px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.2s;
}

.ctrl-btn:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.zoom-btn {
    font-size: 20px;
    font-weight: 400;
}

.zoom-btn:first-child {
    border-radius: 4px 4px 0 0;
    border-bottom: none;
}

.zoom-btn:last-child {
    border-radius: 0 0 4px 4px;
}

/* 全屏按钮 */
.fullscreen-btn {
    position: absolute;
    right: 16px;
    top: 16px;
    width: 36px;
    height: 36px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    z-index: 500;
    transition: all 0.2s;
}

.fullscreen-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.fullscreen-btn:hover svg {
    stroke: #fff;
}

/* 比例尺 */
.scale-bar {
    position: absolute;
    left: 16px;
    bottom: 24px;
    display: flex;
    gap: 16px;
    font-size: 11px;
    color: var(--text-secondary);
    z-index: 500;
}

/* 地图版权 */
.map-copyright {
    position: absolute;
    right: 16px;
    bottom: 8px;
    font-size: 11px;
    color: var(--text-light);
    z-index: 500;
}

/* ========================================
   右侧详情面板 - 精确420px宽度
   ======================================== */

/* 拖动把手 - 默认隐藏 */
.drag-handle {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 28px;
    background: linear-gradient(to bottom, #fff 0%, #f5f5f5 100%);
    border-bottom: 1px solid var(--border-color);
    cursor: grab;
    z-index: 10;
    align-items: center;
    justify-content: center;
    touch-action: none;
}

.drag-handle:active {
    cursor: grabbing;
}

.drag-bar {
    width: 40px;
    height: 4px;
    background: #ccc;
    border-radius: 2px;
    transition: background 0.2s;
}

.drag-handle:hover .drag-bar {
    background: #999;
}

.right-panel {
    width: var(--right-panel-width);
    background: var(--bg-white);
    overflow-y: auto;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.05);
    z-index: 10;
}

/* 城市轮播 */
.city-banner {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.banner-slides {
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-overlay {
    position: absolute;
    top: 16px;
    left: 16px;
    right: 16px;
}

.slide-title-cn {
    display: block;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    margin-bottom: 4px;
}

.slide-title-en {
    display: block;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.75);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.banner-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 48px;
    background: rgba(0, 0, 0, 0.25);
    border: none;
    color: #fff;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
    z-index: 10;
}

.banner-arrow:hover {
    background: rgba(0, 0, 0, 0.45);
}

.banner-arrow.prev { left: 0; }
.banner-arrow.next { right: 0; }

.banner-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.banner-dots .dot {
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

.banner-dots .dot.active {
    background: var(--primary);
}

/* 城市信息 */
.city-info {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
}

.city-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
    line-height: 24px;
}

.city-desc {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-muted);
    line-height: 23.8px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 区块通用样式 */
.section-block {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 24px;
}

.title-bar {
    width: 4px;
    height: 16px;
    background: var(--primary);
    border-radius: 2px;
}

.more-link {
    font-size: 14px;
    color: var(--primary);
}

.more-link:hover {
    text-decoration: underline;
}

/* 产业卡片滑动 */
.industry-slider {
    position: relative;
    display: flex;
    align-items: center;
}

/* 产业网格布局 */
.industry-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

.industry-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s;
}

.industry-item:hover {
    transform: translateY(-3px);
}

.industry-item:hover .industry-name {
    color: var(--primary);
}

.industry-img {
    width: 100%;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.industry-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.industry-item:hover .industry-img img {
    transform: scale(1.05);
}

.industry-name {
    font-size: 12px;
    color: var(--text-primary);
    text-align: center;
    line-height: 1.3;
    word-break: keep-all;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.industry-item.active .industry-name {
    color: var(--primary);
    font-weight: 500;
}

.industry-item.active .industry-img {
    box-shadow: 0 2px 12px rgba(0, 96, 240, 0.3);
    border: 2px solid var(--primary);
}

.slider-arrow {
    position: absolute;
    width: 28px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--border-color);
    font-size: 18px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    transition: all 0.2s;
}

.slider-arrow:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.slider-arrow.prev {
    left: -8px;
    border-radius: 4px 0 0 4px;
}

.slider-arrow.next {
    right: -8px;
    border-radius: 0 4px 4px 0;
}

.industry-cards {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 4px 0;
    scrollbar-width: none;
}

.industry-cards::-webkit-scrollbar {
    display: none;
}

.industry-card {
    flex-shrink: 0;
    width: 136px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s;
}

.industry-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.card-img {
    height: 80px;
    overflow: hidden;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-body {
    padding: 10px;
}

.card-body h4 {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-body p {
    font-size: 12px;
    color: var(--text-light);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 政策列表 */
.policy-list {
    list-style: none;
}

.policy-item {
    display: flex;
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid var(--bg-gray);
}

.policy-item:last-child {
    border-bottom: none;
}

.policy-item .dot {
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    margin-top: 8px;
    flex-shrink: 0;
}

.policy-content {
    flex: 1;
}

.policy-title {
    display: block;
    font-size: 14px;
    font-weight: 400;
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 6px;
    transition: color 0.2s;
}

.policy-title:hover {
    color: var(--primary);
}

.policy-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.policy-meta .org {
    font-size: 12px;
    color: var(--text-light);
}

.policy-meta .date {
    font-size: 12px;
    color: var(--text-light);
}

/* 加载更多按钮 */
.load-more-btn {
    width: 100%;
    height: 32px;
    margin-top: 12px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 12px;
    color: var(--primary);
    transition: all 0.2s;
}

.load-more-btn:hover {
    background: rgba(0, 96, 240, 0.05);
    border-color: var(--primary);
}

/* 载体标签 */
.carrier-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--border-color);
}

.carrier-tabs .tab {
    padding: 10px 20px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    font-size: 14px;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.carrier-tabs .tab:hover {
    color: var(--primary);
}

.carrier-tabs .tab.active {
    color: var(--primary);
    font-weight: 500;
    border-bottom-color: var(--primary);
}

/* 载体卡片 */
.carrier-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.carrier-card {
    padding: 14px;
    background: var(--bg-gray);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.carrier-card:hover {
    background: rgba(0, 96, 240, 0.08);
}

.carrier-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.carrier-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.4;
    flex: 1;
    margin-right: 10px;
}

.carrier-level {
    padding: 2px 10px;
    background: #FFF7E6;
    color: #D46B08;
    font-size: 12px;
    border-radius: 10px;
    flex-shrink: 0;
}

.carrier-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.carrier-tags .tag {
    padding: 3px 10px;
    background: rgba(0, 96, 240, 0.08);
    color: var(--primary);
    font-size: 12px;
    border-radius: 10px;
}

.carrier-meta {
    display: flex;
    gap: 20px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--text-light);
}

/* Leaflet 样式覆盖 */
.leaflet-control-attribution {
    display: none !important;
}

.leaflet-control-zoom {
    display: none !important;
}

/* 区域标签 */
.district-label {
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 8px;
}

.district-label .label-count {
    background: var(--primary);
    padding: 2px 8px;
    border-radius: 10px;
}

/* 滚动条样式 */
.right-panel::-webkit-scrollbar,
.district-list::-webkit-scrollbar {
    width: 6px;
}

.right-panel::-webkit-scrollbar-track,
.district-list::-webkit-scrollbar-track {
    background: transparent;
}

.right-panel::-webkit-scrollbar-thumb,
.district-list::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.right-panel::-webkit-scrollbar-thumb:hover,
.district-list::-webkit-scrollbar-thumb:hover {
    background: var(--text-light);
}

/* ========================================
   移动端导航抽屉
   ======================================== */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background: var(--bg-white);
    z-index: 1000;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
}

.mobile-nav.active {
    transform: translateX(0);
}

.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: linear-gradient(90deg, var(--header-gradient-start) 0%, var(--header-gradient-end) 100%);
    color: #fff;
}

.mobile-nav-title {
    font-size: 18px;
    font-weight: 600;
}

.mobile-nav-close {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    transition: background 0.2s;
}

.mobile-nav-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.mobile-nav-menu {
    flex: 1;
    overflow-y: auto;
    padding: 12px 0;
}

.mobile-nav-link {
    display: block;
    padding: 14px 20px;
    font-size: 15px;
    color: var(--text-dark);
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.mobile-nav-link:hover {
    background: var(--bg-hover);
    color: var(--primary);
}

.mobile-nav-link.active {
    background: rgba(0, 96, 240, 0.08);
    color: var(--primary);
    border-left-color: var(--primary);
    font-weight: 500;
}

.mobile-nav-group {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.mobile-nav-group:last-of-type {
    border-bottom: none;
}

.mobile-nav-group-title {
    display: block;
    padding: 10px 20px;
    font-size: 13px;
    color: var(--text-light);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mobile-nav-sublink {
    display: block;
    padding: 10px 20px 10px 36px;
    font-size: 14px;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.mobile-nav-sublink:hover {
    background: var(--bg-hover);
    color: var(--primary);
}

.mobile-nav-sublink::before {
    content: "•";
    margin-right: 8px;
    color: var(--text-light);
}

/* ========================================
   移动端响应式适配
   ======================================== */

/* 平板设备 (768px - 1024px) */
@media screen and (max-width: 1024px) {
    :root {
        --left-panel-width: 260px;
        --right-panel-width: 340px;
    }
    
    .header-nav {
        gap: 4px;
    }
    
    .nav-link {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .industry-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
    }
    
    .industry-img {
        height: 50px;
    }
}

/* 手机设备 (小于 768px) */
@media screen and (max-width: 768px) {
    :root {
        --header-height: 56px;
        --left-panel-width: 100%;
        --right-panel-width: 100%;
    }
    
    html, body {
        width: 100%;
        height: 100%;
        overflow: hidden;
    }
    
    /* 键盘弹出时的样式 */
    body.keyboard-open .map-section {
        display: none;
    }
    
    body.keyboard-open .left-panel {
        max-height: 60vh;
    }
    
    /* 搜索模式 - 点击搜索框时 */
    body.search-mode .right-panel {
        display: none;
    }
    
    body.search-mode .map-section {
        display: none;
    }
    
    body.search-mode .left-panel {
        max-height: 80vh;
        flex: 1;
    }
    
    body.search-mode .district-list {
        max-height: none;
        flex: 1;
    }
    
    body.search-mode .search-area {
        position: sticky;
        top: 0;
        background: var(--bg-white);
        z-index: 10;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
    
    /* 搜索高亮样式 */
    .search-highlight {
        background: rgba(0, 96, 240, 0.1);
        color: var(--primary);
        font-weight: 500;
    }
    
    /* 顶部导航栏 */
    .header {
        padding: 0 12px;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
    }
    
    .header-nav {
        display: none;
    }
    
    .header-left {
        flex: 1;
        display: flex;
        align-items: center;
    }
    
    /* 显示汉堡菜单按钮 */
    .menu-btn {
        display: flex;
    }
    
    .region-select {
        font-size: 16px;
        font-weight: 500;
    }
    
    .header-right {
        display: flex;
    }
    
    /* 主体布局 - 改为垂直堆叠 */
    .main-content {
        flex-direction: column;
        height: 100%;
        padding-top: var(--header-height);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        position: relative;
    }
    
    /* 左侧面板 */
    .left-panel {
        width: 100%;
        height: auto;
        max-height: 35vh;
        min-height: 200px;
        box-shadow: none;
        border-bottom: 1px solid var(--border-color);
        flex-shrink: 0;
    }
    
    .breadcrumb-nav {
        padding: 10px 12px;
        font-size: 12px;
    }
    
    .search-area {
        padding: 12px;
        position: relative;
    }
    
    .search-row {
        margin-bottom: 10px;
        display: flex;
        align-items: center;
    }
    
    .city-select {
        width: 85px;
        height: 40px;
        font-size: 16px;
        flex-shrink: 0;
    }
    
    .search-input-wrap {
        display: flex;
        flex: 1;
        min-width: 0;
        position: relative;
    }
    
    .search-input {
        flex: 1;
        height: 40px;
        font-size: 16px;
        -webkit-appearance: none;
        appearance: none;
        background: #fff;
        border: 1px solid var(--border-color);
        border-right: none;
        border-radius: 0;
        padding: 0 12px;
        -webkit-user-select: text;
        user-select: text;
        -webkit-touch-callout: default;
    }
    
    .search-input:focus {
        font-size: 16px;
    }
    
    .search-btn {
        width: 44px;
        height: 40px;
        flex-shrink: 0;
    }
    
    .filter-row {
        gap: 8px;
    }
    
    .industry-select {
        height: 40px;
        font-size: 16px;
    }
    
    .refresh-btn {
        width: 40px;
        height: 40px;
    }
    
    .district-list {
        max-height: 200px;
    }
    
    .district-item {
        padding: 10px 12px;
    }
    
    .district-item .name {
        font-size: 13px;
    }
    
    .district-item .count {
        font-size: 11px;
        min-width: 24px;
        height: 18px;
    }
    
    .selected-area {
        padding: 10px 12px;
    }
    
    /* 地图区域 */
    .map-section {
        height: 35vh;
        min-height: 200px;
        max-height: 300px;
        order: -1;
        flex-shrink: 0;
        position: relative;
    }
    
    .map-controls-left {
        left: 10px;
        bottom: 60px;
    }
    
    .map-controls-right {
        right: 10px;
        bottom: 60px;
    }
    
    .ctrl-btn {
        width: 32px;
        height: 32px;
    }
    
    .scale-bar {
        left: 10px;
        bottom: 16px;
        font-size: 10px;
        gap: 10px;
    }
    
    .map-copyright {
        right: 10px;
        font-size: 10px;
    }
    
    /* 显示全屏按钮 */
    .fullscreen-btn {
        display: flex;
        right: 10px;
        top: 10px;
    }
    
    /* 地图全屏状态 */
    .map-section.fullscreen {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        height: 100vh;
        z-index: 2000;
    }
    
    .map-section.fullscreen .fullscreen-btn {
        top: 16px;
        right: 16px;
    }
    
    .map-section.fullscreen .map-controls-left {
        left: 16px;
        bottom: 80px;
    }
    
    .map-section.fullscreen .map-controls-right {
        right: 16px;
        bottom: 80px;
    }
    
    .map-section.fullscreen .scale-bar {
        left: 16px;
        bottom: 24px;
    }
    
    .map-section.fullscreen .map-copyright {
        right: 16px;
        bottom: 8px;
    }
    
    /* 右侧面板 - 移动端变为底部可拖动面板 */
    .right-panel {
        width: 100%;
        height: auto;
        max-height: 60vh;
        box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.1);
        position: relative;
        border-radius: 16px 16px 0 0;
        overflow: hidden;
        transition: transform 0.3s ease;
    }
    
    /* 显示拖动把手 */
    .drag-handle {
        display: flex;
        position: sticky;
        top: 0;
    }
    
    /* 面板展开状态 */
    .right-panel.expanded {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        max-height: 100vh;
        border-radius: 0;
        z-index: 1500;
    }
    
    /* 面板收起状态 - 只显示部分内容 */
    .right-panel.collapsed {
        max-height: 180px;
        overflow: hidden;
    }
    
    .right-panel.collapsed .city-banner,
    .right-panel.collapsed .city-info {
        display: none;
    }
    
    /* 展开/收起提示 */
    .drag-hint {
        position: absolute;
        bottom: 8px;
        left: 50%;
        transform: translateX(-50%);
        font-size: 11px;
        color: var(--text-light);
        pointer-events: none;
    }
    
    .city-banner {
        height: 160px;
    }
    
    .slide-overlay {
        top: 12px;
        left: 12px;
        right: 12px;
    }
    
    .slide-title-cn {
        font-size: 12px;
    }
    
    .slide-title-en {
        font-size: 10px;
    }
    
    .banner-arrow {
        width: 28px;
        height: 40px;
        font-size: 20px;
    }
    
    .city-info {
        padding: 12px;
    }
    
    .city-name {
        font-size: 16px;
        margin-bottom: 8px;
    }
    
    .city-desc {
        font-size: 13px;
        line-height: 1.6;
        -webkit-line-clamp: 2;
    }
    
    .section-block {
        padding: 12px;
    }
    
    .section-header {
        margin-bottom: 12px;
    }
    
    .section-title {
        font-size: 14px;
    }
    
    .title-bar {
        width: 3px;
        height: 14px;
    }
    
    .more-link {
        font-size: 13px;
    }
    
    /* 产业网格 - 手机端改为4列 */
    .industry-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }
    
    .industry-item {
        gap: 4px;
    }
    
    .industry-img {
        height: 50px;
        margin-bottom: 4px;
    }
    
    .industry-name {
        font-size: 10px;
        line-height: 1.2;
    }
    
    /* 政策列表 */
    .policy-item {
        padding: 10px 0;
    }
    
    .policy-title {
        font-size: 13px;
        margin-bottom: 4px;
    }
    
    .policy-meta .org,
    .policy-meta .date {
        font-size: 11px;
    }
    
    /* 载体标签 */
    .carrier-tabs {
        margin-bottom: 12px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    
    .carrier-tabs::-webkit-scrollbar {
        display: none;
    }
    
    .carrier-tabs .tab {
        padding: 8px 14px;
        font-size: 13px;
        white-space: nowrap;
    }
    
    /* 载体卡片 */
    .carrier-list {
        gap: 10px;
    }
    
    .carrier-card {
        padding: 12px;
    }
    
    .carrier-header {
        margin-bottom: 8px;
    }
    
    .carrier-name {
        font-size: 13px;
    }
    
    .carrier-level {
        font-size: 11px;
        padding: 2px 8px;
    }
    
    .carrier-tags {
        margin-bottom: 8px;
    }
    
    .carrier-tags .tag {
        font-size: 11px;
        padding: 2px 8px;
    }
    
    .carrier-meta {
        gap: 16px;
    }
    
    .meta-item {
        font-size: 11px;
    }
    
    .load-more-btn {
        height: 36px;
        font-size: 13px;
    }
}

/* 小屏手机 (小于 480px) */
@media screen and (max-width: 480px) {
    :root {
        --header-height: 52px;
    }
    
    .header {
        padding: 0 10px;
    }
    
    .region-select {
        padding: 4px 10px;
        font-size: 14px;
    }
    
    .user-btn {
        width: 32px;
        height: 32px;
    }
    
    .left-panel {
        max-height: 50vh;
    }
    
    .map-section {
        height: 35vh;
        min-height: 200px;
    }
    
    .city-banner {
        height: 140px;
    }
    
    .industry-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }
    
    .industry-img {
        height: 45px;
    }
    
    .industry-name {
        font-size: 9px;
    }
    
    .section-block {
        padding: 10px;
    }
    
    .carrier-tabs .tab {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .carrier-card {
        padding: 10px;
    }
    
    .carrier-name {
        font-size: 12px;
    }
    
    .carrier-tags {
        gap: 4px;
    }
    
    .carrier-tags .tag {
        font-size: 10px;
        padding: 2px 6px;
    }
    
    .meta-item {
        font-size: 10px;
    }
}

/* 横屏手机适配 */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .main-content {
        flex-direction: row;
    }
    
    .left-panel {
        width: 200px;
        max-height: none;
        height: 100%;
    }
    
    .map-section {
        flex: 1;
        height: 100%;
        order: 0;
    }
    
    .right-panel {
        width: 280px;
        height: 100%;
    }
    
    .city-banner {
        height: 100px;
    }
    
    .industry-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .industry-img {
        height: 40px;
    }
}
