﻿/* === 345bbk.com - 传奇版本库 主样式 === */

:root {
  --primary: #1a73e8;
  --primary-dark: #1557b0;
  --accent: #ff6b35;
  --bg: #f0f2f5;
  --card-bg: #ffffff;
  --text: #1a1a2e;
  --text-secondary: #5f6368;
  --border: #e0e0e0;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --radius: 8px;
  --max-width: 1200px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ===== 顶部导航 ===== */
.header {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: #fff;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: 60px;
}
.logo {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 1px;
}
.logo:hover { text-decoration: none; }
.logo span { color: var(--accent); }
.nav { display: flex; gap: 8px; align-items: center; }
.nav a {
  color: rgba(255,255,255,0.85);
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
}
.nav a:hover, .nav a.active {
  background: rgba(255,255,255,0.12);
  color: #fff;
  text-decoration: none;
}

/* ===== 面包屑 ===== */
.breadcrumb {
  max-width: var(--max-width);
  margin: 12px auto 0;
  padding: 0 20px;
  font-size: 13px;
  color: var(--text-secondary);
}
.breadcrumb a { color: var(--text-secondary); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { margin: 0 6px; }

/* ===== 内容区域 ===== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px;
}

/* ===== Hero区域 ===== */
.hero {
  background: linear-gradient(135deg, #1a1a2e 0%, #0f3460 100%);
  color: #fff;
  text-align: center;
  padding: 48px 20px;
  margin-bottom: 0;
}
.hero h1 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 8px;
}
.hero p {
  font-size: 16px;
  color: rgba(255,255,255,0.75);
  max-width: 600px;
  margin: 0 auto;
}
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 24px;
}
.hero-stat {
  text-align: center;
}
.hero-stat .num {
  font-size: 28px;
  font-weight: 800;
  color: var(--accent);
}
.hero-stat .label {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
}

/* ===== 筛选区域 ===== */
.filter-bar {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}
.filter-row:last-child { margin-bottom: 0; }
.filter-row .label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  min-width: 60px;
  white-space: nowrap;
}
.filter-btn {
  padding: 6px 16px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 20px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-secondary);
  transition: all 0.2s;
  white-space: nowrap;
}
.filter-btn:hover { border-color: var(--primary); color: var(--primary); }
.filter-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.search-box {
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 14px;
  width: 220px;
  outline: none;
  transition: border 0.2s;
}
.search-box:focus { border-color: var(--primary); }

/* ===== 结果计数 ===== */
.results-info {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}
.results-info strong { color: var(--accent); }

/* ===== 版本卡片网格 ===== */
.version-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
}
.version-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid transparent;
}
.version-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
  border-color: var(--primary);
}
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
  gap: 10px;
}
.card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
  flex: 1;
}
.card-title a { color: var(--text); }
.card-title a:hover { color: var(--primary); text-decoration: none; }
.card-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 12px;
  background: #e8f0fe;
  color: var(--primary);
  white-space: nowrap;
}
.card-badge.premium { background: #fff3e0; color: #e65100; }
.card-badge.free { background: #e8f5e9; color: #2e7d32; }
.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.card-tag {
  font-size: 12px;
  padding: 2px 10px;
  background: #f5f5f5;
  border-radius: 10px;
  color: var(--text-secondary);
}
.card-engine {
  font-size: 12px;
  padding: 2px 10px;
  background: #e3f2fd;
  border-radius: 10px;
  color: #1565c0;
  font-weight: 500;
}
.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.card-date {
  font-size: 12px;
  color: var(--text-secondary);
}
.card-price {
  font-size: 20px;
  font-weight: 800;
  color: var(--accent);
}
.card-price.free {
  color: #666;
  font-size: 14px;
  font-weight: 600;
}
.card-actions {
  display: flex;
  gap: 8px;
}
.btn {
  display: inline-block;
  padding: 7px 18px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-align: center;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover { background: var(--primary-dark); text-decoration: none; }
.btn-outline {
  background: #fff;
  color: var(--primary);
  border: 1px solid var(--primary);
}
.btn-outline:hover { background: #e8f0fe; text-decoration: none; }
.btn-warning {
  background: var(--accent);
  color: #fff;
}
.btn-warning:hover { background: #e85a1f; text-decoration: none; }

/* ===== 分页 ===== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 30px;
  flex-wrap: wrap;
}
.page-btn {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.page-btn:hover { border-color: var(--primary); color: var(--primary); }
.page-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ===== 版本详情页 ===== */
.version-detail {
  max-width: 900px;
  margin: 0 auto;
}
.version-detail .version-header {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}
.version-detail .version-header h1 {
  font-size: 24px;
  margin-bottom: 16px;
}
.version-detail .version-header .meta-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.version-detail .version-header .meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--text-secondary);
}
.version-detail .version-header .meta-item svg {
  width: 16px;
  height: 16px;
}
.version-detail .version-header .price-box {
  background: linear-gradient(135deg, #fff3e0, #ffe0b2);
  padding: 16px 20px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.version-detail .version-header .price-tag {
  font-size: 32px;
  font-weight: 800;
  color: var(--accent);
}
.version-detail .version-header .price-tag.free {
  color: #666;
  font-size: 20px;
}
.version-detail .content-section {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}
.version-detail .content-section h2 {
  font-size: 20px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary);
}
.version-detail .content-section p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ===== 联系页 ===== */
.contact-page {
  max-width: 800px;
  margin: 0 auto;
}
.contact-page .contact-section {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}
.contact-page .contact-section h2 {
  font-size: 20px;
  margin-bottom: 16px;
}
.contact-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.contact-method {
  background: #f8f9fa;
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid var(--border);
}
.contact-method h3 {
  font-size: 16px;
  margin-bottom: 8px;
  color: var(--primary);
}
.contact-method .qq-number {
  font-size: 18px;
  font-weight: 700;
  color: #e65100;
  background: #fff3e0;
  padding: 4px 12px;
  border-radius: 6px;
  display: inline-block;
  margin: 8px 0;
}
.contact-method p {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* ===== Footer ===== */
.footer {
  background: #1a1a2e;
  color: rgba(255,255,255,0.6);
  text-align: center;
  padding: 24px 20px;
  margin-top: 40px;
  font-size: 13px;
}
.footer a { color: rgba(255,255,255,0.8); }
.footer-links { display: flex; justify-content: center; gap: 20px; margin-bottom: 8px; flex-wrap: wrap; }

/* ===== SEO友好：结构化列表样式 ===== */
.seo-list { display: none; } /* For search engines, visible on page */

/* ===== 响应式 ===== */
@media (max-width: 768px) {
  .header-inner { padding: 0 12px; }
  .logo { font-size: 18px; }
  .nav a { padding: 6px 10px; font-size: 12px; }
  .hero h1 { font-size: 24px; }
  .hero-stats { gap: 20px; }
  .version-grid { grid-template-columns: 1fr; }
  .filter-row { gap: 6px; }
  .search-box { width: 160px; }
  .version-detail .version-header .meta-row { gap: 12px; }
  .contact-methods { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .card-footer { flex-wrap: wrap; gap: 8px; }
  .version-detail .version-header { padding: 20px; }
}
/* ============ User Bar ============ */
.user-bar { display:flex; align-items:center; gap:10px; }
.user-info { display:flex; align-items:center; gap:6px; padding:4px 8px; border-radius:8px; transition:background .2s; }
.user-info:hover { background:rgba(255,255,255,.1); }
.user-avatar { font-size:20px; }
.user-name { font-size:13px; font-weight:600; color:#fff; }
.user-level { font-size:10px; padding:1px 8px; border-radius:10px; font-weight:600; }
.user-level.vip { background:#ff6b35; color:#fff; }
.user-level.svip { background:#d4af37; color:#1a1a2e; }
.user-coins { display:flex; gap:12px; font-size:12px; color:rgba(255,255,255,.85); align-items:center; }
.user-coins span { display:flex; align-items:center; gap:3px; }

/* ============ Modal ============ */
.modal-overlay { display:none; position:fixed; top:0; left:0; width:100%; height:100%; background:rgba(0,0,0,.5); z-index:1000; align-items:center; justify-content:center; }
.modal-overlay.active { display:flex; }
.modal { background:#fff; border-radius:12px; padding:24px 30px; width:440px; max-width:95vw; max-height:85vh; overflow-y:auto; box-shadow:0 20px 60px rgba(0,0,0,.2); position:relative; }
.modal h2 { font-size:20px; margin-bottom:16px; color:#1a1a2e; }
.modal-close { position:absolute; top:12px; right:16px; font-size:24px; cursor:pointer; color:#999; line-height:1; }
.modal-close:hover { color:#333; }
.fg { margin-bottom:14px; }
.fg label { display:block; font-size:13px; font-weight:600; color:#666; margin-bottom:6px; }
.fg input { width:100%; padding:10px 14px; border:1px solid #ddd; border-radius:8px; font-size:14px; outline:none; box-sizing:border-box; }
.fg input:focus { border-color:#1a73e8; }
.br { display:flex; gap:10px; justify-content:flex-end; margin-top:16px; }

