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

:root {
  --primary-color: #2563eb;
  --primary-dark: #1d4ed8;
  --secondary-color: #64748b;
  --accent-color: #f59e0b;
  --background: #f8fafc;
  --surface: #ffffff;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --border: #e2e8f0;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 1.25rem 0;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo h1 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: opacity 0.2s;
  opacity: 0.9;
}

.nav a:hover {
  opacity: 1;
}

.lang-switch {
  display: flex;
  gap: 0.25rem;
  background: rgba(255, 255, 255, 0.2);
  padding: 0.25rem;
  border-radius: 9999px;
}

.lang-switch a {
  padding: 0.375rem 0.875rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  transition: all 0.2s;
}

.lang-switch a.active {
  background: white;
  color: var(--primary-color);
}

.main {
  padding: 3rem 0;
  min-height: calc(100vh - 200px);
}

.hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 3rem;
  border-radius: 20px;
  margin-bottom: 3rem;
  box-shadow: var(--shadow-xl);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.3;
}

.hero h2 {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 2.5rem;
  color: white;
  letter-spacing: -0.03em;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 1;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  position: relative;
  z-index: 1;
}

.news-card {
  background: var(--surface);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

.news-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.news-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.news-card:hover::after {
  opacity: 1;
}

.news-image {
  height: 220px;
  overflow: hidden;
  background: var(--background);
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.news-card:hover .news-image img {
  transform: scale(1.05);
}

.placeholder-image {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.875rem;
  background: linear-gradient(135deg, var(--background) 0%, #e2e8f0 100%);
}

.news-content {
  padding: 1.5rem;
}

.news-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.news-content h3 a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.2s;
}

.news-content h3 a:hover {
  color: var(--primary-color);
}

.news-intro {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: var(--text-muted);
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}

.content-wrapper {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2.5rem;
}

.latest-news {
  background: var(--surface);
  padding: 2rem;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
}

.latest-news h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
  letter-spacing: -0.025em;
}

.news-list-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.news-card-list {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 1.5rem;
  padding: 1rem;
  background: var(--surface);
  border-radius: 12px;
  border: 1px solid var(--border);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.news-card-list:hover {
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

.news-card-list-image {
  height: 160px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--background);
}

.news-card-list-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.news-card-list:hover .news-card-list-image img {
  transform: scale(1.05);
}

.news-card-list-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0.5rem 0;
}

.news-card-list-content h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-list-content h3 a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.2s;
}

.news-card-list-content h3 a:hover {
  color: var(--primary-color);
}

.news-card-list-content .news-intro {
  margin-bottom: 1rem;
  -webkit-line-clamp: 3;
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.6;
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.news-meta .date {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.sidebar section {
  background: var(--surface);
  padding: 1.75rem;
  border-radius: 16px;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-md);
}

.sidebar h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: var(--primary-color);
  letter-spacing: -0.025em;
  border-bottom: 3px solid var(--primary-color);
  padding-bottom: 0.75rem;
}

.hot-list,
.category-list {
  list-style: none;
}

.hot-list li,
.category-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

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

.hot-list a,
.category-list a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9375rem;
  transition: all 0.2s;
  display: block;
  padding-left: 0.5rem;
  border-left: 3px solid transparent;
}

.hot-list a:hover,
.category-list a:hover {
  color: var(--primary-color);
  padding-left: 0.875rem;
  border-left-color: var(--primary-color);
}

.news-detail {
  background: var(--surface);
  padding: 3rem;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
}

.article-header {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 3px solid var(--border);
}

.article-header h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.article-meta {
  display: flex;
  gap: 2rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
  flex-wrap: wrap;
}

.article-content {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.article-content p {
  margin-bottom: 1.5rem;
}

.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 2rem 0;
  box-shadow: var(--shadow-lg);
}

.related-news {
  background: var(--surface);
  padding: 2rem;
  border-radius: 16px;
  margin-top: 2.5rem;
  box-shadow: var(--shadow-md);
}

.related-news h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: var(--primary-color);
}

.error-404 {
  text-align: center;
  padding: 5rem 2rem;
  background: var(--surface);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
}

.error-404 h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}

.error-404 p {
  margin-bottom: 2rem;
  color: var(--text-secondary);
  font-size: 1.125rem;
}

.error-404 a {
  display: inline-block;
  padding: 0.875rem 2.5rem;
  background: var(--primary-color);
  color: white;
  text-decoration: none;
  border-radius: 9999px;
  font-weight: 500;
  transition: all 0.3s;
  box-shadow: var(--shadow-md);
}

.error-404 a:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.no-news {
  text-align: center;
  padding: 3rem 2rem;
  color: var(--text-muted);
  font-size: 1.125rem;
  background: var(--background);
  border-radius: 12px;
  border: 2px dashed var(--border);
}

.footer {
  background: var(--text-primary);
  color: white;
  text-align: center;
  padding: 2.5rem 0;
  margin-top: 4rem;
}

.footer p {
  font-size: 0.9375rem;
  opacity: 0.8;
}

@media (max-width: 1024px) {
  .content-wrapper {
    grid-template-columns: 1fr;
  }

  .news-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
  }

  .hero {
    padding: 2rem;
  }

  .hero h2 {
    font-size: 1.875rem;
  }
}

@media (max-width: 768px) {
  .header .container {
    flex-direction: column;
    gap: 1rem;
  }

  .nav {
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .main {
    padding: 1.5rem 0;
  }

  .hero {
    padding: 1.5rem;
    border-radius: 16px;
  }

  .hero h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .news-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .news-card:hover {
    transform: translateY(-6px) scale(1.01);
  }

  .latest-news {
    padding: 1.5rem;
  }

  .news-card-list {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .news-card-list-image {
    height: 180px;
  }

  .article-header h1 {
    font-size: 1.75rem;
  }

  .article-content {
    font-size: 1rem;
  }

  .news-detail {
    padding: 1.5rem;
  }

  .article-meta {
    gap: 1rem;
  }
}

.pagination {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.pagination-info {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.pagination-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s;
  background: var(--surface);
}

.page-link:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  box-shadow: var(--shadow-sm);
}

.page-link.active {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}
