/* ============================================================
   重庆润久鑫节能科技 官网样式表
   修改指南见《网站修改说明.md》，每段前有【标签】注释
   ============================================================ */

/* 【S00 全局变量】想改主颜色、字体，只改这里 */
:root {
  --main: #2b2f36;          /* 深色主色：页脚、标题底色 */
  --accent: #FFCC00;        /* 点缀主色：发那科黄（按钮、强调条） */
  --red: #ed2024;           /* 点缀红色：电话、警示强调 */
  --text: #333;             /* 正文文字颜色 */
  --text-light: #666;       /* 次要文字颜色 */
  --bg-soft: #f6f7f9;       /* 浅灰底色（隔行板块） */
  --line: #e5e6e8;          /* 分割线颜色 */
  --radius: 6px;            /* 卡片圆角 */
  --maxw: 1200px;           /* 页面内容最大宽度 */
}

/* 【S00 基础重置】浏览器默认边距清零，字体设置 */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.7;
  font-size: 16px;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* 【S01 顶部固定导航栏】白色固定顶栏：左logo + 中菜单 + 右电话 */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.logo { display: flex; align-items: center; gap: 10px; }
/* 【S01A 公司Logo】现在是图片 upload/logo.svg（芯片+润字方案），要换 logo 直接替换这个文件即可 */
.logo-mark {
  width: 48px; height: 48px; flex: none; display: block;
}
.logo-text { line-height: 1.25; }
.logo-text b { font-size: 18px; color: var(--main); display: block; white-space: nowrap; }
.logo-text span { font-size: 12px; color: var(--text-light); white-space: nowrap; }
.nav-menu { display: flex; gap: 2px; }
.nav-menu a {
  padding: 8px 12px; font-size: 15px; color: var(--text); white-space: nowrap;
  border-radius: var(--radius); transition: color .2s, background .2s;
}
/* 手机端菜单里的拨号行，桌面上不显示（桌面右侧已有红色电话按钮） */
.nav-menu .menu-tel { display: none; }
.nav-menu a:hover, .nav-menu a.active { background: var(--accent); color: var(--main); font-weight: 700; }
.nav-tel {
  display: flex; align-items: center; gap: 8px;
  background: var(--red); color: #fff; font-weight: 700;
  padding: 10px 16px; border-radius: 30px; font-size: 16px; white-space: nowrap;
}
.nav-tel .icon-tel { width: 18px; height: 18px; flex: none; }
.nav-tel:hover { filter: brightness(1.1); }

/* 【S01 汉堡菜单按钮】手机端显示的三横线按钮（桌面隐藏） */
.menu-btn {
  display: none; width: 44px; height: 44px; background: none; border: 0; cursor: pointer;
}
.menu-btn span {
  display: block; width: 26px; height: 3px; background: var(--main);
  margin: 5px auto; border-radius: 2px; transition: transform .25s, opacity .25s;
}
.menu-btn.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-btn.open span:nth-child(2) { opacity: 0; }
.menu-btn.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* 【S02 横幅Banner】首页大图区：背景图 + 渐变遮罩 + 主标题 + 按钮 */
.banner {
  margin-top: 72px; position: relative; color: #fff;
  background: var(--main); overflow: hidden;
}
.banner-img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; opacity: .5; }
.banner::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(20,22,26,.92) 20%, rgba(20,22,26,.55) 60%, rgba(20,22,26,.25));
}
.banner-body {
  position: relative; z-index: 2; max-width: var(--maxw); margin: 0 auto;
  padding: 90px 20px; min-height: 420px;
  display: flex; flex-direction: column; justify-content: center;
}
.banner-tag {
  display: inline-block; background: var(--accent); color: var(--main);
  font-weight: 700; font-size: 14px; padding: 4px 14px; border-radius: 20px;
  margin-bottom: 18px; width: fit-content;
}
.banner h1 { font-size: 40px; line-height: 1.3; margin-bottom: 14px; text-shadow: 0 2px 6px rgba(0,0,0,.4); }
.banner h1 em { font-style: normal; color: var(--accent); }
.banner p { font-size: 18px; color: #e8e8e8; max-width: 640px; margin-bottom: 28px; }
.banner-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: 30px; font-size: 17px; font-weight: 700;
  transition: transform .15s, filter .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn-yellow { background: var(--accent); color: var(--main); }
.btn-outline { border: 2px solid #fff; color: #fff; }
.banner-points {
  position: relative; z-index: 2; background: rgba(0,0,0,.35);
  border-top: 1px solid rgba(255,255,255,.15);
}
.banner-points ul {
  max-width: var(--maxw); margin: 0 auto; padding: 14px 20px;
  display: flex; gap: 30px; flex-wrap: wrap; font-size: 15px; color: #f2f2f2;
}
.banner-points li::before { content: "✔ "; color: var(--accent); font-weight: 700; }

/* 【S00 通用板块标题】每个大板块上方的 黄色竖条 + 中英文标题 */
.section { padding: 70px 0; }
.section.gray { background: var(--bg-soft); }
.sec-head { text-align: center; margin-bottom: 44px; }
.sec-head .en {
  display: block; color: var(--accent); font-weight: 700; font-size: 15px;
  letter-spacing: 2px; text-transform: uppercase; filter: brightness(.85);
}
.sec-head h2 {
  display: inline-block; font-size: 30px; color: var(--main);
  padding: 0 18px 12px; position: relative; margin-top: 4px;
}
.sec-head h2::after {
  content: ""; position: absolute; left: 50%; transform: translateX(-50%);
  bottom: 0; width: 46px; height: 4px; background: var(--accent); border-radius: 2px;
}
.sec-head p { color: var(--text-light); margin-top: 10px; font-size: 15px; }

/* 【S03 服务板块】维修项目图文卡片网格（4列自动换行） */
.cards-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.svc-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 22px; text-align: center; transition: box-shadow .2s, transform .2s;
}
.svc-card:hover { box-shadow: 0 10px 26px rgba(0,0,0,.1); transform: translateY(-4px); }
.svc-card:hover .svc-ico { background: var(--accent); color: var(--main); }
.svc-ico {
  width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 14px;
  background: var(--main); color: #fff; display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.svc-ico svg { width: 34px; height: 34px; }
.svc-card h3 { font-size: 18px; color: var(--main); margin-bottom: 10px; }
.svc-card p { font-size: 14px; color: var(--text-light); line-height: 1.6; }

/* 【S04 合作品牌板块】品牌名文字占位（后续可换成logo图片） */
.brands-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px;
}
.brand-item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  height: 74px; display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: var(--main); font-size: 16px; letter-spacing: 1px;
  filter: grayscale(1); opacity: .75; transition: filter .2s, opacity .2s;
}
.brand-item:hover { filter: none; opacity: 1; border-color: var(--accent); }

/* 【S05 企业优势板块】4 个优势卡片 */
.adv-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.adv-card { background: #fff; border-radius: var(--radius); padding: 28px 22px; text-align: center; box-shadow: 0 4px 16px rgba(0,0,0,.06); border-top: 4px solid var(--accent); }
.adv-card .num {
  width: 52px; height: 52px; margin: 0 auto 14px; border-radius: 50%;
  background: var(--bg-soft); color: var(--red); font-size: 24px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.adv-card h3 { font-size: 18px; color: var(--main); margin-bottom: 8px; }
.adv-card p { font-size: 14px; color: var(--text-light); }

/* 【S06 维修案例入口板块】图片缩略卡片，点击进 case.html */
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

/* 【S92 列数控制】cols-N 表示这一排有几张卡（手机端会自动减少列数，见 S90） */
.cards-grid.cols-1 { grid-template-columns: 1fr; }
.cards-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cards-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cards-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.cards-grid.cols-5 { grid-template-columns: repeat(5, 1fr); }
.brands-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.case-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.case-card { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--main); }
.case-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .3s, opacity .3s; }
.case-card:hover img { transform: scale(1.05); opacity: .85; }
.case-card .case-txt {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 16px;
  background: linear-gradient(transparent, rgba(0,0,0,.78)); color: #fff; font-size: 15px; font-weight: 700;
}
.case-more { text-align: center; margin-top: 34px; }
.btn-dark { background: var(--main); color: #fff; }

/* 【S07 公司简介板块】左图右文两栏 */
.about-flex { display: flex; gap: 46px; align-items: center; }
.about-pic { flex: 0 0 46%; border-radius: var(--radius); overflow: hidden; box-shadow: 0 14px 34px rgba(0,0,0,.14); }
.about-txt h3 { font-size: 24px; color: var(--main); margin-bottom: 16px; }
.about-txt h3 small { display: block; font-size: 14px; color: var(--accent); font-weight: 700; letter-spacing: 2px; margin-bottom: 6px; text-transform: uppercase; filter: brightness(.85); }
.about-txt p { color: var(--text-light); margin-bottom: 14px; font-size: 15px; text-align: justify; }
.about-nums { display: flex; gap: 34px; margin: 22px 0; }
.about-nums b { font-size: 30px; color: var(--red); display: block; }
.about-nums span { font-size: 14px; color: var(--text-light); }

/* 【S08 FAQ问答板块】AEO/GEO 用的一问一答折叠列表 */
.faq-list { max-width: 860px; margin: 0 auto; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; margin-bottom: 12px; overflow: hidden; }
.faq-q { font-weight: 700; color: var(--main); padding: 16px 20px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.faq-q::after { content: "+"; font-size: 22px; color: var(--red); flex: none; transition: transform .2s; }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a { display: none; padding: 0 20px 16px; color: var(--text-light); font-size: 15px; }
.faq-item.open .faq-a { display: block; }

/* 【S09 联系信息板块】深色底电话+地址大条 */
.contact-band { background: var(--main); color: #fff; }
.contact-flex { display: flex; flex-wrap: wrap; gap: 30px; justify-content: space-around; text-align: center; }
.contact-item { padding: 26px 20px; }
.contact-item .c-label { font-size: 15px; color: #bbb; margin-bottom: 8px; }
.contact-item .c-value { font-size: 24px; font-weight: 800; color: var(--accent); }
.contact-item a.c-value:hover { text-decoration: underline; }
.contact-item .c-sub { font-size: 14px; color: #ccc; margin-top: 6px; }

/* 【S10 页脚】公司全称、地址、备案号 */
.footer { background: #1d2126; color: #9aa0a8; font-size: 14px; padding: 34px 0 26px; text-align: center; }
.footer .f-name { color: #fff; font-size: 16px; font-weight: 700; margin-bottom: 10px; }
.footer p { margin: 4px 0; }
.footer a:hover { color: var(--accent); }
.footer .f-beian { margin-top: 12px; }

/* 【S11 手机端悬浮拨号按钮】手机上右下角始终可见的红色电话按钮 */
.float-tel {
  display: none; position: fixed; right: 18px; bottom: 24px; z-index: 200;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--red); color: #fff; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(237,32,36,.45);
}
.float-tel svg { width: 26px; height: 26px; }

/* ============================================================
   【S90 响应式规则】自动适配：≤1080菜单摊开显示（不再收进三横按钮）、≤1000卡片两列、≤900两栏改一栏、≤640卡片一列
   ============================================================ */
@media (max-width: 1000px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .adv-grid { grid-template-columns: repeat(2, 1fr); }
  .brands-grid { grid-template-columns: repeat(3, 1fr); }
  .case-grid { grid-template-columns: repeat(2, 1fr); }
  /* cols-N 指定过列数的排，窄屏同样降为两列 */
  .cards-grid.cols-3, .cards-grid.cols-4, .cards-grid.cols-5,
  .brands-grid.cols-4, .case-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1080px) {
  /* 平板/小笔记本/手机（≤1080）：菜单不再收进三横按钮，直接摊开显示在 logo 下面一行，
     点都不用点就能看到全部栏目（2026-11-12 按老板要求改的） */
  .menu-btn { display: none; }
  .header { position: sticky; }
  .nav-inner { height: auto; flex-wrap: wrap; padding: 8px 20px; }
  .banner { margin-top: 0; }
  .nav-menu {
    position: static; order: 3; flex-basis: 100%;
    display: flex; flex-wrap: wrap; gap: 4px 2px; padding: 6px 0 0;
    box-shadow: none; max-height: none; overflow: visible;
    border-top: 1px solid var(--line);
  }
  .nav-menu a { padding: 6px 10px; font-size: 14px; border-radius: 6px; border-bottom: 0; }
  /* 摊开显示后不再需要菜单里那行长拨号，右上角红色电话钮已经够用 */
  .nav-menu .menu-tel { display: none; }
  .nav-tel { display: flex; font-size: 14px; padding: 8px 12px; }
  .float-tel { display: flex; }
}
@media (max-width: 900px) {
  /* 手机端：横幅、间距、两栏改一栏 */
  .banner-body { padding: 56px 20px; min-height: 340px; }
  .banner h1 { font-size: 28px; }
  .banner p { font-size: 15px; }
  .section { padding: 48px 0; }
  .sec-head h2 { font-size: 24px; }
  .about-flex { flex-direction: column; }
  .about-pic { flex: none; width: 100%; }
  .contact-flex { flex-direction: column; gap: 0; }
}
@media (max-width: 640px) {
  .cards-grid, .adv-grid, .case-grid { grid-template-columns: 1fr; }
  .brands-grid { grid-template-columns: repeat(2, 1fr); }
  .cards-grid.cols-2, .cards-grid.cols-3, .cards-grid.cols-4, .cards-grid.cols-5,
  .case-grid.cols-2 { grid-template-columns: 1fr; }
  .brands-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .banner h1 { font-size: 24px; }
  .about-nums { gap: 20px; }
  .about-nums b { font-size: 24px; }
  /* 手机（≤640）摊开的菜单再收小一点，尽量两行放完 7 个栏目 */
  .logo-text b { font-size: 15px; }
  .logo-text span { font-size: 11px; }
  .nav-menu a { font-size: 13px; padding: 5px 8px; }
  .nav-tel { font-size: 13px; padding: 7px 10px; }
}

/* 【S13 在线报修单】2026-11-12 新增：给不方便打电话的客户（开会/上夜班/要先问领导）。
   纯网页填表→复制/发短信/拨号，信息不存服务器也不收集，全在客户自己手机上完成。
   表单在 contact.html 的 S13 板块，样式改这里。 */
.bx-wrap { display: flex; gap: 26px; flex-wrap: wrap; align-items: flex-start; }
.bx-form { flex: 1 1 460px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 22px; box-shadow: 0 6px 20px rgba(0,0,0,.05); }
.bx-aside { flex: 1 1 260px; }
.bx-row { display: flex; gap: 12px; flex-wrap: wrap; }
.bx-field { flex: 1 1 200px; margin-bottom: 12px; }
.bx-field label { display: block; font-size: 13px; color: var(--text-light); margin-bottom: 5px; font-weight: 700; }
.bx-field label i { color: var(--red); font-style: normal; }
.bx-field input, .bx-field select, .bx-field textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px;
  font-size: 15px; font-family: inherit; color: var(--text); background: #fcfcfd;
}
.bx-field textarea { min-height: 88px; resize: vertical; }
.bx-field input:focus, .bx-field select:focus, .bx-field textarea:focus {
  outline: none; border-color: var(--accent); background: #fff;
}
.bx-btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.bx-btn {
  flex: 1 1 150px; display: inline-block; text-align: center; border: 0; border-radius: 10px;
  padding: 13px 12px; font-size: 14px; font-weight: 800; cursor: pointer; font-family: inherit;
}
.bx-btn:hover { transform: translateY(-2px); }
.bx-main { background: var(--red); color: #fff; }
.bx-sub { background: #fff; color: var(--main); border: 1px solid var(--line); }
.bx-note { font-size: 13px; color: var(--text-light); margin-top: 14px; line-height: 1.8; }
.bx-preview { background: #fffaf0; border: 1px dashed var(--accent); border-radius: 10px; padding: 16px; font-size: 14px; white-space: pre-wrap; word-break: break-all; line-height: 1.8; }
.bx-preview b { display: block; margin-bottom: 8px; font-size: 15px; }
.bx-toast { display: none; margin-top: 12px; background: #eaf7ea; border: 1px solid #b7e0b7; color: #1f6b1f; border-radius: 8px; padding: 10px 14px; font-size: 14px; font-weight: 700; }
.bx-toast.show { display: block; }
.bx-steps { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px; }
.bx-steps h3 { font-size: 16px; margin-bottom: 10px; }
.bx-steps ol { padding-left: 20px; }
.bx-steps li { font-size: 14px; color: var(--text-light); margin-bottom: 7px; }
.bx-steps li b { color: var(--text); }
@media (max-width: 900px) {
  .bx-wrap { flex-direction: column; }
  .bx-form, .bx-aside { flex: 1 1 auto; width: 100%; }
}
@media (max-width: 640px) {
  .bx-btn { flex: 1 1 100%; }
  .bx-form { padding: 16px; }
}
/* ▲【S13 在线报修单】结束 ▲ */
