/* ============================================================
   河南早办科技有限公司官网 - 公共样式
   设计方向：编辑杂志风 / 墨绿主色 + 多彩强调 / 方角细线
   ============================================================ */

:root {
  --ink: #1b2a24;          /* 主文字 深墨 */
  --pine: #1b4332;         /* 主色 深墨绿 */
  --pine-2: #2d6a4f;       /* 次墨绿 */
  --paper: #faf7f2;        /* 暖米白底 */
  --paper-2: #f1ece3;      /* 次级米白 */
  --line: #e2dccf;         /* 细线 */
  --orange: #e76f51;       /* 多彩强调：橙 */
  --amber: #e9c46a;        /* 多彩强调：明黄 */
  --teal: #2a9d8f;         /* 多彩强调：青 */
  --crimson: #c9184a;      /* 多彩强调：品红 */
  --indigo: #3a0ca3;       /* 多彩强调：靛蓝 */
  --muted: #6b7268;
  --serif: "Noto Serif SC", "Songti SC", "SimSun", serif;
  --sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  font-size: 15px;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 28px; }

/* ---------- 顶部信息条 ---------- */
.topbar {
  background: var(--pine);
  color: #d8e6dd;
  font-size: 13px;
}
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; height: 38px; }
.topbar .hotline { color: var(--amber); font-weight: 600; letter-spacing: .5px; }
.topbar .addr { opacity: .85; }

/* ---------- 主导航 ---------- */
.nav {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 100;
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand .logo {
  width: 64px; height: 64px;
  object-fit: cover;
}
.brand .name { font-family: var(--serif); font-weight: 700; font-size: 22px; letter-spacing: 1px; white-space: nowrap; }
.brand .sub { font-size: 11px; color: var(--muted); letter-spacing: 2px; }

.menu { display: flex; gap: 6px; }
.menu a {
  padding: 8px 16px; font-size: 15px; color: var(--ink);
  border-bottom: 2px solid transparent; transition: all .2s;
}
.menu a:hover { color: var(--pine-2); }
.menu a.active { color: var(--pine); border-bottom-color: var(--orange); font-weight: 600; }

.nav-toggle { display: none; background: none; border: 1px solid var(--line); padding: 6px 12px; font-size: 14px; cursor: pointer; font-family: var(--sans); color: var(--ink); }

/* ---------- 首页 Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--pine); color: #fff;
}
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding: 72px 28px; }
.hero h1 {
  font-family: var(--serif); font-size: 46px; line-height: 1.25; font-weight: 700;
  margin-bottom: 22px;
}
.hero h1 .hl { color: var(--amber); }
.hero p.lead { font-size: 17px; color: #cfe0d6; margin-bottom: 32px; max-width: 540px; }
.hero .cta { display: flex; gap: 14px; }
.btn {
  display: inline-block; padding: 13px 28px; font-size: 15px; cursor: pointer;
  border: 1px solid transparent; transition: all .2s;
}
.btn-solid { background: var(--orange); color: #fff; }
.btn-solid:hover { background: #d95f43; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn-ghost:hover { border-color: #fff; }
.hero-img { position: relative; }
.hero-img img { width: 100%; height: 380px; object-fit: cover; border: 6px solid rgba(255,255,255,.12); }

/* Hero 统计条 */
.statbar { background: #143327; color: #fff; }
.statbar .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 28px 20px; border-left: 1px solid rgba(255,255,255,.12); }
.stat:first-child { border-left: none; }
.stat .num { font-family: var(--serif); font-size: 38px; font-weight: 700; color: var(--amber); }
.stat .num .suf { font-size: 20px; }
.stat .lbl { font-size: 13px; color: #b9cfc4; margin-top: 4px; }

/* ---------- 通用 Section ---------- */
.section { padding: 72px 0; }
.section.alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-head { margin-bottom: 44px; }
.sec-head .kicker {
  display: inline-block; font-size: 13px; color: #fff; background: var(--pine-2);
  padding: 3px 12px; margin-bottom: 14px; letter-spacing: 1px;
}
.sec-head h2 { font-family: var(--serif); font-size: 34px; font-weight: 700; line-height: 1.3; }
.sec-head p.desc { color: var(--muted); margin-top: 12px; max-width: 720px; }

/* ---------- 业务网格（首页/子页通用） ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.biz-card {
  background: #fff; border: 1px solid var(--line); padding: 30px 26px;
  border-top: 4px solid var(--pine-2); transition: all .25s;
}
.prod-img { margin: -30px -26px 18px; height: 160px; overflow: hidden; background: #f4f1ea; }
.prod-img img { width: 100%; height: 100%; object-fit: cover; }
.biz-card:hover { box-shadow: 0 10px 30px rgba(27,67,50,.10); transform: translateY(-3px); }
.biz-card .no { font-family: var(--serif); font-size: 14px; color: var(--orange); font-weight: 700; letter-spacing: 2px; }
.biz-card h3 { font-family: var(--serif); font-size: 21px; margin: 10px 0 12px; }
.biz-card p { color: var(--muted); font-size: 14px; }
.biz-card .more { display: inline-block; margin-top: 16px; font-size: 14px; color: var(--pine-2); font-weight: 600; }
.biz-card .more:hover { color: var(--orange); }
.biz-card.c-orange { border-top-color: var(--orange); }
.biz-card.c-teal { border-top-color: var(--teal); }
.biz-card.c-crimson { border-top-color: var(--crimson); }
.biz-card.c-indigo { border-top-color: var(--indigo); }
.biz-card.c-amber { border-top-color: #d4a52a; }

/* ---------- 子页 Banner ---------- */
.page-banner { background: var(--pine); color: #fff; position: relative; overflow: hidden; }
.page-banner .wrap { padding: 64px 28px; }
.page-banner .crumb { font-size: 13px; color: #9fc0af; margin-bottom: 14px; }
.page-banner .crumb a:hover { color: #fff; }
.page-banner h1 { font-family: var(--serif); font-size: 40px; font-weight: 700; }
.page-banner p { color: #cfe0d6; margin-top: 12px; max-width: 760px; }

/* ---------- 流程时间轴 ---------- */
.flow { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; position: relative; }
.flow::before {
  content: ""; position: absolute; top: 22px; left: 4%; right: 4%; height: 2px; background: var(--line);
}
.flow .step { text-align: center; padding: 0 10px; position: relative; }
.flow .dot {
  width: 44px; height: 44px; margin: 0 auto 16px; background: #fff; border: 2px solid var(--pine-2);
  color: var(--pine); font-family: var(--serif); font-weight: 700;
  display: flex; align-items: center; justify-content: center; position: relative; z-index: 1;
}
.flow .step h4 { font-size: 15px; margin-bottom: 8px; }
.flow .step p { font-size: 13px; color: var(--muted); }

/* ---------- 新闻列表 + 分页 ---------- */
.news-list { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--line); }
.news-item {
  display: flex; gap: 24px; padding: 26px 10px;
  border-bottom: 1px solid var(--line); align-items: start; transition: background .2s;
}
.news-item:hover { background: #fff; }
.news-item .date { flex: 0 0 90px; text-align: center; border-right: 1px solid var(--line); padding-right: 20px; }
.news-item .date .d { font-family: var(--serif); font-size: 30px; font-weight: 700; color: var(--pine); line-height: 1; }
.news-item .date .m { font-size: 12px; color: var(--muted); margin-top: 6px; }
.news-thumb { flex: 0 0 150px; width: 150px; height: 96px; overflow: hidden; border: 1px solid var(--line); }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-item > div:last-child { flex: 1; min-width: 0; }
.news-item .cat {
  display: inline-block; font-size: 12px; color: var(--teal); border: 1px solid var(--teal);
  padding: 1px 10px; margin-bottom: 8px;
}
.news-item h3 { font-family: var(--serif); font-size: 19px; margin-bottom: 8px; }
.news-item h3 a:hover { color: var(--orange); }
.news-item p { color: var(--muted); font-size: 14px; }

.pager { display: flex; justify-content: center; gap: 8px; margin-top: 36px; }
.pager button {
  min-width: 40px; height: 40px; padding: 0 12px; background: #fff; border: 1px solid var(--line);
  cursor: pointer; font-size: 14px; color: var(--ink); transition: all .2s;
}
.pager button:hover:not(:disabled) { border-color: var(--pine-2); color: var(--pine); }
.pager button.cur { background: var(--pine); color: #fff; border-color: var(--pine); }
.pager button:disabled { opacity: .4; cursor: not-allowed; }

/* ---------- 产品/服务详情列表 ---------- */
.detail-list { display: flex; flex-direction: column; gap: 20px; }
.detail-item {
  background: #fff; border: 1px solid var(--line); padding: 28px 30px;
  display: grid; grid-template-columns: 70px 1fr; gap: 24px; align-items: start;
}
.detail-item .no {
  font-family: var(--serif); font-size: 30px; font-weight: 700; color: var(--orange);
  border-bottom: 3px solid var(--pine-2); padding-bottom: 6px;
}
.detail-item h3 { font-family: var(--serif); font-size: 21px; margin-bottom: 10px; }
.detail-item p { color: var(--muted); font-size: 14px; }
.tag-row { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.tag-row span { font-size: 12px; background: var(--paper-2); color: var(--pine); padding: 3px 12px; border: 1px solid var(--line); }

/* ---------- 图文块 ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.two-col img { width: 100%; height: 360px; object-fit: cover; }
.two-col h3 { font-family: var(--serif); font-size: 26px; margin-bottom: 16px; }
.two-col p { color: var(--muted); margin-bottom: 14px; }
.two-col ul.points { margin-top: 10px; }
.two-col ul.points li { padding-left: 22px; position: relative; margin-bottom: 10px; color: var(--ink); }
.two-col ul.points li::before { content: "■"; position: absolute; left: 0; color: var(--orange); font-size: 12px; top: 4px; }

/* ---------- 行业标签 ---------- */
.ind-tags { display: flex; flex-wrap: wrap; gap: 12px; }
.ind-tags span {
  padding: 10px 22px; background: #fff; border: 1px solid var(--line); font-size: 14px;
  border-bottom: 3px solid var(--pine-2);
}

/* ---------- 文章详情页 ---------- */
.article-wrap { max-width: 860px; margin: 0 auto; padding: 20px 0; }
.article-back { display: inline-block; margin-bottom: 24px; font-size: 14px; color: var(--pine-2); font-weight: 600; }
.article-back:hover { color: var(--orange); }
.article-head { border-bottom: 1px solid var(--line); padding-bottom: 24px; margin-bottom: 28px; }
.article-head .cat {
  display: inline-block; font-size: 12px; color: var(--teal); border: 1px solid var(--teal);
  padding: 2px 12px; margin-bottom: 14px;
}
.article-head h1 { font-family: var(--serif); font-size: 34px; line-height: 1.35; margin-bottom: 14px; }
.article-head .meta { font-size: 13px; color: var(--muted); }
.article-cover { width: 100%; max-height: 460px; object-fit: cover; border: 1px solid var(--line); margin-bottom: 28px; }
.article-body { font-size: 15.5px; line-height: 2; color: var(--ink); }
.article-body p { margin-bottom: 18px; }
.article-body .lead { font-size: 16.5px; color: var(--pine); font-weight: 600; }
.article-notfound { text-align: center; padding: 80px 0; }
.article-notfound h2 { font-family: var(--serif); font-size: 26px; margin-bottom: 12px; }
.article-notfound p { color: var(--muted); margin-bottom: 24px; }

/* ---------- CTA 区 ---------- */
.cta-band { background: var(--pine); color: #fff; }
.cta-band .wrap { padding: 56px 28px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 24px; }
.cta-band h2 { font-family: var(--serif); font-size: 30px; }
.cta-band p { color: #cfe0d6; margin-top: 8px; }
.cta-band .phone { font-family: var(--serif); font-size: 30px; color: var(--amber); font-weight: 700; }

/* ---------- 页脚 ---------- */
.footer { background: #143327; color: #b9cfc4; font-size: 14px; }
.footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding: 56px 28px 30px; }
.footer h4 { color: #fff; font-family: var(--serif); font-size: 17px; margin-bottom: 18px; }
.footer .fbrand .fname { font-family: var(--serif); font-size: 19px; color: #fff; margin-bottom: 12px; }
.footer ul li { margin-bottom: 10px; }
.footer ul li a:hover { color: var(--amber); }
.footer .contact-line { margin-bottom: 10px; }
.footer .contact-line b { color: #fff; font-weight: 600; }
.icp { border-top: 1px solid rgba(255,255,255,.1); }
.icp .wrap { padding-top: 20px; padding-bottom: 20px; display: block; text-align: center; font-size: 13px; }
.icp a { color: #9fc0af; }
.icp a:hover { color: var(--amber); }

/* ---------- 回到顶部 ---------- */
#toTop {
  position: fixed; right: 28px; bottom: 28px; width: 46px; height: 46px;
  background: var(--pine); color: #fff; border: none; cursor: pointer;
  font-size: 18px; display: none; z-index: 99;
}
#toTop:hover { background: var(--orange); }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .hero .wrap, .two-col { grid-template-columns: 1fr; }
  .hero-img img { height: 260px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .flow { grid-template-columns: repeat(3, 1fr); row-gap: 30px; }
  .flow::before { display: none; }
  .footer .wrap { grid-template-columns: 1fr 1fr; }
  .menu { display: none; position: absolute; top: 74px; left: 0; right: 0; background: #fff; flex-direction: column; border-bottom: 1px solid var(--line); padding: 10px 0; }
  .menu.open { display: flex; }
  .menu a { padding: 12px 28px; border-bottom: none; border-left: 3px solid transparent; }
  .menu a.active { border-left-color: var(--orange); }
  .nav-toggle { display: block; }
  .topbar .addr { display: none; }
  .statbar .wrap { grid-template-columns: repeat(2, 1fr); }
  .stat { border-left: none; border-top: 1px solid rgba(255,255,255,.12); }
  .stat:nth-child(-n+2) { border-top: none; }
}
@media (max-width: 600px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .hero h1 { font-size: 32px; }
  .sec-head h2 { font-size: 26px; }
  .news-item { flex-direction: column; gap: 12px; }
  .news-item .date { flex: none; border-right: none; border-bottom: 1px solid var(--line); padding-bottom: 10px; text-align: left; display: flex; gap: 10px; align-items: baseline; }
  .news-thumb { flex: none; width: 100%; height: 180px; }
  .detail-item { grid-template-columns: 1fr; }
  .footer .wrap { grid-template-columns: 1fr; }
  .article-head h1 { font-size: 24px; }
  .article-body { font-size: 15px; }
}
