/* 全局基础设置 */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: "Microsoft YaHei", sans-serif; }

/* 锁定PC端溢出，隐藏滚动条 */
html, body { 
    height: 100%; 
    width: 100%; 
    background-color: #fff;
    color: #333;
    overflow: hidden; 
    scrollbar-width: none; 
    -ms-overflow-style: none; 
}
::-webkit-scrollbar { display: none; width: 0 !important; }

/* 背景控制 */
.full-background { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.full-background img { width: 100%; height: 100%; object-fit: cover; }
.background-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0.7) 20%, rgba(255,255,255,0) 80%);
    pointer-events: none;
}

/* PC导航 */
nav.nav-pc { position: absolute; top: 40px; left: 150px; z-index: 100; display: flex; gap: 25px; }
nav.nav-pc a { 
    text-decoration: none; color: #333; font-weight: 500; font-size: 13px; 
    cursor: pointer; text-transform: uppercase; padding: 8px 16px;
    transition: all 0.3s ease; border-radius: 20px;
}
nav.nav-pc a:hover { color: #fff; background: #4d6bfe; }
nav.nav-pc a.active { color: #fff; background: #4d6bfe; }

/* 移动端头部样式 */
.mobile-header { display: none; }
.mobile-menu-overlay { display: none; }

/* 内容布局 - 首页 */
.main-wrapper {
    position: relative; z-index: 10; width: 100%; height: 100vh;
    display: flex; align-items: center; justify-content: flex-start;
    padding-left: 150px;
    pointer-events: none;
}
.text-box { width: 450px; display: flex; flex-direction: column; align-items: center; text-align: center; pointer-events: auto; }
.logo-main { width: 320px; max-width: 85%; height: auto; margin-bottom: 15px; }
.desc-text { color: #444; font-size: 14px; line-height: 1.8; margin-bottom: 30px; padding: 0 20px; }

/* 内容布局 - 内页 */
.main-wrapper.content-page {
    display: block;
    padding: 0;
    pointer-events: auto;
}
.content-box {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 0;
    padding: 40px;
    padding-bottom: 120px;
    width: 100%;
    height: 100vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(77, 107, 254, 0.2);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    pointer-events: auto;
}
.content-box.about-page {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    width: calc(100% - 300px);
    max-height: 80vh;
    margin: 0 150px;
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
}
.content-inner {
    width: calc(100% - 300px);
    margin: 0 150px;
    padding-top: 100px;
    max-width: 1600px;
    position: relative;
    z-index: 50;
    pointer-events: auto;
}

/* 弹窗系统 (16:9) */
.modal-mask { 
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; 
    z-index: 3000; justify-content: center; align-items: center; background: transparent; 
}
.modal-body { 
    background: #FBFDFE; color: #333; width: 85%; max-width: 900px; 
    aspect-ratio: 16 / 9; position: relative; border: 2px solid #4d6bfe; border-radius: 16px;
    display: flex; flex-direction: column; justify-content: center; padding: 50px;
    overflow-y: auto; scrollbar-width: none; box-shadow: 0 10px 40px rgba(77, 107, 254, 0.2);
}
.close-btn { position: absolute; top: 15px; right: 20px; font-size: 28px; cursor: pointer; color: #4d6bfe; z-index: 10; transition: 0.3s; }
.close-btn:hover { color: #333; transform: rotate(90deg); }

/* 侧边语言切换 */
.lang-switch { position: fixed; right: 40px; top: 50%; transform: translateY(-50%); z-index: 150; display: flex; flex-direction: column; gap: 15px; }
.lang-item { width: 42px; height: 42px; border: 2px solid #4d6bfe; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; cursor: pointer; background: #fff; color: #4d6bfe; transition: 0.3s; }
.lang-item:hover { background: #4d6bfe; color: #fff; }

/* 版权区 */
.copyright { position: relative; width: 100%; text-align: center; color: #666; font-size: 11px; z-index: 100; padding: 20px 0; margin-top: auto; }
.copyright.fixed { position: fixed; bottom: 30px; }

/* 按钮样式 */
.submit-btn { background: #4d6bfe; color: #fff; border: none; padding: 12px 24px; cursor: pointer; font-weight: 500; transition: 0.3s; border-radius: 25px; }
.submit-btn:hover { background: #3a5bd9; transform: translateY(-2px); box-shadow: 0 5px 20px rgba(77, 107, 254, 0.4); }

/* 分类标签样式 */
.category-tabs {
    margin-bottom: 20px;
}
.category-tabs a {
    display: inline-block;
    padding: 5px 15px;
    margin-right: 10px;
    text-decoration: none;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 20px;
    transition: all 0.3s ease;
}
.category-tabs a:hover,
.category-tabs a.active {
    background: #4d6bfe;
    color: #fff;
    border-color: #4d6bfe;
}

/* 分页样式 */
.pagination {
    margin-top: 30px;
    text-align: center;
    position: relative;
    z-index: 1000;
    pointer-events: auto;
}
.pagination > span {
    display: inline-block;
    margin: 0 3px;
    pointer-events: auto;
}
.pagination a {
    display: inline-block;
    padding: 5px 15px;
    text-decoration: none;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
    background: transparent;
    pointer-events: auto;
    position: relative;
    z-index: 1000;
}
.pagination a:hover {
    background: #4d6bfe;
    color: #fff;
    border-color: #4d6bfe;
}
.page-status {
    display: none !important;
}
.pagination .page-num-current {
    background: #4d6bfe;
    color: #fff;
    border-color: #4d6bfe;
    padding: 5px 15px;
    border-radius: 20px;
    border: 1px solid #4d6bfe;
}

/* 产品列表样式 */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}
.product-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}
.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(77, 107, 254, 0.2);
}
.product-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}
.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.product-item:hover .product-image img {
    transform: scale(1.05);
}
.product-info {
    padding: 15px;
}
.product-info h3 {
    font-size: 16px;
    margin-bottom: 10px;
}
.product-info h3 a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s ease;
}
.product-info h3 a:hover {
    color: #4d6bfe;
}
.product-info p {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}
.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}
.product-tags a {
    display: inline-block;
    padding: 3px 10px;
    background: #f0f0f0;
    color: #666;
    text-decoration: none;
    font-size: 12px;
    border-radius: 12px;
    transition: all 0.3s ease;
}
.product-tags a:hover {
    background: #4d6bfe;
    color: #fff;
}

/* 新闻列表样式 */
.news-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}
.news-item {
    display: flex;
    align-items: center;
    background: transparent;
    border-radius: 12px;
    padding: 15px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}
.news-item:hover {
    transform: translateX(5px);
}
.news-item .date {
    min-width: 80px;
    text-align: center;
    padding-right: 15px;
    border-right: 2px solid #4d6bfe;
    margin-right: 15px;
}
.news-item .date .day {
    font-size: 28px;
    font-weight: bold;
    color: #4d6bfe;
}
.news-item .date .month {
    font-size: 12px;
    color: #666;
}
.news-item a {
    flex: 1;
    text-decoration: none;
    color: #333;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s ease;
}
.news-item a:hover {
    color: #4d6bfe;
}

/* 案例列表样式 */
.case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}
.case-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}
.case-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(77, 107, 254, 0.2);
}
.case-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}
.case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.case-item:hover .case-image img {
    transform: scale(1.05);
}
.case-info {
    padding: 15px;
}
.case-info h3 {
    font-size: 16px;
    margin-bottom: 10px;
}
.case-info h3 a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s ease;
}
.case-info h3 a:hover {
    color: #4d6bfe;
}
.case-info p {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

/* 招聘列表样式 */
.job-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}
.job-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}
.job-item:hover {
    box-shadow: 0 8px 25px rgba(77, 107, 254, 0.2);
}
.job-header {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}
.job-header:hover {
    background: #f8f9fa;
}
.job-header h3 {
    font-size: 16px;
    color: #333;
    margin: 0;
}
.job-header .toggle-icon {
    font-size: 24px;
    color: #4d6bfe;
    font-weight: bold;
}
.job-content {
    padding: 0 20px 20px 20px;
    border-top: 1px solid #eee;
}
.job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 15px 0;
    font-size: 14px;
    color: #666;
}
.job-meta span {
    display: flex;
    align-items: center;
}
.job-desc {
    font-size: 14px;
    color: #444;
    line-height: 1.8;
}

/* 详情页样式 */
.product-detail, .news-detail, .case-detail, .job-detail {
    background: transparent;
    border-radius: 12px;
    padding: 30px;
}
.product-detail h1, .news-detail h1, .case-detail h1, .job-detail h1 {
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}
.product-detail .meta, .news-detail .meta, .job-detail .meta {
    font-size: 14px;
    color: #666;
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}
.product-detail .content, .news-detail .content, .case-detail .content, .job-detail .content {
    font-size: 14px;
    line-height: 1.8;
    color: #444;
}
.product-detail .content img, .news-detail .content img, .case-detail .content img, .job-detail .content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 15px 0;
}
/* 音频播放器样式 */
.product-detail .content video, .news-detail .content video, .case-detail .content video {
    width: 100% !important;
    max-width: 400px;
    height: 60px !important;
    margin: 20px auto;
    display: block;
    border-radius: 8px;
    overflow: hidden;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
}
.product-detail .content audio, .news-detail .content audio, .case-detail .content audio {
    width: 100% !important;
    max-width: 400px;
    height: 60px !important;
    margin: 20px auto;
    display: block;
    border-radius: 8px;
    overflow: hidden;
    background: linear-gradient(135deg, #4d6bfe 0%, #3a5bd9 100%);
    border: none;
    padding: 10px;
    box-shadow: 0 4px 15px rgba(77, 107, 254, 0.2);
}
/* 自定义音频播放器样式 */
.custom-audio-player {
    width: 100%;
    max-width: 400px;
    margin: 20px auto;
    background: linear-gradient(135deg, #4d6bfe 0%, #3a5bd9 100%);
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 4px 15px rgba(77, 107, 254, 0.2);
    color: white;
}
.custom-audio-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}
.custom-audio-play {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    color: #4d6bfe;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.3s ease;
}
.custom-audio-play:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 10px rgba(255, 255, 255, 0.3);
}
.custom-audio-progress {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    overflow: hidden;
    cursor: pointer;
}
.custom-audio-progress-bar {
    height: 100%;
    background: white;
    border-radius: 3px;
    transition: width 0.1s linear;
}
.custom-audio-time {
    font-size: 12px;
    min-width: 80px;
    text-align: right;
}
.product-nav, .news-nav, .case-nav, .job-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(0,0,0,0.1);
}
.product-nav div, .news-nav div, .case-nav div, .job-nav div {
    font-size: 14px;
    color: #666;
}
.product-nav a, .news-nav a, .case-nav a, .job-nav a {
    color: #4d6bfe;
    text-decoration: none;
}
.product-nav a:hover, .news-nav a:hover, .case-nav a:hover, .job-nav a:hover {
    text-decoration: underline;
}

/* 关于我们样式 */
.about-content {
    margin-top: 20px;
}
.about-content h1 {
    color: #333;
    margin-bottom: 30px;
    font-size: 24px;
    text-align: center;
}
.about-content content {
    line-height: 1.8;
    color: #444;
}
.about-content content p {
    margin-bottom: 15px;
}
.about-content content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 15px 0;
}

/* 搜索页样式 */
.search-box {
    margin-bottom: 30px;
}
.search-box form {
    display: flex;
    gap: 10px;
    max-width: 500px;
}
.search-box input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #4d6bfe;
    border-radius: 25px;
    outline: none;
    font-size: 14px;
    background: #fff;
}
.search-box button {
    padding: 12px 25px;
    background: #4d6bfe;
    color: #fff;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}
.search-box button:hover {
    background: #3a5bd9;
}
.search-results {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}
.search-item {
    background: transparent;
    border-radius: 12px;
    padding: 20px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}
.search-item:hover {
    transform: translateX(5px);
}
.search-item h3 {
    font-size: 16px;
    margin-bottom: 10px;
}
.search-item h3 a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s ease;
}
.search-item h3 a:hover {
    color: #4d6bfe;
}
.search-item p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 10px;
}
.search-item .meta {
    font-size: 12px;
    color: #999;
}
.no-results {
    text-align: center;
    color: #666;
    font-size: 16px;
    padding: 50px 0;
}

/* 移动端标题显示控制 */
.pc-title { display: inline; }
.mobile-title { display: none; }

/* 响应式断点 */
@media (max-width: 1180px) {
    .full-background, .nav-pc, .lang-switch { display: none !important; }
    .mobile-header { 
        display: flex !important; position: fixed; top: 0; width: 100%; z-index: 1000;
        background: #fff; padding: 20px 30px; justify-content: space-between; align-items: center;
        border-bottom: 1px solid #eee;
    }
    .mobile-home-tag { font-weight: 500; border-bottom: 2px solid #4d6bfe; font-size: 18px; color: #4d6bfe; }
    .main-wrapper { padding: 0 30px; justify-content: center; align-items: center; background: #fff; height: 100vh; overflow: hidden; }
    .main-wrapper.content-page { height: auto; min-height: 100vh; overflow: auto; }
    
    .text-box { width: 100%; max-width: none; }
    .logo-main { width: 280px; max-width: 80%; height: auto; margin-bottom: 20px; }
    .desc-text { font-size: 14px; line-height: 1.8; margin-bottom: 30px; padding: 0 10px; }
    
    .mobile-menu-overlay {
        display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
        background: #fff; z-index: 2000; flex-direction: column; align-items: center; justify-content: center; gap: 25px;
    }
    .mobile-menu-overlay.active { display: flex; }
    .mobile-menu-overlay a { font-size: 18px; color: #333; text-decoration: none; font-weight: 500; text-transform: uppercase; transition: 0.3s; }
    .mobile-menu-overlay a:hover { color: #4d6bfe; }
    
    .modal-body { aspect-ratio: auto; height: auto; min-height: 450px; padding: 40px 25px; }
    
    .content-box {
        padding: 20px;
        margin-top: 80px;
        margin-bottom: 0;
        max-height: calc(100vh - 80px);
        position: relative;
        height: calc(100vh - 80px);
        overflow-y: auto;
        border-radius: 0;
        box-shadow: none;
    }
    .content-box.about-page {
        width: 100%;
        max-height: calc(100vh - 80px);
        margin: 0;
        margin-top: 80px;
    }
    .content-inner {
        width: 100%;
        margin: 0;
        padding-top: 0;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        max-height: none;
    }
    .product-item {
        border-radius: 8px;
    }
    .product-image {
        height: 160px;
    }
    .product-info h3 {
        font-size: 14px;
        margin-bottom: 8px;
    }
    .product-info p {
        font-size: 12px;
        margin-bottom: 10px;
        line-height: 1.4;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .product-tags a {
        font-size: 10px;
        padding: 2px 8px;
    }
    
    .news-item {
        flex-direction: row;
        align-items: flex-start;
    }
    .news-item a {
        flex: 1;
        padding-right: 10px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .case-grid {
        grid-template-columns: 1fr;
    }
    .case-item {
        border-radius: 8px;
    }
    .case-image {
        height: 160px;
    }
    .case-info {
        padding: 12px;
    }
    .case-info h3 {
        font-size: 14px;
        margin-bottom: 8px;
    }
    .case-info p {
        font-size: 12px;
    }
    
    .job-list {
        gap: 10px;
    }
    .job-header {
        padding: 15px;
    }
    .job-header h3 {
        font-size: 14px;
    }
    .job-content {
        padding: 0 15px 15px 15px;
    }
    .job-meta {
        flex-direction: column;
        gap: 8px;
        font-size: 12px;
    }
    .job-desc {
        font-size: 12px;
    }
    
    .search-box form {
        flex-direction: column;
    }
    .search-box input {
        width: 100%;
    }
    .search-box button {
        width: 100%;
    }
    .search-results {
        gap: 15px;
    }
    .search-item {
        padding: 15px;
    }
    .search-item h3 {
        font-size: 14px;
    }
    .search-item p {
        font-size: 12px;
    }
    
    .product-detail, .news-detail, .case-detail {
        padding: 20px;
    }
    .product-detail h1, .news-detail h1, .case-detail h1 {
        font-size: 18px;
    }
    .product-detail .meta, .news-detail .meta {
        font-size: 12px;
    }
    .product-detail .content, .news-detail .content, .case-detail .content {
        font-size: 13px;
    }
    .product-nav, .news-nav, .case-nav {
        flex-direction: column;
        gap: 10px;
    }
    .product-nav div, .news-nav div, .case-nav div {
        font-size: 12px;
    }
    
    .about-content h1 {
        font-size: 18px;
    }
    
    .category-tabs {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 15px;
    }
    .category-tabs a {
        margin-right: 0;
        flex: 0 0 auto;
        text-align: center;
        font-size: 12px;
        padding: 4px 12px;
    }
    
    .pagination {
        margin-top: 20px;
    }
    .pagination a {
        padding: 4px 12px;
        margin: 0 2px;
        font-size: 12px;
    }
    .pagination .page-num-current {
        padding: 4px 12px;
        font-size: 12px;
    }
    .page-status {
        display: none !important;
    }
    
    .search-form input {
        width: 200px;
    }
    .search-results {
        grid-template-columns: 1fr;
    }
    
    .pc-title { display: none; }
    .mobile-title { display: inline; }
    
    .copyright { display: none !important; }
}

/* 横屏特定优化 */
@media (max-height: 500px) and (orientation: landscape) {
    html, body { overflow-y: auto !important; height: auto; }
    .main-wrapper { height: auto; min-height: 100vh; padding: 100px 0 60px 0; display: block; }
    .text-box { margin: 0 auto; }
    .content-box { margin: 0 auto; }
    .copyright { display: none !important; }
}

/* 本地化三条杠图标样式 */
.menu-icon-trigger {
    padding: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-hamburger {
    width: 24px;
    height: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.custom-hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #4d6bfe;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.menu-icon-trigger:hover .custom-hamburger span {
    background-color: #3a5bd9;
}
