#view-news {
  background: #050505;
}
#view-news .page-hero {
  padding: 160px 48px 60px;
  text-align: center;
  position: relative;
  z-index: 1;
  background: #050505;
}
#view-news .page-hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
#view-news .page-hero p {
  font-size: 17px;
  color: var(--fg-muted);
  max-width: 500px;
  margin: 0 auto;
}
#view-news .filter-tabs {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 60px;
  padding: 0 48px;
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
}
#view-news .filter-tab {
  padding: 12px 28px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--fg-muted);
  font-size: 15px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.3s;
}
#view-news .filter-tab:hover { border-color: rgba(64, 128, 240, 0.3); color: var(--fg-primary); }
#view-news .filter-tab.active {
  background: linear-gradient(135deg, #4080f0 0%, #8B5CF6 100%);
  border-color: transparent;
  color: var(--bg-dark);
  font-weight: 600;
}
#view-news .content-section {
  position: relative;
  z-index: 1;
  background: #050505;
}
#view-news .news-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px 80px;
}
#view-news .search-bar {
  margin-bottom: 48px;
}
#view-news .search-wrapper {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
}
#view-news .search-icon {
  position: absolute;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--fg-muted);
  pointer-events: none;
}
#view-news .search-icon svg { width: 20px; height: 20px; }
#view-news .search-input {
  width: 100%;
  padding: 20px 24px 20px 60px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 16px;
  color: var(--fg-primary);
  font-size: 15px;
  font-family: inherit;
  transition: all 0.3s;
  outline: none;
}
#view-news .search-input:focus {
  border-color: var(--accent);
  background: rgba(64, 128, 240, 0.05);
}
#view-news .search-input::placeholder { color: var(--fg-muted); }
#view-news .search-clear {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  color: var(--fg-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}
#view-news .search-clear:hover { background: rgba(255, 255, 255, 0.2); color: var(--fg-primary); }
#view-news .search-clear svg { width: 16px; height: 16px; }
#view-news .news-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
#view-news .news-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  cursor: pointer;
}
#view-news .news-image {
  width: 80%;
  border-radius: 8px;
  overflow: hidden;
}
#view-news .news-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}
#view-news .news-content {
  width: 80%;
  display: flex;
  flex-direction: column;
}
#view-news .news-text {
  flex: 1;
}
#view-news .news-category,
#view-news .news-desc {
  display: none;
}
#view-news .news-title {
  width: 100%;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  text-align: left;
  word-wrap: break-word;
  word-break: break-all;
  line-height: 1.5;
  min-height: 42px;
}
#view-news .news-btn {
  padding: 6px 20px;
  background: linear-gradient(135deg, #4a8fe7 0%, #3570d4 100%);
  color: #ffffff;
  border: none;
  border-radius: 20px;
  font-size: 10px;
  cursor: pointer;
  transition: all 0.3s;
  align-self: flex-start;
  margin-top: auto;
  margin-bottom: 8px;
  box-shadow: 0 2px 8px rgba(74, 143, 231, 0.3);
}
#view-news .news-btn:hover {
  background: linear-gradient(135deg, #5a9ff7 0%, #4a80e4 100%);
  box-shadow: 0 4px 12px rgba(74, 143, 231, 0.5);
  transform: translateY(-1px);
}
#view-news .timeline-section {
  min-height: 100vh;
  padding: 100px 48px 140px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}
#view-news .timeline-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 300px;
  background: radial-gradient(ellipse 60% 40% at 50% 0%, rgba(64, 128, 240, 0.05), transparent);
  pointer-events: none;
}
#view-news .timeline-header {
  text-align: center;
  margin-bottom: 70px;
  position: relative;
}
#view-news .timeline-title {
  font-size: 36px;
  font-weight: 400;
  color: var(--fg-primary);
  letter-spacing: 10px;
  margin-bottom: 12px;
}
#view-news .timeline-subtitle {
  font-size: 12px;
  color: var(--fg-muted);
  letter-spacing: 6px;
  text-transform: uppercase;
}
#view-news .timeline-grid {
  position: relative;
  padding: 20px 0;
}
#view-news .timeline-grid::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom,
    transparent 0%,
    var(--accent) 5%,
    var(--accent) 95%,
    transparent 100%);
  transform: translateX(-50%);
  border-radius: 2px;
}
#view-news .timeline-item {
  position: relative;
  width: calc(50% - 40px);
  padding: 0;
  opacity: 0;
  transform: translateX(-30px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  margin-bottom: 40px;
}
#view-news .timeline-item.active {
  opacity: 1;
  transform: translateX(0);
}
#view-news .timeline-item:nth-child(odd) {
  margin-left: 0;
  margin-right: auto;
}
#view-news .timeline-item:nth-child(odd) .timeline-card {
  text-align: right;
}
#view-news .timeline-item:nth-child(odd) .timeline-year-title {
  justify-content: flex-end;
}
#view-news .timeline-item:nth-child(even) {
  margin-left: auto;
  margin-right: 0;
  transform: translateX(30px);
}
#view-news .timeline-item:nth-child(even).active {
  transform: translateX(0);
}
#view-news .timeline-item::after {
  content: '';
  position: absolute;
  top: 20px;
  width: 12px;
  height: 12px;
  background: var(--accent);
  border: 3px solid var(--bg-dark);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(64, 128, 240, 0.3);
  transition: all 0.3s ease;
}
#view-news .timeline-item:nth-child(odd)::after {
  right: -34px;
}
#view-news .timeline-item:nth-child(even)::after {
  left: -34px;
}
#view-news .timeline-item:hover::after {
  box-shadow: 0 0 0 5px rgba(64, 128, 240, 0.4), 0 0 20px rgba(64, 128, 240, 0.5);
  transform: scale(1.2);
}
#view-news .timeline-item:last-child {
  margin-bottom: 0;
}
#view-news .timeline-card {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 20px 24px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
#view-news .timeline-item:hover .timeline-card {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(64, 128, 240, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}
#view-news .timeline-year-title {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 10px;
}
#view-news .timeline-year {
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 1px;
  margin: 0;
}
#view-news .timeline-title-text {
  font-size: 15px;
  font-weight: 600;
  color: var(--fg-primary);
  letter-spacing: 0.5px;
  margin: 0;
}
#view-news .timeline-content p {
  font-size: 15px;
  color: var(--fg-secondary);
  line-height: 1.85;
  margin: 0;
}
#view-news .story-section {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg-dark) 0%, #0a0a0a 50%, var(--bg-dark) 100%);
}
#view-news .story-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}
#view-news .story-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}
#view-news .story-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
#view-news .story-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
}
#view-news .story-content {
  position: relative;
  z-index: 3;
  max-width: 1000px;
  margin: 0 auto;
  padding: 100px 48px 140px;
}
#view-news .story-header {
  text-align: center;
  margin-bottom: 70px;
}
#view-news .story-title {
  font-size: 36px;
  font-weight: 400;
  color: var(--fg-primary);
  letter-spacing: 10px;
  margin-bottom: 12px;
}
#view-news .story-subtitle {
  font-size: 12px;
  color: var(--fg-muted);
  letter-spacing: 6px;
  text-transform: uppercase;
}
#view-news .story-text {
  color: #FFFFFF;
}
/* 统一自动换行和回车换行的行间距，与 admin 编辑器一致，使用 line-height 控制 */
#view-news .story-text p {
  margin: 0;
}
#view-news .story-text h1,
#view-news .story-text h2,
#view-news .story-text h3,
#view-news .story-text h4,
#view-news .story-text h5 {
  margin: 24px 0 16px;
  font-weight: 600;
}
#view-news .story-text ul,
#view-news .story-text ol {
  margin: 0 0 16px;
  padding-left: 24px;
}
#view-news .story-text li {
  margin-bottom: 4px;
}
#view-news .story-text blockquote {
  margin: 0 0 16px;
  padding: 12px 20px;
  border-left: 3px solid var(--accent);
  background: rgba(255, 255, 255, 0.03);
}
#view-news .story-text pre {
  margin: 0 0 16px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  overflow-x: auto;
}
#view-news .story-text hr {
  margin: 16px 0;
  border: none;
  border-top: 1px solid var(--border);
}
#view-news .story-text img {
  max-width: 100%;
  height: auto;
  display: block;
}
#view-news .story-text a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.3s;
}
#view-news .story-text a:hover {
  text-decoration: underline;
}
#view-news .story-text table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 16px;
}
#view-news .story-text th,
#view-news .story-text td {
  border: 1px solid var(--border);
  padding: 8px 12px;
}
#view-news .story-text th {
  background: rgba(255, 255, 255, 0.05);
}
#view-news .story-text code {
  font-family: 'Consolas', 'Monaco', monospace;
}
#view-news .pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
}
#view-news .pagination-btn {
  min-width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--fg-muted);
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}
#view-news .pagination-btn:hover:not(:disabled) { border-color: var(--accent); color: var(--fg-primary); }
#view-news .pagination-btn.active { background: var(--accent); border-color: var(--accent); color: var(--bg-dark); }
#view-news .pagination-btn:disabled { opacity: 0.3; cursor: not-allowed; }
#view-news .pagination-btn svg { width: 18px; height: 18px; }
@media (max-width: 1024px) {
  #view-news .page-hero { padding: 120px 24px 48px; }
  #view-news .filter-tabs { padding: 0 24px; gap: 10px; }
  #view-news .filter-tab { padding: 11px 24px; font-size: 14px; }
  #view-news .news-section { padding: 0 24px 80px; }
  #view-news .search-bar { margin-bottom: 32px; }
  #view-news .search-input { padding: 16px 20px 16px 52px; font-size: 14px; }
  #view-news .search-icon { left: 18px; }
  #view-news .search-icon svg { width: 18px; height: 18px; }
  #view-news .news-list { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  #view-news .news-image { width: 85%; }
  #view-news .timeline-section { padding: 60px 16px 80px; }
  #view-news .timeline-header { margin-bottom: 40px; }
  #view-news .timeline-title { font-size: 28px; letter-spacing: 6px; }
  #view-news .timeline-subtitle { font-size: 10px; letter-spacing: 4px; }
  #view-news .timeline-grid::before {
    left: 20px;
  }
  #view-news .timeline-item {
    width: calc(100% - 40px) !important;
    margin-left: 40px !important;
    margin-right: 0 !important;
    transform: translateX(-20px);
  }
  #view-news .timeline-item.active {
    transform: translateX(0);
  }
  #view-news .timeline-item::after {
    left: -30px !important;
    right: auto !important;
    width: 12px;
    height: 12px;
  }
  #view-news .timeline-item:nth-child(odd) .timeline-card {
    text-align: left !important;
  }
  #view-news .timeline-item:nth-child(odd) .timeline-year-title {
    justify-content: flex-start !important;
  }
  #view-news .timeline-card {
    padding: 20px 24px;
  }
  #view-news .timeline-year-title {
    gap: 10px;
    margin-bottom: 10px;
  }
  #view-news .timeline-year {
    font-size: 17px;
  }
  #view-news .timeline-title-text {
    font-size: 14px;
  }
  #view-news .timeline-content p {
    font-size: 13px;
    line-height: 1.8;
  }
  #view-news .story-content { padding: 100px 24px 140px; }
  #view-news .story-header { margin-bottom: 70px; }
  #view-news .story-title { font-size: 28px; letter-spacing: 8px; }
  #view-news .story-subtitle { font-size: 10px; letter-spacing: 4px; }
}
@media (max-width: 768px) {
  #view-news .page-hero { padding: 90px 16px 36px; }
  #view-news .page-hero h1 { font-size: 36px; }
  #view-news .page-hero p { font-size: 16px; }
  #view-news .filter-tabs { padding: 0 16px; gap: 8px; margin-bottom: 40px; }
  #view-news .filter-tab { padding: 10px 18px; font-size: 14px; border-radius: 80px; }
  #view-news .news-section { padding: 50px 16px 60px; }
  #view-news .search-bar { margin-bottom: 24px; }
  #view-news .search-wrapper { max-width: 100%; }
  #view-news .search-input { padding: 14px 16px 14px 48px; font-size: 14px; border-radius: 12px; }
  #view-news .search-icon { left: 16px; }
  #view-news .search-clear { right: 12px; width: 28px; height: 28px; }
  #view-news .news-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
  }
  #view-news .news-item {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 16px;
  }
  #view-news .news-image {
    flex-shrink: 0;
    width: 120px;
    height: 160px;
    border-radius: 8px;
    overflow: hidden;
  }
  #view-news .news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  #view-news .news-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 160px;
  }
  #view-news .news-text {
    flex: 1;
  }
  #view-news .news-category {
    display: inline-block;
    font-family: 'Microsoft YaHei', '微软雅黑', sans-serif;
    font-size: 8px;
    color: #4a8fe7;
    background: rgba(74, 143, 231, 0.1);
    padding: 3px 10px;
    border-radius: 100px;
    margin-bottom: 6px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
  #view-news .news-title {
    font-family: 'Microsoft YaHei', '微软雅黑', sans-serif;
    font-size: 11px;
    font-weight: 400;
    color: #ffffff;
    margin-bottom: 6px;
    line-height: 1.4;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
  #view-news .news-desc {
    font-family: 'Microsoft YaHei', '微软雅黑', sans-serif;
    font-size: 7.8px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
  #view-news .news-btn {
    padding: 5px 18px;
    background: linear-gradient(135deg, #4a8fe7 0%, #3570d4 100%);
    color: #ffffff;
    border: none;
    border-radius: 18px;
    font-family: 'Microsoft YaHei', '微软雅黑', sans-serif;
    font-size: 8px;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.3s;
    align-self: flex-start;
    margin-top: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    box-shadow: 0 2px 6px rgba(74, 143, 231, 0.3);
  }
  #view-news .news-btn:hover {
    background: linear-gradient(135deg, #5a9ff7 0%, #4a80e4 100%);
    box-shadow: 0 3px 10px rgba(74, 143, 231, 0.5);
  }
  #view-news .pagination { gap: 6px; margin-top: 36px; }
  #view-news .pagination-btn { min-width: 40px; height: 40px; font-size: 12px; border-radius: 10px; }
  #view-news .timeline-section { padding: 60px 20px 80px; min-height: auto; }
  #view-news .timeline-section::before {
    height: 300px;
    background: radial-gradient(ellipse 100% 50% at 50% 0%, rgba(64, 128, 240, 0.08), transparent);
  }
  #view-news .timeline-header { margin-bottom: 50px; }
  #view-news .timeline-title {
    font-size: 28px;
    letter-spacing: 6px;
  }
  #view-news .timeline-subtitle {
    font-size: 10px;
    letter-spacing: 4px;
  }
  #view-news .timeline-grid::before {
    left: 16px;
  }
  #view-news .timeline-item {
    width: calc(100% - 36px) !important;
    margin-left: 36px !important;
    margin-right: 0 !important;
    transform: translateX(-15px);
  }
  #view-news .timeline-item.active {
    transform: translateX(0);
  }
  #view-news .timeline-item::after {
    left: -26px !important;
    right: auto !important;
    width: 10px;
    height: 10px;
  }
  #view-news .timeline-item:nth-child(odd) .timeline-card {
    text-align: left !important;
  }
  #view-news .timeline-item:nth-child(odd) .timeline-year-title {
    justify-content: flex-start !important;
  }
  #view-news .timeline-card {
    padding: 18px 20px;
  }
  #view-news .timeline-year-title {
    gap: 8px;
    margin-bottom: 8px;
  }
  #view-news .timeline-year {
    font-size: 16px;
  }
  #view-news .timeline-title-text {
    font-size: 13px;
  }
  #view-news .timeline-content p {
    font-size: 12px;
    line-height: 1.8;
  }
  #view-news .story-section { min-height: auto; }
  #view-news .story-content { padding: 60px 20px 80px; }
  #view-news .story-header { margin-bottom: 50px; }
  #view-news .story-title {
    font-size: 28px;
    letter-spacing: 6px;
  }
  #view-news .story-subtitle {
    font-size: 10px;
    letter-spacing: 4px;
  }
  #view-news .story-text img { display: block; }
}
