/* ==========================================================================
   lnrk.cn · 首页专属样式 index.css（仅服务于 index.html，独立原创布局）
   ========================================================================== */

/* ---------- Hero 全屏横幅 ---------- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; isolation: isolate; }
.hero-img {
  position: absolute; inset: 0; z-index: -2;
  background: url('../images/banner-main.jpg') center 30% / cover no-repeat;
  transform: scale(1.08); animation: heroZoom 9s ease-out forwards;
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(100deg, rgba(51, 80, 60, .78) 0%, rgba(51, 80, 60, .42) 45%, rgba(251, 247, 240, .06) 70%),
    linear-gradient(0deg, rgba(251, 247, 240, .9) 0%, transparent 34%);
}
.hero-inner { padding: 7rem 0 9rem; color: var(--c-cream); }
.hero-overline {
  display: inline-flex; align-items: center; gap: .6rem; font-size: .8rem; letter-spacing: .32em;
  color: var(--c-apricot); margin-bottom: 1.3rem;
}
.hero-overline::before { content: ""; width: 42px; height: 1.5px; background: var(--c-apricot); }
.hero-title { font-size: clamp(2.3rem, 6vw, 4.4rem); line-height: 1.16; color: var(--c-cream); letter-spacing: .04em; }
.hero-title span { display: inline-block; overflow: hidden; vertical-align: bottom; }
.hero-title span::after { content: ""; display: block; height: .5rem; margin-top: .1rem; border-radius: 4px; background: var(--c-green); width: 0; animation: underlineGrow .8s ease forwards; }
.hero-title .w1 { animation: wordUp .7s ease both; }
.hero-title .w2 { animation: wordUp .7s .15s ease both; }
.hero-title .w3 { animation: wordUp .7s .3s ease both; }
@keyframes wordUp { from { opacity: 0; transform: translateY(120%); } to { opacity: 1; transform: none; } }
@keyframes underlineGrow { to { width: 100%; } }
.hero-sub { margin: 1.6rem 0 2.2rem; font-size: clamp(1rem, 1.6vw, 1.15rem); color: rgba(251, 247, 240, .92); max-width: 640px; animation: fadeLate 1s .55s ease both; }
@keyframes fadeLate { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; animation: fadeLate 1s .75s ease both; }
.hero-scroll { position: absolute; left: 50%; bottom: 3.2rem; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: .4rem; color: var(--c-forest); }
.hero-scroll span { width: 22px; height: 34px; border: 2px solid var(--c-forest); border-radius: 12px; position: relative; }
.hero-scroll span::before { content: ""; position: absolute; left: 50%; top: 6px; width: 4px; height: 8px; margin-left: -2px; border-radius: 3px; background: var(--c-forest); animation: scrollDot 1.6s ease infinite; }
@keyframes scrollDot { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }
.hero-scroll em { font-style: normal; font-size: .72rem; letter-spacing: .2em; }
.leaf { position: absolute; z-index: 1; animation: leafFloat 7s ease-in-out infinite; }
.leaf-a { width: 90px; top: 22%; right: 12%; }
.leaf-b { width: 64px; bottom: 26%; right: 6%; animation-delay: 1.4s; }
.leaf-c { width: 48px; top: 30%; right: 30%; animation-delay: 2.6s; }
@keyframes leafFloat { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-18px) rotate(8deg); } }

/* ---------- ② 快速入口 ---------- */
.quick { padding: 5.5rem 0 4rem; }
.quick-wrap { display: grid; grid-template-columns: 1.25fr .85fr; gap: 2.6rem; align-items: start; }
.quick-group { background: var(--c-white); border: 1px solid var(--c-line); border-radius: 22px; padding: 1.8rem; box-shadow: var(--shadow-soft); }
.quick-group-title { display: flex; align-items: center; gap: .6rem; color: var(--c-forest); margin-bottom: 1.3rem; font-size: 1.05rem; }
.quick-group-title svg { color: var(--c-green-d); }
.entry-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .9rem; }
.entry-card {
  display: flex; flex-direction: column; align-items: center; gap: .3rem; text-align: center;
  padding: 1.1rem .5rem; border-radius: 16px; border: 1.5px dashed var(--c-line);
  color: var(--c-ink); transition: border-color .25s, background .25s, transform .25s, box-shadow .25s;
}
.entry-card svg { width: 40px; height: 40px; color: var(--c-green-d); transition: transform .3s ease; }
.entry-card:hover { border-color: var(--c-green-d); border-style: solid; background: var(--c-sage); transform: translateY(-5px); box-shadow: var(--shadow-card); }
.entry-card:hover svg { transform: scale(1.12); }
.entry-card strong { font-size: .95rem; color: var(--c-forest); }
.entry-card em { font-style: normal; font-size: .72rem; color: var(--c-ink); opacity: .75; }
.district-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; }
.district-chip {
  display: flex; align-items: center; gap: .55rem; padding: .72rem .8rem; border-radius: 12px;
  background: var(--c-sand); color: var(--c-ink); font-weight: 600; font-size: .92rem;
  transition: background .25s, color .25s, transform .25s;
}
.district-chip i { font-style: normal; font-size: .7rem; color: var(--c-apricot-d); font-weight: 700; letter-spacing: .05em; }
.district-chip:hover { background: var(--c-forest); color: var(--c-cream); transform: translateY(-3px); }
.district-chip:hover i { color: var(--c-apricot); }

/* ---------- ③ 核心优势 ---------- */
.strength { background: linear-gradient(180deg, var(--c-sand), var(--c-cream)); padding: 5rem 0; }
.str-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.str-card {
  position: relative; background: var(--c-white); border-radius: 20px; padding: 2rem 1.7rem 1.8rem;
  box-shadow: var(--shadow-card); border-top: 4px solid var(--c-green);
  transition: transform .3s ease, box-shadow .3s ease;
}
.str-card:hover { transform: translateY(-8px); box-shadow: 0 16px 34px rgba(86, 96, 74, .18); }
.str-card::after { content: ""; position: absolute; right: 1.4rem; top: 1.4rem; width: 26px; height: 26px; border-radius: 50%; background: var(--c-sage); opacity: .8; }
.str-card svg { width: 46px; height: 46px; color: var(--c-green-d); margin-bottom: 1rem; }
.str-card h3 { font-size: 1.1rem; margin-bottom: .6rem; }
.str-card p { font-size: .9rem; opacity: .88; }

/* ---------- ④ 岗位对比 ---------- */
.compare { padding: 5.5rem 0; }
.cmp-scroll { overflow-x: auto; border-radius: var(--radius); }
.cmp-tbl th:first-child { min-width: 110px; }
.cmp-name { font-weight: 700; color: var(--c-forest); }
.cmp-name:hover { color: var(--c-green-d); text-decoration: underline; }
.cmp-note { text-align: center; font-size: .8rem; color: var(--c-ink); opacity: .7; margin-top: 1rem; }

/* ---------- ⑤ 报考流程 ---------- */
.flow { background: var(--c-forest); padding: 5rem 0; position: relative; overflow: hidden; }
.flow::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 300px at 12% 0%, rgba(168, 195, 160, .16), transparent 60%), radial-gradient(500px 260px at 88% 100%, rgba(234, 217, 197, .14), transparent 60%); }
.flow .section-head h2, .flow .sec-overline { color: var(--c-cream); }
.flow .section-head p { color: rgba(251, 247, 240, .75); }
.flow-steps { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.1rem; counter-reset: none; }
.flow-steps::before { content: ""; position: absolute; top: 34px; left: 6%; right: 6%; height: 2px; background: linear-gradient(90deg, var(--c-green), var(--c-apricot-d)); border-radius: 2px; }
.flow-steps li { position: relative; background: rgba(251, 247, 240, .07); border: 1px solid rgba(216, 228, 208, .22); border-radius: 16px; padding: 1.3rem 1rem 1.2rem; backdrop-filter: blur(4px); transition: background .3s, transform .3s; }
.flow-steps li:hover { background: rgba(251, 247, 240, .14); transform: translateY(-5px); }
.flow-steps i { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--c-green-d); color: #Fffaf2; font-style: normal; font-weight: 700; font-size: .9rem; margin-bottom: .8rem; box-shadow: 0 0 0 5px rgba(251, 247, 240, .12); }
.flow-steps h3 { color: var(--c-cream); font-size: 1rem; margin-bottom: .45rem; }
.flow-steps p { color: rgba(251, 247, 240, .78); font-size: .82rem; }

/* ---------- ⑥ 数据带 ---------- */
.stats { background: var(--c-apricot); padding: 3.4rem 0; }
.stats-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; text-align: center; }
.stat b { display: block; font-size: clamp(2rem, 4vw, 2.8rem); color: var(--c-forest); line-height: 1.1; }
.stat span { font-size: .9rem; color: var(--c-ink); }

/* ---------- ⑦ 政策预览 ---------- */
.policy-preview { padding: 5.5rem 0; }
.pol-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.pol-card { background: var(--c-white); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-card); transition: transform .3s ease, box-shadow .3s ease; }
.pol-card:hover { transform: translateY(-8px); box-shadow: 0 16px 34px rgba(86, 96, 74, .18); }
.pol-card img { width: 100%; height: 190px; object-fit: cover; transition: transform .5s ease; }
.pol-card:hover img { transform: scale(1.05); }
.pol-body { padding: 1.3rem 1.4rem 1.5rem; }
.pol-body h3 { font-size: 1.04rem; margin: .6rem 0 .5rem; }
.pol-body h3 a:hover { color: var(--c-green-d); }
.pol-body p { font-size: .86rem; opacity: .85; }
.pol-more { display: inline-block; margin-top: .7rem; font-size: .85rem; font-weight: 600; color: var(--c-green-d); }
.pol-more:hover { color: var(--c-forest); }

/* ---------- ⑧ 避坑预览 ---------- */
.pitfall { background: var(--c-sage); padding: 5rem 0; }
.pit-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 3rem; align-items: center; }
.pit-intro h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin: .7rem 0 1rem; }
.pit-intro p { margin-bottom: 1.6rem; opacity: .9; }
.pit-list { display: grid; gap: 1rem; }
.pit-list li { display: flex; gap: 1rem; align-items: flex-start; background: var(--c-white); border-radius: 16px; padding: 1.1rem 1.2rem; box-shadow: var(--shadow-card); transition: transform .25s ease; }
.pit-list li:hover { transform: translateX(6px); }
.pit-list svg { width: 30px; height: 30px; color: var(--c-clay); flex-shrink: 0; margin-top: .15rem; }
.pit-list h3 { font-size: 1rem; margin-bottom: .25rem; }
.pit-list p { font-size: .85rem; opacity: .85; }

/* ---------- ⑨ 案例预览 ---------- */
.case-preview { padding: 5.5rem 0; }
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.case-card { position: relative; background: var(--c-white); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-card); transition: transform .3s ease; }
.case-card:hover { transform: translateY(-8px); }
.case-card img { width: 100%; height: 220px; object-fit: cover; }
.case-tag { position: absolute; top: 1rem; left: 1rem; background: var(--c-forest); color: var(--c-cream); font-size: .75rem; padding: .28rem .8rem; border-radius: 999px; }
.case-card h3 { padding: 1.1rem 1.3rem 0; font-size: 1.05rem; }
.case-card p { padding: .4rem 1.3rem 1.3rem; font-size: .87rem; opacity: .85; }
.case-cta { margin-top: 2.4rem; text-align: center; }
.case-cta p { margin-bottom: 1rem; font-weight: 600; color: var(--c-forest); }

/* ---------- ⑩ 咨询 CTA ---------- */
.cta-band { position: relative; padding: 5rem 0; background: url('../images/banner-online.jpg') center / cover fixed; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: rgba(51, 80, 60, .72); }
.cta-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta-text { color: var(--c-cream); max-width: 560px; }
.cta-text .sec-overline { color: var(--c-apricot); }
.cta-text h2 { color: var(--c-cream); font-size: clamp(1.5rem, 2.8vw, 2.1rem); margin: .6rem 0; }
.cta-text p { color: rgba(251, 247, 240, .88); }
.cta-actions { display: flex; flex-wrap: wrap; gap: .9rem; }

/* ---------- ⑪ 首页资讯列表 ---------- */
.home-news { background: var(--c-sand); padding: 5.5rem 0 4.5rem; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.news-card { background: var(--c-white); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-card); transition: transform .3s ease, box-shadow .3s ease; }
.news-card:hover { transform: translateY(-6px); box-shadow: 0 14px 30px rgba(86, 96, 74, .16); }
.news-thumb { display: block; overflow: hidden; }
.news-thumb img { width: 100%; height: 200px; object-fit: cover; transition: transform .5s ease; }
.news-card:hover .news-thumb img { transform: scale(1.06); }
.news-body { padding: 1.2rem 1.3rem 1.4rem; }
.news-body h3 { font-size: 1rem; margin-bottom: .45rem; }
.news-body h3 a:hover { color: var(--c-green-d); }
.news-body p { font-size: .86rem; opacity: .85; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-body time { display: block; margin-top: .6rem; font-size: .76rem; color: var(--c-green-d); }
.news-more { text-align: center; margin-top: 2.4rem; }

/* ---------- ⑦ 属地服务说明 ---------- */
.local-note { background: var(--c-white); padding: 5rem 0; position: relative; overflow: hidden; }
.local-note::before { content: ""; position: absolute; top: -70px; right: -70px; width: 240px; height: 240px; border-radius: 50%; background: var(--c-sage); opacity: .6; }
.local-grid { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; }
.local-copy h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: .7rem 0 1.1rem; }
.local-copy p { font-size: .93rem; line-height: 1.95; opacity: .9; margin-bottom: 1rem; }
.local-points { background: linear-gradient(160deg, var(--c-sand), var(--c-cream)); border: 1px solid var(--c-line); border-radius: 22px; padding: 2rem 1.8rem; box-shadow: var(--shadow-soft); }
.local-points h3 { color: var(--c-forest); font-size: 1.1rem; margin-bottom: 1.1rem; }
.local-points ul { display: grid; gap: .85rem; }
.local-points li { position: relative; padding-left: 1.7rem; font-size: .9rem; line-height: 1.7; opacity: .92; }
.local-points li::before { content: ""; position: absolute; left: 0; top: .45em; width: 10px; height: 10px; border-radius: 50%; background: var(--c-green-d); box-shadow: 0 0 0 4px var(--c-sage); }
.local-points .btn { margin-top: 1.5rem; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .quick-wrap { grid-template-columns: 1fr; }
  .entry-grid { grid-template-columns: repeat(4, 1fr); }
  .flow-steps { grid-template-columns: repeat(3, 1fr); }
  .flow-steps::before { display: none; }
  .str-grid, .pol-grid, .case-grid, .news-grid { grid-template-columns: repeat(2, 1fr); }
  .pit-grid { grid-template-columns: 1fr; gap: 2rem; }
  .local-grid { grid-template-columns: 1fr; gap: 2rem; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); gap: 1.6rem; }
}
@media (max-width: 640px) {
  .entry-grid { grid-template-columns: repeat(2, 1fr); }
  .district-grid { grid-template-columns: repeat(2, 1fr); }
  .flow-steps { grid-template-columns: 1fr 1fr; }
  .str-grid, .pol-grid, .case-grid, .news-grid { grid-template-columns: 1fr; }
  .hero { min-height: 92vh; }
  .hero-inner { padding: 6rem 0 7rem; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
}
