/* ==========================================================
   捞外卖（重庆）科技有限公司 官网样式 v2
   版式风格参照行业主流小程序服务商官网：蓝色主题 + 行业图片卡
   主色调：#FF6A3D，深蓝 #1B2A4D
   ========================================================== */
:root {
  --primary: #ff6a3d;
  --primary-dark: #1b2a4d;
  --primary-deep: #16223f;
  --primary-light: #fff0ea;
  --text: #333333;
  --text-light: #7a8299;
  --bg-gray: #f5f7fb;
  --white: #ffffff;
  --radius: 10px;
  --shadow: 0 6px 24px rgba(27, 42, 77, 0.08);
  --max-width: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  line-height: 1.7;
  background: var(--white);
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

/* ---------------- 顶部导航 ---------------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}
.header .container { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.logo { display: flex; align-items: center; gap: 12px; font-size: 27px; font-weight: 800; letter-spacing: 1px; color: var(--primary-dark); }
.logo .logo-mark {
  width: 46px; height: 46px; border-radius: 11px;
  background: linear-gradient(135deg, var(--primary), #ffa37e);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 800;
}
.nav { display: flex; gap: 34px; }
.nav a {
  font-size: 15px; color: var(--text); padding: 6px 0;
  border-bottom: 2px solid transparent; transition: color 0.2s;
}
.nav a:hover, .nav a.active { color: var(--primary); border-bottom-color: var(--primary); }
.nav-toggle {
  display: none; background: none; border: none; font-size: 26px;
  color: var(--primary-dark); cursor: pointer; padding: 8px;
}

/* ---------------- 首页 Banner ---------------- */
.hero {
  position: relative;
  background: var(--primary-deep) url("../img/hero.png") center/cover no-repeat;
  color: #fff;
}
.hero .mask {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(22, 34, 63, 0.92) 25%, rgba(22, 34, 63, 0.55) 70%, rgba(22, 34, 63, 0.35));
}
.hero .container { position: relative; padding: 110px 20px 120px; }
.hero h1 { font-size: 44px; font-weight: 800; letter-spacing: 1px; margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: #ffa37e; }
.hero p { font-size: 18px; opacity: 0.88; max-width: 620px; margin-bottom: 38px; }
.hero .btn-group { display: flex; gap: 16px; flex-wrap: wrap; }
.hero .dots { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; }
.hero .dots span { width: 22px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.35); }
.hero .dots span.on { background: #fff; }

/* ---------------- 通用按钮 ---------------- */
.btn {
  display: inline-block; padding: 13px 36px; border-radius: 999px;
  font-size: 16px; font-weight: 600; min-height: 46px;
  transition: transform 0.15s, box-shadow 0.15s; text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 6px 18px rgba(255, 106, 61, 0.4); }
.btn-ghost { border: 1.5px solid rgba(255, 255, 255, 0.75); color: #fff; }
.btn-outline { border: 1.5px solid var(--primary); color: var(--primary); }

/* ---------------- 区块通用 ---------------- */
.section { padding: 84px 0; }
.section-gray { background: var(--bg-gray); }
.section-head { text-align: center; margin-bottom: 52px; }
.section-head .en { font-size: 13px; color: var(--primary); text-transform: uppercase; letter-spacing: 3px; font-weight: 700; }
.section-head h2 { font-size: 32px; color: var(--primary-dark); margin: 8px 0 12px; }
.section-head p { color: var(--text-light); max-width: 640px; margin: 0 auto; }

/* ---------------- 行业图片卡（首页10宫格） ---------------- */
.industry-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.industry-card {
  position: relative; display: block; border-radius: var(--radius);
  overflow: hidden; aspect-ratio: 23 / 15; box-shadow: var(--shadow);
}
.industry-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s; }
.industry-card .mask {
  position: absolute; inset: 0;
  background: rgba(27, 42, 77, 0.62);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; color: #fff; padding: 12px;
  transition: background 0.3s;
}
.industry-card:hover img { transform: scale(1.08); }
.industry-card:hover .mask { background: rgba(255, 106, 61, 0.72); }
.industry-card h3 { font-size: 19px; font-weight: 700; margin-bottom: 6px; }
.industry-card p { font-size: 12.5px; opacity: 0.85; line-height: 1.55; }

/* ---------------- Tabs ---------------- */
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 36px; }
.tab-btn {
  padding: 9px 26px; border-radius: 999px; border: 1px solid #dfe5f2;
  background: #fff; color: var(--text); font-size: 14.5px; cursor: pointer;
  transition: all 0.2s; min-height: 40px;
}
.tab-btn:hover { color: var(--primary); border-color: var(--primary); }
.tab-btn.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.tab-panel { display: none; animation: fade 0.35s; }
.tab-panel.on { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.solution-item {
  display: flex; gap: 24px; align-items: flex-start;
  background: #fff; border-radius: var(--radius); padding: 30px;
  box-shadow: var(--shadow); margin-bottom: 18px;
}
.solution-item .num {
  flex-shrink: 0; width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #ffa37e);
  color: #fff; font-size: 20px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.solution-item h3 { color: var(--primary-dark); font-size: 18px; margin-bottom: 6px; }
.solution-item p { color: var(--text-light); font-size: 14px; }

/* ---------------- 卡片栅格 ---------------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: #fff; border-radius: var(--radius); padding: 32px 26px;
  box-shadow: var(--shadow); transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 14px 32px rgba(27, 42, 77, 0.14); }
.card .icon {
  width: 54px; height: 54px; border-radius: 14px;
  background: var(--primary-light); color: var(--primary);
  font-size: 26px; display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.card h3 { font-size: 18px; color: var(--primary-dark); margin-bottom: 10px; }
.card p { font-size: 14px; color: var(--text-light); }

/* ---------------- 功能场景小卡（产品页） ---------------- */
.scene-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.scene-card {
  background: #fff; border-radius: var(--radius); padding: 24px 20px;
  box-shadow: var(--shadow); border-top: 3px solid transparent; transition: all 0.2s;
}
.scene-card:hover { border-top-color: var(--primary); transform: translateY(-4px); }
.scene-card h3 { font-size: 16px; color: var(--primary-dark); margin-bottom: 8px; }
.scene-card p { font-size: 13px; color: var(--text-light); }

/* ---------------- 案例 ---------------- */
.case-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.case-card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: transform 0.2s;
}
.case-card:hover { transform: translateY(-6px); }
.case-thumb { height: 150px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 34px; font-weight: 800; letter-spacing: 2px; }
.case-card .body { padding: 18px 20px 22px; }
.case-card h3 { font-size: 16px; color: var(--primary-dark); margin-bottom: 8px; }
.case-card p { font-size: 13px; color: var(--text-light); }
.case-card .tags { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  display: inline-block; font-size: 12px; color: var(--primary);
  background: var(--primary-light); border-radius: 6px; padding: 2px 9px;
}
.more-wrap { text-align: center; margin-top: 40px; }

/* ---------------- 新闻 ---------------- */
.news-list { max-width: 860px; margin: 0 auto; }
.news-item {
  display: flex; justify-content: space-between; gap: 24px; align-items: baseline;
  padding: 20px 6px; border-bottom: 1px dashed #e3e8f4;
}
.news-item h3 { font-size: 16px; color: var(--primary-dark); font-weight: 600; }
.news-item h3 a:hover { color: var(--primary); }
.news-item .date { color: var(--text-light); font-size: 13px; flex-shrink: 0; }

/* ---------------- 数据统计 / 服务流程 ---------------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stats .num { font-size: 40px; font-weight: 800; color: var(--primary); }
.stats .label { color: var(--text-light); font-size: 14px; margin-top: 4px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.step { text-align: center; padding: 30px 18px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.step .no {
  width: 46px; height: 46px; margin: 0 auto 14px; border-radius: 50%;
  background: var(--primary-light); color: var(--primary);
  font-weight: 800; font-size: 18px; display: flex; align-items: center; justify-content: center;
}
.step h3 { font-size: 16px; color: var(--primary-dark); margin-bottom: 6px; }
.step p { font-size: 13px; color: var(--text-light); }

/* ---------------- 联系 CTA ---------------- */
.cta {
  background: linear-gradient(120deg, var(--primary-deep), var(--primary));
  color: #fff; border-radius: var(--radius); padding: 56px 40px;
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
}
.cta h2 { font-size: 28px; margin-bottom: 10px; }
.cta p { opacity: 0.85; }

/* ---------------- 页脚 ---------------- */
.footer { background: var(--primary-deep); color: rgba(255, 255, 255, 0.75); padding: 60px 0 0; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 40px; }
.footer h4 { color: #fff; font-size: 16px; margin-bottom: 16px; }
.footer a:hover { color: #fff; }
.footer li { margin-bottom: 10px; }
.footer .qr { width: 120px; border-radius: 8px; background: #fff; padding: 6px; }
.footer .qr-tip { margin-top: 8px; font-size: 12px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.12); padding: 18px 0; text-align: center; font-size: 13px; }

/* ---------------- 子页面页头（产品页 banner） ---------------- */
.page-hero { position: relative; color: #fff; background: var(--primary-deep); overflow: hidden; }
.page-hero .bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.page-hero .mask { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(22, 34, 63, 0.92) 30%, rgba(22, 34, 63, 0.55)); }
.page-hero .container { position: relative; padding: 90px 20px; }
.page-hero h1 { font-size: 36px; font-weight: 800; margin-bottom: 12px; }
.page-hero p { font-size: 17px; opacity: 0.88; margin-bottom: 28px; }

/* ---------------- 联系页 ---------------- */
.contact-wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: 30px; }
.contact-info { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 34px; }
.contact-info .item { display: flex; gap: 16px; margin-bottom: 26px; }
.contact-info .item .icon {
  width: 46px; height: 46px; flex-shrink: 0; border-radius: 12px;
  background: var(--primary-light); color: var(--primary);
  display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.contact-info .item h3 { font-size: 15px; color: var(--primary-dark); margin-bottom: 2px; }
.contact-info .item p { color: var(--text-light); font-size: 14.5px; }
.qr-panel { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 34px; text-align: center; }
.qr-panel img { width: 200px; margin: 12px auto 0; border-radius: 10px; }
.qr-panel p { color: var(--text-light); font-size: 14px; margin-top: 10px; }

/* ---------------- 悬浮客服窗（右侧） ---------------- */
.float-widget {
  position: fixed; right: 18px; bottom: 120px; z-index: 90;
  width: 150px; background: #fff; border-radius: 14px;
  box-shadow: 0 10px 30px rgba(27, 42, 77, 0.18);
  padding: 16px 12px 12px; text-align: center;
}
.float-widget .avatar {
  width: 56px; height: 56px; margin: -44px auto 8px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #ffb08a);
  color: #fff; font-size: 26px; display: flex; align-items: center; justify-content: center;
  border: 3px solid #fff; box-shadow: 0 4px 12px rgba(255, 106, 61, 0.35);
}
.float-widget .bubble {
  background: var(--primary-light); color: var(--primary-dark);
  font-size: 12.5px; border-radius: 10px; padding: 7px 8px; margin-bottom: 10px;
}
.float-widget .phone { font-size: 13px; color: var(--primary-dark); font-weight: 700; margin-bottom: 10px; }
.float-widget .w-btn {
  display: block; font-size: 13px; padding: 8px 0; border-radius: 8px; margin-top: 6px;
  border: 1px solid var(--primary); color: var(--primary);
}
.float-widget .w-btn.fill { background: var(--primary); color: #fff; }
.float-widget .w-btn:hover { opacity: 0.85; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1024px) {
  .industry-grid { grid-template-columns: repeat(3, 1fr); }
  .case-grid { grid-template-columns: repeat(3, 1fr); }
  .scene-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .nav {
    display: none; position: absolute; top: 74px; left: 0; right: 0;
    background: #fff; flex-direction: column; gap: 0;
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.08); padding: 8px 0;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 24px; border-bottom: none; }
  .nav-toggle { display: block; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats, .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-wrap { grid-template-columns: 1fr; }
  .hero h1 { font-size: 30px; }
  .hero .container { padding: 70px 20px 90px; }
  .section { padding: 56px 0; }
  .section-head h2 { font-size: 26px; }
  .page-hero h1 { font-size: 28px; }
  .float-widget { display: none; }
}
@media (max-width: 560px) {
  .industry-grid { grid-template-columns: repeat(2, 1fr); }
  .case-grid, .scene-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .grid-4, .steps, .footer-grid { grid-template-columns: 1fr; }
  .solution-item { flex-direction: column; }
  .cta { padding: 40px 24px; }
  .news-item { flex-direction: column; gap: 4px; }
}
