/* 成员大卡片 */
.member-card-large {
  display: inline-block;
  width: 40%;
  margin: 12px;
  padding: 25px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  box-shadow: var(--shadow-md);
  border: var(--border-glass);
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--time-normal) ease, background-color var(--time-normal) ease;
}

.member-card-large:hover {
  transform: translateY(-10px);
}

.member-card-large:active {
  transform: translateY(-5px) scale(0.9);
}

.member-avatar {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--shadow-sm);
  transition: transform var(--time-normal) ease;
}

.member-card-large:hover .member-avatar {
  transform: scale(1.05) rotate(2deg);
}

.member-name {
  margin: 20px 0;
  font-size: 21px;
  font-weight: 600;
  color: var(--text-primary);
}

.member-bio {
  margin: 22px 0 15px;
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--text-primary);
  text-align: left;
}

/* 三组合并布局 */
.three-groups-merged {
  position: relative;
  display: flex;
  flex-direction: row;
  overflow: hidden;
  justify-content: space-around;
  align-items: stretch;
  transition: transform var(--time-normal) ease;
}

.group-section {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  padding: 25px 10px;
  border-radius: var(--radius-md);
  transition: transform var(--time-normal) ease;
}

.group-section:hover {
  transform: translateY(-10px);
}

.group-section .tile-bg-icon {
  position: absolute;
  top: -10px;
  right: -10px;
  font-size: 120px;
  line-height: 1;
  opacity: 0.08;
  pointer-events: none;
  transform: rotate(15deg);
  z-index: 0;
}

.group-section .tile-title {
  position: relative;
  z-index: 1;
  margin: 0 0 20px;
  font-size: 22px;
  font-weight: 700;
  color: var(--theme-color);
}

.group-section .tile-title::after {
  display: block;
  width: 50px;
  height: 4px;
  margin: 12px auto 0;
  border-radius: 2px;
  background: var(--theme-color);
  opacity: 0.5;
  content: '';
}

.members-vertical {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  width: 100%;
}

.theme-yuxin { --theme-color: #667eea; }
.theme-photo { --theme-color: #f5576c; }
.theme-coop { --theme-color: #4facfe; }

/* 组织横向卡片 */
.org-card {
  display: flex;
  gap: 40px;
  width: 95%;
  margin: 30px auto;
  padding: 30px;
  border-radius: var(--radius-max);
  background: var(--bg-card);
  box-shadow: var(--shadow-md);
  border: var(--border-glass);
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--time-normal) ease, background-color var(--time-normal) ease;
}

.org-card:hover {
  transform: translateY(-10px);
}

.org-card:active {
  transform: translateY(-5px) scale(0.9);
}

.org-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 190px;
}

.org-avatar {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--shadow-sm);
  transition: transform var(--time-normal) ease;
}

.org-card:hover .org-avatar {
  transform: scale(1.08) rotate(2deg);
}

.org-name {
  margin-top: 20px;
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
}

.org-right {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
}

.org-desc {
  margin-bottom: 20px;
  font-size: 16px;
  width: 95%;
  line-height: 1.8;
  color: var(--text-primary);
}

.org-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

/* 视频卡片 */
.video-card {
  flex: 0 0 320px;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.5);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: transform var(--time-normal) ease, background-color var(--time-normal) ease;
}

.video-card:hover {
  transform: translateY(-10px);
}

.video-card:active {
  transform: scale(0.9);
}

.video-card a {
  display: block;
  text-decoration: none;
  color: inherit;
}

.video-cover {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 320 / 189;
  object-fit: cover;
  transition: transform var(--time-normal) ease;
}

.video-info {
  padding: 15px;
}

.video-title {
  margin-bottom: 5px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.7;
  color: var(--text-primary);
  white-space: normal;
  word-break: break-all;
}

/* 画廊组件 */
.horizontal-gallery {
  position: relative;
  width: 100%;
  margin: 20px 0;
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: var(--border-glass);
  background: var(--bg-gallery);
  box-shadow: var(--shadow-inset);
}

.gallery-title {
  margin: 50px 0 15px;
  font-size: 21px;
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
}

.scroll-container {
  position: relative;
  overflow-x: auto;
  padding: 30px 0;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.scroll-container::-webkit-scrollbar {
  display: none;
}

.scroll-wrapper {
  display: flex;
  gap: 20px;
  min-width: max-content;
  padding: 0 5%;
}

/* Hero 区域 */
.hero-section {
  height: 50vh;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-top: 60px;
  position: relative;
}

/* 主内容区 - 首页特殊处理 */
main {
  margin-top: 40px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
}

.hero-logo {
  max-width: 600px;
  width: 80%;
  height: auto;
  opacity: 0;
  transform: translateY(40px);
  animation: heroFadeIn 1s ease forwards;
  animation-delay: 0.2s;
}

.hero-tagline {
  font-size: 22px;
  font-weight: 600;
  color: #e7f0fe;
  margin-top: 30px;
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeIn 1s ease forwards;
  animation-delay: 0.4s;
}

.hero-hint {
  font-size: 14px;
  color: rgba(231, 240, 254, 0.8);
  margin-top: 10px;
  opacity: 0;
  animation: heroFadeIn 1s ease forwards;
  animation-delay: 0.8s;
}

@keyframes heroFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Frame Raw 全屏遮罩 */
.frame-raw-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.frame-raw-overlay.active {
  opacity: 1;
  visibility: visible;
}

.overlay-content {
  max-width: 700px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 50px 40px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: var(--border-glass);
  box-shadow: var(--shadow-xxl);
  transform: scale(0.9) translateY(20px);
  transition: transform 0.4s ease;
}

.frame-raw-overlay.active .overlay-content {
  transform: scale(1) translateY(0);
}

.overlay-logo {
  max-width: 300px;
  width: 60%;
  height: auto;
  display: block;
  margin: 0 auto 30px;
}

.overlay-text {
  color: #1a1a2e;
  line-height: 2;
  font-size: 16px;
}

.overlay-text p {
  margin: 0 0 24px 0;
  text-align: justify;
}

.overlay-text p:last-of-type {
  margin-bottom: 0;
}

.overlay-signature {
  font-size: 14px;
  color: #666;
  text-align: right;
  margin-top: 30px;
}

#overlay-close-btn {
  display: block;
  margin: 30px auto 0;
  cursor: pointer;
}

/* 区块与排版 */
.welcome-section {
  margin: 60px auto 0;
  max-width: 900px;
  text-align: center;
}

.card-title {
  text-align: center;
  margin-bottom: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.card-title::after {
  content: "";
  width: 60px;
  height: 4px;
  background: linear-gradient(135deg, #9333ea, #c084fc);
  border-radius: 2px;
}

.card-title-no-margin {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.card-title-no-margin::after {
  content: "";
  width: 60px;
  height: 4px;
  background: linear-gradient(135deg, #9333ea, #c084fc);
  border-radius: 2px;
}

.members-container {
  text-align: center;
  margin: 20px 0;
}

.hint-text {
  text-align: center;
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-secondary);
}

.gallery-hint {
  text-align: center;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 2;
}

.about-content {
  padding: 10px 30px;
  text-align: left;
}

.about-list {
  font-size: 15.5px;
  line-height: 2;
}

.link-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}

/* Frostart 新标签页卡片 */
.frostart-showcase {
  display: flex;
  align-items: center;
  gap: 40px;
  margin: 32px 0;
}
.frostart-showcase-logo {
  width: 150px;
  height: 150px;
  flex-shrink: 0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: var(--border-glass);
  object-fit: contain;
  padding: 20px;
  background: rgba(255,255,255,0.3);
}
.frostart-showcase-body { flex: 1; min-width: 0; }
.frostart-showcase-desc {
  font-size: 15.5px;
  line-height: 2;
  color: var(--text-primary);
}
.frostart-note {
  font-size: 14px;
  color: var(--text-secondary);
  opacity: 0.85;
}

.frostart-install {
  background: rgba(255,255,255,0.3);
  border: var(--border-glass);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-inset);
  padding: 22px 26px;
}
.frostart-install-title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text-primary);
  margin-bottom: 14px;
}
.frostart-install-step {
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--text-secondary);
  padding: 5px 0;
}
.frostart-install-step b {
  color: var(--text-primary);
  font-weight: 600;
}

@media (max-width: 540px) {
  .frostart-showcase { flex-direction: column; gap: 22px; margin: 24px 0; }
  .frostart-showcase-logo { width: 110px; height: 110px; padding: 18px; }
  .frostart-showcase-body { width: 100%; }
  .frostart-showcase-desc { text-align: left; }
  .frostart-install { padding: 20px; }
}

.link-desc {
  font-size: 16px;
}

.copyright {
  text-align: center;
  font-size: 13px;
  color: var(--text-primary);
  line-height: 1.6;
}

/* 响应式 */
@media (max-width: 900px) {
  .member-avatar { width: 100px; height: 100px; }
  .org-card { flex-direction: column; gap: 20px; padding: 30px; }
  .org-left { width: 100%; }
  .org-buttons { justify-content: center; }
  .video-card { flex: 0 0 280px; }
  .three-groups-merged { gap: 15px; padding: 25px 15px; }
  .group-section { padding: 20px 8px; }
  .group-section .tile-bg-icon { font-size: 80px; }
  .group-section .tile-title { font-size: 20px; }
}

@media (max-width: 540px) {
  main { margin-top: 30px; }
  .hero-welcome h2 { font-size: 20px; }
  .hero-welcome p { font-size: 14px; }
  .hero-hint { font-size: 12px; }
  .member-card-large { width: 100%; margin: 10px 0; padding: 25px 20px; }
  .member-avatar { width: 90px; height: 90px; }
  .member-name { font-size: 18px; margin: 15px 0; }
  .member-bio { font-size: 14px; }
  .org-card { padding: 25px 20px; }
  .org-name { font-size: 18px; }
  .org-desc { font-size: 14px; }
  .org-buttons button { min-width: auto; padding: 10px 16px; font-size: 13px; }
  .video-card { flex: 0 0 260px; }
  .video-title { font-size: 14px; }
  .three-groups-merged { flex-direction: column; gap: 30px; padding: 25px 15px; }
  .group-section { padding: 20px 10px; }
  .group-section:not(:last-child) { padding-bottom: 30px; border-bottom: 1px solid rgba(0, 0, 0, 0.06); }
  .group-section .tile-bg-icon { font-size: 100px; }
  .group-section .tile-title { font-size: 20px; }
  .gallery-title { font-size: 18px; margin: 40px 0 10px; }
  .gallery-hint { font-size: 12px; }
  .link-desc { font-size: 14px; }
  .about-list { font-size: 14px; }
  .copyright { font-size: 12px; }
  .overlay-content { padding: 30px 20px; }
  .overlay-logo { max-width: 200px; margin-bottom: 20px; }
  .overlay-text { font-size: 14px; line-height: 1.8; }
  .overlay-text p { margin-bottom: 16px; }
  .overlay-signature { font-size: 12px; }
}