/* fzweb 分站公共区块样式。
 *
 * 这些规则原来分别内联在 common/pop_up.html、link_site.html、rand_shop_100.html、
 * service_regions.html、qiyerz.html 与 common_v2/link_site.html 的 <style> 里，
 * 等于每个页面（4 套模板 × 7 页）都要重复下载同一份 CSS。集中到本文件后由各模板
 * 的 <head> 统一引用，行为与原先完全一致。
 *
 * 区块清单：全国服务区域（link_site）、分站推荐（rand_shop_100）、
 * 服务地区（service_regions）、企业认证标签（qiyerz）、合作留资弹窗（pop_up）。
 */

/* ==================== 全国服务区域 / link_site ==================== */
.link-site-wrap123 {
    text-align: center;
}

.link-site-wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    align-items: center;
}

.link-site-wrap p.link-extra {
    display: none;
}

.link-site-wrap.expanded p.link-extra {
    display: block;
}

/* 模板 2 的呈现方式（原 common_v2/link_site.html 的规则）：<p> 贴底内联排列。
   其余模板保持 <p> 的浏览器默认外边距，两条规则互不影响。 */
.link-site-wrap--v2 p {
    margin-bottom: 0;
    display: inline-block;
}

.link-more-btn {
    margin-left: 6px;
    line-height: 35px;
    display: inline-block;
    cursor: pointer;
    padding: 0 10px;
    color: inherit;
}

.city_web .link-site-wrap123 .link-more-btn {
    margin-top: 10px;
    color: #ffffff;
}

/* ==================== 分站推荐 / rand_shop_100 ==================== */
.rand-shop-100 {
    background: #ffffff;
    padding: 0.95rem 0;
    font-size: 12px;
    line-height: 1.4;
}

.rand-shop-100__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 12px;
}

.rand-shop-100__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.rand-shop-100__item {
    margin: 0;
    min-width: 0;
}

.rand-shop-100__item a {
    display: block;
    padding: 8px 10px;
    color: #4a5568;
    text-decoration: none;
    font-size: 14px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.rand-shop-100__item a:hover {
    color: #2563eb;
    border-color: #93c5fd;
    background: #eff6ff;
}

.rand-shop-100__list .rand-shop-extra {
    display: none;
}

.rand-shop-100__list.expanded .rand-shop-extra {
    display: list-item;
}

.rand-shop-more-btn {
    display: block;
    width: 130px;
    margin: 12px auto 0;
    cursor: pointer;
    background: #5384c5;
    border-radius: 36px;
    padding: 8px 10px;
    color: #ffffff;
    text-align: center;
    font-size: 14px;
}

.rand-shop-more-btn:hover {
    background: rgba(83, 132, 197, 0.64);
}

@media (max-width: 991px) {
    .rand-shop-100__list {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 575px) {
    .rand-shop-100__list {
        grid-template-columns: repeat(2, 1fr);
        gap: 5px 6px;
    }

    .rand-shop-100__item a {
        font-size: 11px;
        padding: 4px 6px;
    }
}

/* ==================== 服务地区 / service_regions ==================== */
/* 默认展示前 50 个地域，其余内联 display:none 隐藏，点「查看更多」全部展开
   （JS 清掉内联样式，交回 .geo-chip-list span 的样式）。 */
.service-region-more {
    display: inline-block;
    margin-top: 10px;
    cursor: pointer;
    color: inherit;
    text-decoration: underline;
}

/* ==================== 企业认证标签 / qiyerz ==================== */
span.qiyz {
    color: #15803d;
    background: #f0fdf4;
    font-size: 12px;
    padding: 1px 7px;
    border: 1px solid #23cf4f;
    border-radius: 3px;
    line-height: 20px;
}

/* ==================== 合作留资弹窗 / pop_up ==================== */
.btn-top {
    background: var(--brand, #409eff);
    color: #fff;
    border: none;
    padding: 14px 28px;
    box-shadow: 0 4px 20px rgba(64, 158, 255, .45);
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: 999;
    transition: transform .3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow .3s;
    animation: pulse-glow 2.5s ease-in-out infinite;
}

.btn-top:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 30px rgba(64, 158, 255, .6);
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 4px 20px rgba(64, 158, 255, .35);
    }

    50% {
        box-shadow: 0 4px 28px rgba(64, 158, 255, .65);
    }
}

.mask {
    position: fixed;
    bottom: 35px;
    right: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease, visibility .5s ease;
}

.mask.show {
    opacity: 1;
    visibility: visible;
}

.popup {
    background: #ffffff;
    width: 460px;
    border-radius: 20px;
    padding: 0;
    position: relative;
    overflow: hidden;
    transform: translateY(30px) scale(0.9);
    opacity: 0;
    transition: transform .6s cubic-bezier(0.34, 1.56, 0.64, 1), opacity .4s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .12), 0 0 0 1px rgba(0, 0, 0, .03);
}

.mask.show .popup {
    transform: translateY(0) scale(1);
    opacity: 1;
}

/* 顶部装饰条 */
.popup::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--brand, #409eff);
}

.popup-title {
    font-size: 22px;
    font-weight: 700;
    color: #1d1f23;
    margin: 28px 24px 0;
    position: relative;
    text-align: center;
}

.popup-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    border-radius: 3px;
    background: var(--brand, #409eff);
    margin: 8px auto;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #999;
    cursor: pointer;
    border-radius: 50%;
    background: #f5f7fa;
    transition: all .25s ease;
    z-index: 2;
}

.close-btn:hover {
    background: #fee;
    color: #f56c6c;
    transform: rotate(90deg);
}

.popup>.form-item:first-of-type,
#coopForm .form-item {
    margin: 0 24px;
}

.form-item {
    margin-bottom: 2px;
    position: relative;
    padding-bottom: 22px;
}

.form-group {
    display: flex;
    align-items: center;
}

.form-group .form-label {
    text-align: right;
    margin: 0;
}

.form-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #606266;
    margin-bottom: 4px;
    margin-top: 8px;
    letter-spacing: .3px;
    flex: 0 0 85px;
    padding-right: 6px;
}

.form-label span {
    color: #f5222d;
    margin-left: 2px;
}

.form-input {
    width: 100%;
    height: 32px;
    padding: 0 10px;
    border: 1.5px solid #e4e7ed;
    border-radius: 6px;
    font-size: 13px;
    color: #303133;
    background: #f9fafc;
    transition: all .25s ease;
    box-sizing: border-box;
}

.form-input::placeholder {
    color: #c0c4cc;
}

.form-input:focus {
    outline: none;
    border-color: var(--brand, #409eff);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(64, 158, 255, .12);
}

.form-input.error {
    border-color: #f5222d;
    background: #fef0f0;
}

.radio-group {
    display: flex;
    gap: 6px;
}

.radio-card {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 5px 4px;
    border: 1.5px solid #e4e7ed;
    border-radius: 6px;
    cursor: pointer;
    font-size: 11px;
    text-align: center;
    color: #606266;
    background: #f9fafc;
    transition: all .25s ease;
    min-height: 0;
    line-height: 1.25;
}

.radio-card:hover {
    border-color: var(--brand, #409eff);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(64, 158, 255, .12);
}

.radio-card input[type="radio"] {
    accent-color: var(--brand, #409eff);
    width: 12px;
    height: 12px;
    cursor: pointer;
    margin: 0;
    flex-shrink: 0;
}

.radio-card.checked {
    border-color: var(--brand, #409eff);
    background: rgba(64, 158, 255, .08);
    color: var(--brand, #409eff);
    font-weight: 600;
    box-shadow: 0 1px 6px rgba(64, 158, 255, .18);
}

.content_form {
    margin-top: 16px;
}

.error-msg {
    color: #f5222d;
    font-size: 11px;
    margin-top: 2px;
    display: none;
    position: absolute;
    left: 0;
    bottom: 4px;
}

.content_form .error-msg {
    left: 85px;
    bottom: 4px;
}

.error-msg.show {
    display: block;
    animation: shake .3s ease;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-3px);
    }

    75% {
        transform: translateX(3px);
    }
}

.submit-btn {
    width: calc(100% - 48px);
    height: 34px;
    margin: 4px 24px 14px;
    background: var(--brand, #409eff);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform .2s ease, box-shadow .25s ease;
    box-shadow: 0 2px 10px rgba(64, 158, 255, .28);
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, .2);
    transition: left .6s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(64, 158, 255, .45);
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

@media screen and (max-width: 768px) {
    .popup {
        width: 100%;
    }

    .mask {
        right: 0;
        width: 100%;
        padding: 0 10px;
    }

    #coopForm {
        width: 100%;
    }

    .form-input {
        height: 30px;
        font-size: 12px;
    }

    .form-label {
        margin-top: 6px;
        margin-bottom: 3px;
        font-size: 12px;
    }

    .form-item {
        padding-bottom: 18px;
    }

    .radio-group {
        flex-direction: row;
        gap: 5px;
    }

    .radio-card {
        padding: 4px 2px;
    }

    .radio-card span {
        font-size: 10px;
    }

    .submit-btn {
        height: 32px;
        font-size: 13px;
        margin: 2px 24px 12px;
    }

    .content_form {
        margin-top: 12px;
    }
}
