/* ==========================================================================
   《回声》独立音乐刊物 —— 样式
   编辑风格 · 深色底 + 暖色点缀 · 衬线标题
   ========================================================================== */

:root {
  --bg: #0f0e0c;
  --bg-soft: #171512;
  --bg-card: #1d1a16;
  --bg-elevated: #26221c;
  --border: #2e2a23;
  --border-strong: #3c372e;
  --text: #ece7dd;
  --text-dim: #b3ab9e;
  --text-faint: #7d766a;
  --accent: #e0a458;
  --accent-strong: #f0b76a;
  --accent-deep: #b57c33;
  --green: #8fb98a;
  --red: #d98a7a;
  --radius: 10px;
  --radius-lg: 16px;
  --font-serif: "Songti SC", "Noto Serif SC", "STSong", Georgia, "Times New Roman", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --maxw: 1080px;
  --glow: rgba(224, 164, 88, 0.12);
  --header-bg: rgba(15, 14, 12, 0.82);
}

/* ==========================================================================
   主题预设（页面颜色切换）
   ========================================================================== */
[data-theme="forest"] {
  --accent: #82c091;
  --accent-strong: #a7d9b2;
  --accent-deep: #5b9b6d;
  --glow: rgba(130, 192, 145, 0.13);
  --header-bg: rgba(14, 18, 16, 0.82);
  --bg: #0e1210;
  --bg-soft: #151a16;
  --bg-card: #1b211c;
  --bg-elevated: #232a24;
  --border: #2a322b;
  --border-strong: #39423a;
}

[data-theme="ocean"] {
  --accent: #7fb2d9;
  --accent-strong: #a7cceb;
  --accent-deep: #5a86b0;
  --glow: rgba(127, 178, 217, 0.13);
  --header-bg: rgba(13, 16, 20, 0.82);
  --bg: #0d1014;
  --bg-soft: #14171c;
  --bg-card: #1a1e24;
  --bg-elevated: #21262e;
  --border: #29303a;
  --border-strong: #37404c;
}

[data-theme="rose"] {
  --accent: #d98a7a;
  --accent-strong: #eaa393;
  --accent-deep: #b06557;
  --glow: rgba(217, 138, 122, 0.13);
  --header-bg: rgba(20, 16, 17, 0.82);
  --bg: #141011;
  --bg-soft: #1a1516;
  --bg-card: #211a1b;
  --bg-elevated: #292023;
  --border: #322729;
  --border-strong: #41323a;
}

[data-theme="paper"] {
  --bg: #f4f1ea;
  --bg-soft: #ece8de;
  --bg-card: #ffffff;
  --bg-elevated: #e6e1d5;
  --border: #ded8ca;
  --border-strong: #c9c2b2;
  --text: #2a2722;
  --text-dim: #5c564b;
  --text-faint: #8c8578;
  --accent: #b57c33;
  --accent-strong: #c98f45;
  --accent-deep: #8f5f26;
  --glow: rgba(181, 124, 51, 0.12);
  --header-bg: rgba(244, 241, 234, 0.86);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(1200px 520px at 15% -10%, var(--glow), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* --------------------------------------------------------------------------
   页头
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--accent);
  background: var(--bg-soft);
}

.brand-text { display: flex; flex-direction: column; line-height: 1.2; }

.brand-text strong {
  font-family: var(--font-serif);
  font-size: 22px;
  letter-spacing: 2px;
  color: var(--text);
}

.brand-text em {
  font-style: normal;
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--text-faint);
  text-transform: uppercase;
}

.site-nav { display: flex; align-items: center; gap: 6px; }

.site-nav a {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--text-dim);
  transition: color 0.2s, background 0.2s;
}

.site-nav a:hover { color: var(--text); background: var(--bg-card); }

.site-nav a.active { color: var(--accent-strong); }

.site-nav a.nav-cta {
  margin-left: 6px;
  background: var(--accent);
  color: #1a1307;
  font-weight: 600;
}

.site-nav a.nav-cta:hover { background: var(--accent-strong); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px;
  cursor: pointer;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* --------------------------------------------------------------------------
   主区域与通用元素
   -------------------------------------------------------------------------- */
main.container { flex: 1; padding-top: 40px; padding-bottom: 80px; }

.section-title {
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: 2px;
  margin: 8px 0 4px;
}

.section-sub {
  color: var(--text-dim);
  margin: 0 0 28px;
  font-size: 15px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.section-head .section-title { margin: 0; }

.section-head .section-sub { margin: 4px 0 0; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--bg-card);
  color: var(--text);
  font-size: 14px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.1s;
}

.btn:hover { border-color: var(--accent-deep); background: var(--bg-elevated); }

.btn:active { transform: translateY(1px); }

.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #1a1307;
  font-weight: 600;
}

.btn.primary:hover { background: var(--accent-strong); }

.btn.sm { padding: 6px 12px; font-size: 13px; }

.btn.block { width: 100%; justify-content: center; }

/* 标签 / 徽章 */
.badge {
  display: inline-block;
  padding: 3px 10px;
  font-size: 12px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  color: var(--text-dim);
  background: var(--bg-soft);
}

.badge.accent { color: var(--accent-strong); border-color: var(--accent-deep); }

.rating {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--accent-strong);
}

/* --------------------------------------------------------------------------
   首页 Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(600px 260px at 85% 20%, var(--glow), transparent 60%),
    var(--bg-soft);
  padding: 56px 44px;
  margin-bottom: 48px;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -60px;
  width: 260px;
  height: 260px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  opacity: 0.5;
}

.hero-kicker {
  font-size: 12px;
  letter-spacing: 4px;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: 4px;
  margin: 0 0 18px;
}

.hero-title em { font-style: normal; color: var(--accent-strong); }

.hero-desc {
  max-width: 560px;
  color: var(--text-dim);
  font-size: 16px;
  margin: 0 0 28px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* 首页概览卡片 */
.home-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.home-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, border-color 0.2s;
}

.home-card:hover { transform: translateY(-3px); border-color: var(--border-strong); }

.home-card .card-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--bg-elevated);
  font-size: 22px;
  margin-bottom: 16px;
}

.home-card h3 {
  font-family: var(--font-serif);
  font-size: 20px;
  margin: 0 0 8px;
  letter-spacing: 1px;
}

.home-card p { color: var(--text-dim); font-size: 14px; margin: 0 0 18px; flex: 1; }

.home-card .link { color: var(--accent-strong); font-size: 14px; }

/* --------------------------------------------------------------------------
   列表（乐评 / 文章 / 帖子通用）
   -------------------------------------------------------------------------- */
.list { display: flex; flex-direction: column; gap: 16px; }

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  padding: 22px 24px;
  transition: border-color 0.2s;
}

.card:hover { border-color: var(--border-strong); }

.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}

.card-title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin: 0;
  color: var(--text);
}

.card-title a:hover { color: var(--accent-strong); }

.card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  color: var(--text-faint);
  font-size: 13px;
  margin-bottom: 12px;
}

.card-meta .sep { opacity: 0.5; }

.card-excerpt {
  color: var(--text-dim);
  font-size: 14.5px;
  margin: 0;
  white-space: pre-line;
}

.review-meta-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

/* 评分条 */
.score-bar {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-serif);
  color: var(--accent-strong);
}

.score-bar .score { font-size: 22px; font-weight: 700; }
.score-bar .total { color: var(--text-faint); font-size: 13px; }

/* --------------------------------------------------------------------------
   详情视图（展开阅读）
   -------------------------------------------------------------------------- */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-dim);
  font-size: 14px;
  margin-bottom: 20px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.back-link:hover { color: var(--accent-strong); }

.article-detail,
.review-detail {
  max-width: 760px;
  margin: 0 auto;
}

.article-detail .detail-kicker,
.review-detail .detail-kicker {
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.detail-title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4.5vw, 40px);
  line-height: 1.25;
  font-weight: 700;
  margin: 0 0 16px;
}

.detail-meta {
  color: var(--text-faint);
  font-size: 13.5px;
  padding-bottom: 20px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.prose {
  font-family: var(--font-serif);
  font-size: 17px;
  line-height: 1.95;
  color: var(--text);
  white-space: pre-line;
}

.prose p { margin: 0 0 1.2em; }

/* --------------------------------------------------------------------------
   表单
   -------------------------------------------------------------------------- */
.form-wrap {
  max-width: 720px;
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
  padding: 32px;
}

.form-title {
  font-family: var(--font-serif);
  font-size: 26px;
  margin: 0 0 6px;
}

.form-desc { color: var(--text-dim); font-size: 14px; margin: 0 0 24px; }

.field { margin-bottom: 18px; }

.field label {
  display: block;
  font-size: 13.5px;
  color: var(--text-dim);
  margin-bottom: 7px;
}

.field label .req { color: var(--red); }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--bg-card);
  color: var(--text);
  font-size: 14.5px;
  font-family: inherit;
  transition: border-color 0.2s;
}

.field textarea { resize: vertical; min-height: 120px; line-height: 1.7; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent-deep);
}

.field .hint { font-size: 12.5px; color: var(--text-faint); margin-top: 6px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form-actions { display: flex; gap: 12px; margin-top: 8px; }

/* 投稿入口卡片 */
.submit-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 32px;
}

.submit-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
  padding: 26px;
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s;
}

.submit-card:hover { transform: translateY(-3px); border-color: var(--accent-deep); }

.submit-card .card-icon { font-size: 26px; margin-bottom: 12px; }

.submit-card h3 {
  font-family: var(--font-serif);
  font-size: 20px;
  margin: 0 0 8px;
}

.submit-card p { color: var(--text-dim); font-size: 14px; margin: 0; }

/* --------------------------------------------------------------------------
   交流板块
   -------------------------------------------------------------------------- */
.post-card { cursor: pointer; }

.post-card .reply-count {
  color: var(--text-faint);
  font-size: 13px;
  white-space: nowrap;
}

.thread { max-width: 820px; margin: 0 auto; }

.replies { margin-top: 28px; }

.replies-title {
  font-family: var(--font-serif);
  font-size: 18px;
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.reply {
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent-deep);
  border-radius: 8px;
  background: var(--bg-card);
  padding: 14px 18px;
  margin-bottom: 12px;
}

.reply-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--text-faint);
  font-size: 13px;
  margin-bottom: 8px;
}

.reply-head .author { color: var(--accent-strong); font-weight: 600; }

.reply-content { color: var(--text-dim); font-size: 14.5px; white-space: pre-line; }

.reply-form {
  margin-top: 26px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  padding: 20px;
  background: var(--bg-soft);
}

.empty {
  text-align: center;
  padding: 56px 20px;
  color: var(--text-faint);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
}

.empty .empty-icon { font-size: 34px; margin-bottom: 12px; }
.empty p { margin: 0; }

/* --------------------------------------------------------------------------
   加载与提示
   -------------------------------------------------------------------------- */
.skeleton {
  height: 20px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-elevated) 50%, var(--bg-card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite;
  margin-bottom: 12px;
}

@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

.toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%) translateY(20px);
  background: var(--bg-elevated);
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 12px 22px;
  font-size: 14px;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  z-index: 100;
}

.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.toast.success { border-color: var(--green); }
.toast.error { border-color: var(--red); }

/* --------------------------------------------------------------------------
   页脚
   -------------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  background: var(--bg-soft);
}

.footer-inner { text-align: center; }

.footer-brand {
  font-family: var(--font-serif);
  font-size: 22px;
  letter-spacing: 3px;
  margin: 0 0 8px;
  color: var(--text);
}

.footer-brand span { color: var(--accent); font-size: 12px; letter-spacing: 4px; }

.footer-note { color: var(--text-dim); font-size: 13px; margin: 0 0 16px; }

.footer-copy { color: var(--text-faint); font-size: 12px; margin: 0; }

/* --------------------------------------------------------------------------
   响应式
   -------------------------------------------------------------------------- */
@media (max-width: 860px) {
  .home-grid { grid-template-columns: 1fr; }
  .submit-intro { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }

  .nav-toggle { display: flex; }

  .site-nav {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--border);
    padding: 12px 24px 20px;
    display: none;
  }

  .site-nav.open { display: flex; }

  .site-nav a { padding: 12px 14px; }

  .site-nav a.nav-cta { margin-left: 0; text-align: center; }

  .hero { padding: 36px 26px; }

  main.container { padding-top: 28px; }
}

/* ==========================================================================
   页面颜色切换（主题选择器）
   ========================================================================== */
.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-wrap { position: relative; }

.icon-btn {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-card);
  color: var(--text);
  font-size: 18px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.icon-btn:hover { border-color: var(--accent-deep); background: var(--bg-elevated); }

.theme-popover {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 240px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 16px;
  box-shadow: var(--shadow);
  z-index: 60;
}

.theme-popover[hidden] { display: none; }

.popover-title {
  font-family: var(--font-serif);
  font-size: 15px;
  margin: 0 0 12px;
  letter-spacing: 1px;
}

.swatches { display: flex; gap: 10px; margin-bottom: 14px; }

.swatch {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
  transition: transform 0.15s, border-color 0.15s;
}

.swatch:hover { transform: scale(1.1); }

.swatch.active { border-color: var(--text); }

.custom-color {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  color: var(--text-dim);
}

.custom-color input[type="color"] {
  width: 40px;
  height: 28px;
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  background: var(--bg-card);
  cursor: pointer;
}

/* ==========================================================================
   登录区与登录/注册页
   ========================================================================== */
.auth-area {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: 2px;
}

.auth-user {
  font-size: 13px;
  color: var(--accent-strong);
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-link {
  font-size: 13px;
  color: var(--text-dim);
  padding: 6px 10px;
  border-radius: 7px;
  border: none;
  background: none;
  cursor: pointer;
  transition: color 0.2s;
}

.auth-link:hover { color: var(--text); }

.auth-btn {
  font-size: 13px;
  color: #1a1307;
  background: var(--accent);
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 7px;
  transition: background 0.2s;
}

.auth-btn:hover { background: var(--accent-strong); }

.auth-page {
  max-width: 420px;
  margin: 30px auto;
}

.auth-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
  padding: 32px;
}

.auth-title {
  font-family: var(--font-serif);
  font-size: 28px;
  letter-spacing: 2px;
  margin: 0 0 6px;
}

.auth-sub { color: var(--text-dim); font-size: 14px; margin: 0 0 24px; }

.auth-alt {
  text-align: center;
  color: var(--text-dim);
  font-size: 14px;
  margin: 18px 0 0;
}

.auth-alt a { color: var(--accent-strong); }
.auth-alt a:hover { text-decoration: underline; }

@media (max-width: 860px) {
  .auth-area {
    order: 3;
    margin-right: 0;
  }
}

/* ==========================================================================
   开发者模式
   ========================================================================== */
.dev-link { color: var(--text-faint); text-decoration: underline; text-underline-offset: 3px; }
.dev-link:hover { color: var(--accent-strong); }

.dev-gate {
  max-width: 420px;
  margin: 60px auto;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
  padding: 40px 32px;
}

.dev-gate .gate-icon { font-size: 40px; margin-bottom: 14px; }

.dev-gate h1 { font-family: var(--font-serif); font-size: 24px; margin: 0 0 8px; }

.dev-gate p { color: var(--text-dim); font-size: 14px; margin: 0 0 24px; }

.dev-gate .field { text-align: left; }

.dev-panel .panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.dev-panel .panel-title { font-family: var(--font-serif); font-size: 26px; margin: 0; }

.dev-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 28px; }

.stat-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  padding: 18px;
  text-align: center;
}

.stat-card .stat-num {
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 700;
  color: var(--accent-strong);
}

.stat-card .stat-label { color: var(--text-faint); font-size: 13px; margin-top: 4px; }

.dev-list { margin-bottom: 28px; }

.dev-list h2 {
  font-family: var(--font-serif);
  font-size: 18px;
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.dev-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-card);
  margin-bottom: 8px;
}

.dev-item .dev-item-main { flex: 1; min-width: 0; }

.dev-item .dev-item-title {
  font-size: 14px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dev-item .dev-item-meta { font-size: 12px; color: var(--text-faint); }

.dev-item-actions { display: flex; gap: 8px; flex-shrink: 0; }

/* 编辑弹窗 */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 20px;
  overflow-y: auto;
}

.modal-box {
  width: 100%;
  max-width: 620px;
  background: var(--bg-soft);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  box-shadow: var(--shadow);
  animation: modalIn 0.18s ease;
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.modal-title { font-family: var(--font-serif); font-size: 20px; margin: 0; }

.modal-close {
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-card);
  color: var(--text-dim);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.modal-close:hover { color: var(--text); border-color: var(--border-strong); }

.btn.danger { border-color: var(--red); color: var(--red); }
.btn.danger:hover { background: rgba(217, 138, 122, 0.12); border-color: var(--red); }

@media (max-width: 860px) {
  .dev-stats { grid-template-columns: 1fr; }
}
