@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/css/all.min.css");

:root {
  --bg: #ffffff;
  --panel: #ffffff;
  --muted: #6b7280;
  --text: #1f2937;
  --line: #eceff3;
  --chip: #f2f2f2;
  --chip-active: #0f0f0f;
  --chip-active-text: #ffffff;
  --red: #ff0033;
  --shadow: 0 8px 24px rgba(17, 17, 17, 0.06);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.content {
  padding: 18px;
  width: 100%;
  max-width: none;
  margin: 0;
}
.content *::selection {
  background: rgba(255, 0, 51, 0.18);
}
.topbar {
  height: 56px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 10;
  backdrop-filter: saturate(180%) blur(10px);
}
.logo {
  display: flex;
  align-items: center;
  font-weight: 700;
  letter-spacing: 0.3px;
}
.logo img {
  height: 28px;
  width: auto;
  display: block;
  object-fit: contain;
}
.search {
  margin-left: auto;
  margin-right: auto;
  width: min(640px, 60vw);
  display: flex;
}
.search input {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--text);
  border-radius: 20px 0 0 20px;
  outline: none;
  font-size: 14px;
}
.search input::placeholder { color: #8a8a8a; }
.search input:focus {
  border-color: rgba(255, 0, 51, 0.45);
  box-shadow: 0 0 0 3px rgba(255, 0, 51, 0.12);
}
.search button {
  border: 1px solid var(--line);
  border-left: 0;
  background: #f8f8f8;
  color: var(--text);
  padding: 0 16px;
  border-radius: 0 20px 20px 0;
  cursor: pointer;
  font-size: 14px;
}
.search button:hover { background: #f3f3f3; }
.search button:active { background: #ededed; }
.layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: calc(100vh - 56px);
}
.sidebar {
  border-right: 1px solid var(--line);
  padding: 12px 8px;
}
.menu-item {
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--text);
  font-size: 14px;
  margin-bottom: 2px;
  display: block;
  text-decoration: none;
}
.menu-item:hover { background: #f2f2f2; }
.menu-featured {
  margin-top: 8px;
  padding: 12px;
  border-radius: 12px;
  background: var(--panel);
}
.menu-featured-title {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.2px;
}
.menu-featured-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.menu-featured-link {
  text-decoration: none;
  color: #3f3f46;
  font-size: 13px;
  line-height: 1.4;
  padding: 5px 8px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.menu-featured-link span {
  white-space: nowrap;
}
.menu-featured-icon {
  width: 14px;
  text-align: center;
  color: #6b7280;
  flex: 0 0 14px;
}
.menu-featured-link:hover {
  background: #f8f8f8;
  color: var(--text);
}
.menu-featured-empty {
  color: #71717a;
  font-size: 12px;
}
.chips {
  display: flex;
  gap: 8px;
  overflow: auto;
  padding-bottom: 12px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.chip {
  background: var(--chip);
  color: var(--text);
  text-decoration: none;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
  white-space: nowrap;
  border: 1px solid var(--line);
}
.chip.active {
  background: var(--chip-active);
  color: var(--chip-active-text);
  font-weight: 600;
  border-color: rgba(0, 0, 0, 0.1);
}
.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 14px;
}
.quick-links a {
  text-decoration: none;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 320px));
  gap: 16px;
}
.floor {
  margin-top: 22px;
  padding-top: 16px;

}
.floor:first-of-type {
  margin-top: 10px;
  border-top: 0;
  padding-top: 4px;
}
.floor-head {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 12px;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  border-bottom: 0.5px solid rgba(15, 23, 42, 0.08);
  padding-bottom: 8px;
}
.floor-title {
  margin: 0;
  font-size: 21px;
  font-weight: 720;
  line-height: 1.25;
  letter-spacing: 0.1px;
}
.floor-title-icon {
  margin-right: 8px;
  font-size: 1em;
  color: #6b7280;
}
.floor-sub {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.6;
  flex-basis: 100%;
  max-width: 72ch;
}
.floor-more {
  margin-left: auto;
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  margin-top: 0;
  margin-bottom: 0;
  padding: 0;
  line-height: 1;
}
.floor-more:hover {
  color: var(--accent);
}
.floor-head-split {
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px 16px;
}
.floor-head-main {
  min-width: 0;
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-end;
  gap: 12px;
}
.floor-head-main .floor-sub {
  flex-basis: auto;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.floor-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.card {
  background: transparent;
  border-radius: 12px;
  overflow: hidden;
}
.card-link {
  color: inherit;
  text-decoration: none;
}
.thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #e9e9e9;
  display: block;
  border-radius: 12px;
}
.meta {
  display: block;
  margin-top: 11px;
}
.avatar {
  display: none;
}
.title {
  margin: 0 0 6px 0;
  font-size: 15.5px;
  line-height: 1.45;
  font-weight: 680;
  letter-spacing: 0.1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-desc {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.62;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-tags {
  margin-top: 9px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.sub {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
  display: none;
}
.news-list {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.news-item {
  display: flex;
  flex-direction: column;
  padding: 16px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  text-decoration: none;
  color: inherit;
  min-height: 150px;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease;
}
.news-item:hover {
  background: #f8f8f8;
  box-shadow: var(--shadow);
  border-color: rgba(17, 17, 17, 0.12);
  transform: translateY(-1px);
}
.news-title {
  margin: 0 0 7px 0;
  font-size: 16.5px;
  line-height: 1.4;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.news-desc {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-meta {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.tag {
  font-size: 11.5px;
  padding: 2px 5px;
  border-radius: 1px;
  background: #f8fafc;
  color: #6b7280;
  border: 1px solid rgba(17, 24, 39, 0.07);
  white-space: nowrap;
  letter-spacing: 0.1px;
}
.news-item:hover .tag {
  background: #f3f6f9;
  border-color: rgba(17, 24, 39, 0.09);
}
.site-footer {
  margin-top: 28px;
  padding: 16px 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.site-footer a {
  color: inherit;
  text-decoration: none;
}
.site-footer a:hover {
  color: var(--text);
}
.page-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 16px 30px;
}
.page-wrap.full-width {
  max-width: none;
  margin: 0;
  width: 100%;
}
.page-title {
  margin: 0 0 10px;
  font-size: 26px;
  line-height: 1.3;
  color: var(--text);
}
.page-intro {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14px;
}
.list-block {
  display: grid;
  gap: 12px;
}
.list-item {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 10px;
  padding: 14px;
  text-decoration: none;
  color: inherit;
  display: block;
}
.list-item:hover {
  box-shadow: var(--shadow);
}
.list-item h3 {
  margin: 0 0 6px;
  font-size: 17px;
}
.list-item p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}
.pager-wrap {
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.pager-info {
  color: var(--muted);
  font-size: 13px;
}
.pager {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.pager-item {
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--text);
  background: #fff;
  font-size: 13px;
}
.pager-item:hover {
  border-color: rgba(16, 95, 255, .4);
  color: var(--accent);
}
.pager-item.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.pager-item.disabled {
  color: #9ca3af;
  background: #f3f4f6;
  border-color: #e5e7eb;
}
.detail-head {
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}
.detail-head .page-title {
  margin: 0;
  font-size: 30px;
  line-height: 1.35;
  letter-spacing: .2px;
}
.detail-meta {
  color: var(--muted);
  font-size: 13px;
  margin: 10px 0 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
}
.detail-body {
  color: var(--text);
  line-height: 1.95;
  font-size: 16px;
  word-break: break-word;
}
.news-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 20px;
  align-items: start;
}
.detail-body img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 14px auto;
  border-radius: 10px;
  border: 1px solid var(--line);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .04);
}
.detail-body p {
  margin: 0 0 14px;
}
.detail-body h1,
.detail-body h2,
.detail-body h3,
.detail-body h4,
.detail-body h5 {
  margin: 22px 0 10px;
  color: #0f172a;
  line-height: 1.45;
}
.detail-body h1 {
  font-size: 30px;
}
.detail-body h2 {
  font-size: 24px;
}
.detail-body h3 {
  font-size: 20px;
}
.detail-body h4 {
  font-size: 18px;
}
.detail-body h5 {
  font-size: 16px;
}
.detail-body ul,
.detail-body ol {
  margin: 0 0 14px 1.2em;
  padding: 0;
}
.detail-body ul {
  list-style: disc;
}
.detail-body ol {
  list-style: decimal;
}
.detail-body li {
  margin: 6px 0;
  line-height: 1.8;
}
.detail-body a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px dashed rgba(16, 95, 255, .35);
}
.detail-body a:hover {
  border-bottom-style: solid;
}
.detail-body blockquote {
  margin: 14px 0;
  padding: 10px 14px;
  border-left: 4px solid rgba(16, 95, 255, .45);
  background: rgba(16, 95, 255, .06);
  color: #2c3b57;
  border-radius: 6px;
}
.quick-links {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.news-side {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 12px;
  padding: 12px;
  position: sticky;
  top: 84px;
}
.news-side h3 {
  margin: 0 0 10px;
  font-size: 24px;
  line-height: 1.2;
}
.news-side-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 4px;
}
.news-side-list li a {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  text-decoration: none;
  color: inherit;
  font-size: 14px;
  border-radius: 8px;
  padding: 6px 8px;
}
.news-side-list li a:hover {
  background: var(--soft);
}
.news-side-list .rank {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 12px;
  color: #fff;
  background: linear-gradient(135deg, #ff6a00, #ff2d55);
  box-shadow: 0 6px 14px rgba(255, 45, 85, .22);
}
.news-side-list li:nth-child(n+4) .rank {
  background: linear-gradient(135deg, #6b7280, #374151);
  box-shadow: none;
}
.news-side-list .text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.news-side-list .row-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}
.news-side-list .hit {
  font-size: 13px;
  font-weight: 400;
  color: #4b5563;
  letter-spacing: .2px;
  white-space: nowrap;
}
.video-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
  align-items: start;
}
.video-reco {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  background: var(--panel);
}
.video-reco h2 {
  margin: 0 0 10px;
  font-size: 16px;
}
.video-reco-list {
  display: grid;
  gap: 10px;
}
.video-reco-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 8px;
  text-decoration: none;
  color: inherit;
}
.video-reco-item .thumb {
  border-radius: 8px;
}
.video-reco-item h3 {
  margin: 0 0 4px;
  font-size: 14px;
  line-height: 1.35;
}
.video-reco-item p {
  margin: 0;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.45;
}
@media (max-width: 1100px) {
  .news-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .video-detail-layout { grid-template-columns: 1fr; }
  .news-detail-layout { grid-template-columns: 1fr; }
  .news-side { position: static; }
}
@media (max-width: 640px) {
  .news-list { grid-template-columns: 1fr; }
  .news-meta { justify-items: start; }
}
@media (max-width: 1200px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .search { width: 100%; margin: 0; }
}
@media (max-width: 700px) {
  .grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
  .content { padding: 12px; }
}
