/* 厚美生物整站移动端适配：仅在平板与手机宽度生效。 */
html {
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

body { overflow-x: clip; }

img { height: auto; }

a,
button,
input,
select,
textarea { -webkit-tap-highlight-color: rgba(201, 164, 92, .22); }

:focus-visible {
  outline: 2px solid #c9a45c;
  outline-offset: 3px;
}

@media (hover: none) {
  .card:hover,
  .prod-card:hover,
  .series-card:hover,
  .catalog-card:hover {
    transform: none;
  }
}

@media (max-width: 960px) {
  body { --mobile-nav-height: 64px; }

  header.nav { border-bottom: 0; }

  body:not(.home-page) {
    padding-top: var(--mobile-nav-height);
  }

  body:not(.home-page) header.nav {
    position: fixed;
    inset: 0 0 auto;
    z-index: 200;
    width: 100%;
  }

  section { padding: 64px 0; }

  .container { width: min(100% - 40px, 720px); }

  .nav-inner { height: var(--mobile-nav-height); }

  .menu-toggle {
    display: inline-flex;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 10px;
    font-size: 1.35rem;
    line-height: 1;
  }

  nav.menu {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    z-index: 120;
    max-height: calc(100vh - var(--mobile-nav-height));
    max-height: calc(100dvh - var(--mobile-nav-height));
    padding: 14px max(20px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
    overflow-y: auto;
    overscroll-behavior: contain;
    background: #15408b;
    border-top: 1px solid rgba(255, 255, 255, .12);
    box-shadow: 0 18px 30px rgba(21,64,139, .24);
  }

  nav.menu a {
    display: flex;
    min-height: 48px;
    align-items: center;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    border-radius: 0;
    font-size: .95rem;
  }

  nav.menu a:last-child { border-bottom: 0; }

  body.nav-open { overflow: hidden; }

  .page-hero {
    min-height: 280px;
    background-position: 66% center;
  }

  .page-hero::after {
    background: linear-gradient(90deg, rgba(21,64,139,.9) 0%, rgba(21,64,139,.72) 58%, rgba(21,64,139,.25) 100%);
  }

  .page-hero h1 { font-size: clamp(2rem, 6vw, 2.55rem); }

  .foot-grid { gap: 32px; }

  /* 关于厚美 */
  .about-page .brand-section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .about-page .brand-stories { grid-template-columns: 1fr; }

  .about-page .brand-story-copy { min-height: 0; }

  /* 苗族养道 */
  .remedies-intro-inner {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .remedies-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 28px;
    row-gap: 52px;
  }

  /* OEM */
  .oem-models .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
  .oem-models .model-card { min-height: 320px; }
  .oem-models .model-copy { padding: 20px; }
  .oem-models .model-copy h3 { font-size: 1.35rem; }

  /* 联系我们 */
  .contact-grid { gap: 36px; }
}

@media (max-width: 680px) {
  .oem-models .grid-3 { grid-template-columns: 1fr; }
  .oem-models .model-card { min-height: clamp(250px, 78vw, 340px); }
}

@media (max-width: 600px) {
  .container,
  .container.nav-inner { width: calc(100% - 36px); }

  section { padding: 54px 0; }

  .logo { gap: 9px; }
  .logo .seal { width: 38px; height: 38px; flex: 0 0 38px; }
  .logo .name { font-size: 1rem; letter-spacing: .1em; }
  .logo .name small { font-size: .68rem; letter-spacing: .12em; }
  .nav-cta { display: none; }

  .sec-head { margin-bottom: 36px; }
  .sec-head .kicker { gap: 8px; font-size: .72rem; letter-spacing: .24em; }
  .sec-head .kicker::before,
  .sec-head .kicker::after { width: 22px; }
  .sec-head h2 { font-size: clamp(1.65rem, 8vw, 2rem); line-height: 1.4; }
  .sec-head p.sub { font-size: .9rem; line-height: 1.8; }

  .page-hero {
    min-height: 238px;
    padding: 46px 0 40px;
  }
  .page-hero h1 { font-size: 2rem; line-height: 1.35; }
  .page-hero p { font-size: .83rem; line-height: 1.7; letter-spacing: .08em; }
  .crumb { margin-top: 12px; font-size: .76rem; }

  .btn {
    min-height: 46px;
    padding: 11px 24px;
    text-align: center;
  }

  .card { padding: 26px 22px; }
  .card .icon { margin-bottom: 16px; }
  .split { gap: 36px; }
  .split .img-wrap::after { inset: 10px -8px -10px 8px; }

  .foot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 18px;
    margin-bottom: 30px;
  }
  .foot-grid .foot-brand,
  .foot-grid > :last-child { grid-column: 1 / -1; }
  footer.site-foot { padding: 48px 0 max(24px, env(safe-area-inset-bottom)); }
  .foot-grid h4 { margin-bottom: 10px; }
  .foot-grid a { min-height: 44px; display: flex; align-items: center; }
  .copyright { padding-top: 20px; line-height: 1.8; }

  /* 首页 */
  .home-page .hero {
    min-height: calc(100svh - var(--mobile-nav-height));
    padding: 72px 0 44px !important;
  }
  .home-page .hero > .container { padding-top: 0; padding-bottom: 0; }
  .home-page .hero .tag { margin-bottom: 20px; padding: 6px 14px; font-size: .72rem; letter-spacing: .18em; }
  .home-page .hero h1 { font-size: clamp(2.15rem, 10vw, 2.8rem); line-height: 1.28; }
  .home-page .hero .slogan { margin-bottom: 30px; font-size: .95rem; line-height: 1.8; letter-spacing: .1em; }
  .home-page .hero .stats {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    margin-top: 38px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 12px;
    background: rgba(21,64,139, .46);
  }
  .home-page .hero .stats > div { padding: 15px 12px; }
  .home-page .hero .stats > div:nth-child(odd) { border-right: 1px solid rgba(255, 255, 255, .16); }
  .home-page .hero .stats > div:nth-child(-n+2) { border-bottom: 1px solid rgba(255, 255, 255, .16); }
  .home-page .hero .stats b { min-height: 34px; }
  .home-page .hero .stats .stat-unit { font-size: 1.5rem; }
  .home-page .hero .stats > div > span { margin-top: 4px; text-align: left; }
  .home-page .home-about { padding-top: 62px; }
  .home-page .home-core-business .business-card-image { height: 190px; max-height: 190px; }
  .home-page .home-butterfly-ornament { width: 150px; height: 150px; }
  .mp-info .kicker { overflow-wrap: anywhere; letter-spacing: .2em !important; }
  .qr-card { width: min(100%, 280px); }

  /* 关于厚美 */
  .about-page .about-company-profile .split { gap: 34px; }
  .about-page .profile-copy h2 { font-size: 1.85rem; }
  .about-page .profile-copy .lead { padding: 16px 0 16px 22px; font-size: .9rem; }
  .about-page .profile-copy .lead::before { top: 27px; }
  .about-page .about-brands { padding: 52px 0 60px; }
  .about-page .brand-section-head h2 { font-size: 2.15rem; }
  .about-page .brand-story { padding: 48px 22px 18px; }
  .about-page .brand-story::after { top: 24px; right: 0; bottom: 0; width: 100%; opacity: .56; }
  .about-page .brand-story h3 { font-size: 1.9rem; }
  .about-page .brand-story-index { font-size: 2rem; }
  .about-page .brand-values > div { grid-template-columns: 48px minmax(0, 1fr); gap: 12px; }
  .about-page .about-culture { padding: 62px 0 70px; }
  .about-page .culture-copy { min-height: 0; }

  /* 苗族养道 */
  .wisdom-showcase .container,
  .herbs-showcase .container { width: calc(100% - 36px); }
  .wisdom-showcase .card p { min-height: 0; }
  .remedies-intro { padding: 66px 0; }
  .folk-remedies .remedies-intro h2 { margin: 18px 0 20px; font-size: 2rem; }
  .remedies-intro-inner { gap: 32px; }
  .remedies-preview { gap: 7px; }
  .remedies-preview img { height: 96px; }
  .remedies-catalog { padding-top: 64px; padding-bottom: 74px; }
  .remedies-grid { grid-template-columns: 1fr; row-gap: 44px; }
  .remedy-photo { height: auto; max-height: none; aspect-ratio: 16 / 10; }
  .remedy-item h3 { font-size: 1.5rem; }
  .remedy-description { font-size: .9rem; line-height: 1.85; }

  /* OEM */
  .oem-why-media::after { right: -7px; bottom: -7px; }
  .oem-models .sec-head h2 { font-size: 2rem; }
  .oem-models .model-copy { padding: 22px; }
  .oem-models .model-copy h3 { font-size: 1.45rem; }
  .oem-models .model-copy p { font-size: .92rem; }
  .oem-process-section > .container { width: calc(100% - 36px); }
  .oem-process-timeline { gap: 42px 16px; }
  .oem-process-section .process-scene figure { width: min(100% - 12px, 144px); }
  .oem-process-section .process-scene h4 { font-size: 1.08rem; }

  /* 产品 */
  .series-directory { padding: 10px 0; }
  .series-tab { min-height: 44px; }
  .product-collection { gap: 18px; }
  .catalog-card .body { padding: 20px; }
  .product-detail-grid { gap: 30px; }
  .product-specifications { padding-inline: 16px; }
  .product-specifications > div { grid-template-columns: 4.5rem minmax(0, 1fr); gap: 12px; }
  .product-detail-copy h2 { font-size: 2rem; }
  .detail-fact { padding: 16px; }

  /* 资讯 */
  .news-page .news-journal-inner { width: calc(100% - 36px); }

  /* 联系 */
  form input,
  form textarea,
  form select { min-height: 48px; font-size: 1rem; }
  form textarea { min-height: 140px; }
  form .btn { width: 100%; }
  .info-block { padding: 28px 22px; }
  .info-block dl div {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 10px;
  }
  .info-block dt { min-width: 0; }
  .info-block dd { min-width: 0; overflow-wrap: anywhere; }
}

@media (max-width: 360px) {
  .container,
  .container.nav-inner { width: calc(100% - 28px); }
  .logo .name { font-size: .92rem; }
  .logo .name small { font-size: .65rem; }
  .home-page .hero .stats > div { padding-inline: 9px; }
  .home-page .hero .stats > div > span { font-size: .7rem; }
  .info-block dl div { grid-template-columns: 1fr; gap: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
