/* ===== EOE 橙色风格 · 手机优先 · 微信兼容 ===== */
:root {
  --orange: #FF6B35;
  --orange-2: #FF8C42;
  --orange-soft: #FFE8DC;
  --ink: #1F1F1F;
  --muted: #6B6B6B;
  --line: #EFEFEF;
  --bg: #FFFBF8;
  --card: #FFFFFF;
  --green: #07C160; /* 微信绿，用于复制成功 */
  --red: #FA5151;
  --radius: 16px;
  --shadow: 0 4px 16px rgba(255,107,53,.08);
  --max: 720px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 15px;
  -webkit-text-size-adjust: 100%;
}
a { color: var(--orange); text-decoration: none; }
img { max-width: 100%; display: block; }

/* ===== 顶部导航 ===== */
.nav {
  position: sticky; top: 0; z-index: 99;
  background: rgba(255,251,248,.95);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--max); margin: 0 auto;
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px; overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.nav-inner::-webkit-scrollbar { display: none; }
.logo {
  font-weight: 800; color: var(--orange);
  font-size: 17px; white-space: nowrap;
  display: flex; align-items: center; gap: 6px;
}
.logo-dot {
  width: 8px; height: 8px; background: var(--orange);
  border-radius: 50%;
}
.nav a.tab {
  color: var(--ink); font-size: 14px;
  white-space: nowrap; padding: 6px 10px;
  border-radius: 999px; flex-shrink: 0;
}
.nav a.tab.active, .nav a.tab:hover { background: var(--orange-soft); color: var(--orange); }

/* ===== 容器 ===== */
.wrap {
  max-width: var(--max); margin: 0 auto;
  padding: 20px 16px 80px;
}

/* ===== 首页 Hero ===== */
.hero {
  background: linear-gradient(135deg, #FF6B35 0%, #FF8C42 100%);
  color: #fff;
  border-radius: 24px;
  padding: 32px 22px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; right: -40px; top: -40px;
  width: 160px; height: 160px;
  background: rgba(255,255,255,.12);
  border-radius: 50%;
}
.hero::after {
  content: ""; position: absolute; right: 20px; bottom: -60px;
  width: 120px; height: 120px;
  background: rgba(255,255,255,.08);
  border-radius: 50%;
}
.hero h1 {
  font-size: 26px; margin: 0 0 8px; line-height: 1.3;
  position: relative; z-index: 1;
}
.hero p {
  margin: 0; opacity: .95;
  font-size: 14px; position: relative; z-index: 1;
}
.hero .badge {
  display: inline-block;
  background: rgba(255,255,255,.2);
  padding: 4px 10px; border-radius: 999px;
  font-size: 12px; margin-bottom: 12px;
  position: relative; z-index: 1;
}

/* ===== 章节 ===== */
.section { margin: 28px 0; }
.section h2 {
  font-size: 19px; margin: 0 0 14px;
  display: flex; align-items: center; gap: 8px;
}
.section h2 .tag {
  background: var(--orange-soft); color: var(--orange);
  font-size: 11px; padding: 2px 8px;
  border-radius: 999px; font-weight: 600;
}

/* ===== 卡片网格 ===== */
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 540px) {
  .grid.cols-2 { grid-template-columns: 1fr 1fr; }
  .grid.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  transition: transform .15s ease;
}
.card:active { transform: scale(.98); }
.card .icon {
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--orange-soft);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 10px;
}
.card h3 {
  font-size: 16px; margin: 0 0 6px; color: var(--ink);
}
.card p {
  margin: 0; font-size: 13px; color: var(--muted);
}
.card .meta {
  margin-top: 10px;
  font-size: 12px; color: var(--orange);
  display: flex; gap: 8px; flex-wrap: wrap;
}
.card .meta span {
  background: var(--orange-soft);
  padding: 2px 8px; border-radius: 999px;
}

/* ===== 大入口卡（首页） ===== */
.entry {
  background: var(--card);
  border-radius: 20px;
  padding: 22px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
  position: relative;
  border-left: 5px solid var(--orange);
}
.entry .emoji { font-size: 32px; margin-bottom: 8px; }
.entry h3 { margin: 0 0 6px; font-size: 19px; }
.entry .desc {
  color: var(--muted); font-size: 13px;
  margin: 0 0 12px;
}
.entry .points {
  font-size: 13px; color: var(--ink);
  padding-left: 0; list-style: none; margin: 0;
}
.entry .points li {
  padding: 4px 0 4px 18px;
  position: relative;
}
.entry .points li::before {
  content: "•"; color: var(--orange);
  position: absolute; left: 4px;
  font-weight: 700;
}
.entry .go {
  display: inline-block; margin-top: 14px;
  color: var(--orange); font-weight: 600;
  font-size: 13px;
}
.entry .go::after { content: " →"; }

/* ===== 工具导航 ===== */
.tool {
  background: var(--card);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.tool .head {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 8px;
}
.tool .logo {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--orange-soft);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 700; color: var(--orange);
  flex-shrink: 0;
}
.tool h3 { margin: 0; font-size: 17px; }
.tool .badges {
  display: flex; gap: 6px; margin-top: 4px; flex-wrap: wrap;
}
.tool .badge {
  font-size: 11px; padding: 2px 8px;
  border-radius: 999px; font-weight: 600;
}
.badge-cn { background: #FFE8DC; color: #D35400; }
.badge-intl { background: #E3F2FD; color: #1565C0; }
.badge-easy { background: #E8F5E9; color: #2E7D32; }
.badge-mid { background: #FFF3E0; color: #E65100; }
.badge-hard { background: #FFEBEE; color: #C62828; }
.badge-free { background: #E8F5E9; color: #2E7D32; }
.badge-paid { background: #FFF3E0; color: #E65100; }
.badge-verify { background: #FFF8E1; color: #B45309; }
.tool ul {
  margin: 10px 0 0; padding-left: 18px;
  font-size: 13px; color: var(--muted);
}
.tool ul li { padding: 2px 0; }
.tool a.link {
  font-size: 13px; color: var(--orange);
  font-weight: 600;
  word-break: break-all;
}
.tool .task {
  background: var(--orange-soft);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 13px;
  color: var(--ink);
  margin-top: 10px;
}
.tool .task strong { color: var(--orange); }

/* ===== Prompt 模板 ===== */
.prompt {
  background: var(--card);
  border-radius: var(--radius);
  padding: 0;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  overflow: hidden;
}
.prompt-head {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  display: flex; justify-content: space-between;
  align-items: center; gap: 10px;
}
.prompt-head h3 { margin: 0; font-size: 16px; }
.prompt-head .tag {
  font-size: 11px; padding: 2px 8px;
  background: var(--orange-soft); color: var(--orange);
  border-radius: 999px; font-weight: 600;
}
.prompt-body { padding: 14px 18px 18px; }
.prompt-body .row { margin-bottom: 10px; }
.prompt-body .label {
  font-size: 12px; color: var(--muted);
  font-weight: 600; margin-bottom: 4px;
}
.prompt-body pre {
  margin: 0;
  background: #1F1F1F;
  color: #FFE8DC;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-wrap: break-word;
  font-family: -apple-system, "SF Mono", Menlo, monospace;
  max-height: 280px; overflow-y: auto;
}
.prompt-body .qa {
  font-size: 13px; color: var(--muted);
  background: var(--bg);
  padding: 10px 12px;
  border-radius: 10px;
}
.prompt-foot {
  display: flex; gap: 10px;
  padding: 0 18px 16px;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 999px;
  border: none;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  -webkit-appearance: none;
  flex: 1;
}
.btn-primary {
  background: var(--orange); color: #fff;
}
.btn-primary:active { background: var(--orange-2); }
.btn-secondary {
  background: var(--orange-soft); color: var(--orange);
}
.btn.copied {
  background: var(--green) !important; color: #fff !important;
}

/* ===== 搜索框 ===== */
.search-box {
  position: sticky;
  top: 50px;
  z-index: 50;
  background: var(--bg);
  padding: 12px 0 8px;
}
.search-input {
  width: 100%;
  padding: 11px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  font-size: 14px;
  outline: none;
  -webkit-appearance: none;
}
.search-input:focus { border-color: var(--orange); }

/* ===== 筛选器 ===== */
.filter-bar {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: 16px;
  padding-bottom: 4px;
}
.chip {
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--line);
  font-size: 13px;
  cursor: pointer;
  color: var(--muted);
}
.chip.active, .chip:active {
  background: var(--orange);
  color: #fff;
  border-color: var(--orange);
}

/* ===== FAQ ===== */
.faq-item {
  background: var(--card);
  border-radius: var(--radius);
  margin-bottom: 10px;
  border: 1px solid var(--line);
  overflow: hidden;
}
.faq-q {
  padding: 14px 18px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  display: flex; justify-content: space-between;
  align-items: center;
}
.faq-q::after {
  content: "+"; color: var(--orange);
  font-size: 20px; font-weight: 400;
  transition: transform .2s;
}
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a {
  padding: 0 18px 16px;
  font-size: 14px; color: var(--muted);
  display: none;
}
.faq-item.open .faq-a { display: block; }

/* ===== 步骤 ===== */
.steps { counter-reset: step; padding: 0; list-style: none; margin: 0; }
.steps li {
  position: relative;
  padding: 10px 0 10px 38px;
  font-size: 14px;
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 9px;
  width: 26px; height: 26px;
  background: var(--orange);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
}

/* ===== Toast ===== */
.toast {
  position: fixed; left: 50%; bottom: 80px;
  transform: translateX(-50%);
  background: rgba(0,0,0,.85); color: #fff;
  padding: 10px 18px; border-radius: 999px;
  font-size: 14px; z-index: 999;
  opacity: 0; pointer-events: none;
  transition: opacity .25s;
}
.toast.show { opacity: 1; }

/* ===== 页尾 ===== */
.footer {
  text-align: center;
  padding: 30px 20px;
  color: var(--muted);
  font-size: 12px;
  border-top: 1px solid var(--line);
  margin-top: 40px;
}
.footer a { color: var(--muted); }
.footer .warn {
  background: var(--orange-soft);
  color: #B45309;
  padding: 10px 14px;
  border-radius: 10px;
  margin: 12px 0;
  text-align: left;
  font-size: 12px;
  line-height: 1.7;
}

/* ===== 占位 / Coming soon ===== */
.coming {
  background: var(--card);
  border: 2px dashed var(--orange-soft);
  border-radius: var(--radius);
  padding: 30px 20px;
  text-align: center;
  color: var(--muted);
}
.coming .big { font-size: 40px; margin-bottom: 10px; }

/* ===== 提示框 ===== */
.tip {
  background: #FFF8E1;
  border-left: 3px solid #FFB300;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  color: #5D4037;
  margin: 12px 0;
}
.tip strong { color: #E65100; }
