/* 艺术篮球社团 — 运动风格样式 */

:root {
  --ink: #0f1923;
  --paper: #f8f9fa;
  --accent: #ff6b35;
  --accent-dark: #e55a2b;
  --accent-soft: #ffb088;
  --team-blue: #1a365d;
  --team-light: #2c5282;
  --muted: #5a6775;
  --border: rgba(15, 25, 35, 0.1);
  --shadow: rgba(15, 25, 35, 0.08);
}

@keyframes toastIn {
  from { opacity: 0; transform: translateX(-50%) translateY(-20px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@keyframes toastOut {
  from { opacity: 1; transform: translateX(-50%) translateY(0); }
  to { opacity: 0; transform: translateX(-50%) translateY(-20px); }
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(26, 54, 93, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(255, 107, 53, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(44, 82, 130, 0.05) 0%, transparent 70%);
  animation: dynamicBg 15s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
}

@keyframes dynamicBg {
  0%, 100% {
    background:
      radial-gradient(ellipse at 20% 30%, rgba(26, 54, 93, 0.08) 0%, transparent 50%),
      radial-gradient(ellipse at 80% 70%, rgba(255, 107, 53, 0.06) 0%, transparent 50%),
      radial-gradient(ellipse at 50% 50%, rgba(44, 82, 130, 0.05) 0%, transparent 70%);
  }
  25% {
    background:
      radial-gradient(ellipse at 30% 50%, rgba(26, 54, 93, 0.1) 0%, transparent 50%),
      radial-gradient(ellipse at 70% 30%, rgba(255, 107, 53, 0.08) 0%, transparent 50%),
      radial-gradient(ellipse at 40% 60%, rgba(44, 82, 130, 0.06) 0%, transparent 70%);
  }
  50% {
    background:
      radial-gradient(ellipse at 50% 20%, rgba(26, 54, 93, 0.08) 0%, transparent 50%),
      radial-gradient(ellipse at 30% 80%, rgba(255, 107, 53, 0.06) 0%, transparent 50%),
      radial-gradient(ellipse at 60% 40%, rgba(44, 82, 130, 0.05) 0%, transparent 70%);
  }
  75% {
    background:
      radial-gradient(ellipse at 70% 40%, rgba(26, 54, 93, 0.1) 0%, transparent 50%),
      radial-gradient(ellipse at 20% 60%, rgba(255, 107, 53, 0.08) 0%, transparent 50%),
      radial-gradient(ellipse at 50% 80%, rgba(44, 82, 130, 0.06) 0%, transparent 70%);
  }
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: linear-gradient(135deg, var(--team-blue) 0%, var(--team-light) 100%);
  backdrop-filter: blur(8px);
  border-bottom: 3px solid var(--accent);
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.site-header__inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  position: relative;
}

.brand {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.brand:hover {
  text-decoration: none;
  color: var(--accent-soft);
}

.nav {
  display: flex;
  gap: 0.25rem 1.25rem;
  flex-wrap: wrap;
}

.nav a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.nav a:hover,
.nav a.is-active {
  color: #fff;
  background: rgba(255, 107, 53, 0.85);
  text-decoration: none;
}

main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

.page-title {
  margin: 0 0 0.5rem;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--team-blue);
}

.page-lead {
  margin: 0 0 2.5rem;
  color: var(--muted);
  font-size: 1rem;
  max-width: 42em;
}

.hero {
  text-align: center;
  padding: 3rem 1rem 3.5rem;
  background: linear-gradient(180deg, rgba(26, 54, 93, 0.05) 0%, transparent 100%);
  border-radius: 12px;
  margin-bottom: 2rem;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.2rem, 6vw, 3.2rem);
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--team-blue);
  text-shadow: 1px 1px 0 rgba(255,107,53,0.3);
}

.hero p {
  margin: 0 auto 2rem;
  max-width: 28em;
  color: var(--muted);
  font-size: 1.1rem;
}

.creator-path {
  max-width: 640px;
  margin: 0 auto 2rem;
  padding: 0 1.5rem;
}

.creator-path__summary {
  cursor: pointer;
  font-size: 0.95rem;
  color: var(--muted);
  letter-spacing: 0.06em;
}

.creator-path__summary:hover {
  color: var(--accent);
}

.creator-path__body {
  margin-top: 1rem;
  padding: 1rem 1.15rem;
  font-size: 0.9rem;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--border);
  border-radius: 6px;
}

.creator-path__body ul {
  margin: 0 0 0.75rem;
  padding-left: 1.25rem;
}

.creator-path__body li {
  margin-bottom: 0.35rem;
}

.creator-path__note {
  margin: 0.65rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.creator-path__body code {
  font-family: ui-monospace, monospace;
  font-size: 0.88em;
  background: rgba(26, 21, 18, 0.06);
  padding: 0.1em 0.35em;
  border-radius: 3px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.card {
  display: block;
  background: #fff;
  border: 2px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 24px var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  color: inherit;
  text-decoration: none;
}

.card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 16px 48px rgba(255, 107, 53, 0.2);
  border-color: var(--accent);
  text-decoration: none;
}

.card__img-wrap {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, var(--team-blue) 0%, var(--team-light) 100%);
}

.card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.card:hover .card__img-wrap img {
  transform: scale(1.08);
}

.card__body {
  padding: 1.1rem 1.25rem 1.35rem;
}

.card__title {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--team-blue);
  letter-spacing: 0.08em;
}

.card__desc {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

/* 首页球队领袖 */
.leadership {
  max-width: 900px;
  margin: 0 auto 3rem;
  padding: 0 1.5rem;
}

.leadership__heading {
  margin: 0 0 1.5rem;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--team-blue);
  text-align: center;
}

.leadership__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: end;
}

.leader-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.75rem 1.25rem 1.5rem;
  background: rgba(255, 255, 255, 0.55);
  border: 2px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 4px 20px var(--shadow);
  text-align: center;
  backdrop-filter: blur(8px);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.leader-card:nth-child(2) {
  margin-bottom: 2.8rem;
}

.leader-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(255, 107, 53, 0.18);
}

.leader-card:nth-child(2):hover {
  transform: translateY(-6px);
}

.team-photo {
  margin-top: 2.5rem;
  text-align: center;
}

.team-photo__heading {
  margin: 0 0 1.5rem;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--ink);
}

.team-photo-card {
  display: inline-block;
  border-radius: 12px;
  border: 2px solid var(--border);
  box-shadow: 0 4px 20px var(--shadow);
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(8px);
  transition: box-shadow 0.25s ease;
}

.team-photo-card:hover {
  box-shadow: 0 16px 40px rgba(255, 107, 53, 0.18);
}

.team-photo-card__img {
  display: block;
  max-width: 600px;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 10px 10px 0 0;
  overflow: hidden;
}

.team-photo-card__upload-wrap {
  padding: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.team-photo-card__upload {
  display: none;
}

.team-photo-card__upload-btn {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  border: none;
  border-radius: 6px;
  background: linear-gradient(135deg, #ff6b35, #f7931e);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
}

.team-photo-card__upload-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
}

.team-photo-card__upload-btn:active {
  transform: translateY(0);
}

.team-photo-edit {
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 10px 10px 0 0;
}

.team-photo-edit__field {
  margin-bottom: 1rem;
}

.team-photo-edit__field label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
}

.team-photo-edit__field input[type="text"] {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.95rem;
  box-sizing: border-box;
}

.team-photo-edit__field input[type="file"] {
  font-size: 0.9rem;
}

.team-photo-edit .form-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
}

.team-photo-edit .btn {
  flex: 1;
  max-width: 120px;
}

.team-photo-edit .btn--ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--ink);
}

/* 球队大合照预览 */
#team-photo-preview-modal {
  padding: 0;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
}

#team-photo-preview-modal .modal__backdrop {
  background: rgba(0, 0, 0, 0.92);
  display: block;
}

#team-photo-preview-modal .modal__panel {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 2rem;
  max-width: none;
  max-height: none;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
}

#member-preview-modal .modal__panel {
  max-width: 280px;
  max-height: 90vh;
  background: linear-gradient(135deg, #fff 0%, #f8f9fc 100%);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

#team-photo-preview-modal .modal__close {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  color: #fff;
  font-size: 2rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
  background: rgba(0,0,0,0.3);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  line-height: 40px;
  text-align: center;
  border: 2px solid rgba(255,255,255,0.3);
  cursor: pointer;
}

#team-photo-preview-img {
  max-width: 92vw;
  max-height: 88vh;
  object-fit: contain;
}

.leader-card__avatar {
  width: 110px;
  height: 110px;
  border-radius: 8px;
  overflow: hidden;
  border: 3px solid var(--team-blue);
  margin-bottom: 0.85rem;
  box-shadow: 0 4px 12px rgba(26, 54, 93, 0.2);
}

.leader-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.leader-card__badge {
  display: inline-block;
  padding: 0.2rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.leader-card__badge--captain {
  background: #c53030;
  color: #fff;
}

.leader-card__badge--vice {
  background: var(--team-blue);
  color: #fff;
}

.leader-card__badge--manager {
  background: #2f855a;
  color: #fff;
}

.leader-card__name {
  margin: 0 0 0.6rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.05em;
}

.leader-card__intro {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--muted);
}

.leader-card__edit-btn {
  margin-top: 0.85rem;
  padding: 0.35rem 1rem;
  font-size: 0.8rem;
  border: 1px solid var(--accent);
  border-radius: 20px;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.leader-card__edit-btn:hover {
  background: var(--accent);
  color: #fff;
}

.leader-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 1.75rem;
}

.leader-preview__avatar {
  width: 160px;
  height: 160px;
  border-radius: 8px;
  overflow: hidden;
  border: 3px solid var(--team-blue);
  margin-bottom: 1rem;
  box-shadow: 0 6px 20px rgba(26, 54, 93, 0.25);
}

.leader-preview__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.leader-preview__badge {
  display: inline-block;
  padding: 0.2rem 0.85rem;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 0.6rem;
}

.leader-preview__badge--captain { background: #c53030; color: #fff; }
.leader-preview__badge--vice { background: var(--team-blue); color: #fff; }
.leader-preview__badge--manager { background: var(--muted); color: #fff; }

.leader-preview__name {
  margin: 0 0 0.75rem;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ink);
}

.leader-preview__intro {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--muted);
  max-width: 340px;
}

.modal__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 25, 35, 0.75);
  cursor: pointer;
}

.modal__dialog {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}

.gallery figure {
  margin: 0;
  background: #fff;
  border: 2px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px var(--shadow);
  transition: all 0.25s ease;
}

.gallery figure:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 32px rgba(255, 107, 53, 0.15);
  transform: translateY(-3px);
}

.gallery img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  vertical-align: middle;
}

.gallery figcaption {
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  background: #fff;
}

.page-lead code {
  font-family: ui-monospace, monospace;
  font-size: 0.9em;
  background: rgba(26, 21, 18, 0.06);
  padding: 0.12em 0.35em;
  border-radius: 3px;
}

.gallery-empty {
  margin: 0 0 1.5rem;
  padding: 1.25rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
  border: 2px dashed var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.35);
}

.gallery-empty[hidden] {
  display: none;
}

/* 添加队员按钮 */
.add-member-wrap {
  margin-bottom: 1.5rem;
  text-align: center;
}

.add-member-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, var(--team-blue), var(--team-red));
  color: #fff;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}

.add-member-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

.add-member-btn:active {
  transform: translateY(0);
}

.add-member-btn__icon {
  font-size: 1.25rem;
  line-height: 1;
}

.add-member-modal .modal__body {
  padding: 1.5rem;
}

.add-member-modal .modal__body p {
  margin: 0 0 1rem;
}

.add-member-modal .modal__body ul {
  margin: 0 0 1rem 1.5rem;
}

.add-member-modal .modal__body li {
  margin-bottom: 0.5rem;
}

.add-member-tip {
  color: var(--team-blue);
  font-weight: 500;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.gallery-card {
  margin: 0;
  background: #fff;
  border: 2px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px var(--shadow);
  transition: all 0.25s ease;
}

.gallery-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(255, 107, 53, 0.15);
}

.gallery-card__img-wrap {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: linear-gradient(135deg, var(--team-blue) 0%, var(--team-light) 100%);
}

.gallery-card__img-wrap img.gallery-card__thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  vertical-align: middle;
  cursor: zoom-in;
  transition: transform 0.3s ease;
}

.gallery-card:hover .gallery-card__thumb {
  transform: scale(1.05);
}

.gallery-card__thumb:focus {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.gallery-card__remove {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 2.2rem;
  height: 2.2rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 107, 53, 0.9);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  font-family: system-ui, sans-serif;
  transition: all 0.2s ease;
}

.gallery-card__remove:hover {
  background: var(--accent-dark);
  transform: scale(1.1);
}

.gallery-card__caption {
  padding: 0.5rem 0.65rem;
  border-top: 1px solid var(--border);
}

.gallery-card__caption-input {
  width: 100%;
  margin: 0;
  padding: 0.35rem 0.45rem;
  border: 1px solid transparent;
  border-radius: 3px;
  font: inherit;
  font-size: 0.9rem;
  color: var(--ink);
  background: transparent;
}

.gallery-card__caption-input:focus {
  outline: none;
  border-color: var(--accent-soft);
  background: rgba(255, 255, 255, 0.9);
}

.gallery-file-protocol-banner {
  margin: 0 0 1.5rem;
  padding: 1rem 1.25rem;
  background: #fff3cd;
  border: 1px solid #dfc56c;
  border-radius: 8px;
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.6;
}

.gallery-file-protocol-banner code {
  font-family: ui-monospace, monospace;
  font-size: 0.88em;
  background: rgba(26, 21, 18, 0.07);
  padding: 0.12em 0.35em;
  border-radius: 3px;
}

.gallery-backend-missing-banner {
  background: #fde8dc;
  border-color: #e0a080;
}

.gallery-public-readonly .gallery-card__remove {
  display: none !important;
}

.gallery-section {
  margin-bottom: 2.5rem;
}

.gallery-section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.gallery-section__title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--team-blue);
  margin: 0;
}

.gallery-card__thumb {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: linear-gradient(135deg, var(--team-blue) 0%, var(--team-light) 100%);
}

.gallery-card__thumb img,
.gallery-card__thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.video-thumb {
  position: relative;
}

.video-badge {
  position: absolute;
  bottom: 0.5rem;
  right: 0.5rem;
  background: rgba(0, 0, 0, 0.7);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 1rem;
}

.media-preview-panel {
  max-width: 90vw;
  max-height: 90vh;
  overflow: auto;
}

.member-highlight-selector {
  margin-top: 1rem;
}

.member-cards-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.member-highlight-card {
  width: 120px;
  padding: 0.75rem;
  background: #fff;
  border: 2px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.member-highlight-card:hover {
  border-color: var(--team-blue);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(26, 54, 93, 0.15);
}

.member-highlight-card.is-selected {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.member-highlight-card__avatar {
  width: 80px;
  height: 80px;
  margin: 0 auto 0.5rem;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, var(--team-blue) 0%, var(--team-light) 100%);
}

.member-highlight-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.member-highlight-card__avatar--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-alt);
}

.member-highlight-card__number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--team-blue);
}

.member-highlight-card__info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.member-highlight-card__name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
}

.member-highlight-card__role {
  font-size: 0.75rem;
  color: var(--muted);
}

.member-highlight-card__count {
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--accent);
}

.member-highlight-card__count span {
  font-weight: 700;
}

.member-highlight-display {
  min-height: 200px;
}

.member-highlight-title {
  font-size: 1.1rem;
  color: var(--team-blue);
  margin-bottom: 1rem;
}

.highlight-hint {
  text-align: center;
  color: var(--muted);
  padding: 2rem;
  background: var(--bg-alt);
  border-radius: 8px;
}

.preview-container {
  display: flex;
  gap: 2rem;
  max-height: 85vh;
  overflow: auto;
}

.preview-member-info {
  flex-shrink: 0;
  width: 280px;
  padding: 1.25rem;
  background: var(--bg-alt);
  border-radius: 12px;
}

.preview-member-avatar {
  width: 120px;
  height: 160px;
  margin: 0 auto 1rem;
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--team-blue) 0%, var(--team-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-member-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-member-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--team-blue);
}

.preview-member-details {
  text-align: center;
}

.preview-member-details h3 {
  margin: 0 0 1rem;
  font-size: 1.3rem;
  color: var(--team-blue);
}

.preview-member-details p {
  margin: 0.5rem 0;
  font-size: 0.95rem;
  color: var(--ink);
}

.preview-member-details strong {
  color: var(--muted);
}

.preview-media {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.preview-media video,
.preview-media img {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 8px;
}

.preview-caption {
  margin: 1rem 0 0;
  padding: 0.75rem;
  background: var(--bg-alt);
  border-radius: 6px;
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .preview-container {
    flex-direction: column;
  }
  
  .preview-member-info {
    width: 100%;
  }
  
  .preview-member-avatar {
    width: 100px;
    height: 133px;
  }
}

body.gallery-lightbox-open {
  overflow: hidden;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem 1.5rem;
}

.gallery-lightbox[hidden] {
  display: none !important;
}

.gallery-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 25, 35, 0.92);
  cursor: pointer;
}

.gallery-lightbox__panel {
  position: relative;
  z-index: 1;
  max-width: min(96vw, 1400px);
  max-height: 92vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  pointer-events: none;
}

.gallery-lightbox__panel > * {
  pointer-events: auto;
}

.gallery-lightbox__close {
  position: fixed;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 107, 53, 0.9);
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  font-family: system-ui, sans-serif;
  transition: all 0.2s ease;
}

.gallery-lightbox__close:hover {
  background: var(--accent-dark);
  transform: scale(1.1);
}

.gallery-lightbox__close:focus {
  outline: 3px solid var(--accent-soft);
  outline-offset: 2px;
}

.gallery-lightbox__img {
  max-width: 100%;
  max-height: calc(92vh - 7rem);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 48px rgba(0, 0, 0, 0.5);
  cursor: default;
}

.gallery-lightbox__name-row {
  width: min(100%, 520px);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  justify-content: center;
}

.gallery-lightbox__name-label {
  flex-shrink: 0;
  margin: 0;
  font-size: 0.9rem;
  color: #d4cbbf;
  letter-spacing: 0.12em;
}

.gallery-lightbox__name-input {
  flex: 1;
  min-width: 12rem;
  margin: 0;
  padding: 0.5rem 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 6px;
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
}

.gallery-lightbox__name-input::placeholder {
  color: var(--muted);
}

.gallery-lightbox__name-input:focus {
  outline: none;
  border-color: var(--accent-soft);
  box-shadow: 0 0 0 2px rgba(255, 107, 53, 0.35);
}

.site-footer {
  max-width: 1080px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  border-top: 3px solid var(--accent);
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  background: linear-gradient(180deg, transparent 0%, rgba(26, 54, 93, 0.03) 100%);
}

.members {
  margin-top: 2rem;
  background: #fff;
  border-radius: 12px;
  padding: 1rem;
}

.members__grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: 200px;
}

.members-cohort-section {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
  padding: 1.5rem 0;
}

.members-cohort-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
}

.members-cohort-divider__line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

.members-cohort-divider__label {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
  padding: 0 0.5rem;
}

.member-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.75rem 1.25rem 1.5rem;
  background: rgba(255, 255, 255, 0.55);
  border: 2px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 4px 20px var(--shadow);
  text-align: center;
  backdrop-filter: blur(8px);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
}

.member-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(255, 107, 53, 0.18);
}

.member-card__avatar {
  width: 200px;
  height: 150px;
  border-radius: 8px;
  overflow: hidden;
  border: 3px solid var(--team-blue);
  margin-bottom: 0.85rem;
  box-shadow: 0 4px 12px rgba(26, 54, 93, 0.2);
}

.member-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.member-card__badge {
  display: inline-block;
  padding: 0.2rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
  background: var(--accent);
  color: #fff;
}

.member-card__name {
  margin: 0 0 0.25rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--team-blue);
  letter-spacing: 0.05em;
}

.member-card__number {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
}

.member-card__intro {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.5;
}

.member-card__actions {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  display: flex;
  gap: 0.3rem;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.member-card:hover .member-card__actions {
  opacity: 1;
}

.member-card__edit-btn {
  padding: 0.3rem 0.6rem;
  border: none;
  border-radius: 4px;
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
}

.member-card__edit-btn:hover {
  background: var(--accent-dark);
}

.member-card__delete-btn {
  padding: 0.3rem 0.6rem;
  border: none;
  border-radius: 4px;
  background: #c53030;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
}

.member-card__delete-btn:hover {
  background: #a32020;
}

.member-preview {
  text-align: center;
  width: 100%;
  max-width: 280px;
  aspect-ratio: 9/16;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.5rem;
  box-sizing: border-box;
}

.modal#member-preview-modal .modal__panel.member-preview .member-preview__avatar {
  width: 200px !important;
  height: 150px !important;
  border-radius: 10px;
  overflow: hidden;
  border: 4px solid var(--team-blue);
  margin: 0 auto 1rem;
  box-shadow: 0 8px 24px rgba(26, 54, 93, 0.25);
}

.member-preview__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.member-preview__badge {
  display: inline-block;
  padding: 0.25rem 0.85rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
  background: var(--accent);
  color: #fff;
}

.member-preview__name {
  margin: 0 0 0.25rem;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--team-blue);
  letter-spacing: 0.05em;
}

.member-preview__number {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
}

.member-preview__height {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  color: var(--muted);
  font-weight: 500;
}

.member-preview__cohort {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  color: var(--accent);
  font-weight: 600;
}

.member-preview__intro {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.6;
}

/* 顶栏登录与管理用户 */
.auth-bar {
  position: relative;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 0 0 auto;
}

@media (max-width: 719px) {
  .auth-bar {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
  }
}

/* 登录按钮（下拉触发器） */
.auth-bar__login-btn {
  padding: 0.4rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: all 0.2s ease;
}

.auth-bar__login-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.6);
}

/* 下拉登录表单 */
.auth-bar__dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 100;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  padding: 1rem;
  min-width: 220px;
}

.auth-bar__dropdown[hidden] {
  display: none;
}

.auth-bar__form {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.auth-bar__input {
  width: 100%;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  font: inherit;
  font-size: 0.9rem;
  background: #fff;
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-bar__input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.15);
}

.auth-bar__btn {
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--accent);
  border-radius: 4px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  letter-spacing: 0.06em;
  transition: all 0.2s ease;
}

.auth-bar__btn:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.auth-bar__btn--ghost {
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.4);
}

.auth-bar__btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.auth-bar__btn--danger {
  border-color: #c53030;
  background: #c53030;
  color: #fff;
}

.auth-bar__error {
  margin: 0;
  font-size: 0.8rem;
  color: #ff8c6b;
  width: 100%;
}

.auth-bar__hint {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
}

.auth-bar__logged {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}

.auth-bar__name {
  color: #fff;
  font-weight: 500;
}

.auth-bar__link {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
}

.auth-bar__link:hover {
  color: var(--accent-soft);
}

/* 社团荣誉页面样式 */
.honors-admin {
  margin-bottom: 2rem;
  padding: 1.25rem 1.5rem;
  border: 2px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.45);
  box-shadow: 0 4px 16px var(--shadow);
}

.honors-admin__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.honors-admin__title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--team-blue);
  letter-spacing: 0.08em;
}

.honors-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 600px;
}

.honors-form__row {
  display: flex;
  gap: 1rem;
}

.honors-form__field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.honors-form__field--grow {
  flex: 1;
}

.honors-form__field--full {
  flex-basis: 100%;
}

.honors-form__field label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink);
}

.honors-form__field input,
.honors-form__field select {
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.9rem;
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
  box-sizing: border-box;
}

.honors-form__field select {
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.9rem;
  color: var(--ink);
  background: #fff;
  width: 100%;
  box-sizing: border-box;
}

.honors-form__field textarea {
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.9rem;
  color: var(--ink);
  font-family: inherit;
  resize: vertical;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.honors-form__field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.15);
}

.form-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
  justify-content: flex-end;
}

.honors-form__field input:focus,
.honors-form__field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.15);
}

.honor-title-selector {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.honor-title-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.85rem 0.5rem;
  border: 3px solid transparent;
  border-radius: 12px;
  background: var(--bg-alt);
  cursor: pointer;
  transition: all 0.25s ease;
  gap: 0.35rem;
}

.honor-title-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.honor-title-card--gold {
  background: linear-gradient(145deg, #fff9e6 0%, #ffe066 100%);
  border-color: #ffc000;
}

.honor-title-card--gold .honor-title-card__icon { font-size: 2rem; }
.honor-title-card--gold .honor-title-card__text { color: #b8860b; font-weight: 700; }

.honor-title-card--silver {
  background: linear-gradient(145deg, #f0f0f0 0%, #c0c0c0 100%);
  border-color: #a0a0a0;
}

.honor-title-card--silver .honor-title-card__icon { font-size: 2rem; }
.honor-title-card--silver .honor-title-card__text { color: #606060; font-weight: 700; }

.honor-title-card--bronze {
  background: linear-gradient(145deg, #fff0e6 0%, #cd7f32 100%);
  border-color: #b8720f;
}

.honor-title-card--bronze .honor-title-card__icon { font-size: 2rem; }
.honor-title-card--bronze .honor-title-card__text { color: #8b4513; font-weight: 700; }

.honor-title-card.is-selected {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.25);
}

.honor-title-card--gold.is-selected { border-color: #ffd700; box-shadow: 0 0 20px rgba(255, 193, 7, 0.5); }
.honor-title-card--silver.is-selected { border-color: #e0e0e0; box-shadow: 0 0 20px rgba(192, 192, 192, 0.5); }
.honor-title-card--bronze.is-selected { border-color: #e09050; box-shadow: 0 0 20px rgba(205, 127, 50, 0.5); }

.honor-title-card--none {
  background: linear-gradient(145deg, #f5f5f5 0%, #e0e0e0 100%);
  border-color: #c0c0c0;
}

.honor-title-card--none .honor-title-card__icon { font-size: 1.5rem; color: #888; }
.honor-title-card--none .honor-title-card__text { color: #666; font-weight: 700; }
.honor-title-card--none.is-selected { border-color: #a0a0a0; box-shadow: 0 0 15px rgba(128, 128, 128, 0.4); }

.honor-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.honor-badge__icon { font-size: 1.1rem; }

.honor-badge--gold {
  background: linear-gradient(145deg, #fff9e6 0%, #ffe066 100%);
  color: #b8860b;
  border: 2px solid #ffc000;
  box-shadow: 0 3px 10px rgba(255, 193, 7, 0.3);
}

.honor-badge--silver {
  background: linear-gradient(145deg, #f5f5f5 0%, #d0d0d0 100%);
  color: #505050;
  border: 2px solid #a0a0a0;
  box-shadow: 0 3px 10px rgba(160, 160, 160, 0.3);
}

.honor-badge--bronze {
  background: linear-gradient(145deg, #fff0e6 0%, #e8a060 100%);
  color: #8b4513;
  border: 2px solid #cd7f32;
  box-shadow: 0 3px 10px rgba(205, 127, 50, 0.3);
}

.honor-badge--default {
  background: var(--bg-alt);
  color: var(--ink);
  border: 2px solid var(--border);
}

.honors-form__actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  margin-top: 0.5rem;
}

/* 按钮样式 */
.btn {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 4px;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 0.04em;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
}

.btn--primary:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.btn--secondary {
  background: var(--team-blue);
  color: #fff;
}

.btn--secondary:hover {
  background: var(--team-light);
}

.btn--danger {
  background: #c53030;
  color: #fff;
}

.btn--danger:hover {
  background: #9b2c2c;
}

.btn--small {
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
}

/* 荣誉卡片列表 */
.honors-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.honor-card {
  background: #fff;
  border: 2px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 20px var(--shadow);
  transition: all 0.25s ease;
}

.honor-card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 32px rgba(255, 107, 53, 0.15);
  transform: translateY(-2px);
}

.honor-card__header {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(135deg, var(--team-blue) 0%, var(--team-light) 100%);
  color: #fff;
}

.honor-card__year {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  opacity: 0.9;
  min-width: 80px;
  text-align: center;
}

.honor-card__info {
  flex: 1;
}

.honor-card__title {
  margin: 0 0 0.35rem;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.honor-card__desc {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.85;
}

.honor-card__edit {
  align-self: flex-start;
  flex-shrink: 0;
}

.honor-card__lineup {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

.honor-card__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.honor-card__players {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.player-tag {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  background: rgba(255, 107, 53, 0.1);
  border: 1px solid rgba(255, 107, 53, 0.3);
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--team-blue);
  font-weight: 500;
}

.player-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  min-width: 90px;
  max-width: 120px;
}

.player-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.player-card__photo-wrap {
  cursor: zoom-in;
  display: block;
  width: 100%;
}

.player-card__photo-wrap:hover .player-card__photo {
  transform: scale(1.05);
}

.player-card__photo {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.player-card__photo--empty {
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--team-blue) 0%, var(--team-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.player-card__num {
  font-size: 2rem;
  font-weight: 800;
  color: rgba(255,255,255,0.6);
}

.player-card__info {
  width: 100%;
  padding: 0.5rem 0.25rem;
  text-align: center;
  background: var(--paper);
  border-top: 2px solid var(--accent);
}

.player-card__number {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.2;
}

.player-card__name {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.player-card__role {
  display: block;
  font-size: 0.7rem;
  color: var(--accent);
  font-weight: 500;
}

.player-card__height {
  display: block;
  font-size: 0.7rem;
  color: var(--muted);
}

.player-card__cohort {
  display: block;
  font-size: 0.7rem;
  color: var(--team-blue);
  font-weight: 500;
}

.player-card--simple {
  position: relative;
  width: 120px;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  border: 2px solid var(--border);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
}

.player-card--simple:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
  border-color: var(--team-blue);
}

.player-card--simple__avatar {
  width: 100%;
  aspect-ratio: 4/3;
  background: #fff;
  overflow: hidden;
}

.player-card--simple__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.player-card--simple__number {
  width: 100%;
  padding: 0.35rem 0.25rem;
  text-align: center;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--team-blue);
  background: rgba(26, 54, 93, 0.05);
  line-height: 1;
  user-select: none;
}

.player-card--simple__info {
  padding: 0.6rem 0.5rem;
  text-align: center;
}

.player-card--simple__name {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.15rem;
}

.player-card--simple__role {
  display: block;
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 500;
}

.honor-card__players {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-start;
}

.honor-card__players .player-card {
  cursor: default;
}

.form-hint {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.lineup-member-selector {
  margin-bottom: 0.5rem;
}

.member-selector-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
  padding: 0.75rem;
  background: var(--bg-alt);
  border-radius: 8px;
  max-height: 200px;
  overflow-y: auto;
}

.member-selector-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.5rem;
  background: #fff;
  border: 2px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  min-width: 80px;
}

.member-selector-item:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.member-selector-item.is-selected {
  border-color: var(--accent);
  background: rgba(255, 107, 53, 0.1);
}

.member-selector-item__avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 0.25rem;
  border: 2px solid var(--team-blue);
}

.member-selector-item__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.member-selector-item__name {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink);
  text-align: center;
}

.member-selector-item__role {
  font-size: 0.65rem;
  color: var(--accent);
  font-weight: 500;
}

.member-selector-item__cohort {
  font-size: 0.65rem;
  color: var(--muted);
}

.member-selector-item.is-selected .member-selector-item__avatar {
  border-color: var(--accent);
}

.selected-members {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.selected-member-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.5rem;
  background: var(--accent);
  color: #fff;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 500;
}

.selected-member-tag__remove {
  cursor: pointer;
  opacity: 0.8;
  font-size: 1rem;
  line-height: 1;
}

.selected-member-tag__remove:hover {
  opacity: 1;
}

.honor-card__empty {
  color: var(--muted);
  font-size: 0.9rem;
  font-style: italic;
}

.honor-card__photos {
  padding: 1rem 1.5rem;
}

.honor-card__photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 0.75rem;
}

.photo-thumb {
  aspect-ratio: 1;
  border-radius: 6px;
  overflow: hidden;
  cursor: zoom-in;
  border: 2px solid var(--border);
  transition: all 0.2s ease;
  background: linear-gradient(135deg, var(--team-blue) 0%, var(--team-light) 100%);
}

.photo-thumb:hover {
  border-color: var(--accent);
  transform: scale(1.05);
}

.photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 弹窗样式 */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 25, 35, 0.75);
  cursor: pointer;
}

.modal__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

.modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: var(--paper);
  border-radius: 10px 10px 0 0;
}

.modal__title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--team-blue);
}

.modal__close {
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal__close:hover {
  background: rgba(255, 107, 53, 0.1);
  color: var(--accent);
}

#edit-honor-form {
  padding: 1.25rem;
}

#edit-honor-form .honors-form__actions {
  justify-content: space-between;
}

/* 响应式 */
@media (max-width: 600px) {
  .honors-form__row {
    flex-direction: column;
  }

  .honor-card__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .honor-card__year {
    font-size: 2rem;
    min-width: auto;
  }

  .modal__panel {
    max-width: 95vw;
  }
}
