/* ============================================================
   锐诚人力门户网站 · 公共样式
   风格：简约商务 / 浅色底 / 深蓝主色 / 响应式
   ============================================================ */

:root {
  --primary: #1552a8;        /* 主色 深蓝 */
  --primary-dark: #0e3c80;   /* 深一档 */
  --primary-light: #eaf2fc;  /* 浅蓝底 */
  --accent: #2f7be0;         /* 亮蓝 */
  --text: #1f2933;
  --text-2: #55606c;
  --text-3: #8a94a0;
  --bg: #f5f7fa;
  --card: #ffffff;
  --line: #e3e8ee;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(21, 82, 168, .08);
  --shadow-hover: 0 12px 32px rgba(21, 82, 168, .16);
  --maxw: 1160px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------------- 顶部导航 ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-bar {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 38px; width: auto; }
.brand-name { font-size: 18px; font-weight: 700; color: var(--primary-dark); letter-spacing: .5px; }
.brand-name small { display: block; font-size: 10.5px; font-weight: 400; color: var(--text-3); letter-spacing: 1.2px; }

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  padding: 8px 16px; border-radius: 8px;
  font-size: 15px; color: var(--text-2);
  transition: all .2s;
}
.nav-links a:hover { color: var(--primary); background: var(--primary-light); }
.nav-links a.active { color: var(--primary); font-weight: 600; background: var(--primary-light); }
.nav-cta {
  margin-left: 10px;
  padding: 9px 20px !important;
  background: var(--primary); color: #fff !important;
  border-radius: 999px !important; font-weight: 600;
}
.nav-cta:hover { background: var(--primary-dark) !important; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; transition: .25s; }

/* ---------------- Hero ---------------- */
.hero {
  background: linear-gradient(135deg, #0e3c80 0%, #1552a8 55%, #2f7be0 100%);
  color: #fff;
  padding: 88px 0 96px;
  position: relative; overflow: hidden;
}
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%;
  background: rgba(255, 255, 255, .07);
}
.hero::before { width: 420px; height: 420px; top: -160px; right: -100px; }
.hero::after  { width: 300px; height: 300px; bottom: -140px; left: 6%; }
.hero .container { position: relative; z-index: 1; }
.hero-tag {
  display: inline-block; padding: 5px 14px; border-radius: 999px;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.3);
  font-size: 13px; letter-spacing: 2px; margin-bottom: 18px;
}
.hero h1 { font-size: 40px; line-height: 1.3; font-weight: 700; letter-spacing: 1px; }
.hero p.sub { margin-top: 16px; font-size: 17px; color: rgba(255,255,255,.85); max-width: 640px; }
.hero-actions { margin-top: 32px; display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 12px 30px; border-radius: 999px;
  font-size: 15px; font-weight: 600; transition: all .2s;
}
.btn-light { background: #fff; color: var(--primary); }
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.18); }
.btn-ghost { border: 1px solid rgba(255,255,255,.6); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn.primary { background: var(--primary); color: #fff; }
.btn.primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.18); }
.p-icp { margin-top: 8px; font-size: 12px; color: #8a94a6; line-height: 1.5; }
.p-icp a { color: #8a94a6; text-decoration: none; }
.p-icp a:hover { color: #1a56db; text-decoration: underline; }
.p-link-box { margin: 10px 0 12px; }
.hero-stats { margin-top: 46px; display: flex; gap: 48px; flex-wrap: wrap; }
.hero-stats b { font-size: 26px; display: block; }
.hero-stats span { font-size: 13px; color: rgba(255,255,255,.75); }

/* ---------------- 通用 Section ---------------- */
.section { padding: 76px 0; }
.section.alt { background: #fff; }
.section-head { text-align: center; margin-bottom: 46px; }
.section-head .kicker {
  display: inline-block; color: var(--accent); font-size: 13px;
  font-weight: 700; letter-spacing: 3px; margin-bottom: 8px;
}
.section-head h2 { font-size: 30px; color: var(--primary-dark); letter-spacing: 1px; }
.section-head p { margin-top: 10px; color: var(--text-2); font-size: 15.5px; }
.section-head .rule {
  width: 44px; height: 4px; border-radius: 2px;
  background: var(--primary); margin: 14px auto 0;
}

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

.product-card {
  background: var(--card); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: var(--shadow);
  border: 1px solid var(--line);
  transition: all .25s; display: flex; flex-direction: column;
  position: relative; overflow: hidden;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); border-color: var(--accent); }
.product-icon {
  width: 54px; height: 54px; border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  background: var(--primary-light); margin-bottom: 18px;
}
.product-icon svg { width: 28px; height: 28px; stroke: var(--primary); }
.product-card h3 { font-size: 18px; color: var(--text); margin-bottom: 8px; }
.product-card p { font-size: 14px; color: var(--text-2); flex: 1; }
.product-tag {
  display: inline-block; margin-top: 14px; font-size: 12px;
  color: var(--primary); background: var(--primary-light);
  padding: 3px 12px; border-radius: 999px; align-self: flex-start;
}
.product-badge {
  position: absolute; top: 16px; right: -30px;
  background: var(--accent); color: #fff;
  font-size: 12px; padding: 4px 34px; transform: rotate(38deg);
}

/* ---------------- 服务平台（联系方式页三卡片，对标爱普生） ---------------- */
.contact-hero {
  padding: 56px 0 8px; text-align: center;
}
.contact-hero h1 { font-size: 30px; color: var(--primary-dark); }
.contact-hero p { color: var(--text-2); margin-top: 10px; font-size: 15px; }

.contact-cards {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px;
  padding: 40px 0 72px;
}
.c-card {
  background: linear-gradient(180deg, #fdfeff 0%, #f2f7fd 100%);
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px 32px; text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.c-card h2 { font-size: 20px; color: var(--text); margin-bottom: 6px; }
.c-card .c-rule { width: 36px; height: 3px; border-radius: 2px; background: var(--primary); margin: 10px 0 26px; }

.c-phone {
  display: flex; align-items: center; gap: 10px;
  font-size: 30px; font-weight: 800; color: var(--accent);
  margin-bottom: 18px;
}
.c-phone svg { width: 32px; height: 32px; stroke: var(--accent); }
.c-note { font-size: 13.5px; color: var(--text-2); max-width: 260px; }
.c-time { margin-top: auto; padding-top: 26px; font-size: 13.5px; color: var(--text-3); }

.c-entries { display: flex; gap: 34px; margin: 6px 0 10px; }
.c-entry { display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--text); }
.c-entry:hover .c-entry-icon { background: var(--primary-light); border-color: var(--accent); }
.c-entry-icon {
  width: 74px; height: 74px; border-radius: 50%;
  background: #fff; border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  transition: all .2s; box-shadow: var(--shadow);
}
.c-entry-icon svg { width: 34px; height: 34px; stroke: var(--text-2); }
.c-entry:hover .c-entry-icon svg { stroke: var(--primary); }
.c-entry span { font-size: 14px; }
.c-entry span::after { content: " >"; color: var(--text-3); }

.qr-box {
  width: 168px; height: 168px; margin: 4px 0 16px;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 10px; box-shadow: var(--shadow);
  transition: transform .25s;
}
.qr-box:hover { transform: scale(1.05); }
.qr-box img { width: 100%; height: 100%; }
.c-card .qr-tip { font-size: 14px; color: var(--text-2); }
.c-card .qr-tip + .qr-tip { margin-top: 4px; }

/* ---------------- 服务流程 ---------------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px 22px; position: relative;
}
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-size: 34px; font-weight: 800; color: var(--primary-light);
  -webkit-text-stroke: 1px var(--accent);
  display: block; margin-bottom: 10px;
}
.step h3 { font-size: 16.5px; margin-bottom: 6px; }
.step p { font-size: 13.5px; color: var(--text-2); }

/* ---------------- 关于页 / 特性 ---------------- */
.about-wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 46px; align-items: center; }
.about-wrap h2 { font-size: 26px; color: var(--primary-dark); margin-bottom: 16px; }
.about-wrap p { color: var(--text-2); font-size: 15px; margin-bottom: 12px; }
.about-panel {
  background: linear-gradient(160deg, var(--primary-dark), var(--accent));
  border-radius: 18px; color: #fff; padding: 40px 36px;
}
.about-panel h3 { font-size: 18px; margin-bottom: 18px; }
.about-panel li {
  padding: 9px 0; font-size: 14.5px; border-bottom: 1px dashed rgba(255,255,255,.25);
  display: flex; justify-content: space-between; gap: 16px;
}
.about-panel li span:last-child { color: rgba(255,255,255,.8); text-align: right; }

.feature-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 22px; }
.feature-list li {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 14.5px; color: var(--text-2);
}
.feature-list svg { width: 20px; height: 20px; stroke: var(--accent); flex-shrink: 0; margin-top: 3px; }

/* ---------------- 页脚 ---------------- */
.site-footer { background: #16233a; color: #aab6c8; margin-top: 0; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr;
  gap: 34px; padding: 56px 0 40px;
}
.footer-brand img { height: 40px; margin-bottom: 14px; }
.footer-brand p { font-size: 13px; line-height: 1.9; }
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 16px; letter-spacing: 1px; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-size: 13.5px; color: #aab6c8; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-col .f-qr {
  width: 92px; height: 92px; background: #fff; border-radius: 8px; padding: 5px;
  margin-bottom: 8px;
}
.footer-col .f-qr-tip { font-size: 12px; color: #7f8ca0; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 18px 0; font-size: 12.5px;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.footer-bottom a { color: #aab6c8; }
.footer-bottom a:hover { color: #fff; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 960px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .contact-cards { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .about-wrap { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 30px; }
}

@media (max-width: 640px) {
  .nav-links {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    background: #fff; flex-direction: column; align-items: stretch;
    padding: 12px 20px 20px; border-bottom: 1px solid var(--line);
    box-shadow: 0 14px 24px rgba(0,0,0,.08);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 8px; font-size: 16px; }
  .nav-cta { margin-left: 0; text-align: center; }
  .nav-toggle { display: block; }
  .brand-name { font-size: 15px; }

  .grid-3, .grid-4, .steps, .feature-list { grid-template-columns: 1fr; }
  .section { padding: 54px 0; }
  .hero { padding: 60px 0 70px; }
  .hero-stats { gap: 26px; }
  .c-phone { font-size: 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
}

.nav-links.open + .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
