:root {
  --color-bg: #ffffff;
  --color-text: #353535;
  --color-heading: #131b25;
  --color-nav: #303030;
  --color-accent: #4285f4;
  --color-muted: #8a8f98;
  --color-line: #e9e9e9;
  --color-line-soft: #f0f1f3;
  --color-topic: #f1f1f1;
  --color-search: #f8f9fa;
  --color-green: #3db24b;
  --font-body: "PingFang SC", "Lantinghei SC", "Microsoft Yahei", "Hiragino Sans GB", "Microsoft Sans Serif", "WenQuanYi Micro Hei", Helvetica, sans-serif;
  --wrap: 1200px;
  --header-h: 76px;
  --topic-h: 40px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--color-accent); }
img { max-width: 100%; display: block; }
button, input, textarea { font-family: inherit; }

.wrap {
  width: min(var(--wrap), calc(100% - 32px));
  margin: 0 auto;
}

.site-header { background: #fff; }
.header-bar {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand { flex: 0 0 auto; }
.brand img { height: 36px; width: auto; }
.primary-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}
.primary-nav a {
  color: var(--color-nav);
  font-size: 16px;
  font-weight: 500;
  line-height: 20px;
  padding: 8px 10px;
}
.primary-nav a.active { color: var(--color-accent); }
.header-tools {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 16px;
}
.search-input {
  width: 168px;
  height: 32px;
  border: 0;
  background: var(--color-search);
  color: #000;
  font-size: 12px;
  padding: 0 12px;
  outline: none;
}
.write-btn {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 14px;
  background: var(--color-green);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
}
.write-btn:hover { color: #fff; background: #32a238; }

.topic-bar { background: var(--color-topic); }
.topic-nav {
  height: var(--topic-h);
  display: flex;
  align-items: center;
  gap: 36px;
  overflow-x: auto;
}
.topic-nav a {
  flex: 0 0 auto;
  color: var(--color-nav);
  font-size: 14px;
  line-height: 19px;
}
.topic-nav a.active { color: var(--color-accent); }

.resource-row {
  border-bottom: 1px solid var(--color-line);
  padding: 16px 0 13px;
}
.resource-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.resource-item {
  display: flex;
  gap: 12px;
  min-width: 0;
  color: var(--color-nav);
}
.resource-item:hover { color: var(--color-accent); }
.date-block {
  flex: 0 0 auto;
  width: 56px;
  min-height: 68px;
  padding: 7px 2px 6px;
  border-radius: 4px;
  text-align: center;
  line-height: 1.15;
  background: var(--date-bg, #e7f3ff);
  color: var(--date-color, #3b82f6);
}
.date-block strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
}
.date-block span {
  display: block;
  margin-top: 2px;
  font-size: 16px;
  font-weight: 700;
}
.date-block em {
  display: block;
  margin-top: 2px;
  font-style: normal;
  font-size: 11px;
  font-weight: 500;
}
.resource-item:hover .date-block { color: var(--date-color, #3b82f6); }
.resource-item p {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-content, .page-grid {
  display: grid;
  grid-template-columns: minmax(0, 840px) 306px;
  gap: 54px;
  justify-content: space-between;
  padding: 40px 0 28px;
}
.feature {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(220px, 0.9fr);
  gap: 24px;
  min-height: 355px;
}
#hero {
  position: relative;
  overflow: hidden;
  min-width: 0;
  min-height: 355px;
  height: 100%;
}
.hero-track {
  display: flex;
  width: 100%;
  height: 100%;
  min-height: 355px;
  transition: transform 0.6s ease;
}
.hero-slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  min-height: 355px;
  color: #fff;
  overflow: hidden;
}
.hero-slide .media,
.hero-slide .visual,
.hero-slide img {
  width: 100%;
  height: 100%;
  min-height: 355px;
  object-fit: cover;
}
.hero-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 32px;
  height: 48px;
  margin-top: -24px;
  border: 0;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.hero-prev { left: 0; }
.hero-next { right: 0; }
.hero-nav:hover { background: rgba(0, 0, 0, 0.55); color: #fff; }
.hero-dots {
  position: absolute;
  left: 20px;
  bottom: 12px;
  z-index: 2;
  display: flex;
  gap: 8px;
}
.hero-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
}
.hero-dots button.is-active {
  width: 18px;
  border-radius: 4px;
  background: #fff;
}
.hero {
  position: relative;
  display: block;
  height: 100%;
  min-height: 355px;
  color: #fff;
  overflow: hidden;
}
.media {
  display: block;
  position: relative;
  overflow: hidden;
}
.media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform 0.55s ease;
}
.media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.38) 48%, transparent 66%);
  transform: translateX(-130%);
  pointer-events: none;
}
.media:hover img,
.hero-slide:hover .media img {
  transform: scale(1.08);
}
.media:hover::after,
.hero-slide:hover .media::after {
  animation: media-sheen 0.7s ease;
}
@keyframes media-sheen {
  from { transform: translateX(-130%); }
  to { transform: translateX(130%); }
}
.hero .visual,
.hero .media,
.hero img {
  width: 100%;
  height: 100%;
  min-height: 355px;
  object-fit: cover;
}
.hero .visual {
  display: flex;
  align-items: flex-end;
  padding: 24px;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
}
.hero-title {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 48px 20px 36px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.72));
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.45;
}
.hero:hover .hero-title { color: #fff; }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 14px;
}
.section-head h2,
.block-title {
  margin: 0;
  color: var(--color-heading);
  font-size: 24px;
  font-weight: 600;
  line-height: 1;
}
.section-head a,
.more {
  color: var(--color-accent);
  font-size: 14px;
}
.picks { padding: 4px 4px 8px 18px; }
.picks-title {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 18px;
  font-size: 18px;
  line-height: 1;
}
.picks-mark { width: 16px; height: 16px; flex: 0 0 auto; }
.picks ol { list-style: none; margin: 0; padding: 0; }
.picks li { margin: 0 0 18px; }
.picks a {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #323a46;
  font-size: 14px;
  font-weight: 400;
  line-height: 26px;
}
.picks a span {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.picks a:hover,
.picks a:hover span { color: var(--color-accent); }
.picks i {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  margin-top: 3px;
  border-radius: 2px;
  background: #f6f6f6;
  color: #8b939e;
  box-shadow: inset 0 -1px 0 #bdc1c5;
  font-size: 12px;
  font-weight: 600;
  font-style: normal;
  line-height: 16px;
  text-align: center;
}
.picks li:nth-child(1) i { background: #ff962d; color: #fff; box-shadow: none; }
.picks li:nth-child(2) i { background: #3fba46; color: #fff; box-shadow: none; }

.module-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin-top: 32px;
  padding-top: 8px;
}
.module {
  min-width: 0;
  border: 1px solid var(--color-line-soft);
  padding: 14px 14px 8px;
}
.module .visual,
.module .media.cover {
  height: 132px;
  width: 100%;
  object-fit: cover;
  margin-bottom: 10px;
}
.module .visual {
  display: flex;
  align-items: flex-end;
  padding: 12px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}
.module ul { list-style: none; margin: 0; padding: 0; }
.module li { border-top: 1px solid var(--color-line-soft); }
.module li a {
  display: block;
  padding: 8px 0;
  color: var(--color-nav);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
}
.module li a:hover { color: var(--color-accent); }

.feed { margin-top: 28px; }
.feed-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--color-line-soft);
}
.feed-item h3 { margin: 0 0 8px; font-size: 18px; font-weight: 600; line-height: 1.45; }
.feed-item h3 a { color: var(--color-heading); }
.feed-item h3 a:hover { color: var(--color-accent); }
.feed-item p { margin: 0; color: var(--color-text); font-size: 14px; line-height: 1.7; }
.meta { margin-top: 8px; color: var(--color-muted); font-size: 12px; line-height: 1.4; }
.thumb, .thumb.visual, .media.thumb { width: 180px; height: 112px; object-fit: cover; }
.thumb.visual {
  display: flex;
  align-items: flex-end;
  padding: 8px;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}

.side-block { margin-bottom: 28px; }
.side-block ul { list-style: none; margin: 12px 0 0; padding: 0; }
.side-block li { border-bottom: 1px solid var(--color-line-soft); }
.side-block li a {
  display: block;
  padding: 8px 0;
  color: var(--color-nav);
  font-size: 14px;
  line-height: 1.5;
}
.side-block li a:hover { color: var(--color-accent); }

.event-board { margin-top: 8px; }
.event-banner {
  position: relative;
  display: block;
  height: 148px;
  margin-bottom: 16px;
  overflow: hidden;
  color: #fff;
  background: #1f6feb;
}
.event-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.event-banner span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 42px 14px 12px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.72));
  color: #fff;
}
.event-banner small {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
}
.event-banner b {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
}
.event-banner:hover span { color: #fff; }
.event-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  margin: 0 0 14px;
}
.event-row img,
.event-fallback {
  width: 96px;
  height: 68px;
  object-fit: cover;
  background: #e7f3ff;
}
.event-row strong {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: #131b25;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}
.event-row em {
  display: block;
  color: #8a8f98;
  font-size: 12px;
  font-style: normal;
  line-height: 1.45;
}
.event-row:hover strong { color: var(--color-accent); }

.ticker { margin-top: 8px; }
.ticker-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  min-width: 0;
}
.ticker-head i {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  border-radius: 4px;
  background: var(--color-accent);
}
.ticker-head strong {
  flex: 0 0 auto;
  color: var(--color-heading);
  font-size: 16px;
  font-weight: 600;
}
.ticker-head em {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  color: var(--color-muted);
  font-size: 13px;
  font-style: normal;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.ticker-head b {
  flex: 0 0 auto;
  color: #b0b4bb;
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
}
.ticker-head:hover strong { color: var(--color-accent); }
.ticker-window {
  height: 320px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(transparent, #000 12px, #000 calc(100% - 12px), transparent);
  mask-image: linear-gradient(transparent, #000 12px, #000 calc(100% - 12px), transparent);
}
.ticker-track { animation: ticker-up 28s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item {
  display: block;
  position: relative;
  padding: 0 0 18px 16px;
}
.ticker-item.is-lead { padding-left: 0; }
.ticker-item:not(.is-lead)::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
}
.ticker-item strong {
  display: block;
  color: #131b25;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}
.ticker-item em {
  display: block;
  margin-top: 4px;
  color: var(--color-muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.4;
}
.ticker-item:hover strong { color: var(--color-accent); }
@keyframes ticker-up {
  from { transform: translateY(0); }
  to { transform: translateY(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
}

.page-title {
  margin: 0 0 8px;
  color: var(--color-heading);
  font-size: 24px;
  font-weight: 600;
}
.lead { margin: 0 0 8px; color: var(--color-muted); font-size: 14px; }

.article-body { font-size: 16px; line-height: 1.9; color: var(--color-text); }
.article-body h2,
.article-body h3,
.article-body h4 { margin: 1.2em 0 0.5em; color: var(--color-heading); font-weight: 600; line-height: 1.4; }
.article-body h2 { font-size: 22px; }
.article-body h3 { font-size: 18px; }
.article-body h4 { font-size: 16px; }
.article-body p { margin: 0 0 16px; }
.article-body ul,
.article-body ol { margin: 0 0 16px; padding-left: 1.4em; }
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li { margin: 0.25em 0; }
.article-body a { color: var(--color-accent); }
.article-body img,
.article-body video { display: block; max-width: 100%; height: auto; margin: 0 0 16px; }
.article-body blockquote {
  margin: 0 0 16px;
  padding: 8px 14px;
  border-left: 3px solid var(--color-accent);
  background: var(--color-search);
  color: var(--color-nav);
}
.article-body table { width: 100%; border-collapse: collapse; margin: 0 0 16px; }
.article-body td,
.article-body th { border: 1px solid var(--color-line); padding: 6px 8px; text-align: left; vertical-align: top; }
.article-body pre { overflow: auto; margin: 0 0 16px; padding: 12px; background: var(--color-search); white-space: pre-wrap; }
.article-body strong,
.article-body b { font-weight: 700; }
.detail-head { margin-bottom: 18px; }
.detail-head h1 {
  margin: 0 0 10px;
  color: var(--color-heading);
  font-size: 28px;
  line-height: 1.4;
  font-weight: 600;
}
.detail-cover { margin: 0 0 18px; }
.detail-cover img,
.detail-cover .media,
.detail-cover .visual { width: 100%; height: 360px; object-fit: cover; }
.detail-cover .visual {
  display: flex;
  align-items: flex-end;
  padding: 20px;
  color: #fff;
  font-weight: 600;
}

.pager { display: flex; gap: 16px; padding: 18px 0 8px; font-size: 14px; }
.pager a { color: var(--color-accent); }
.pager span { color: var(--color-muted); }

.contact-list { margin: 12px 0 0; padding: 0; }
.contact-list div {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-line-soft);
}
.contact-list dt { color: var(--color-muted); font-size: 14px; }
.contact-list dd { margin: 0; color: var(--color-heading); }

.feedback-form { display: grid; gap: 12px; max-width: 640px; }
.feedback-form label { display: grid; gap: 6px; font-size: 14px; color: var(--color-nav); }
.feedback-form input,
.feedback-form textarea {
  border: 1px solid var(--color-line);
  background: #fff;
  color: var(--color-heading);
  font-size: 14px;
  padding: 8px 10px;
}
.feedback-form textarea { min-height: 140px; resize: vertical; }
.feedback-form button {
  justify-self: start;
  height: 36px;
  padding: 0 18px;
  border: 0;
  background: var(--color-green);
  color: #fff;
  font-size: 14px;
  cursor: pointer;
}
.form-note { min-height: 1.4em; font-size: 14px; color: var(--color-accent); }
.form-note.error { color: #d93025; }

.site-footer {
  border-top: 1px solid var(--color-line);
  padding: 28px 0 40px;
  color: var(--color-muted);
  font-size: 13px;
}
.friend-links { margin-bottom: 16px; color: var(--color-text); }
.friend-links a { color: var(--color-accent); margin-right: 16px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 8px; }
.footer-nav a { color: var(--color-nav); }
.footer-meta { display: flex; flex-direction: column; gap: 6px; margin: 12px 0 0; }
.footer-meta .icp { color: var(--color-muted); }

.empty { padding: 24px 0; color: var(--color-muted); }

@media (max-width: 980px) {
  .header-bar { height: auto; min-height: var(--header-h); flex-wrap: wrap; padding: 12px 0; gap: 8px 16px; }
  .header-tools { width: 100%; }
  .search-input { flex: 1; width: auto; }
  .home-content, .page-grid { grid-template-columns: 1fr; gap: 28px; }
  .feature, .module-row, .resource-list, .feed-item { grid-template-columns: 1fr; }
  .topic-nav { gap: 20px; }
  .thumb, .thumb.visual, .media.thumb { width: 100%; height: 160px; }
}
