/* GEO 发文参考页 */

.publish-page {
  --pub-aside: 300px;
  background:
    radial-gradient(900px 420px at 12% -10%, rgba(79, 107, 255, 0.12), transparent 60%),
    radial-gradient(700px 360px at 90% 0%, rgba(45, 212, 191, 0.08), transparent 55%),
    #f6f8fc;
  min-height: 100vh;
}

.pub-hero {
  padding: calc(var(--nav-h, 64px) + 28px) 0 8px;
}

.pub-hero .breadcrumb {
  margin-bottom: 12px;
  font-size: 13px;
  color: var(--muted, #64748b);
}

.pub-hero .breadcrumb a { color: inherit; text-decoration: none; }
.pub-hero .breadcrumb a:hover { color: var(--primary, #4f6bff); }
.pub-hero .breadcrumb .sep { margin: 0 8px; opacity: 0.5; }
.pub-hero .breadcrumb .cur { color: var(--ink, #0f172a); }

.pub-kicker {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary, #4f6bff);
}

.pub-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 750;
  letter-spacing: -0.04em;
  color: var(--ink, #0f172a);
}

.pub-hero-desc {
  margin: 0 0 14px;
  max-width: 640px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted, #64748b);
}

.pub-disclaimer {
  max-width: 720px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(217, 119, 6, 0.28);
  background: rgba(255, 247, 237, 0.95);
  color: #9a3412;
  font-size: 13px;
  line-height: 1.55;
}

.pub-disclaimer strong { font-weight: 750; }
.pub-disclaimer b { font-weight: 700; }

.pub-workspace {
  padding: 20px 0 72px;
}

.pub-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--pub-aside);
  gap: 24px;
  align-items: start;
}

.pub-main {
  min-width: 0;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 20px;
  padding: 18px 18px 24px;
  backdrop-filter: blur(8px);
}

.pub-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.pub-cats button {
  appearance: none;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: #fff;
  color: var(--muted, #64748b);
  border-radius: 999px;
  padding: 8px 14px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.15s ease;
}

.pub-cats button:hover {
  border-color: rgba(79, 107, 255, 0.45);
  color: var(--ink, #0f172a);
}

.pub-cats button.active {
  background: var(--primary, #4f6bff);
  border-color: var(--primary, #4f6bff);
  color: #fff;
}

.pub-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
}

.pub-search {
  flex: 1;
  min-width: min(100%, 280px);
  display: flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 8px 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: #fff;
}

.pub-search:focus-within {
  border-color: rgba(79, 107, 255, 0.5);
  box-shadow: 0 0 0 3px rgba(79, 107, 255, 0.12);
}

.pub-search svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--muted, #64748b);
}

.pub-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  font: inherit;
  font-size: 14px;
  color: var(--ink, #0f172a);
}

.pub-filters {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}

.pub-filter-row {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.pub-filter-label {
  padding-top: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted, #64748b);
}

.pub-filter-opts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pub-filter-opts button {
  appearance: none;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #f8fafc;
  color: var(--muted, #64748b);
  border-radius: 8px;
  padding: 5px 10px;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  transition: 0.12s ease;
}

.pub-filter-opts button:hover {
  border-color: rgba(79, 107, 255, 0.35);
  color: var(--ink, #0f172a);
}

.pub-filter-opts button.active {
  background: rgba(79, 107, 255, 0.1);
  border-color: rgba(79, 107, 255, 0.45);
  color: var(--primary, #4f6bff);
  font-weight: 650;
}

.pub-hint {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--muted, #64748b);
}

.pub-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.pub-grid > .hint,
.pub-grid > .pub-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 48px 16px;
  text-align: center;
  color: var(--muted, #64748b);
  font-size: 14px;
}

.pub-grid .card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.pub-grid .card:hover {
  border-color: rgba(79, 107, 255, 0.3);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
  transform: translateY(-1px);
}

.pub-grid .card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.pub-grid .card .type {
  width: fit-content;
  padding: 2px 8px;
  border-radius: 6px;
  background: #eef3ff;
  color: #3d6bff;
  font-size: 11px;
  font-weight: 650;
}

.pub-grid .badge-ref {
  font-size: 11px;
  font-weight: 650;
  color: #b45309;
  background: #fff7ed;
  border: 1px solid rgba(217, 119, 6, 0.25);
  border-radius: 999px;
  padding: 2px 8px;
}

.pub-grid .card h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink, #0f172a);
}

.pub-grid .card > p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted, #64748b);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pub-grid .geo-tip {
  margin: 0;
  padding: 8px 10px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px dashed rgba(15, 23, 42, 0.1);
  font-size: 12px !important;
  line-height: 1.5 !important;
  color: #475569 !important;
  display: block !important;
  -webkit-line-clamp: unset !important;
  overflow: visible !important;
}

.pub-grid .card .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pub-grid .card .meta i {
  font-style: normal;
  font-size: 11px;
  padding: 3px 7px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
}

.pub-grid .card .foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 4px;
}

.pub-grid .card .id {
  font-size: 11px;
  color: #94a3b8;
  font-variant-numeric: tabular-nums;
}

.pub-grid .ref-label {
  font-size: 11px;
  font-weight: 650;
  color: #64748b;
  background: #f1f5f9;
  border-radius: 999px;
  padding: 4px 8px;
}

.pub-side {
  position: sticky;
  top: calc(var(--nav-h, 64px) + 16px);
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.pub-side-head h2 {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 700;
}

.pub-side-steps {
  margin: 0 0 16px;
  padding-left: 18px;
  color: var(--muted, #64748b);
  font-size: 13px;
  line-height: 1.6;
}

.pub-side-steps li + li { margin-top: 8px; }

.pub-side-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pub-side-links .btn {
  width: 100%;
  justify-content: center;
  text-align: center;
}

.pub-side-note {
  margin: 12px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: #94a3b8;
}

.pub-footer {
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  padding: 18px 0 28px;
  font-size: 12px;
  color: var(--muted, #64748b);
}

.pub-footer .container {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.pub-footer a {
  color: inherit;
  text-decoration: none;
}

.pub-footer a:hover { color: var(--primary, #4f6bff); }

@media (max-width: 1100px) {
  .pub-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .pub-layout { grid-template-columns: 1fr; }
  .pub-side { position: static; }
}

@media (max-width: 640px) {
  .pub-main { padding: 14px; border-radius: 16px; }
  .pub-filter-row { grid-template-columns: 1fr; gap: 6px; }
  .pub-grid { grid-template-columns: 1fr; }
  .pub-search { height: auto; flex-wrap: wrap; padding: 10px; }
  .pub-search .btn { width: 100%; }
}
