﻿/* ============================================================
 * AI 大模型导航站 - 样式
 * ============================================================ */
:root {
  --bg: #f5f7fb;
  --card: #ffffff;
  --text: #1a2333;
  --muted: #6b7688;
  --primary: #4f46e5;
  --primary-2: #7c3aed;
  --border: #e6eaf2;
  --radius: 16px;
  --shadow: 0 2px 10px rgba(20, 30, 60, 0.05), 0 8px 28px rgba(20, 30, 60, 0.07);
  --shadow-hover: 0 6px 18px rgba(20, 30, 60, 0.08), 0 16px 44px rgba(20, 30, 60, 0.12);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.container { max-width: 1160px; margin: 0 auto; padding: 0 20px; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 60px; gap: 12px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand-logo { font-size: 24px; }
.brand-text { font-size: 18px; font-weight: 800; letter-spacing: 0.5px; }
.header-stats { font-size: 13px; color: var(--muted); white-space: nowrap; }
.update-badge {
  margin-left: 6px; padding: 3px 10px; border-radius: 999px;
  background: #eef0ff; color: var(--primary); font-weight: 600;
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #eef2ff 0%, #f5f0ff 45%, #e8f4ff 100%);
  border-bottom: 1px solid var(--border);
  padding: 56px 0 40px; text-align: center;
}
.hero-glow {
  position: absolute; top: -120px; left: 50%; transform: translateX(-50%);
  width: 640px; height: 320px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(124, 58, 237, 0.16), transparent 70%);
  pointer-events: none;
}
.hero h1 {
  font-size: clamp(26px, 4.4vw, 40px);
  font-weight: 900; letter-spacing: 1px; margin-bottom: 10px;
  background: linear-gradient(90deg, #3730a3, #7c3aed 55%, #2563eb);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { color: var(--muted); font-size: 15px; margin-bottom: 26px; }
.mobile-only { display: none; }

/* 搜索框 */
.search-box {
  position: relative; max-width: 620px; margin: 0 auto;
  display: flex; align-items: center;
  background: #fff; border: 1.5px solid var(--border); border-radius: 999px;
  box-shadow: 0 6px 20px rgba(20, 30, 60, 0.08);
  transition: box-shadow 0.2s, border-color 0.2s;
}
.search-box:focus-within { border-color: var(--primary); box-shadow: 0 8px 26px rgba(79, 70, 229, 0.18); }
.search-icon { padding-left: 18px; font-size: 16px; }
.search-box input {
  flex: 1; border: none; outline: none; padding: 14px 8px 14px 10px;
  font-size: 15px; background: transparent; color: var(--text); min-width: 0;
}
.search-box input::placeholder { color: #a3adc2; }
.search-clear {
  border: none; background: #eef0f5; color: var(--muted); cursor: pointer;
  width: 26px; height: 26px; border-radius: 50%; margin-right: 12px;
  font-size: 12px; line-height: 1; display: none; align-items: center; justify-content: center;
}
.search-clear.show { display: inline-flex; }

/* 场景速选 */
.quick-picks {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
  margin-top: 22px;
}
.pick-btn {
  border: 1px solid var(--border); background: rgba(255,255,255,0.85);
  color: var(--text); padding: 8px 16px; border-radius: 999px; cursor: pointer;
  font-size: 13.5px; font-weight: 600; transition: all 0.18s;
}
.pick-btn:hover { border-color: var(--primary); color: var(--primary); background: #fff; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(79,70,229,0.14); }

.hero-tip { margin-top: 16px; font-size: 12.5px; color: #98a2b8; }

/* ---------- 分类栏 ---------- */
.cat-bar {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 14px;
}
.cat-btn {
  border: 1px solid var(--border); background: #fff; color: var(--muted);
  padding: 7px 16px; border-radius: 999px; cursor: pointer; font-size: 13.5px;
  font-weight: 600; transition: all 0.18s;
}
.cat-btn:hover { color: var(--primary); border-color: #cfd6ff; }
.cat-btn.active {
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
  color: #fff; border-color: transparent; box-shadow: 0 4px 12px rgba(79,70,229,0.28);
}

/* ---------- 工具栏 ---------- */
.toolbar {
  display: flex; align-items: center; justify-content: space-between;
  margin: 4px 0 18px; gap: 12px;
}
.result-info { font-size: 13.5px; color: var(--muted); }
.sort-box { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.sort-box select {
  border: 1px solid var(--border); background: #fff; color: var(--text);
  border-radius: 8px; padding: 6px 10px; font-size: 13px; outline: none; cursor: pointer;
}

/* ---------- 卡片 ---------- */
.cards {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
@media (max-width: 980px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .cards { grid-template-columns: 1fr; } }

.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow); cursor: pointer;
  display: flex; flex-direction: column; gap: 12px;
  transition: transform 0.18s, box-shadow 0.18s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }

.card-head { display: flex; align-items: center; gap: 13px; }
.avatar {
  flex: 0 0 auto; width: 46px; height: 46px; border-radius: 13px;
  color: #fff; font-weight: 800; font-size: 15px;
  display: flex; align-items: center; justify-content: center;
  letter-spacing: 0.5px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.25), 0 4px 10px rgba(0,0,0,0.12);
}
.avatar-lg { width: 58px; height: 58px; border-radius: 16px; font-size: 18px; }
.card-title { min-width: 0; }
.card-title h3 { font-size: 17px; font-weight: 800; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.card-title h3 small { font-size: 12px; font-weight: 600; color: var(--muted); }
.card-company { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

.badge { font-size: 11px; font-weight: 700; padding: 1.5px 8px; border-radius: 999px; }
.badge-region { background: #eef0ff; color: var(--primary); }
.badge-open { background: #e7f9ef; color: #0e9f5d; }

.card-desc { font-size: 13.5px; color: var(--muted); flex: 1; }

.card-best {
  background: #fffaf0; border: 1px solid #ffe6b8; color: #8a5a00;
  border-radius: 10px; padding: 8px 12px; font-size: 12.5px;
}
.card-best span { font-weight: 800; margin-right: 6px; color: #b45309; }

.card-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  font-size: 11.5px; color: var(--muted); background: #f3f5f9;
  padding: 2.5px 9px; border-radius: 999px; font-weight: 600;
}

.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.btn-go {
  display: inline-block; text-decoration: none;
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
  color: #fff; font-size: 13px; font-weight: 700;
  padding: 8px 16px; border-radius: 10px;
  transition: opacity 0.15s, transform 0.15s;
}
.btn-go:hover { opacity: 0.92; transform: translateY(-1px); }
.btn-go-lg { display: block; text-align: center; padding: 12px; font-size: 15px; border-radius: 12px; margin-top: 6px; }
.card-price { font-size: 12px; color: #9aa3b8; text-align: right; }

/* ---------- 空状态 ---------- */
.empty { text-align: center; padding: 70px 0; color: var(--muted); }
.empty-icon { font-size: 48px; margin-bottom: 12px; }
.empty p { font-size: 16px; font-weight: 700; color: var(--text); }
.empty-sub { font-size: 13.5px; margin-top: 6px; font-weight: 400; }

/* ---------- 弹窗 ---------- */
.modal-mask {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(15, 20, 40, 0.5); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.modal {
  position: relative; width: 100%; max-width: 560px; max-height: 86vh; overflow: auto;
  background: #fff; border-radius: 20px; padding: 28px;
  box-shadow: 0 24px 80px rgba(15, 20, 40, 0.35);
  animation: pop 0.2s ease;
}
@keyframes pop { from { transform: scale(0.96); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal-close {
  position: absolute; top: 16px; right: 16px;
  border: none; background: #f1f3f8; color: var(--muted); cursor: pointer;
  width: 32px; height: 32px; border-radius: 50%; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
}
.modal-close:hover { background: #e6e9f2; }
.modal-head { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.modal-head h2 { font-size: 22px; font-weight: 900; }
.modal-head h2 small { font-size: 13px; color: var(--muted); font-weight: 600; margin-left: 6px; }
.modal-company { font-size: 13px; color: var(--muted); }
.modal-cats { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.modal-cats span {
  font-size: 12px; font-weight: 700; color: var(--primary);
  background: #eef0ff; padding: 2px 10px; border-radius: 999px;
}
.modal-desc { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.modal-section { margin-bottom: 16px; }
.modal-section h4 { font-size: 14px; font-weight: 800; margin-bottom: 6px; }
.modal-section p { font-size: 13.5px; color: var(--text); }
.modal-section ul { padding-left: 20px; font-size: 13.5px; color: var(--text); }
.modal-section li { margin-bottom: 5px; }
.modal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .modal-grid { grid-template-columns: 1fr; } }

/* ---------- 页脚 ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 28px 0 36px; margin-top: 48px; text-align: center; }
.site-footer p { font-size: 13px; color: var(--muted); }
.footer-small { font-size: 12px; margin-top: 4px; color: #a3adc2; }

@media (max-width: 620px) {
  .mobile-only { display: inline; }
  .header-stats .update-badge { display: none; }
  .hero { padding: 40px 0 32px; }
}

/* 确保隐藏元素不拦截点击 */
[hidden] { display: none !important; }
