/* ============================================
   苏然怡家 SODA ENJOY - 响应式样式（平板 + 手机）
   ============================================ */

/* ============================================
   Responsive - Tablet (1024px)
   ============================================ */
@media (max-width: 1024px) {
  .hero-content h1 {
    font-size: 38px;
  }

  .quote-section {
    height: 680px;
  }

  .quote-text h2 {
    font-size: 28px;
  }

  .quote-left {
    padding-left: 3%;
  }

  .sustain-text h2 {
    font-size: 30px;
  }

  .about-grid {
    grid-template-columns: 280px 1fr;
    gap: 40px;
  }
}

/* ============================================
   Responsive - Mobile (768px)
   ============================================ */
@media (max-width: 768px) {
  :root {
    --header-height: 56px;
  }

  .container {
    padding: 0 16px;
  }

  /* ── Mobile Header ── */
  .header .container {
    padding: 0 12px;
  }

  .logo-brand {
    font-size: 18px;
    letter-spacing: 1px;
  }

  .logo-slogan {
    font-size: 9px;
  }

  .logo-right-slogan {
    font-size: 10px;
    margin-left: 10px;
    opacity: 0.85;
    letter-spacing: 1px;
    white-space: nowrap;
  }

  .nav {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background: var(--primary-dark);
    flex-direction: column;
    padding: 15px 20px;
    gap: 2px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    z-index: 999;
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    width: 100%;
    text-align: center;
    padding: 14px 20px;
    font-size: 15px;
    border-radius: 8px;
  }

  .nav a.active::after {
    display: none;
  }

  .lang-switch {
    margin-top: 8px;
  }

  .header-slogan {
    display: block;
    flex: 1;
    text-align: right;
    margin-right: 12px;
    font-size: 10px;
  }

  .mobile-menu-btn {
    display: flex;
    flex-shrink: 0;
  }

  .hero-video-desktop {
    display: none !important;
  }

  .hero-video-desktop.active {
    display: none !important;
  }

  .hero-video-mobile {
    display: none !important;
  }

  .hero-video-mobile.active {
    display: block !important;
  }

  /* ── Mobile Hero ── */
  .hero {
    min-height: 350px;
    max-height: 550px;
    height: 60vh;
  }

  .hero-content {
    padding: 0 20px;
    max-width: 100%;
    text-align: center;
  }

  .hero-content h1 {
    font-size: 24px;
    line-height: 1.4;
    margin-bottom: 16px;
  }

  .hero-content p {
    font-size: 13px;
    margin-bottom: 20px;
    line-height: 1.7;
  }

  .btn-video {
    padding: 10px 22px;
    font-size: 13px;
  }

  /* ── Mobile Sections ── */
  .section {
    padding: 50px 0;
  }

  .section-title {
    margin-bottom: 30px;
  }

  .section-title h2 {
    font-size: 22px;
  }

  .section-title h2::after {
    bottom: -8px;
    width: 40px;
    height: 2px;
  }

  .section-title-left {
    margin-bottom: 24px;
    justify-content: center;
  }

  .section-title-left .bar {
    display: none;
  }

  .section-title-left h2 {
    font-size: 22px;
    text-align: center;
  }

  /* ── Mobile About Section (Homepage) ── */
  .about-section {
    padding: 50px 0;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .about-image-box {
    padding-left: 18px;
    padding-bottom: 18px;
    max-width: 100%;
    margin: 0 auto;
  }

  .about-image-box::before {
    width: 30%;
    height: 55%;
    border-radius: 6px;
  }

  .about-brand-img {
    border-radius: 8px;
  }

  .about-brand-img img {
    width: 100%;
    display: block;
  }

  .about-brand-img.no-img {
    height: 55vw;
    min-height: 200px;
  }

  .about-text p {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 12px;
  }

  .about-cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 30px;
  }

  .about-card img,
  .about-card .placeholder-img {
    height: 100px !important;
  }

  .about-card p {
    padding: 8px 4px;
    font-size: 12px;
  }

  /* ── Mobile Quote Section ── */
  .quote-section {
    height: auto;
    display: flex;
    flex-direction: column;
  }

  .quote-left {
    position: relative;
    width: 100%;
    height: auto;
    clip-path: none;
    padding: 40px 20px;
  }

  .quote-text h2 {
    font-size: 24px;
    line-height: 1.5;
  }

  .quote-text p {
    font-size: 13px;
  }

  .quote-center {
    position: relative;
    width: 100%;
    height: 200px;
    clip-path: none;
  }

  .quote-right {
    position: relative;
    width: 100%;
    height: 200px;
    clip-path: none;
  }

  /* ── Mobile Sustainability Section ── */
  .sustain-section {
    padding: 50px 0;
  }

  .sustain-text {
    position: static;
    max-width: none;
    padding: 24px 20px 0;
    text-shadow: none;
  }

  .sustain-text h2 {
    color: var(--dark);
  }

  .sustain-text p {
    color: var(--gray);
  }

  .sustain-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .sustain-text h2 {
    font-size: 24px;
    line-height: 1.5;
  }

  .sustain-text p {
    font-size: 13px;
  }

  .sustain-photos {
    margin-bottom: 30px;
  }

  .sustain-photo-main {
    width: 100%;
    border-radius: 8px;
  }

  .sustain-photo-main.no-img {
    height: 55vw;
  }

  .sustain-photo-sub {
    right: 2%;
    bottom: 10px;
    width: 42%;
  }

  .sustain-photo-card {
    padding-left: 10px;
    padding-bottom: 10px;
  }

  .sustain-photo-card img {
    padding: 5px;
    border-radius: 3px;
  }

  .sustain-photo-card.no-img {
    height: 30vw;
  }

  /* ── Mobile Company Page ── */
  .company-intro {
    padding: 40px 0;
  }

  .company-intro-content p {
    font-size: 14px;
    line-height: 1.8;
    text-indent: 0;
  }

  .cooperation-img {
    max-width: 280px;
  }

  .certs-section {
    padding: 40px 0;
  }

  .certs-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 20px;
  }

  .cert-item .placeholder-img {
    height: 140px !important;
  }

  /* ── Mobile Products Page ── */
  .products-category {
    padding: 50px 0 20px;
  }

  .product-row {
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 40px;
  }

  .product-card .product-img,
  .product-card .placeholder-img.product-img {
    height: 220px !important;
    border-radius: 10px;
    margin-bottom: 14px;
  }

  .product-card[style*="grid-column"] {
    grid-column: auto !important;
  }

  .product-tag {
    font-size: 13px;
    padding: 3px 12px;
    margin-bottom: 8px;
  }

  .product-spec {
    font-size: 13px;
    line-height: 1.9;
  }

  /* ── Mobile Contact Page ── */
  .service-blocks {
    padding: 40px 0;
  }

  .service-item {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    margin-bottom: 20px;
    min-height: 220px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    position: relative;
  }

  .service-item:nth-child(even) {
    direction: ltr;
  }

  .service-item:nth-child(even) > * {
    direction: ltr;
  }

  .service-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26,179,148,0.6);
    z-index: 2;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .service-text h3 {
    font-size: 24px;
    text-align: center;
  }

  .service-item .placeholder-img,
  .service-item .service-img {
    min-height: 220px;
    grid-row: 1;
    grid-column: 1;
  }

  .contact-info {
    padding: 40px 0 60px;
  }

  .contact-info h2 {
    font-size: 22px;
    margin-bottom: 24px;
    padding-bottom: 14px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .contact-item {
    font-size: 13px;
    gap: 10px;
  }

  .contact-item .icon {
    font-size: 16px;
  }

  .qrcode-box {
    text-align: left;
  }

  .qrcode-box img,
  .qrcode-box .placeholder-img {
    width: 110px !important;
    height: 110px !important;
  }

  /* ── Mobile Footer ── */
  .footer {
    padding: 18px 0;
  }

  .footer .container {
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .footer-text {
    font-size: 11px;
    letter-spacing: 1.5px;
  }
}

/* ============================================
   Responsive - Small Mobile (480px)
   ============================================ */
@media (max-width: 480px) {
  .hero {
    min-height: 300px;
    max-height: 480px;
    height: 55vh;
  }

  .hero-content h1 {
    font-size: 20px;
  }

  .hero-content p {
    font-size: 12px;
  }

  .about-cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .about-card .placeholder-img,
  .about-card img {
    height: 80px !important;
  }

  .about-card p {
    font-size: 11px;
    padding: 6px 2px;
  }

  .quote-text h2 {
    font-size: 20px;
  }

  .quote-center,
  .quote-right {
    height: 160px;
  }

  .sustain-text h2 {
    font-size: 20px;
  }

  .section-title h2 {
    font-size: 20px;
  }

  .certs-grid {
    gap: 8px;
  }

  .product-card .product-img,
  .product-card .placeholder-img.product-img {
    height: 180px !important;
  }

  .service-text h3 {
    font-size: 20px;
  }

  .contact-item {
    font-size: 12px;
  }
}
