[hidden] {
  display: none !important;
}

.page-hero {
  position: relative;
  padding: 150px 0 64px;
  background: #06090e;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(40, 215, 240, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(40, 215, 240, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
}

.page-hero-inner {
  position: relative;
  z-index: 2;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 28px;
}

.breadcrumb a:hover {
  color: var(--cyan);
}

.breadcrumb em {
  color: var(--text);
  font-style: normal;
}

.page-hero h1 {
  font-size: 46px;
  line-height: 1.2;
  margin: 12px 0 14px;
}

.page-hero-desc {
  max-width: 640px;
  color: var(--muted);
  font-size: 15px;
}

.page-hero-small {
  padding: 122px 0 42px;
}

.page-section {
  padding: 64px 0 100px;
}

.news-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.news-search {
  position: relative;
  width: min(340px, 100%);
}

.news-search svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 17px;
  height: 17px;
  color: var(--muted);
  pointer-events: none;
}

.news-search input {
  width: 100%;
  height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #0a0f17;
  color: var(--text);
  padding: 0 16px 0 42px;
  font: inherit;
  font-size: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.news-search input:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(40, 215, 240, 0.12);
}

.news-search input::placeholder {
  color: #5d6c83;
}

.news-categories {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  overflow-x: auto;
  padding: 2px 2px 6px;
  scrollbar-width: thin;
}

.category-chip {
  flex: none;
  height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: var(--muted);
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.category-chip:hover {
  color: var(--cyan);
  border-color: var(--cyan);
}

.category-chip.active {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #031217;
  font-weight: 700;
}

.news-list-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
  font-size: 13px;
  border-top: 1px solid var(--line);
  padding: 14px 0 22px;
}

.news-page-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.news-page-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--panel);
  overflow: hidden;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.news-page-card:hover {
  transform: translateY(-4px);
  border-color: rgba(40, 215, 240, 0.55);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
}

.news-page-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0b1018;
  border-bottom: 1px solid var(--line);
}

.news-page-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.news-page-card:hover .news-page-thumb img {
  transform: scale(1.04);
}

.news-page-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px;
}

.news-page-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.news-page-date {
  font-family: var(--mono);
  color: var(--muted);
  font-size: 12px;
}

.news-page-body h3 {
  font-size: 18px;
  line-height: 1.5;
  margin: 14px 0 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-page-body > p {
  color: var(--muted);
  font-size: 13px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.read-more {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 700;
}

.read-more svg {
  width: 15px;
  height: 15px;
  transition: transform 0.2s;
}

.news-page-card:hover .read-more svg {
  transform: translateX(4px);
}

.empty-state {
  text-align: center;
  padding: 64px 24px;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
}

.empty-state a {
  color: var(--cyan);
  font-weight: 700;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 44px;
  flex-wrap: wrap;
}

.pagination button {
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: var(--muted);
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.pagination button:hover:not(:disabled):not(.active) {
  color: var(--cyan);
  border-color: var(--cyan);
}

.pagination button.active {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #031217;
  font-weight: 700;
}

.pagination button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.page-ellipsis {
  color: var(--muted);
  padding: 0 2px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 52px;
  align-items: start;
}

.detail-article {
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--panel);
  overflow: hidden;
}

.detail-cover {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0b1018;
  border-bottom: 1px solid var(--line);
}

.detail-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-article-content {
  padding: 40px;
}

.detail-article-meta {
  display: flex;
  align-items: center;
  gap: 14px;
}

.detail-article h1 {
  font-size: 34px;
  line-height: 1.4;
  margin: 16px 0 20px;
}

.detail-summary {
  color: #b9c6da;
  font-size: 16px;
  border-left: 3px solid var(--cyan);
  padding-left: 16px;
  margin-bottom: 30px;
}

.detail-body {
  display: block;
}

.detail-body p {
  color: #c6d2e4;
  font-size: 16px;
  margin: 0 0 18px;
}

.detail-body > :last-child {
  margin-bottom: 0;
}

.detail-body h1,
.detail-body h2,
.detail-body h3,
.detail-body h4,
.detail-body h5,
.detail-body h6 {
  color: var(--text);
  line-height: 1.4;
  margin: 10px 0 8px;
}

.detail-body h1 {
  font-size: 26px;
}

.detail-body h2 {
  font-size: 23px;
}

.detail-body h3 {
  font-size: 20px;
}

.detail-body img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 8px 0 2px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
}

.detail-body blockquote {
  margin: 6px 0;
  padding: 4px 0 4px 16px;
  border-left: 3px solid var(--cyan);
  color: var(--muted);
}

.detail-body ul,
.detail-body ol {
  padding-left: 24px;
  color: #c6d2e4;
}

.detail-body a {
  color: var(--cyan);
  text-decoration: underline;
}

.detail-body iframe,
.detail-body video {
  max-width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
}

.detail-source-row {
  display: flex;
  gap: 12px;
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.detail-aside {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.aside-block {
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--panel);
  padding: 22px;
}

.aside-block h2 {
  font-size: 20px;
  margin: 6px 0 16px;
}

.aside-news-list {
  display: flex;
  flex-direction: column;
}

.aside-news-item {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.aside-news-item:last-child {
  border-bottom: 0;
}

.aside-news-thumb {
  position: relative;
  width: 104px;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 5px;
  border: 1px solid var(--line);
  background: #0b1018;
  flex: none;
}

.aside-news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.aside-news-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.aside-news-info h4 {
  font-size: 13px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.aside-news-info time {
  font-family: var(--mono);
  color: var(--muted);
  font-size: 11px;
}

.aside-back {
  width: 100%;
}

.detail-not-found {
  text-align: center;
  padding: 80px 24px;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
}

.detail-not-found h2 {
  font-size: 28px;
  margin: 10px 0 12px;
}

.detail-not-found p {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 24px;
}

.news-more-btn {
  height: 42px;
  font-size: 14px;
}

.admin-page {
  min-height: 100vh;
}

.admin-login {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: #06090e;
  overflow: hidden;
}

.admin-login::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(40, 215, 240, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(40, 215, 240, 0.055) 1px, transparent 1px);
  background-size: 56px 56px;
}

.admin-login-card {
  position: relative;
  z-index: 2;
  width: min(430px, 100%);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--panel);
  padding: 38px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.admin-login-card > img {
  width: 142px;
  height: 52px;
  object-fit: contain;
  object-position: left center;
  margin-bottom: 22px;
}

.admin-login-card h1 {
  font-size: 27px;
  margin: 8px 0 10px;
}

.admin-login-tip {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 24px;
}

.admin-login-card form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.admin-login-card label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.admin-login-card input {
  width: 100%;
  height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #0a0f17;
  color: var(--text);
  padding: 0 14px;
  font: inherit;
  font-size: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.admin-login-card input:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(40, 215, 240, 0.12);
}

.login-error {
  min-height: 20px;
  color: var(--rose);
  font-size: 13px;
}

.admin-login-card .btn {
  width: 100%;
}

.admin-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 26px;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 7, 11, 0.92);
  backdrop-filter: blur(14px);
}

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

.admin-brand img {
  width: 104px;
  height: 38px;
  object-fit: contain;
  object-position: left center;
}

.admin-brand span {
  color: var(--muted);
  font-size: 13px;
  border-left: 1px solid var(--line-strong);
  padding-left: 12px;
  white-space: nowrap;
}

.admin-top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.admin-top-link,
.logout-btn {
  height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
  transition: color 0.2s, border-color 0.2s;
}

.admin-top-link:hover {
  color: var(--cyan);
  border-color: var(--cyan);
}

.logout-btn:hover {
  color: var(--rose);
  border-color: var(--rose);
}

.admin-main {
  flex: 1;
  width: min(1240px, 100%);
  margin: 0 auto;
  padding: 30px 26px 60px;
}

.admin-tabs {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}

.admin-tab {
  height: 40px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.admin-tab:hover {
  color: var(--cyan);
  border-color: var(--cyan);
}

.admin-tab.active {
  background: rgba(40, 215, 240, 0.1);
  border-color: rgba(40, 215, 240, 0.55);
  color: var(--cyan);
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}

.admin-stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 18px;
}

.admin-stat span {
  color: var(--muted);
  font-size: 13px;
}

.admin-stat strong {
  font-family: var(--mono);
  font-size: 30px;
  color: var(--cyan);
}

.admin-stat:nth-child(2) strong {
  color: var(--green);
}

.admin-stat:nth-child(3) strong {
  color: var(--amber);
}

.admin-stat:nth-child(4) strong {
  color: var(--rose);
}

.admin-panel {
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--panel);
  padding: 22px;
  width: auto;
  max-height: none;
  overflow: visible;
  display: block;
  flex: none;
}

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

.admin-panel-head h2 {
  font-size: 22px;
  margin-top: 4px;
}

.admin-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.admin-search {
  position: relative;
  flex: 1;
  min-width: 240px;
}

.admin-search svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--muted);
  pointer-events: none;
}

.admin-search input,
.admin-toolbar select {
  width: 100%;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #0a0f17;
  color: var(--text);
  padding: 0 12px 0 38px;
  font: inherit;
  font-size: 13px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.admin-toolbar select {
  width: auto;
  min-width: 150px;
  padding: 0 12px;
  cursor: pointer;
}

.admin-search input:focus,
.admin-toolbar select:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(40, 215, 240, 0.12);
}

.admin-table-header,
.admin-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) 110px 120px 150px;
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
}

.admin-table-header.case-header,
.admin-row.case-row {
  grid-template-columns: 120px minmax(0, 1fr) 110px 150px;
}

.admin-table-header.message-header,
.admin-row.message-row {
  grid-template-columns: 100px minmax(0, 1fr) 130px minmax(180px, 1.2fr) 150px 90px;
}

.admin-table-header {
  color: var(--muted);
  font-size: 12px;
  border-bottom: 1px solid var(--line-strong);
}

.admin-row {
  border-bottom: 1px solid var(--line);
  transition: background 0.2s;
}

.admin-row:hover {
  background: rgba(40, 215, 240, 0.03);
}

.admin-row-thumb {
  position: relative;
  width: 120px;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 5px;
  border: 1px solid var(--line);
  background: #0b1018;
  flex: none;
}

.admin-row-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-row-title-wrap {
  min-width: 0;
}

.admin-row-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.admin-row-summary {
  color: var(--muted);
  font-size: 12px;
  margin-top: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.admin-row-category {
  color: var(--amber);
  font-size: 12px;
}

.admin-row-date {
  font-family: var(--mono);
  color: var(--muted);
  font-size: 12px;
}

.message-contact {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.message-name {
  color: var(--text);
  font-size: 13px;
}

.message-contact strong {
  font-size: 13px;
  color: var(--text);
}

.message-contact span {
  color: var(--muted);
  font-size: 12px;
}

.message-content {
  color: #c6d2e4;
  font-size: 13px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.message-time {
  font-family: var(--mono);
  color: var(--muted);
  font-size: 12px;
}

.admin-row-actions {
  display: flex;
  gap: 8px;
}

.admin-edit-btn,
.admin-delete-btn {
  flex: 1;
  height: 32px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  font-size: 12px;
  color: var(--muted);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.admin-edit-btn:hover {
  color: var(--cyan);
  border-color: var(--cyan);
}

.admin-delete-btn:hover {
  color: var(--rose);
  border-color: var(--rose);
}

.admin-delete-btn.confirm {
  color: #fff;
  background: rgba(255, 94, 125, 0.18);
  border-color: var(--rose);
}

.admin-empty {
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  padding: 40px 16px;
}

.admin-editor-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(3, 5, 8, 0.86);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.admin-editor {
  width: min(780px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--panel);
  padding: 28px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  scrollbar-width: thin;
  scrollbar-color: rgba(40, 215, 240, 0.5) rgba(8, 12, 18, 0.88);
}

.admin-editor::-webkit-scrollbar {
  width: 8px;
}

.admin-editor::-webkit-scrollbar-track {
  background: rgba(8, 12, 18, 0.88);
  border-left: 1px solid rgba(160, 190, 230, 0.1);
  border-radius: 999px;
}

.admin-editor::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(40, 215, 240, 0.85), rgba(88, 230, 160, 0.65));
  border-radius: 999px;
  border: 2px solid rgba(8, 12, 18, 0.9);
}

.admin-editor::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #6ce8ff, #7df0b6);
}

.admin-editor header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 22px;
}

.admin-editor h2 {
  font-size: 22px;
}

.editor-close {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: color 0.2s, border-color 0.2s;
}

.editor-close:hover {
  color: var(--cyan);
  border-color: var(--cyan);
}

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

.editor-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.editor-field.full {
  grid-column: 1 / -1;
}

.editor-field label {
  color: var(--muted);
  font-size: 13px;
}

.editor-field input,
.editor-field textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #0a0f17;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  padding: 10px 12px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.editor-field input {
  height: 44px;
}

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

.editor-field input:focus,
.editor-field textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(40, 215, 240, 0.12);
}

.editor-field input::placeholder,
.editor-field textarea::placeholder {
  color: #5d6c83;
}

.editor-cover {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.editor-cover-preview {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px dashed var(--line-strong);
  border-radius: 6px;
  background: #0a0f17;
}

.editor-cover-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.editor-cover-controls {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.editor-cover-controls input[type="text"] {
  width: 100%;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #0a0f17;
  color: var(--text);
  padding: 0 12px;
  font: inherit;
  font-size: 13px;
}

.upload-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(40, 215, 240, 0.5);
  border-radius: 6px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}

.upload-btn:hover {
  background: rgba(40, 215, 240, 0.1);
}

.upload-hint {
  color: var(--muted);
  font-size: 12px;
}

.editor-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 4px;
}

.rich-editor-shell {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  overflow: hidden;
  background: #0a0f17;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.rich-editor-shell:focus-within {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(40, 215, 240, 0.1);
}

.rich-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 10px;
  border-bottom: 1px solid var(--line);
  background: #0c121b;
}

.rich-toolbar-group {
  display: flex;
  align-items: center;
  gap: 4px;
  padding-right: 8px;
  margin-right: 2px;
  border-right: 1px solid var(--line);
}

.rich-toolbar-group:last-of-type {
  border-right: 0;
  padding-right: 0;
  margin-right: 0;
}

.rich-btn {
  height: 34px;
  min-width: 34px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 5px;
  color: var(--muted);
  font-size: 12px;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.rich-btn:hover,
.rich-btn.active {
  color: var(--cyan);
  background: rgba(40, 215, 240, 0.08);
  border-color: rgba(40, 215, 240, 0.25);
}

.rich-btn svg {
  width: 16px;
  height: 16px;
}

.rich-block-btn {
  width: auto;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 700;
}

.rich-url-panel {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.rich-url-panel input {
  flex: 1;
  min-width: 0;
  height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: #0a0f17;
  color: var(--text);
  padding: 0 10px;
  font: inherit;
  font-size: 13px;
}

.rich-url-panel input:focus {
  outline: none;
  border-color: var(--cyan);
}

.rich-url-panel button {
  height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  color: var(--muted);
  font-size: 12px;
  transition: color 0.2s, border-color 0.2s;
}

.rich-url-panel button:hover {
  color: var(--cyan);
  border-color: var(--cyan);
}

.rich-url-panel .rich-url-insert {
  color: var(--cyan);
  border-color: rgba(40, 215, 240, 0.45);
  font-weight: 700;
}

.rich-editor {
  min-height: 280px;
  max-height: 420px;
  overflow-y: auto;
  padding: 16px;
  outline: none;
  line-height: 1.8;
  color: var(--text);
  font-size: 15px;
  scrollbar-width: thin;
  scrollbar-color: rgba(40, 215, 240, 0.55) rgba(8, 12, 18, 0.82);
}

.rich-editor::-webkit-scrollbar {
  width: 8px;
}

.rich-editor::-webkit-scrollbar-track {
  background: rgba(8, 12, 18, 0.82);
  border-radius: 999px;
}

.rich-editor::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(40, 215, 240, 0.88), rgba(88, 230, 160, 0.68));
  border-radius: 999px;
  border: 2px solid rgba(8, 12, 18, 0.92);
}

.rich-editor::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #6ce8ff, #7df0b6);
}

.rich-editor:empty::before {
  content: attr(data-placeholder);
  color: #5d6c83;
  pointer-events: none;
}

.rich-editor img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 10px 0;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
}

.rich-editor img.selected {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.rich-editor blockquote {
  margin: 10px 0;
  padding: 2px 0 2px 14px;
  border-left: 3px solid var(--cyan);
  color: var(--muted);
}

.rich-editor ul,
.rich-editor ol {
  padding-left: 24px;
}

.rich-editor a {
  color: var(--cyan);
  text-decoration: underline;
}

.rich-editor h1,
.rich-editor h2,
.rich-editor h3,
.rich-editor h4,
.rich-editor h5,
.rich-editor h6 {
  line-height: 1.4;
  margin: 8px 0;
}

.rich-source {
  width: 100%;
  min-height: 280px;
  max-height: 420px;
  border: 0;
  border-radius: 0;
  background: #080c12;
  color: #d7e4f7;
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 13px;
  line-height: 1.7;
  padding: 16px;
  resize: vertical;
  outline: none;
  scrollbar-width: thin;
  scrollbar-color: rgba(40, 215, 240, 0.55) rgba(8, 12, 18, 0.82);
}

.rich-source::-webkit-scrollbar {
  width: 8px;
}

.rich-source::-webkit-scrollbar-track {
  background: rgba(8, 12, 18, 0.82);
  border-radius: 999px;
}

.rich-source::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(40, 215, 240, 0.88), rgba(88, 230, 160, 0.68));
  border-radius: 999px;
  border: 2px solid rgba(8, 12, 18, 0.92);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 30px;
  z-index: 300;
  transform: translate(-50%, 18px);
  min-width: 220px;
  max-width: calc(100vw - 40px);
  text-align: center;
  padding: 12px 20px;
  border: 1px solid rgba(88, 230, 160, 0.45);
  border-radius: 6px;
  background: rgba(8, 20, 14, 0.95);
  color: #d8f7e7;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
}

.toast.show {
  opacity: 1;
  transform: none;
}

.toast.error {
  border-color: rgba(255, 94, 125, 0.5);
  background: rgba(28, 8, 14, 0.95);
  color: #ffd8e0;
}

@media (max-width: 1024px) {
  .news-page-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-layout {
    grid-template-columns: 1fr;
  }

  .admin-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .page-hero {
    padding: 120px 0 48px;
  }

  .page-hero h1 {
    font-size: 34px;
  }

  .page-section {
    padding: 48px 0 72px;
  }

  .news-filter-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .news-search {
    width: 100%;
  }

  .news-list-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .detail-article-content {
    padding: 26px;
  }

  .detail-article h1 {
    font-size: 27px;
  }

  .admin-topbar {
    height: auto;
    min-height: 64px;
    padding: 12px 16px;
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-top-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .admin-main {
    padding: 22px 16px 48px;
  }

  .admin-table-header {
    display: none;
  }

  .admin-row {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
  }

  .admin-row-thumb {
    width: 96px;
    grid-row: 1 / 3;
  }

  .admin-row-category,
  .admin-row-date {
    grid-column: 2;
  }

  .admin-row-actions {
    grid-column: 1 / -1;
  }

  .admin-row.message-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .admin-row.message-row .message-contact,
  .admin-row.message-row .message-content,
  .admin-row.message-row .message-time,
  .admin-row.message-row .admin-row-actions {
    grid-column: 1;
  }

  .editor-cover {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .news-page-grid {
    grid-template-columns: 1fr;
  }

  .admin-stats {
    grid-template-columns: 1fr 1fr;
  }

  .admin-panel {
    padding: 16px;
  }

  .admin-panel-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-editor {
    padding: 20px;
  }

  .editor-form {
    grid-template-columns: 1fr;
  }

  .editor-field.full,
  .editor-cover,
  .editor-actions {
    grid-column: 1;
  }

  .admin-login-card {
    padding: 28px;
  }
}

/* ============ 详情页骨架屏（数据加载占位，避免空白） ============ */
.detail-skeleton {
  padding: 6px 0 28px;
}
/* 数据加载中… 文字提示（渲染完成后随骨架一起移除） */
.detail-loading-tip {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #6B7280;
  font-size: 14px;
  margin-bottom: 20px;
}
.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(26, 27, 28, .14);
  border-top-color: #1A1B1C;
  border-radius: 50%;
  animation: spin .8s linear infinite;
  box-sizing: border-box;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
.sk {
  background: linear-gradient(90deg, #eceef1 25%, #f6f8fa 37%, #eceef1 63%);
  background-size: 400% 100%;
  animation: sk-shimmer 1.4s ease infinite;
  border-radius: 6px;
}
@keyframes sk-shimmer {
  0% { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}
.sk-meta { width: 150px; height: 24px; margin-bottom: 18px; }
.sk-title { width: 76%; height: 34px; margin-bottom: 12px; }
.sk-title.short { width: 44%; }
.sk-summary { width: 92%; height: 20px; margin: 18px 0; }
.sk-para { width: 100%; height: 15px; margin-bottom: 10px; }
.sk-para.short { width: 62%; }
.sk-aside { width: 100%; height: 46px; margin-bottom: 12px; }

/* 内容加载完成后淡入，不生硬 */
.detail-article.detail-in {
  animation: detail-in .45s ease both;
}
@keyframes detail-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
