/* ============================================================
   分销商模块样式（设备差异化：-pc / -t / -m 互斥类名）
   ============================================================ */

/* === 共用基础 === */
.dist-region-tag { display: inline-block; padding: 2px 10px; border-radius: 20px; font-size: 12px; color: var(--green); background: rgba(14,77,60,.08); white-space: nowrap; }
.dist-contact-modal { position: fixed; inset: 0; z-index: 9999; display: none; align-items: center; justify-content: center; background: rgba(0,0,0,.5); }
.dist-contact-modal.show { display: flex; }
.dist-contact-box { background: var(--white); border-radius: var(--radius); width: 420px; max-width: 92vw; max-height: 80vh; overflow-y: auto; box-shadow: var(--shadow); }
.dist-contact-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.dist-contact-head h3 { font-size: 18px; color: var(--green-deep); }
.dist-contact-close { background: none; border: none; font-size: 24px; cursor: pointer; color: var(--muted); line-height: 1; }
.dist-contact-body { padding: 20px 24px; }
.dist-contact-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.dist-contact-row:last-child { border-bottom: none; }
.dist-contact-row .ic { width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; background: rgba(14,77,60,.08); color: var(--green); flex: none; }
.dist-contact-row .ic svg { width: 18px; height: 18px; }
.dist-contact-row .info { flex: 1; min-width: 0; }
.dist-contact-row .info .lbl { font-size: 12px; color: var(--muted); }
.dist-contact-row .info .val { font-size: 15px; color: var(--ink); word-break: break-all; }
.dist-contact-row .copy-btn { background: none; border: 1px solid var(--line); border-radius: 6px; padding: 4px 10px; font-size: 12px; cursor: pointer; color: var(--muted); flex: none; }
.dist-contact-row .copy-btn:hover { color: var(--green); border-color: var(--green); }
.dist-contact-row a.val { color: var(--green); text-decoration: none; }

/* 设备切换浮钮 */
.device-switcher { position: fixed; right: 16px; bottom: 16px; z-index: 9000; display: flex; flex-direction: column; gap: 6px; }
.device-switcher button { background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 8px 14px; font-size: 13px; cursor: pointer; color: var(--muted); box-shadow: var(--shadow-sm); transition: all .2s; }
.device-switcher button:hover { color: var(--green); border-color: var(--green); }
.device-switcher button.active { color: var(--white); background: var(--green); border-color: var(--green); }
.device-switcher .ds-label { font-size: 11px; color: var(--muted); text-align: center; padding: 2px 0; }

/* === 寻找分销商 · PC === */
.dist-pc-layout { display: grid; grid-template-columns: 260px 1fr; gap: 28px; align-items: start; }
.dist-pc-filters { position: sticky; top: 92px; background: var(--ivory); border-radius: var(--radius); padding: 20px; }
.dist-pc-filters .filter-title { font-size: 15px; font-weight: 600; color: var(--green-deep); margin-bottom: 14px; }
.dist-pc-filters .search-box { position: relative; margin-bottom: 16px; }
.dist-pc-filters .search-box input { width: 100%; padding: 10px 14px; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; }
.dist-pc-filters .region-list { display: flex; flex-direction: column; gap: 6px; }
.dist-pc-filters .region-item { padding: 8px 12px; border-radius: 6px; cursor: pointer; font-size: 14px; color: var(--ink); transition: all .15s; }
.dist-pc-filters .region-item:hover { background: rgba(14,77,60,.06); }
.dist-pc-filters .region-item.active { background: var(--green); color: var(--white); font-weight: 500; }
.dist-pc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.dist-pc-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .2s; display: flex; flex-direction: column; }
.dist-pc-card:hover { box-shadow: var(--shadow); }
.dist-pc-card .card-head { display: flex; align-items: center; gap: 14px; padding: 18px; }
.dist-pc-card .card-logo { width: 56px; height: 56px; border-radius: 10px; background: var(--ivory); display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 700; color: var(--green); flex: none; overflow: hidden; }
.dist-pc-card .card-logo img { width: 100%; height: 100%; object-fit: cover; }
.dist-pc-card .card-title { font-size: 16px; font-weight: 600; color: var(--ink); line-height: 1.4; }
.dist-pc-card .card-person { font-size: 13px; color: var(--muted); }
.dist-pc-card .card-body { padding: 0 18px 18px; flex: 1; display: flex; flex-direction: column; }
.dist-pc-card .card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.dist-pc-card .card-intro { font-size: 13px; color: var(--muted); line-height: 1.6; flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dist-pc-card .card-foot { padding-top: 14px; }
.dist-pc-card .card-btn { display: inline-block; padding: 8px 18px; border-radius: 8px; font-size: 13px; font-weight: 500; cursor: pointer; border: none; }
.dist-pc-pager { display: flex; justify-content: center; gap: 6px; margin-top: 36px; }
.dist-pc-pager button { min-width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 6px; background: var(--white); cursor: pointer; font-size: 14px; color: var(--ink); }
.dist-pc-pager button.active { background: var(--green); color: var(--white); border-color: var(--green); }
.dist-pc-pager button:disabled { opacity: .4; cursor: not-allowed; }

/* === 寻找分销商 · 平板 === */
.dist-t-bar { display: flex; gap: 12px; align-items: center; margin-bottom: 20px; }
.dist-t-bar .search-box { flex: 1; position: relative; }
.dist-t-bar .search-box input { width: 100%; padding: 10px 14px; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; }
.dist-t-chips { display: flex; gap: 8px; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 6px; margin-bottom: 20px; }
.dist-t-chips .chip { padding: 6px 16px; border-radius: 20px; font-size: 13px; white-space: nowrap; cursor: pointer; border: 1px solid var(--line); background: var(--white); color: var(--ink); }
.dist-t-chips .chip.active { background: var(--green); color: var(--white); border-color: var(--green); }
.dist-t-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.dist-t-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.dist-t-card .card-head { display: flex; align-items: center; gap: 12px; }
.dist-t-card .card-logo { width: 48px; height: 48px; border-radius: 8px; background: var(--ivory); display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 700; color: var(--green); flex: none; overflow: hidden; }
.dist-t-card .card-logo img { width: 100%; height: 100%; object-fit: cover; }
.dist-t-card .card-title { font-size: 15px; font-weight: 600; }
.dist-t-card .card-person { font-size: 12px; color: var(--muted); }
.dist-t-card .card-intro { font-size: 13px; color: var(--muted); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dist-t-actions { display: flex; gap: 8px; }
.dist-t-actions a { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 8px; border-radius: 8px; font-size: 12px; font-weight: 500; text-decoration: none; }
.dist-t-actions a.tel { background: rgba(14,77,60,.08); color: var(--green); }
.dist-t-actions a.wa { background: rgba(37,211,102,.1); color: #25d366; }
.dist-t-actions a.mail { background: rgba(200,162,75,.1); color: var(--gold); }
.dist-t-actions svg { width: 16px; height: 16px; }

/* === 寻找分销商 · 移动 === */
.dist-m-sticky { position: sticky; top: 72px; z-index: 50; background: var(--white); padding: 12px 0; border-bottom: 1px solid var(--line); }
.dist-m-sticky .search-box { padding: 0 16px; }
.dist-m-sticky .search-box input { width: 100%; padding: 10px 14px; border: 1px solid var(--line); border-radius: 24px; font-size: 14px; }
.dist-m-chips { display: flex; gap: 8px; overflow-x: auto; -webkit-overflow-scrolling: touch; padding: 10px 16px; }
.dist-m-chips .chip { padding: 6px 14px; border-radius: 20px; font-size: 13px; white-space: nowrap; cursor: pointer; border: 1px solid var(--line); background: var(--white); color: var(--ink); }
.dist-m-chips .chip.active { background: var(--green); color: var(--white); border-color: var(--green); }
.dist-m-list { display: flex; flex-direction: column; gap: 14px; padding: 16px; }
.dist-m-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.dist-m-card .card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.dist-m-card .card-logo { width: 44px; height: 44px; border-radius: 8px; background: var(--ivory); display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 700; color: var(--green); flex: none; overflow: hidden; }
.dist-m-card .card-logo img { width: 100%; height: 100%; object-fit: cover; }
.dist-m-card .card-title { font-size: 15px; font-weight: 600; line-height: 1.3; }
.dist-m-card .card-person { font-size: 12px; color: var(--muted); }
.dist-m-card .card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.dist-m-card .card-intro { font-size: 13px; color: var(--muted); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 14px; }
.dist-m-actionbar { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.dist-m-actionbar a { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; border-radius: 8px; font-size: 11px; font-weight: 500; text-decoration: none; }
.dist-m-actionbar a.tel { background: rgba(14,77,60,.08); color: var(--green); }
.dist-m-actionbar a.wa { background: rgba(37,211,102,.1); color: #25d366; }
.dist-m-actionbar a.mail { background: rgba(200,162,75,.1); color: var(--gold); }
.dist-m-actionbar svg { width: 18px; height: 18px; }
.dist-m-loadmore { display: block; margin: 30px auto; padding: 12px 32px; border: 1px solid var(--green); border-radius: 24px; background: var(--white); color: var(--green); font-size: 14px; cursor: pointer; }
.dist-m-loadmore:disabled { opacity: .5; cursor: not-allowed; }
.dist-m-loadmore.loading { color: var(--muted); border-color: var(--line); }

/* === 成为分销商 · PC === */
.apply-pc-layout { display: grid; grid-template-columns: 7fr 5fr; gap: 32px; align-items: start; }
.apply-pc-form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.apply-pc-form .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; }
.apply-pc-form .form-grid .full { grid-column: 1 / -1; }
.apply-pc-side { position: sticky; top: 92px; }
.apply-pc-flow { display: flex; gap: 0; margin-bottom: 24px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.apply-pc-flow .step { flex: 1; text-align: center; position: relative; }
.apply-pc-flow .step:not(:last-child)::after { content: ''; position: absolute; top: 20px; right: -50%; width: 100%; height: 2px; background: var(--line); z-index: 0; }
.apply-pc-flow .step .num { width: 40px; height: 40px; border-radius: 50%; background: var(--ivory); color: var(--green); display: inline-flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 700; position: relative; z-index: 1; }
.apply-pc-flow .step .label { display: block; margin-top: 8px; font-size: 13px; color: var(--muted); }
.apply-pc-why { background: var(--ivory); border-radius: var(--radius); padding: 24px; margin-bottom: 20px; }
.apply-pc-why h4 { font-size: 16px; color: var(--green-deep); margin-bottom: 14px; }
.apply-pc-why .why-item { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; font-size: 14px; color: var(--ink); }
.apply-pc-why .why-item svg { width: 18px; height: 18px; color: var(--gold); flex: none; margin-top: 2px; }
.apply-pc-contact { background: var(--green-deep); color: var(--white); border-radius: var(--radius); padding: 24px; }
.apply-pc-contact h4 { font-size: 16px; margin-bottom: 12px; }
.apply-pc-contact p { font-size: 14px; opacity: .85; margin-bottom: 6px; }

/* === 成为分销商 · 平板 === */
.apply-t-flow { display: flex; justify-content: space-between; margin-bottom: 28px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.apply-t-flow .step { text-align: center; flex: 1; position: relative; }
.apply-t-flow .step:not(:last-child)::after { content: ''; position: absolute; top: 18px; right: -25%; width: 50%; height: 2px; background: var(--line); z-index: 0; }
.apply-t-flow .step .num { width: 36px; height: 36px; border-radius: 50%; background: var(--ivory); color: var(--green); display: inline-flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 700; position: relative; z-index: 1; }
.apply-t-flow .step .label { display: block; margin-top: 6px; font-size: 12px; color: var(--muted); }
.apply-t-form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.apply-t-form .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
.apply-t-form .form-grid .full { grid-column: 1 / -1; }
.apply-t-why { background: var(--ivory); border-radius: var(--radius); padding: 20px; margin-bottom: 20px; }
.apply-t-why h4 { font-size: 15px; color: var(--green-deep); margin-bottom: 10px; }
.apply-t-why .why-item { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: 13px; }
.apply-t-why .why-item svg { width: 16px; height: 16px; color: var(--gold); flex: none; }

/* === 成为分销商 · 移动（分步表单）=== */
.apply-m-progress { position: sticky; top: 72px; z-index: 50; background: var(--white); padding: 16px; border-bottom: 1px solid var(--line); }
.apply-m-progress-bar { display: flex; align-items: center; gap: 8px; }
.apply-m-progress-bar .pstep { flex: 1; text-align: center; }
.apply-m-progress-bar .pstep .pnum { width: 28px; height: 28px; border-radius: 50%; background: var(--line); color: var(--muted); display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; }
.apply-m-progress-bar .pstep.active .pnum { background: var(--green); color: var(--white); }
.apply-m-progress-bar .pstep.done .pnum { background: var(--green); color: var(--white); }
.apply-m-progress-bar .pstep .plabel { display: block; margin-top: 4px; font-size: 11px; color: var(--muted); }
.apply-m-progress-bar .pstep.active .plabel { color: var(--green); font-weight: 500; }
.apply-m-progress-bar .pline { flex: 0 0 20px; height: 2px; background: var(--line); }
.apply-m-steps { padding: 20px 16px 100px; }
.apply-m-step { display: none; }
.apply-m-step.active { display: block; }
.apply-m-step .form-item { margin-bottom: 16px; }
.apply-m-step .form-item label { display: block; font-size: 14px; font-weight: 500; color: var(--ink); margin-bottom: 6px; }
.apply-m-step .form-item input, .apply-m-step .form-item select, .apply-m-step .form-item textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; font-size: 15px; -webkit-appearance: none; }
.apply-m-step .form-item textarea { min-height: 80px; resize: vertical; }
.apply-m-step .form-item.has-error input, .apply-m-step .form-item.has-error select { border-color: #e74c3c; }
.apply-m-step .form-item .err-tip { font-size: 12px; color: #e74c3c; margin-top: 4px; }
.apply-m-foot { position: fixed; left: 0; right: 0; bottom: 0; display: flex; gap: 10px; padding: 12px 16px; background: var(--white); box-shadow: 0 -4px 12px rgba(0,0,0,.08); z-index: 100; }
.apply-m-foot .btn-prev { flex: 1; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); font-size: 15px; cursor: pointer; color: var(--ink); }
.apply-m-foot .btn-next, .apply-m-foot .btn-submit { flex: 2; padding: 12px; border: none; border-radius: 8px; background: var(--green); font-size: 15px; cursor: pointer; color: var(--white); font-weight: 500; }
.apply-m-foot .btn-submit { background: var(--gold); }
.apply-m-foot .btn-submit:disabled { opacity: .6; }
.apply-m-success { text-align: center; padding: 60px 20px; }
.apply-m-success svg { width: 64px; height: 64px; color: var(--green); margin-bottom: 16px; }
.apply-m-success h2 { font-size: 20px; color: var(--green-deep); margin-bottom: 8px; }
.apply-m-success p { font-size: 14px; color: var(--muted); }

/* === 首页推广区 === */
.dist-promo { background: linear-gradient(135deg, var(--ivory) 0%, #fff 100%); border-top: 1px solid var(--line); }
.dist-promo-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.dist-promo-text .kicker { color: var(--gold); font-size: 13px; letter-spacing: 3px; font-weight: 600; }
.dist-promo-text h2 { font-size: 32px; color: var(--green-deep); margin: 8px 0 12px; }
.dist-promo-text .sub { font-size: 16px; color: var(--muted); line-height: 1.7; margin-bottom: 24px; }
.dist-promo-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.dist-promo-img img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
@media (max-width: 992px) { .dist-promo-inner { grid-template-columns: 1fr; } .dist-promo-img { display: none; } }

/* 首页推广区 · 双入口要点 */
.dist-promo-points { display: flex; flex-direction: column; gap: 14px; margin-bottom: 26px; }
.dist-promo-points .p-item { display: flex; align-items: flex-start; gap: 10px; }
.dist-promo-points .p-ico { width: 22px; height: 22px; border-radius: 50%; background: rgba(176,141,58,.15); color: var(--gold); display: inline-flex; align-items: center; justify-content: center; flex: none; margin-top: 2px; }
.dist-promo-points .p-ico svg { width: 13px; height: 13px; }
.dist-promo-points .p-item > div b { display: block; font-size: 15px; color: var(--green-deep); margin-bottom: 3px; }
.dist-promo-points .p-item > div span { font-size: 13.5px; color: var(--muted); line-height: 1.65; }

/* 卡片「查看详情」链接 */
.card-link { font-size: 13px; color: var(--green); text-decoration: none; white-space: nowrap; }
.card-link:hover { color: var(--gold); }
.dist-pc-card .card-foot { display: flex; align-items: center; gap: 14px; }
.dist-pc-card .card-foot .card-btn { flex: none; }
.dist-t-detail, .dist-m-detail { padding-top: 10px; margin-top: 10px; border-top: 1px dashed var(--line); text-align: right; }

/* === 分销商详情页 === */
.dd-wrap { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.dd-head { display: flex; align-items: center; gap: 20px; padding: 26px; background: linear-gradient(135deg, var(--ivory) 0%, #fff 100%); border-bottom: 1px solid var(--line); }
.dd-logo { width: 84px; height: 84px; border-radius: 14px; background: var(--green); color: var(--white); display: flex; align-items: center; justify-content: center; font-size: 30px; font-weight: 700; overflow: hidden; flex: none; }
.dd-logo img { width: 100%; height: 100%; object-fit: cover; }
.dd-name { font-size: 26px; line-height: 1.3; color: var(--green-deep); }
.dd-person { font-size: 14px; color: var(--muted); margin-top: 6px; }
.dd-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.dd-verified { color: var(--gold); background: rgba(176,141,58,.12); }
.dd-grid { display: grid; grid-template-columns: 1fr 360px; gap: 28px; padding: 26px; align-items: start; }
.dd-block { margin-bottom: 26px; }
.dd-block:last-child { margin-bottom: 0; }
.dd-block h3 { font-size: 18px; color: var(--green-deep); margin-bottom: 12px; padding-left: 12px; border-left: 3px solid var(--gold); }
.dd-intro { font-size: 14.5px; color: var(--ink); line-height: 1.9; white-space: pre-line; }
.dd-side { display: flex; flex-direction: column; gap: 16px; }
.dd-side-card { background: var(--ivory); border-radius: var(--radius); padding: 20px; }
.dd-side-card h4 { font-size: 15px; color: var(--green-deep); margin-bottom: 6px; }
.dd-loc { font-size: 14px; color: var(--ink); line-height: 1.8; }
.dd-side .btn { width: 100%; text-align: center; }
@media (max-width: 992px) {
    .dd-grid { grid-template-columns: 1fr; gap: 20px; padding: 20px; }
    .dd-head { flex-direction: column; text-align: center; padding: 22px; }
    .dd-tags { justify-content: center; }
    .dd-name { font-size: 22px; }
}
