@charset "UTF-8";
/* ============================================================
   CAD 下载站 - 主样式表（忠实复刻参考图风格 + 现代响应式体验）
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 14px; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
  color: #333333;
  background: #f4f6fa;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: #0066cc; text-decoration: none; }
a:hover { color: #0044aa; text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, p, ul, ol { margin: 0 0 .75rem 0; }
ul, ol { padding-left: 1.4rem; }
.container { max-width: 1260px; margin: 0 auto; padding: 0 16px; }

/* ---------------- Top bar ---------------- */
.site-topbar {
  background: #ffffff;
  border-bottom: 1px solid #e5e8ee;
  position: sticky;
  top: 0;
  z-index: 90;
}
.site-topbar .container {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 64px;
}
.site-logo { display: flex; align-items: center; text-decoration: none !important; }
.site-logo img { height: 42px; width: auto; }
.site-nav { display: flex; gap: 4px; align-items: center; }
.site-nav a {
  display: inline-block;
  padding: 8px 13px;
  font-size: 14px;
  color: #374151;
  font-weight: 500;
  border-radius: 6px;
  transition: all .15s;
}
.site-nav a:hover, .site-nav a.active {
  color: #ef233c;
  background: #ffecee;
  text-decoration: none;
}
.site-search {
  margin-left: auto;
  position: relative;
}
.site-search form { display: flex; align-items: center; }
.site-search input {
  width: 320px;
  height: 36px;
  padding: 0 40px 0 14px;
  border: 1px solid #d4d9e1;
  border-radius: 18px;
  font-size: 13px;
  outline: none;
  background: #f7f9fc;
  transition: all .2s;
}
.site-search input:focus {
  border-color: #0066cc;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0,102,204,.12);
}
.site-search button {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  color: #8a94a6;
}
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid #d4d9e1;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 18px;
  cursor: pointer;
  color: #374151;
}

/* ---------------- Hero / Topic Banner ---------------- */
.topic-banner {
  background: linear-gradient(135deg, #ffffff 0%, #f6f8fc 100%);
  border-bottom: 1px solid #e5e8ee;
  padding: 22px 0 0;
}
.topic-banner .topic-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}
.topic-title {
  font-size: 22px;
  font-weight: 800;
  color: #1a202c;
  margin: 0;
}
.topic-sub {
  font-size: 13px;
  color: #718096;
}
/* Platform tabs - 100%忠实复刻参考图顶部 */
.platform-tabs {
  display: flex;
  gap: 2px;
  flex-wrap: wrap;
  border-bottom: 2px solid #ef233c;
  margin-top: 8px;
}
.platform-tabs a {
  display: inline-block;
  padding: 10px 18px;
  font-size: 14px;
  color: #333333;
  font-weight: 500;
  background: transparent;
  border: none;
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
  text-decoration: none;
  cursor: pointer;
  transition: all .15s;
}
.platform-tabs a .count { color: #8a94a6; font-size: 12px; font-weight: 400; }
.platform-tabs a:hover { color: #ef233c; background: #fff5f5; }
.platform-tabs a.active {
  color: #fff;
  background: #ef233c;
  font-weight: 700;
}
.platform-tabs a.active .count { color: #ffe3e6; }
.platform-tabs a:last-child {
  margin-left: auto;
  color: #666;
  font-size: 13px;
}

/* ---------------- Section common ---------------- */
.section-block { padding: 22px 0; }
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e5e8ee;
}
.section-title {
  font-size: 17px;
  font-weight: 800;
  color: #1a202c;
  margin: 0;
  position: relative;
  padding-left: 12px;
}
.section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  bottom: 3px;
  width: 4px;
  background: #ef233c;
  border-radius: 2px;
}
.section-extra a { font-size: 13px; color: #718096; }
.section-extra a:hover { color: #ef233c; }

/* ---------------- Software card grid (忠实复刻参考图) ---------------- */
.soft-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.soft-card {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  background: #ffffff;
  border: 1px solid #e6ebf1;
  border-radius: 8px;
  padding: 16px 16px 14px;
  transition: transform .18s, box-shadow .18s, border-color .18s;
  overflow: hidden;
}
.soft-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
  border-color: #cdd7e3;
}
.soft-card .soft-meta {
  flex: 1;
  min-width: 0;
}
.soft-title {
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.45;
  margin: 0 0 7px;
  max-width: calc(100% - 64px);
  word-break: break-all;
}
.soft-title a { color: #0066cc; }
.soft-title a:hover { color: #0044aa; text-decoration: underline; }
.soft-info-line {
  font-size: 12.5px;
  color: #6b7280;
  line-height: 1.85;
}
.soft-info-line .label { color: #6b7280; }
.stars { color: #f5a623; letter-spacing: 1px; font-size: 12px; }
.star-full { color: #f5a623; }
.star-half { color: #f5a623; }
.star-empty { color: #d8dee6; }
.soft-summary {
  margin-top: 5px;
  font-size: 12px;
  color: #555555;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.soft-summary .summary-prefix { color: #ef4444; font-weight: 700; }
.soft-side {
  flex: 0 0 92px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}
.soft-icon {
  width: 86px;
  height: 86px;
  display: block;
}
.soft-icon img {
  width: 86px;
  height: 86px;
  object-fit: cover;
  border-radius: 12px;
}
.btn-direct-download {
  display: inline-block;
  margin-top: 6px;
  padding: 4px 14px;
  font-size: 13px;
  color: #0066cc;
  background: #ffffff;
  border: 1px solid #7fb2e6;
  border-radius: 4px;
  text-decoration: none !important;
  transition: all .15s;
  white-space: nowrap;
}
.btn-direct-download:hover {
  background: #0066cc;
  color: #ffffff;
  border-color: #0066cc;
  box-shadow: 0 2px 6px rgba(0,102,204,.25);
}
/* Dual action buttons under icon: 软件下载 + 破解补丁下载 */
.soft-actions {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 100%;
  margin-top: 8px;
}
.btn-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 4px 10px;
  font-size: 12.5px;
  font-weight: 700;
  color: #ffffff;
  background: #0066cc;
  border: 1px solid #0066cc;
  border-radius: 4px;
  text-decoration: none !important;
  transition: all .15s;
  white-space: nowrap;
}
.btn-download:hover {
  background: #004fb3;
  border-color: #004fb3;
  box-shadow: 0 2px 6px rgba(0,102,204,.35);
}
.btn-patch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 4px 10px;
  font-size: 12.5px;
  font-weight: 700;
  color: #0e8345;
  background: #edfbf2;
  border: 1px solid #a3e6be;
  border-radius: 4px;
  text-decoration: none !important;
  transition: all .15s;
  white-space: nowrap;
}
.btn-patch:hover {
  background: #0e8345;
  color: #ffffff;
  border-color: #0e8345;
  box-shadow: 0 2px 6px rgba(14,131,69,.3);
}
.btn-patch-na {
  font-size: 11px;
  color: #9aa3b2;
  text-align: center;
  padding: 3px 0;
}
/* Editor's pick ribbon */
.ribbon-rec {
  position: absolute;
  top: 0;
  right: 0;
  width: 78px;
  height: 78px;
  pointer-events: none;
  z-index: 2;
}

/* ---------------- Technical articles section (底部技术性文章) ---------------- */
.articles-section {
  margin-top: 10px;
  background: #ffffff;
  border-radius: 10px;
  padding: 22px 24px;
  border: 1px solid #e6ebf1;
}
.art-cat-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.art-cat-chip {
  display: inline-block;
  padding: 4px 12px;
  font-size: 12.5px;
  background: #f2f4f8;
  color: #4b5563;
  border-radius: 14px;
  text-decoration: none !important;
  transition: all .15s;
}
.art-cat-chip:hover, .art-cat-chip.active {
  background: #ef233c;
  color: #ffffff;
}
.articles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.article-card {
  display: flex;
  flex-direction: column;
  background: #f9fbfd;
  border: 1px solid #e5eaf2;
  border-radius: 8px;
  overflow: hidden;
  transition: transform .18s, box-shadow .18s;
}
.article-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,.08);
}
.art-cover {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #0b2545;
}
.art-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
}
.article-card:hover .art-cover img { transform: scale(1.04); }
.art-cat-badge {
  position: absolute;
  left: 10px;
  top: 10px;
  background: rgba(239,35,60,.92);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 3px;
  letter-spacing: .5px;
}
.art-body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.art-title {
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.5;
  margin: 0 0 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.art-title a { color: #1a202c; }
.art-title a:hover { color: #0066cc; text-decoration: underline; }
.art-summary {
  font-size: 12px;
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.art-meta {
  margin-top: auto;
  font-size: 11.5px;
  color: #9aa3b2;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ---------------- Knowledge highlight box ---------------- */
.qa-box {
  margin-top: 18px;
  background: #f7f9fd;
  border: 1px dashed #c9d6ea;
  border-radius: 8px;
  padding: 14px 18px;
}
.qa-title { font-size: 13.5px; font-weight: 800; color: #1e3a8a; margin-bottom: 6px; }
.qa-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px 20px;
  font-size: 12.5px;
  padding-left: 1.1rem;
  margin: 0;
  color: #374151;
}

/* ---------------- Detail page: software ---------------- */
.detail-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 20px;
  padding: 20px 0 30px;
}
.detail-main {
  background: #ffffff;
  border: 1px solid #e6ebf1;
  border-radius: 10px;
  padding: 26px 28px;
}
.detail-header {
  display: flex;
  gap: 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid #e5e8ee;
  align-items: flex-start;
}
.detail-icon {
  width: 110px;
  height: 110px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0,0,0,.1);
  flex-shrink: 0;
}
.detail-icon img { width: 100%; height: 100%; object-fit: cover; }
.detail-title-block { flex: 1; }
.detail-title-block h1 {
  font-size: 22px;
  font-weight: 800;
  color: #1a202c;
  line-height: 1.35;
  margin-bottom: 8px;
}
.meta-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-top: 8px;
}
.meta-table td {
  padding: 4px 10px 4px 0;
  color: #374151;
  vertical-align: top;
}
.meta-table .k { color: #8a94a6; width: 88px; }
.meta-table a { color: #0066cc; }

/* Download CTA buttons */
.download-cta {
  margin-top: 18px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 24px;
  font-size: 14.5px;
  font-weight: 700;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  text-decoration: none !important;
  transition: all .18s;
}
.btn-primary {
  background: linear-gradient(135deg, #0070e0, #0056b3);
  color: #fff;
  box-shadow: 0 4px 12px rgba(0,102,204,.35);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #0056b3, #003f8a);
  transform: translateY(-1px);
}
.btn-danger {
  background: linear-gradient(135deg, #ef233c, #c9182b);
  color: #fff;
  box-shadow: 0 4px 12px rgba(239,35,60,.35);
}
.btn-danger:hover {
  background: linear-gradient(135deg, #c9182b, #9a1322);
}
.btn-secondary {
  background: #f2f4f8;
  color: #374151;
}
.btn-secondary:hover { background: #e5e8ee; }
.btn-sm { padding: 5px 12px; font-size: 12.5px; font-weight: 500; }

.detail-section {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid #e5e8ee;
}
.detail-section h2 {
  font-size: 17px;
  font-weight: 800;
  color: #1a202c;
  position: relative;
  padding-left: 12px;
  margin-bottom: 12px;
}
.detail-section h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  bottom: 3px;
  width: 4px;
  background: #ef233c;
  border-radius: 2px;
}
/* ==================== 独立双下载模块样式 ==================== */
.dl-module {
  background: #fbfcfe;
  border: 1px solid #dfe6f1;
  border-radius: 10px;
  padding: 20px 22px;
  margin-top: 24px;
}
.dl-module-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid #0066cc;
}
.dl-module-patch-header { border-bottom-color: #16a34a; }
.dl-module-header h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  color: #1a202c;
  display: flex;
  align-items: center;
  gap: 8px;
}
.dl-module-header .subnote { font-size: 12px; color: #8a94a6; }
.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  background: #0066cc;
  color: #fff;
  letter-spacing: .5px;
}
.badge.patch { background: #16a34a; }
.dl-package-card {
  background: #ffffff;
  border: 1px solid #e3e9f2;
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 12px;
  transition: box-shadow .15s;
}
.dl-package-card:last-child { margin-bottom: 0; }
.dl-package-card:hover { box-shadow: 0 4px 14px rgba(0,0,0,.06); }
.dl-package-card.patch-card { border-left: 4px solid #16a34a; }
.dl-package-card.patch-card:hover { border-color: #16a34a; box-shadow: 0 4px 14px rgba(22,163,74,.1); }
.dl-package-top {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.dl-pkg-num {
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  background: #eef5ff;
  color: #0066cc;
  white-space: nowrap;
}
.dl-pkg-num.patch { background: #edfbf2; color: #16a34a; }
.dl-pkg-meta { flex: 1; min-width: 240px; }
.dl-pkg-title {
  font-size: 14px;
  font-weight: 700;
  color: #1a202c;
  margin: 0 0 5px;
  line-height: 1.4;
}
.dl-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  font-size: 12px;
}
.dl-chip { display: inline-flex; align-items: center; font-weight: 600; }
.dl-chip.size { color: #d97706; }
.code-chip.pw { background: #fffbeb; color: #92400e; }
.dl-pkg-note {
  margin-top: 10px;
  font-size: 12.5px;
  color: #64748b;
  line-height: 1.7;
  background: #f8fafc;
  padding: 8px 12px;
  border-radius: 4px;
}
.mirrors-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.mirrors-table th {
  background: #f7f9fc;
  text-align: left;
  padding: 10px 12px;
  color: #6b7280;
  font-weight: 600;
  border-bottom: 1px solid #e5e8ee;
}
.mirrors-table td {
  padding: 11px 12px;
  border-bottom: 1px solid #f0f3f7;
}
.code-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: Consolas, monospace;
  background: #f3f6fb;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12.5px;
  color: #1e3a8a;
}
.code-chip button {
  background: none;
  border: none;
  color: #0066cc;
  cursor: pointer;
  font-size: 12px;
  padding: 0;
}
.code-chip button:hover { text-decoration: underline; }

.callout {
  background: #fff8e6;
  border-left: 4px solid #f59e0b;
  padding: 12px 16px;
  border-radius: 4px;
  font-size: 13px;
  color: #78350f;
  margin: 14px 0;
}
.callout.info {
  background: #eef6ff;
  border-left-color: #0066cc;
  color: #1e3a8a;
}
.callout.danger {
  background: #fee;
  border-left-color: #ef233c;
  color: #9a1322;
}
.steps { padding-left: 1.3rem; line-height: 1.9; font-size: 13.5px; }
.steps li { margin-bottom: 8px; }
.steps b, .steps strong { color: #1a202c; }

.req-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin: 12px 0;
}
.req-table th, .req-table td {
  border: 1px solid #e5e8ee;
  padding: 9px 12px;
  text-align: left;
}
.req-table th { background: #f7f9fc; color: #4b5563; }

/* ---------------- Detail sidebar ---------------- */
.detail-sidebar .side-box {
  background: #ffffff;
  border: 1px solid #e6ebf1;
  border-radius: 10px;
  padding: 18px 20px;
  margin-bottom: 16px;
}
.side-title {
  font-size: 15px;
  font-weight: 800;
  color: #1a202c;
  margin: 0 0 12px;
  position: relative;
  padding-left: 10px;
}
.side-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  bottom: 2px;
  width: 3px;
  background: #ef233c;
  border-radius: 2px;
}
.side-list { list-style: none; padding: 0; margin: 0; }
.side-list li {
  padding: 8px 0;
  border-bottom: 1px dashed #e5e8ee;
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.side-list li:last-child { border-bottom: none; }
.side-list li a { color: #374151; flex: 1; }
.side-list li a:hover { color: #ef233c; }
.side-list li .num {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #f2f4f8;
  color: #6b7280;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.side-list li:nth-child(1) .num { background: #ef233c; color: #fff; }
.side-list li:nth-child(2) .num { background: #f97316; color: #fff; }
.side-list li:nth-child(3) .num { background: #eab308; color: #fff; }
.side-list li .date { color: #9aa3b2; font-size: 11.5px; }

/* ---------------- Article detail ---------------- */
.article-detail {
  background: #ffffff;
  border: 1px solid #e6ebf1;
  border-radius: 10px;
  padding: 30px 34px;
}
.article-detail h1 {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.35;
  color: #1a202c;
}
.art-detail-meta {
  font-size: 12.5px;
  color: #8a94a6;
  padding: 10px 0 16px;
  border-bottom: 1px solid #e5e8ee;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.art-content {
  margin-top: 22px;
  font-size: 15px;
  line-height: 1.95;
  color: #24292f;
}
.art-content h2 {
  font-size: 19px;
  font-weight: 800;
  margin: 32px 0 14px;
  color: #0f172a;
  position: relative;
  padding-left: 12px;
}
.art-content h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  bottom: 3px;
  width: 4px;
  background: #ef233c;
  border-radius: 2px;
}
.art-content h3 { font-size: 16px; font-weight: 700; margin: 22px 0 10px; color: #0f172a; }
.art-content p { margin-bottom: 14px; }
.art-content code {
  font-family: Consolas, Monaco, monospace;
  background: #f1f4f9;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 13.5px;
  color: #b91c1c;
}
.art-content pre {
  background: #0f172a;
  color: #e2e8f0;
  padding: 14px 18px;
  border-radius: 8px;
  overflow-x: auto;
  font-size: 13px;
}
.art-content pre code { background: none; color: inherit; padding: 0; }
.art-tags {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid #e5e8ee;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  font-size: 13px;
  color: #8a94a6;
}
.art-tag {
  display: inline-block;
  padding: 3px 10px;
  background: #f2f4f8;
  border-radius: 12px;
  font-size: 12px;
  color: #4b5563;
}
.art-nav {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  font-size: 13px;
}
.art-nav a { display: block; padding: 10px 14px; background: #f7f9fc; border-radius: 6px; }
.art-nav a:hover { background: #eef2f8; text-decoration: none; }
.art-nav .label { color: #8a94a6; font-size: 11.5px; display: block; }

/* ---------------- Breadcrumb ---------------- */
.breadcrumb {
  padding: 14px 0 4px;
  font-size: 12.5px;
  color: #8a94a6;
}
.breadcrumb a { color: #6b7280; }
.breadcrumb a:hover { color: #ef233c; }
.breadcrumb span.sep { margin: 0 6px; color: #c4cdd8; }

/* ---------------- Comments ---------------- */
.comments-block { margin-top: 28px; }
.comment-form {
  background: #f9fbfd;
  border: 1px solid #e5eaf2;
  border-radius: 8px;
  padding: 16px 18px;
  margin-bottom: 20px;
}
.comment-form .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 10px;
}
.comment-form input, .comment-form textarea {
  width: 100%;
  border: 1px solid #d4d9e1;
  border-radius: 6px;
  padding: 9px 12px;
  font-size: 13px;
  font-family: inherit;
  outline: none;
}
.comment-form input:focus, .comment-form textarea:focus {
  border-color: #0066cc;
  box-shadow: 0 0 0 3px rgba(0,102,204,.12);
}
.comment-item {
  border-bottom: 1px dashed #e5e8ee;
  padding: 14px 0;
  font-size: 13px;
}
.comment-header {
  display: flex;
  justify-content: space-between;
  color: #8a94a6;
  font-size: 12px;
  margin-bottom: 6px;
}
.comment-author { font-weight: 700; color: #1a202c; }
.comment-body { color: #374151; line-height: 1.7; }

/* ---------------- Pagination ---------------- */
.pagination {
  display: flex;
  gap: 6px;
  justify-content: center;
  align-items: center;
  margin: 26px 0;
  font-size: 13px;
}
.pagination a, .pagination span {
  display: inline-flex;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  align-items: center;
  justify-content: center;
  border: 1px solid #d8dee8;
  border-radius: 6px;
  color: #374151;
  background: #fff;
  text-decoration: none !important;
}
.pagination a:hover { border-color: #0066cc; color: #0066cc; }
.pagination .current { background: #0066cc; color: #fff; border-color: #0066cc; font-weight: 700; }
.pagination .ellipsis { border: none; background: transparent; }

/* ---------------- Alerts / Flash ---------------- */
.alert {
  padding: 11px 16px;
  border-radius: 6px;
  font-size: 13.5px;
  margin: 14px 0;
}
.alert-success { background: #e8f7ee; color: #15803d; border: 1px solid #bbf0c8; }
.alert-danger { background: #fee; color: #b91c1c; border: 1px solid #fca5a5; }

/* ---------------- Footer ---------------- */
.site-footer {
  background: #24292f;
  color: #9aa3b2;
  font-size: 12.5px;
  margin-top: 40px;
  padding: 34px 0 20px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid #333a42;
}
.footer-col h4 {
  color: #ffffff;
  font-size: 14.5px;
  font-weight: 700;
  margin-bottom: 12px;
}
.footer-col p { line-height: 1.8; margin-bottom: 10px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin: 6px 0; }
.footer-links a { color: #9aa3b2; }
.footer-links a:hover { color: #ffffff; text-decoration: none; }
.footer-disclaimer {
  font-size: 11.5px;
  color: #838e9c;
  line-height: 1.9;
  padding: 16px 0;
  border-bottom: 1px solid #333a42;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 14px;
  font-size: 11.5px;
}
.footer-bottom a { color: #9aa3b2; }

/* ---------------- Floating tools ---------------- */
.floating-tools {
  position: fixed;
  right: 20px;
  bottom: 30px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 80;
}
.floating-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #d8dee8;
  box-shadow: 0 4px 14px rgba(0,0,0,.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #374151;
  font-size: 18px;
  text-decoration: none !important;
  transition: all .15s;
}
.floating-btn:hover { background: #0066cc; color: #fff; border-color: #0066cc; }

/* ---------------- Empty state ---------------- */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #e6ebf1;
  color: #8a94a6;
}
.empty-state h3 { color: #374151; margin-bottom: 6px; }

/* ---------------- Responsive ---------------- */
@media (max-width: 1080px) {
  .soft-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .detail-layout { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .site-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #ffffff;
    flex-direction: column;
    padding: 10px 16px 14px;
    border-bottom: 1px solid #e5e8ee;
    box-shadow: 0 8px 20px rgba(0,0,0,.08);
  }
  .site-nav.open { display: flex; }
  .nav-toggle { display: block; }
  .site-search { display: none; }
  .soft-grid { grid-template-columns: 1fr; }
  .articles-grid { grid-template-columns: 1fr; }
  .art-nav { grid-template-columns: 1fr; }
  .qa-list { grid-template-columns: 1fr; }
  .comment-form .row { grid-template-columns: 1fr; }
  .detail-header { flex-direction: column; align-items: center; text-align: center; }
  .detail-title-block h1 { font-size: 19px; }
  .meta-table .k { width: 72px; }
  .topic-title { font-size: 18px; }
  .platform-tabs a { padding: 8px 12px; font-size: 13px; }
}
