/* ============================================================
   Blog System - 前端样式
   ============================================================ */

:root {
  --bg: #faf7f2;
  --bg-dark: #1c1714;
  --fg: #2c2420;
  --fg-light: #6b5f56;
  --muted: #a69b93;
  --accent: #c4664a;
  --accent-light: #d88a6e;
  --accent-dark: #a04f35;
  --card: #ffffff;
  --border: #e8e0d6;
  --border-dark: #3a312a;
  --green: #5a7a52;
  --shadow: 0 2px 12px rgba(0,0,0,0.06);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; }
ul { list-style: none; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* ---- Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250,247,242,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.logo { display: flex; align-items: center; }
.logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 24px; font-weight: 700;
  color: var(--fg); letter-spacing: -0.5px;
}
.logo-text span, .logo-text em { color: var(--accent); font-style: italic; }
.main-nav { display: flex; gap: 36px; }
.main-nav a {
  font-size: 14px; font-weight: 500;
  color: var(--fg-light); position: relative;
}
.main-nav a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 2px; background: var(--accent); transition: width 0.3s;
}
.main-nav a:hover { color: var(--fg); }
.main-nav a:hover::after { width: 100%; }

/* Mobile nav toggle */
.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }

/* ---- Footer ---- */
.site-footer { background: var(--bg-dark); color: rgba(255,255,255,0.5); padding: 60px 24px 32px; margin-top: 64px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.2fr; gap: 48px; }
.footer-friends ul { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.footer-friends li { margin-bottom: 0; }
.footer-friends a { color: rgba(255,255,255,0.55); }
.footer-friends a:hover { color: var(--accent-light); }
.footer-friends .friend-apply { color: var(--accent); border-bottom: 1px dashed rgba(200,145,58,.5); }
.site-footer .footer-brand h3 { font-family: 'Playfair Display', serif; font-size: 20px; color: white; margin-bottom: 12px; }
.site-footer .footer-brand p { font-size: 14px; line-height: 1.8; margin-bottom: 8px; }
.site-footer h4 { font-size: 13px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: white; margin-bottom: 16px; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { font-size: 14px; color: rgba(255,255,255,0.5); }
.site-footer a:hover { color: var(--accent-light); }
.footer-bottom { max-width: 1280px; margin: 48px auto 0; padding-top: 24px; border-top: 1px solid #2e2822; display: flex; justify-content: space-between; font-size: 12px; }

/* ---- Blog Cards ---- */
.blog-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 4px; overflow: hidden; transition: box-shadow 0.4s, transform 0.4s;
}
.blog-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.blog-card img { transition: transform 0.6s; }
.blog-card:hover img { transform: scale(1.05); }

/* ---- Category Tag ---- */
.category-tag {
  display: inline-block; font-size: 11px; font-weight: 600;
  letter-spacing: 1px; text-transform: uppercase;
  color: var(--accent); background: rgba(196,102,74,0.08);
  padding: 4px 10px; border-radius: 2px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; font-size: 13px; font-weight: 600;
  letter-spacing: 1px; text-transform: uppercase; cursor: pointer;
  border: none; border-radius: 4px; font-family: inherit; transition: all 0.2s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--fg); border: 1.5px solid var(--border); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

/* ---- Pagination ---- */
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 32px; }
.pagination a {
  display: inline-flex; width: 36px; height: 36px;
  align-items: center; justify-content: center;
  border: 1px solid var(--border); border-radius: 6px;
  font-size: 13px; color: var(--fg-light); transition: all 0.2s;
}
.pagination a:hover { border-color: var(--accent); color: var(--accent); }
.pagination a.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---- Article Page ---- */
.article-content { font-size: 16px; line-height: 1.9; }
.article-content p { margin-bottom: 1.2em; }
.article-content h2 { font-family: 'Playfair Display', serif; font-size: 24px; margin: 2em 0 0.5em; }
.article-content h3 { font-family: 'Playfair Display', serif; font-size: 20px; margin: 1.5em 0 0.5em; }
.article-content blockquote {
  border-left: 3px solid var(--accent); padding-left: 20px;
  margin: 1.5em 0; color: var(--fg-light); font-style: italic;
}
.article-content code {
  background: rgba(0,0,0,0.06); padding: 2px 6px; border-radius: 4px;
  font-family: monospace; font-size: 0.9em;
}
.article-content pre {
  background: var(--bg-dark); color: #e8e0d6; padding: 20px;
  border-radius: 8px; overflow-x: auto; margin: 1.5em 0;
}

/* ============================================================
   富文本内容渲染 (Jodit 编辑器产物) — .rich-content
   ============================================================ */
.rich-content { font-size: 16px; line-height: 1.9; color: var(--fg); word-wrap: break-word; }
.rich-content p { margin-bottom: 1.2em; }
.rich-content h1, .rich-content h2, .rich-content h3,
.rich-content h4, .rich-content h5, .rich-content h6 {
  font-family: 'Playfair Display', serif; line-height: 1.35; margin: 1.6em 0 0.6em;
}
.rich-content h1 { font-size: 30px; }
.rich-content h2 { font-size: 26px; }
.rich-content h3 { font-size: 22px; }
.rich-content h4 { font-size: 18px; }
.rich-content h5 { font-size: 16px; }
.rich-content h6 { font-size: 15px; color: var(--fg-light); }

.rich-content ul, .rich-content ol { margin: 0 0 1.2em; padding-left: 1.6em; }
.rich-content ul { list-style: disc; }
.rich-content ol { list-style: decimal; }
.rich-content li { margin-bottom: 0.4em; }
.rich-content li > ul, .rich-content li > ol { margin: 0.4em 0; }

.rich-content blockquote {
  border-left: 3px solid var(--accent); padding: 4px 20px;
  margin: 1.5em 0; color: var(--fg-light); font-style: italic;
  background: rgba(196, 102, 74, 0.04);
}
.rich-content blockquote p:last-child { margin-bottom: 0; }

.rich-content a { color: var(--accent); text-decoration: underline; }
.rich-content a:hover { color: var(--accent-light); }

.rich-content img { max-width: 100%; height: auto; border-radius: 6px; margin: 0.6em 0; }
.rich-content figure { margin: 1.5em 0; text-align: center; }
.rich-content figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; }

.rich-content hr { border: none; border-top: 1px solid var(--border); margin: 2em 0; }

.rich-content video, .rich-content iframe {
  max-width: 100%; border-radius: 8px; margin: 1.2em 0; background: #000;
}
.rich-content video { display: block; }
.rich-content iframe { border: 0; aspect-ratio: 16 / 9; height: auto; }

/* 表格 */
.rich-content table {
  width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: 15px;
}
.rich-content th, .rich-content td {
  border: 1px solid var(--border); padding: 10px 14px; text-align: left;
}
.rich-content th { background: rgba(0, 0, 0, 0.03); font-weight: 600; }
.rich-content tbody tr:nth-child(even) { background: rgba(0, 0, 0, 0.015); }

/* 行内代码 */
.rich-content code {
  background: rgba(0, 0, 0, 0.06); padding: 2px 6px; border-radius: 4px;
  font-family: Consolas, Monaco, 'Courier New', monospace; font-size: 0.9em;
}

/* 代码块 (编辑器 .codeblock 结构) */
.rich-content .codeblock { margin: 1.5em 0; border-radius: 8px; overflow: hidden;
  background: var(--bg-dark); border: 1px solid rgba(255, 255, 255, 0.08); }
.rich-content .codeblock .codeblock-lang {
  display: block; padding: 6px 14px; font-size: 11px; letter-spacing: 0.5px;
  color: #c8913a; background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-family: Consolas, Monaco, monospace;
}
.rich-content .codeblock pre, .rich-content pre {
  background: var(--bg-dark); color: #e8e0d6; padding: 16px 18px;
  border-radius: 8px; overflow-x: auto; margin: 1.5em 0;
}
.rich-content .codeblock pre { margin: 0; border-radius: 0; }
.rich-content pre code, .rich-content .codeblock pre code {
  background: none; padding: 0; color: #e8e0d6; border-radius: 0;
  font-size: 13.5px; line-height: 1.6; white-space: pre;
}

/* ---- 图文排版模板 (编辑器「插入图文排版」产物, .lb-* 结构) ----
   与 editor-init.js 中 EDITOR_CSS 的 .jodit-wysiwyg .lb-* 规则成对维护 */
.rich-content .lb-row { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; margin: 1.6em 0; }
.rich-content .lb-row .lb-media { flex: 1 1 40%; min-width: 230px; }
.rich-content .lb-row .lb-text { flex: 1 1 52%; min-width: 230px; }
.rich-content .lb-img-right { flex-direction: row-reverse; }
.rich-content .lb-media img { width: 100%; height: auto; object-fit: cover; border-radius: 8px; display: block; margin: 0; }
.rich-content .lb-stack { margin: 1.6em 0; }
.rich-content .lb-stack .lb-text { padding-top: 8px; }
.rich-content .lb-text h1, .rich-content .lb-text h2, .rich-content .lb-text h3,
.rich-content .lb-text h4, .rich-content .lb-text h5, .rich-content .lb-text h6 { margin: .2em 0 .6em; }
.rich-content .lb-text p:last-child { margin-bottom: 0; }
.rich-content .lb-banner { position: relative; margin: 1.6em 0; border-radius: 10px; overflow: hidden; }
.rich-content .lb-banner > img {
  width: 100%; display: block; height: auto; min-height: 200px; max-height: 420px;
  object-fit: cover; border-radius: 0; margin: 0;
}
.rich-content .lb-banner .lb-banner-text {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 48px 24px 18px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0));
}
.rich-content .lb-banner .lb-banner-text,
.rich-content .lb-banner .lb-banner-text * { color: #fff; margin-top: 0; }
.rich-content .lb-banner .lb-banner-text h1, .rich-content .lb-banner .lb-banner-text h2,
.rich-content .lb-banner .lb-banner-text h3, .rich-content .lb-banner .lb-banner-text h4,
.rich-content .lb-banner .lb-banner-text h5, .rich-content .lb-banner .lb-banner-text h6 { margin: 0 0 .4em; }
.rich-content .lb-banner .lb-banner-text p { margin: 0 0 .6em; }
.rich-content .lb-banner .lb-banner-text p:last-child { margin-bottom: 0; }

@media (max-width: 640px) {
  .rich-content .lb-row { flex-direction: column; }
  .rich-content .lb-row .lb-media, .rich-content .lb-row .lb-text { flex: 1 1 auto; width: 100%; min-width: 0; }
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .main-nav { display: none; }
  .menu-toggle { display: block; }
  .main-nav.mobile-open {
    display: flex; flex-direction: column; position: absolute;
    top: 72px; left: 0; right: 0; background: var(--bg);
    padding: 24px; border-bottom: 1px solid var(--border);
  }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 1024px) {
  .two-col { grid-template-columns: 1fr !important; }
}

/* ============================================================
   首页 blog/index.html 风格区块
   ============================================================ */

/* -- Section Header / Filter -- */
.section-header {
  max-width: 1280px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 40px;
}
.section-title {
  font-family: 'Playfair Display', serif; font-size: 36px; font-weight: 700;
  letter-spacing: -0.5px;
}
.section-title em { color: var(--accent); font-style: italic; }
.section-link {
  font-size: 14px; font-weight: 600; color: var(--accent);
  display: flex; align-items: center; gap: 6px; transition: gap 0.2s;
}
.section-link:hover { gap: 10px; }
.filter-bar {
  max-width: 1280px; margin: 0 auto 32px; padding: 0 24px;
  display: flex; gap: 8px; flex-wrap: wrap;
}
.filter-tab {
  padding: 8px 20px; font-size: 13px; font-weight: 500;
  border: 1px solid var(--border); border-radius: 100px;
  background: transparent; color: var(--fg-light); cursor: pointer;
  transition: all 0.2s; font-family: 'DM Sans', sans-serif;
}
.filter-tab:hover { border-color: var(--accent); color: var(--accent); }
.filter-tab.active { background: var(--accent); color: white; border-color: var(--accent); }

/* -- Blog Grid -- */
.blog-grid {
  max-width: 1280px; margin: 0 auto; padding: 0 24px 80px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
}
.blog-card { border-radius: 4px; }
.blog-card-image { aspect-ratio: 16/10; overflow: hidden; position: relative; }
.blog-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.blog-card:hover .blog-card-image img { transform: scale(1.05); }
.blog-card-image .category-tag {
  position: absolute; top: 16px; left: 16px;
  background: rgba(255,255,255,0.95); padding: 4px 12px;
  font-size: 11px; font-weight: 600; letter-spacing: 1px;
  text-transform: uppercase; border-radius: 2px; color: var(--accent);
}
.blog-card-body { padding: 24px; }
.blog-card-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; font-size: 12px; color: var(--muted); }
.blog-card-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--muted); }
.blog-card h3 {
  font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 700;
  line-height: 1.3; margin-bottom: 10px; transition: color 0.2s;
}
.blog-card:hover h3 { color: var(--accent); }
.blog-card p {
  font-size: 14px; color: var(--fg-light); line-height: 1.7; margin-bottom: 16px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.blog-card-footer { display: flex; align-items: center; justify-content: space-between; }
.author { display: flex; align-items: center; gap: 8px; }
.author-avatar {
  width: 28px; height: 28px; border-radius: 50%; background: var(--accent);
  display: flex; align-items: center; justify-content: center; color: white; font-size: 11px; font-weight: 600;
}
.author-name { font-size: 13px; font-weight: 500; }
.read-time { font-size: 12px; color: var(--muted); }

/* -- Main Layout (h-post + sidebar) -- */
.main-layout {
  max-width: 1280px; margin: 0 auto; padding: 0 24px 80px;
  display: grid; grid-template-columns: 1fr 320px; gap: 48px;
}
.post-list { display: flex; flex-direction: column; gap: 32px; }
.h-post {
  display: grid; grid-template-columns: 280px 1fr; gap: 28px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 4px; overflow: hidden; cursor: pointer; transition: all 0.3s;
}
.h-post:hover { transform: translateX(4px); box-shadow: 0 8px 24px rgba(0,0,0,0.06); }
.h-post-image { overflow: hidden; aspect-ratio: 1; }
.h-post-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.h-post:hover .h-post-image img { transform: scale(1.05); }
.h-post-body { padding: 28px 28px 28px 0; display: flex; flex-direction: column; }
.h-post-body .category-tag {
  font-size: 11px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--accent); margin-bottom: 12px;
}
.h-post-body h3 {
  font-family: 'Playfair Display', serif; font-size: 24px; font-weight: 700;
  line-height: 1.3; margin-bottom: 10px; transition: color 0.2s;
}
.h-post:hover h3 { color: var(--accent); }
.h-post-body p {
  font-size: 14px; color: var(--fg-light); line-height: 1.7; margin-bottom: 16px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.h-post-footer { display: flex; align-items: center; gap: 16px; margin-top: auto; font-size: 12px; color: var(--muted); }

/* -- Sidebar -- */
.sidebar { display: flex; flex-direction: column; gap: 36px; }
.sidebar-widget { background: var(--card); padding: 28px; border: 1px solid var(--border); border-radius: 4px; }
.widget-title {
  font-family: 'Playfair Display', serif; font-size: 18px; font-weight: 700;
  margin-bottom: 20px; padding-bottom: 12px; border-bottom: 2px solid var(--accent); display: inline-block;
}
.widget-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.widget-list li a {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 14px; color: var(--fg-light); transition: color 0.2s; padding: 4px 0;
}
.widget-list li a:hover { color: var(--accent); }
.widget-list li a.active { color: var(--accent); font-weight: 600; }
.widget-list .count { font-size: 12px; color: var(--muted); background: var(--bg); padding: 2px 10px; border-radius: 100px; }
.popular-post { display: flex; gap: 12px; margin-bottom: 16px; cursor: pointer; }
.popular-post:last-child { margin-bottom: 0; }
.popular-post img { width: 56px; height: 56px; object-fit: cover; border-radius: 4px; flex-shrink: 0; }
.popular-post-info h4 {
  font-size: 13px; font-weight: 600; line-height: 1.4; margin-bottom: 4px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.popular-post-info span { font-size: 11px; color: var(--muted); }

@media (max-width: 1024px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .main-layout { grid-template-columns: 1fr; }
  .h-post { grid-template-columns: 200px 1fr; }
}
@media (max-width: 768px) {
  .blog-grid { grid-template-columns: 1fr; }
  .h-post { grid-template-columns: 1fr; }
  .h-post-image { aspect-ratio: 16/9; }
  .section-header { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* ---- 文章评论区 ---- */
.comments { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--border); }
.comments-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.comments-title { font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 700; color: var(--fg); }
.comments-title em { font-style: normal; font-size: 14px; color: var(--muted); margin-left: 8px; }
.comments-closed-tip { font-size: 13px; color: var(--muted); background: var(--bg); border: 1px solid var(--border); border-radius: 100px; padding: 4px 12px; }
.comments-empty { font-size: 14px; color: var(--muted); padding: 8px 0 24px; }
.comments-flash { background: rgba(90,122,82,.1); border: 1px solid rgba(90,122,82,.3); color: var(--green); border-radius: 4px; padding: 12px 16px; font-size: 14px; margin-bottom: 20px; }
.comments-flash-error { background: rgba(196,102,74,.08); border-color: rgba(196,102,74,.3); color: var(--accent-dark); }
.comment-list { list-style: none; display: flex; flex-direction: column; gap: 24px; margin-bottom: 32px; }
.comment-item { }
.comment-main { display: flex; gap: 12px; align-items: flex-start; }
.comment-avatar { width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 600; }
.comment-avatar-sm { width: 32px; height: 32px; font-size: 13px; background: var(--fg-light); }
.comment-body { flex: 1; min-width: 0; }
.comment-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; }
.comment-author { font-size: 14px; font-weight: 600; color: var(--fg); }
.comment-author a { color: var(--fg); text-decoration: none; border-bottom: 1px solid transparent; }
.comment-author a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.comment-badge { font-size: 11px; font-weight: 600; color: #fff; background: var(--accent); border-radius: 3px; padding: 1px 6px; }
.comment-date { font-size: 12px; color: var(--muted); }
.comment-ip { font-size: 12px; color: var(--muted); font-family: 'DM Mono', 'SFMono-Regular', Consolas, monospace; }
.comment-reply-btn { margin-left: auto; background: none; border: 1px solid var(--border); border-radius: 100px; padding: 2px 12px; font-size: 12px; color: var(--fg-light); cursor: pointer; font-family: inherit; transition: all .2s; }
.comment-reply-btn:hover { border-color: var(--accent); color: var(--accent); }
.comment-content { font-size: 15px; line-height: 1.8; color: var(--fg-light); word-break: break-word; overflow-wrap: anywhere; }
.comment-replies { list-style: none; margin: 16px 0 0 52px; padding-left: 20px; border-left: 2px solid var(--border); display: flex; flex-direction: column; gap: 18px; }
.comment-flash-once { animation: commentHighlight 2s ease-out; }
@keyframes commentHighlight { 0%, 40% { background: rgba(200,145,58,.12); } 100% { background: transparent; } }
.comments-pager { display: flex; gap: 8px; margin-bottom: 32px; }
.comments-pager a { min-width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: 4px; font-size: 13px; color: var(--fg-light); text-decoration: none; }
.comments-pager a:hover, .comments-pager a.active { border-color: var(--accent); color: var(--accent); }
.comment-form { background: var(--card); border: 1px solid var(--border); border-radius: 4px; padding: 24px; }
.comment-form-title { font-family: 'Playfair Display', serif; font-size: 18px; margin-bottom: 16px; color: var(--fg); }
.comment-form-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.comment-field { display: block; margin-bottom: 16px; }
.comment-field span { display: block; font-size: 13px; font-weight: 600; color: var(--accent); margin-bottom: 6px; }
.comment-field input, .comment-field textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 4px; background: #fff; font-size: 14px; color: var(--fg); font-family: inherit; outline: none; transition: border .2s; }
.comment-field input:focus, .comment-field textarea:focus { border-color: var(--accent); }
.comment-field textarea { resize: vertical; line-height: 1.7; }
.comment-form-actions { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.comment-captcha-field { margin-bottom: 0; width: 160px; }
.comment-captcha-img { height: 41px; border: 1px solid var(--border); border-radius: 4px; cursor: pointer; }
.comment-form-btns { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.comment-submit { padding: 11px 32px; background: var(--accent); color: #fff; border: none; border-radius: 4px; font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit; transition: background .2s; }
.comment-submit:hover { background: var(--accent-dark); }
.comment-cancel-reply { padding: 10px 18px; background: transparent; border: 1px solid var(--border); border-radius: 4px; font-size: 13px; color: var(--fg-light); cursor: pointer; font-family: inherit; }
.comment-cancel-reply:hover { border-color: var(--accent); color: var(--accent); }
.comment-form-note { margin-top: 12px; font-size: 12px; color: var(--muted); }
.comment-hp { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 768px) {
  .comment-form-row { grid-template-columns: 1fr; }
  .comment-replies { margin-left: 0; padding-left: 12px; }
  .comment-form-btns { margin-left: 0; width: 100%; }
  .comment-submit { flex: 1; }
}
