:root {
  --bg-color: #0f172a;
  --surface-color: rgba(30, 41, 59, 0.7);
  --surface-hover: rgba(51, 65, 85, 0.8);
  --primary-color: #38bdf8;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --accent-gradient: linear-gradient(135deg, #38bdf8 0%, #818cf8 100%);
  --glass-border: 1px solid rgba(255, 255, 255, 0.1);
  --font-stack:
    "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-stack);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Background Ambient Glow */
body::before {
  content: "";
  position: fixed;
  top: -20%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(56, 189, 248, 0.15),
    transparent 70%
  );
  z-index: -1;
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  bottom: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(129, 140, 248, 0.15),
    transparent 70%
  );
  z-index: -1;
  pointer-events: none;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}

/* Header */
header {
  padding: 2rem 0;
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-main);
}

/* Main Content */
main {
  flex: 1;
  padding: 4rem 0;
}

.hero {
  text-align: center;
  margin-bottom: 6rem;
  animation: fadeIn 1s ease-out;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.2;
  letter-spacing: -1px;
}

.hero p {
  color: var(--text-muted);
  font-size: 1.25rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Section Title */
.section-title {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, rgba(255, 255, 255, 0.1), transparent);
}

/* Article List */
.article-grid {
  display: grid;
  gap: 2rem;
}

.article-card {
  background: var(--surface-color);
  border: var(--glass-border);
  padding: 2rem;
  border-radius: 16px;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
  backdrop-filter: blur(5px);
  position: relative;
  overflow: hidden;
}

.article-card:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.3);
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
}

.article-date {
  font-size: 0.85rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  display: block;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.article-card h2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.article-card p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--text-main);
  font-size: 0.95rem;
}

.read-more svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.article-card:hover .read-more svg {
  transform: translateX(4px);
}

/* Article Detail Page Adjustments */
.article-content {
  background: var(--surface-color);
  border: var(--glass-border);
  padding: 3rem;
  border-radius: 16px;
}

.article-header {
  margin-bottom: 3rem;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 2rem;
}

.article-header h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.article-body {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.article-body h2 {
  color: var(--text-main);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  color: var(--text-muted);
  font-weight: 500;
}

.back-link:hover {
  color: var(--primary-color);
}

/* Footer */
footer {
  padding: 3rem 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: auto;
}

.beian-info {
  margin-top: 0.5rem;
  opacity: 0.6;
}

/* Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  .article-header h1 {
    font-size: 2rem;
  }
  .article-content {
    padding: 1.5rem;
  }
}
