/* ============================================================
   index.css — 首页专属样式（牛仔裤复古风）
   布局：非对称错位 + 工装口袋格 + 牛皮纸标签 + 双缝线
   ============================================================ */

/* ---------- 模块1：全屏 Banner ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex; align-items: center;
  padding: 130px 0 90px;
  overflow: hidden;
}
.hero-media {
  position: absolute; inset: 0; z-index: 0;
}
.hero-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 38%;
  opacity: .5; filter: saturate(.85);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(100deg, rgba(34,56,79,.88) 0%, rgba(44,74,102,.62) 48%, rgba(34,56,79,.18) 100%);
}
.hero-inner { position: relative; z-index: 2; max-width: 860px; }

.hero-patch { margin-bottom: 22px; }

.hero-title {
  font-size: clamp(40px, 7.2vw, 74px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: 2px;
  color: var(--paper-100);
  display: flex; flex-direction: column; gap: 6px;
}
.hero-line { display: block; overflow: hidden; }
.hero-line i {
  font-style: normal; color: var(--stitch);
  text-shadow: 0 0 24px rgba(233,220,195,.4);
}
.hero-line--2 { font-size: clamp(24px, 4.2vw, 44px); font-weight: 700; }

/* 文字动画：逐行上移淡入 */
.hero-line { animation: riseLine .9s var(--ease) both; }
.hero-line--2 { animation-delay: .25s; }
.hero-sub { animation: riseLine .9s var(--ease) .45s both; }
.hero-cta { animation: riseLine .9s var(--ease) .6s both; }
.hero-tags { animation: riseLine .9s var(--ease) .75s both; }

@keyframes riseLine {
  from { opacity: 0; transform: translateY(34px); }
  to { opacity: 1; transform: none; }
}

.hero-sub {
  margin: 20px 0 30px;
  max-width: 640px;
  color: rgba(250,246,238,.88);
  font-size: clamp(15px, 1.8vw, 18px);
  line-height: 1.9;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; }
.btn-outline--hero {
  border-color: rgba(250,246,238,.7); color: var(--paper-100);
}
.btn-outline--hero:hover { background: var(--paper-100); color: var(--denim-800); }

.hero-tags {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 42px;
}
.hero-tags a {
  font-size: 13px; letter-spacing: 1px;
  padding: 6px 14px; border-radius: 30px;
  border: 1px solid rgba(250,246,238,.45);
  color: rgba(250,246,238,.92);
  background: rgba(34,56,79,.35);
  backdrop-filter: blur(4px);
  transition: background .25s, color .25s, transform .25s;
}
.hero-tags a:hover { background: var(--paper-100); color: var(--denim-800); transform: translateY(-2px); }

.hero-scroll {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  width: 24px; height: 40px; z-index: 3;
  border: 2px solid rgba(250,246,238,.55); border-radius: 14px;
}
.hero-scroll span {
  position: absolute; left: 50%; top: 8px; transform: translateX(-50%);
  width: 4px; height: 8px; border-radius: 3px; background: var(--stitch);
  animation: scrollDot 1.8s ease-in-out infinite;
}
@keyframes scrollDot {
  0% { opacity: 1; top: 8px; }
  70% { opacity: 0; top: 22px; }
  100% { opacity: 0; top: 22px; }
}

/* ---------- 模块2：数据条 ---------- */
.stats {
  position: relative; z-index: 5;
  margin-top: -64px;
}
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--paper-100);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.stats-item {
  padding: 34px 20px; text-align: center;
  border-right: 1px dashed var(--line);
  position: relative;
}
.stats-item:last-child { border-right: 0; }
.stats-item strong {
  display: block; font-size: 42px; font-weight: 900;
  color: var(--denim-700); line-height: 1.2;
  font-family: var(--font-serif);
}
.stats-item strong em { font-style: normal; font-size: 24px; color: var(--brown-700); }
.stats-item span { font-size: 14px; color: var(--ink-soft); letter-spacing: 1px; }
.stats-item::after {
  content: ""; position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%);
  width: 34px; height: 3px;
  background: repeating-linear-gradient(90deg, var(--brown-600) 0 7px, transparent 7px 11px);
}

/* ---------- 模块3：快速入口（工装口袋网格，错位排布） ---------- */
.quick { padding: 96px 0 84px; position: relative; }
.quick .sec-head { margin-bottom: 54px; }

.quick-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px;
}
.quick-card {
  display: flex; flex-direction: column;
  padding: 26px 24px 22px;
  background: var(--paper-200);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  position: relative;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s;
}
.quick-card::before {
  content: ""; position: absolute; top: 12px; right: 12px;
  width: 7px; height: 7px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #e8d9c0, var(--brown-700) 62%);
  box-shadow: inset 0 1px 2px rgba(255,255,255,.35), 0 1px 2px rgba(0,0,0,.3);
}
.quick-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  background: var(--paper-100);
}
.quick-card--main {
  background: var(--denim-700); color: var(--paper-100);
  border-color: var(--denim-800);
  grid-row: span 2;
  justify-content: flex-end;
}
.quick-card--main h3 { color: var(--paper-100); font-size: 34px; }
.quick-card--main p { color: rgba(250,246,238,.85); margin-top: 8px; }
.quick-card--main::before { background: radial-gradient(circle at 35% 35%, #f2e7cf, var(--brown-600) 62%); }
.quick-card--main::after {
  content: ""; position: absolute; left: 20px; right: 20px; bottom: 0; height: 3px;
  background: repeating-linear-gradient(90deg, var(--stitch) 0 8px, transparent 8px 12px);
  opacity: .5;
}
.quick-num {
  position: absolute; top: 16px; left: 18px;
  font-family: var(--font-serif);
  font-size: 15px; font-weight: 700; color: var(--brown-600);
  letter-spacing: 1px;
}
.quick-card--main .quick-num { color: var(--stitch); }
.quick-card h3 { font-size: 21px; margin-top: 18px; }
.quick-card p { font-size: 13.5px; color: var(--ink-soft); margin-top: 6px; line-height: 1.7; }
.quick-arrow {
  margin-top: 16px; font-size: 20px; color: var(--stitch);
  transition: transform .3s var(--ease);
}
.quick-card--main:hover .quick-arrow { transform: translateX(8px); }

/* ---------- 模块4：核心优势（左右错位 + 图章） ---------- */
.adv { padding: 96px 0; }
.adv-wrap {
  display: grid; grid-template-columns: 1.05fr 1.25fr; gap: 72px; align-items: center;
}
.adv-media { position: relative; transform: rotate(-2deg); }
.adv-media .pic-frame { padding: 10px; }
.adv-stamp {
  position: absolute; right: -26px; top: -28px;
  width: 88px; height: 88px; font-size: 13px; line-height: 1.5;
  transform: rotate(8deg);
}
.adv-main .sec-head { margin-bottom: 34px; }

.adv-list { display: flex; flex-direction: column; gap: 26px; }
.adv-list li { display: flex; gap: 18px; align-items: flex-start; }
.adv-ico {
  flex: none; width: 54px; height: 54px; border-radius: 50%;
  background: var(--denim-100); color: var(--denim-700);
  display: flex; align-items: center; justify-content: center;
  border: 2px dashed var(--denim-300);
}
.adv-ico svg { width: 26px; height: 26px; }
.adv-list h3 { font-size: 18px; margin-bottom: 4px; }
.adv-list p { font-size: 14.5px; color: var(--ink-soft); line-height: 1.85; }

/* ---------- 模块5：报考服务四件套 ---------- */
.serve { padding: 96px 0; position: relative; }
.serve-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px;
}
.serve-card {
  display: block; position: relative;
  padding: 42px 40px 38px;
  background: var(--paper-100);
  border: 1px solid var(--line);
  border-left: 6px solid var(--denim-600);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.serve-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.serve-card--brown { border-left-color: var(--brown-700); }
.serve-card--brown .serve-idx { color: var(--brown-700); }
.serve-idx {
  font-family: var(--font-serif); font-size: 15px; font-weight: 700;
  color: var(--denim-600); letter-spacing: 2px;
}
.serve-card h3 { font-size: 23px; margin: 12px 0 10px; }
.serve-card p { font-size: 14.5px; color: var(--ink-soft); line-height: 1.9; }
.serve-more {
  display: inline-block; margin-top: 18px; font-size: 14px; font-weight: 600;
  color: var(--brown-700);
  border-bottom: 2px solid var(--brown-200);
  padding-bottom: 2px;
  transition: color .25s, border-color .25s;
}
.serve-card:hover .serve-more { color: var(--denim-700); border-color: var(--denim-500); }
.serve-card:nth-child(2n) { transform: translateY(24px); }
.serve-card:nth-child(2n):hover { transform: translateY(18px); }

/* ---------- 模块6：区县覆盖（照片卡片瀑布） ---------- */
.county { padding: 100px 0; }
.county .sec-head p.lead { color: rgba(250,246,238,.75); }
.county-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.county-card {
  position: relative; display: block;
  border-radius: var(--r-md); overflow: hidden;
  border: 3px solid rgba(250,246,238,.25);
  transition: transform .3s var(--ease), border-color .3s;
}
.county-card img { width: 100%; height: 210px; object-fit: cover; transition: transform .5s var(--ease); }
.county-card:hover img { transform: scale(1.06); }
.county-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(24,38,54,.82));
}
.county-card h3, .county-card p { position: relative; z-index: 2; }
.county-card h3 { color: var(--paper-100); font-size: 18px; letter-spacing: 1px; }
.county-card p { color: rgba(250,246,238,.75); font-size: 12.5px; margin-top: 4px; }
.county-card .county-card-text { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 2; }
.county-card:nth-child(even) { transform: translateY(26px); }
.county-card:nth-child(even):hover { transform: translateY(20px); }
.county-card:hover { border-color: var(--stitch); }

/* ---------- 模块7：资讯列表 ---------- */
.newsfeed { padding: 100px 0 88px; }
.newsfeed-group { margin-bottom: 54px; }
.newsfeed-group--day .newsfeed-row { grid-template-columns: repeat(3, 1fr); }
.newsfeed-group--week .newsfeed-row { grid-template-columns: repeat(3, 1fr); }
.newsfeed-group--month .newsfeed-row { grid-template-columns: repeat(3, 1fr); }

.newsfeed-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.newsfeed-card {
  display: grid; grid-template-columns: 300px 1fr; gap: 22px;
  background: var(--paper-200);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.newsfeed-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.newsfeed-pic { display: block; overflow: hidden; }
.newsfeed-pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.newsfeed-card:hover .newsfeed-pic img { transform: scale(1.05); }
.newsfeed-body { padding: 18px 20px 16px 0; display: flex; flex-direction: column; }
.newsfeed-body h3 { font-size: 17px; line-height: 1.5; }
.newsfeed-body h3 a { color: var(--denim-900); }
.newsfeed-body h3 a:hover { color: var(--brown-700); }
.newsfeed-body p {
  font-size: 13.5px; color: var(--ink-soft); line-height: 1.8;
  margin-top: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.newsfeed-body time {
  margin-top: auto; padding-top: 10px; font-size: 12.5px; color: var(--brown-600);
  letter-spacing: 1px;
}
.newsfeed-body time::before {
  content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--denim-500); margin-right: 8px; vertical-align: 1px;
}
.newsfeed-more { text-align: center; margin-top: 8px; }

/* ---------- 模块8：成功案例 ---------- */
.cases { padding: 96px 0; }
.cases-grid {
  display: grid; grid-template-columns: 1fr 1fr 0.9fr; gap: 30px; align-items: start;
}
.case-card { margin: 0; }
.case-photo { padding: 8px; background: var(--paper-100); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-sm); }
.case-photo img { border-radius: 6px; }
.case-card--offset { transform: translateY(34px); }
.case-card figcaption { padding: 16px 6px 0; }
.case-card h3 { font-size: 17px; }
.case-card p { font-size: 13.5px; color: var(--ink-soft); line-height: 1.85; margin: 8px 0 12px; }
.cases-note {
  align-self: center;
  background: var(--paper-200);
  border: 1px dashed var(--brown-400);
  border-radius: var(--r-md);
  padding: 34px 30px;
  margin-top: 40px;
}
.cases-note h3 { font-size: 20px; }
.cases-note p { font-size: 14px; color: var(--ink-soft); margin: 10px 0 18px; line-height: 1.85; }

/* ---------- 模块9：常见疑问 + CTA ---------- */
.faq-cta { padding: 96px 0; }
.faq-grid {
  display: grid; grid-template-columns: 1.35fr 1fr; gap: 60px; align-items: start;
}
.faq-main .kicker { color: var(--brown-700); font-size: 13px; letter-spacing: 4px; font-weight: 600; }
.faq-main h2 { font-size: clamp(26px, 3.6vw, 36px); margin: 10px 0 30px; }
.faq-list { margin-bottom: 30px; }
.faq-list div {
  padding: 18px 0; border-bottom: 1px dashed var(--line);
}
.faq-list dt { font-weight: 700; font-size: 16px; color: var(--denim-800); display: flex; gap: 10px; align-items: baseline; }
.faq-list dt::before { content: "Q"; font-family: var(--font-serif); color: var(--brown-700); font-weight: 900; }
.faq-list dd { font-size: 14.5px; color: var(--ink-soft); line-height: 1.9; margin-top: 8px; padding-left: 26px; }

.faq-aside {
  padding: 44px 38px;
  border-radius: var(--r-lg);
  position: relative;
  transform: rotate(1.2deg);
}
.faq-aside h3 { color: var(--paper-100); font-size: 26px; margin: 16px 0 12px; }
.faq-aside p { color: rgba(250,246,238,.85); font-size: 14.5px; line-height: 1.9; margin-bottom: 24px; }
.faq-tel {
  display: block; margin-top: 16px; color: var(--stitch);
  font-size: 14px; letter-spacing: 1px; text-align: center;
}
.faq-tel:hover { color: #fff; }

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .quick-grid { grid-template-columns: repeat(3, 1fr); }
  .county-grid { grid-template-columns: repeat(2, 1fr); }
  .county-card:nth-child(even) { transform: none; }
  .county-card:nth-child(even):hover { transform: translateY(-4px); }
  .adv-wrap { gap: 40px; }
  .cases-grid { grid-template-columns: 1fr 1fr; }
  .cases-note { margin-top: 0; }
  .newsfeed-row { grid-template-columns: 1fr; }
  .newsfeed-group--day .newsfeed-row,
  .newsfeed-group--week .newsfeed-row,
  .newsfeed-group--month .newsfeed-row { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .hero { min-height: 86vh; padding-top: 108px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-item { border-bottom: 1px dashed var(--line); }
  .adv-wrap { grid-template-columns: 1fr; }
  .adv-media { max-width: 480px; margin: 0 auto; transform: none; }
  .serve-grid { grid-template-columns: 1fr; }
  .serve-card:nth-child(2n) { transform: none; }
  .serve-card:nth-child(2n):hover { transform: translateY(-5px); }
  .faq-grid { grid-template-columns: 1fr; }
  .newsfeed-card { grid-template-columns: 1fr; }
  .newsfeed-pic img { height: 220px; }
  .newsfeed-body { padding: 16px 18px 18px; }
}

@media (max-width: 640px) {
  .quick-grid { grid-template-columns: 1fr 1fr; }
  .quick-card--main { grid-row: auto; }
  .county-grid { grid-template-columns: 1fr; }
  .cases-grid { grid-template-columns: 1fr; }
  .case-card--offset { transform: none; }
  .stats-item strong { font-size: 32px; }
  .hero-cta .btn { width: 100%; }
  .hero { padding-top: 100px; }
}
