/* ========================================
   Sunway Bio - Mobile (max-width: 768px)
   PC 不受影响；仅补强手机端
   ======================================== */

@media screen and (max-width: 768px) {
  :root {
    --header-h: 64px;
    --page-pad: 20px;
    --fs-base: 16px;
    --fs-sm: 15px;
  }

  html,
  body {
    overflow-x: hidden;
    max-width: 100%;
  }

  /* ---- Header: logo + hamburger 同行、固定 ---- */
  .header-inner {
    height: var(--header-h);
    gap: 12px;
    padding: 0 4%;
  }

  .logo img {
    height: 40px;
    width: auto;
  }

  .logo-url {
    margin-left: 6px;
    font-size: 11px;
    max-width: 108px;
    white-space: normal;
  }

  .menu-toggle {
    display: flex;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    flex-shrink: 0;
  }

  .header-icon-btn {
    min-width: 44px;
    min-height: 44px;
  }

  /* 二级展开箭头（PC 为 display:none，手机需可见） */
  .nav-dropdown-toggle::after {
    display: inline-block;
    border-top-color: var(--text-muted);
  }

  .nav.open {
    z-index: 1000;
  }

  /* ---- 手机下拉：取消 PC 的 translateX(-50%)，避免二级菜单跑偏 ---- */
  .nav-dropdown {
    width: 100%;
    position: relative;
  }

  .nav-dropdown-menu,
  .nav-dropdown.open .nav-dropdown-menu,
  .nav-dropdown:hover .nav-dropdown-menu {
    position: static !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    transform: none !important;
    min-width: 0 !important;
    width: 100% !important;
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
    background: var(--bg-light);
  }

  .nav-dropdown-menu {
    max-height: 0;
    overflow: hidden;
    padding: 0 !important;
  }

  .nav-dropdown.open .nav-dropdown-menu {
    max-height: 280px;
    margin-bottom: 4px;
  }

  .nav-dropdown-menu::before {
    display: none !important;
  }

  .nav-dropdown-menu li a {
    white-space: normal !important;
    padding: 12px 16px 12px 20px;
  }

  .nav {
    padding-left: 20px;
    padding-right: 20px;
  }

  /* ---- 首页 Banner 满屏 + 背景可见 ---- */
  .page-home .banner {
    height: 100vh;
    min-height: 100vh;
    max-height: none;
  }

  .page-home .banner-bg {
    background-size: cover;
    background-position: center;
  }

  .banner-layout {
    padding-top: calc(var(--header-h) + 24px);
    padding-bottom: 72px;
    gap: 24px;
  }

  .banner-btns {
    flex-wrap: wrap;
    gap: 12px;
  }

  .banner-arrow {
    min-width: 44px;
    min-height: 44px;
  }

  .banner-dot {
    min-width: 12px;
    min-height: 12px;
  }

  /* ---- 内页 banner：纵向排布，菜单在下方（勿左右错位） ---- */
  .inner-banner {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    min-height: 0 !important;
    padding-bottom: 0 !important;
    overflow: hidden;
  }

  .inner-banner-content {
    order: 1;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    padding: calc(var(--header-h) + 28px) var(--page-pad) 24px !important;
    text-align: center;
  }

  .inner-banner-content h1,
  .inner-banner-content h2 {
    font-size: clamp(28px, 7vw, 36px);
  }

  .inner-subnav {
    order: 2;
    position: static !important;
    transform: none !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    width: 100% !important;
    z-index: 2;
  }

  .inner-subnav-list {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    width: 100% !important;
    overflow: hidden;
  }

  .inner-subnav-list li {
    flex: none !important;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }

  .inner-subnav-list li:nth-child(2n) {
    border-right: none;
  }

  .inner-subnav-list a {
    min-height: 44px !important;
    padding: 10px 8px !important;
    font-size: 13px !important;
    letter-spacing: 0.02em;
  }

  .about-main {
    padding-top: 20px !important;
  }

  body.header-keep-solid .about-main--plain {
    padding-top: calc(var(--header-h) + 16px);
  }

  /* About CTA 按钮：调小、一行两个 */
  .about-cta {
    padding: 48px 0 !important;
  }

  .about-cta-btns {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
    justify-content: stretch;
  }

  .about-cta-btns .btn,
  .about-cta-btns .btn-lg {
    width: 100%;
    min-width: 0 !important;
    padding: 10px 12px !important;
    font-size: 12px !important;
    letter-spacing: 0.5px;
    min-height: 40px;
  }

  /* ---- 产品表 / 详情触控 ---- */
  .prod-table-wrap {
    -webkit-overflow-scrolling: touch;
  }

  .pd-gallery-arrow {
    min-width: 44px;
    min-height: 44px;
  }

  .pd-info-grid {
    grid-template-columns: 1fr;
  }

  /* ---- 底栏联系方式不溢出 ---- */
  .footer {
    padding: 56px 0 0;
  }

  .footer-contact-item {
    word-break: break-word;
    overflow-wrap: anywhere;
    line-height: 1.6;
  }

  .footer-contact-item strong {
    flex: 0 0 auto;
    white-space: nowrap;
    word-break: keep-all;
    overflow-wrap: normal;
  }

  .footer-bottom {
    padding: 20px 0;
  }

  .footer-bottom p {
    font-size: 12px;
    line-height: 1.7;
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  .footer-brand p {
    font-size: var(--fs-sm);
  }

  /* ---- Trust：压缩块高，一行两个 ---- */
  .trust-list {
    grid-template-columns: 1fr 1fr !important;
  }

  .trust-list li {
    padding: 14px 12px !important;
    gap: 10px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    align-items: flex-start;
  }

  .trust-list li:nth-child(2n) {
    border-right: none;
  }

  .trust-list li:nth-last-child(-n + 2) {
    border-bottom: none;
  }

  .trust-list svg {
    width: 24px;
    height: 24px;
  }

  .trust-list strong {
    font-size: 14px;
    margin-bottom: 2px;
  }

  .trust-list span {
    font-size: 12px;
    line-height: 1.35;
  }

  /* ---- 产品分类：一行两个，卡片加高，减底部留白 ---- */
  .product-categories-section {
    padding: 48px 0 40px !important;
  }

  .cat-louver {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    height: auto !important;
    flex-direction: unset !important;
  }

  .cat-panel {
    height: 150px !important;
    min-height: 150px !important;
    border-radius: var(--radius-lg);
    flex: none !important;
  }

  .cat-panel-link,
  .cat-panel-vertical {
    min-height: 150px !important;
  }

  .cat-panel-vertical {
    padding: 0 14px !important;
  }

  .cat-panel-vertical h3 {
    font-size: 16px !important;
    -webkit-line-clamp: 2;
  }

  .cat-panel-vertical .cat-panel-tag {
    font-size: 18px !important;
  }

  .cat-panel.is-active,
  .cat-panel:hover {
    grid-column: 1 / -1;
    height: auto !important;
    min-height: 280px !important;
  }

  .cat-panel.is-active .cat-panel-link,
  .cat-panel:hover .cat-panel-link {
    min-height: 280px !important;
  }

  /* ---- About：强制上下排 + 左右留白 ---- */
  .about-hero {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    min-height: 0 !important;
    padding-bottom: 0 !important;
  }

  .about-hero-inner {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 56px var(--page-pad) 20px !important;
    text-align: left;
  }

  .about-hero-overlay {
    background:
      linear-gradient(180deg, rgba(0, 28, 56, 0.55) 0%, rgba(0, 51, 102, 0.62) 50%, rgba(0, 34, 68, 0.72) 100%);
  }

  .about-hero-text {
    text-align: left;
    max-width: 100%;
  }

  .about-hero-text p {
    font-size: var(--fs-sm);
    line-height: 1.65;
    color: #FFFFFF;
    font-weight: 400;
    opacity: 1;
  }

  .about-stats-bar {
    position: static !important;
    transform: none !important;
    width: 100%;
  }

  .stats-bar-grid {
    grid-template-columns: 1fr 1fr !important;
  }

  .stats-bar-grid li {
    padding: 16px 10px !important;
    border-right: 1px solid rgba(255, 255, 255, 0.22);
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  }

  .stats-bar-grid li:nth-child(2n) {
    border-right: none;
  }

  .stats-bar-grid li:nth-last-child(-n + 2) {
    border-bottom: none;
  }

  .stats-bar-grid .stat-num {
    font-size: 32px;
  }

  .stats-bar-grid .stat-label {
    font-size: 11px;
  }

  /* ---- Why Us：深底保可读 + 卡片一行两个 ---- */
  .why-us {
    padding: 48px 0 !important;
    background: #041220;
  }

  .why-us-bg {
    background-color: #041220 !important;
    background-size: cover !important;
    background-position: center !important;
  }

  .why-us-head {
    margin-bottom: 28px !important;
  }

  .why-us-title {
    font-size: 36px;
  }

  .advantages-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
    margin-bottom: 28px !important;
  }

  .advantage-card {
    padding: 20px 14px 18px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    backdrop-filter: none;
  }

  .advantage-num {
    font-size: 28px !important;
    top: 8px !important;
    right: 10px !important;
    opacity: 0.35;
  }

  .advantage-icon {
    margin-bottom: 10px;
  }

  .advantage-icon svg {
    width: 22px;
    height: 22px;
    stroke: var(--orange-light);
  }

  .advantage-card h4 {
    font-size: 17px !important;
    color: #fff !important;
    margin-bottom: 8px !important;
  }

  .advantage-card p {
    font-size: 12px !important;
    line-height: 1.5 !important;
    color: rgba(255, 255, 255, 0.78) !important;
  }

  /* ---- 页脚：压缩；底部菜单（Quick Links / About Us）去掉 ---- */
  .footer {
    padding: 40px 0 0;
  }

  .footer-top {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
    padding-bottom: 24px !important;
  }

  .footer-col:has(ul) {
    display: none !important;
  }

  .footer-col h4 {
    margin-bottom: 12px;
  }

  .footer-col li {
    margin-bottom: 6px;
  }

  .footer-col a {
    line-height: 1.5;
  }

  /* ---- 应用卡片：一行两个，高度压缩 ---- */
  .app-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
  }

  .app-card {
    min-height: 170px !important;
    padding: 16px 12px !important;
    border-radius: 8px;
  }

  .app-card-tag {
    font-size: 9px;
    margin-bottom: 6px;
  }

  .app-card h3 {
    font-size: 15px !important;
    line-height: 1.25;
    margin-bottom: 0 !important;
  }

  .app-card-desc,
  .app-card .btn-link {
    display: none !important;
  }

  /* ---- 询盘：上下堆叠 + 表单一行两个 + 输入框压高 ---- */
  .inquiry-box,
  .why-us .inquiry-box {
    grid-template-columns: 1fr !important;
  }

  .inquiry-info,
  .inquiry-form {
    padding: 20px 14px;
  }

  .inquiry-info h3 {
    font-size: 26px;
    margin-bottom: 10px;
  }

  .inquiry-form h4 {
    font-size: 20px;
    margin-bottom: 16px;
  }

  .form-row {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px;
  }

  .form-group {
    margin-bottom: 10px;
  }

  .form-group label {
    margin-bottom: 4px;
    font-size: 11px;
  }

  .form-group input,
  .form-group select,
  .inquiry-form input,
  .inquiry-form select,
  .contact-inquiry input,
  .contact-inquiry select {
    padding: 8px 10px !important;
    font-size: 14px !important;
    min-height: 36px;
    height: 36px;
    line-height: 1.2;
  }

  .form-group textarea,
  .inquiry-form textarea,
  .contact-inquiry textarea {
    padding: 8px 10px !important;
    font-size: 14px !important;
    height: 72px !important;
    min-height: 72px;
  }

  .inquiry-form .btn-accent {
    padding: 10px 16px;
  }

  .news-section {
    padding: 48px 0 !important;
  }

  .news-downloads {
    grid-template-columns: 1fr;
  }

  /* ---- 通用排版收紧 ---- */
  .section-title {
    font-size: clamp(28px, 7vw, 36px);
  }

  .section,
  .application {
    padding-top: 48px !important;
    padding-bottom: 48px !important;
  }

  .btn.btn-lg {
    min-height: 44px;
  }

  /* ---- 联系我们：地址独占一行；卡片完整显示 ---- */
  .contact-info-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
  }

  .contact-info-grid > .contact-info-card:first-child {
    grid-column: 1 / -1;
  }

  .contact-info-card {
    min-width: 0;
    overflow: visible;
    height: auto;
    padding: 18px 16px !important;
  }

  .contact-info-card p {
    word-break: break-word;
    overflow-wrap: anywhere;
    white-space: normal;
    line-height: 1.55;
  }

  .contact-help-grid,
  .about-adv-grid.contact-help-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .contact-help-grid .about-adv-card {
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
    overflow: visible;
  }

  .contact-process-steps,
  .contact-include-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .contact-process-steps li,
  .contact-include-card {
    min-width: 0;
    overflow: visible;
  }

  .contact-trust-badges {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
  }
}
