/* ============================================================
   新芸科技官网 —— 移动端适配与布局修正补丁 (mobile.css)
   必须在所有其它样式表之后加载
   ============================================================ */

/* ---------- 1. 解除整站 PC 固定最小宽度（根源：body{min-width:1200px}） ---------- */
@media (max-width: 1199px) {
  html, body { min-width: 0 !important; width: 100% !important; overflow-x: hidden !important; }
  .layout-wrapper, #__nuxt, #__nuxt > div { min-width: 0 !important; width: 100% !important; max-width: 100% !important; }
  .container, .pc-header .container, [class*="container"] { max-width: 100% !important; width: 100% !important; }
  main, section, article, div, ul, ol, li, table, form { max-width: 100% !important; }
  img, video, iframe, canvas, svg { max-width: 100% !important; height: auto; }
  * { box-sizing: border-box; }
}

/* ---------- 2. 移动端顶部导航折叠为汉堡菜单 ---------- */
.pp-mobile-bar { display: none; }

@media (max-width: 1199px) {
  .pc-header { position: sticky !important; top: 0; background: #fff !important; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
  .pc-header .header-content { height: 56px !important; justify-content: space-between; }
  .pc-header .nav-menu-wrapper { display: none !important; }
  .pc-header .header-actions, .pc-header .search-box { display: none !important; }
  .pc-header .logo img { height: 28px !important; }

  .pp-mobile-bar {
    display: flex !important; align-items: center; gap: 10px;
  }
  .pp-burger {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 40px; height: 40px; padding: 9px; border: 1px solid #e5e5e5; border-radius: 8px;
    background: #fff; cursor: pointer;
  }
  .pp-burger span { display: block; height: 2px; width: 100%; background: #333; border-radius: 2px; }
  .pp-mobile-cart {
    font-size: 13px; color: #333; padding: 8px 12px; border: 1px solid #e5e5e5;
    border-radius: 8px; white-space: nowrap;
  }
  .pp-drawer {
    position: fixed; inset: 0; z-index: 10000; display: none;
  }
  .pp-drawer.pp-open { display: block; }
  .pp-drawer-mask { position: absolute; inset: 0; background: rgba(0,0,0,.45); }
  .pp-drawer-panel {
    position: absolute; top: 0; right: 0; bottom: 0; width: 76%; max-width: 320px;
    background: #fff; overflow-y: auto; padding: 18px 0 40px;
  }
  .pp-drawer-close {
    position: absolute; top: 12px; right: 14px; width: 34px; height: 34px;
    border: 0; background: #f4f4f4; border-radius: 50%; font-size: 18px; line-height: 1; color: #666;
  }
  .pp-drawer-title { font-size: 15px; font-weight: 600; padding: 14px 20px 10px; color: #111; }
  .pp-drawer-nav a, .pp-drawer-nav button {
    display: block; width: 100%; text-align: left; padding: 13px 20px; font-size: 15px;
    color: #222; border: 0; background: none; border-bottom: 1px solid #f2f2f2;
  }
  .pp-drawer-nav a:active { background: #f7f7f7; }
}

/* ---------- 3. 首页 / 商品页 / 品牌页横向溢出修正 ---------- */
@media (max-width: 1199px) {
  .hero-banner-section, .video-carousel-section, .product-grid-section,
  .other-series-section, .second-footer-section,
  .series-products-template1, .series-products-template2,
  .page-content { width: 100% !important; min-width: 0 !important; overflow-x: hidden !important; }

  .video-carousel-section { padding-top: 80px !important; }
  .video-carousel-container, .videos-wrapper { width: 100% !important; overflow: hidden !important; }
  .video-carousel-section .video-item.far-left,
  .video-carousel-section .video-item.far-right { display: none !important; }
  .video-carousel-section .video-item { width: 100% !important; flex: 0 0 100% !important; }
  .video-carousel-section .video-item.left,
  .video-carousel-section .video-item.right { display: none !important; }
  .video-wrapper video { width: 100% !important; height: auto !important; object-fit: cover; }

  .banner-image { width: 100% !important; height: auto !important; object-fit: cover; }
  .banner-buttons { position: static !important; transform: none !important; left: auto !important;
    top: auto !important; display: flex; justify-content: center; gap: 12px; padding: 12px 0 20px; }
  .banner-button { min-width: 104px; }

  .products-wrapper, .series-wrapper, .product-grid-container, .series-container {
    display: block !important; width: 100% !important; padding: 0 14px !important;
  }
  .product-card, .series-card {
    width: 100% !important; margin: 0 0 14px !important; min-height: 200px;
    background-size: cover !important; background-position: center !important;
  }
  .product-card .product-image-wrapper { max-width: 100%; }
  .product-card .product-image { width: 100% !important; height: auto !important; object-fit: cover; }

  .second-footer-content { display: block !important; padding: 0 14px !important; }
  .second-footer-item { width: 100% !important; margin-bottom: 18px; }

  /* 详情页长图区 */
  .custom-detail-wrapper, .product-detail, .page-content,
  [class*="detail-wrapper"], [class*="product-detail"] { width: 100% !important; min-width: 0 !important; }
  .custom-detail-wrapper img, .product-detail img { width: 100% !important; height: auto !important; }

  /* 品牌故事页 */
  [class*="story"], [class*="Story"], [class*="brand"] { width: 100% !important; min-width: 0 !important; }
}

/* ---------- 4. 通用表格滚动容器 ---------- */
@media (max-width: 1199px) {
  table { display: block; width: 100% !important; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/* ---------- 5. 页脚（新增主体信息块） ---------- */
.footer-company {
  text-align: center;
  padding: 0 16px 14px;
  line-height: 1.9;
  color: #c9c9c9;
  font-size: 13px;
}
.footer-company .fc-name { font-size: 15px; font-weight: 600; color: #fff; margin-bottom: 4px; }
.footer-company .fc-line { margin: 0; }
.pp-footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 0; }
.pp-footer-nav a { padding: 0 6px; }

@media (max-width: 1199px) {
  .footer-content { display: block !important; padding: 0 16px !important; }
  .footer-section { width: 50% !important; float: left; padding: 10px 0 !important; }
  .footer-logo-container { text-align: center; padding: 18px 0 !important; }
  .social-media-container { justify-content: center !important; flex-wrap: wrap; }
  .footer-bottom { display: block !important; text-align: center; padding: 16px 12px 30px !important; }
  .footer-links { display: flex !important; flex-wrap: wrap; justify-content: center; gap: 4px 0; }
  .footer-company { font-size: 12px; }
}

/* ---------- 6. 交易页 (购物车/结算) 移动端 ---------- */
@media (max-width: 1199px) {
  .cart-page, .pay-page, .cart-container, .pay-container,
  .cart-list, .pay-content, .pay-body { display: block !important; width: 100% !important; padding: 0 14px !important; }
  .cart-item, .pay-item, .pay-summary, .cart-footer, .pay-submit { width: 100% !important; }
  .cart-item { display: block !important; }
  .cart-item .thumb, .cart-item .item-thumb, .cart-item img { width: 84px !important; height: 84px !important; object-fit: cover !important; border-radius: 8px; }
  .cart-footer { display: flex !important; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
  .pay-submit { width: 100% !important; margin-top: 14px; }
  .pay-side { width: 100% !important; margin-top: 16px; }
}

/* ---------- 7. 图片统一裁切，消除缩略图文字碎片 ---------- */
.cart-item img, .pay-item img, .order-item img, .product-thumb img,
[class*="thumb"] img, [class*="goods"] img[class*="img"] {
  object-fit: cover !important;
  object-position: center !important;
}
.cart-item img, .pay-item img { aspect-ratio: 1 / 1; }

/* ---------- 8. 门店查询表单（/outlets/ 裸表单修复） ---------- */
.pp-form-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 12px; }
.pp-form-row label { min-width: 76px; font-size: 14px; color: #333; }
.pp-form-row select, .pp-form-row input[type="text"] {
  flex: 1; min-width: 180px; height: 38px; padding: 0 10px; font-size: 14px;
  border: 1px solid #d9d9d9; border-radius: 6px; background: #fff; color: #333;
}
.pp-form-row button {
  height: 38px; padding: 0 22px; font-size: 14px; border-radius: 6px; border: 1px solid #d9d9d9;
  background: #fff; color: #333;
}
.pp-form-row button.pp-primary { background: #5e5ae4; border-color: #5e5ae4; color: #fff; }
@media (max-width: 640px) {
  .pp-form-row { display: block; }
  .pp-form-row label { display: block; margin-bottom: 5px; }
  .pp-form-row select, .pp-form-row input[type="text"], .pp-form-row button { width: 100% !important; margin-bottom: 9px; }
}

/* ---------- 9. 内容型页面（关于我们/协议页/支付结果页） ---------- */
.pp-doc { max-width: 1080px; margin: 0 auto; padding: 120px 24px 60px; }
.pp-doc h1 { font-size: 28px; font-weight: 700; margin-bottom: 8px; color: #111; }
.pp-doc .pp-sub { color: #888; font-size: 13px; margin-bottom: 28px; }
.pp-doc h2 { font-size: 18px; font-weight: 600; margin: 30px 0 10px; color: #111; }
.pp-doc h3 { font-size: 15px; font-weight: 600; margin: 20px 0 8px; color: #222; }
.pp-doc p, .pp-doc li { font-size: 14px; line-height: 2; color: #444; }
.pp-doc ul, .pp-doc ol { padding-left: 22px; list-style: disc; margin: 8px 0; }
.pp-doc ol { list-style: decimal; }
.pp-doc table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 14px; }
.pp-doc th, .pp-doc td { border: 1px solid #e6e6e6; padding: 10px 12px; text-align: left; color: #444; }
.pp-doc th { background: #fafafa; font-weight: 600; color: #222; }
.pp-note { background: #f7f7ff; border-left: 3px solid #5e5ae4; padding: 12px 16px; margin: 16px 0; border-radius: 0 6px 6px 0; }
.pp-note p { margin: 0; color: #444; }
.pp-pay-result { max-width: 720px; margin: 0 auto; padding: 140px 24px 80px; text-align: center; }
.pp-ok-icon { width: 76px; height: 76px; border-radius: 50%; background: #1aa06d; color: #fff; font-size: 42px; line-height: 76px; margin: 0 auto 20px; }
.pp-pay-result h1 { font-size: 26px; margin-bottom: 10px; }
.pp-pay-result .pp-amount { font-size: 32px; font-weight: 700; color: #d93025; margin: 16px 0 4px; }
.pp-pay-result .pp-order { font-size: 14px; color: #666; line-height: 2.1; margin-bottom: 24px; }
.pp-pay-result .pp-order b { color: #222; font-weight: 600; }
.pp-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 10px; }
.pp-btn { display: inline-block; min-width: 140px; padding: 12px 26px; border-radius: 8px; font-size: 15px; text-align: center; }
.pp-btn-primary { background: #5e5ae4; color: #fff; }
.pp-btn-ghost { background: #fff; color: #333; border: 1px solid #d9d9d9; }

@media (max-width: 1199px) {
  .pp-doc, .pp-pay-result { padding: 84px 16px 46px; }
  .pp-doc h1 { font-size: 22px; }
  .pp-doc h2 { font-size: 16px; }
  .pp-doc p, .pp-doc li { font-size: 13px; line-height: 1.95; }
  .pp-doc table { font-size: 12.5px; }
  .pp-doc th, .pp-doc td { padding: 7px 8px; word-break: break-all; }
  .pp-pay-result .pp-amount { font-size: 26px; }
  .pp-btn { width: 100%; }
}

/* ---------- 10. 首页经营正文区块 ---------- */
.pp-home-info { max-width: 1160px; margin: 0 auto; padding: 56px 24px 40px; }
.pp-home-info .pp-block { margin-bottom: 34px; }
.pp-home-info h2 {
  font-size: 20px; font-weight: 700; color: #111; margin: 0 0 14px;
  padding-left: 12px; border-left: 4px solid #5e5ae4; line-height: 1.2;
}
.pp-home-info p, .pp-home-info li { font-size: 14px; line-height: 2.05; color: #4a4a4a; }
.pp-home-info ul { padding-left: 20px; list-style: disc; }
.pp-home-info .pp-price-list { list-style: none; padding-left: 0; }
.pp-home-info .pp-price-list li {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px;
  padding: 11px 14px; border: 1px solid #eee; border-radius: 8px; margin-bottom: 9px; background: #fff;
}
.pp-home-info .pp-price-list .pp-pname { font-weight: 600; color: #222; min-width: 128px; }
.pp-home-info .pp-price-list .pp-pspec { color: #777; font-size: 13px; flex: 1; min-width: 190px; }
.pp-home-info .pp-price-list .pp-price { color: #d93025; font-weight: 700; white-space: nowrap; }
.pp-home-info .pp-faq dt { font-weight: 600; color: #222; margin-top: 13px; font-size: 14px; }
.pp-home-info .pp-faq dd { margin: 4px 0 0; color: #555; font-size: 14px; line-height: 1.95; }
.pp-home-info .pp-contact-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.pp-home-info .pp-contact-table th, .pp-home-info .pp-contact-table td {
  border: 1px solid #e9e9e9; padding: 11px 14px; text-align: left;
}
.pp-home-info .pp-contact-table th { background: #fafafa; width: 168px; color: #222; font-weight: 600; }

/* ---------- 10a. 归位到对应页的经营正文分节（非首页） ---------- */
.pp-page-addon { padding-top: 46px !important; padding-bottom: 56px !important; border-top: 1px solid #ededed; clear: both; }
.pp-doc .pp-faq dt { font-weight: 600; color: #222; margin-top: 14px; font-size: 14px; }
.pp-doc .pp-faq dd { margin: 4px 0 0; color: #555; font-size: 14px; line-height: 1.95; }
.pp-doc a { color: #5e5ae4; }

@media (max-width: 1199px) {
  .pp-page-addon { padding: 36px 16px 46px !important; }
  .pp-home-info { padding: 34px 16px 26px; }
  .pp-home-info h2 { font-size: 17px; }
  .pp-home-info p, .pp-home-info li { font-size: 13px; line-height: 1.95; }
  .pp-home-info .pp-price-list li { display: block; }
  .pp-home-info .pp-price-list .pp-pspec { display: block; margin: 4px 0; }
  .pp-home-info .pp-contact-table th, .pp-home-info .pp-contact-table td { padding: 8px 9px; font-size: 12.5px; }
}
