body {
    background: #1a1a1a;
    color: white;
    font-family: Arial;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
}

.card {
  background: #2d2d2d;
  padding: 1.5rem;
  border-radius: 16px;
  text-align: left; 
  box-shadow: 0 8px 24px rgba(0, 255, 136, 0.1);
  margin: 0 15px;
  max-width: 600px;
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
}

h2 {
  font-size: 1.5rem; /* 24px */
  margin: 0 0 12px 0;
  line-height: 1.3;
  color: #f0f0f0;
  font-family: 'Segoe UI', system-ui, sans-serif;
  font-weight: 600;
  position: relative;
  padding-left: 36px; /* left space for icon */
}

h2::before {
  content: '📰';
  position: absolute;
  left: 0;
  top: 0;
  font-size: 1.2em;
  filter: hue-rotate(15deg);
}

.content-group {
  margin-bottom: 1rem;
}

p {
  font-size: 1rem; /* 16px */
  line-height: 1.6;
  color: #cccccc;
  margin: 0 0 12px 0;
  font-family: 'Segoe UI', system-ui, sans-serif;
  hyphens: auto;
}

.source-link {
  display: inline-block; 
  color: #00ff88;
  margin: 8px 0; 
  text-decoration: none;
  font-weight: 500;
  position: relative;
  padding-right: 24px; /* left space for arrow */
  transition: all 0.3s ease;
}

.source-link::after {
  content: '→';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  transition: transform 0.3s ease;
}

.source-link:hover {
  opacity: 1;
  text-decoration: underline;
}

.source-link:hover::after {
  transform: translate(4px, -50%);
}

.button-container {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
}

button {
  background: linear-gradient(135deg, #00ff88 0%, #00cc6a 100%);
  border: none;
  padding: 12px 28px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  color: #1a1a1a;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

button:hover {
  box-shadow: 0 4px 12px rgba(0, 255, 136, 0.3);
  transform: scale(1.05);
}

button::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 25%,
    rgba(255,255,255,0.1) 50%,
    transparent 75%
  );
  animation: shine 3s infinite;
}

@keyframes shine {
  100% {
    transform: translate(50%, 50%);
  }
}

/* 响应式调整 */
@media (max-width: 480px) {
  .card {
      padding: 1.2rem;
      margin: 0 10px;
  }
  
  h2 {
      font-size: 1.3rem;
  }
  
  p {
      font-size: 0.95rem;
  }
  
  .source-link {
    font-size: 0.9rem;
    padding-right: 20px;
  }
  
  button {
    padding: 10px 24px;
    font-size: 0.95rem;
  }
}

.loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #00ff88;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
  }
  
  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }
  

  .empty {
    background: #3b86ff;
    color: white;
  }
  
  .error {
    background: #ff3b3b;
    color: white;
  }