/* ============================================================
   9GM搜服 · 首页专属样式 home.css
   首页布局：今日推荐(分屏) → 版本导航 → 开服表 → 热门推荐
   → 资讯攻略 → 传奇知识 → 下载指南 → 标签云
   ============================================================ */

/* ---------- 今日推荐（分屏 Hero） ---------- */
.hero { margin-top: 22px; display: grid; grid-template-columns: 1.25fr 1fr; gap: 20px; }
.hero-feature { position: relative; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); min-height: 340px; display: flex; }
.hero-feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-feature::after { content: ""; position: absolute; inset: 0; background: linear-gradient(200deg, rgba(7, 8, 12, .25), rgba(7, 8, 12, .92) 72%); }
.hf-body { position: relative; z-index: 2; margin-top: auto; padding: 22px; width: 100%; }
.hf-tags { display: flex; gap: 8px; margin-bottom: 10px; }
.hf-title { font-size: 26px; font-weight: 800; color: #fff; font-family: var(--font-title); letter-spacing: 1px; }
.hf-desc { color: var(--text-2); font-size: 13px; margin: 8px 0 14px; max-width: 92%; }
.hf-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-side { display: flex; flex-direction: column; gap: 20px; }
.countdown-panel { background: linear-gradient(160deg, rgba(60, 16, 6, .92), rgba(16, 10, 8, .94)); border: 1px solid rgba(255, 140, 50, .35); border-radius: 16px; padding: 18px; box-shadow: var(--shadow); }
.cd-head { display: flex; align-items: center; justify-content: space-between; font-size: 14px; color: var(--gold); font-weight: 700; margin-bottom: 12px; }
.cd-head .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 rgba(255, 60, 40, .7); animation: pulse 1.6s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 60, 40, .7); } 70% { box-shadow: 0 0 0 10px rgba(255, 60, 40, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 60, 40, 0); } }
.cd-game { display: flex; align-items: center; gap: 12px; }
.cd-game img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; border: 1px solid var(--line); }
.cd-name { color: #fff; font-weight: 700; font-size: 15px; }
.cd-time { color: var(--text-2); font-size: 12px; margin-top: 2px; }
.cd-nums { display: flex; gap: 8px; margin-top: 14px; }
.cd-nums div { flex: 1; text-align: center; background: rgba(0, 0, 0, .4); border: 1px solid rgba(255, 150, 60, .25); border-radius: 10px; padding: 8px 4px; }
.cd-nums b { display: block; font-size: 22px; color: var(--gold); font-family: Consolas, monospace; text-shadow: 0 0 12px rgba(255, 180, 60, .6); }
.cd-nums span { font-size: 11px; color: var(--muted); }

.quick-links { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ql-item { display: flex; align-items: center; gap: 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; transition: .25s; }
.ql-item:hover { border-color: rgba(255, 170, 60, .55); transform: translateY(-3px); box-shadow: var(--shadow-gold); }
.ql-ico { width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 20px; background: linear-gradient(135deg, rgba(255, 130, 40, .22), rgba(200, 30, 30, .22)); border: 1px solid rgba(255, 150, 60, .3); }
.ql-txt { min-width: 0; }
.ql-txt b { display: block; color: #fff; font-size: 14px; }
.ql-txt span { font-size: 11px; color: var(--muted); }

/* ---------- 版本导航（8 宫格） ---------- */
.ver-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.ver-card { position: relative; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 3; display: block; box-shadow: var(--shadow); }
.ver-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.ver-card:hover img { transform: scale(1.1); }
.ver-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(8, 6, 8, .92)); }
.ver-name { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 12px 14px; color: #fff; font-weight: 800; font-size: 16px; letter-spacing: 1px; font-family: var(--font-title); }
.ver-name small { display: block; font-size: 11px; color: var(--text-2); font-weight: 400; font-family: var(--font); letter-spacing: 0; margin-top: 2px; }
.ver-num { position: absolute; right: 10px; top: 10px; z-index: 2; background: rgba(10, 8, 6, .7); border: 1px solid rgba(255, 190, 90, .4); color: var(--gold); font-size: 11px; padding: 3px 9px; border-radius: 20px; }

/* ---------- 开服表（首页） ---------- */
.open-more { display: flex; align-items: center; justify-content: center; margin-top: 18px; }

/* ---------- 资讯 + 攻略 双栏 ---------- */
.news-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 20px; }
.news-item-main { display: flex; gap: 14px; padding: 13px 4px; border-bottom: 1px dashed var(--line-soft); }
.news-item-main:last-child { border-bottom: none; }
.news-item-main img { width: 118px; height: 80px; border-radius: 10px; object-fit: cover; flex-shrink: 0; border: 1px solid var(--line); }
.ni-body { min-width: 0; }
.ni-body h4 { font-size: 15px; color: #fff; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ni-body h4 a:hover { color: var(--gold); }
.ni-body p { font-size: 12px; color: var(--text-2); margin-top: 5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ni-meta { font-size: 11px; color: var(--muted); margin-top: 6px; display: flex; gap: 12px; }

/* 攻略小卡 */
.strategy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.strategy-card { background: rgba(255, 255, 255, .03); border: 1px solid var(--line-soft); border-radius: 12px; padding: 14px; transition: .25s; }
.strategy-card:hover { border-color: rgba(255, 170, 60, .5); background: rgba(255, 140, 50, .06); }
.strategy-card b { display: block; color: #fff; font-size: 14px; margin-bottom: 4px; }
.strategy-card b:hover { color: var(--gold); }
.strategy-card span { font-size: 12px; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- 传奇知识（折叠卡） ---------- */
.know-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.know-card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 18px; transition: .3s; }
.know-card:hover { transform: translateY(-4px); border-color: rgba(255, 170, 60, .45); }
.know-card h4 { color: var(--gold); font-size: 15px; display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.know-card p { font-size: 13px; color: var(--text-2); line-height: 1.8; }

/* ---------- 下载指南（步骤条） ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; }
.step { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 20px 16px 18px; text-align: center; transition: .3s; }
.step:hover { transform: translateY(-4px); border-color: rgba(255, 170, 60, .5); }
.step::before { counter-increment: step; content: counter(step); position: absolute; left: 12px; top: 10px; font-family: var(--font-title); font-size: 30px; font-weight: 800; color: rgba(255, 150, 50, .16); }
.step-ico { font-size: 30px; margin-bottom: 8px; }
.step b { display: block; color: #fff; font-size: 14px; margin-bottom: 6px; }
.step span { font-size: 12px; color: var(--text-2); line-height: 1.7; }

/* ---------- 首页标签云 ---------- */
.home-tags { text-align: center; padding: 18px; }
.home-tags .tag-cloud { justify-content: center; }

/* ---------- 友情链接 ---------- */
.friend-links { display: flex; flex-wrap: wrap; gap: 10px 18px; justify-content: center; }
.friend-links a { font-size: 13px; color: var(--text-2); transition: .2s; }
.friend-links a:hover { color: var(--gold); }

/* ---------- 首页响应式 ---------- */
@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr; }
  .hero-feature { min-height: 300px; }
  .ver-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .news-grid { grid-template-columns: 1fr; }
  .know-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .ver-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .hero-feature { min-height: 240px; }
  .hf-title { font-size: 21px; }
  .quick-links { grid-template-columns: 1fr 1fr; }
  .news-item-main img { width: 96px; height: 68px; }
  .strategy-grid { grid-template-columns: 1fr; }
}
