/* 公告详情：版式对齐新闻详情页风格 */

.hw-notice-detail--pc {
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px var(--page-gutter-x) 88px;
  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-notice-detail__shell {
  max-width: 100%;
  margin: 0 auto;
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
}

.hw-notice-detail__article {
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 8px;
  background: var(--hw-card-bg, #fff);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.hw-notice-detail__info {
  position: relative;
  padding: 14px 14px 12px;
  background:
    radial-gradient(120% 130% at 100% 0%, rgba(80, 70, 229, 0.16) 0%, rgba(80, 70, 229, 0) 60%),
    linear-gradient(160deg, #ffffff 0%, #f7f8ff 100%);
}

.hw-notice-detail__info::after {
  content: "";
  position: absolute;
  right: -44px;
  bottom: -64px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(80, 70, 229, 0.18) 0%, rgba(80, 70, 229, 0) 72%);
  pointer-events: none;
}

.hw-notice-detail__topline {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.hw-notice-detail__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--hw-accent, #5046e5);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid rgba(80, 70, 229, 0.24);
  letter-spacing: 0.02em;
  transition: opacity 0.2s ease;
}

.hw-notice-detail__back::before {
  content: "<<";
  font-size: 11px;
  line-height: 1;
  opacity: 0.86;
}

.hw-notice-detail__back:hover {
  opacity: 0.75;
}

.hw-notice-detail__tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
}

.hw-notice-detail__tag--text {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.hw-notice-detail__tag--activity {
  background: linear-gradient(135deg, #f66600 0%, #ff8f3d 100%);
}

.hw-notice-detail__title {
  position: relative;
  z-index: 1;
  margin: 0 0 16px;
  font-size: clamp(30px, 3.5vw, 40px);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.02em;
  color: var(--hw-text, #1a1a2e);
}

.hw-notice-detail__countdown-bar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 12px;
  padding: 12px 16px;
  border-radius: 8px;
  background: linear-gradient(135deg, #fff7ed 0%, #fef3c7 100%);
  border: 1px solid rgba(251, 191, 36, 0.25);
}

.hw-notice-detail__countdown-bar[data-ended="true"] {
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  border-color: rgba(15, 23, 42, 0.08);
}

.hw-notice-detail__countdown-label {
  font-size: 13px;
  font-weight: 600;
  color: #92400e;
  white-space: nowrap;
}

.hw-notice-detail__countdown-bar[data-ended="true"] .hw-notice-detail__countdown-label {
  color: #64748b;
}

.hw-notice-detail__countdown-time {
  font-size: 16px;
  font-weight: 800;
  color: #d97706;
  font-variant-numeric: tabular-nums;
}

.hw-notice-detail__countdown-bar[data-ended="true"] .hw-notice-detail__countdown-time {
  color: #94a3b8;
  font-weight: 600;
}

.hw-notice-detail__time {
  position: relative;
  z-index: 1;
  margin: 0 0 12px;
  font-size: 13px;
  color: #5f647a;
  display: flex;
  align-items: center;
  gap: 6px;
}

.hw-notice-detail__action {
  position: relative;
  z-index: 1;
  margin: 0;
}

.hw-notice-detail__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, #f66600 0%, #ff8f3d 100%);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hw-notice-detail__btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(246, 102, 0, 0.28);
}

.hw-notice-detail__content {
  padding: 14px 14px 16px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  font-size: 17px;
  line-height: 1.9;
  color: var(--hw-text, #1a1a2e);
  word-break: break-word;
  overflow-wrap: break-word;
}

.hw-notice-detail__figure {
  float: left;
  width: 25%;
  margin: 0 22px 14px 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 0%);
  box-shadow: 0 4px 16px rgb(255 255 255 / 8%);
  background: var(--hw-card-bg, #fff);
}

.hw-notice-detail__figure img {
  display: block;
  width: 100%;
  height: auto;
}

.hw-notice-detail__content > *:first-child {
  margin-top: 0;
}

.hw-notice-detail__content h2 {
  font-size: 26px;
  margin: 44px 0 18px;
  font-weight: 800;
  line-height: 1.3;
}

.hw-notice-detail__content h3 {
  font-size: 20px;
  margin: 36px 0 14px;
  font-weight: 700;
  line-height: 1.35;
}

.hw-notice-detail__content h4 {
  font-size: 18px;
  margin: 28px 0 12px;
  font-weight: 700;
}

.hw-notice-detail__content p {
  margin: 0 0 1.15em;
}

.hw-notice-detail__content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 20px 0;
}

.hw-notice-detail__content blockquote {
  margin: 28px 0;
  padding: 20px 24px;
  border-left: 4px solid var(--hw-accent, #5046e5);
  background: var(--hw-accent-light, rgba(80, 70, 229, 0.06));
  border-radius: 0 8px 8px 0;
  line-height: 1.75;
  color: var(--hw-text-secondary, #444);
}

.hw-notice-detail__content pre {
  margin: 24px 0;
  padding: 22px;
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.65;
  background: #1e1e2e;
  color: #cdd6f4;
  border-radius: 8px;
}

.hw-notice-detail__content code {
  font-family: ui-monospace, "Cascadia Code", "JetBrains Mono", monospace;
}

.hw-notice-detail__content hr {
  margin: 26px 0;
  border: none;
  border-top: 1px solid rgba(15, 23, 42, 0.1);
}

.hw-notice-detail__content a {
  color: var(--hw-accent, #5046e5);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.hw-notice-detail__content ul,
.hw-notice-detail__content ol {
  margin: 0 0 1.15em;
  padding-left: 1.35em;
}

.hw-notice-detail__content li {
  margin-bottom: 0.45em;
}

.hw-notice-detail__content table {
  width: 100%;
  max-width: 100%;
  margin: 0 0 1.15em;
  border-collapse: collapse;
  font-size: 0.92em;
}

.hw-notice-detail__content th,
.hw-notice-detail__content td {
  border: 1px solid rgba(15, 23, 42, 0.1);
  padding: 8px 10px;
  text-align: left;
}

.hw-notice-detail__empty {
  text-align: center;
  padding: 120px var(--page-gutter-x);
  color: var(--hw-text-secondary, #888);
}

.hw-notice-detail__empty h2 {
  font-size: 28px;
  margin: 0 0 10px;
  color: var(--hw-text, #1a1a2e);
}

.hw-notice-detail__empty p {
  margin: 0 0 16px;
  font-size: 15px;
}

.hw-notice-detail--mobile {
  padding: 6px 6px 66px;
  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-notice-detail--mobile .hw-notice-detail__article {
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.07);
}

.hw-notice-detail--mobile .hw-notice-detail__info {
  padding: 12px 12px 12px;
}

.hw-notice-detail--mobile .hw-notice-detail__info::after {
  right: -46px;
  bottom: -58px;
  width: 140px;
  height: 140px;
}

.hw-notice-detail--mobile .hw-notice-detail__title {
  font-size: 24px;
  margin-bottom: 12px;
}

.hw-notice-detail--mobile .hw-notice-detail__back,
.hw-notice-detail--mobile .hw-notice-detail__tag {
  font-size: 12px;
  padding: 5px 10px;
}

.hw-notice-detail--mobile .hw-notice-detail__countdown-bar {
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 10px 12px;
}

.hw-notice-detail--mobile .hw-notice-detail__countdown-label,
.hw-notice-detail--mobile .hw-notice-detail__time {
  font-size: 12px;
}

.hw-notice-detail--mobile .hw-notice-detail__countdown-time {
  font-size: 15px;
}

.hw-notice-detail--mobile .hw-notice-detail__btn {
  padding: 7px 14px;
  font-size: 12px;
}

.hw-notice-detail--mobile .hw-notice-detail__content {
  padding: 12px 12px 14px;
  font-size: 16px;
  line-height: 1.85;
}

.hw-notice-detail--mobile .hw-notice-detail__figure {
  width: 30%;
  margin: 2px 14px 10px 0;
}

.hw-notice-detail--mobile .hw-notice-detail__content h2 {
  font-size: 21px;
  margin: 32px 0 12px;
}

.hw-notice-detail--mobile .hw-notice-detail__content h3 {
  font-size: 18px;
  margin: 26px 0 10px;
}

.hw-notice-detail--mobile .hw-notice-detail__content h4 {
  font-size: 16px;
  margin: 20px 0 10px;
}

.hw-notice-detail--mobile .hw-notice-detail__content blockquote {
  margin: 22px 0;
  padding: 14px 16px;
  border-left-width: 3px;
  font-size: 15px;
}

.hw-notice-detail--mobile .hw-notice-detail__content pre {
  padding: 16px;
  font-size: 13px;
  margin: 18px 0;
}

.hw-notice-detail--mobile .hw-notice-detail__empty {
  padding: 72px 10px;
}

.hw-notice-detail--mobile .hw-notice-detail__empty h2 {
  font-size: 22px;
}

/* 活动详情：高质感视觉布局 */
.hw-notice-detail__article--activity {
  border: 1px solid rgba(124, 58, 237, 0.18);
  box-shadow:
    0 18px 48px rgba(15, 23, 42, 0.16),
    0 0 0 1px rgba(255, 255, 255, 0.45) inset;
}

.hw-notice-detail__hero {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  padding: 22px 22px 90px;
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(251, 191, 36, 0.28) 0%, rgba(251, 191, 36, 0) 55%),
    radial-gradient(160% 160% at 100% 0%, rgba(168, 85, 247, 0.34) 0%, rgba(168, 85, 247, 0) 60%),
    linear-gradient(125deg, #111827 0%, #312e81 54%, #7c3aed 100%);
}

.hw-notice-detail__hero.has-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--hw-notice-hero-image);
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  opacity: 0.9;
}

.hw-notice-detail__hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(17, 24, 39, 0.3) 0%, rgba(30, 27, 75, 0.16) 55%, rgba(124, 58, 237, 0.2) 100%);
}

.hw-notice-detail__hero-content {
  position: relative;
  z-index: 2;
  max-width: 980px;
  color: #fff;
}

.hw-notice-detail__hero-cta {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 3;
}

.hw-notice-detail--activity .hw-notice-detail__topline {
  margin-bottom: 16px;
}

.hw-notice-detail--activity .hw-notice-detail__back {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(6px);
}

.hw-notice-detail--activity .hw-notice-detail__tag {
  background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
  box-shadow: 0 6px 18px rgba(249, 115, 22, 0.36);
}

.hw-notice-detail--activity .hw-notice-detail__title {
  color: #fff;
  margin-bottom: 10px;
  text-shadow: 0 6px 20px rgba(17, 24, 39, 0.35);
}

.hw-notice-detail__lead {
  margin: 0 0 18px;
  max-width: 720px;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.88);
}

.hw-notice-detail__event-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 16px 22px 20px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  background: linear-gradient(180deg, #ffffff 0%, #faf8ff 100%);
}

.hw-notice-detail__hero-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(124, 58, 237, 0.2);
  background: #fff;
  box-shadow: 0 8px 20px rgba(76, 29, 149, 0.08);
}

.hw-notice-detail__hero-label {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: #6d28d9;
}

.hw-notice-detail__hero-value,
.hw-notice-detail__hero-item .hw-notice-detail__countdown-time {
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  word-break: break-all;
}

.hw-notice-detail__hero-item--countdown {
  border-color: rgba(249, 115, 22, 0.35);
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
}

.hw-notice-detail__hero-item--countdown[data-ended="true"] {
  border-color: rgba(148, 163, 184, 0.38);
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.hw-notice-detail__hero-item--countdown[data-ended="true"] .hw-notice-detail__countdown-time {
  color: #475569;
}

.hw-notice-detail--activity .hw-notice-detail__action {
  margin-top: 16px;
}

.hw-notice-detail__btn--hero {
  min-height: 44px;
  padding: 10px 24px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
  box-shadow: 0 10px 24px rgba(249, 115, 22, 0.4);
}

.hw-notice-detail__content--activity {
  padding-top: 24px;
}

@media (max-width: 1024px) {
  .hw-notice-detail__event-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.hw-notice-detail--mobile .hw-notice-detail__hero {
  min-height: 300px;
  padding: 14px 14px 76px;
}

.hw-notice-detail--mobile .hw-notice-detail__lead {
  font-size: 13px;
  margin-bottom: 12px;
}

.hw-notice-detail--mobile .hw-notice-detail__event-meta {
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 12px 14px 14px;
}

.hw-notice-detail--mobile .hw-notice-detail__hero-item {
  padding: 10px 12px;
  border-radius: 10px;
}

.hw-notice-detail--mobile .hw-notice-detail__hero-value,
.hw-notice-detail--mobile .hw-notice-detail__hero-item .hw-notice-detail__countdown-time {
  font-size: 14px;
}

.hw-notice-detail--mobile .hw-notice-detail__btn--hero {
  min-height: 40px;
  padding: 8px 14px;
}

.hw-notice-detail--mobile .hw-notice-detail__hero-cta {
  bottom: 16px;
}
