@charset "utf-8";
:root {
  --primary: #6ec5ff;
  --accent: #ffb6d9;
  --secondary: #fff5cd;
  --bg-light: #f0f8ff;
  --bg-white: rgba(255,255,255,0.85);
  --text-dark: #333333;
  --text-muted: #666666;
  --text-light: #999999;
  --border-color: rgba(255,255,255,0.5);
  --glass: rgba(255,255,255,0.25);
  --glass-border: rgba(255,255,255,0.4);
  --shadow: 0 8px 32px rgba(110,197,255,0.2);
  --radius: 16px;
  --radius-sm: 8px;
}

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

html, body {
  background: linear-gradient(135deg, #e8f4fd 0%, #fce4ec 50%, #fff8e7 100%);
  font-family: -apple-system, 'Microsoft YaHei', BlinkMacSystemFont, sans-serif;
  color: var(--text-dark);
  line-height: 1.8;
}

a {
  text-decoration: none;
  color: inherit;
}

ul, li {
  list-style: none;
}

/* ========== Header ========== */
.header {
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo img {
  height: 40px;
  border-radius: var(--radius-sm);
}

.nav-bar {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav {
  display: flex;
  gap: 8px;
}

.nav li a {
  display: block;
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  background: var(--glass);
  border-radius: 20px;
  border: 1px solid transparent;
  transition: all 0.3s;
}

.nav li a:hover,
.nav li.active a {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ========== Main Wrapper ========== */
.main-wrapper {
  min-height: calc(100vh - 200px);
}

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

/* ========== Banner Section ========== */
.banner-section {
  position: relative;
  height: 450px;
  overflow: hidden;
}

.banner-wrapper {
  display: flex;
  height: 100%;
}

.banner-slide {
  flex: 0 0 100%;
  background-size: cover;
  background-position: center;
  position: relative;
}

.banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(110,197,255,0.3) 0%, rgba(255,182,217,0.3) 100%);
}

.banner-content {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  background: var(--glass);
  backdrop-filter: blur(10px);
  padding: 20px 40px;
  border-radius: var(--radius);
  border: 1px solid var(--glass-border);
}

.banner-cat {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: 2px;
}

.banner-content p {
  font-size: 16px;
  color: var(--text-dark);
  margin-top: 8px;
}

/* ========== Feature Section ========== */
.feature-section {
  padding: 50px 0;
}

.feature-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 30px;
}

.feature-banner {
  background: var(--glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.banner-carousel {
  display: flex;
  transition: transform 0.5s ease;
}

.banner-slide {
  flex: 0 0 100%;
  height: 320px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: flex-end;
}

.banner-info {
  padding: 24px;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  color: #fff;
  width: 100%;
}

.banner-cat {
  display: inline-block;
  padding: 4px 12px;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 12px;
  margin-bottom: 10px;
}

.banner-info h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
}

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

.feature-hot {
  background: var(--glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 24px;
}

.hot-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary);
}

.hot-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--border-color);
}

.hot-list li:last-child {
  border-bottom: none;
}

.hot-num {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  border-radius: 6px;
}

.hot-list li:nth-child(1) .hot-num { background: var(--primary); }
.hot-list li:nth-child(2) .hot-num { background: #ff9f43; }
.hot-list li:nth-child(3) .hot-num { background: #26de81; }

.hot-list a {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hot-list a:hover {
  color: var(--primary);
}

/* ========== Section Header ========== */
.section-header {
  text-align: center;
  margin-bottom: 30px;
}

.section-header h2 {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.section-header p {
  font-size: 12px;
  color: var(--text-light);
  letter-spacing: 4px;
}

/* ========== Showcase Section ========== */
.showcase-section {
  padding: 50px 0;
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.showcase-item {
  background: var(--glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s;
}

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

.showcase-thumb {
  display: block;
  height: 160px;
  background-size: cover;
  background-position: center;
}

.showcase-info {
  padding: 16px;
}

.showcase-cat {
  display: inline-block;
  padding: 3px 10px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 10px;
  margin-bottom: 10px;
}

.showcase-info h3 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
}

.showcase-info h3 a {
  color: var(--text-dark);
}

.showcase-info h3 a:hover {
  color: var(--primary);
}

.showcase-info p {
  font-size: 12px;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ========== Masonry Section ========== */
.masonry-section {
  padding: 50px 0;
}

.content-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 30px;
}

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

/* ========== Masonry Grid ========== */
.masonry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.masonry-card {
  background: var(--glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s;
}

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

.masonry-thumb {
  display: block;
  height: 180px;
  background-size: cover;
  background-position: center;
}

.masonry-body {
  padding: 20px;
}

.masonry-cat {
  display: inline-block;
  padding: 4px 12px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 12px;
  margin-bottom: 12px;
}

.masonry-body h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.4;
}

.masonry-body h3 a {
  color: var(--text-dark);
}

.masonry-body h3 a:hover {
  color: var(--primary);
}

.masonry-body p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.masonry-meta {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--text-light);
}

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

.sidebar-widget {
  background: var(--glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 20px;
}

.widget-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary);
  color: var(--text-dark);
}

.rank-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border-color);
}

.rank-list li:last-child {
  border-bottom: none;
}

.rank-num {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  border-radius: 6px;
}

.rank-list a {
  flex: 1;
  font-size: 13px;
  color: var(--text-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-list a:hover {
  color: var(--primary);
}

.recent-list li {
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--border-color);
}

.recent-list li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.recent-item {
  display: flex;
  gap: 12px;
  align-items: center;
}

.recent-thumb {
  flex: 0 0 60px;
  height: 60px;
  background-size: cover;
  background-position: center;
  border-radius: var(--radius-sm);
}

.recent-info {
  flex: 1;
  min-width: 0;
}

.recent-title {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.recent-item:hover .recent-title {
  color: var(--primary);
}

.recent-date {
  font-size: 12px;
  color: var(--text-light);
}

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

.tag-item {
  padding: 6px 14px;
  background: var(--bg-white);
  color: var(--text-dark);
  font-size: 12px;
  font-weight: 600;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  transition: all 0.3s;
}

.tag-item:hover {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  border-color: transparent;
}

/* ========== Tags Section ========== */
.tags-section {
  padding: 50px 0;
  background: var(--glass);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}

.tags-section .tags-cloud .tag-item {
  padding: 10px 20px;
  font-size: 14px;
}

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

.page-item {
  min-width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  transition: all 0.3s;
}

.page-item:hover {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  border-color: transparent;
}

.page-current {
  padding: 0 14px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-weight: 700;
  border-radius: 20px;
}

.no-data {
  text-align: center;
  padding: 80px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--glass);
  border-radius: var(--radius);
}

/* ========== Page Header ========== */
.page-header {
  background: var(--glass);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  padding: 50px 0;
}

.page-header .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.breadcrumb {
  margin-bottom: 16px;
}

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

.separator {
  margin: 0 10px;
  color: var(--text-light);
}

.page-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-dark);
}

/* ========== Article Content ========== */
.article-content {
  background: var(--glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 40px;
}

.article-body {
  font-size: 16px;
  line-height: 2;
  color: var(--text-dark);
}

.article-body p {
  margin-bottom: 24px;
}

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

.article-body h2,
.article-body h3,
.article-body h4 {
  margin: 32px 0 16px;
  font-weight: 700;
  color: var(--text-dark);
}

.article-body ul,
.article-body ol {
  margin: 16px 0;
  padding-left: 24px;
}

.article-body li {
  margin-bottom: 8px;
}

/* ========== Article Tags ========== */
.article-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
}

.tags-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
}

/* ========== Footer ========== */
.footer {
  background: var(--glass);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--glass-border);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 24px;
  text-align: center;
  font-size: 14px;
}

.footer-bottom a {
  color: var(--primary);
  margin: 0 10px;
}

.footer-bottom a:hover {
  text-decoration: underline;
}

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

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

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

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

@media (max-width: 768px) {
  .nav-bar {
    display: none;
  }

  .banner-section {
    height: 300px;
  }

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

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

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

  .article-content {
    padding: 24px;
  }
}
