@charset "utf-8";
/* =========================================================
   丸勝食品 MARUSHENG FOOD — rwd.css（響應式）
   斷點：1399 / 1199 / 991 / 767 / 575
   ========================================================= */

/* ---------- ≤1399：寬度小於設計稿 ---------- */
@media (max-width:1399px){
  .hero-en{font-size:88px;}
  .hero-img{left:auto;right:-40px;width:900px;height:548px;top:51px;}
  .hero-ring{left:auto;right:20px;}
  .about-splash{left:auto;right:-120px;}
  .dots-about,.dots-custom-r{left:auto;right:5px;}
  .quality-photo{left:calc(50% - 120px);}
}

/* ---------- ≤1199：漢堡選單、版面收合 ---------- */
@media (max-width:1199px){
  :root{--header-h:76px;--header-hs:62px;}
  .logo img{height:44px;}
  .is-shrink .logo img{height:35px;}
  .header-social{margin-left:auto;gap:12px;}
  .home-btn{margin-left:16px;}

  .nav-toggle{display:flex;flex-direction:column;justify-content:center;gap:6px;width:44px;height:44px;margin-left:16px;padding:0 10px;border:0;border-radius:50%;background:var(--orange);}
  .nav-toggle span{display:block;height:2px;background:#fff;border-radius:2px;transition:transform .3s,opacity .3s;}
  .nav-open .nav-toggle span:nth-child(1){transform:translateY(8px) rotate(45deg);}
  .nav-open .nav-toggle span:nth-child(2){opacity:0;}
  .nav-open .nav-toggle span:nth-child(3){transform:translateY(-8px) rotate(-45deg);}

  .main-nav{position:fixed;left:0;right:0;top:var(--header-h);bottom:0;margin:0;align-self:auto;background:#fff;padding:20px 30px 40px;overflow-y:auto;opacity:0;visibility:hidden;transform:translateY(-10px);transition:opacity .3s,transform .3s,visibility .3s;}
  .nav-open .main-nav{opacity:1;visibility:visible;transform:none;}
  .is-shrink .main-nav{top:var(--header-hs);}
  .main-nav > ul{flex-direction:column;gap:0;height:auto;}
  .main-nav > ul > li{display:block;border-bottom:1px solid var(--line-soft);}
  .main-nav > ul > li > a{display:block;padding:16px 52px 16px 4px;font-size:18px;}
  /* 手機子選單：點箭頭展開 */
  .sub-toggle,.sub-menu .sub-toggle{position:absolute;right:0;top:9px;margin:0;width:44px;height:44px;border-radius:50%;font-size:16px;pointer-events:auto;cursor:pointer;transform:none;}
  .sub-menu .sub-toggle{top:1px;width:40px;height:40px;font-size:14px;}
  .main-nav > ul > li:hover > .sub-toggle,.sub-menu li:hover > .sub-toggle{transform:none;color:inherit;}
  .main-nav .has-sub.open > .sub-toggle{transform:rotate(180deg);color:var(--orange);background:#fff6ec;}
  .sub-menu,.sub-menu .sub-menu{display:none;position:static;min-width:0;padding:0 0 12px 12px;background:none;border:0;border-radius:0;box-shadow:none;opacity:1;visibility:visible;transform:none;transition:none;}
  .main-nav .has-sub.open > .sub-menu{display:block;animation:subIn .35s ease both;}
  .sub-menu a{padding:10px 48px 10px 14px;font-size:16px;white-space:normal;border-left:2px solid var(--line-soft);}
  .sub-menu li:hover > a{padding-left:14px;background:none;}
  .sub-menu a.is-active{border-left-color:var(--orange);}
  @keyframes subIn{from{opacity:0;transform:translateY(-6px);}to{opacity:1;transform:none;}}
  body.no-scroll{overflow:hidden;}

  .hero{height:580px;}
  .hero-en{font-size:76px;}
  .hero-title{font-size:30px;}
  .arrow-link{margin-top:56px;}
  .hero-img{width:760px;height:463px;top:100px;right:-80px;}
  .hero-ring{width:480px;height:480px;right:-20px;}

  .about{height:auto;padding-bottom:120px;}
  .about-grid{grid-template-columns:1fr 1fr;}
  .about-photo{width:100%;}
  .about-splash{top:auto;bottom:-110px;width:620px;height:207px;}

  .advantage{height:auto;padding:60px 0 80px;}
  .adv-list{column-gap:60px;}
  .adv-item:nth-child(odd)::after{right:-30px;}
  .adv-item h3{font-size:22px;}
  .adv-item p{font-size:16px;}

  .products{height:auto;padding:80px 0 60px;}
  .sec-title{font-size:42px;}
  .product-swiper{margin-left:0;margin-right:0;}

  .quality-text{max-width:340px;}
  .quality .eyebrow-line,.quality .quality-label{--lw:150px;--lg:40px;}
  .quality h2{font-size:40px;}

  .custom{height:auto;padding-bottom:80px;}
  .custom-grid{grid-template-columns:400px 1fr;column-gap:40px;}
  .custom-visual{width:400px;height:400px;}
  .custom-visual img{left:65px;top:20px;width:270px;height:360px;}
  .custom .btn{margin-top:50px;}

  .cta-en{flex-basis:520px;font-size:54px;}
  .cta-arrow{margin-right:0;}

  .footer-grid{grid-template-columns:300px 1fr 220px;}
  .footer-info{padding-left:40px;}
  .footer-nav{padding-left:40px;}
}

/* ---------- ≤991：平板，主要區塊改上下排列 ---------- */
@media (max-width:991px){
  .header-social{display:none;}
  .home-btn{margin-left:auto;}

  .hero{height:auto;padding-bottom:0;display:flex;flex-direction:column;}
  .hero .container{order:1;}
  .hero-img{order:2;}
  .hero .container{height:auto;}
  .hero-text{padding-top:50px;max-width:none;}
  .hero-en{font-size:68px;}
  .hero-title{font-size:28px;margin-top:20px;}
  .hero-desc{margin-top:16px;}
  .arrow-link{margin-top:32px;}
  .hero-line{display:none;}
  .hero-img{position:relative;left:auto;right:auto;top:auto;width:100%;height:auto;margin-top:10px;}
  .hero-img img{height:auto;}
  .hero-ring{width:420px;height:420px;top:auto;bottom:40px;right:-60px;}

  .about{padding:70px 0 140px;}
  .about-grid{grid-template-columns:1fr;row-gap:36px;}
  .about-left .eyebrow::after,.products-head .eyebrow::after{width:100%;}
  .about-photo{height:280px;}
  .about-right{min-height:0;margin-top:0;padding:30px 0 0;border-left:0;border-top:1px solid var(--line);max-width:none;}
  .about-right p{font-size:18px;}
  .about-splash{width:520px;height:173px;bottom:-60px;right:-80px;}

  .adv-title{padding-left:22px;}
  .adv-title::before{left:0;}
  .adv-list{grid-template-columns:1fr;row-gap:28px;}
  .adv-item{padding-bottom:28px;}
  .adv-item:nth-child(odd)::after{display:none;}

  .products-head{flex-wrap:wrap;gap:24px;}
  .sec-lead{font-size:20px;}
  .product-swiper{margin-top:40px;}
  .btn-center{margin-top:50px;}

  .quality{height:auto;}
  .quality-photo{position:relative;left:auto;height:420px;}
  .quality .container{height:auto;}
  .quality-text{max-width:none;padding:56px 0 64px;}

  .custom{padding:60px 0 70px;}
  .custom-grid{grid-template-columns:1fr;row-gap:30px;}
  .custom-visual{margin:0 auto;}
  .custom-text .sec-title{font-size:40px;}
  .custom-text .eyebrow-line{--lw:200px;--lg:40px;}
  .custom-desc{font-size:18px;}
  .custom .btn{margin-top:40px;}

  .cta{height:auto;padding:60px 0;}
  .cta-inner{flex-direction:column;align-items:flex-start;gap:30px;}
  .cta-en{flex:none;font-size:48px;}
  .cta-link{width:100%;min-height:0;padding:28px 0 0;border-left:0;border-top:1px solid #fff;}

  .site-footer{padding-top:56px;}
  .footer-grid{grid-template-columns:1fr 1fr;row-gap:40px;}
  .footer-brand{grid-column:1 / -1;padding-top:0;}
  .footer-info{min-height:0;padding-left:0;border-left:0;}
  .footer-nav{min-height:0;}
}

/* ---------- ≤767：手機 ---------- */
@media (max-width:767px){
  :root{--header-h:66px;--header-hs:56px;}
  .container,.header-inner{padding:0 16px;}
  .logo img{height:36px;}
  .is-shrink .logo img{height:29px;}
  .footer-name img{width:180px;}
  .float-top{right:16px;bottom:16px;width:46px;height:46px;font-size:20px;}
  .home-btn{width:40px;height:40px;}
  .nav-toggle{margin-left:10px;}

  .hero-text{padding-top:40px;}
  .hero-en{font-size:50px;}
  .hero-title{font-size:23px;}
  .hero-desc{font-size:16px;}
  .arrow-link{font-size:19px;}
  .hero-ring{width:300px;height:300px;bottom:30px;}

  .eyebrow{font-size:13px;}
  .sec-title,.custom-text .sec-title{font-size:32px;}
  .sec-sub{font-size:21px;}
  .sec-lead{font-size:17px;}

  .about{padding:56px 0 110px;}
  .about-left .sec-title,.about-left .sec-sub{margin-top:14px;}
  .about-photo{margin-top:28px;height:210px;}
  .about-right p{font-size:16px;}
  .about-right p+p{margin-top:18px;}
  .about-splash{width:380px;height:127px;bottom:-40px;}
  .dots{display:none;}

  .advantage{padding:50px 0 60px;}
  .adv-title{font-size:32px;}
  .adv-title::before{top:10px;height:36px;width:10px;}
  .adv-lead{font-size:17px;}
  .adv-list{margin-top:30px;}
  .adv-item{gap:16px;}
  .adv-icon{width:52px;height:52px;border-radius:14px;font-size:26px;margin-top:2px;}
  .adv-item h3{font-size:19px;}
  .adv-item p{margin-top:6px;font-size:15px;}

  .products{padding:56px 0 50px;}
  .slider-nav{display:none;}
  .product-card{height:440px;border-radius:18px;}
  .product-info{left:22px;right:22px;bottom:24px;}
  .product-info h3{font-size:24px;line-height:32px;}
  .product-info h3.sm{font-size:20px;}
  .product-info p{font-size:15px;line-height:24px;}
  .product-pagination{display:block;position:static;margin-top:20px;}
  .product-pagination .swiper-pagination-bullet{width:8px;height:8px;background:var(--line);opacity:1;}
  .product-pagination .swiper-pagination-bullet-active{width:24px;border-radius:4px;background:var(--orange);}
  .btn-center{margin-top:36px;}

  .quality-photo{height:280px;}
  .quality-text{padding:44px 0 50px;}
  .quality h2{font-size:32px;margin-top:16px;}
  .quality-desc{font-size:16px;margin-top:16px;}
  .quality .quality-label{font-size:18px;margin-top:20px;}
  .quality .eyebrow-line{--lw:140px;--lg:30px;}
  .quality-cert{font-size:18px;margin-top:14px;}

  .custom-visual{width:300px;height:300px;}
  .ring-sm{inset:32px;}
  .custom-visual img{left:52px;top:14px;width:196px;height:272px;}
  .custom-text .eyebrow-line{--lw:80px;--lg:24px;}
  .custom-desc{font-size:16px;}
  .steps{display:grid;grid-template-columns:1fr 1fr;gap:12px;font-size:16px;}
  .steps li{padding:10px 14px;background:#f5f2eb;border-radius:8px;}
  .steps li+li::before{display:none;}

  .cta{padding:50px 0;}
  .cta-en{font-size:38px;}
  .cta-link span:first-child{font-size:21px;}
  .cta-arrow{width:52px;height:52px;font-size:24px;}

  .site-footer{padding:48px 0 32px;}
  .footer-grid{grid-template-columns:1fr;row-gap:32px;}
  .footer-name{font-size:32px;}
  .footer-brand p+p{margin-top:8px;font-size:16px;}
  .footer-company{font-size:20px;}
  .footer-info ul{font-size:15px;}
  .footer-social{gap:16px;margin-top:24px;}
  .footer-nav{padding:28px 0 0;border-left:0;border-top:1px solid rgba(255,255,255,.5);}
  .footer-nav ul{grid-template-columns:1fr 1fr;gap:8px 20px;font-size:16px;}
  .footer-bottom{margin-top:32px;align-items:flex-end;}
  .footer-bottom p{flex-direction:column;gap:10px;font-size:14px;}
}

/* ---------- ≤575：小手機 ---------- */
@media (max-width:575px){
  .header-inner{padding:0 14px;}
  .logo img{height:31px;}
  .is-shrink .logo img{height:26px;}
  .hero-en{font-size:42px;}
  .hero-title{font-size:20px;}
  .hero-ring{width:240px;height:240px;right:-70px;}
  .sec-title,.custom-text .sec-title,.adv-title{font-size:28px;}
  .about-photo{height:180px;}
  .about-splash{width:300px;height:100px;right:-60px;}
  .product-card{height:400px;}
  .quality-photo{height:220px;}
  .quality h2{font-size:28px;}
  .custom-visual{width:260px;height:260px;}
  .custom-visual img{left:46px;top:12px;width:168px;height:236px;}
  .cta-en{font-size:32px;}
}

/* ---------- 手機選單項目依序滑入 ---------- */
@media (max-width:1199px){
  .main-nav a::after{display:none;}
  .main-nav > ul > li{opacity:0;transform:translateY(12px);transition:opacity .35s,transform .35s;}
  .nav-open .main-nav > ul > li{opacity:1;transform:none;}
  .nav-open .main-nav > ul > li:nth-child(1){transition-delay:.05s;}
  .nav-open .main-nav > ul > li:nth-child(2){transition-delay:.1s;}
  .nav-open .main-nav > ul > li:nth-child(3){transition-delay:.15s;}
  .nav-open .main-nav > ul > li:nth-child(4){transition-delay:.2s;}
  .nav-open .main-nav > ul > li:nth-child(5){transition-delay:.25s;}
  .nav-open .main-nav > ul > li:nth-child(6){transition-delay:.3s;}
  .nav-open .main-nav > ul > li:nth-child(7){transition-delay:.35s;}
  .main-nav > ul > li > a.is-active{padding-left:14px;border-left:3px solid var(--orange);}
}
@media (max-width:767px){
  .loader-logo{width:170px;}
}

/* =========================================================
   內頁 RWD
   ========================================================= */
@media (max-width:1399px){
  .banner-en{font-size:72px;}
  .page-banner.short .banner-en{font-size:60px;}
}
@media (max-width:1199px){
  .page-banner,.page-banner.short{height:auto;}
  .page-banner .container{padding-top:40px;padding-bottom:40px;}
  .banner-en,.page-banner.short .banner-en{font-size:58px;line-height:1.3;white-space:normal;}
  .banner-row{grid-template-columns:320px 1fr;column-gap:32px;}
  .story-grid,.split-grid,.qi-grid,.product-grid{grid-template-columns:1fr 1fr;column-gap:40px;}
  .story-grid .round,.qi-grid .round{height:360px;}
  .custom-intro{grid-template-columns:1fr 320px;column-gap:48px;}
  .custom-intro h2{font-size:40px;line-height:1.55;}
  .custom-intro .round{height:410px;}
  .cap-grid{grid-template-columns:repeat(2,1fr);}
  .cat-tabs{gap:12px;}
  .cat-tabs a,.cat-tabs a.all,.cat-tabs a.wide{min-width:0;padding:0 22px;}
  .card-grid{column-gap:20px;}
  .gallery-main,.gallery-main .swiper-slide img{height:380px;}
  .cert-grid{gap:18px;}
  .cert-card{padding:24px;}
  .cert-card h3{font-size:46px;line-height:1.4;}
  .news-item a{grid-template-columns:130px 180px 1fr 24px;column-gap:24px;}
  .news-item .thumb{height:120px;}
  .contact-grid{grid-template-columns:320px 1fr;column-gap:48px;}
}
@media (max-width:991px){
  .banner-img{left:30%;}
  .banner-en,.page-banner.short .banner-en{font-size:46px;}
  .banner-row{grid-template-columns:1fr;row-gap:6px;padding-bottom:16px;}
  .banner-row .banner-title{font-size:30px;line-height:1.5;}
  .banner-row p{font-size:16px;}
  .ip-sec{padding:50px 0;}
  .ip-title{margin-top:12px;font-size:28px;line-height:1.5;}
  .ip-body{margin-top:24px;}
  .story-grid,.split-grid,.qi-grid,.product-grid,.custom-intro,.contact-grid{grid-template-columns:1fr;row-gap:32px;}
  .story-grid .round,.qi-grid .round,.split-grid .round{height:auto;aspect-ratio:16/10;}
  .split-grid .round{order:-1;}
  .custom-intro .round{order:-1;width:100%;max-width:420px;height:auto;aspect-ratio:36/46;}
  .commit-grid,.step-grid{grid-template-columns:1fr;gap:20px;}
  .commit-grid .num{font-size:40px;line-height:1.4;}
  .flow-list li{grid-template-columns:56px 1fr;row-gap:4px;}
  .flow-list li p{grid-column:2;}
  .flow-list .num{font-size:28px;}
  .card-grid{grid-template-columns:repeat(2,1fr);}
  .p-card{min-height:0;}
  .p-card .round{height:auto;aspect-ratio:390/275;}
  .gallery-main,.gallery-main .swiper-slide img{height:auto;aspect-ratio:570/428;}
  .gallery-thumbs .swiper-slide{height:auto;aspect-ratio:134/92;}
  .product-info-col h2{margin-top:10px;font-size:34px;line-height:1.5;}
  .spec-list > div{grid-template-columns:1fr;row-gap:8px;}
  .cert-grid{grid-template-columns:1fr;max-width:480px;}
  .cert-card{min-height:0;}
  .cert-actions{margin-top:24px;}
  .news-item a{grid-template-columns:1fr 200px;grid-template-areas:"date thumb" "sum sum";row-gap:16px;padding:28px 0;}
  .news-date{grid-area:date;}
  .news-item .thumb{grid-area:thumb;}
  .news-sum{grid-area:sum;}
  .news-item a > i{display:none;}
  .article-head{grid-template-columns:110px 1px 1fr;column-gap:24px;}
  .article-head h1{font-size:34px;line-height:1.45;}
  .article-cover{height:auto;aspect-ratio:1040/400;}
  .article-body p{font-size:18px;}
}
@media (max-width:767px){
  .page-banner .container{padding-top:28px;padding-bottom:30px;}
  .banner-img{left:0;opacity:.55;}
  .banner-en,.page-banner.short .banner-en{font-size:34px;margin-top:8px;}
  .banner-row{margin-top:14px;}
  .banner-row .banner-title{font-size:26px;}
  .ip-sec{padding:44px 0;}
  .ip-title{font-size:24px;}
  .story-text h2,.split-grid h2{font-size:24px;line-height:1.5;}
  .ip-text p{font-size:16px;}
  .custom-intro h2{font-size:30px;}
  .custom-intro p{font-size:17px;line-height:1.7;}
  .cap-grid{grid-template-columns:1fr;gap:16px;}
  .cap-grid .soft-card{min-height:0;}
  .cap-grid h3,.commit-grid h3{font-size:21px;}
  .flow-list h3{font-size:20px;}
  .flow-list p{font-size:16px;}
  .cat-tabs{flex-wrap:nowrap;overflow-x:auto;margin:0 -16px;padding:0 16px 6px;scrollbar-width:none;}
  .cat-tabs::-webkit-scrollbar{display:none;}
  .cat-tabs a,.cat-tabs a.all,.cat-tabs a.wide{flex-shrink:0;height:46px;padding:0 18px;font-size:15px;}
  .card-grid{grid-template-columns:1fr;row-gap:36px;}
  .p-card .name{font-size:22px;line-height:1.6;}
  .p-card p{font-size:15px;line-height:1.7;}
  .pagination{gap:8px;}
  .pagination a{width:42px;height:42px;font-size:15px;}
  .list-foot p{font-size:18px;}
  .product-info-col .lead{font-size:17px;line-height:1.7;}
  .spec-list dt{font-size:18px;}
  .spec-list dd{font-size:16px;}
  .qi-grid h2{font-size:30px;line-height:1.5;}
  .qi-grid p{font-size:17px;}
  .cert-card h3{font-size:40px;}
  .cert-card h4{font-size:20px;}
  .cert-actions button{font-size:15px;}
  .step-grid h3{font-size:22px;}
  .step-grid .num{font-size:36px;line-height:1.5;}
  .cert-dialog{padding:16px;border-radius:18px;}
  .cert-img img{max-height:calc(100vh - 140px);}
  .cert-head h2{font-size:17px;line-height:1.5;}
  .news-item a{grid-template-columns:1fr 120px;column-gap:16px;}
  .news-date b{font-size:32px;line-height:1.4;}
  .news-date span{font-size:15px;}
  .news-item .thumb{height:84px;}
  .news-sum h3{font-size:20px;line-height:1.5;}
  .news-sum p{font-size:15px;}
  .article-head{grid-template-columns:1fr;row-gap:16px;}
  .article-head .vline{display:none;}
  .article-date{display:flex;align-items:baseline;gap:12px;}
  .article-date b{font-size:32px;line-height:1.3;}
  .article-head h1{font-size:26px;}
  .article-cover{margin-top:28px;}
  .article-body h2{margin-top:28px;font-size:23px;line-height:1.5;}
  .article-body p{margin-top:20px;font-size:16px;line-height:1.8;}
  .contact-info dd{font-size:17px;}
  .inquiry h2{font-size:24px;}
  .form-row,.form-row.three{grid-template-columns:1fr;row-gap:20px;margin-top:20px;}
  .captcha-code{min-width:128px;font-size:17px;}
  .agree{font-size:15px;}
  .policy h2{font-size:20px;line-height:1.5;}
  .policy p{margin-top:16px;font-size:16px;line-height:1.8;}
  .done h2{font-size:32px;line-height:1.5;}
  .done p{margin-top:16px;font-size:17px;line-height:1.7;}
  .btn-main{min-width:190px;height:52px;font-size:16px;padding:0 28px 0 32px;}
}

/* ---------- 語系下拉（手機） ---------- */
@media (max-width:1199px){
  .lang-switch > .sub-menu{right:auto;}
  .lang-switch .sub-menu a{padding-right:14px;}
  .lang-switch .sub-menu a.current{border-left-color:var(--orange);}
}
