/* ===== Subpage shared styles ===== */

/* Page Hero */
.page-hero {
  padding: 120px 0 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(50% 60% at 20% 30%, rgba(94,242,198,.15), transparent 70%),
    radial-gradient(45% 50% at 80% 40%, rgba(201,132,255,.12), transparent 70%),
    radial-gradient(50% 50% at 50% 80%, rgba(122,162,255,.1), transparent 70%);
  pointer-events: none;
}

.page-title {
  font-size: 52px;
  font-weight: 900;
  letter-spacing: -.03em;
  margin-bottom: 12px;
  position: relative;
}

.page-sub {
  font-size: 18px;
  color: var(--text-3);
  position: relative;
}

/* Static category section (non-sticky on subpages) */
.category-section.static {
  position: relative;
  top: auto;
  padding: 32px 0 24px;
  background: transparent;
  border-bottom: 1px solid var(--border);
}

/* Waterfall card with real images */
.waterfall-card .card-image {
  position: relative;
  overflow: hidden;
  background: var(--surface-2);
}

.waterfall-card .card-img {
  width: 100%;
  display: block;
  transition: transform .4s ease;
}

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

/* News page styles */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 32px;
}

.news-item {
  display: flex;
  gap: 24px;
  padding: 20px;
  background: rgba(13,20,48,.85);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color .3s ease, box-shadow .3s ease;
  cursor: pointer;
}

.news-item:hover {
  border-color: var(--border-strong);
  box-shadow: 0 16px 40px rgba(0,0,0,.25);
  transform: translateY(-2px);
}

.news-image {
  width: 280px;
  height: 180px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface-2);
}

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

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

.news-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-date {
  font-size: 12px;
  color: var(--text-3);
  margin-bottom: 8px;
}

.news-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 8px;
  line-height: 1.4;
}

.news-desc {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 12px;
}

.news-meta {
  margin-top: auto;
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--text-3);
}

.news-tag {
  display: inline-block;
  padding: 2px 10px;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  background: rgba(94,242,198,.12);
  border-radius: 6px;
}

/* About page */
.about-section {
  padding: 48px 0;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.about-card {
  padding: 32px 28px;
  background: rgba(13,20,48,.85);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
}

.about-card .num {
  font-size: 48px;
  font-weight: 900;
  margin-bottom: 8px;
}

.about-card h4 {
  font-size: 18px;
  margin-bottom: 8px;
}

.about-card p {
  font-size: 14px;
  color: var(--text-3);
}

.about-text {
  font-size: 16px;
  color: var(--text-2);
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto;
}

/* Responsive */
@media (max-width: 768px) {
  .news-item { flex-direction: column; }
  .news-image { width: 100%; height: 200px; }
  .about-grid { grid-template-columns: repeat(2, 1fr); }
  .page-hero { padding: 50px 0 30px; }
  .waterfall-header { flex-direction: column; gap: 12px; align-items: flex-start; }
  .category-section .container { padding: 0 12px; }
}

@media (max-width: 480px) {
  .page-hero { padding: 50px 0 20px; }
  .news-list { gap: 12px; }
  .news-image { height: 160px; }
  .about-grid { gap: 16px; }
}
