/* 地区频道 · region-portal.css · 大气城市门户风格 */
.rp-detail .ico,
.region-page .ico {
    width: 1.05em; height: 1.05em;
    fill: none; stroke: currentColor; stroke-width: 1.8;
    stroke-linecap: round; stroke-linejoin: round;
    flex: none; vertical-align: -.15em;
}
.rp-detail-body { padding-bottom: 2rem; }
.rp-subregion-count { font-size: .75rem; color: #94a3b8; }
.rp-subregion-head h4 .ico { color: var(--rp-primary); }
.rp-stat-icon .ico { width: 1.15rem; height: 1.15rem; }
.rp-item-ph .ico { width: 1.4rem; height: 1.4rem; opacity: .45; }
.rp-empty .ico { width: 2.4rem; height: 2.4rem; opacity: .35; display: block; margin: 0 auto .6rem; }
.rp-item-meta .ico { width: .95em; height: .95em; }
.rp-ent-meta .ico { width: .9em; height: .9em; }
:root {
    --rp-ink: #0f172a;
    --rp-ink-2: #334155;
    --rp-muted: #64748b;
    --rp-line: #e5e7eb;
    --rp-line-soft: #f1f5f9;
    --rp-bg: #f4f6fa;
    --rp-card: #ffffff;
    --rp-primary: #1e40af;
    --rp-primary-2: #2563eb;
    --rp-accent: #d4a24c;
    --rp-success: #059669;
    --rp-orange: #ea580c;
    --rp-dark: #0b1426;
    --rp-radius: 14px;
    --rp-shadow: 0 4px 20px rgba(15,23,42,.06);
    --rp-shadow-hover: 0 12px 36px rgba(30,64,175,.12);
}

/* ======= 频道首页 ======= */
.region-page { background: var(--rp-bg); }

.rp-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0b1426 0%, #1e3a8a 50%, #1e40af 100%);
    color: #fff;
    padding: 3.5rem 0 4rem;
    margin-bottom: 1.5rem;
}
.rp-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 40% at 20% 30%, rgba(212,162,76,.22), transparent 60%),
        radial-gradient(ellipse 50% 40% at 85% 80%, rgba(59,130,246,.35), transparent 60%);
}
.rp-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: linear-gradient(180deg, rgba(0,0,0,.55), transparent 85%);
}
.rp-hero-inner { position: relative; z-index: 1; text-align: center; max-width: 720px; margin: 0 auto; }
.rp-hero-tag {
    display: inline-block;
    padding: .25rem .85rem;
    background: rgba(212,162,76,.18);
    border: 1px solid rgba(212,162,76,.3);
    color: var(--rp-accent);
    font-size: .75rem;
    font-weight: 600;
    border-radius: 999px;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}
.rp-hero-title {
    margin: 0 0 .8rem;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -.5px;
}
.rp-hero-desc {
    margin: 0;
    font-size: 1rem;
    opacity: .85;
    line-height: 1.7;
}
.rp-hero-stats {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin-top: 2rem;
}
.rp-hero-stat { display: flex; flex-direction: column; align-items: center; gap: .2rem; }
.rp-hero-stat strong {
    font-size: 2rem; font-weight: 800;
    background: linear-gradient(135deg, #fff 0%, #d4a24c 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.rp-hero-stat span { font-size: .78rem; opacity: .7; letter-spacing: .5px; }

/* 分区卡片 */
.rp-group {
    background: var(--rp-card);
    border-radius: var(--rp-radius);
    box-shadow: var(--rp-shadow);
    padding: 1.25rem 1.4rem;
    margin-bottom: 1rem;
}
.rp-group-head {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin-bottom: 1rem;
    padding-bottom: .7rem;
    border-bottom: 2px solid var(--rp-line-soft);
}
.rp-group-icon {
    width: 34px; height: 34px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.05rem; color: #fff;
}
.rp-group-icon.n1 { background: linear-gradient(135deg, #ef4444, #dc2626); }
.rp-group-icon.n2 { background: linear-gradient(135deg, #f97316, #ea580c); }
.rp-group-icon.n3 { background: linear-gradient(135deg, #2563eb, #1d4ed8); }
.rp-group-icon.n4 { background: linear-gradient(135deg, #0d9488, #0f766e); }
.rp-group-icon.n5 { background: linear-gradient(135deg, #7c3aed, #6d28d9); }
.rp-group-icon.n6 { background: linear-gradient(135deg, #059669, #047857); }
.rp-group-icon.n7 { background: linear-gradient(135deg, #d97706, #b45309); }
.rp-group-icon.n8 { background: linear-gradient(135deg, #475569, #334155); }
.rp-group-title { margin: 0; font-size: 1.05rem; font-weight: 800; color: var(--rp-ink); }
.rp-group-sub { margin: 0; font-size: .75rem; color: var(--rp-muted); }

/* 省份网格 */
.rp-prov-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: .6rem;
}
.rp-prov {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .4rem;
    padding: .7rem .9rem;
    border-radius: 10px;
    background: var(--rp-line-soft);
    border: 1px solid transparent;
    text-decoration: none;
    color: var(--rp-ink-2);
    font-size: .88rem;
    font-weight: 600;
    transition: all .2s;
    position: relative;
    overflow: hidden;
}
.rp-prov::before {
    content: "";
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: var(--rp-primary);
    opacity: 0;
    transition: opacity .2s;
}
.rp-prov:hover {
    background: #fff;
    border-color: rgba(30,64,175,.2);
    color: var(--rp-primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30,64,175,.08);
}
.rp-prov:hover::before { opacity: 1; }
.rp-prov:hover .rp-prov-arrow { color: var(--rp-primary); transform: translateX(2px); }
.rp-prov-arrow {
    color: #cbd5e1; font-size: .75rem; transition: all .2s;
}
.rp-prov-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 1.5rem;
    color: var(--rp-muted);
    font-size: .85rem;
}

/* 省份分组（按大区）*/
.rp-group-main { display: flex; flex-direction: column; gap: 1rem; }

/* ======= 详情页 Hero ======= */
.rp-detail { background: var(--rp-bg); }
.rp-detail-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0b1426 0%, #1e3a8a 60%, #1e40af 100%);
    color: #fff;
    padding: 2.5rem 0 2.5rem;
    margin-bottom: 1.25rem;
}
.rp-detail-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 50% 50% at 85% 20%, rgba(212,162,76,.2), transparent 60%),
        radial-gradient(ellipse 40% 40% at 10% 90%, rgba(59,130,246,.4), transparent 60%);
}
.rp-detail-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(180deg, rgba(0,0,0,.5), transparent 80%);
}
.rp-detail-hero-inner { position: relative; z-index: 1; }

.rp-detail-breadcrumb {
    font-size: .82rem;
    color: rgba(255,255,255,.6);
    margin-bottom: 1rem;
    display: flex; flex-wrap: wrap; gap: .4rem;
}
.rp-detail-breadcrumb a { color: rgba(255,255,255,.75); text-decoration: none; }
.rp-detail-breadcrumb a:hover { color: var(--rp-accent); }
.rp-detail-breadcrumb .sep { opacity: .5; }

.rp-detail-title-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.2rem;
    flex-wrap: wrap;
}
.rp-detail-title {
    margin: 0;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    letter-spacing: -.5px;
    display: flex; align-items: center; gap: .75rem;
}
.rp-detail-title .flag {
    width: 44px; height: 44px; border-radius: 12px;
    background: rgba(212,162,76,.2);
    border: 1px solid rgba(212,162,76,.4);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; font-weight: 800; color: var(--rp-accent);
}
.rp-detail-subtitle { margin: 0; font-size: .95rem; opacity: .8; }

/* 统计卡片 */
.rp-detail-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .75rem;
    max-width: 600px;
}
.rp-stat {
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.15);
    backdrop-filter: blur(6px);
    border-radius: 12px;
    padding: .85rem 1rem;
    display: flex;
    align-items: center;
    gap: .7rem;
}
.rp-stat-icon {
    width: 38px; height: 38px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.05rem; color: #fff;
    flex-shrink: 0;
}
.rp-stat-icon.n1 { background: rgba(239,68,68,.25); }
.rp-stat-icon.n2 { background: rgba(249,115,22,.25); }
.rp-stat-icon.n3 { background: rgba(34,197,94,.25); }
.rp-stat-body strong { font-size: 1.3rem; font-weight: 800; display: block; line-height: 1; }
.rp-stat-body span { font-size: .72rem; opacity: .7; }

/* 子地区链接 */
.rp-subregion-section {
    background: var(--rp-card);
    border-radius: var(--rp-radius);
    box-shadow: var(--rp-shadow);
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
}
.rp-subregion-head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: .85rem; padding-bottom: .6rem;
    border-bottom: 1px solid var(--rp-line-soft);
}
.rp-subregion-head h4 {
    margin: 0; font-size: .95rem; font-weight: 700;
    display: flex; align-items: center; gap: .5rem;
}
.rp-subregion-head h4 i { color: var(--rp-primary); }
.rp-subregion-grid {
    display: flex; flex-wrap: wrap; gap: .5rem;
}
.rp-subregion {
    padding: .4rem .85rem;
    border-radius: 8px;
    background: var(--rp-line-soft);
    color: var(--rp-ink-2);
    text-decoration: none;
    font-size: .85rem;
    font-weight: 500;
    transition: all .15s;
}
.rp-subregion:hover {
    background: var(--rp-primary-grad, linear-gradient(135deg,#1e40af,#2563eb));
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30,64,175,.3);
}

/* Tab */
.rp-tabs {
    display: flex; gap: .3rem;
    background: var(--rp-card);
    border-radius: var(--rp-radius);
    box-shadow: var(--rp-shadow);
    padding: .4rem;
    margin-bottom: 1rem;
}
.rp-tab {
    flex: 1;
    padding: .65rem 1rem;
    border-radius: 10px;
    text-decoration: none;
    color: var(--rp-muted);
    font-weight: 600;
    font-size: .9rem;
    text-align: center;
    transition: all .2s;
    display: flex; align-items: center; justify-content: center; gap: .4rem;
}
.rp-tab .count {
    background: var(--rp-line-soft);
    color: var(--rp-ink-2);
    padding: .1rem .5rem;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 700;
}
.rp-tab:hover { color: var(--rp-primary); background: rgba(30,64,175,.04); }
.rp-tab.is-active {
    background: var(--rp-primary-grad, linear-gradient(135deg,#1e40af,#2563eb));
    color: #fff;
    box-shadow: 0 4px 14px rgba(30,64,175,.3);
}
.rp-tab.is-active .count { background: rgba(255,255,255,.2); color: #fff; }

/* 内容面板 */
.rp-content-panel {
    background: var(--rp-card);
    border-radius: var(--rp-radius);
    box-shadow: var(--rp-shadow);
    padding: 1.25rem;
}

/* 新闻/供应 卡 */
.rp-item-list {
    display: flex; flex-direction: column;
}
.rp-item-row {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--rp-line-soft);
    text-decoration: none;
    color: inherit;
    transition: background .12s;
}
.rp-item-row:last-child { border-bottom: 0; }
.rp-item-row:hover { background: #fafbff; margin: 0 -1rem; padding: 1rem; border-radius: 8px; }

.rp-item-thumb {
    flex-shrink: 0;
    width: 160px; height: 110px;
    border-radius: 10px;
    overflow: hidden;
    background: #e5e7eb;
}
.rp-item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.rp-item-ph {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #334155, #1e293b);
    color: rgba(255,255,255,.35);
    font-size: 1.5rem;
}

.rp-item-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.rp-item-title {
    font-size: 1rem; font-weight: 700; color: var(--rp-ink);
    line-height: 1.5; margin: 0 0 .4rem;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.rp-item-row:hover .rp-item-title { color: var(--rp-primary); }
.rp-item-summary {
    font-size: .82rem; color: var(--rp-muted); line-height: 1.6;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    margin: 0 0 .5rem;
    flex: 1;
}
.rp-item-meta {
    display: flex; flex-wrap: wrap; align-items: center; gap: .75rem;
    font-size: .75rem; color: var(--rp-muted);
}
.rp-item-meta .tag {
    background: var(--rp-line-soft);
    padding: .15rem .55rem;
    border-radius: 4px;
    color: var(--rp-ink-2);
    font-weight: 600;
}
.rp-item-price { color: var(--rp-orange); font-weight: 700; font-size: .85rem; }

/* 企业卡网格 */
.rp-enterprise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: .75rem;
}
.rp-enterprise {
    background: var(--rp-line-soft);
    border-radius: 12px;
    padding: 1rem;
    text-decoration: none;
    color: inherit;
    transition: all .2s;
    border: 1px solid transparent;
}
.rp-enterprise:hover {
    background: #fff;
    border-color: rgba(30,64,175,.2);
    transform: translateY(-2px);
    box-shadow: var(--rp-shadow-hover);
}
.rp-ent-head {
    display: flex; align-items: center; gap: .6rem; margin-bottom: .6rem;
}
.rp-ent-logo {
    width: 44px; height: 44px; border-radius: 12px;
    background: linear-gradient(135deg, #ede9fe, #ddd6fe);
    color: #7c3aed; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; overflow: hidden; font-size: 1rem;
}
.rp-ent-logo img { width: 100%; height: 100%; object-fit: cover; }
.rp-ent-name { font-weight: 700; font-size: .92rem; color: var(--rp-ink); line-height: 1.4; }
.rp-ent-desc {
    font-size: .78rem; color: var(--rp-muted);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.rp-ent-meta { margin-top: .6rem; padding-top: .5rem; border-top: 1px dashed var(--rp-line); font-size: .72rem; color: var(--rp-muted); }

.rp-empty {
    padding: 3rem 1rem; text-align: center; color: var(--rp-muted);
}
.rp-empty i { font-size: 2rem; display: block; margin-bottom: .5rem; opacity: .5; }

.rp-pagination {
    background: var(--rp-card);
    padding: 1rem;
    border-radius: var(--rp-radius);
    margin-top: 1rem;
    text-align: center;
    box-shadow: var(--rp-shadow);
}

/* ======= 响应式 ======= */
@media (max-width: 991.98px) {
    .rp-detail-stats { grid-template-columns: repeat(3, 1fr); max-width: none; }
    .rp-prov-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }
}
@media (max-width: 767.98px) {
    .rp-hero { padding: 2.2rem 0 2.5rem; }
    .rp-detail-hero { padding: 1.8rem 0 2rem; }
    .rp-detail-stats { grid-template-columns: 1fr; }
    .rp-hero-stats { gap: 1.5rem; }
    .rp-item-row { flex-direction: column; gap: .6rem; }
    .rp-item-thumb { width: 100%; height: 180px; }
    .rp-tab { padding: .55rem .4rem; font-size: .82rem; }
    .rp-tab .count { display: none; }
    .rp-enterprise-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 575.98px) {
    .rp-hero-stats { flex-wrap: wrap; gap: 1rem; }
    .rp-prov-grid { grid-template-columns: repeat(3, 1fr); }
    .rp-enterprise-grid { grid-template-columns: 1fr; }
}
