@charset "utf-8";
:root {
  --primary: #667eea;
  --primary-dark: #764ba2;
  --accent: #f093fb;
  --bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  --card-bg: rgba(255, 255, 255, 0.15);
  --card-solid: #ffffff;
  --text-dark: #1a1a2e;
  --text-light: #ffffff;
  --text-muted: #666666;
  --shadow-sm: 0 4px 16px rgba(102, 126, 234, 0.15);
  --shadow-md: 0 8px 32px rgba(102, 126, 234, 0.25);
  --shadow-lg: 0 16px 48px rgba(102, 126, 234, 0.35);
  --radius: 16px;
  --radius-sm: 8px;
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  background: linear-gradient(180deg, #f8f9ff 0%, #e8eeff 100%);
  min-height: 100vh;
  font-family: 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul, li {
  list-style: none;
}

/* ========== Header ========== */
.header {
  position: relative;
  width: 100%;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(102, 126, 234, 0.1);
  box-shadow: var(--shadow-sm);
}

.header-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: var(--bg-gradient);
  opacity: 0.05;
}

.top_header {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  position: relative;
  z-index: 1;
}

.top_header a#logo {
  display: flex;
  align-items: center;
}

.top_header a#logo img {
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.top_header a#logo:hover img {
  transform: scale(1.05);
  box-shadow: var(--shadow-md);
}

.logo-text {
  text-align: center;
}

.site-name {
  font-size: 24px;
  font-weight: 700;
  background: var(--bg-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ========== Navigation ========== */
.nav-warp {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(102, 126, 234, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  flex-wrap: wrap;
}

.nav-item {
  padding: 10px 24px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  background: transparent;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.nav-item::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 80%;
  height: 2px;
  background: var(--bg-gradient);
  transition: var(--transition);
}

.nav-item:hover,
.nav-item.active {
  color: var(--primary);
  background: rgba(102, 126, 234, 0.08);
}

.nav-item:hover::before,
.nav-item.active::before {
  transform: translateX(-50%) scaleX(1);
}

/* ========== Main Container ========== */
.main-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
}

/* ========== Breadcrumb ========== */
.breadcrumb {
  padding: 16px 0;
  font-size: 14px;
  color: var(--text-muted);
}

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

.breadcrumb a:hover {
  text-decoration: underline;
}

/* ========== Banner Section ========== */
.banner-section {
  margin-bottom: 40px;
}

.banner-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
}

.banner-main {
  position: relative;
  height: 400px;
  border-radius: var(--radius);
  background-size: cover;
  background-position: center;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 60%);
}

.banner-text {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 30px;
  color: #fff;
}

.banner-text h2 {
  font-size: 28px;
  margin-bottom: 12px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.banner-text p {
  font-size: 14px;
  opacity: 0.9;
}

.banner-side {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.banner-mini {
  flex: 1;
  border-radius: var(--radius);
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: var(--transition);
}

.banner-mini:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.banner-mini span {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ========== Section Header ========== */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid rgba(102, 126, 234, 0.1);
}

.gradient-text {
  font-size: 24px;
  font-weight: 700;
  background: var(--bg-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.gradient-text::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--bg-gradient);
  border-radius: 2px;
}

.more-link {
  color: var(--primary);
  font-size: 14px;
  font-weight: 500;
}

.more-link:hover {
  color: var(--primary-dark);
}

/* ========== Feature Section ========== */
.feature-section {
  margin-bottom: 48px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--card-solid);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.feature-card .card-image {
  height: 180px;
  background-size: cover;
  background-position: center;
}

.feature-card .card-content {
  padding: 20px;
}

.feature-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.feature-card p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.read-more {
  display: inline-block;
  padding: 8px 20px;
  background: var(--bg-gradient);
  color: #fff;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 500;
}

.read-more:hover {
  opacity: 0.9;
  transform: scale(1.05);
}

/* ========== Content Area ========== */
.content-area {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
}

.content-main {
  min-width: 0;
}

/* ========== Article List ========== */
.article-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.article-card {
  display: flex;
  gap: 24px;
  background: var(--card-solid);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.article-card:hover {
  transform: translateX(8px);
  box-shadow: var(--shadow-md);
}

.article-card .card-image {
  width: 280px;
  height: 200px;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}

.article-card .card-info {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.article-card .category {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(102, 126, 234, 0.1);
  color: var(--primary);
  border-radius: 50px;
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 12px;
  width: fit-content;
}

.article-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
  line-height: 1.4;
}

.article-card h3 a {
  color: var(--text-dark);
}

.article-card h3 a:hover {
  color: var(--primary);
}

.article-card p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card .card-meta {
  display: flex;
  gap: 20px;
  font-size: 13px;
  color: var(--text-muted);
}

/* ========== Right Sidebar ========== */
.right-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-card {
  background: var(--card-solid);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.sidebar-card .card-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(102, 126, 234, 0.15);
  position: relative;
}

.sidebar-card .card-title::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 50px;
  height: 2px;
  background: var(--bg-gradient);
}

.card-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.card-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: rgba(102, 126, 234, 0.03);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.card-item:hover {
  background: rgba(102, 126, 234, 0.08);
  transform: translateX(4px);
}

.card-item .badge {
  padding: 4px 10px;
  background: var(--bg-gradient);
  color: #fff;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 500;
  flex-shrink: 0;
}

.card-item .num {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-gradient);
  color: #fff;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.card-item .item-title {
  font-size: 14px;
  color: var(--text-dark);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-item {
  padding: 6px 14px;
  background: rgba(102, 126, 234, 0.08);
  color: var(--primary);
  border-radius: 50px;
  font-size: 13px;
  transition: var(--transition);
}

.tag-item:hover {
  background: var(--bg-gradient);
  color: #fff;
}

/* ========== Pagination ========== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.page-item {
  min-width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  background: var(--card-solid);
  border: 1px solid rgba(102, 126, 234, 0.2);
  border-radius: 50px;
  font-size: 14px;
  color: var(--text-dark);
  transition: var(--transition);
}

.page-item:hover {
  background: var(--bg-gradient);
  color: #fff;
  border-color: transparent;
}

.page-current {
  padding: 0 16px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-gradient);
  color: #fff;
  border-radius: 50px;
  font-weight: 500;
}

.no-data {
  text-align: center;
  padding: 60px;
  color: var(--text-muted);
  font-size: 16px;
}

/* ========== Article Detail ========== */
.article-detail {
  background: var(--card-solid);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 40px;
}

.article-header {
  padding: 32px;
  text-align: center;
  border-bottom: 1px solid rgba(102, 126, 234, 0.1);
}

.article-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--text-dark) 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.article-meta {
  display: flex;
  justify-content: center;
  gap: 24px;
  font-size: 14px;
  color: var(--text-muted);
}

.article-cover {
  height: 400px;
  background-size: cover;
  background-position: center;
}

.article-content {
  padding: 40px 32px;
  font-size: 16px;
  line-height: 1.8;
}

.article-content p {
  margin-bottom: 20px;
}

.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  margin: 20px 0;
}

.article-tags {
  padding: 24px 32px;
  border-top: 1px solid rgba(102, 126, 234, 0.1);
}

.article-tags strong {
  color: var(--text-dark);
  margin-right: 12px;
}

.article-tags a {
  display: inline-block;
  padding: 4px 12px;
  margin-left: 8px;
  background: rgba(102, 126, 234, 0.08);
  color: var(--primary);
  border-radius: 50px;
  font-size: 13px;
}

.article-nav {
  display: flex;
  justify-content: space-between;
  padding: 24px 32px;
  background: rgba(102, 126, 234, 0.03);
}

.prev-article, .next-article {
  max-width: 45%;
  font-size: 14px;
}

.prev-article a, .next-article a {
  color: var(--primary);
}

.prev-article a:hover, .next-article a:hover {
  text-decoration: underline;
}

/* ========== Related Articles ========== */
.related-articles {
  margin-bottom: 40px;
}

.related-articles .article-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.related-articles .article-card .card-image {
  width: 100%;
  height: 160px;
}

/* ========== Footer ========== */
.footer {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: #a0aec0;
  margin-top: 60px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.footer-col h4 {
  color: #fff;
  font-size: 18px;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 12px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--bg-gradient);
}

.footer-col p {
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 8px;
}

.footer-col a {
  display: block;
  font-size: 14px;
  margin-bottom: 10px;
  color: #a0aec0;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
}

.footer-bottom a {
  color: #a0aec0;
  margin: 0 8px;
}

.footer-bottom a:hover {
  color: var(--accent);
}

/* ========== 返回顶部 ========== */
.toTop {
  position: fixed;
  right: 30px;
  bottom: 100px;
  width: 50px;
  height: 50px;
  background: var(--bg-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
}

.toTop.visible {
  opacity: 1;
  visibility: visible;
}

.toTop:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* ========== Responsive ========== */
@media (max-width: 1024px) {
  .banner-grid {
    grid-template-columns: 1fr;
  }

  .banner-side {
    flex-direction: row;
  }

  .banner-mini {
    height: 150px;
  }

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

  .content-area {
    grid-template-columns: 1fr;
  }

  .right-sidebar {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .sidebar-card {
    flex: 1;
    min-width: 280px;
  }

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

@media (max-width: 768px) {
  .top_header {
    flex-direction: column;
    gap: 12px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .article-card {
    flex-direction: column;
  }

  .article-card .card-image {
    width: 100%;
    height: 200px;
  }

  .related-articles .article-list {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

  .article-title {
    font-size: 24px;
  }

  .article-meta {
    flex-wrap: wrap;
    gap: 12px;
  }
}