/*
Theme Name: jasonfood
Theme URI:
Description: 
Version: 1.1
*/
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* =========================
   DESIGN SYSTEM（轻量版）
========================= */
:root {

  /* ===== BRAND COLOR（运动匹克球绿） ===== */
  --primary: #2F855A;       /* 主CTA / 品牌识别 */
  --primary-dark: #1C4532;   /* hover / active */

  /* ===== TEXT SYSTEM ===== */
  --text: #111827;           /* 主标题文字 */
  --muted: #6b7280;          /* 辅助说明 */

  /* ===== UI NEUTRAL ===== */
  --border: #e5e7eb;         /* 边框 */
  --bg: #f8fafc;             /* 页面背景 */

  /* ===== DARK（只用于局部，不要全站） ===== */
  --dark: #0f172a;           /* hero / 深背景 */
}

/* =========================
   GLOBAL LINKS
========================= */
:root {
  --font-sans: system-ui, Inter, "Helvetica Neue", Helvetica, Arial, "PingFang SC", sans-serif;
}
body {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.7;
  color: #333;
}
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-sans);
  font-weight: 600;
  line-height: 1.3;
}



a {
  text-decoration: none;
  color: var(--text);
}

.btn-quote {
  border: none;
  outline: none;
  /* 原有你的padding、圆角、颜色、过渡全部保留不变 */
}

/* 顶部黑色联系栏 */
/* 顶部黑色联系栏基础 */
.top-bar {
    background-color: #111;
    color: #eeeeee;
    font-size: 14px;
    padding: 8px 0;
    position: relative;
    overflow: visible !important;
    z-index: auto !important;
}
.top-bar-wrap {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    padding: 0 20px;
}
.top-bar-left {
    display: flex;
    gap: 24px;
}
.top-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #eee;
    text-decoration: none;
    transition: color 0.2s ease;
}
.top-link:hover {
    color: #16a34a;
}

/* 移动端适配：手机完整显示图标+文字，不隐藏任何内容 */
@media screen and (max-width: 768px) {
    .top-bar-wrap {
        padding: 0px 15px;
    }
    .top-bar-left {
        gap: 14px;
    }
    /* 移除隐藏文字代码，span正常展示 */
    .top-link svg {
        width: 16px;
        height: 16px;
    }
}








/* =========================
   NAV WRAP
========================= */
.nav-wrap {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  height: 72px;
  gap: 24px;
}

/* =========================
   LOGO
========================= */
.nav-logo a {
  display: flex;
  align-items: center;
}
.nav-logo img {
  height: 60px;
  width: auto;
}

/* =========================
   MENU BASE
========================= */
.nav-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu > ul {
  display: flex;
  gap: 24px;
}

.nav-menu a {
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  transition: 0.2s;
}

/* hover 主色统一 */
.nav-menu a:hover {
  color: var(--primary);
}

/* =========================
   DROPDOWN（关键修复）
========================= */
.nav-menu li {
  position: relative;
}

/* 下拉面板 */
.nav-menu li ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;

  min-width: 210px;
  background: #fff;

  padding: 8px 0;
  border-radius: 10px;

  border: 1px solid var(--border);
  box-shadow: 0 12px 30px rgba(15,23,42,0.08);
}

/* hover 显示 */
.nav-menu li:hover > ul {
  display: block;
}

/* 子菜单项 */
.nav-menu li ul li {
  border-bottom: 1px solid #f1f5f9;
}

.nav-menu li ul li:last-child {
  border-bottom: none;
}

/* 子菜单链接 */
.nav-menu li ul a {
  display: block;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text);
  transition: 0.2s;
}

/* hover：运动绿体系 */
.nav-menu li ul a:hover {
  background: #f0fdf4;        /* 浅运动绿背景 */
  color: var(--primary-dark);
  padding-left: 18px;
}

/* =========================
   ICON
========================= */
.nav-icon {
  font-size: 16px;
  color: var(--text);
  transition: 0.2s;
}

.nav-icon:hover {
  color: var(--primary);
}

/* =========================
   CTA BUTTON（统一品牌按钮）
========================= */
.quote-btn {
  background: var(--primary);
  color: #fff;
  padding: 10px 16px;
  height: 40px;
  display: flex;
  align-items: center;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  transition: 0.2s;
}

.quote-btn:hover {
  background: var(--primary-dark);
}

/* =========================
   RIGHT WRAP
========================= */
.nav-right-wrap {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

/* desktop tool group */
.nav-desktop-tool {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* 移动端汉堡 默认隐藏 */
.mobile-hamburger {
  display: none;
  cursor: pointer;
  color: #111;
  font-size: 1.5rem;
}

/* 手机顶部搜索（仅移动端显示） */
.mobile-only-search {
  display: none;
}

/* 手机菜单底部工具栏（仅展开显示） */
.mobile-menu-bottom {
  display: none;
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(0,0,0,0.08);
  flex-direction: column;
  gap: 1rem;
}
.mobile-social-row {
  display: flex;
  gap: 1.2rem;
}
.mobile-menu-bottom .quote-btn {
  width: 100%;
  justify-content: center;
}

/* ========== 电脑大屏 >1024px 关键修复：菜单和搜索同行不换行 ========== */
@media (min-width: 1025px) {
  .nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
    position: static;
    width: auto;
    padding: 0;
    background: transparent;
  }
  .nav-menu ul {
    display: flex;
    gap: 2rem;
  }
  .mobile-menu-bottom {
    display: none !important;
  }
}

/* ========== 移动端断点 ≤1024px ========== */
@media (max-width: 1024px) {
  /* 隐藏桌面整套搜索+社交询盘 */
  .desktop-search, .nav-desktop-tool {
    display: none;
  }
  /* 显示手机顶部搜索 */
  .mobile-only-search {
    display: block;
  }
  /* 中间文字菜单隐藏，改为下拉 */
  .nav-menu {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    width: 100%;
    background: #ffffff;
    padding: 1.5rem;
  }
  .nav-menu.show {
    display: block;
  }
  .nav-menu ul {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  /* =========新增这一行 放大手机菜单字体========= */
  .nav-menu a {
    font-size: 1.2rem !important;
    color: #111 !important;
  }
  /* 下拉菜单底部社交按钮显示 */
  .mobile-menu-bottom {
    display: flex;
  }
  /* 显示汉堡按钮 */
  .mobile-hamburger {
    display: block !important;
  }
  /* 导航内元素间隙缩小 */
  .nav-inner {
    gap: 1rem;
  }
}

main {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

/* Blocksy同款线性下拉箭头 仅电脑端显示 */
@media (min-width: 1025px) {
  .nav-menu li.menu-item-has-children > a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }
  .nav-menu li.menu-item-has-children > a::after {
    content: "";
    width: 10px;
    height: 10px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23111111' stroke-width='1.5' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    transition: transform 0.22s ease;
  }
  /* 鼠标悬停旋转180度向上，Blocksy原生动画 */
  .nav-menu li.menu-item-has-children:hover > a::after {
    transform: rotate(180deg);
  }
}

@media (max-width: 1024px) {
  /* 手机菜单外层容器 */
  .nav-menu {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    width: 100%;
    background: #ffffff;
    padding-inline: 1.5rem;
    transition: opacity 0.3s ease; /* 增加简单的渐隐效果 */
    padding-top: 0;
    padding-bottom: 30px; /* 底部预留空间，防止按钮遮挡 */
  }
  .nav-menu.show {
    display: block;
  }
  .nav-menu > ul {
    flex-direction: column;
    gap: 0;
    padding: 0;
    margin: 0;
    /* 清除ul底部自带边线 */
    border-bottom: none !important;
  }
  .mobile-menu-bottom {
    display: flex;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eeeeee; /* 菜单和社交之间加分隔线 */
    flex-direction: column;
    gap: 16px;
  }
  .mobile-social-row {
    display: flex;
    gap: 1.2rem;
  }
  .mobile-menu-bottom .quote-btn {
    width: 100%;
    justify-content: center;
  }
  .mobile-hamburger {
    display: block !important;
    color: #111;
  }
  .nav-inner {
    gap: 1rem;
  }

  /* 一级条目分割线，干净细灰线 */
  .nav-menu > ul > li {
    width: 100%;
    border-bottom: 1px solid #eeeeee;
    background: transparent !important;
  }
  /* 最后一个一级li去掉底边线，消除多余分割线 */
  .nav-menu > ul > li:last-child {
    border-bottom: none !important;
  }

  /* 一级链接：紧凑尺寸，无背景 */
  .nav-menu > ul > li > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 1rem !important;
    color: #111 !important;
    background: transparent !important;
  }

  /* 下拉箭头样式 */
.nav-menu > ul > li.menu-item-has-children > a::after {
    content: "";
    width: 14px;
    height: 6px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23111111' stroke-width='1.5' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    transition: transform 0.22s ease;
}

  .nav-menu > ul > li.menu-item-has-children.open > a::after {
    transform: rotate(180deg);
  }

  /* 子菜单默认隐藏，缩进层级 */
  .nav-menu > ul > li ul {
    position: static !important;
    box-shadow: none !important;
    border: none !important;
    background: transparent !important;
    min-width: auto !important;
    display: none !important;
    padding: 0 0 0 1.5rem !important;
    margin: 0;
  }
  .nav-menu > ul > li.menu-item-has-children.open > ul {
    display: block !important;
  }

  /* 二级子链接 更紧凑 */
  .nav-menu > ul > li ul a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 1rem !important;
    color: #111 !important;
  }

  /* 二级带子菜单的箭头 */
  .nav-menu > ul > li ul li.menu-item-has-children > a::after {
    content: "▼";
    font-size: 14px;
    color: #111;
    transition: transform 0.22s ease;
  }
  .nav-menu > ul > li ul li.menu-item-has-children.open > a::after {
    transform: rotate(180deg);
  }

  /* 三级菜单缩进 */
  .nav-menu > ul > li ul li ul {
    padding-left: 1.5rem !important;
  }
}

/* =========================
   SEARCH MODAL BASE
========================= */
.search-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75); /* 更高级深色遮罩 */
  display: grid;
  place-items: center;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition: 0.2s ease;
  z-index: 9999;
}

.search-modal.active {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

/* =========================
   MODAL BOX
========================= */
.search-modal-inner {
  background: #fff;
  padding: 28px;
  width: min(92%, 520px);
  border-radius: 14px;

  text-align: center;

  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}

/* =========================
   CLOSE BUTTON
========================= */
.search-close {
  border: none;
  background: transparent;

  font-size: 14px;
  color: #6b7280;

  cursor: pointer;
  margin-bottom: 16px;

  transition: 0.2s;
}

.search-close:hover {
  color: #22c55e; /* 运动绿 */
}

/* =========================
   INPUT（关键修复）
========================= */
.search-modal-inner input[type="text"] {
  width: 100%;
  padding: 12px 14px;

  border: 1px solid #e5e7eb;
  border-radius: 10px;

  font-size: 14px;

  outline: none;
  transition: 0.2s;
}

.search-modal-inner input[type="text"]:focus {
  border-color: #22c55e;
  box-shadow: 0 0 0 3px rgba(34,197,94,0.15);
}

/* =========================
   BUTTON（统一品牌风）
========================= */
.search-modal-inner button[type="submit"] {
  margin-top: 14px;
  width: 100%;

  padding: 12px 14px;

  background: #22c55e;
  color: #fff;

  border: none;
  border-radius: 10px;

  font-size: 14px;
  font-weight: 600;

  cursor: pointer;

  transition: 0.2s;
}

.search-modal-inner button[type="submit"]:hover {
  background: #16a34a;
}


/* =========================
  弹窗表单
========================= */
  .qmodal{
  display:none;
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.55);
  justify-content:center;
  align-items:center;
  z-index:99999;
  padding:20px;
}

.qmodal.active{
  display:flex;
}

.qmodal-box{
  width:100%;
  max-width:420px;
  background:#fff;
  border-radius:16px;
  overflow:hidden;
  position:relative;
  box-shadow:0 20px 60px rgba(0,0,0,.25);
  animation:up .2s ease;
}

@keyframes up{
  from{transform:translateY(10px);opacity:0}
  to{transform:none;opacity:1}
}

/* header */
.qmodal-head{
  background:#15234d;
  color:#fff;
  padding:22px;
  text-align:center;
}

.qmodal-head h3{
  margin:0 0 6px;
  font-size:18px;
}

.qmodal-head p{
  margin:0;
  font-size:13px;
  opacity:.8;
}

/* body */
.qmodal-body{
  padding:20px;
}

.qmodal-body form{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.qmodal-body input,
.qmodal-body textarea{
  width:100%;
  padding:11px;
  border:1px solid #e5e7eb;
  border-radius:10px;
  font-size:14px;
}

.qmodal-body textarea{
  resize:none;
}

.qmodal-body button{
  background:#15234d;
  color:#fff;
  border:0;
  padding:12px;
  border-radius:10px;
  cursor:pointer;
  font-weight:600;
}

/* OR */
.qmodal-or{
  text-align:center;
  margin:14px 0;
  font-size:12px;
  color:#94a3b8;
  position:relative;
}

.qmodal-or::before,
.qmodal-or::after{
  content:"";
  position:absolute;
  top:50%;
  width:40%;
  height:1px;
  background:#e5e7eb;
}

.qmodal-or::before{left:0}
.qmodal-or::after{right:0}

/* whatsapp */
.qmodal-wa{
  display:block;
  text-align:center;
  background:#25D366;
  color:#fff;
  padding:12px;
  border-radius:10px;
  text-decoration:none;
  font-weight:700;
}

.qmodal-phone{
  text-align:center;
  font-size:12px;
  margin-top:8px;
  color:#64748b;
}

/* close */
.qmodal-close{
  position:absolute;
  right:12px;
  top:8px;
  background:none;
  border:0;
  font-size:26px;
  color:#fff;
  cursor:pointer;
}


/* =========================
   footer
========================= */

/* 页脚全局样式 */
.footer-full {
    background-color: #0f172a;
    color: #cbd5e1;
    padding: 50px 0 20px;
    margin-top: 60px;
}
.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}
.footer-row {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1.3fr;
    gap: 36px;
}
.footer-col h3 {
    color: #ffffff;
    font-size: 16px;
    margin: 0 0 18px;
    font-weight: 600;
}
.footer-logo {
    max-width: 160px;
    margin-bottom: 14px;
}
.footer-desc {
    font-size: 14px;
    line-height: 1.7;
    margin: 0 0 20px;
    opacity: 0.85;
}

/* 底部联系方式 */
.footer-contact-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer-contact-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}
.footer-contact-item a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.2s;
}
.footer-contact-item a:hover {
    color: #16a34a;
}

/* 链接列表 */
.footer-link-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-link-list li {
    margin-bottom: 12px;
}
.footer-link-list li a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}
.footer-link-list li a:hover {
    color: #16a34a;
}

/* 页脚询盘表单 */
.footer-inquiry-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer-inquiry-form input,
.footer-inquiry-form textarea {
    width: 100%;
    padding: 10px 12px;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
}
.footer-inquiry-form textarea {
    resize: none;
}
.footer-submit-btn {
    background: #2F855A;  
    color: #fff;
    border: none;
    padding: 11px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.footer-submit-btn:hover {
    background:#1C4532; 
}

/* 分割线+底部版权 */
.footer-divider {
    height: 1px;
    background: #334155;
    margin: 40px 0 20px;
}
.footer-bottom {
    text-align: center;
    font-size: 13px;
    opacity: 0.75;
}

/* 移动端适配 768px以下单列 */
@media screen and (max-width: 768px) {
    .footer-row {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .footer-full {
        padding: 35px 0 18px;
    }
}

