/* ==========================================================================
   苏州为厚餐饮管理有限公司 官网样式表
   全站共用 —— 纯 CSS，无任何 JS 依赖
   配色：咖啡棕主题
   ========================================================================== */

/* ---------- 变量与基础 ---------- */
:root {
  --brown-dark: #3E2A1A;   /* 深咖啡：标题、页脚底色 */
  --brown: #6F4E2E;        /* 咖啡棕：主色 */
  --brown-light: #A97C50;  /* 浅棕：辅助、悬停 */
  --cream: #FAF6F0;        /* 米白：浅色区块背景 */
  --text: #3A3A3A;         /* 正文 */
  --text-light: #8C8C8C;   /* 次要文字 */
  --white: #FFFFFF;
  --border: #E8DFD3;
  --radius: 10px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
}

img { max-width: 100%; display: block; }

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

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- 图片占位块（替换真实图片后可删除本类） ---------- */
.image-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #EFE7DC;
  border: 1px dashed #C9B9A4;
  color: #A08B70;
  font-size: 14px;
  text-align: center;
  line-height: 1.8;
  border-radius: var(--radius);
  min-height: 200px;
}

/* ---------- 顶部导航 ---------- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-mark {
  width: 46px;
  height: 46px;
  background: var(--brown);
  color: var(--white);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 2px;
}

.logo-mark-img {
  width: 46px;
  height: 46px;
  display: block;
  border-radius: 8px;
}

.logo-text { display: flex; flex-direction: column; justify-content: center; line-height: 1.2; }
/* 主标题：时尚现代的无衬线英文字体，字距拉宽 */
.logo-text strong {
  font-family: "Helvetica Neue", Helvetica, "Inter", "Montserrat", "Segoe UI", Arial, sans-serif;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--brown-dark);
  white-space: nowrap;
}
/* 副标：极浅灰、小字号 */
.logo-text em {
  font-style: normal;
  font-size: 10px;
  letter-spacing: 2px;
  color: #C6C0B9;
  margin-top: 3px;
  white-space: nowrap;
}

.site-nav { display: flex; gap: 34px; }

.site-nav a {
  color: var(--text);
  font-size: 15px;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s;
}

.site-nav a:hover,
.site-nav a.active { color: var(--brown); border-bottom-color: var(--brown); }

/* 汉堡按钮（仅手机端显示） */
.nav-toggle { display: none; }
.nav-burger { display: none; cursor: pointer; padding: 8px; }
.nav-burger span {
  display: block; width: 22px; height: 2px;
  background: var(--brown-dark); margin: 5px 0;
}

/* ---------- 首屏 Banner ---------- */
.hero {
  position: relative;
  background: var(--brown-dark);
  color: var(--white);
  overflow: hidden;
  min-height: 560px;
  display: flex;
  align-items: center;
}

/* 背景照片：绝对铺满 + 模糊 + 压暗，保证上层文字可读 */
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: blur(4px) brightness(0.7) saturate(1.05);
  transform: scale(1.06);
  z-index: 0;
}

/* 蒙版：深咖啡色半透明叠加 */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(62, 42, 26, 0.78) 0%, rgba(62, 42, 26, 0.62) 50%, rgba(62, 42, 26, 0.82) 100%);
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding: 104px 24px 96px;
  max-width: 1180px;
}

.hero-tag {
  display: inline-block;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 999px;
  padding: 4px 16px;
  font-size: 13px;
  letter-spacing: 2px;
  margin-bottom: 22px;
  color: #E8DCCB;
}

.hero h1 {
  font-size: 40px;
  line-height: 1.35;
  font-weight: 700;
  margin-bottom: 18px;
}

.hero-desc {
  max-width: 560px;
  color: #D8CCBB;
  margin-bottom: 30px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-media { border-radius: 0; min-height: 320px; margin-top: 8px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-block;
  padding: 12px 32px;
  border-radius: 6px;
  font-size: 15px;
  transition: all 0.2s;
  cursor: pointer;
}

.btn-primary { background: var(--brown-light); color: var(--white); }
.btn-primary:hover { background: var(--brown); }

.btn-outline { border: 1px solid rgba(255,255,255,0.6); color: var(--white); }
.btn-outline:hover { background: rgba(255,255,255,0.12); }

.btn-light { background: var(--white); color: var(--brown-dark); }
.btn-light:hover { background: var(--cream); }

/* ---------- 通用区块 ---------- */
.section { padding: 72px 0; }
.section-alt { background: var(--cream); }

.section-head { text-align: center; margin-bottom: 44px; }
.section-head h2 {
  font-size: 30px;
  color: var(--brown-dark);
  margin-bottom: 10px;
  letter-spacing: 1px;
}
.section-head p { color: var(--text-light); }

/* ---------- 网格 ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- 服务卡片 ---------- */
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  display: block;
  transition: all 0.25s;
}

.service-card:hover {
  border-color: var(--brown-light);
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(111, 78, 46, 0.10);
}

.service-icon { margin-bottom: 16px; min-height: 160px; }

/* 内容图片（替换占位块后的照片） */
.service-photo {
  width: 100%;
  display: block;
  border-radius: var(--radius);
}

.service-card h3 {
  font-size: 18px;
  color: var(--brown-dark);
  margin-bottom: 8px;
}

.service-card p { font-size: 14px; color: var(--text-light); margin-bottom: 14px; }

.service-link { font-size: 14px; color: var(--brown-light); }

/* ---------- 特点卡片 ---------- */
.feature-card {
  background: var(--white);
  border-left: 4px solid var(--brown-light);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 2px 10px rgba(62, 42, 26, 0.05);
}

.feature-card h3 {
  font-size: 18px;
  color: var(--brown-dark);
  margin-bottom: 10px;
}

.feature-card .feature-sub {
  font-size: 14px;
  color: var(--brown-light);
  margin-bottom: 12px;
  line-height: 1.5;
}

.feature-card p { font-size: 15px; color: var(--text-light); }

/* ---------- 案例卡片 ---------- */
.case-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
}

.case-card .image-placeholder { border-radius: 0; min-height: 240px; }

.case-photo {
  width: 100%;
  display: block;
}

.case-info { padding: 20px; }

.case-info h3 { font-size: 17px; color: var(--brown-dark); margin-bottom: 6px; }
.case-info p { font-size: 14px; color: var(--text-light); }

/* ---------- 合作流程 ---------- */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}

.steps li {
  background: var(--white);
  border-radius: var(--radius);
  padding: 26px 22px;
  box-shadow: 0 2px 10px rgba(62, 42, 26, 0.05);
}

.step-num {
  display: inline-block;
  font-size: 26px;
  font-weight: 700;
  color: var(--brown-light);
  margin-bottom: 10px;
}

.steps h3 { font-size: 17px; color: var(--brown-dark); margin-bottom: 8px; }
.steps p { font-size: 14px; color: var(--text-light); }

/* ---------- 底部行动区 ---------- */
.cta {
  background: var(--brown);
  color: var(--white);
  text-align: center;
  padding: 64px 0;
}

.cta h2 { font-size: 28px; margin-bottom: 12px; }
.cta p { color: #EBE0D2; margin-bottom: 26px; }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--brown-dark); color: #C9BBA8; font-size: 14px; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.5fr;
  gap: 40px;
  padding-top: 52px;
  padding-bottom: 40px;
}

/* 社交媒体图标（提高优先级，覆盖 .site-footer a 的 display:block 与 padding） */
.social-links { display: flex; gap: 12px; flex-wrap: wrap; }

.site-footer .social-links a {
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #C9BBA8;
  transition: all 0.2s;
}

.site-footer .social-links a:hover {
  color: #FFFFFF;
  border-color: #FFFFFF;
  background: rgba(255,255,255,0.08);
}

.social-links svg { width: 26px; height: 26px; display: block; flex-shrink: 0; }

.footer-logo {
  color: var(--white);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 4px;
  margin-bottom: 10px;
}

.footer-desc { line-height: 1.9; }

.site-footer h4 {
  color: var(--white);
  font-size: 15px;
  margin-bottom: 14px;
  font-weight: 500;
}

.site-footer a { color: #C9BBA8; display: block; padding: 4px 0; }
.site-footer a:hover { color: var(--white); }

.footer-bar {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 16px 0;
  font-size: 13px;
  text-align: center;
}

.footer-bar a { color: #C9BBA8; display: inline; }
.footer-bar a:hover { color: var(--white); }

/* ==========================================================================
   响应式（移动端优先适配 375px 起）
   ========================================================================== */
@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .client-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 720px) {
  .hero h1 { font-size: 28px; }
  .hero-inner { padding: 64px 24px 56px; }
  .hero-img { filter: blur(2px) brightness(0.72); }

  /* 手机端 logo 等比缩小，避免挤压导航 */
  .logo { gap: 10px; }
  .logo-mark-img { width: 38px; height: 38px; }
  .logo-text strong { font-size: 16px; letter-spacing: 1px; }
  .logo-text em { font-size: 9px; letter-spacing: 1.5px; }

  /* 汉堡菜单：纯 CSS 展开/收起 */
  .nav-burger { display: block; }

  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 0;
    border-top: 1px solid var(--border);
  }

  .site-nav a { padding: 14px 0; border-bottom: none; }

  .nav-toggle:checked ~ .site-header .site-nav { display: flex; }

  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .client-grid { grid-template-columns: repeat(2, 1fr); }

  .section { padding: 52px 0; }
  .section-head h2 { font-size: 24px; }
  .cta h2 { font-size: 22px; }
}

/* ==========================================================================
   子页面版块（服务项目 / 案例库 / 关于我们 / 联系我们）
   ========================================================================== */

/* 子页顶部横幅 */
.page-hero {
  background: var(--brown-dark);
  color: var(--white);
  text-align: center;
  padding: 56px 24px;
}

.page-hero h1 { font-size: 32px; margin-bottom: 10px; letter-spacing: 2px; }
.page-hero p { color: #D8CCBB; }

/* 左图右文服务区块 */
.service-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.service-block-media { min-height: 320px; }

.service-block-body .service-label {
  display: inline-block;
  background: var(--cream);
  color: var(--brown-light);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px 14px;
  font-size: 13px;
  margin-bottom: 14px;
}

.service-block-body h2 {
  font-size: 26px;
  color: var(--brown-dark);
  margin-bottom: 14px;
}

.service-block-body p { color: var(--text-light); margin-bottom: 14px; }

/* 勾选清单 */
.check-list { list-style: none; }

.check-list li {
  padding: 8px 0 8px 28px;
  position: relative;
  font-size: 15px;
  border-bottom: 1px dashed var(--border);
}

.check-list li:last-child { border-bottom: none; }

.check-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 15px;
  width: 10px;
  height: 6px;
  border-left: 2px solid var(--brown-light);
  border-bottom: 2px solid var(--brown-light);
  transform: rotate(-45deg);
}

/* 数据亮点卡片 */
.stat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  padding: 30px 16px;
}

.stat-num {
  display: block;
  font-size: 32px;
  font-weight: 700;
  color: var(--brown);
  margin-bottom: 6px;
}

.stat-card p { color: var(--text-light); font-size: 14px; }

/* 发展历程时间线 */
.timeline { max-width: 760px; margin: 0 auto; }

.timeline-item {
  display: flex;
  gap: 24px;
  padding: 0 0 32px 0;
  position: relative;
}

.timeline-item:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 74px;
  top: 34px;
  bottom: -2px;
  width: 2px;
  background: var(--border);
}

.timeline-year {
  flex: 0 0 88px;
  text-align: center;
  background: var(--brown);
  color: var(--white);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  padding: 5px 0;
  height: fit-content;
  z-index: 1;
}

.timeline-body h3 { font-size: 17px; color: var(--brown-dark); margin-bottom: 6px; }
.timeline-body p { font-size: 14px; color: var(--text-light); }

/* 服务客户 logo 墙 */
.client-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.client-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  height: 88px;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s;
}

.client-item:hover {
  border-color: var(--brown-light);
  box-shadow: 0 4px 14px rgba(111, 78, 46, 0.10);
}

/* 正式 logo：默认灰色处理，悬停恢复彩色 */
.client-item img {
  max-height: 44px;
  max-width: 100%;
  width: auto;
  display: block;
  filter: grayscale(100%);
  opacity: 0.72;
  transition: all 0.25s;
}

.client-item:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

/* 占位块（替换成真实 logo 后可删除） */
.client-ph {
  border-style: dashed;
  color: #A08B70;
  background: var(--cream);
  font-size: 13px;
  text-align: center;
  line-height: 1.5;
}
.case-tag {
  display: inline-block;
  font-size: 12px;
  color: var(--brown-light);
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 1px 12px;
  margin-bottom: 10px;
}

.case-more {
  text-align: center;
  margin-top: 36px;
  color: var(--text-light);
  font-size: 14px;
}

.case-more a {
  display: inline-block;
  font-size: 15px;
  color: var(--brown);
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
}

.case-more a:hover { color: var(--brown-light); border-bottom-color: var(--brown-light); }

/* 联系卡片 */
.contact-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  padding: 34px 24px;
}

.contact-card h3 {
  font-size: 16px;
  color: var(--brown-dark);
  margin-bottom: 12px;
  letter-spacing: 2px;
}

.contact-main { font-size: 20px; font-weight: 700; color: var(--brown); margin-bottom: 6px; }
.contact-sub { font-size: 13px; color: var(--text-light); }

.contact-card .image-placeholder { min-height: 120px; width: 130px; margin: 0 auto; }

.qr-img {
  width: 140px;
  margin: 0 auto 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.map { min-height: 380px; border-radius: var(--radius); }

.map-img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  display: block;
}

.contact-tip { text-align: center; margin-top: 20px; color: var(--text-light); font-size: 14px; }

/* 子页面块响应式 */
@media (max-width: 960px) {
  .service-block { grid-template-columns: 1fr; gap: 24px; }
  .service-block.reverse .service-photo { order: -1; }
}

@media (max-width: 720px) {
  .page-hero h1 { font-size: 24px; }
  .page-hero { padding: 44px 24px; }

  .timeline-item { flex-direction: column; gap: 10px; }
  .timeline-item:not(:last-child)::before { left: 43px; top: 34px; height: calc(100% - 34px); bottom: auto; }
  .timeline-year { flex: none; padding: 5px 18px; width: fit-content; }
}
