/* ============================================================
   mobile.css  ——  移动端样式补丁
   说明：
   1. 本文件仅作为 main.css 的补充，不修改 PC 端任何已有规则。
   2. 顶部两条规则在所有宽度下生效，但 PC 上仅把汉堡控件
      隐藏（display:none），对 PC 视觉与功能零影响。
   3. 其余样式全部包裹在 @media (max-width: 768px) 中，仅
      在移动端（及更窄屏幕）生效。
   4. 加载顺序：需在 main.css 之后引入，方可覆盖同名规则。
   ============================================================ */

/* PC 端隐藏移动端导航控件（始终隐藏，确保 PC 无任何变化） */
.nav-toggle-input,
.nav-toggle-btn {
    display: none;
}


@media (max-width: 768px) {

    /* 防止横向溢出 */
    html, body {
        overflow-x: hidden;
        -webkit-text-size-adjust: 100%;
    }

    img, svg, video, iframe {
        max-width: 100%;
    }

    .container {
        padding: 0 15px;
    }

    /* ============ 顶部导航 / 汉堡菜单 ============ */
    .header {
        padding: 10px 0;
        position: fixed;
    }

    .header .logo {
        margin-left: 15px;
        padding: 6px 10px;
    }

    .header .logo img {
        height: 36px;
    }

    /* 汉堡按钮 */
    .nav-toggle-btn {
        display: inline-flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        width: 44px;
        height: 44px;
        cursor: pointer;
        z-index: 1001;
    }

    .nav-toggle-btn span {
        display: block;
        width: 24px;
        height: 2px;
        background: #333;
        border-radius: 2px;
        transition: all 0.3s ease;
        transform-origin: center;
    }

    /* 复选框本身始终隐藏 */
    .nav-toggle-input {
        display: none;
    }

    /* 选中（展开）时汉堡变 X */
    .nav-toggle-input:checked ~ .nav-toggle-btn span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .nav-toggle-input:checked ~ .nav-toggle-btn span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle-input:checked ~ .nav-toggle-btn span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    /* 导航下拉面板 */
    .header .head-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: #fff;
        padding: 8px 0;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
        max-height: 72vh;
        overflow-y: auto;
    }

    .nav-toggle-input:checked ~ .head-nav {
        display: flex;
    }

    .header .head-nav a {
        display: block;
        padding: 12px 20px;
        font-size: 15px;
        text-align: center;
        border-bottom: 1px solid #f2f2f2;
    }

    .header .head-nav a:last-child {
        border-bottom: none;
    }

    /* 取消 PC 端 active 下划线装饰，移动端用颜色区分 */
    .header .head-nav a.on::after {
        display: none;
    }

    /* ============ 首页 Banner ============ */
    .swiper-banner {
        height: 420px;
        min-height: 320px;
    }

    .swiper-group {
        bottom: 30px;
    }

    .swiper-pagination {
        gap: 10px;
    }

    .swiper-pagination-bullet {
        width: 10px;
        height: 10px;
    }

    .swiper-pagination-bullet-active {
        width: 22px;
    }

    #small-swiper {
        width: 80px;
        height: 48px;
        margin-left: 12px;
    }

    .icon-scroll {
        width: 24px !important;
        height: 24px !important;
        bottom: 12px;
    }

    /* ============ 关于我们 ============ */
    .index-about {
        padding: 40px 0;
    }

    .index-about-img {
        width: 100%;
        max-width: 320px;
        margin: 0 auto 16px;
    }

    .index-about .text p {
        font-size: 15px;
        line-height: 1.7;
        max-width: 100%;
        margin: 0 auto 20px;
        padding: 0 5px;
    }

    .index-more {
        padding: 10px 24px;
        font-size: 14px;
    }

    /* ============ 数据统计 ============ */
    .statistics {
        padding: 35px 0;
    }

    .statistics .index-content {
        flex-wrap: wrap;
        gap: 20px 0;
    }

    .statistics .index-content > div {
        min-width: 30%;
    }

    .statistics h5 {
        font-size: 30px;
    }

    .statistics h5 i {
        font-size: 20px;
    }

    .statistics p {
        font-size: 13px;
    }

    /* ============ 通用标题 ============ */
    .index-title {
        margin-bottom: 25px;
    }

    .index-title h1 {
        font-size: 24px;
    }

    .index-title h2 {
        font-size: 13px;
    }

    /* ============ 甄选食材 ============ */
    .index-ingredients {
        padding: 40px 0;
    }

    .index-ingredients .ingredients-list {
        gap: 15px;
        margin-top: 25px;
    }

    .index-ingredients .item {
        height: 150px;
    }

    .index-ingredients .item .txt .icon-img {
        width: 60px;
        height: 60px;
        margin-bottom: 8px;
    }

    .index-ingredients .item .txt h5 {
        font-size: 16px;
        letter-spacing: 1px;
    }

    /* ============ 首页新闻 ============ */
    .index-news {
        padding: 40px 0;
    }

    .index-news .items {
        gap: 15px;
    }

    .index-news .item {
        padding: 15px;
    }

    .index-news .item .time {
        width: 60px;
        padding-right: 12px;
    }

    .index-news .item .time em {
        font-size: 22px;
    }

    .index-news .item .time span {
        font-size: 12px;
    }

    .index-news .item .txt {
        padding-left: 12px;
    }

    .index-news .item .txt h5 {
        font-size: 15px;
        margin-bottom: 6px;
    }

    .index-news .item .txt p {
        font-size: 13px;
        line-height: 1.5;
    }

    /* ============ 联系我们 / 表单 ============ */
    .contact-us {
        padding: 40px 0;
    }

    .contact-from {
        padding: 20px;
    }

    .contact-from .left img {
        height: 46px;
        margin-bottom: 15px;
    }

    .contact-from .left p {
        font-size: 14px;
    }

    .contact-from .left p em {
        font-size: 18px;
    }

    .m-forms .u-form {
        gap: 12px;
    }

    .m-forms .u-input {
        padding: 10px 12px;
        font-size: 13px;
    }

    .m-forms .u-textarea {
        padding: 12px;
        font-size: 13px;
        height: 100px;
    }

    .m-forms #j_btn {
        padding: 11px 30px;
        font-size: 14px;
    }

    /* ============ 页脚 ============ */
    .footer {
        padding: 18px 15px;
        gap: 12px;
    }

    .footer .contact-info {
        font-size: 11px;
    }

    .footer .qrcode img {
        width: 70px;
        height: 70px;
    }

    /* ============ 内页通用 ============ */
    .m-contents {
        padding-top: 60px;
    }

    .page-cont {
        padding: 20px 15px;
    }

    .page-banner {
        height: 240px;
    }

    .page-banner .bannertxt h1 {
        font-size: 26px;
    }

    .page-banner .bannertxt h2 {
        font-size: 13px;
        letter-spacing: 3px;
    }

    .page-banner .bannertxt p {
        font-size: 12px;
    }

    .page-title h1 {
        font-size: 22px;
    }

    .page-title h2 {
        font-size: 13px;
    }

    /* ============ 品牌介绍页 ============ */
    .page-about {
        padding-bottom: 40px;
    }

    .page-about .floor1 {
        padding: 25px 0;
    }

    .page-about .txt {
        margin-bottom: 25px;
    }

    .page-about .main {
        font-size: 15px;
        line-height: 1.8;
    }

    /* ============ 产品页补充 ============ */
    .page-product .floor2 .floor2-content .page-title h1 {
        font-size: 26px;
    }

    .page-product .floor2 .floor2-content p {
        font-size: 14px;
    }

    .page-product .feature-block .feature-content h2 {
        font-size: 20px;
    }

    .page-product .feature-block .feature-content h3 {
        font-size: 16px;
    }

    .page-product .feature-block .feature-content p {
        font-size: 14px;
    }

    .page-product .floor3 .ingredient-card .ingredient-info h3 {
        font-size: 18px;
    }

    .page-product .floor3 .ingredient-card .ingredient-info p {
        font-size: 13px;
    }

    /* ============ 加盟页补充 ============ */
    .page-join .page-ftitle h1 {
        font-size: 24px;
    }

    .page-join .page-ftitle h2 {
        font-size: 13px;
    }

    .page-join .floor2 .top .left h5,
    .page-join .floor2 .top .right h5 {
        font-size: 15px;
    }

    .page-join .floor2 .top .right .tel {
        font-size: 22px;
    }

    .page-join .items .item h5 {
        font-size: 15px;
    }

    .page-join .items .item p {
        font-size: 13px;
    }

    .page-join .floor3 .items .item h5 {
        font-size: 14px;
    }

    .page-join .floor3 .items .item p {
        font-size: 12px;
    }

    .page-join .join-condition .items .item span {
        font-size: 13px;
    }

    /* ============ 店面展示页补充 ============ */
    .page-storefront .floor1 img {
        max-width: 100%;
    }

    /* ============ 新闻列表页补充 ============ */
    .news-list .item .pic {
        height: 180px;
    }

    .news-list .item .txt h5 {
        font-size: 16px;
    }

    .news-list .item .txt p {
        font-size: 13px;
    }

    /* ============ 联系我们页补充 ============ */
    .page-contact .floor1 h1 {
        font-size: 24px;
    }

    .page-contact .floor1 h2 {
        font-size: 15px;
    }

    .page-contact .floor1 h3 {
        font-size: 13px;
    }

    .page-contact .floor2 .item:first-child h1 {
        font-size: 24px;
    }

    .page-contact .floor2 .item:first-child p {
        font-size: 14px;
    }

    /* ============ 新闻详情页 ============ */
    .page-news-detail {
        padding-bottom: 40px;
    }

    .page-news-detail .page-cont {
        padding: 20px 15px;
    }

    .page-news-detail .page-title h1 {
        font-size: 20px;
        margin-bottom: 15px;
    }

    .page-news-detail .page-title h2,
    .page-news-detail .page-title h3 {
        font-size: 13px;
    }

    .page-news-detail .content {
        font-size: 15px;
        line-height: 1.8;
    }

    .page-news-detail .content img {
        margin: 15px 0;
    }

    .page-news-detail .main {
        font-size: 15px;
        line-height: 1.8;
    }

    .page-news-detail .main .title {
        font-size: 20px;
    }

    /* ============ 分页 ============ */
    .m-pages {
        padding: 20px 0;
    }

    .m-pages .fl a,
    .m-pages .fl span {
        height: 30px;
        line-height: 28px;
        font-size: 13px;
        padding: 0 10px;
        margin: 0 3px;
    }

    /* ============ 悬浮快捷导航（微调） ============ */
    .fast-nav {
        right: 10px;
        bottom: 70px;
    }
}
