/* ===========================================================
   邮政编码查询 postcode 专用样式
   —— 结构与样式 100% 对齐「微信小游戏大全」(wxminigame.css)：
      · 两栏 flex：主栏 flex:1 + 侧栏 300px（不是单栏居中容器）
      · 顶部 .pc-header = .wxmg-header（蓝色渐变，居中，padding 24px）
      · 区块 .pc-block = .wxmg-block（白底 / radius 8px / shadow / padding 20px 22px）
      · 板块头 .pc-block-head = .wxmg-block-head（左 4px 主色竖条 + .pc-block-actions）
      · 侧栏卡片 .pc-side-card = .wxmg-side-card
      · FAQ .pc-faq-item = .wxmg-faq-item（#fafbfc 底 / #eef0f3 边 / radius 10px）
      · 断点：整体对齐 900px（与外层 .tool-layout 塌陷点一致）
      · 色值全部走 style.css 的 CSS 变量，禁止硬编码
   =========================================================== */

/* ---------- 布局：主栏 + 侧栏（关键：抄 wxmg-page，不是单栏居中）---------- */
.pc-page {
    max-width: 1200px;
    margin: 0 auto 40px;
    display: flex;
    gap: 24px;
    align-items: flex-start;
    box-sizing: border-box;
    width: 100%;
    overflow-x: hidden;
    /* 左右呼吸位必须与站内 .container（面包屑 / 广告位那两行）一致，
       否则内容会比上下两行各宽 20px，视觉上明显错位。 */
    padding: 0 20px;
}
/* 同 style.css 的 .page-tool 规则：宽屏下连同容器 padding 一起归零，
   让内容与广告行左右边缘对齐。两者必须成对，缺一个就错开 20px。 */
@media (min-width: 1240px) {
    .pc-page, .pc-page-full { padding-left: 0; padding-right: 0; }
}
.pc-main { flex: 1; min-width: 0; }
.pc-sidebar { width: 300px; flex: 0 0 300px; }

/* 详情/列表等长页面用单栏（对应 .wxmg-page-full） */
.pc-page-full { display: block; max-width: 1200px; }
.pc-page-full .pc-block:last-child { margin-bottom: 0; }

/* ---------- 顶部标题条（同 .wxmg-header）---------- */
.pc-header {
    background: linear-gradient(135deg, #1890ff, #0056b3);
    color: #fff;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 20px;
    text-align: center;
}
.pc-header h1 { margin: 0 0 8px; font-size: 26px; }
.pc-header p { margin: 0; opacity: .9; font-size: 14px; line-height: 1.8; }

/* ---------- 顶部条里的搜索框 ---------- */
.pc-header-search {
    display: flex;
    gap: 8px;
    max-width: 560px;
    margin: 14px auto 0;
}
.pc-header-search input {
    flex: 1;
    min-width: 0;
    height: 38px;
    padding: 0 14px;
    border: 0;
    border-radius: 8px;
    background: #fff;
    color: #333;
    font-size: 14px;
}
.pc-header-search input:focus { outline: 2px solid rgba(255, 255, 255, .8); outline-offset: 1px; }
.pc-header-search button {
    height: 38px;
    padding: 0 24px;
    border: 0;
    border-radius: 8px;
    background: #fff;
    color: #1890ff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity .25s;
}
.pc-header-search button:hover { opacity: .88; }

.pc-header-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 14px;
}
.pc-header-stat {
    background: rgba(255, 255, 255, .18);
    border-radius: 8px;
    padding: 8px 18px;
    min-width: 100px;
}
.pc-header-stat b { display: block; font-size: 20px; font-weight: 800; line-height: 1.2; }
.pc-header-stat span { font-size: 12px; opacity: .9; }

/* ---------- 区块（同 .wxmg-block）---------- */
.pc-block {
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px 22px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
}

/* ---------- 板块头（同 .wxmg-block-head）---------- */
.pc-block-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    border-left: 4px solid var(--primary-color);
    padding-left: 12px;
}
.pc-block-title {
    font-size: 19px;
    font-weight: 700;
    color: var(--text-color);
    line-height: 1.4;
}
.pc-block-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.pc-block-more { font-size: 13px; color: var(--primary-color); white-space: nowrap; }

.pc-count { font-size: 14px; color: var(--text-secondary); margin-bottom: 16px; }
.pc-tip { font-size: 13px; color: var(--text-secondary); line-height: 1.8; margin: -4px 0 14px; }
.pc-tip a { color: var(--primary-color); }
.pc-tip-more { margin: 12px 0 0; }

/* ---------- 区划变更提示（撤销/合并后承接旧名搜索）---------- */
.pc-alias-note {
    margin: 14px 0 0;
    padding: 12px 16px;
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .34);
    border-radius: var(--radius);
    font-size: 13px;
    line-height: 1.8;
    color: #fff;
    text-align: left;
}
.pc-alias-note strong { display: block; margin-bottom: 2px; font-size: 13px; }
.pc-alias-note p { margin: 0; opacity: .92; }
.pc-alias-note .pc-alias-old { margin-top: 6px; padding-top: 6px; border-top: 1px dashed rgba(255, 255, 255, .3); }

/* ---------- 数据来源说明条（推断数据必须标注）---------- */
.pc-note {
    background: #fffbe6;
    border: 1px solid #ffe58f;
    border-radius: var(--radius);
    padding: 10px 14px;
    font-size: 13px;
    line-height: 1.8;
    color: #874d00;
    margin-bottom: 16px;
}
.pc-note a { color: #ad6800; }

/* ---------- 链接网格（省市区/镇街通用）---------- */
.pc-link-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.pc-link-grid-4 { grid-template-columns: repeat(4, 1fr); }
.pc-link-grid-3 { grid-template-columns: repeat(3, 1fr); }
.pc-link {
    display: block;
    text-align: center;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-color);
    text-decoration: none;
    background: #f3f6fb;
    border-radius: 8px;
    padding: 9px 6px;
    transition: all .2s;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.pc-link:hover { background: var(--primary-hover); color: #fff; }
.pc-link-sub { display: block; font-size: 12px; color: var(--text-secondary); margin-top: 2px; }
.pc-link:hover .pc-link-sub { color: rgba(255, 255, 255, .85); }

/* ---------- 邮编/区号小标签 ---------- */
.pc-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.pc-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-color);
    text-decoration: none;
    background: #f3f6fb;
    border-radius: 14px;
    padding: 5px 13px;
    transition: all .2s;
}
.pc-tag:hover { background: var(--primary-hover); color: #fff; }
.pc-tag-sub { color: var(--text-secondary); font-size: 12px; }
.pc-tag:hover .pc-tag-sub { color: rgba(255, 255, 255, .85); }
.pc-tag.is-main { background: var(--primary-color); color: #fff; }
.pc-tag.is-main .pc-tag-sub { color: rgba(255, 255, 255, .85); }
.pc-tag.is-main:hover { background: var(--primary-hover); }

/* ---------- 各省邮编省区网格（对齐 scenic .scenic-region-*）---------- */
.pc-region-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; align-items: stretch; }
.pc-region-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    text-align: center;
    padding: 8px 10px;
    background: #f0f7ff;
    color: #333;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.35;
    transition: all .2s;
    border: 1px solid #d9e8f7;
}
.pc-region-btn:hover { background: var(--primary-color); color: #fff; border-color: var(--primary-color); }

/* ---------- 区号展示（首页随机展示区：地区 + 区号）---------- */
.pc-code-preview { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; align-items: stretch; }
.pc-code-pv {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    text-align: center;
    padding: 8px 10px;
    background: #f8f9fa;
    color: #333;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.35;
    transition: all .2s;
    border: 1px solid #eef0f3;
}
.pc-code-pv:hover { background: var(--primary-color); color: #fff; border-color: var(--primary-hover); }
.pc-code-pv-name { font-weight: 600; }
.pc-code-pv-code { font-size: 16px; font-weight: 700; color: var(--text-color); margin-top: 2px; }
.pc-code-pv:hover .pc-code-pv-code { color: #fff; }

/* ---------- 侧栏卡片（同 .wxmg-side-card）---------- */
.pc-side-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
}
.pc-side-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 12px;
    padding-left: 10px;
    border-left: 4px solid var(--primary-color);
}
.pc-side-list { display: flex; flex-direction: column; gap: 8px; }
.pc-side-link {
    display: block;
    font-size: 14px;
    color: var(--text-color);
    text-decoration: none;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 8px 10px;
    transition: all .2s;
}
.pc-side-link:hover { background: var(--primary-hover); color: #fff; }
.pc-side-tools { display: flex; flex-direction: column; gap: 8px; }
.pc-side-tool {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    background: #f8f9fa;
    border-radius: 8px;
    text-decoration: none;
    transition: all .2s;
}
.pc-side-tool-icon { margin-right: 8px; flex-shrink: 0; }
.pc-side-tool-icon img { width: 20px; height: 20px; display: block; }
.pc-side-tool-name { font-size: 14px; color: var(--text-color); }
.pc-side-tool:hover { background: var(--primary-hover); }
.pc-side-tool:hover .pc-side-tool-name { color: #fff; }

/* ---------- 常见电话区号（右栏 010 北京领衔）---------- */
.pc-common-codes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.pc-common-code {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: #f8f9fa;
    border-radius: 8px;
    text-decoration: none;
    transition: all .2s;
}
.pc-common-code:hover { background: var(--primary-hover); }
.pc-common-code:hover .pc-cc-code,
.pc-common-code:hover .pc-cc-name { color: #fff; }
.pc-cc-code { font-weight: 700; font-size: 15px; color: var(--text-color); flex: 0 0 auto; }
.pc-cc-name { font-size: 14px; color: var(--text-color); }
.pc-common-code.is-beijing { background: linear-gradient(135deg, #e6f4ff, #bae0ff); border: 1px solid #91caff; }
.pc-common-code.is-beijing .pc-cc-code { color: #0958d9; }
.pc-common-code.is-beijing:hover { background: var(--primary-color); }

/* ---------- 侧栏搜索 ---------- */
.pc-side-search { display: flex; gap: 8px; }
.pc-side-search input {
    flex: 1;
    min-width: 0;
    height: 36px;
    padding: 0 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
}
.pc-side-search button {
    height: 36px;
    padding: 0 18px;
    border: 0;
    border-radius: 8px;
    background: var(--primary-color);
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
}
.pc-side-search button:hover { background: var(--primary-hover); }

/* ---------- 表格（同小游戏的表格观感）---------- */
.pc-table-wrap { overflow-x: auto; margin: 0 -4px; }
.pc-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.pc-table th, .pc-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}
.pc-table th { background: #fafafa; font-weight: 600; color: var(--text-color); white-space: nowrap; }
.pc-table tbody tr:hover { background: #fafbfc; }
.pc-table td.pc-t-name { font-weight: 600; }
.pc-table td.pc-t-name a { color: var(--primary-color); text-decoration: none; }
.pc-table td.pc-t-name a:hover { text-decoration: underline; }
.pc-table .pc-center { text-align: center; }
.pc-table .pc-mono { color: var(--text-secondary); white-space: nowrap; }
.pc-bank { font-size: 13px; white-space: nowrap; }
.pc-bank-y { color: #52c41a; }
.pc-bank-n { color: #999; }

/* ---------- 网点卡片（office 详情页的同区网点）---------- */
.pc-office-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.pc-office-card {
    display: block;
    text-decoration: none;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 12px 14px;
    transition: all .2s;
}
.pc-office-card:hover { background: var(--primary-hover); }
.pc-office-card-name { font-size: 14px; font-weight: 600; color: var(--text-color); margin-bottom: 4px; }
.pc-office-card-meta { font-size: 12px; color: var(--text-secondary); line-height: 1.6; }
.pc-office-card:hover .pc-office-card-name,
.pc-office-card:hover .pc-office-card-meta { color: #fff; }

/* ---------- 网点随机展示（首页：网点名称 / 邮编 / 地址）—— 4 列 × 3 排 = 12 个 ---------- */
.pc-office-preview { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.pc-office-pv {
    display: block;
    text-decoration: none;
    background: #f8f9fa;
    border: 1px solid #eef0f3;
    border-radius: 8px;
    padding: 12px 14px;
    transition: all .2s;
}
.pc-office-pv:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
.pc-office-pv:hover .pc-office-pv-name,
.pc-office-pv:hover .pc-office-pv-zip,
.pc-office-pv:hover .pc-office-pv-addr { color: #fff; }
.pc-office-pv-name { font-size: 14px; font-weight: 600; color: var(--text-color); margin-bottom: 4px; min-width: 0; }
.pc-office-pv-zip { font-size: 12px; color: var(--text-secondary); margin-bottom: 4px; }
.pc-office-pv:hover .pc-office-pv-zip { color: rgba(255, 255, 255, .92); }
.pc-office-pv-addr { font-size: 12px; color: var(--text-secondary); line-height: 1.6; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; min-width: 0; }

/* ---------- 关键信息行（详情页）---------- */
.pc-info-rows { display: flex; flex-direction: column; gap: 0; }
.pc-info-row {
    display: flex;
    gap: 16px;
    padding: 11px 0;
    border-bottom: 1px dashed var(--border-color);
    font-size: 14px;
    line-height: 1.8;
}
.pc-info-row:last-child { border-bottom: 0; }
.pc-info-k { width: 96px; flex: 0 0 96px; color: var(--text-secondary); }
.pc-info-v { flex: 1; min-width: 0; color: var(--text-color); word-break: break-word; }
.pc-info-v a { color: var(--primary-color); text-decoration: none; }
.pc-info-v a:hover { text-decoration: underline; }

/* ---------- FAQ（同 .wxmg-faq-*）---------- */
.pc-faq-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.pc-faq-item { padding: 12px 14px; background: #fafbfc; border: 1px solid #eef0f3; border-radius: 10px; }
.pc-faq-q { font-size: 15px; font-weight: 600; color: var(--text-color); margin-bottom: 6px; }
.pc-faq-a { font-size: 14px; line-height: 1.8; color: #555; }

/* ---------- 页面简介 / 空态 ---------- */
.pc-intro-text { font-size: 14px; line-height: 1.9; color: #555; margin: 0; }
.pc-empty {
    background: var(--white);
    border-radius: var(--radius);
    padding: 48px 20px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 15px;
    box-shadow: var(--shadow);
}

/* ---------- 分页 ---------- */
.pc-pager { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; justify-content: center; }
.pc-pager a, .pc-pager span {
    display: inline-block;
    min-width: 34px;
    height: 34px;
    line-height: 32px;
    padding: 0 10px;
    text-align: center;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--white);
    color: var(--text-color);
    font-size: 14px;
    text-decoration: none;
    box-sizing: border-box;
}
.pc-pager a:hover { border-color: var(--primary-color); color: var(--primary-color); }
.pc-pager .is-cur { background: var(--primary-color); border-color: var(--primary-color); color: #fff; font-weight: 600; }
.pc-pager .is-gap { border: 0; background: none; box-shadow: none; color: #999; }

/* ---------- 工具栏（筛选/切换）---------- */
.pc-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 16px;
    font-size: 14px;
}
.pc-toolbar label { color: var(--text-secondary); }
.pc-btn {
    display: inline-block;
    font-size: 13px;
    line-height: 1.5;
    color: var(--primary-color);
    background: #f3f6fb;
    border-radius: 14px;
    padding: 5px 14px;
    text-decoration: none;
    border: 0;
    cursor: pointer;
}
.pc-btn:hover, .pc-btn.is-on { background: var(--primary-color); color: #fff; }
.pc-btn input { display: none; }

/* ---------- 🔴 溢出加固：所有 flex/grid 容器都要 min-width:0 ----------
   ⚠️ 这里绝对不能写 .pc-page / .pc-page-full —— 它们的 max-width 是 1200px，
      一旦被下面的 max-width:100% 覆盖（同优先级、靠后者胜），整页就没有宽度限制、
      直接拉满屏幕。这个坑踩过一次（用户反馈「小工具没有宽度」）。
      它们自带 overflow-x:hidden，本来也不会溢出。 */
.pc-main, .pc-block, .pc-sidebar, .pc-office-cards,
.pc-link-grid, .pc-tags, .pc-toolbar, .pc-header-stats, .pc-info-v,
.pc-office-preview, .pc-region-grid, .pc-code-preview, .pc-common-codes {
    max-width: 100%;
    min-width: 0;
}
/* flex 子项默认 min-width:auto，会被长内容撑破导致整页横向滚动 */
.pc-info-row > *, .pc-block-head > *, .pc-table td, .pc-table th {
    min-width: 0;
    overflow-wrap: break-word;
}
.pc-table-wrap { -webkit-overflow-scrolling: touch; }

/* ===========================================================
   响应式（断点与外层 .tool-layout 一致：900px）
   =========================================================== */
@media (max-width: 1024px) {
    .pc-sidebar { width: 280px; flex-basis: 280px; }
    .pc-office-cards { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
    .pc-page { flex-direction: column; padding: 0 12px; gap: 16px; }
    .pc-sidebar { width: 100%; flex: none; }
    .pc-header { padding: 18px; }
    .pc-header h1 { font-size: 22px; }
    .pc-link-grid { grid-template-columns: repeat(4, 1fr); }
    .pc-office-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .pc-block { padding: 16px 14px; margin-bottom: 20px; }
    .pc-block-head { flex-wrap: wrap; row-gap: 6px; }
    .pc-block-title { font-size: 17px; }
    .pc-block-actions { gap: 8px; }
    .pc-link-grid, .pc-link-grid-4, .pc-link-grid-3 { grid-template-columns: repeat(3, 1fr); }
    .pc-office-cards { grid-template-columns: repeat(2, 1fr); }
    .pc-office-preview { grid-template-columns: repeat(2, 1fr); }
    .pc-code-pv:nth-child(15) { display: none; }
    .pc-info-k { width: 78px; flex-basis: 78px; }
}
@media (max-width: 420px) {
    .pc-block-title { font-size: 16px; word-break: break-word; }
    .pc-header-stats { gap: 8px; }
    .pc-header-stat { min-width: 0; padding: 6px 12px; }
    .pc-header-stat b { font-size: 17px; }
    .pc-link-grid, .pc-link-grid-4, .pc-link-grid-3 { grid-template-columns: repeat(2, 1fr); }
    .pc-office-cards { grid-template-columns: 1fr; }
    .pc-office-preview { grid-template-columns: 1fr; }
    .pc-faq-q { font-size: 14px; }
    .pc-info-row { gap: 10px; }
    .pc-info-k { width: 70px; flex-basis: 70px; }
}