*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  color: #333;
  background: #f0f0f0;
  -webkit-font-smoothing: antialiased;
}

.page {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background: #f0f0f0;
}

/* 顶部公告条 */
.notice {
  background: #fff9e6;
  padding: 14px 16px 12px;
  border-bottom: 1px solid #f5ecd0;
}

.notice-line {
  margin: 0 0 8px;
  display: flex;
  align-items: flex-start;
  gap: 6px;
  line-height: 1.45;
  font-size: 14px;
  color: #e85d04;
}

.notice-line:last-child {
  margin-bottom: 0;
}

.notice-link {
  text-decoration: none;
  color: #e85d04;
}

.notice-link:active {
  opacity: 0.85;
}

.notice-icon {
  flex-shrink: 0;
  font-size: 15px;
  line-height: 1.45;
}

.notice-text {
  flex: 1;
  word-break: break-all;
}

/* 卡片列表 */
.cards {
  padding: 16px 14px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 14px 14px 12px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.card--clickable {
  cursor: pointer;
}

.card--clickable:active {
  opacity: 0.92;
}

.card-avatar {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: #e8e8e8;
}

.card-body {
  flex: 1;
  min-width: 0;
}

.card-title {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.3;
}

.card-desc {
  margin: 0;
  font-size: 13px;
  color: #888;
  line-height: 1.35;
}

.card-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
  background: #07c160;
  border-radius: 6px;
  transition: background 0.15s ease, transform 0.1s ease;
}

.card-btn:active {
  background: #06ad56;
  transform: scale(0.98);
}

/* 加群二维码弹层 */
.qr-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.qr-modal[hidden] {
  display: none;
}

.qr-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.qr-modal-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 320px;
  padding: 20px 16px 16px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.qr-modal-close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  background: transparent;
  font-size: 26px;
  line-height: 1;
  color: #999;
  cursor: pointer;
}

.qr-modal-title {
  margin: 0 0 12px;
  font-size: 17px;
  font-weight: 600;
  text-align: center;
  color: #1a1a1a;
}

.qr-modal-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

@media (min-width: 481px) {
  .page {
    box-shadow: 0 0 24px rgba(0, 0, 0, 0.06);
  }
}
