/* ========================================
   外籍来华人员办理电话卡"一件事"
   江苏政务服务 - 响应式页面样式（支持 PC 端 + 移动端）
   设计稿尺寸：1920 x 798
   版心宽度：1200px 居中
   ======================================== */

/* ===== 基础重置 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    font-family: "Microsoft YaHei", "PingFang SC", "Source Han Sans CN", "Noto Sans CJK SC", "Helvetica Neue", Arial, sans-serif;
    background: #ffffff;
    overflow-x: hidden;
}

/* 移除最小宽度限制，支持移动端 */
@media (min-width: 1201px) {
    html, body {
        overflow-x: auto;
    }
}

a { text-decoration: none; }
img { display: block; }
button { cursor: pointer; border: none; outline: none; font-family: inherit; }

/* ===== 版心容器 ===== */
.container {
    width: 1200px;
    margin: 0 auto;
    position: relative;
}

/* 移动端版心 */
@media (max-width: 1200px) {
    .container {
        width: 100%;
        padding: 0 16px;
    }
}

/* ===== 页面容器 ===== */
.page-content {
    width: 100%;
}

/* ===== 顶部导航栏 ===== */
.site-header {
    width: 100%;
    height: 80px;
    background: #ffffff;
    position: relative;
    z-index: 100;
}

.header-inner {
    width: 1200px;
    height: 80px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 0;
}

.gov-logo-link {
    display: flex;
    align-items: center;
}

.gov-logo-img {
    height: 56px;
    width: auto;
    cursor: pointer;
}

.header-slogan {
    font-size: 16px;
    font-weight: 400;
    color: #333333;
    white-space: nowrap;
    margin-left: 32px;
    border-left: 1px solid #e0e0e0;
    padding-left: 16px;
    height: 20px;
    line-height: 20px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 4px;
}

.user-icon {
    display: flex;
    align-items: center;
    margin-right: 2px;
}

.auth-link {
    font-size: 14px;
    color: #0079FF;
    cursor: pointer;
    transition: opacity 0.2s;
}

.auth-link:hover {
    opacity: 0.8;
}

.auth-divider {
    color: #cccccc;
    font-size: 14px;
    margin: 0 4px;
}

/* ===== 移动端顶部导航 ===== */
@media (max-width: 768px) {
    .site-header {
        height: 60px;
    }

    .header-inner {
        width: 100%;
        height: 60px;
        padding: 0 16px;
        flex-wrap: wrap;
    }

    .header-left {
        flex: 1;
    }

    .gov-logo-img {
        height: 40px;
    }

    .header-slogan {
        display: none;
    }

    .header-right {
        margin-left: auto;
    }

    .auth-link {
        font-size: 12px;
    }

    .auth-divider {
        display: none;
    }
}

/* ===== 主 Banner 区域 ===== */
.banner {
    width: 100%;
    height: 320px;
    background: #165DFF;
    position: relative;
    overflow: hidden;
}

.banner-inner {
    width: 1200px;
    height: 320px;
    margin: 0 auto;
    position: relative;
}

/* Banner 文字区 */
.banner-text {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    max-width: 560px;
}

.banner-title-zh {
    font-size: 38px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.4;
    letter-spacing: 1px;
    margin-bottom: 24px;
    white-space: nowrap;
}

.banner-title-en {
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.35;
    margin-bottom: 20px;
    max-width: 600px;
}

.banner-desc-zh {
    font-size: 16px;
    color: #E6F0FF;
    line-height: 1.8;
    max-width: 560px;
}

.banner-desc-en {
    font-size: 16px;
    color: #E6F0FF;
    line-height: 1.8;
    max-width: 560px;
}

/* Banner 插画 */
.banner-illustration {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
}

.banner-illustration img {
    width: 420px;
    height: auto;
}

/* Banner 装饰圆 - 插画右后衬底 */
.banner-decor-circle-1 {
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: #0F48C0;
    opacity: 0.6;
    z-index: 1;
}

/* Banner 装饰小圆 */
.banner-decor-circle-2 {
    position: absolute;
    right: 140px;
    top: 50%;
    transform: translateY(-50%) translateY(80px);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #0F48C0;
    opacity: 0.4;
    z-index: 1;
}

/* Banner 装饰图标 */
.banner-icon-search {
    position: absolute;
    right: 360px;
    top: 30px;
    z-index: 6;
    opacity: 0.5;
}
.banner-icon-search img { width: 80px; height: auto; }

.banner-icon-doc-1 {
    position: absolute;
    right: 20px;
    bottom: 30px;
    z-index: 6;
    opacity: 0.4;
}
.banner-icon-doc-1 img { width: 240px; height: auto; }

.banner-icon-doc-2 {
    position: absolute;
    right: 500px;
    top: 40px;
    z-index: 6;
    opacity: 0.3;
}
.banner-icon-doc-2 img { width: 24px; height: auto; }

.banner-icon-doc-3 {
    position: absolute;
    right: 80px;
    top: 40px;
    z-index: 6;
    opacity: 0.35;
}
.banner-icon-doc-3 img { width: 30px; height: auto; }

/* ===== 移动端 Banner ===== */
@media (max-width: 768px) {
    .banner {
        height: auto;
        min-height: 280px;
        padding: 40px 0;
    }

    .banner-inner {
        width: 100%;
        height: auto;
        min-height: 280px;
        padding: 20px 16px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .banner-text {
        position: static;
        transform: none;
        max-width: 100%;
        text-align: center;
        margin-bottom: 20px;
    }

    .banner-title-zh {
        font-size: 22px;
        white-space: normal;
        line-height: 1.4;
    }

    .banner-title-en {
        font-size: 18px;
        line-height: 1.4;
    }

    .banner-desc-zh,
    .banner-desc-en {
        font-size: 14px;
        line-height: 1.6;
    }

    .banner-illustration {
        position: static;
        transform: none;
        margin-top: 16px;
    }

    .banner-illustration img {
        width: 100%;
        max-width: 280px;
        height: auto;
    }

    /* 移动端隐藏装饰元素 */
    .banner-decor-circle-1,
    .banner-decor-circle-2,
    .banner-icon-search,
    .banner-icon-doc-1,
    .banner-icon-doc-2,
    .banner-icon-doc-3 {
        display: none;
    }
}

/* ===== 运营商服务选择区 ===== */
.operators-section {
    width: 100%;
    background: #ffffff;
    padding: 0;
}

.operators-inner {
    width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px;
    position: relative;
    padding: 10px 0 40px 0;
}

.operator-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 50px 40px 50px 40px;
}

/* 按钮始终在卡片底部对齐 */
.apply-btn {
    margin-top: auto;
    height: 44px;
    background: #165DFF;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    border-radius: 4px;
    transition: all 0.25s ease;
}

.operator-divider {
    width: 1px;
    height: 120px;
    background: #E5E7EB;
    flex-shrink: 0;
}

/* ===== 移动端运营商服务 ===== */
@media (max-width: 768px) {
    .operators-section {
        padding: 20px 0;
    }

    .operators-inner {
        width: 100%;
        flex-direction: column;
        padding: 0 16px 20px 16px;
    }

    .operator-card {
        width: 100%;
        padding: 30px 20px;
        margin-bottom: 1px;
    }

    .operator-card:last-child {
        margin-bottom: 0;
    }

    .operator-divider {
        display: none;
    }

    .operator-logo {
        width: 160px;
        height: 50px;
        margin-bottom: 16px;
    }

    .operator-logo-unicom {
        width: 160px;
        height: 50px;
    }

    .operator-name-zh {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .operator-name-en {
        font-size: 16px;
        margin-bottom: 4px;
    }

    .operator-branch {
        font-size: 12px;
    }

    .operator-card:has(.operator-name-en) .operator-name-en {
        margin-bottom: 20px;
    }

    .apply-btn {
        width: 100% !important;
        max-width: 280px;
        height: 40px;
        font-size: 14px;
    }
}

/* 运营商logo - 无灰色圆圈背景，直接展示官方logo */
/* 统一宽度+object-fit:contain保证视觉大小一致 */
.operator-logo {
    width: 200px;
    height: 64px;
    object-fit: contain;
    margin-bottom: 20px;
}

/* 联通logo已裁剪空白，统一尺寸即可 */
.operator-logo-unicom {
    width: 200px;
    height: 64px;
}

.operator-name-zh {
    font-size: 18px;
    font-weight: 500;
    color: #333333;
    margin-bottom: 28px;
    text-align: center;
}

.operator-name-en {
    font-size: 18px;
    font-weight: 700;
    color: #333333;
    margin-bottom: 4px;
    text-align: center;
    line-height: 1.5;
}

.operator-branch {
    font-size: 14px;
    font-weight: 400;
    color: #666666;
}

.operator-card:has(.operator-name-en) .operator-name-en {
    margin-bottom: 28px;
}

.apply-btn:hover {
    background: #0F48C0;
    box-shadow: 0 4px 12px rgba(22, 93, 255, 0.3);
}

.apply-btn:active {
    transform: scale(0.97);
}

/* 中文版按钮宽度 */
.apply-btn-zh {
    width: 120px;
}

/* 英文版按钮宽度 */
.apply-btn-en {
    width: 160px;
}

/* ===== 语言选择弹窗 ===== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.modal-overlay.active {
    display: flex;
}

.modal-dialog {
    width: 590px;
    height: 174px;
    background: #ffffff;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.3);
}

.modal-header {
    padding: 28px 40px 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 20px;
    font-weight: 500;
    color: #000000;
}

.modal-close {
    font-size: 24px;
    color: rgba(51, 51, 51, 0.6);
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.modal-close:hover {
    color: rgba(51, 51, 51, 1);
}

.modal-body {
    padding: 28px 40px 40px 40px;
}

.lang-btn-group {
    display: flex;
    gap: 30px;
}

.lang-btn {
    width: 240px;
    height: 50px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.25s ease;
    font-weight: 500;
}

.lang-btn:hover {
    border-color: #165DFF;
    background: #F0F6FF;
}

/* 中文按钮特殊hover */
.lang-btn-zh:hover .lang-icon-zh {
    background: #165DFF;
    color: #ffffff;
}

/* 英文按钮特殊hover */
.lang-btn-en:hover .lang-icon-en {
    background: #165DFF;
    color: #ffffff;
}

.lang-btn-en:hover .lang-icon-en svg {
    stroke: #ffffff;
}

.lang-icon {
    width: 30px;
    height: 30px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.25s ease;
}

.lang-icon-zh {
    background: #D6E7FD;
    color: #165DFF;
    font-size: 18px;
    font-weight: 500;
}

.lang-icon-en {
    background: #D6E7FD;
    color: #165DFF;
}

.lang-text {
    font-size: 26px;
    color: #333333;
    font-weight: 500;
}

.lang-btn-en .lang-text {
    font-size: 24px;
}

/* ===== 移动端语言选择弹窗 ===== */
@media (max-width: 768px) {
    .modal-dialog {
        width: 90%;
        max-width: 320px;
        height: auto;
    }

    .modal-header {
        padding: 20px 24px 0 24px;
    }

    .modal-title {
        font-size: 16px;
    }

    .modal-body {
        padding: 20px 24px 24px 24px;
    }

    .lang-btn-group {
        flex-direction: column;
        gap: 16px;
    }

    .lang-btn {
        width: 100%;
        height: 48px;
    }

    .lang-icon {
        width: 28px;
        height: 28px;
    }

    .lang-icon-zh {
        font-size: 16px;
    }

    .lang-text {
        font-size: 18px;
    }

    .lang-btn-en .lang-text {
        font-size: 16px;
    }
}
