/* AIHub Community 前端样式（OneNav 友好，深浅色自适应） */
.aihc-wrap { max-width: 1080px; margin: 0 auto; padding: 20px 16px; }
.aihc-btn-primary, .aihc-form button.aihc-btn-primary {
  display: inline-block; background: #4f46e5; color: #fff !important; border: 0;
  padding: 8px 18px; border-radius: 8px; cursor: pointer; text-decoration: none; font-size: 14px;
}
.aihc-btn-primary:hover { background: #4338ca; }
.aihc-empty { color: #888; padding: 30px 0; text-align: center; }
.aihc-note { padding: 12px 16px; border-radius: 8px; background: #eef2ff; margin: 12px 0; }
.aihc-note.success { background: #ecfdf5; }
.aihc-note.warn { background: #fef2f2; }
.aihc-hint { color: #999; font-size: 12px; }

/* ---- landing ---- */
.aihc-landing-head { display: flex; align-items: center; justify-content: space-between; }
.aihc-tabs { display: flex; gap: 6px; border-bottom: 1px solid #e5e7eb; margin: 16px 0; flex-wrap: wrap; }
.aihc-tabs a { padding: 8px 14px; color: #555; text-decoration: none; border-bottom: 2px solid transparent; }
.aihc-tabs a.active { color: #4f46e5; border-bottom-color: #4f46e5; font-weight: 600; }
.aihc-tabs a.aihc-refresh { margin-left: auto; color: #06b6d4; }
.aihc-list { display: flex; flex-direction: column; gap: 12px; }
.aihc-card { display: flex; gap: 14px; padding: 16px; border: 1px solid #eee; border-radius: 12px; background: #fff; position: relative; }
.aihc-card:hover { box-shadow: 0 4px 18px rgba(0,0,0,.06); }
.aihc-card-main { flex: 1; }
.aihc-card h3 { margin: 0 0 6px; font-size: 18px; }
.aihc-card h3 a { color: #111; text-decoration: none; }
.aihc-excerpt { color: #666; font-size: 14px; margin: 0 0 8px; line-height: 1.6; }
.aihc-card-meta { color: #999; font-size: 12px; }
.aihc-card-meta a { color: #666; text-decoration: none; }
.aihc-card-thumb img { width: 120px; height: 80px; object-fit: cover; border-radius: 8px; }
.aihc-rank { position: absolute; top: -8px; left: -8px; width: 26px; height: 26px; line-height: 26px; text-align: center; border-radius: 50%; font-size: 13px; font-weight: 700; background: #e5e7eb; color: #555; }
.aihc-rank-top { background: linear-gradient(135deg,#f59e0b,#ef4444); color: #fff; }

/* ---- single ---- */
.aihc-title { font-size: 30px; margin: 10px 0; }
.aihc-byline { display: flex; align-items: center; gap: 10px; color: #999; font-size: 13px; flex-wrap: wrap; margin-bottom: 18px; }
.aihc-author { display: inline-flex; align-items: center; gap: 6px; color: #444; text-decoration: none; }
.aihc-author img { width: 28px; height: 28px; border-radius: 50%; }
.aihc-badge { background: #eef2ff; color: #4f46e5; padding: 2px 8px; border-radius: 6px; font-size: 12px; }
.aihc-content { line-height: 1.8; font-size: 16px; }
.aihc-content img { max-width: 100%; height: auto; border-radius: 8px; }
.aihc-content pre { background: #0b1020; color: #e5e7eb; padding: 14px; border-radius: 8px; overflow: auto; }
.aihc-cover img { max-width: 100%; border-radius: 12px; margin-bottom: 16px; }
.aihc-actions { margin: 24px 0; display: flex; gap: 12px; align-items: center; }
.aihc-like-btn { background: #fff; border: 1px solid #e5e7eb; border-radius: 24px; padding: 8px 18px; cursor: pointer; font-size: 15px; color: #666; }
.aihc-like-btn.liked { background: #fef2f2; color: #ef4444; border-color: #fecaca; }

/* ---- forms ---- */
.aihc-form { display: flex; flex-direction: column; gap: 12px; max-width: 640px; }
.aihc-form label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: #444; }
.aihc-form input[type=text], .aihc-form input[type=url], .aihc-form textarea, .aihc-form select {
  padding: 8px 10px; border: 1px solid #d1d5db; border-radius: 8px; font-size: 14px; width: 100%;
}
.aihc-title-input { font-size: 20px; padding: 12px; }
.aihc-publish-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.aihc-quota-hint { color: #999; font-size: 13px; }

/* ---- dashboard ---- */
.aihc-dash-sec { border-top: 1px solid #eee; padding: 20px 0; }
.aihc-tpl-picker { display: flex; gap: 8px; flex-wrap: wrap; }
.aihc-tpl-btn { padding: 6px 14px; border: 1px solid #d1d5db; border-radius: 8px; background: #fff; cursor: pointer; }
.aihc-my-posts { list-style: none; padding: 0; }
.aihc-my-posts li { padding: 8px 0; border-bottom: 1px dashed #eee; }
.aihc-my-posts .aihc-st { color: #999; font-size: 12px; }
.aihc-home-preview { margin-top: 16px; border: 1px dashed #ddd; border-radius: 12px; overflow: hidden; }

/* ---- 个人主页受控/默认模板 ---- */
.aihc-ctrl { background: var(--bg,#0b1020); color: var(--tx,#e5e7eb); border-radius: var(--r,12px); padding: 40px 28px; }
.aihc-ctrl-hero { text-align: center; }
.aihc-ctrl-avatar img { width: 96px; height: 96px; border-radius: 50%; border: 3px solid var(--a,#4f46e5); }
.aihc-ctrl h1 { color: var(--tx,#fff); margin: 14px 0 6px; }
.aihc-ctrl-sub { color: var(--a2,#06b6d4); }
.aihc-ctrl-bio { opacity: .85; max-width: 560px; margin: 8px auto; }
.aihc-ctrl-web { display: inline-block; margin-top: 10px; color: var(--a2,#06b6d4); text-decoration: none; }
.aihc-ctrl-posts { margin-top: 30px; }
.aihc-ctrl-posts h2 { border-left: 4px solid var(--a,#4f46e5); padding-left: 10px; }
.aihc-home-posts { list-style: none; padding: 0; }
.aihc-home-posts li { padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.aihc-home-posts a { color: inherit; text-decoration: none; }
.aihc-home-posts .aihc-meta { display: block; font-size: 12px; opacity: .6; }
.aihc-home-frame { width: 100%; border: 0; border-radius: 12px; }
.aihc-home-toolbar { margin-bottom: 12px; }

@media (max-width: 640px) {
  .aihc-card-thumb img { width: 88px; height: 64px; }
  .aihc-title { font-size: 24px; }
}
