/* 基础样式重置和跨浏览器兼容 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    font-size: 16px;
    /* height: 100%; */
}
.footer:hover{
    cursor: pointer;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #FFFFFF;
    width: 100%;
    /* height: 100%; */
    overflow-x: hidden;
    min-width: 320px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 使用 CSS 变量定义通用属性，便于维护 */
:root {
    --main-color: #F55219;
    --text-dark: #212121;
    --text-gray: #6F7686;
    --text-light: #94A2B8;
    --border-light: #FFE0E0;
}

/* 容器居中布局，替代固定像素 */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 头部导航 */
.header {
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    width: 87px;
    height: 28px;
}

.nav-right {
    display: flex;
    gap: 10px;
}

.nav-btn {
    padding: 9px 18px 9px 24px;
    border: 1px solid #B2B2B2;
    border-radius: 20px;
    text-decoration: none;
    color: #656565;
    font-weight: 600;
    font-size: 16px;
    width: 110px;
    height: 40px;
    background: #FFFFFF;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.yxq-container {
    height: 100vh;
    display: flex;
    flex-direction: column;
    width: 100%;
    overflow: hidden;
    justify-content: space-between;
}

/* 主要内容区域 - 使用弹性布局 */
.main {
    text-align: center;
    height: 100%;
    /* padding: 60px 0; */
    background: url(./img/bk.png) center/cover no-repeat;
    width: 100%;
    /* min-height: 946px; */
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 描述文本 - 居中并使用最大宽度 */
.desc {
    max-width: 819px;
    width: 90%;
    font-weight: 500;
    font-size: 18px;
    color: var(--text-gray);
    line-height: 28px;
    margin: 78px auto 0;
    text-align: center;
}

/* 标题 - 居中并使用最大宽度 */
.title {
    max-width: 564px;
    width: 90%;
    font-weight: 600;
    font-size: min(66px, 10vw);
    color: var(--text-dark);
    line-height: 1.4;
    margin: 54px auto 0;
    text-align: center;
}

/* 副标题 - 居中并使用最大宽度 */
.subtitle {
    max-width: 438px;
    width: 90%;
    font-weight: 400;
    font-size: 22px;
    color: rgba(0,0,0,0.68);
    line-height: 1.4;
    letter-spacing: 1px;
    margin: 8px auto 0;
    text-align: center;
}

/* 特性区域 - 使用弹性布局 */
.features {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    margin: 30px auto;
    width: 100%;
    max-width: 1200px;
}

/* 特性项 - 强化跨浏览器兼容性 */
.feature-item {
    text-align: center;
    background-color: white;
    width: 288px;
    height: 158px;
    border-radius: 20px;
    border: 1px solid var(--border-light);
    /* display: flex; */
    /* justify-content: center; */
    -webkit-transform: translateZ(0); /* Safari渲染优化 */
    transform: translateZ(0);
}

.center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* 特性标题和描述统一样式 */
.feature-title {
    color: var(--main-color);
    font-size: 24px;
    font-weight: 600;
    margin-top: 38px;
    text-align: center;
    line-height: 33px;
}

.feature-desc {
    color: var(--text-light);
    display: inline-flex;
    color:#94A2B8;
    font-size: 14px;
    line-height: 20px;
    margin-top: 9px;
    text-align: center;
    max-width: 248px;
    padding: 0 10px;
}

/* CTA按钮 - 响应式宽度 */
.cta-button {
    max-width: 390px;
    width: 90%;
    height: 78px;
    background: var(--main-color);
    border-radius: 12px;
    color: white;
    border: none;
    font-size: 26px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 51px;
    margin-bottom: 22px;
    transition: background 0.3s ease;
}

/* 访问计数 - 居中 */
.visitCount {
    font-weight: 600;
    font-size: 16px;
    color: #000000;
    line-height: 22px;
    text-align: center;
    margin: 0 auto;
}

.visit-number {
    color: var(--main-color);
}

/* 页脚 - 响应式布局 */
.footer {
    display: flex;
    justify-content: space-around;
    width: 100%;
    padding: 24px;
    background: #f8f8f8;
    color: var(--text-light);
    font-size: 14px;
    /* margin-top: 50px; */
    /* height: auto; */
    /* min-height: 60px; */
}

/* 弹窗样式优化 */
.modal-overlay, .job-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 100;
    -webkit-overflow-scrolling: touch;
    display: none;
}

.modal-container, .job-modal-container {
    
    position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  padding: 20px;
  border-radius: 8px;
  width: 90%;
  max-width: 500px;
  z-index: 101;
  
}

.modal-container {
    
    width: 900px;
    max-width: 95%;
    display: flex;
}

.job-modal-container {
    
    width: 1200px;
    max-width: 95%;
    padding: 30px;
}

/* 关闭按钮 - 确保在modal层上方显示 */
.close-btn, .job-close-btn {
    position: absolute;
    right:-1px;
    top: -56px;
    width: 44px;
    height: 44px;
    background: #E7E7E7;
    border: none;
    cursor: pointer;
    border-radius: 50%;
    z-index: 99999; /* 高于modal的z-index */
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.close-btn::before, .job-close-btn::before {
    content: '×';
    font-size: 28px;
    color: #999;
    line-height: 1;
}

/* 联系信息区域 */
.contact-info {
    flex: 1;
    padding: 40px;
}

.contact-title, .job-modal-title {
    font-weight: 500;
    font-size: 32px;
    color: #000000;
    line-height: 45px;
    margin-bottom: 30px;
}

.contact-items {
    margin-top: 30px;
}

.contact-item, .job-contact-details p {
    font-weight: 500;
    font-size: 18px;
    color: #000000;
    line-height: 25px;
    margin-bottom: 16px;
    word-break: break-word;
}

/* 二维码区域 */
.qr-code-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
}

.qr-code-wrapper, .job-qr-code {
    /* width: 195px; */
    height: 185px;
    margin-bottom: 8px;
    
}

.qr-code-img, .job-qr-code img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* display: flex; */
    justify-content: center;
    /* align-items: center; */
}

.qr-code-text, .job-qr-desc {
    font-weight: 400;
    font-size: 18px;
    color: #000000;
    text-align: center;
}

/* 分隔线 */
.divider {
    width: 1px;
    background-color: #C9C9C9;
    margin: 40px 108px;
}

/* 职位信息区域 */
.job-modal-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.job-position-info {
    flex: 1;
    min-width: 300px;
}

.job-position-title {
    font-weight: 600;
    font-size: 32px;
    color: #000000;
    line-height: 45px;
    margin-bottom: 20px;
    position: relative;
    padding-left: 20px;
}

.job-position-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 36px;
    background: var(--main-color);
}

.job-section {
    font-weight: 400;
    font-size: 14px;
    line-height: 27px;
    color: #000000;
}

.job-section-title {
    font-weight: 600;
    margin: 15px 0 10px;
}

.job-description-list {
    list-style-type: none;
}

.job-contact-info {
    background: #FFF6F3;
    border-radius: 20px;
    padding: 30px;
    flex: 1;
    min-width: 300px;
    max-width: 499px;
}

.job-contact-title {
    font-weight: 600;
    font-size: 22px;
    color: #000000;
    text-align: center;
    margin-bottom: 20px;
}

/* Safari特定修复 */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
    .modal-container, .job-modal-container {
        -webkit-transform: translate3d(-50%, -50%, 0);
    }
    
    .feature-item {
        -webkit-transform: translateZ(0);
    }
    
    /* Safari滚动修复 */
    .modal-container, .job-modal-container {
        -webkit-overflow-scrolling: touch;
    }
    
    /* Safari按钮修复 */
    .cta-button, .close-btn, .job-close-btn {
        -webkit-appearance: none;
    }
}

/* 响应式布局 */
@media (max-width: 1200px) {
    .qr-code-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 0px;
    }
    .yxq-container{
        height: auto;
        overflow: auto;
    }
    .modal-container{
        max-height: 80vh; /* 最大高度为视口高度的 80% */
        overflow-y: auto; /* 当内容超出时出现垂直滚动条 */
        position: relative; /* 使关闭按钮的定位相对于弹框内容 */
    }
    .job-qr-code{
        margin-left: 50px;
    }
    .job-modal-container{
        height: 80vh;
        overflow: auto;
    }
    .close-btn, .job-close-btn {
        top:10px;
        right: 10px;
        width: 36px;
        height: 36px;
    }
    
    .main {
        min-height: auto;
        padding-bottom: 60px;
    }
    
    .title {
        margin-top: 80px;
    }
    
    .desc {
        margin-top: 40px;
    }
    
    .modal-container, .job-modal-container {
        width: 95%;
    }
    
    .job-modal-container {
        height: auto;
    }
    
    .job-contact-info {
        margin-right: 0;
    }
}

@media (max-width: 768px) {
    .qr-code-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 0px;
    }
    .yxq-container{
        height: auto;
        overflow: auto;
    }
    .modal-container{
        max-height: 80vh; /* 最大高度为视口高度的 80% */
        overflow-y: auto; /* 当内容超出时出现垂直滚动条 */
        position: relative; /* 使关闭按钮的定位相对于弹框内容 */
    }
    .job-qr-code{
        margin-left: 50px;
    }
    .job-modal-container{
        height: 80vh;
        overflow: auto;
    }
    .close-btn, .job-close-btn {
        top:10px;
        right: 10px;
        width: 36px;
        height: 36px;
    }
    /* .job-contact-title{
        margin-left: 50px;
    }
    .job-qr-desc{
        margin-left: 50px;
    } */
    .header {
        flex-direction: column;
        align-items: center;
        padding: 15px;
    }
    
    .nav-right {
        margin-top: 15px;
    }
    
    .title {
        font-size: 48px;
        margin-top: 60px;
    }
    
    .subtitle {
        font-size: 18px;
    }
    
    .desc {
        font-size: 16px;
        margin-top: 30px;
    }
    
    .features {
        gap: 10px;
    }
    
    .feature-item {
        width: 45%;
        min-width: 280px;
    }
    
    .cta-button {
        height: 60px;
        font-size: 22px;
    }
    
    .modal-container {
        flex-direction: column;
        padding: 20px;
    }
    
    .divider {
        display: none;
    }
    
    .contact-title, .job-modal-title, .job-position-title {
        font-size: 28px;
    }
    
    .qr-code-wrapper {
        margin: 20px auto;
    }
    
    .job-modal-content {
        flex-direction: column;
    }
    
    .job-contact-info {
        width: 100%;
        max-width: 100%;
    }
    
    .footer {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .footer div {
        text-align: center;
        margin-bottom: 10px;
    }
}

@media (max-width: 480px) {
    .qr-code-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 0px;
    }
    .yxq-container{
        height: auto;
        overflow: auto;
    }
    .modal-container{
        max-height: 80vh; /* 最大高度为视口高度的 80% */
        overflow-y: auto; /* 当内容超出时出现垂直滚动条 */
        position: relative; /* 使关闭按钮的定位相对于弹框内容 */
    }
    
    .header {
        padding: 10px;
    }
    
    .nav-btn {
        width: auto;
        padding: 8px 12px;
        font-size: 14px;
        height: auto;
    }
    
    .title {
        font-size: 36px;
        margin-top: 40px;
    }
    
    .subtitle {
        font-size: 16px;
    }
    
    .desc {
        font-size: 14px;
    }
    
    .feature-item {
        width: 100%;
        min-width: 0;
    }
    
    .cta-button {
        height: 50px;
        font-size: 18px;
    }
    
    .contact-item, .job-contact-details p {
        font-size: 14px;
    }
    
    .contact-title, .job-modal-title {
        font-size: 24px;
    }
    
    .job-position-title {
        font-size: 20px;
    }
    
    .qr-code-img, .job-qr-code {
        width: 150px;
        height: 150px;
       
    }
    .job-qr-code{
        margin-left:100px;
    }
    .job-contact-title{
        margin-left: 30px;
    }
    .job-modal-container{
        height: 80vh;
        overflow: auto;
    }
    .close-btn, .job-close-btn {
        top:10px;
        right: 10px;
        width: 36px;
        height: 36px;
    }
    
    .close-btn::before, .job-close-btn::before {
        font-size: 24px;
    }
}

/* iOS设备特定优化 */
@supports (-webkit-touch-callout: none) {
    .modal-container, .job-modal-container {
        transform: translate3d(-50%, -50%, 0);
        -webkit-transform: translate3d(-50%, -50%, 0);
        padding-bottom: env(safe-area-inset-bottom);
    }
    
    .close-btn, .job-close-btn {
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
    }
    
    .nav-btn, .cta-button, .close-btn, .job-close-btn {
        -webkit-tap-highlight-color: transparent;
    }
}