/* ============================================
   红包代发平台 - 全站样式
   主色调：京东红 #E1251B
   ============================================ */
:root {
  --jd-red: #E1251B;
  --jd-red-dark: #C4160C;
  --jd-red-light: #FDEDEC;
  --text-dark: #1a1a1a;
  --text-gray: #666;
  --text-light: #999;
  --bg-gray: #f6f6f6;
  --border: #ebebeb;
  --white: #ffffff;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 8px 30px rgba(225, 37, 27, 0.12);
  --radius: 10px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.7;
  font-size: 16px;
}

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

/* 视觉隐藏（仅供读屏与搜索引擎的补充标题） */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.container { width: 92%; max-width: 1200px; margin: 0 auto; }

/* ============ 顶部导航 ============ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark {
  width: 42px; height: 42px; border-radius: 10px;
  background: linear-gradient(135deg, var(--jd-red), #FF6A3D);
  color: #fff; font-size: 22px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.logo-text { font-size: 21px; font-weight: 700; color: var(--text-dark); }
.logo-text span { color: var(--jd-red); }

.main-nav { display: flex; gap: 8px; }
.main-nav a {
  padding: 8px 18px; font-size: 16px; color: #333;
  border-radius: 6px; font-weight: 500;
}
.main-nav a:hover { color: var(--jd-red); }
.main-nav a.active { color: #fff; background: var(--jd-red); }

.header-cta {
  background: var(--jd-red); color: #fff !important;
  padding: 9px 22px !important; border-radius: 22px;
  font-weight: 600; box-shadow: 0 4px 12px rgba(225,37,27,.3);
}
.header-cta:hover { background: var(--jd-red-dark); }

/* 移动端菜单按钮 */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #333; margin: 5px 0; transition: .3s; }

/* ============ Hero 区 ============ */
.hero {
  background: linear-gradient(120deg, #C4160C 0%, #E1251B 45%, #FF5A3C 100%);
  color: #fff; padding: 110px 0 130px;
  position: relative; overflow: hidden;
}
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%;
  background: rgba(255,255,255,.08);
}
.hero::before { width: 420px; height: 420px; top: -160px; right: -80px; }
.hero::after { width: 260px; height: 260px; bottom: -120px; left: 6%; }

.hero-inner { position: relative; z-index: 2; max-width: 760px; }
.hero-tag {
  display: inline-block; background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.35);
  padding: 5px 16px; border-radius: 20px; font-size: 14px; margin-bottom: 22px;
  letter-spacing: 1px;
}
.hero h1 { font-size: 46px; line-height: 1.3; margin-bottom: 20px; font-weight: 700; }
.hero h1 em { font-style: normal; color: #FFE082; }
.hero p.lead { font-size: 18px; opacity: .94; margin-bottom: 36px; max-width: 620px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 34px; border-radius: 28px; font-size: 16px;
  font-weight: 600; cursor: pointer; border: none; transition: .25s;
}
.btn-white { background: #fff; color: var(--jd-red); }
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.18); }
.btn-outline { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.7); }
.btn-outline:hover { background: rgba(255,255,255,.12); }
.btn-red { background: var(--jd-red); color: #fff; }
.btn-red:hover { background: var(--jd-red-dark); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(225,37,27,.3); }

/* ============ 通用区块 ============ */
.section { padding: 84px 0; }
.section.gray { background: var(--bg-gray); }
.section-head { text-align: center; margin-bottom: 52px; }
.section-head .kicker {
  color: var(--jd-red); font-weight: 700; font-size: 14px;
  letter-spacing: 3px; text-transform: uppercase;
}
.section-head h2 { font-size: 34px; margin: 8px 0 12px; font-weight: 700; }
.section-head p { color: var(--text-gray); max-width: 640px; margin: 0 auto; }

/* ============ 痛点/服务卡片 ============ */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.card {
  background: #fff; border-radius: var(--radius); padding: 34px 28px;
  box-shadow: var(--shadow); transition: .3s; border: 1px solid transparent;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); border-color: rgba(225,37,27,.25); }
.card .icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: var(--jd-red-light); color: var(--jd-red);
  font-size: 26px; display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.card h3 { font-size: 19px; margin-bottom: 10px; }
.card p { color: var(--text-gray); font-size: 15px; }

/* 数据条 */
.stats-bar { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); padding: 40px 0; }
.stat-item { text-align: center; border-right: 1px solid var(--border); }
.stat-item:last-child { border-right: none; }
.stat-num { font-size: 38px; font-weight: 700; color: var(--jd-red); }
.stat-num small { font-size: 18px; }
.stat-label { color: var(--text-gray); font-size: 14px; margin-top: 4px; }

/* ============ 案例卡片 ============ */
.case-card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: .3s; display: flex; flex-direction: column;
}
.case-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.case-cover {
  height: 190px; display: flex; align-items: center; justify-content: center;
  font-size: 52px; color: #fff; overflow: hidden;
}
.case-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.case-card:hover .case-cover img { transform: scale(1.04); }
.case-body { padding: 24px 24px 28px; flex: 1; display: flex; flex-direction: column; }
.case-body .tag {
  align-self: flex-start; font-size: 12px; color: var(--jd-red);
  background: var(--jd-red-light); padding: 3px 12px; border-radius: 12px; margin-bottom: 12px;
}
.case-body h3 { font-size: 18px; margin-bottom: 10px; }
.case-body p { color: var(--text-gray); font-size: 14.5px; flex: 1; }
.case-body .result {
  margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--border);
  font-size: 14px; color: var(--text-dark);
}
.case-body .result b { color: var(--jd-red); }

/* ============ 资讯列表 ============ */
.news-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.news-item {
  background: #fff; border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow); transition: .3s; display: flex; flex-direction: column;
}
.news-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.news-meta { display: flex; gap: 14px; align-items: center; font-size: 13px; color: var(--text-light); margin-bottom: 12px; }
.news-meta .cat { color: var(--jd-red); background: var(--jd-red-light); padding: 2px 10px; border-radius: 10px; }
.news-item h3 { font-size: 19px; margin-bottom: 10px; line-height: 1.5; }
.news-item h3 a:hover { color: var(--jd-red); }
.news-item p { color: var(--text-gray); font-size: 14.5px; flex: 1; }
.news-item .more { margin-top: 14px; color: var(--jd-red); font-size: 14px; font-weight: 600; }

/* 资讯详情 */
.news-detail-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 44px; max-width: 900px; margin: 0 auto; }
.news-detail-card h1 { font-size: 28px; margin-bottom: 14px; }
.news-detail-card .meta { color: var(--text-light); font-size: 14px; margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.news-detail-card .content p { margin-bottom: 16px; color: #444; }

/* ============ 页面 Banner（内页顶部） ============ */
.page-banner {
  background: linear-gradient(120deg, #C4160C, #E1251B 55%, #FF5A3C);
  color: #fff; text-align: center; padding: 72px 0;
  position: relative; overflow: hidden;
}
.page-banner::after {
  content: ""; position: absolute; width: 300px; height: 300px;
  border-radius: 50%; background: rgba(255,255,255,.07);
  top: -120px; right: -60px;
}
.page-banner h1 { font-size: 36px; margin-bottom: 8px; position: relative; z-index: 1; }
.page-banner p { opacity: .9; position: relative; z-index: 1; }

/* ============ 联系我们 / 留言表单 ============ */
.contact-wrap { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: start; }
.contact-info-card {
  background: linear-gradient(140deg, #C4160C, #E1251B);
  color: #fff; border-radius: var(--radius); padding: 40px 36px;
}
.contact-info-card h3 { font-size: 24px; margin-bottom: 16px; }
.contact-info-card p { opacity: .92; margin-bottom: 24px; font-size: 15px; }
.contact-point { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 20px; }
.contact-point .pt-icon {
  width: 42px; height: 42px; border-radius: 10px; flex-shrink: 0;
  background: rgba(255,255,255,.16); display: flex; align-items: center; justify-content: center; font-size: 19px;
}
.contact-point h4 { font-size: 15.5px; margin-bottom: 2px; }
.contact-point p { margin: 0; opacity: .85; font-size: 14px; }

.form-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 40px 36px; }
.form-card h3 { font-size: 22px; margin-bottom: 6px; }
.form-card .sub { color: var(--text-gray); font-size: 14px; margin-bottom: 26px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 7px; }
.form-group label i { color: var(--jd-red); font-style: normal; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 12px 14px; border: 1px solid #ddd; border-radius: 8px;
  font-size: 15px; font-family: inherit; outline: none; transition: .2s; background: #fafafa;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  border-color: var(--jd-red); background: #fff; box-shadow: 0 0 0 3px rgba(225,37,27,.1);
}
.form-group textarea { resize: vertical; min-height: 110px; }
.form-tip { font-size: 13px; color: var(--text-light); margin-top: 14px; text-align: center; }

/* ============ 一键留言悬浮插件 ============ */
.quick-msg-btn {
  position: fixed; right: 26px; bottom: 90px; z-index: 999;
  width: 62px; height: 62px; border-radius: 50%;
  background: linear-gradient(135deg, var(--jd-red), #FF5A3C);
  color: #fff; border: none; cursor: pointer;
  box-shadow: 0 8px 24px rgba(225,37,27,.4);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1px; font-size: 12px; font-weight: 600; transition: .25s;
  animation: pulse 2.4s infinite;
}
.quick-msg-btn .qm-icon { font-size: 20px; line-height: 1; }
.quick-msg-btn:hover { transform: scale(1.08); }
@keyframes pulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(225,37,27,.4); }
  50% { box-shadow: 0 8px 24px rgba(225,37,27,.4), 0 0 0 12px rgba(225,37,27,.12); }
}

/* 留言弹窗 */
.modal-mask {
  position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 1000;
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal-mask.show { display: flex; }
.modal-box {
  background: #fff; border-radius: 14px; width: 100%; max-width: 440px;
  padding: 34px 30px; position: relative; animation: pop .25s ease;
}
@keyframes pop { from { transform: scale(.92); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal-close {
  position: absolute; top: 14px; right: 16px; background: none; border: none;
  font-size: 22px; color: #999; cursor: pointer; line-height: 1;
}
.modal-close:hover { color: var(--jd-red); }
.modal-box h3 { font-size: 21px; margin-bottom: 4px; }
.modal-box .sub { color: var(--text-gray); font-size: 13.5px; margin-bottom: 20px; }
.msg-result { text-align: center; padding: 30px 0 10px; display: none; }
.msg-result .ok-icon { font-size: 52px; margin-bottom: 12px; }
.msg-result h4 { font-size: 19px; margin-bottom: 8px; }
.msg-result p { color: var(--text-gray); font-size: 14px; }

/* toast */
.toast {
  position: fixed; left: 50%; bottom: 40px; transform: translateX(-50%);
  background: rgba(0,0,0,.8); color: #fff; padding: 11px 24px; border-radius: 24px;
  font-size: 14px; z-index: 1100; opacity: 0; pointer-events: none; transition: .3s;
}
.toast.show { opacity: 1; bottom: 56px; }

/* ============ CTA 条 ============ */
.cta-band {
  background: linear-gradient(120deg, #C4160C, #E1251B 60%, #FF5A3C);
  border-radius: 16px; color: #fff; padding: 46px 50px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  flex-wrap: wrap;
}
.cta-band h2 { font-size: 27px; margin-bottom: 6px; }
.cta-band p { opacity: .9; }

/* ============ 关于我们 ============ */
.about-block { display: grid; grid-template-columns: 1.1fr 1fr; gap: 46px; align-items: center; }
.about-visual {
  background: linear-gradient(140deg, #C4160C, #E1251B 60%, #FF5A3C);
  border-radius: 16px; color: #fff; padding: 46px 40px; min-height: 340px;
  display: flex; flex-direction: column; justify-content: center;
}
.about-visual .big-emoji { font-size: 60px; margin-bottom: 18px; }
.about-visual h3 { font-size: 24px; margin-bottom: 12px; }
.about-visual p { opacity: .92; font-size: 15px; }
.about-text h2 { font-size: 30px; margin-bottom: 18px; }
.about-text p { color: var(--text-gray); margin-bottom: 14px; font-size: 15.5px; }
.about-points { margin-top: 20px; }
.about-points li {
  display: flex; gap: 10px; margin-bottom: 12px; font-size: 15.5px; align-items: flex-start;
}
.about-points .check { color: var(--jd-red); font-weight: 700; }

.value-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.value-item { text-align: center; padding: 30px 18px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.value-item .v-icon { font-size: 38px; margin-bottom: 14px; }
.value-item h4 { font-size: 17px; margin-bottom: 8px; }
.value-item p { font-size: 13.5px; color: var(--text-gray); }

/* 流程 */
.flow-steps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; counter-reset: step; }
.flow-step {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 28px 18px; text-align: center; position: relative; transition: .3s;
}
.flow-step:hover { transform: translateY(-4px); }
.flow-step .num {
  width: 40px; height: 40px; border-radius: 50%; margin: 0 auto 14px;
  background: var(--jd-red); color: #fff; font-weight: 700; font-size: 17px;
  display: flex; align-items: center; justify-content: center;
}
.flow-step h4 { font-size: 16px; margin-bottom: 6px; }
.flow-step p { font-size: 13px; color: var(--text-gray); }

/* ============ 资讯详情页（独立文章页） ============ */
.article-banner {
  background: linear-gradient(120deg, #C4160C, #E1251B 55%, #FF5A3C);
  color: #fff; padding: 34px 0 46px; position: relative; overflow: hidden;
}
.article-banner::after {
  content: ""; position: absolute; width: 320px; height: 320px; border-radius: 50%;
  background: rgba(255,255,255,.07); top: -140px; right: -70px;
}
.article-banner .container { position: relative; z-index: 1; }
.breadcrumb { font-size: 14px; opacity: .88; margin-bottom: 30px; }
.breadcrumb a { color: #fff; opacity: .88; }
.breadcrumb a:hover { opacity: 1; }
.breadcrumb .sep { margin: 0 10px; opacity: .6; }
.breadcrumb .cur { opacity: .75; }
.article-banner .ab-cat {
  display: inline-block; background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.4); padding: 3px 14px;
  border-radius: 14px; font-size: 13px; margin-bottom: 14px;
}
.article-banner h1 { font-size: 32px; line-height: 1.45; max-width: 820px; }
.article-banner .ab-meta { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 16px; font-size: 13.5px; opacity: .88; }

.article-card {
  background: #fff; border-radius: 16px; box-shadow: var(--shadow);
  padding: 46px 52px 40px; max-width: 880px; margin: 0 auto;
  border-top: 4px solid var(--jd-red);
}
.preview-tip {
  background: #FFF7E6; color: #C77700; font-size: 13.5px;
  padding: 9px 14px; border-radius: 8px; margin-bottom: 20px;
}
.article-lead {
  font-size: 16.5px; color: #555; background: var(--jd-red-light);
  border-left: 4px solid var(--jd-red); padding: 16px 20px;
  border-radius: 0 10px 10px 0; line-height: 1.8; margin-bottom: 28px;
}
.article-content p { margin-bottom: 16px; color: #3d3d3d; font-size: 16px; line-height: 1.95; }
.article-cta {
  background: linear-gradient(120deg, #FFF5F4, #FDEDEC);
  border: 1px dashed rgba(225,37,27,.35); border-radius: 12px;
  padding: 24px 28px; margin: 34px 0 0;
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
}
.article-cta h4 { font-size: 17px; color: var(--jd-red); margin-bottom: 4px; }
.article-cta p { font-size: 14px; color: var(--text-gray); }
.article-nav {
  display: flex; justify-content: space-between; gap: 16px;
  margin-top: 36px; padding-top: 26px; border-top: 1px dashed var(--border);
}
.anav {
  flex: 1; max-width: 48%; display: flex; flex-direction: column; gap: 6px;
  background: #fafafa; border-radius: 10px; padding: 16px 18px; transition: .25s;
}
.anav:hover { background: var(--jd-red-light); }
.anav.next { text-align: right; margin-left: auto; }
.anav-label { font-size: 12.5px; color: var(--jd-red); font-weight: 700; }
.anav-title { font-size: 14.5px; color: #333; line-height: 1.6; }

@media (max-width: 768px) {
  .article-banner h1 { font-size: 24px; }
  .article-card { padding: 28px 22px; }
  .article-nav { flex-direction: column; }
  .anav { max-width: 100%; }
  .anav.next { text-align: left; }
  .article-cta { padding: 20px; }
}

/* ============ FAQ ============ */
.faq-list { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.faq-list .card h3 { color: var(--text-dark); }
@media (max-width: 768px) { .faq-list { grid-template-columns: 1fr; } }

/* ============ 页脚 ============ */
.site-footer { background: #1f1f1f; color: #aaa; padding: 60px 0 0; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 44px; }
.footer-grid h4 { color: #fff; font-size: 16px; margin-bottom: 18px; }
.footer-grid li { margin-bottom: 10px; font-size: 14px; }
.footer-grid a:hover { color: var(--jd-red); }
.footer-about p { font-size: 14px; line-height: 1.8; margin-top: 14px; }
.footer-logo { display: flex; align-items: center; gap: 10px; }
.footer-logo .logo-text { color: #fff; }
.footer-bottom {
  border-top: 1px solid #333; padding: 18px 0; text-align: center;
  font-size: 13px; color: #777;
}

/* ============ 响应式 ============ */
@media (max-width: 992px) {
  .grid-3, .grid-4, .value-grid { grid-template-columns: repeat(2, 1fr); }
  .flow-steps { grid-template-columns: repeat(2, 1fr); }
  .contact-wrap, .about-block { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 36px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 26px; }
  .stat-item:nth-child(2) { border-right: none; }
}
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    background: #fff; flex-direction: column; padding: 12px 5%;
    box-shadow: 0 10px 20px rgba(0,0,0,.08); gap: 4px;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 16px; }
  .header-cta { display: none; }
  .section { padding: 56px 0; }
  .news-list { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero { padding: 70px 0 90px; }
  .hero h1 { font-size: 30px; line-height: 1.4; }
  .hero p.lead { font-size: 16px; }
  .hero-actions { gap: 12px; }
  .hero-actions .btn { flex: 1 1 0; justify-content: center; padding: 13px 8px; }
  .section-head h2 { font-size: 27px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-band { padding: 34px 26px; }
  .quick-msg-btn { width: 54px; height: 54px; right: 16px; bottom: 84px; }
  .quick-msg-btn .qm-icon { font-size: 18px; }
}

/* 小屏手机（≤480px）：banner 与卡片进一步优化 */
@media (max-width: 480px) {
  .hero { padding: 60px 0 80px; }
  .hero h1 { font-size: 25px; line-height: 1.5; letter-spacing: 0; }
  .hero h1 br { display: none; }
  .hero-tag { font-size: 13px; letter-spacing: 0; padding: 4px 14px; margin-bottom: 18px; }
  .hero p.lead { margin-bottom: 30px; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .flow-steps { grid-template-columns: 1fr 1fr; }
  .case-cover { height: 200px; }
  .case-cover img { height: 200px !important; }
}
