/* ============================================================
   YGF US Site — 移动端 & 平板响应式适配
   断点：≤1200px（平板横屏）、≤768px（手机竖屏）
   ============================================================ */

/* ========== 平板 & 小屏桌面 (≤1200px) ========== */
@media (max-width: 1200px) {
    body {
        min-width: unset !important;
        max-width: 100% !important;
    }

    /* --- 导航栏 --- */
    .home-nav {
        height: 60px;
        padding: 0 20px;
        justify-content: space-between;
        position: fixed;
    }

    .home-nav .logo {
        height: 50px;
    }

    /* 汉堡菜单按钮 */
    .menu-toggle {
        display: block;
        width: 36px;
        height: 36px;
        position: relative;
        cursor: pointer;
        z-index: 1001;
        background: none;
        border: none;
        outline: none;
    }

    .menu-toggle span {
        display: block;
        width: 28px;
        height: 3px;
        background: #793325;
        border-radius: 3px;
        margin: 6px auto;
        transition: all 0.3s ease;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    /* 导航菜单 — 移动端隐藏/展示 */
    .home-nav-menu {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.97);
        backdrop-filter: blur(20px);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease, padding 0.35s ease;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
        z-index: 999;
        padding: 0 20px;
    }

    .home-nav-menu.open {
        max-height: 350px;
        padding: 10px 20px;
    }

    .home-nav-menu-item {
        width: 100%;
        text-align: center;
        padding: 14px 0;
        font-size: 18px;
        border-bottom: 1px solid rgba(121, 51, 37, 0.08);
    }

    .home-nav-menu-item:last-child {
        border-bottom: none;
    }

    .home-nav-menu-item.active {
        background-size: contain;
        background-position: center;
        width: 100%;
        color: #fff !important;
    }

    /* --- 通用 --- */
    img {
        max-width: 100%;
        height: auto;
    }

    /* --- 首页 --- */
    .end-container-content {
        right: 30px;
        bottom: 30px;
        font-size: 18px;
    }

    .end-item-line {
        width: 6px;
        height: 45px;
    }

    .end-container-content-item {
        padding-bottom: 25px;
        gap: 10px;
    }

    /* --- 菜单页 --- */
    .slogan {
        margin-top: 120px;
    }

    .slogan-title {
        font-size: clamp(48px, 10vw, 118px);
        margin-left: 30px;
    }

    .slogan-sub-title {
        font-size: clamp(24px, 5vw, 51px);
        margin-left: 30px;
    }

    .slider-btn {
        width: 36px;
        height: 36px;
    }

    .slider-wrapper img {
        width: 250px;
        height: 250px;
    }

    .slider-content-title {
        font-size: 24px;
    }

    .slider-content-name {
        font-size: 26px;
    }

    .broth {
        padding-left: 30px !important;
        padding-right: 20px;
    }

    .broth-slogan-title {
        font-size: clamp(42px, 8vw, 93px);
    }

    .broth-slogan-sub-title {
        font-size: clamp(18px, 4vw, 39px);
    }

    .broth-row {
        flex-direction: column;
        margin-left: 20px;
        align-items: flex-start;
    }

    .broth-row img {
        width: 280px;
    }

    .broth-title {
        font-size: clamp(28px, 5vw, 48px);
    }

    .broth-sub-title {
        font-size: clamp(22px, 4vw, 48px);
    }

    .broth-list-item-content {
        width: auto;
        font-size: 18px;
    }

    .broth-list-item-title {
        font-size: 22px;
    }

    .ingredients {
        margin-left: 20px;
    }

    .ingredients [style*="display: flex"][style*="gap: 60px"] {
        flex-direction: column;
        gap: 30px;
    }

    .ingredients-title {
        font-size: clamp(42px, 8vw, 93px);
    }

    .ingredients-sub-title {
        font-size: clamp(18px, 4vw, 39px);
    }

    .ingredients-img {
        width: 100% !important;
        max-width: 500px;
    }

    .ingredients-name {
        font-size: 24px;
    }

    .ingredients-content-title {
        font-size: 22px;
    }

    .ingredients-content-sub-title {
        font-size: 16px;
    }

    .beyond {
        padding-left: 20px;
    }

    .beyond-title {
        font-size: clamp(36px, 7vw, 80px);
    }

    .beyond-sub-title {
        font-size: clamp(16px, 3vw, 30px);
    }

    .beyond [style*="margin-right: 75px"] {
        margin-right: 20px !important;
    }

    .digestive-item-container {
        flex-wrap: wrap;
        gap: 20px;
        justify-content: center;
    }

    .digestive-item {
        width: calc(50% - 20px) !important;
        height: auto;
        min-height: 300px;
    }

    .digestive {
        padding-left: 30px;
        padding-right: 30px;
        padding-bottom: 60px;
    }

    .digestive-item-img {
        margin-top: -60px;
        width: 200px;
        height: 200px;
    }

    .digestive-item-title {
        margin-left: 0;
        text-align: center;
        font-size: 20px;
    }

    .digestive-item-content {
        font-size: 14px;
        text-align: center;
    }

    /* --- 加盟页 --- */
    .hero {
        flex-direction: column;
        margin: 100px 20px 0;
    }

    .hero-text {
        width: 100%;
        font-size: 15px;
    }

    .hero-img {
        aspect-ratio: 16 / 9;
    }

    .form-section {
        min-width: unset;
        padding: 0 20px;
        margin: 50px 0;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* --- 关于我们 --- */
    .story {
        flex-direction: column;
        margin-left: 20px;
        margin-right: 20px;
        height: auto;
    }

    .story-title {
        font-size: clamp(42px, 8vw, 70px);
    }

    .story-right-title {
        font-size: clamp(24px, 4vw, 42px);
    }

    .story-right-sub-title {
        font-size: clamp(16px, 3vw, 30px);
    }

    .brand {
        height: auto;
        padding-bottom: 40px;
        margin-top: -200px;
    }

    .brand-title {
        font-size: clamp(36px, 7vw, 93px);
        padding-right: 20px;
        margin-right: 20px;
    }

    .brand-sub-title {
        font-size: clamp(20px, 4vw, 50px);
        padding-right: 20px;
        margin-right: 20px;
    }

    .brand-content {
        flex-direction: column;
        margin-left: 20px;
        margin-right: 20px;
        gap: 20px;
    }

    .brand-tag {
        width: 100%;
    }

    .brand-desc {
        margin-left: 40px;
    }

    .ygf-journey-title {
        font-size: clamp(36px, 7vw, 93px);
        margin-left: 30px;
        margin-top: 50px;
    }

    .ygf-journey-sub-title {
        margin-left: 30px;
    }

    .flavor [style*="display: flex"][style*="gap: 20px"] {
        flex-direction: column;
    }

    .flavor-broth,
    .flavor-farm,
    .flavor-modern {
        aspect-ratio: 16 / 9;
    }

    .flavor-title {
        font-size: clamp(36px, 7vw, 93px);
    }

    .flavor-sub-title {
        font-size: clamp(20px, 4vw, 50px);
    }

    .flavor-content {
        font-size: clamp(24px, 5vw, 50px);
    }

    .overseas {
        margin: 0 20px;
        height: auto;
        min-height: 400px;
        padding: 0 20px;
    }

    .overseas-title {
        font-size: clamp(36px, 7vw, 80px);
    }

    .overseas-global {
        font-size: clamp(20px, 4vw, 40px);
    }

    .overseas-num {
        font-size: clamp(40px, 8vw, 100px);
    }
}

/* ========== 手机竖屏 (≤768px) ========== */
@media (max-width: 768px) {
    .home-nav {
        height: 52px;
    }

    .home-nav .logo {
        height: 40px;
    }

    .menu-toggle span {
        width: 24px;
        height: 2.5px;
        margin: 5px auto;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: translateY(7.5px) rotate(45deg);
    }

    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-7.5px) rotate(-45deg);
    }

    .home-nav-menu {
        top: 52px;
    }

    .home-nav-menu-item {
        font-size: 16px;
        padding: 12px 0;
    }

    /* 首页 */
    .end-container-content {
        right: 15px;
        bottom: 20px;
        font-size: 14px;
        padding: 6px 8px;
    }

    .end-item-line {
        width: 5px;
        height: 35px;
    }

    .end-container-content-item {
        padding-bottom: 18px;
        gap: 8px;
    }

    /* 菜单页 */
    .slogan {
        margin-top: 100px;
    }

    .slogan-title {
        margin-left: 20px;
    }

    .slogan-sub-title {
        margin-left: 20px;
    }

    .slider-wrapper img {
        width: 160px;
        height: 160px;
    }

    .slider-content-title {
        font-size: 16px;
    }

    .slider-content-name {
        font-size: 18px;
    }

    .slider-btn {
        width: 26px;
        height: 26px;
        margin-left: 6px !important;
        margin-right: 6px !important;
    }

    .broth {
        padding-left: 15px !important;
        padding-right: 10px;
    }

    .broth-row img {
        width: 180px;
    }

    .broth-row {
        margin-left: 10px;
    }

    .digestive-item {
        width: 100% !important;
        max-width: 320px;
        min-height: 250px;
    }

    .digestive-item-img {
        width: 150px;
        height: 150px;
        margin-top: -40px;
    }

    .digestive {
        padding-left: 15px;
        padding-right: 15px;
        padding-top: 40px;
    }

    .digestive-title {
        font-size: 24px;
    }

    .digestive-sub-title {
        font-size: 16px;
    }

    .beyond {
        padding-left: 10px;
    }

    .beyond [style*="margin-right: 75px"] {
        margin-right: 10px !important;
        flex-direction: column;
    }

    .ingredients {
        margin-left: 10px;
    }

    /* 加盟页 */
    .form-title {
        font-size: 22px;
    }

    .form-group label {
        font-size: 16px;
    }

    .form-group input {
        font-size: 15px;
        padding: 10px;
    }

    .submit-btn button {
        width: 100%;
        font-size: 20px;
        padding: 14px;
    }

    /* 关于我们 */
    .brand {
        margin-top: -100px;
    }

    .flavor-title {
        margin-top: 50px;
    }

    .flavor-content {
        margin-top: 40px;
    }

    .flavor-broth-desc,
    .flavor-farm-desc,
    .flavor-modern-desc {
        font-size: 16px;
        margin-top: 20px;
    }

    .flavor-broth-title,
    .flavor-farm-title,
    .flavor-modern-title {
        font-size: 28px;
        margin-bottom: 30px;
    }

    .overseas [style*="margin-bottom: 150px"] {
        margin-bottom: 50px !important;
        flex-direction: column;
        gap: 20px;
    }

    .overseas {
        height: auto !important;
        min-height: 350px;
        padding: 0 15px !important;
        margin: 0 10px;
    }

    .overseas-title {
        font-size: clamp(32px, 8vw, 60px);
        margin-left: 10px;
        width: auto;
    }

    .overseas-global {
        font-size: clamp(20px, 5vw, 40px);
        margin-left: 10px;
    }

    .overseas-global-desc {
        font-size: clamp(14px, 3vw, 30px);
        margin-left: 10px;
    }

    .overseas-num {
        font-size: clamp(48px, 12vw, 100px);
        margin-right: 10px;
    }

    .overseas-num-desc {
        font-size: clamp(14px, 3vw, 20px);
        margin-right: 10px;
    }
}

/* ========== 视差在移动端禁用 ========== */
@media (max-width: 768px) {
    [data-parallax] {
        transform: none !important;
    }
}