/* 兔子智能 Rabbit AI —— 极客技术风格 + 高端大气 */
:root {
  --bg: #0a0e14;
  --bg-2: #0f1420;
  --card: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.08);
  --text: #e5e7eb;
  --text-dim: #8b93a5;
  --cyan: #22d3ee;
  --purple: #a78bfa;
  --grad: linear-gradient(135deg, #22d3ee, #a78bfa);
  --mono: 'SF Mono', 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: var(--cyan); text-decoration: none; }

/* 导航 */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 6%;
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  background: rgba(10, 14, 20, 0.7);
  position: sticky;
  top: 0;
  z-index: 10;
}
.brand { font-size: 1.7rem; font-weight: 700; background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; font-family: var(--mono); }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a { color: var(--text-dim); font-size: 0.95rem; transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--cyan); }
.lang-switch { border: 1px solid var(--border); padding: 4px 12px; border-radius: 6px; font-family: var(--mono); }
.user-area { display: inline-flex; align-items: center; gap: 12px; }
.user-area a { white-space: nowrap; }

/* 主区 */
main { flex: 1; }

/* Hero */
.hero {
  position: relative;
  padding: 120px 6% 100px;
  text-align: center;
  overflow: hidden;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(34,211,238,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(34,211,238,0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  position: relative;
  text-shadow: 0 0 30px rgba(34, 211, 238, 0.4), 0 0 60px rgba(167, 139, 250, 0.25);
}
.hero-sub { margin-top: 20px; font-size: 1.15rem; color: var(--text-dim); position: relative; }
.hero-cta { margin-top: 40px; position: relative; }

/* 按钮 */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: transform .15s, box-shadow .15s;
}
.btn.primary {
  background: var(--grad);
  color: #06121a;
  font-weight: 700;
  box-shadow: 0 4px 24px rgba(34,211,238,0.35);
}
.btn.primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(34,211,238,0.5); }

/* 区块 */
.section { padding: 60px 6%; max-width: 1200px; margin: 0 auto; }
.section.narrow { max-width: 760px; }
.section-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 32px;
  position: relative;
  display: inline-block;
}
.section-title::after { content: ''; position: absolute; left: 0; bottom: -8px; width: 48px; height: 3px; background: var(--grad); border-radius: 2px; }

/* 案例卡片 */
.cases-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.case-card {
  display: block;
  padding: 28px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--text);
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.case-card:hover { transform: translateY(-4px); border-color: rgba(34,211,238,0.4); box-shadow: 0 8px 32px rgba(34,211,238,0.15); }
.case-icon { font-size: 4rem; line-height: 1; margin-bottom: 16px; }
.case-card h3 { font-size: 1.2rem; margin-bottom: 10px; color: #fff; }
.case-card p { color: var(--text-dim); font-size: 0.95rem; }

/* 案例详情 */
.case-detail { padding: 36px; background: var(--card); border: 1px solid var(--border); border-radius: 14px; margin-bottom: 24px; }
.case-detail h3 { font-size: 1.3rem; margin-bottom: 12px; color: #fff; }
.case-detail p { color: var(--text-dim); margin-bottom: 16px; }
.tech-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { font-family: var(--mono); font-size: 0.8rem; padding: 4px 12px; border: 1px solid rgba(34,211,238,0.3); border-radius: 20px; color: var(--cyan); }

/* 打赏 */
.reward-sub { color: var(--text-dim); margin-bottom: 24px; }
.reward-methods { display: flex; justify-content: center; margin: 24px 0; }
.method { text-align: center; }
.method img { width: 220px; border-radius: 12px; border: 1px solid var(--border); }
.method p { margin-top: 10px; color: var(--text-dim); }
.note { color: var(--text-dim); font-size: 0.85rem; text-align: center; margin-top: 24px; }

/* 表单 */
.form { display: flex; flex-direction: column; gap: 14px; margin-top: 20px; }
.form input, .form textarea {
  padding: 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color .2s;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--cyan); }
.form textarea { min-height: 120px; resize: vertical; }
.hint { color: var(--text-dim); font-size: 0.9rem; }
.login-type-row { display: flex; align-items: center; gap: 12px; }
.login-type-row label { color: var(--text-dim); font-size: 0.95rem; white-space: nowrap; }
.login-type-row select { flex: 1; padding: 12px; background: rgba(255,255,255,0.03); border: 1px solid var(--border); border-radius: 8px; color: var(--text); font-size: 1rem; font-family: inherit; }
.login-type-row select:focus { outline: none; border-color: var(--cyan); }
.code-row { display: flex; gap: 10px; }
.code-row input { flex: 1; }
.code-row .btn { white-space: nowrap; padding: 12px 18px; }

/* 留言 */
.msg-list { margin-top: 32px; display: flex; flex-direction: column; gap: 16px; }
.msg-item { padding: 20px; background: var(--card); border: 1px solid var(--border); border-radius: 12px; }
.msg-meta { color: var(--cyan); font-size: 0.85rem; font-family: var(--mono); margin-bottom: 8px; }
.msg-content { color: var(--text); }
.reply { margin-top: 12px; padding: 12px 16px; background: rgba(167,139,250,0.08); border-left: 3px solid var(--purple); border-radius: 6px; color: var(--text-dim); font-size: 0.92rem; }

/* 统计 */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin: 16px 0 32px; }
.stat-card { padding: 20px; background: var(--card); border: 1px solid var(--border); border-radius: 12px; text-align: center; }
.stat-card .num { font-size: 2rem; font-weight: 700; color: var(--cyan); font-family: var(--mono); }
.stat-card .label { color: var(--text-dim); font-size: 0.85rem; margin-top: 4px; }

/* 页脚 */
.footer { text-align: center; padding: 32px 6%; border-top: 1px solid var(--border); color: var(--text-dim); font-size: 0.9rem; }
.footer .icp { margin-top: 8px; font-size: 0.8rem; }
.footer .icp a { color: var(--text-dim); }

/* 管理后台回复 */
.reply-form { display: flex; gap: 8px; margin-top: 12px; }
.reply-input { flex: 1; padding: 10px; background: rgba(255,255,255,0.03); border: 1px solid var(--border); border-radius: 6px; color: var(--text); font-family: inherit; }
.reply-input:focus { outline: none; border-color: var(--purple); }

/* 可点击统计卡片 */
.stat-card.clickable { cursor: pointer; transition: border-color .2s, transform .15s; }
.stat-card.clickable:hover { border-color: rgba(34,211,238,0.5); transform: translateY(-2px); }

/* 管理后台表格 */
.admin-table { width: 100%; border-collapse: collapse; margin: 12px 0 24px; font-size: 0.9rem; }
.admin-table th, .admin-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--border); }
.admin-table th { color: var(--cyan); font-weight: 600; background: rgba(255,255,255,0.03); font-family: var(--mono); font-size: 0.82rem; }
.admin-table td { color: var(--text); vertical-align: top; }
.admin-table .col-content { min-width: 420px; }
.admin-table .col-time { min-width: 170px; white-space: nowrap; }
.admin-table .col-action { min-width: 180px; }
.dim { color: var(--text-dim); font-size: 0.82rem; }

/* 响应式 · 移动端适配 */
@media (max-width: 768px) {
  .nav { flex-direction: column; gap: 12px; padding: 14px 5%; }
  .nav-links { gap: 16px; flex-wrap: wrap; justify-content: center; }
  .nav-links a { font-size: 0.88rem; }
  .hero { padding: 70px 5% 50px; }
  .hero h1 { font-size: clamp(1.8rem, 7vw, 2.6rem); }
  .hero-sub { font-size: 1rem; }
  .section { padding: 40px 5%; }
  .section-title { font-size: 1.5rem; }
  .cases-grid { grid-template-columns: 1fr; gap: 16px; }
  .case-card { padding: 22px; }
  .method img { width: 180px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .form input, .form textarea, .login-type-row select { font-size: 16px; } /* 防止 iOS 缩放 */
}

@media (max-width: 480px) {
  .nav-links { gap: 10px; }
  .nav-links a { font-size: 0.82rem; }
  .brand { font-size: 1.2rem; }
  .hero { padding: 60px 4% 40px; }
  .case-icon { font-size: 3rem; }
  .btn { padding: 10px 22px; font-size: 0.95rem; }
  .login-type-row { flex-direction: column; align-items: stretch; gap: 8px; }
  .reply-form { flex-direction: column; }
}
