@charset "utf-8";
/* main.css —— 新智华电器（广州市致诚贸易发展有限公司）官网全站样式
   配色完全按《广州致诚家电GEO官网优化版》：
     深蓝 #0B1324 / 橙 #F97316 / 浅灰蓝 #9FB0C7 / 底色 #F5F7FA
   改配色只改下面 :root 这几行，改完这一个文件全站生效。
   页面里不写内联 style；需要新样式就往下面加，只在 900 / 720 / 480 三个宽度调整。 */

:root {
  --navy: #0B1324;      /* 页头、页脚、Hero 深蓝 */
  --navy-2: #1c2a44;    /* 深蓝渐变浅端 */
  --accent: #F97316;    /* 品牌橙：按钮、强调数字、链接 */
  --orange: #F97316;
  --slate: #9FB0C7;     /* 深底上的次要文字 */
  --ink: #1f2733;       /* 正文 */
  --ink-2: #56627a;     /* 次级文字 */
  --line: #E5E9F0;      /* 描边 */
  --bg: #F5F7FA;        /* 页面底色 */
  --soft: #EEF2F8;      /* 浅底块 */
  --radius: 12px;       /* 卡片圆角 */
  --wrap: 1120px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.75 -apple-system, BlinkMacSystemFont, "Segoe UI",
        "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  /* 接口来的长网址、长英文单词不许把页面撑宽 */
  overflow-wrap: break-word;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { list-style: none; margin: 0; padding: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* ------------------------------------------------------------- 页头 */

.site-header {
  background: var(--navy);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 58px;
}

.logo { display: flex; align-items: center; gap: 10px; color: #fff; flex: 0 0 auto; }
.logo:hover { text-decoration: none; }
.logo-img { height: 34px; width: auto; }
.logo-text { font-weight: 800; font-size: 18px; white-space: nowrap; letter-spacing: .2px; line-height: 1.2; }
.logo-text em { color: var(--accent); font-style: normal; }
.logo-sub { display: block; font-size: 11px; color: var(--slate); font-weight: 400; letter-spacing: .5px; }

.site-nav { display: flex; gap: 2px; flex-wrap: wrap; justify-content: flex-end; }
.site-nav a {
  color: #cdd7e6; font-size: 14px; padding: 6px 9px; border-radius: 6px;
  white-space: nowrap; transition: .18s;
}
.site-nav a:hover { background: var(--navy-2); color: #fff; text-decoration: none; }
.site-nav a.active { background: var(--navy-2); color: #fff; }
.site-nav a.nav-cta { background: var(--accent); color: #fff; font-weight: 600; margin-left: 4px; }
.site-nav a.nav-cta:hover { background: #e2660d; }

.nav-toggle {
  display: none; background: transparent; border: 1px solid rgba(255, 255, 255, .28);
  color: #fff; border-radius: 6px; padding: 6px 12px; font-size: 14px;
  cursor: pointer; font-family: inherit;
}

/* ------------------------------------------------------------- Hero */

.hero {
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff;
  padding: 46px 0;
}
.hero-sm { padding: 34px 0; }
.hero h1 { font-size: 30px; line-height: 1.35; letter-spacing: .2px; margin: 0 0 12px; font-weight: 800; }
.hero h1 span { color: var(--accent); }
.hero .lead { max-width: 820px; color: var(--slate); font-size: 15px; margin: 0; }
.hero-tag {
  display: inline-block; font-size: 12px; letter-spacing: 2px; color: var(--accent);
  font-weight: 700; text-transform: uppercase; margin-bottom: 10px;
}

.cta { margin-top: 20px; display: flex; gap: 12px; flex-wrap: wrap; }
.cta a {
  background: var(--accent); color: #fff; padding: 10px 18px; border-radius: 8px;
  font-weight: 600; font-size: 14px; display: inline-block;
}
.cta a:hover { background: #e2660d; text-decoration: none; }
.cta a.ghost { background: transparent; border: 1px solid var(--slate); color: #fff; }
.cta a.ghost:hover { background: rgba(255, 255, 255, .08); border-color: #fff; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 30px; }
.stat {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius);
  padding: 16px; text-align: center;
}
.stat b { display: block; font-size: 26px; color: var(--accent); line-height: 1.3; font-weight: 800; }
.stat span { font-size: 13px; color: var(--slate); }

/* ------------------------------------------------------------- 版块 */

.section { padding: 46px 0; border-bottom: 1px solid var(--line); }
.section:last-of-type { border-bottom: 0; }
.section.on-white { background: #fff; }
.section.on-soft { background: var(--soft); }

.kicker { font-size: 13px; letter-spacing: 2px; color: var(--accent); font-weight: 700; text-transform: uppercase; }
h1.t, h2.t { font-size: 24px; margin: 6px 0 8px; line-height: 1.45; font-weight: 800; }
h3.t-sub { font-size: 18px; margin: 26px 0 10px; }
.lead { color: var(--ink-2); max-width: 860px; margin: 0 0 22px; font-size: 15px; }

/* ------------------------------------------------------------- 卡片 */

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.cards.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cards.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cards.cols-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  transition: .2s;
}
.card:hover { box-shadow: 0 6px 20px rgba(11, 19, 36, .08); transform: translateY(-2px); }
.card .ic { font-size: 26px; line-height: 1; }
.card h3 { font-size: 17px; margin: 8px 0 6px; line-height: 1.5; }
.card p { font-size: 14px; color: var(--ink-2); margin: 0; }
.card p + p { margin-top: 6px; }
.card .more { display: inline-block; margin-top: 10px; font-size: 13px; font-weight: 600; }
.card.plain h3 { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.6; }
.card.center { text-align: center; }
.card.center h3 { margin-top: 6px; }

/* 门店卡片 */
.store {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: .2s;
}
.store:hover { box-shadow: 0 6px 20px rgba(11, 19, 36, .08); transform: translateY(-2px); }
.store .tag {
  font-size: 12px; background: var(--soft); color: #475569;
  border-radius: 4px; padding: 2px 8px; align-self: flex-start;
}
.store h3 { font-size: 16px; line-height: 1.5; }
.store .addr { font-size: 13px; color: var(--ink-2); flex: 1; }
.store .acts { display: flex; gap: 14px; margin-top: 6px; font-size: 13px; flex-wrap: wrap; }
.store .acts a { font-weight: 600; }

/* 平台行 */
.plat-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; }
.plat {
  flex: 1 1 150px; min-width: 150px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; text-align: center;
}
.plat .pic { font-size: 26px; }
.plat h3 { font-size: 16px; margin: 6px 0 4px; }
.plat p { font-size: 13px; color: var(--ink-2); margin: 0; }

/* 品牌墙 */
.brands-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 14px; margin-top: 14px; }
.blogo-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px; display: flex; flex-direction: column; align-items: center; gap: 10px; transition: .2s;
}
.blogo-card:hover { box-shadow: 0 6px 20px rgba(11, 19, 36, .08); transform: translateY(-2px); }
.blogo-box {
  width: 100%; height: 56px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 14px; letter-spacing: .5px;
}
.blogo-card .cn { font-size: 13px; font-weight: 600; text-align: center; }

/* 两栏 / 标签 / 提示 */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.two > div > h3 { font-size: 18px; margin-bottom: 8px; }
.two > div > p { font-size: 15px; color: var(--ink-2); }

.pill {
  display: inline-block; border: 1px solid var(--line); background: #fff;
  border-radius: 20px; padding: 4px 12px; font-size: 13px; color: var(--ink-2);
  margin: 0 6px 6px 0;
}

.note {
  background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412;
  border-radius: 8px; padding: 12px 14px; font-size: 14px; margin-top: 14px;
}
.notice {
  background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af;
  border-radius: 8px; padding: 10px 14px; font-size: 14px; margin-bottom: 18px;
}

/* 表格 */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.t { width: 100%; border-collapse: collapse; background: #fff; font-size: 14px; }
table.t th, table.t td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
table.t th { background: var(--soft); font-weight: 700; white-space: nowrap; }

/* 流程 */
.steps { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.step .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent); color: #fff; font-size: 14px; font-weight: 700; margin-bottom: 8px;
}
.step h3 { font-size: 16px; margin-bottom: 4px; }
.step p { font-size: 14px; color: var(--ink-2); margin: 0; }

/* ------------------------------------------------------------- 选购指南 */

.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.guide {
  display: block; color: inherit; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; transition: .2s;
}
.guide:hover { box-shadow: 0 6px 20px rgba(11, 19, 36, .08); transform: translateY(-2px); text-decoration: none; }
.guide .k { font-size: 12px; color: var(--accent); font-weight: 700; letter-spacing: .5px; }
.guide h3 { font-size: 16px; margin: 6px 0 8px; line-height: 1.5; }
.guide p { font-size: 14px; color: var(--ink-2); margin: 0; }
.guide .meta { font-size: 12px; color: #94a3b8; margin-top: 10px; }

.article {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 28px; max-width: 920px;
}
.article h1 { font-size: 24px; line-height: 1.4; margin: 0 0 6px; }
.article .sub { color: #94a3b8; font-size: 13px; margin-bottom: 16px; }
.article h3 { font-size: 19px; margin: 20px 0 8px; color: var(--navy); }
.article h4 { font-size: 16px; margin: 18px 0 6px; color: var(--navy); }
.article p { margin: 0 0 10px; font-size: 15px; }
.article ul, .article ol { margin: 0 0 12px 22px; font-size: 15px; }
.article ul { list-style: disc; }
.article ol { list-style: decimal; }
.article li { margin-bottom: 6px; }
.article .faq { background: #fff7ed; border: 1px solid #fed7aa; border-radius: 10px; padding: 14px; margin-top: 18px; }
.article .faq b { color: #9a3412; }
.article .faq p { font-size: 14px; margin-bottom: 8px; }
.article .faq p:last-child { margin-bottom: 0; }
.article-foot { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; }

.crumb { font-size: 13px; color: var(--ink-2); margin-bottom: 14px; }
.crumb a { color: var(--ink-2); }
.crumb span { margin: 0 6px; color: #cbd5e1; }

/* ------------------------------------------------------------- 新闻列表（接口） */

.list { display: flex; flex-direction: column; }
.list > li { border-bottom: 1px solid var(--line); padding: 16px 0; }
.list > li:first-child { padding-top: 0; }
.list > li:last-child { border-bottom: 0; }
.item-row { display: flex; gap: 18px; align-items: flex-start; }
.item-body { flex: 1; min-width: 0; }
.item-title { font-size: 17px; font-weight: 700; color: var(--ink); display: block; margin-bottom: 4px; }
.item-title:hover { color: var(--accent); text-decoration: none; }
.item-sum { font-size: 14px; color: var(--ink-2); margin: 0 0 6px; }
.item-meta { font-size: 13px; color: #94a3b8; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.item-thumb { flex: 0 0 148px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); }
.item-thumb img { width: 100%; height: 96px; object-fit: cover; }

.tag { display: inline-block; background: var(--soft); color: #475569; border-radius: 4px; padding: 1px 8px; font-size: 12px; }
.empty {
  background: #fff; border: 1px dashed var(--line); border-radius: var(--radius);
  padding: 28px; text-align: center; color: var(--ink-2); font-size: 14px;
}
.cate-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 20px; }
.cate-tabs a {
  font-size: 14px; padding: 5px 14px; border-radius: 20px;
  border: 1px solid var(--line); background: #fff; color: var(--ink-2);
}
.cate-tabs a:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.cate-tabs a.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.pager { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 26px; align-items: center; }
.pager a, .pager span {
  min-width: 36px; text-align: center; padding: 6px 10px;
  border: 1px solid var(--line); border-radius: 8px; background: #fff;
  font-size: 14px; color: var(--ink-2);
}
.pager a:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.pager span.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.pager span.gap { border: 0; background: transparent; min-width: 0; padding: 6px 2px; }
.meta { font-size: 13px; color: var(--ink-2); }

/* ------------------------------------------------------------- 页脚 */

.site-footer {
  background: var(--navy); color: var(--slate);
  padding: 36px 0 24px; font-size: 13px; line-height: 1.9;
}
.site-footer a { color: var(--slate); }
.site-footer a:hover { color: #fff; }
.footer-top {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 26px;
  padding-bottom: 22px; border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.footer-brand b { color: #fff; font-size: 16px; display: block; margin-bottom: 6px; }
.footer-brand p { font-size: 13px; margin: 0; }
.footer-col h4 { color: #fff; font-size: 14px; margin: 0 0 8px; font-weight: 600; }
.footer-col a { display: block; font-size: 13px; line-height: 2; }
.footer-bottom { padding-top: 18px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 12.5px; }
.footer-filing { margin: 0; }

/* 返回顶部 */
.backtop {
  position: fixed; right: 18px; bottom: 18px; z-index: 40;
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(11, 19, 36, .86); color: #fff; border: 0; cursor: pointer;
  font-size: 16px; display: none; align-items: center; justify-content: center;
  font-family: inherit;
}
.backtop.show { display: flex; }

/* 间距小工具（页面里不写内联 style，用这几个类） */
.mt-12 { margin-top: 12px; }
.mt-14 { margin-top: 14px; }
.mt-20 { margin-top: 20px; }
.mt-22 { margin-top: 22px; }
.mt-28 { margin-top: 28px; }

/* ============================================================ 自适应 */

/* 平板 */
@media (max-width: 900px) {
  .hero h1 { font-size: 26px; }
  .cards.cols-3, .cards.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .article { padding: 22px; }
}

/* 手机 */
@media (max-width: 720px) {
  body { font-size: 15px; }
  .wrap { padding: 0 16px; }
  .header-inner { flex-wrap: wrap; min-height: 54px; padding-top: 6px; padding-bottom: 6px; }
  .nav-toggle { display: inline-block; }
  .site-nav {
    display: none; width: 100%; flex-direction: column; gap: 0;
    padding: 6px 0 10px; border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 6px;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 10px 4px; font-size: 15px; border-radius: 4px; }
  .site-nav a.nav-cta { margin-left: 0; text-align: center; margin-top: 6px; }
  .hero { padding: 32px 0; }
  .hero-sm { padding: 26px 0; }
  .hero h1 { font-size: 23px; }
  .hero .lead { font-size: 14px; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 22px; }
  .stat { padding: 12px; }
  .stat b { font-size: 22px; }
  .section { padding: 32px 0; }
  h1.t, h2.t { font-size: 20px; }
  .lead { font-size: 14px; margin-bottom: 18px; }
  .cards, .cards.cols-2, .cards.cols-3, .cards.cols-4 { grid-template-columns: 1fr; }
  .guide-grid { grid-template-columns: 1fr; }
  .two { grid-template-columns: 1fr; gap: 18px; }
  .item-thumb { flex: 0 0 110px; }
  .item-thumb img { height: 76px; }
  .item-title { font-size: 16px; }
  .article { padding: 18px; border-radius: 10px; }
  .article h1 { font-size: 20px; }
  .article p, .article li { font-size: 14.5px; }
  .footer-top { grid-template-columns: 1fr; gap: 18px; }
  .blogo-box { height: 50px; font-size: 13px; }
  /* 正文里的宽表格 / 代码块 / 视频只让自己那一块横滑，不顶宽整页 */
  .article table, .article pre, .article iframe { display: block; max-width: 100%; overflow-x: auto; }
}

/* 小屏手机 */
@media (max-width: 480px) {
  .logo-text { font-size: 16px; }
  .hero h1 { font-size: 21px; }
  .stat b { font-size: 20px; }
  .stat span { font-size: 12px; }
  .pager a, .pager span { min-width: 30px; padding: 5px 8px; font-size: 13px; }
  .item-thumb { display: none; }
  .brands-grid { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
}
