/* ===== 厨具设备企业网站 样式 ===== */
:root {
  --brand: #1e4e8c;
  --brand-dark: #15335c;
  --accent: #f5a623;
  --accent-dark: #e08e0b;
  --text: #2b2b2b;
  --text-light: #6b7280;
  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --bg-dark: #0f2236;
  --border: #e3e8ef;
  --radius: 10px;
  --shadow: 0 8px 28px rgba(20, 40, 70, 0.10);
  --maxw: 1180px;
}

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

/* 顶部栏 */
.topbar {
  background: var(--bg-dark);
  color: #cdd9e6;
  font-size: 13px;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; height: 40px; }
.topbar a { color: #cdd9e6; }
.topbar .sep { opacity: .4; margin: 0 10px; }

/* 导航 */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav .container { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: var(--brand); }
.logo .mark {
  width: 38px; height: 38px; border-radius: 9px;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff; display: grid; place-items: center; font-size: 20px;
}
.logo .logo-img { height: 44px; width: auto; display: block; border-radius: 4px; }
.logo .logo-name { display: none; }
.nav-menu { display: flex; gap: 4px; align-items: center; }
.nav-menu a {
  padding: 8px 14px; border-radius: 8px; font-weight: 600; color: var(--text);
  transition: .2s;
}
.nav-menu a:hover, .nav-menu a.active { background: var(--bg-soft); color: var(--brand); }
.lang-switch { display: flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; margin-left: 8px; }
.lang-switch button {
  border: none; background: #fff; padding: 7px 12px; cursor: pointer; font-weight: 700; color: var(--text-light);
}
.lang-switch button.active { background: var(--brand); color: #fff; }
.nav-toggle { display: none; background: none; border: none; font-size: 24px; cursor: pointer; }

/* 按钮 */
.btn {
  display: inline-block; padding: 12px 26px; border-radius: 8px; font-weight: 700; cursor: pointer;
  border: none; transition: .2s; font-size: 15px;
}
.btn-primary { background: var(--accent); color: #2b1a00; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-brand { background: var(--brand); color: #fff; }
.btn-brand:hover { background: var(--brand-dark); }
.btn-outline { background: transparent; border: 2px solid #fff; color: #fff; }
.btn-outline:hover { background: #fff; color: var(--brand); }

/* Hero */
.hero {
  position: relative; color: #fff; padding: 110px 0 120px;
  background: linear-gradient(120deg, #0f2236 0%, #1e4e8c 60%, #2d6cb0 100%);
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; right: -80px; top: -80px; width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(245,166,35,.25), transparent 70%); border-radius: 50%;
}
.hero h1 { font-size: clamp(26px, 5vw, 44px); line-height: 1.2; margin-bottom: 18px; max-width: 760px; }
.hero p { font-size: clamp(15px, 1.4vw, 18px); max-width: 640px; color: #d6e2f0; margin-bottom: 30px; }
.hero .btn { margin-right: 12px; }
.hero-stats { display: flex; gap: 40px; margin-top: 50px; flex-wrap: wrap; }
.hero-stats .num { font-size: 32px; font-weight: 800; color: var(--accent); }
.hero-stats .lbl { font-size: 14px; color: #cdd9e6; }

/* 通用区块 */
.section { padding: 80px 0; }
.section.soft { background: var(--bg-soft); }
.section-head { text-align: center; margin-bottom: 50px; }
.section-head .eyebrow { color: var(--accent-dark); font-weight: 700; letter-spacing: 2px; font-size: 13px; text-transform: uppercase; }
.section-head h2 { font-size: clamp(23px, 3.4vw, 34px); margin: 8px 0 12px; color: var(--brand-dark); }
.section-head p { color: var(--text-light); max-width: 640px; margin: 0 auto; }

/* 特性卡片 */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.feature-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 32px 28px; box-shadow: var(--shadow);
}
.feature-card .ico { width: 54px; height: 54px; border-radius: 12px; background: var(--bg-soft); color: var(--brand); display: grid; place-items: center; font-size: 26px; margin-bottom: 18px; }
.feature-card h3 { font-size: 20px; margin-bottom: 10px; color: var(--brand-dark); }
.feature-card p { color: var(--text-light); }

/* 产品 */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.product-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: .25s; display: flex; flex-direction: column; }
.product-card:hover { transform: translateY(-6px); box-shadow: 0 16px 36px rgba(20,40,70,.16); }
.product-thumb { position: relative; height: 200px; background: linear-gradient(135deg, #1e4e8c, #2d6cb0); display: grid; place-items: center; color: #fff; font-size: 40px; overflow: hidden; }
.product-thumb > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-body { padding: 18px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.product-cat {
  position: absolute; left: 12px; bottom: 10px;
  color: #fff; background: rgba(0,0,0,.55); backdrop-filter: blur(2px);
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
  padding: 5px 10px; border-radius: 999px; line-height: 1;
  box-shadow: 0 2px 6px rgba(0,0,0,.18);
  z-index: 1;
}
.product-body h3 { font-size: 18px; margin: 10px 0 8px; color: var(--brand-dark); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis; }
.product-body p {
  color: var(--text-light); font-size: 14px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden; text-overflow: ellipsis;
  line-height: 1.6;
}
.product-spec { margin-top: 10px; font-size: 13px; color: var(--text); background: var(--bg-soft); padding: 8px 12px; border-radius: 6px; }
.product-card { transition: .25s; }
.product-card:hover { transform: translateY(-6px); box-shadow: 0 16px 36px rgba(20,40,70,.16); }
.product-card .read-more {
  display: inline-block; margin-top: auto; padding-top: 12px; font-size: 13px; font-weight: 700;
  color: var(--brand); transition: .2s;
}
.product-card:hover .read-more { color: var(--accent-dark); }

/* ===== 产品详情弹窗 ===== */
.prod-modal {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(15, 34, 54, .55); backdrop-filter: blur(3px);
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.prod-modal.open { display: flex; }
.prod-modal-box {
  background: #fff; border-radius: var(--radius); max-width: 720px; width: 100%;
  max-height: 88vh; overflow: auto; position: relative; box-shadow: var(--shadow);
  animation: solPop .22s ease;
}
.prod-modal-close {
  position: absolute; top: 12px; right: 14px; z-index: 2;
  width: 36px; height: 36px; border: none; border-radius: 50%;
  background: rgba(255,255,255,.9); color: #333; font-size: 24px; line-height: 1;
  cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.prod-modal-close:hover { background: #fff; color: var(--brand); }
.prod-modal-img { width: 100%; height: 260px; background: linear-gradient(135deg, var(--brand), var(--brand-dark)); overflow: hidden; display: grid; place-items: center; color: #fff; font-size: 64px; }
.prod-modal-img > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.prod-modal-body { padding: 26px 30px 32px; }
.prod-modal-cat { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--brand); background: var(--bg-soft); padding: 5px 12px; border-radius: 999px; margin-bottom: 12px; }
.prod-modal-title { font-size: 24px; color: var(--brand-dark); margin-bottom: 14px; }
.prod-modal-desc { color: var(--text); font-size: 15px; line-height: 1.85; white-space: pre-wrap; margin-bottom: 18px; }
.prod-modal-specs { font-size: 14px; color: var(--text); background: var(--bg-soft); padding: 12px 16px; border-radius: 8px; font-weight: 600; }
.prod-modal-cta { margin-top: 22px; }
@media (max-width: 768px) {
  .prod-modal-box { max-height: 90vh; }
  .prod-modal-img { height: 190px; font-size: 48px; }
  .prod-modal-body { padding: 22px 20px 28px; }
  .prod-modal-title { font-size: 21px; }
}

/* 解决方案 */
.solution-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.solution-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 0; box-shadow: var(--shadow); overflow: hidden; }
.solution-card .ico { width: 100%; height: 180px; border-radius: 0; background: linear-gradient(135deg, var(--brand), var(--brand-dark)); color: #fff; display: grid; place-items: center; font-size: 40px; overflow: hidden; }
.solution-card .ico > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.solution-card .content { padding: 22px 24px 24px; }
.solution-card h3 { font-size: 19px; color: var(--brand-dark); margin-bottom: 8px; }
.solution-card .desc {
  color: var(--text-light); font-size: 14px; line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden; text-overflow: ellipsis;
}
.solution-card { transition: .25s; }
.solution-card:hover { transform: translateY(-6px); box-shadow: 0 16px 36px rgba(20,40,70,.16); }
.solution-card .read-more {
  display: inline-block; margin-top: 12px; font-size: 13px; font-weight: 700;
  color: var(--brand); transition: .2s;
}
.solution-card:hover .read-more { color: var(--accent-dark); }

/* ===== 方案详情弹窗 ===== */
.sol-modal {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(15, 34, 54, .55); backdrop-filter: blur(3px);
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.sol-modal.open { display: flex; }
.sol-modal-box {
  background: #fff; border-radius: var(--radius); max-width: 720px; width: 100%;
  max-height: 88vh; overflow: auto; position: relative; box-shadow: var(--shadow);
  animation: solPop .22s ease;
}
@keyframes solPop { from { transform: translateY(16px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.sol-modal-close {
  position: absolute; top: 12px; right: 14px; z-index: 2;
  width: 36px; height: 36px; border: none; border-radius: 50%;
  background: rgba(255,255,255,.9); color: #333; font-size: 24px; line-height: 1;
  cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.sol-modal-close:hover { background: #fff; color: var(--brand); }
.sol-modal-img { width: 100%; height: 240px; background: linear-gradient(135deg, var(--brand), var(--brand-dark)); overflow: hidden; }
.sol-modal-img > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sol-modal-body { padding: 26px 30px 32px; }
.sol-modal-title { font-size: 24px; color: var(--brand-dark); margin-bottom: 14px; }
.sol-modal-desc { color: var(--text); font-size: 15px; line-height: 1.85; white-space: pre-wrap; }
@media (max-width: 768px) {
  .sol-modal-box { max-height: 90vh; }
  .sol-modal-img { height: 180px; }
  .sol-modal-body { padding: 22px 20px 28px; }
  .sol-modal-title { font-size: 21px; }
}

/* 关于页 */
.about-story { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.about-story .pic { height: 320px; border-radius: var(--radius); background: linear-gradient(135deg, #1e4e8c, #2d6cb0); display: grid; place-items: center; color: #fff; font-size: 60px; overflow: hidden; }
.about-story .pic > img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: var(--radius); }
.story-text { position: relative; transition: max-height .35s ease; }
.story-text.collapsed { max-height: 6em; overflow: hidden; }
.story-text.collapsed::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2.2em;
  background: linear-gradient(to bottom, rgba(255,255,255,0), #fff);
  pointer-events: none;
}
.about-readmore {
  display: inline-block; margin-top: 14px; font-size: 14px; font-weight: 700;
  color: var(--brand); background: none; border: none; cursor: pointer; padding: 0;
  font-family: inherit; transition: .2s;
}
.about-readmore:hover { color: var(--accent-dark); }
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 20px; }
.value-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.value-card h3 { color: var(--brand-dark); margin-bottom: 8px; }

/* 招商加盟 */
.franchise-intro { text-align: center; max-width: 720px; margin: 0 auto 50px; }
.benefit-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.benefit-card { background: #fff; border-top: 4px solid var(--accent); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.benefit-card h3 { color: var(--brand-dark); margin-bottom: 8px; }
.benefit-card p { color: var(--text-light); font-size: 14px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 10px; }
.step { background: var(--bg-dark); color: #fff; border-radius: var(--radius); padding: 24px; position: relative; }
.step .n { font-size: 30px; font-weight: 800; color: var(--accent); }
.step h4 { margin: 6px 0; }
.step p { color: #cdd9e6; font-size: 14px; }

/* 联系 */
.contact-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.contact-info h3 { color: var(--brand-dark); margin-bottom: 16px; }
.contact-info .item { display: flex; gap: 14px; margin-bottom: 18px; }
.contact-info .item .ico { flex: 0 0 44px; height: 44px; border-radius: 10px; background: var(--bg-soft); color: var(--brand); display: grid; place-items: center; font-size: 20px; }
.contact-info .item .v { font-weight: 600; }
.contact-info .item .l { color: var(--text-light); font-size: 13px; }
form .field { margin-bottom: 16px; }
form label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 14px; }
form input, form textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 8px; font-size: 15px; font-family: inherit;
}
form input:focus, form textarea:focus { outline: none; border-color: var(--brand); }
form textarea { min-height: 120px; resize: vertical; }
.form-msg { padding: 10px 14px; border-radius: 8px; margin-bottom: 14px; font-size: 14px; display: none; }
.form-msg.ok { display: block; background: #e7f6ec; color: #1c7a3e; }
.form-msg.err { display: block; background: #fdeaea; color: #b3261e; }

/* CTA */
.cta { background: linear-gradient(120deg, var(--brand-dark), var(--brand)); color: #fff; border-radius: var(--radius); padding: 56px 50px; text-align: center; }
.cta h2 { font-size: clamp(22px, 3vw, 30px); margin-bottom: 12px; }
.cta p { color: #d6e2f0; margin-bottom: 26px; }

/* 页脚 */
.footer { background: var(--bg-dark); color: #cdd9e6; padding: 50px 0 24px; }
.footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; }
.footer h4 { color: #fff; margin-bottom: 16px; font-size: 15px; }
.footer a { color: #cdd9e6; display: block; margin-bottom: 8px; font-size: 14px; }
.footer a:hover { color: var(--accent); }
.footer .copy { border-top: 1px solid rgba(255,255,255,.12); margin-top: 30px; padding-top: 18px; text-align: center; font-size: 13px; color: #8aa0b8; }
.footer .foot-admin { text-align: center; margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.08); }
.footer .foot-admin a { color: #8aa0b8; font-size: 13px; letter-spacing: .5px; text-decoration: none; }
.footer .foot-admin a:hover { color: #cdd9e6; }

/* 内页 banner */
.page-banner { background: linear-gradient(120deg, #0f2236, #1e4e8c); color: #fff; padding: 70px 0; text-align: center; }
.page-banner h1 { font-size: clamp(26px, 4.5vw, 40px); margin-bottom: 10px; }
.page-banner p { color: #cdd9e6; }

.breadcrumb { font-size: 13px; color: #9fb3c8; margin-bottom: 8px; }

/* ===== 响应式 ===== */
/* 平板：缩进、降密、双列网格 */
@media (max-width: 1024px) {
  .container { padding: 0 18px; }
  .section { padding: 64px 0; }
  .hero { padding: 92px 0 100px; }
  .feature-grid, .product-grid, .value-grid { grid-template-columns: repeat(2, 1fr); }
  .benefit-grid, .steps { grid-template-columns: repeat(2, 1fr); }
  .footer .cols { grid-template-columns: 1fr 1fr; }
  .nav-menu a { padding: 8px 10px; font-size: 14px; }
}

/* 手机：导航折叠为下拉、单列网格、流体间距 */
@media (max-width: 768px) {
  .nav .container { height: 60px; }
  .logo { font-size: 18px; }
  .nav-menu {
    display: none; position: absolute; top: 60px; left: 0; right: 0;
    background: #fff; flex-direction: column; align-items: stretch; gap: 2px;
    padding: 10px 14px; border-bottom: 1px solid var(--border); box-shadow: var(--shadow);
  }
  .nav-menu.open { display: flex; }
  .nav-menu a { padding: 12px 10px; width: 100%; }
  .nav-toggle { display: block; }
  .lang-switch { margin: 6px 0 0; width: 100%; }
  .lang-switch button { flex: 1; padding: 10px 12px; }

  .hero { padding: 64px 0 72px; }
  .hero .btn { display: block; width: 100%; margin: 0 0 12px; text-align: center; }
  .hero-stats { gap: 18px 30px; }
  .hero-stats .num { font-size: 26px; }

  .section { padding: 52px 0; }
  .section-head { margin-bottom: 34px; }
  .page-banner { padding: 52px 0; }

  .feature-grid, .product-grid, .value-grid, .benefit-grid, .steps,
  .solution-grid, .about-story, .contact-wrap, .footer .cols { grid-template-columns: 1fr; }

  .about-story .pic { height: 220px; }
  .cta { padding: 40px 22px; }

  .topbar { font-size: 12px; }
  .topbar .sep { margin: 0 6px; }
  .tb-email { display: none; }   /* 小屏隐藏邮箱，避免顶栏溢出 */

  .step { padding: 18px; }
  .footer .copy { font-size: 12px; }
}

/* 超小屏手机 */
@media (max-width: 380px) {
  .hero h1 { letter-spacing: -.5px; }
  .section-head h2 { font-size: 23px; }
  .container { padding: 0 14px; }
  .logo .logo-img { height: 36px; }
}

