/* =====================================================================
   响应式适配层（responsive.css）—— 最后加载，移动端覆盖优先级最高
   设计原则：原站 css.css 保留桌面视觉，本文件只做“适配”覆盖：
     1) 解除 html{min-width:1000px} 与固定宽度容器对移动端的阻断
     2) 容器改为流式（max-width 上限 + 100% 宽度）
     3) 平板 / 手机断点下，浮动多栏改为纵向堆叠，导航改为汉堡菜单
     4) 覆盖全站内页（关于/产品/新闻/留言/搜索），不再出现电脑版固定宽度
   桌面端（>1024px）视觉与原站一致。
   ===================================================================== */

/* ---------- 基础：解除桌面阻断，容器流式化，媒体自适应 ---------- */
html { min-width: 0; }                 /* 关键：去掉 1000px 最小宽度限制 */
*, *::before, *::after { box-sizing: border-box; }

/* 防止任何残留固定宽度元素导致整页横向溢出（出现“电脑版缩略”观感） */
html, body { max-width: 100%; overflow-x: hidden; }

/* 全局媒体自适应：图片/画布/视频/iframe 永不超出父容器 */
img, canvas, video, iframe { max-width: 100%; height: auto; }

/* 深空粒子画布：默认隐藏，仅在 deepspace 主题下由 JS 打开（避免非深空主题时
   在 logo 上方渲染出一块 ~150px 的空白占位）。详见 theme-v02-deepspace.css 的显示规则。 */
#dsCanvas { display: none; }

.container { width: 100%; max-width: 1203px; }
.container1 { width: 100%; max-width: 1100px; }
.header { width: 100%; max-width: 1200px; }

/* 首页轮播高度（原站内联 523px，这里收口并做移动端收缩） */
.fullSlide .bd li,
.fullSlide .bd li a { height: 523px; }

/* 内页头图自适应高度 */
.nei-banner img { width: 100%; height: auto; }

/* 内页固定宽度容器：留言表单 / 招聘弹层 / 翻页 —— 改为流式 */
.message { width: 100%; max-width: 700px; }
.message li,
.message li input,
.message li.contentb,
.message li p.message_content,
.message li p.message_title,
.message li.contentb textarea,
.message li p.message_sub,
.message li p.message_yzminput,
.message li p.message_yzmico,
.message li.yzm { width: 100% !important; max-width: 100%; float: none; }
.message li input,
.message li.contentb textarea { max-width: 100%; }
.side_about_jop { width: 100% !important; }
.side_about_jop .input,
.side_about_jop .textarea { width: 100% !important; max-width: 100%; }
.global_page { width: 100% !important; }

/* 图文/图片列表卡片：桌面固定宽度 -> 流式百分比 */
.image_articles ul li { width: 278px; }
.list-images ul.list-img-cn li { width: 283px; }

/* ---------- 新增组件（原站无，需补充样式） ---------- */
.menu-btn { display: none; }            /* 桌面隐藏汉堡 */
.gallery-grid { display: flex; flex-wrap: wrap; gap: 15px; margin: 25px 0; }
.gallery-item { flex: 1 1 220px; max-width: 32%; }
.gallery-item img { width: 100%; border: 1px solid #e8e8e8; border-radius: 4px; }
.gb-tip { margin: 20px auto; padding: 12px 18px; border-radius: 4px; max-width: 700px; text-align: center; font-size: 15px; }
.gb-tip-success { background: #e6fbf7; color: #0a8f7e; border: 1px solid #14decd; }
.gb-tip-error { background: #fdecec; color: #c0392b; border: 1px solid #f1a3a3; }
.news-list-wrap { overflow: hidden; }

/* ---------- 联系我们页：联系卡片美化 ---------- */
.contact-showcase {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    margin: 30px 0 40px;
    background:
        linear-gradient(120deg, rgba(10,80,120,.86) 0%, rgba(14,130,140,.82) 55%, rgba(10,80,120,.86) 100%),
        url('../uploads/contact-bg.png') center/cover no-repeat;
    box-shadow: 0 18px 50px rgba(10,100,120,.18);
    color: #fff;
}
.contact-showcase::before {
    content: '';
    position: absolute; left: -60px; top: -60px; width: 220px; height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(20,222,205,.22) 0%, transparent 70%);
    pointer-events: none;
}
.contact-showcase::after {
    content: '';
    position: absolute; right: -40px; bottom: -40px; width: 180px; height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,.12) 0%, transparent 70%);
    pointer-events: none;
}
.contact-grid {
    position: relative; z-index: 1;
    display: flex; align-items: stretch; flex-wrap: wrap;
    padding: 48px 54px;
    gap: 40px;
}
.contact-info-panel { flex: 1 1 360px; }
.contact-main-title {
    font-size: 36px; font-weight: 600; margin: 0 0 10px;
    text-shadow: 0 2px 10px rgba(0,0,0,.18);
}
.contact-subtitle {
    font-size: 15px; opacity: .86; margin: 0 0 32px; letter-spacing: .5px;
}
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-item {
    display: flex; align-items: center; gap: 16px;
    padding: 18px 22px; margin-bottom: 14px;
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 12px;
    backdrop-filter: blur(4px);
    transition: all .25s ease;
}
.contact-item:hover { background: rgba(255,255,255,.18); transform: translateX(6px); }
.contact-icon {
    flex: 0 0 44px; height: 44px; line-height: 44px; text-align: center;
    background: rgba(20,222,205,.25); border-radius: 50%;
    font-size: 20px; color: #14decd;
}
.contact-item small { display: block; font-size: 12px; opacity: .72; margin-bottom: 2px; }
.contact-item strong { display: block; font-size: 18px; font-weight: 500; }
.contact-qr-panel { flex: 0 0 260px; display: flex; align-items: center; justify-content: center; }
.qr-card {
    background: #fff; border-radius: 14px; padding: 18px; text-align: center;
    box-shadow: 0 12px 36px rgba(0,0,0,.18);
}
.qr-card img { width: 200px; height: 200px; object-fit: contain; display: block; border-radius: 6px; }
.qr-card p { margin: 12px 0 0; color: #0a8f86; font-size: 14px; }

/* ---------- 首页：公司简介 / 合作伙伴 ---------- */
.home-intro {
    padding: 60px 0 50px;
    position: relative;
    overflow: hidden;
    clear: both;
    width: 100%;
    background: linear-gradient(135deg, #f7fffe 0%, #eefcfb 50%, #f5f9ff 100%);
}
.home-intro::before {
    content: '';
    position: absolute;
    left: -80px; top: -80px; width: 280px; height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(20,222,205,.14) 0%, transparent 70%);
    pointer-events: none;
}
.home-intro::after {
    content: '';
    position: absolute;
    right: -60px; bottom: -60px; width: 220px; height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(66,123,228,.10) 0%, transparent 70%);
    pointer-events: none;
}
.home-intro .intro-card {
    position: relative; z-index: 1;
    background: rgba(255,255,255,.86);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(20,222,205,.22);
    border-radius: 14px;
    padding: 42px 48px 36px;
    box-shadow: 0 14px 40px rgba(10,143,134,.08);
}
.home-intro .intro-card .pro-title { margin-bottom: 22px; }
.home-intro .intro-text { line-height: 2; color: #444; font-size: 15px; }
.home-intro .intro-text p { margin: 0 0 16px; }
.home-intro .intro-more { text-align: center; margin-top: 24px; }
.home-intro .more-link { display: inline-block; padding: 10px 32px; border: 1px solid #14decd; color: #0a8f86; border-radius: 30px; text-decoration: none; font-size: 14px; transition: all .25s; }
.home-intro .more-link:hover { background: #14decd; color: #08312e; transform: translateY(-2px); box-shadow: 0 6px 16px rgba(20,222,205,.32); }

/* 滚动进入动画（JS 启用时；默认可见，避免内容因脚本问题消失） */
html.anim-on .reveal-section .intro-card { opacity: 0; transform: translateY(30px); transition: opacity .8s ease, transform .8s ease; }
html.anim-on .reveal-section.in .intro-card,
html.anim-on .reveal-section.is-visible .intro-card { opacity: 1; transform: translateY(0); }

.hezuo-desc { color: #777; text-align: center; margin: 0 auto 26px; max-width: 800px; font-size: 15px; line-height: 1.8; }

/* 合作伙伴：横向自动轮播（marquee），文字卡片 */
.partners-marquee { overflow: hidden; position: relative; width: 100%; padding: 10px 0; }
.partners-marquee::before,
.partners-marquee::after {
    content: '';
    position: absolute; top: 0; bottom: 0; width: 60px; z-index: 2; pointer-events: none;
}
.partners-marquee::before { left: 0; background: linear-gradient(90deg, #fff 0%, transparent 100%); }
.partners-marquee::after  { right: 0; background: linear-gradient(-90deg, #fff 0%, transparent 100%); }
.partners-track { display: inline-flex; gap: 22px; animation: partnersMarquee 24s linear infinite; }
.partners-track:hover { animation-play-state: paused; }
.partner-card {
    flex: 0 0 auto;
    width: 220px;
    border: 1px solid #eee; background: #fff; border-radius: 8px;
    padding: 24px 18px; min-height: 78px; text-align: center; font-size: 14px; color: #444;
    display: flex; align-items: center; justify-content: center; transition: all ease .3s;
    box-shadow: 0 4px 12px rgba(0,0,0,.04);
}
.partner-card:hover { border-color: #14decd; color: #0a8f86; transform: translateY(-4px); box-shadow: 0 10px 24px rgba(20,222,205,.14); }

@keyframes partnersMarquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* 合作伙伴区块也要清浮动，避免被上方内容挤位 */
.hezuo { clear: both; width: 100%; }

/* 返回顶部按钮：移动端避让主题切换器 */
#gotoTop { right: 16px; bottom: 84px; }

/* =====================================================================
   平板：≤1024px
   ===================================================================== */
@media only screen and (max-width: 1024px) {
    .pro-title h3 { font-size: 26px; }

    /* 效果分享卡片：由 4 列降到 3 列 */
    .kshi-jieh .father-slide .keshi-img { width: 30%; margin: 15px 1.6%; }

    /* 图文列表：由 4 列降到 3 列 */
    .list-images ul.list-img-cn li { width: 31%; margin: 10px 1% 10px 0; }
    .list-images ul.list-img-cn li:nth-child(4n) { margin-right: 1%; }
    .list-images ul.list-img-cn li:nth-child(3n) { margin-right: 0; }
    .list-images ul.list-img-cn li .imgdiv3 { height: 260px; }

    /* 图片列表卡片 3 列 */
    .image_articles ul li { width: 31%; margin: 10px 1.5% 10px 0; }

    /* 内页联系/图墙等双栏改为单栏 */
    .about-text .about-left,
    .guan-left { width: 100% !important; float: none !important; }
    .guan-right { width: 100% !important; padding: 0 10px; }
    .guan-left div { width: 100% !important; }

    .cn-title, .center-img, .foot-center { width: 100% !important; float: none !important; margin-top: 20px; }

    .news-left { width: 100%; float: none !important; }
}

/* =====================================================================
   手机：≤768px  —— 核心响应式断点
   ===================================================================== */
@media only screen and (max-width: 768px) {

    body { font-size: 13px; }

    /* 顶部：Logo + 汉堡 一行，搜索移到下方整行 */
    #top { margin: 10px 0; }
    #top .logo { float: none; display: block; text-align: center; }
    #top .logo img { display: inline-block; max-width: 70%; height: auto; }
    .hp-right { float: none !important; width: 100% !important; max-width: 320px; margin: 10px auto 0; }
    .menu-btn {
        display: block; position: absolute; top: 14px; right: 15px;
        width: 34px; height: 28px; z-index: 120;
    }
    .menu-btn span { display: block; height: 3px; background: #14decd; margin: 5px 0; border-radius: 2px; transition: .3s; }
    #top .container { position: relative; }

    /* 导航：横向菜单隐藏，汉堡展开后纵向排列 */
    .header-nav { background: #427be4; }
    .header .nav { display: none; width: 100%; }
    .header-nav.nav-open .nav { display: block; }
    .header .nav li { float: none !important; width: 100%; height: auto; line-height: normal; text-align: left; border-bottom: 1px solid rgba(255,255,255,.18); padding: 0 !important; }
    .header .nav li a { padding: 12px 16px; font-size: 15px; }
    .header .nav li .second-nav,
    .header .nav li .second-nav .third-nav {
        position: static !important; display: block !important; width: 100%;
        background: rgba(20,222,205,0.22); box-shadow: none; opacity: 1 !important;
    }
    .header .nav li .second-nav li { height: auto; line-height: normal; border-bottom: 1px solid rgba(255,255,255,.12); }
    .header .nav li .second-nav li a { padding: 10px 28px; font-size: 14px; white-space: normal; }

    /* 轮播高度收缩 + 解除原站内联 523px 强制高度 */
    .fullSlide, .banner a { height: auto !important; }
    .fullSlide .bd li, .fullSlide .bd li a { height: 200px !important; }
    .fullSlide .bd li a { background-size: cover !important; background-position: center !important; }

    /* 标题字号收敛 */
    .pro-title h3 { font-size: 22px; }
    .nei-text span { min-width: 0; width: 100%; position: static; line-height: 50px; font-size: 18px; letter-spacing: 1px; }

    /* 效果分享卡片：2 列 */
    .kshi-jieh .father-slide .keshi-img { width: 46%; margin: 10px 2%; }

    /* 首页合作伙伴：marquee 卡片宽度适配 */
    .partner-card { width: 180px; padding: 20px 14px; }

    /* 图文列表：2 列 */
    .list-images ul.list-img-cn li { width: 46%; margin: 10px 2% 10px 0; }
    .list-images ul.list-img-cn li:nth-child(4n),
    .list-images ul.list-img-cn li:nth-child(3n) { margin-right: 2%; }
    .list-images ul.list-img-cn li:nth-child(2n) { margin-right: 0; }
    .list-images ul.list-img-cn li .imgdiv3 { height: 220px; }

    /* 图片列表卡片：2 列 */
    .image_articles ul li { width: 46%; margin: 10px 2% 10px 0; }
    .image_articles ul li:nth-child(4n) { margin-right: 2%; }
    .image_articles ul li:nth-child(2n) { margin-right: 0; }

    /* 关于我们：图片与正文纵向堆叠 */
    .about-text .about-right, .about-text .about-left { width: 100% !important; float: none !important; }
    .about-text .about-right img { max-width: 100% !important; float: none; }

    /* 新闻列表卡片纵向 */
    .news-left { width: 100%; float: none !important; }
    .xw-left { width: 70px; }
    .xw-right { width: calc(100% - 70px); }
    .xw-right h3 { font-size: 18px; line-height: 28px; }

    /* 页脚：全部纵向堆叠 */
    .di-bu .container { text-align: center; }
    .center-img, .cn-title, .foot-center { width: 100% !important; float: none !important; margin: 15px 0; }
    .foot-center .ipt { display: block; }
    .foot-center .ipt input { width: 100% !important; float: none; }
    .foot-center form button { width: 100% !important; max-width: 288px; }

    /* 图墙：单列 */
    .gallery-item { max-width: 100%; flex-basis: 100%; }

    /* 联系我们卡片：纵向堆叠 */
    .contact-grid { padding: 32px 24px; gap: 28px; }
    .contact-main-title { font-size: 26px; }
    .contact-subtitle { font-size: 13px; margin-bottom: 22px; }
    .contact-item { padding: 14px 16px; }
    .contact-item strong { font-size: 15px; }
    .contact-qr-panel { flex: 1 1 100%; }
    .qr-card img { width: 170px; height: 170px; }

    /* 留言表单：整宽（覆盖原站 700px 固定宽度） */
    .message, .message li, .message li input, .message li.contentb textarea,
    .message li p.message_content { width: 100% !important; max-width: 100%; }
    .message li p.message_title { text-align: left; width: 100%; }
    .side_about_jop .input, .side_about_jop .textarea { width: 100% !important; }

    /* 内页面包屑/标题区留白收敛 */
    .nei-text { padding: 10px 0; }
}

/* =====================================================================
   超小屏：≤480px
   ===================================================================== */
@media only screen and (max-width: 480px) {
    .pro-title h3 { font-size: 20px; }
    .nei-text span { font-size: 16px; line-height: 44px; }
    .kshi-jieh .father-slide .keshi-img { width: 100%; margin: 10px 0; }
    .list-images ul.list-img-cn li { width: 100%; margin: 10px 0; }
    .list-images ul.list-img-cn li .imgdiv3 { height: 200px; }
    .image_articles ul li { width: 100%; margin: 10px 0; }
    .home-intro { padding: 40px 0 36px; }
    .home-intro .intro-card { padding: 26px 22px 24px; }
    .home-intro .intro-text { font-size: 13px; }
    .home-intro .intro-more { margin-top: 18px; }
    .home-intro .more-link { padding: 8px 22px; font-size: 13px; }
    .hezuo-desc { font-size: 13px; margin: 0 0 16px; }
    .partner-card { width: 160px; padding: 18px 12px; font-size: 13px; }
    .partners-track { gap: 14px; }
    .xw-left { width: 56px; }
    .xw-right { width: calc(100% - 56px); }
    .xw-left h3 { font-size: 36px; line-height: 44px; }
    /* 数据指标带：超小屏单列，数字更醒目 */
    .v02-stats-grid { grid-template-columns: 1fr !important; }
    .v02-stat-num { font-size: 34px; }
    .contact-grid { padding: 24px 18px; }
    .contact-main-title { font-size: 22px; }
}
