:root {
  --primary: #E53935;
  --secondary: #1565C0;
  --accent: #FF9800;
  --background: #FAFAFA;
  --text: #212121;
  --text-light: #616161;
  --border: #E0E0E0;
  --gradient: linear-gradient(135deg, #E53935, #FF9800);
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.15);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Noto Sans SC", sans-serif;
  background-color: var(--background);
  color: var(--text);
  line-height: 1.6;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

header {
  background: linear-gradient(135deg, #E53935, #C62828);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: white;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: bold;
  color: var(--primary);
}

.logo-text {
  color: white;
  font-size: 24px;
  font-weight: 700;
}

.logo-text span {
  font-size: 14px;
  font-weight: 400;
  display: block;
}

nav {
  display: flex;
  gap: 30px;
}

nav a {
  color: white;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 20px;
  transition: all 0.3s ease;
}

nav a:hover {
  background: rgba(255, 255, 255, 0.2);
}

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

.search-bar {
  display: flex;
  align-items: center;
}

.search-input {
  padding: 8px 12px;
  border: none;
  border-radius: 20px 0 0 20px;
  outline: none;
  font-size: 14px;
  width: 200px;
}

.search-btn {
  padding: 8px 16px;
  background: #FF9800;
  border: none;
  border-radius: 0 20px 20px 0;
  color: white;
  cursor: pointer;
  transition: background 0.3s ease;
}

.search-btn:hover {
  background: #F57C00;
}

.hero {
  background: var(--gradient);
  padding: 60px 0;
  text-align: center;
  color: white;
}

.hero h1 {
  font-size: 48px;
  margin-bottom: 20px;
  font-weight: 700;
}

.hero p {
  font-size: 18px;
  margin-bottom: 30px;
  opacity: 0.9;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.btn {
  padding: 12px 30px;
  border-radius: 30px;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary {
  background: white;
  color: var(--primary);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.3);
}

.hot-section {
  padding: 40px 0;
}

.section-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title::before {
  content: "";
  width: 4px;
  height: 24px;
  background: var(--primary);
  border-radius: 2px;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.news-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  cursor: pointer;
}

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

.news-image {
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, #E0E0E0, #F5F5F5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
}

.news-content {
  padding: 20px;
}

.news-category {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(229, 57, 53, 0.1);
  color: var(--primary);
  border-radius: 12px;
  font-size: 12px;
  margin-bottom: 10px;
}

.news-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-meta {
  display: flex;
  justify-content: space-between;
  color: var(--text-light);
  font-size: 12px;
}

.hot-list {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: var(--shadow);
}

.hot-item {
  display: flex;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid var(--border);
  transition: background 0.3s ease;
}

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

.hot-item:hover {
  background: #FAFAFA;
}

.hot-rank {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  margin-right: 15px;
}

.hot-rank.top3 {
  background: var(--primary);
  color: white;
}

.hot-rank.other {
  background: #E0E0E0;
  color: var(--text-light);
}

.hot-title {
  flex: 1;
  font-size: 15px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.category-section {
  padding: 40px 0;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.category-card {
  background: white;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  cursor: pointer;
}

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

.category-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  margin: 0 auto 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
}

.category-icon.social {
  background: linear-gradient(135deg, #1565C0, #1976D2);
}

.category-icon.entertainment {
  background: linear-gradient(135deg, #E53935, #EF5350);
}

.category-icon.tech {
  background: linear-gradient(135deg, #43A047, #66BB6A);
}

.category-icon.sport {
  background: linear-gradient(135deg, #FF9800, #FFA726);
}

.category-icon.finance {
  background: linear-gradient(135deg, #7E57C2, #9575CD);
}

.category-icon.health {
  background: linear-gradient(135deg, #00ACC1, #26C6DA);
}

.category-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 5px;
}

.category-count {
  color: var(--text-light);
  font-size: 14px;
}

.featured-section {
  padding: 40px 0;
}

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

.featured-main {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.featured-main .news-image {
  height: 300px;
}

.featured-main .news-content {
  padding: 25px;
}

.featured-main .news-title {
  font-size: 24px;
  -webkit-line-clamp: 3;
}

.featured-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.featured-item {
  background: white;
  border-radius: 12px;
  padding: 15px;
  display: flex;
  gap: 15px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.featured-item:hover {
  transform: translateX(5px);
}

.featured-item .news-image {
  width: 120px;
  height: 80px;
  flex-shrink: 0;
}

.featured-item .news-content {
  padding: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.featured-item .news-title {
  font-size: 15px;
  margin-bottom: 5px;
}

footer {
  background: #1a1a1a;
  color: #999;
  padding: 50px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 30px;
}

.footer-section h3 {
  color: white;
  font-size: 18px;
  margin-bottom: 20px;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section ul li a {
  color: #999;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 20px;
  text-align: center;
  font-size: 14px;
}

.page-content {
  padding: 40px 0;
}

.page-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--primary);
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
  background: white;
  padding: 40px;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.about-content h2 {
  color: var(--primary);
  margin: 25px 0 15px;
  font-size: 20px;
}

.about-content p {
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 15px;
}

.team-members {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.team-member {
  text-align: center;
  padding: 20px;
  background: #FAFAFA;
  border-radius: 12px;
}

.team-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  margin: 0 auto 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 32px;
}

.team-name {
  font-weight: 600;
  margin-bottom: 5px;
}

.team-role {
  color: var(--text-light);
  font-size: 14px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 20px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  background: #FAFAFA;
  border-radius: 8px;
}

.contact-icon {
  width: 40px;
  height: 40px;
  background: var(--primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.submit-form {
  max-width: 600px;
  margin: 0 auto;
  background: white;
  padding: 40px;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--primary);
}

.form-group textarea {
  resize: vertical;
  min-height: 150px;
}

.form-group .hint {
  color: var(--text-light);
  font-size: 12px;
  margin-top: 5px;
}

.form-submit {
  width: 100%;
  padding: 15px;
  background: var(--gradient);
  border: none;
  border-radius: 8px;
  color: white;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.form-submit:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.breadcrumb {
  margin-bottom: 20px;
  font-size: 14px;
  color: var(--text-light);
}

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

.breadcrumb span {
  margin: 0 5px;
}

.news-detail {
  max-width: 800px;
  margin: 0 auto;
}

.news-detail .news-image {
  height: 400px;
  border-radius: 12px;
  margin-bottom: 30px;
}

.news-detail .news-title {
  font-size: 32px;
  margin-bottom: 20px;
}

.news-detail .news-meta {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.news-detail-content {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-light);
}

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

.pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 40px;
}

.pagination a {
  padding: 10px 20px;
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.pagination a:hover,
.pagination a.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: 15px;
  }

  nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero p {
    font-size: 16px;
  }

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

  .featured-main .news-image {
    height: 200px;
  }

  .news-detail .news-image {
    height: 250px;
  }

  .news-detail .news-title {
    font-size: 24px;
  }

  .about-content {
    padding: 20px;
  }

  .submit-form {
    padding: 20px;
  }
}
