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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  background: #0f0f1a;
  color: #e0e0e0;
  line-height: 1.6;
  min-height: 100vh;
}

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

.navbar {
  background: rgba(20, 20, 40, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.logo {
  font-size: 22px;
  font-weight: 700;
  color: #7c5cfc;
  text-decoration: none;
  letter-spacing: 1px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.nav-links a {
  color: #a0a0c0;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.2s;
}

.nav-links a:hover {
  color: #fff;
  background: rgba(124, 92, 252, 0.15);
}

.nav-links a.active {
  color: #fff;
  background: rgba(124, 92, 252, 0.25);
}

/* Hero */
.hero {
  text-align: center;
  padding: 80px 20px;
  border-radius: 16px;
  margin: 30px 20px;
}

.hero-ai {
  background: linear-gradient(135deg, #1a1a3e 0%, #2d1b69 50%, #1a1a3e 100%);
}

.hero-movie {
  background: linear-gradient(135deg, #1a1a3e 0%, #1b4d3e 50%, #1a1a3e 100%);
}

.hero-code {
  background: linear-gradient(135deg, #1a1a3e 0%, #4a1b5e 50%, #1a1a3e 100%);
}

.hero-earn {
  background: linear-gradient(135deg, #1a1a3e 0%, #5e3a1b 50%, #1a1a3e 100%);
}

.hero h1 {
  font-size: 42px;
  font-weight: 800;
  background: linear-gradient(135deg, #7c5cfc, #4dc9f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
}

.hero-subtitle {
  font-size: 18px;
  color: #8888aa;
  margin-bottom: 30px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  padding: 12px 28px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-block;
}

.btn-primary {
  background: linear-gradient(135deg, #7c5cfc, #5b3cfc);
  color: #fff;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(124, 92, 252, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #c0c0e0;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

/* Section */
.section-title {
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  margin: 50px 0 30px;
  color: #e0e0ff;
}

/* Card Grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  padding: 0 20px 30px;
}

.card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 28px;
  transition: all 0.3s;
}

.card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(124, 92, 252, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.card-icon {
  font-size: 32px;
  font-weight: 800;
  color: #7c5cfc;
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #e0e0ff;
}

.card p {
  font-size: 14px;
  color: #8888aa;
  line-height: 1.6;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.price {
  font-size: 20px;
  font-weight: 700;
  color: #f59e0b;
}

.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  background: rgba(124, 92, 252, 0.2);
  color: #9b8cfc;
}

.card-poster {
  font-size: 48px;
  text-align: center;
  margin-bottom: 14px;
}

/* Article List */
.article-list {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px 40px;
}

.article-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 14px;
  transition: all 0.2s;
}

.article-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(124, 92, 252, 0.2);
}

.article-item h3 {
  font-size: 17px;
  font-weight: 600;
  color: #d0d0f0;
  margin-bottom: 8px;
}

.article-item p {
  font-size: 14px;
  color: #7777aa;
  margin-bottom: 10px;
}

/* Search Bar */
.search-bar {
  display: flex;
  gap: 10px;
  max-width: 500px;
  width: 100%;
}

.search-input {
  flex: 1;
  padding: 12px 18px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  color: #e0e0e0;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
}

.search-input:focus {
  border-color: #7c5cfc;
}

.search-input::placeholder {
  color: #6666aa;
}

/* Footer */
.footer {
  text-align: center;
  padding: 30px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: 40px;
  color: #5555aa;
  font-size: 13px;
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 28px;
  }
  .hero {
    padding: 50px 16px;
    margin: 20px 10px;
  }
  .card-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
    padding: 0 10px 20px;
  }
  .nav-links a {
    padding: 6px 10px;
    font-size: 13px;
  }
}
