/* 公告列表 /notices/ — PC + Mobile（.hw-notices--pc / .hw-notices--mobile） */

.hw-notices--pc {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--page-gutter-x) 80px;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - var(--header-h, 64px));
  min-height: calc(100dvh - var(--header-h, 64px));
  box-sizing: border-box;
}

.hw-notices__hero {
  text-align: center;
  padding: 36px 0 40px;
  flex-shrink: 0;
  position: relative;
}

.hw-notices__hero::after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  margin: 20px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand, #ff6b35), var(--brand-2, #ff9f1c), #3b82f6);
  opacity: 0.85;
}

.hw-notices__hero-inner {
  max-width: 600px;
  margin: 0 auto;
}

.hw-notices__kicker {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--brand, #ff6b35);
  margin-bottom: 12px;
  padding: 6px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.12), rgba(59, 130, 246, 0.1));
  border: 1px solid rgba(255, 107, 53, 0.18);
}

.hw-notices__title {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
  color: var(--hw-text, #1a1a2e);
}

.hw-notices__desc {
  font-size: 15px;
  color: var(--hw-text-secondary, #888);
  line-height: 1.65;
  margin: 0;
}

.hw-notices__shell {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.hw-notices__list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

@media (min-width: 900px) {
  .hw-notices--pc .hw-notices__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 22px;
    align-items: stretch;
  }
}

/* —— 卡片 —— */
.hw-notices__card {
  --hw-card-accent: linear-gradient(135deg, #3b82f6, #2563eb);
  --hw-card-glow: rgba(59, 130, 246, 0.22);
  position: relative;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg, #fff);
  border: 1px solid rgba(15, 23, 42, 0.07);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 12px 40px rgba(15, 23, 42, 0.07);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.hw-notices__card--activity {
  --hw-card-accent: linear-gradient(135deg, var(--brand, #ff6b35), var(--brand-2, #ff9f1c));
  --hw-card-glow: rgba(255, 107, 53, 0.28);
}

.hw-notices__card:hover {
  transform: translateY(-2px);
  border-color: rgba(15, 23, 42, 0.09);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 10px 28px rgba(15, 23, 42, 0.09),
    0 0 0 1px rgba(255, 255, 255, 0.5) inset,
    0 0 20px var(--hw-card-glow);
}

.hw-notices__card:focus-visible {
  outline: 2px solid var(--brand, #ff6b35);
  outline-offset: 3px;
}

.hw-notices__card-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 1;
  min-height: 160px;
  max-height: 300px;
  overflow: hidden;
  background: linear-gradient(145deg, #e8eef7 0%, #f1f5f9 45%, #e2e8f0 100%);
}

.hw-notices__card-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0) 35%,
    rgba(15, 23, 42, 0.45) 100%
  );
  opacity: 0.75;
  transition: opacity 0.28s ease;
  z-index: 1;
}

.hw-notices__card:hover .hw-notices__card-shade {
  opacity: 0.68;
}

.hw-notices__card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hw-notices__card-cover--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 132px;
  aspect-ratio: auto;
  position: relative;
}

.hw-notices__card-cover--empty.hw-notices__card-cover--text {
  background:
    radial-gradient(ellipse 80% 120% at 20% 30%, rgba(59, 130, 246, 0.2), transparent 55%),
    radial-gradient(ellipse 70% 100% at 85% 70%, rgba(37, 99, 235, 0.15), transparent 50%),
    linear-gradient(145deg, #eef4ff 0%, #f8fafc 50%, #e8f0fe 100%);
}

.hw-notices__card-cover--empty.hw-notices__card-cover--activity {
  background:
    radial-gradient(ellipse 80% 120% at 15% 25%, rgba(255, 159, 28, 0.22), transparent 55%),
    radial-gradient(ellipse 70% 100% at 90% 75%, rgba(255, 107, 53, 0.18), transparent 50%),
    linear-gradient(145deg, #fff8f4 0%, #fffbf7 45%, #fff0e8 100%);
}

.hw-notices__card-cover-deco {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2394a3b8' fill-opacity='0.22'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hw-notices__card-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  padding: 6px 14px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  border-radius: 6px;
  clip-path: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.hw-notices__card-cover--empty .hw-notices__card-tag {
  position: relative;
  top: auto;
  left: auto;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.12);
}

.hw-notices__card-tag--text {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.hw-notices__card-tag--activity {
  background: linear-gradient(135deg, var(--brand, #ff6b35), #ea580c);
}

.hw-notices__card-countdown {
  position: absolute;
  bottom: 14px;
  left: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.hw-notices__card-countdown[data-ended="true"] {
  background: rgba(51, 65, 85, 0.75);
}

.hw-notices__card-body {
  position: relative;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  padding: 20px 22px 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, var(--bg, #fff) 100%);
}

.hw-notices__card-body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 22px;
  right: 22px;
  height: 3px;
  border-radius: 6px;
  background: var(--hw-card-accent);
  opacity: 0.9;
}

.hw-notices__card-title {
  margin: 10px 0 0;
  font-size: 1.14rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.38;
  letter-spacing: -0.015em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hw-notices__card-time {
  margin: 10px auto 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: #475569;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 6px;
  background: rgba(241, 245, 249, 0.95);
  border: 1px solid rgba(15, 23, 42, 0.06);
  width: fit-content;
  max-width: 100%;
}

.hw-notices__card-time i {
  color: var(--brand, #ff6b35);
  opacity: 0.9;
}

.hw-notices__card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 16px;
  margin-bottom: 2px;
  border-top: 1px dashed rgba(15, 23, 42, 0.08);
}

.hw-notices__card-more {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--brand, #ff6b35);
  letter-spacing: 0.02em;
}

.hw-notices__card-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 6px;
  font-size: 0.75rem;
  color: #fff;
  background: var(--hw-card-accent);
  box-shadow: 0 4px 12px var(--hw-card-glow);
  transition: transform 0.2s ease;
}

.hw-notices__card:hover .hw-notices__card-arrow {
  transform: translateX(2px);
}

.hw-notices__empty {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 64px 24px;
  color: #94a3b8;
  min-height: 14rem;
  border-radius: 6px;
  border: 2px dashed rgba(148, 163, 184, 0.35);
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.9), rgba(241, 245, 249, 0.5));
}

.hw-notices__empty h2 {
  margin: 0 0 10px;
  font-size: 1.25rem;
  font-weight: 800;
  color: #64748b;
}

.hw-notices__empty p {
  margin: 0;
  font-size: 0.95rem;
  max-width: 280px;
  line-height: 1.55;
}

/* —— Mobile —— */
.hw-notices--mobile {
  padding: 0 12px 60px;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - var(--header-h, 64px) - var(--tab-h, 58px) - var(--safe-b, 0px));
  min-height: calc(100dvh - var(--header-h, 64px) - var(--tab-h, 58px) - var(--safe-b, 0px));
  box-sizing: border-box;
}

.hw-notices--mobile .hw-notices__hero {
  padding: 24px 0 28px;
}

.hw-notices--mobile .hw-notices__hero::after {
  margin-top: 16px;
}

.hw-notices--mobile .hw-notices__title {
  font-size: 26px;
}

.hw-notices--mobile .hw-notices__list {
  gap: 18px;
}

.hw-notices--mobile .hw-notices__card-cover {
  aspect-ratio: 2.35 / 1;
  min-height: 118px;
  max-height: 200px;
}

.hw-notices--mobile .hw-notices__card-body {
  padding: 18px 16px 16px;
}

.hw-notices--mobile .hw-notices__card-body::before {
  left: 16px;
  right: 16px;
}

.hw-notices--mobile .hw-notices__card-title {
  font-size: 1.05rem;
}

.hw-notices--mobile .hw-notices__card-tag {
  top: 10px;
  left: 10px;
  padding: 5px 12px;
  font-size: 0.68rem;
}

.hw-notices--mobile .hw-notices__card-countdown {
  bottom: 10px;
  left: 10px;
  padding: 6px 12px;
  font-size: 0.75rem;
}

.hw-notices--mobile .hw-notices__card-foot {
  padding-top: 14px;
}

.hw-notices--mobile .hw-notices__card-arrow {
  width: 32px;
  height: 32px;
}

@media (prefers-reduced-motion: reduce) {
  .hw-notices__card,
  .hw-notices__card-arrow,
  .hw-notices__card-shade {
    transition: none;
  }

  .hw-notices__card:hover {
    transform: none;
  }

  .hw-notices__card:hover .hw-notices__card-arrow {
    transform: none;
  }
}
