/*
Theme Name: iwkeji
Theme URI: https://iwkeji.com
Author: iwkeji
Description: iwkeji Skills 商店主题（深色）
Version: 1.0.0
Text Domain: iwkeji
*/

/* iwkeji Skills 商店 - 样式 */
:root {
  --bg: #0f1117;
  --bg-card: #1a1d27;
  --bg-card-hover: #232733;
  --border: #2a2e3d;
  --text: #e8eaf0;
  --text-dim: #9aa1b5;
  --accent: #6366f1;
  --accent-hover: #818cf8;
  --grad-a: #6366f1;
  --grad-b: #8b5cf6;
  --green: #22c55e;
  --yellow: #eab308;
  --red: #ef4444;
  --radius: 14px;
  --shadow: 0 4px 20px rgba(0,0,0,.35);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }

/* ===== 顶部导航 ===== */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  background: rgba(15,17,23,.9);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
}
.nav-left { display: flex; align-items: center; gap: 24px; }
.nav-logo { display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 700; }
.nav-logo .logo-icon { width: 30px; height: 30px; border-radius: 8px; display:flex; align-items:center; justify-content:center; background: linear-gradient(135deg,var(--grad-a),var(--grad-b)); font-size:16px; }
.nav-links { display: flex; gap: 20px; }
.nav-links a { color: var(--text-dim); text-decoration: none; font-size: 14px; transition:.2s; }
.nav-links a:hover { color: var(--text); }
.nav-right { display: flex; align-items: center; gap: 12px; }

/* ===== 英雄区 ===== */
.hero {
  text-align: center;
  padding: 70px 20px 40px;
  background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(99,102,241,.18), transparent);
}
.hero h1 { font-size: 40px; font-weight: 800; letter-spacing: -0.5px; }
.hero h1 .grad { background: linear-gradient(90deg,var(--grad-a),var(--grad-b)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero p { color: var(--text-dim); margin-top: 14px; font-size: 16px; }
.hero-stats { display: flex; justify-content: center; gap: 40px; margin-top: 30px; }
.stat { text-align: center; }
.stat .num { font-size: 26px; font-weight: 700; }
.stat .lbl { color: var(--text-dim); font-size: 13px; margin-top: 2px; }

/* ===== 搜索与分类 ===== */
.toolbar { max-width: 1200px; margin: 24px auto 0; padding: 0 20px; }
.search-box { display: flex; align-items: center; gap: 10px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 12px 16px; max-width: 560px; margin: 0 auto; }
.search-box input { flex: 1; background: none; border: none; outline: none; color: var(--text); font-size: 15px; }
.search-box input::placeholder { color: var(--text-dim); }
.cats { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 20px; }
.cat-btn { padding: 8px 18px; border-radius: 999px; background: var(--bg-card); border: 1px solid var(--border); color: var(--text-dim); cursor: pointer; font-size: 14px; transition:.2s; }
.cat-btn:hover { color: var(--text); border-color: var(--accent); }
.cat-btn.active { background: linear-gradient(135deg,var(--grad-a),var(--grad-b)); color:#fff; border-color: transparent; }

/* ===== 技能卡片网格 ===== */
.grid { max-width: 1200px; margin: 30px auto; padding: 0 20px; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  cursor: pointer;
  transition: .25s;
  position: relative;
  overflow: hidden;
  display: block;
}
.card:hover { transform: translateY(-4px); background: var(--bg-card-hover); box-shadow: var(--shadow); border-color: var(--accent); }
.card-cover { height: 80px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 40px; margin-bottom: 14px; background: linear-gradient(135deg, rgba(99,102,241,.15), rgba(139,92,246,.15)); }
.card h3 { font-size: 16px; font-weight: 600; display: flex; align-items: center; gap: 6px; color: var(--text); }
.card .subtitle { color: var(--text-dim); font-size: 13px; margin: 6px 0 10px; }
.card .desc { color: var(--text-dim); font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 38px; }
.card .meta { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; font-size: 12px; color: var(--text-dim); }
.card .meta .stats { display: flex; gap: 12px; }
.security { padding: 2px 8px; border-radius: 6px; font-size: 11px; font-weight: 700; }
.security.S { background: rgba(34,197,94,.15); color: var(--green); }
.security.A { background: rgba(99,102,241,.15); color: var(--accent-hover); }
.security.B { background: rgba(234,179,8,.15); color: var(--yellow); }
.security.C { background: rgba(239,68,68,.15); color: var(--red); }

/* ===== 排序工具条 ===== */
.sortbar { max-width: 1200px; margin: 10px auto 0; padding: 0 20px; display: flex; justify-content: space-between; align-items: center; color: var(--text-dim); font-size: 13px; }
.sort-tabs { display: flex; gap: 16px; }
.sort-tabs span { cursor: pointer; padding: 4px 0; }
.sort-tabs span:hover { color: var(--text); }
.sort-tabs span.active { color: var(--accent-hover); font-weight: 600; border-bottom: 2px solid var(--accent); }

/* ===== 详情页 ===== */
.detail-wrap { max-width: 900px; margin: 40px auto; padding: 0 20px; }
.detail-head { display: flex; gap: 20px; align-items: flex-start; }
.detail-cover { width: 110px; height: 110px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 56px; background: linear-gradient(135deg, rgba(99,102,241,.2), rgba(139,92,246,.2)); flex-shrink:0; }
.detail-title h1 { font-size: 28px; font-weight: 800; display:flex; align-items:center; gap:10px; }
.detail-title .subtitle { color: var(--text-dim); font-size: 15px; margin-top: 6px; }
.detail-stats { display: flex; gap: 30px; margin-top: 18px; flex-wrap: wrap; }
.detail-stat .num { font-size: 22px; font-weight: 700; }
.detail-stat .lbl { color: var(--text-dim); font-size: 12px; }
.detail-actions { margin-top: 24px; display: flex; gap: 14px; }
.btn { padding: 12px 26px; border-radius: 10px; border: none; font-size: 15px; font-weight: 600; cursor: pointer; transition:.2s; display: inline-block; }
.btn-primary { background: linear-gradient(135deg,var(--grad-a),var(--grad-b)); color:#fff; }
.btn-primary:hover { opacity:.9; transform: translateY(-2px); }
.btn-ghost { background: var(--bg-card); border: 1px solid var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); }
.detail-body { margin-top: 30px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; white-space: pre-wrap; color: var(--text-dim); font-size: 14px; }

/* ===== 页脚 ===== */
.footer { text-align: center; color: var(--text-dim); font-size: 13px; padding: 40px 20px; border-top: 1px solid var(--border); margin-top: 40px; }

/* ===== 登录/注册表单（WP 默认登录页美化） ===== */
.iwkeji-auth-form { max-width: 400px; margin: 60px auto; padding: 32px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); }
.iwkeji-auth-form h2 { font-size: 22px; margin-bottom: 20px; }
.iwkeji-auth-form label { display: block; font-size: 13px; color: var(--text-dim); margin-bottom: 6px; }
.iwkeji-auth-form input[type=text], .iwkeji-auth-form input[type=password], .iwkeji-auth-form input[type=email] { width: 100%; padding: 10px 12px; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; color: var(--text); font-size: 14px; outline: none; margin-bottom: 14px; }
.iwkeji-auth-form input:focus { border-color: var(--accent); }
.iwkeji-auth-form .btn { width: 100%; text-align: center; margin-top: 8px; }

/* ===== 响应式 ===== */
@media (max-width: 720px) {
  .hero { padding: 50px 16px 30px; }
  .hero h1 { font-size: 28px; line-height: 1.3; }
  .nav-links { display: none; }
  .hero-stats { gap: 24px; margin-top: 24px; }
  .stat .num { font-size: 22px; }
  .grid { grid-template-columns: 1fr; gap: 16px; padding: 0 14px; }
  .card { padding: 18px; }
  .toolbar { padding: 0 14px; margin-top: 18px; }
  .search-box { max-width: 100%; }
  .sortbar { padding: 0 14px; flex-wrap: wrap; gap: 8px; }
  .detail-wrap { padding: 0 14px; margin: 24px auto; }
  .detail-head { flex-direction: column; gap: 16px; }
  .detail-cover { width: 80px; height: 80px; font-size: 40px; }
  .detail-title h1 { font-size: 22px; flex-wrap: wrap; }
  .detail-actions { flex-direction: column; gap: 12px; margin-top: 20px; }
  .btn { width: 100%; text-align: center; padding: 14px 20px; font-size: 16px; }
  .detail-body { padding: 20px; font-size: 13px; }
  .footer { padding-bottom: 40px; }
}