/*
 * XG 官方网站 · 手机版科技感旗舰视觉 / 2026-10-10
 * 仅用于小屏幕：保持原电脑版 CSS、文案、功能、动效实现不变。
 * 不改 Canvas 繁星算法、视频懒加载、接口与表单提交机制。
 */
@media (max-width: 860px) {
  html { scroll-padding-top: 78px; }
  body { overflow-x: clip; }
  .container { width: calc(100% - 36px); }
  .site-header {
    background: rgba(3, 9, 23, .88);
    border-bottom: 1px solid rgba(112, 211, 255, .12);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
  }
  .site-header .nav { height: 68px; gap: 12px; }
  .site-header .header-brand {
    transform: none; margin-left: 2px; z-index: 2;
    align-items: center; gap: 11px;
  }
  .site-header .header-brand .brand-mark {
    font-size: 32px; letter-spacing: -2px; filter: drop-shadow(0 0 13px rgba(83, 214, 255, .20));
  }
  .site-header .header-brand::after {
    content: "智能证据系统";
    padding-left: 11px;
    border-left: 1px solid rgba(120, 210, 255, .22);
    color: rgba(205, 231, 247, .78);
    font-size: 11px; font-weight: 700; letter-spacing: .08em;
    white-space: nowrap;
  }
  .site-header .nav-actions { margin-left: auto; }
  .site-header .hamburger {
    display: grid; place-items: center;
    width: 42px; height: 42px;
    border-radius: 13px; border: 1px solid rgba(104, 201, 255, .26);
    background: linear-gradient(145deg, rgba(38, 88, 130, .38), rgba(10, 32, 64, .80));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
    font-size: 20px; line-height: 1; color: #e8faff;
    touch-action: manipulation;
  }
  /* 原网页后置内联样式强制 nav-links display:flex；此处显式修复 */
  .site-header .nav-links:not(.open) { display: none; }
  .site-header .nav-links.open {
    display: flex; position: absolute;
    left: 18px; right: 18px; top: 76px;
    width: auto; max-height: calc(100dvh - 92px);
    padding: 10px; gap: 3px;
    overflow-y: auto; overscroll-behavior: contain;
    flex-direction: column; align-items: stretch;
    border: 1px solid rgba(108, 215, 255, .27);
    border-radius: 18px;
    background: linear-gradient(155deg, rgba(12,32,62,.985), rgba(3,12,29,.985));
    box-shadow: 0 26px 75px rgba(0,0,0,.62), 0 0 38px rgba(53,160,225,.12);
    -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  }
  .site-header .nav-links.open a {
    display: flex; justify-content: flex-start; min-height: 45px;
    padding: 12px 15px; border-radius: 10px;
    font-size: 14px; line-height: 1.35;
    color: #c9dceb;
  }
  .site-header .nav-links.open a:active,
  .site-header .nav-links.open a.is-current { background: rgba(65, 159, 218, .15); color: #e8fbff; transform: none; }

  /* 首屏：手机专属编排，现有真实产品图和互动切换原样保留 */
  .hero { min-height: 0; padding: 113px 0 28px; overflow: hidden; }
  .hero::before { top: 65px; height: 720px; background: radial-gradient(ellipse at 40% 12%, rgba(53,157,241,.18), transparent 58%), radial-gradient(ellipse at 85% 75%, rgba(72,96,206,.16), transparent 50%); }
  .hero-layout { display: grid; grid-template-columns: minmax(0,1fr); gap: 18px; }
  .hero-copy { min-width: 0; }
  .hero-eyebrow { font-size: 10px; letter-spacing: .05em; padding: 9px 12px; max-width: 100%; }
  .hero-eyebrow i { width: 6px; height: 6px; flex: 0 0 auto; }
  .hero-brandline { margin: 20px 0 13px; font-size: 10px; letter-spacing: .16em; }
  .hero h1 { margin: 0; font-size: clamp(42px,11.7vw,65px); line-height: 1.05; letter-spacing: -.045em; }
  .hero h1 .white { display: block; white-space: nowrap; }
  .hero h1 .proof-title { margin-top: 7px; gap: .14em; font-size: .98em; line-height: 1.12; letter-spacing: .045em; white-space: nowrap; }
  .hero-slogan { margin-top: 17px; font-size: clamp(23px,6.8vw,32px); line-height: 1.3; letter-spacing: .035em; }
  .hero-pitch { margin-top: 23px; max-width: none; }
  .hero-pitch-title { font-size: 15px; line-height: 1.6; }
  .hero-pitch p { margin-top: 7px; font-size: 12.5px; line-height: 1.82; letter-spacing: 0; }
  .hero-actions {
    display: grid; grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 10px; margin-top: 24px;
  }
  .hero-actions .btn { width: auto; min-width: 0; min-height: 48px; padding: 0 8px; border-radius: 12px; font-size: 12.5px; white-space: nowrap; }
  .hero-actions .btn:first-child { grid-column: 1/-1; min-height: 53px; font-size: 15px; }
  .hero-note { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px 8px; margin-top: 17px; font-size: 10.5px; }
  .hero-note span { min-width: 0; white-space: nowrap; }
  .hero-visual { width: 100%; min-height: 340px; margin: 8px 0 0; isolation: isolate; }
  .hero-aura { width: 115%; height: 340px; top: 0; left: -7%; right: auto; opacity: .75; }
  .product-capability-layer {
    top: 0; left: 0; right: 0; width: 100%; max-width: 100%;
    justify-content: center; gap: 8px; padding: 0; z-index: 25;
  }
  .product-capability-item { gap: 4px; }
  .product-capability-item span { font-size: 9px; letter-spacing: 0; }
  .product-capability-separator { height: 11px; }
  .product-window { border-radius: 13px; }
  .window-bar { height: 25px; padding: 0 7px; font-size: 7px; }
  .window-dots { gap: 3px; }
  .window-dots i { width: 5px; height: 5px; }
  .product-window img { height: calc(100% - 25px); object-fit: cover; object-position: top; }
  .window-work {
    width: 89%; height: auto; aspect-ratio: 750/488;
    left: 0; top: 45px; bottom: auto;
    --front-transform: translate3d(3px,-4px,0) scale(1.012);
    --back-transform: translate3d(-2px,5px,0) scale(.98);
  }
  .window-cloud {
    width: 83%; height: auto; aspect-ratio: 657/402;
    left: auto; right: 0; top: 133px; bottom: auto;
    --front-transform: translate3d(-2px,-4px,0) scale(1.012);
    --back-transform: translate3d(2px,5px,0) scale(.98);
  }
  .product-window.is-front { box-shadow: 0 22px 60px rgba(0,0,0,.51), 0 0 40px rgba(47,193,255,.15); }
  .product-window.is-back { box-shadow: 0 18px 48px rgba(0,0,0,.39); }

  /* 能力概览：紧凑双列矩阵，保留原文案及先后次序 */
  .cap-bar { margin-top: -1px; }
  .capabilities { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0; padding: 5px 12px; border-radius: 19px; }
  .cap-item { min-height: 73px; padding: 11px 6px; border: 0; border-bottom: 1px solid rgba(115,191,234,.09); text-align: left; justify-content: flex-start; }
  .cap-item:nth-child(odd) { border-right: 1px solid rgba(115,191,234,.09); }
  .cap-item:nth-child(even) { padding-left: 14px; }
  .cap-item > div { align-items: flex-start; }
  .cap-item strong { font-size: 12px; line-height: 1.45; }
  .cap-item span { font-size: 10px; margin-top: 5px; line-height: 1.5; }
  .cap-item:last-child { grid-column: 1/-1; border-right: 0; border-bottom: 0; padding-left: 6px; }

  /* 通用栏目排版 */
  .section { padding: 73px 0; }
  .section-head { grid-template-columns: minmax(0,1fr); gap: 13px; margin-bottom: 26px; }
  .kicker { font-size: 10px; letter-spacing: .16em; margin-bottom: 12px; }
  .section h2 { font-size: clamp(26px,7.2vw,39px); line-height: 1.2; letter-spacing: -.035em; overflow-wrap: anywhere; }
  .section-intro { font-size: 12.5px; line-height: 1.85; max-width: none; }
  #features .features-title-v216,
  #chain .chain-title-v218,
  #showcase .showcase-title-v220 { gap: 8px; font-size: clamp(25px,6.7vw,37px); line-height: 1.21; letter-spacing: -.045em; }
  #features .features-title-v216 span,
  #chain .chain-title-v218 span,
  #showcase .showcase-title-v220 span { white-space: normal; }
  .glass { -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }

  /* 六张功能卡：两列时小屏拥挤，改一列精致叠放 */
  .feature-grid { grid-template-columns: minmax(0,1fr); gap: 13px; }
  .feature-card { min-height: 0; padding: 23px 21px 22px; border-radius: 19px; }
  .feature-icon { height: 36px; width: 40px; }
  .feature-icon svg { width: 30px; height: 30px; }
  .feature-card h3 { margin: 12px 0 9px; font-size: 19px; }
  .feature-benefit { font-size: 13px; line-height: 1.6; }
  .feature-card p { font-size: 12px; line-height: 1.75; padding-right: 4px; }
  .feature-index { right: 17px; bottom: 9px; font-size: 34px; }

  /* 证据链：以连续科技时间轴呈现，同一原始六步骤 */
  .chain-shell { padding: 23px 21px; border-radius: 20px; }
  .chain-line { display: none; }
  .chain { position: relative; display: grid; grid-template-columns: minmax(0,1fr); gap: 0; }
  .chain::before {
    content: ""; position: absolute; top: 19px; bottom: 40px; left: 18px; width: 1px;
    background: linear-gradient(180deg,rgba(87,231,255,.7),rgba(74,125,255,.38),rgba(77,215,255,.1));
  }
  .chain-step {
    position: relative; display: grid; grid-template-columns: 39px minmax(0,1fr);
    grid-template-rows: auto auto; column-gap: 17px;
    min-height: 79px; padding: 7px 0 13px; text-align: left;
  }
  .chain-step:last-child { min-height: 62px; padding-bottom: 0; }
  .chain-node {
    grid-column: 1; grid-row: 1/span 2; justify-self: start;
    display: grid; place-items: center; width: 37px; height: 37px; margin: 0;
    color: #90f2ff; font-size: 12px; font-weight: 850;
    border-radius: 12px; background: #102e4b;
    border: 1px solid rgba(101,222,255,.37);
    box-shadow: 0 0 20px rgba(65,192,255,.1);
  }
  .chain-node::after { display: none; }
  .chain-step strong { grid-column: 2; grid-row: 1; font-size: 15px; align-self: end; }
  .chain-step p { grid-column: 2; grid-row: 2; margin: 6px 0 0; max-width: none; font-size: 11.5px; line-height: 1.58; }

  /* 真实产品区域：图片区保持完整比例，不再放大裁切 */
  .showcase-stack { gap: 36px; }
  .showcase-row,.showcase-row.reverse { grid-template-columns: minmax(0,1fr); gap: 15px; }
  .showcase-row.reverse .showcase-shot { order: 0; }
  .showcase-shot { padding: 7px; border-radius: 19px; min-width: 0; }
  .shot-frame { border-radius: 13px; }
  .shot-frame img { width: 100%; height: auto; object-fit: contain; }
  .hotspot { width: 18px; height: 18px; box-shadow: 0 0 0 5px rgba(77,209,255,.05),0 0 14px rgba(69,209,255,.23); }
  .hotspot::after { font-size: 11px; }
  .showcase-copy { padding: 0 4px; }
  .showcase-number { font-size: 10px; }
  .showcase-copy h3 { margin: 9px 0 12px; font-size: 25px; }
  .showcase-copy p { font-size: 12.5px; line-height: 1.78; }
  .bullets { margin-top: 16px; gap: 10px; }
  .bullet { font-size: 12px; }

  /* 视频：主视频 16:9，副视频横向滑动，沿用原始卡片点击替换功能 */
  #videos .video-title-v222 { font-size: 31px; transform: none; letter-spacing: -.04em; }
  #videos .video-layout { grid-template-columns: minmax(0,1fr); gap: 14px; }
  .main-video { border-radius: 18px; }
  .fake-play { width: 54px; height: 54px; font-size: 18px; }
  #videos .main-video .video-main-copy { padding: 19px 16px 22px; min-height: 0; }
  #videos .main-video .video-main-copy h3 { font-size: 19px; }
  #videos .main-video .video-main-copy p { font-size: 11.5px; }
  #videos .video-side {
    display: flex; gap: 12px; min-width: 0;
    overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scrollbar-width: none;
    padding: 2px 1px 12px;
  }
  #videos .video-side::-webkit-scrollbar { display: none; }
  #videos .video-card {
    flex: 0 0 min(77vw, 286px); min-width: 0;
    display: grid; grid-template-columns: minmax(0,1fr);
    align-content: start; border-radius: 17px;
    scroll-snap-align: start;
  }
  #videos .video-card .thumb { width: 100%; height: auto; aspect-ratio: 16/9; }
  #videos .video-card .video-info { padding: 15px 15px 17px; }
  #videos .video-card .video-info h3 { font-size: 15px; line-height: 1.4; }
  #videos .video-card .video-info p { font-size: 11px; }

  /* 价格方案：纵向对比，保留所有卡片与原购买入口 */
  .pricing-grid { grid-template-columns: minmax(0,1fr); gap: 17px; }
  .pricing-grid .price-card:last-child { grid-column: auto; }
  .price-card,.price-card.featured { padding: 26px 23px; border-radius: 21px; transform: none; }
  .price-name { font-size: 21px; }
  .recommend { right: 16px; top: 16px; }

  /* 下载区：原动态版本/大小/日期字段依旧由服务器接口填充 */
  .download-panel { grid-template-columns: minmax(0,1fr); gap: 12px; padding: 29px 22px 13px; border-radius: 22px; overflow: hidden; }
  .download-panel h3 { font-size: 27px; line-height: 1.25; }
  .download-copy { font-size: 12.5px; line-height: 1.8; }
  .download-meta { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .download-meta-item { padding: 12px 6px 12px 0; }
  .download-meta-item:not(:first-child) { padding-left: 11px; }
  .download-meta-item strong { font-size: 11px; }
  .download-actions { flex-direction: column; gap: 7px; align-items: stretch; }
  .download-primary { min-width: 0; width: 100%; min-height: 55px; justify-content: center; }
  .download-support { align-self: center; }
  .download-visual { min-height: 192px; }
  .xg-cube { font-size: 90px; }
  .download-visual::before { width: 235px; height: 170px; }
  .download-ring { bottom: 39px; width: 174px; }

  /* 意见反馈：保留原表单字段、验证码行为与弹窗逻辑 */
  .feedback-grid { grid-template-columns: minmax(0,1fr); gap: 13px; }
  .feedback-copy,.feedback-form { padding: 23px 20px; border-radius: 20px; min-width: 0; }
  .feedback-copy-v232 h3 { font-size: 28px; line-height: 1.3; }
  .feedback-copy-v232 > p { font-size: 12px; }
  .contact-services-v232 { margin-top: 18px; }
  .contact-service-v232 { min-height: 63px; padding: 13px 0 13px 22px; gap: 13px; }
  .contact-service-v232 strong { font-size: 14px; }
  .contact-service-v232 small { font-size: 11px; }
  .feedback-form { gap: 12px; }
  .form-row { grid-template-columns: minmax(0,1fr); gap: 12px; }
  input,textarea,select { max-width: 100%; font-size: 16px; }

  /* 正式终章 CTA：只在手机端调整盒子尺寸 */
  .final-cta { padding: 18px 0 69px; }
  .final-box { padding: 38px 20px; border-radius: 21px; }
  .final-box h2 { font-size: clamp(25px,7.2vw,37px); line-height: 1.32; letter-spacing: .015em; }
  .final-box p { margin: 14px auto 21px; font-size: 12px; line-height: 1.78; }
  .final-box .hero-actions { display: flex; justify-content: center; }
  .final-box .hero-actions .btn { width: 100%; max-width: 270px; }

  /* 页脚品牌区、四备案/法律链接全部保留 */
  footer { padding: 42px 0 24px; }
  .footer-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 25px 18px; }
  .footer-brand { grid-column: 1/-1; }
  .footer-brand p { max-width: 340px; }
  .footer-grid > div:last-child { grid-column: 1/-1; }
  .copyright { margin-top: 29px; font-size: 10px; }

  /* 系列弹窗和验证码只调整可视区边距，原动画与交互保持不变 */
  body .xg-purchase-dialog,body .xg-download-dialog,body .xg-contact-dialog,
  body .xg-verify-dialog {
    max-width: calc(100vw - 28px);
    max-height: calc(100dvh - 36px);
    overflow-y: auto; overscroll-behavior: contain;
  }
  body .xg-verify-modal,body .xg-purchase-modal,body .xg-download-modal,body .xg-contact-modal { padding: 14px; }
}

@media (max-width: 380px) {
  .container { width: calc(100% - 30px); }
  .site-header .header-brand::after { font-size: 10px; }
  .hero { padding-top: 107px; }
  .hero h1 { font-size: clamp(40px,11.4vw,45px); }
  .hero-eyebrow { font-size: 9.4px; }
  .hero-visual { min-height: 308px; }
  .window-work { top: 42px; }
  .window-cloud { top: 117px; }
  .product-capability-item span { font-size: 8.4px; }
  .hero-actions .btn { font-size: 11.8px; }
  .cap-item strong { font-size: 11.2px; }
}

@media (min-width: 621px) and (max-width: 860px) {
  .container { width: calc(100% - 64px); }
  .hero { padding-top: 140px; }
  .hero-layout { gap: 22px; }
  .hero h1 { font-size: 64px; }
  .hero-actions { max-width: 510px; }
  .hero-visual { min-height: 480px; max-width: 610px; margin: 10px auto 0; }
  .window-work { top: 62px; }
  .window-cloud { top: 209px; }
  .product-capability-layer { top: 7px; }
  .cap-item strong { font-size: 14px; }
  .feature-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .feature-card { padding: 25px; }
  #videos .video-card { flex-basis: 270px; }
}
