/* 单页组件样式（v2 新增共享文件）
 * 来源：最终定稿 34 个单页里仅有的 3 处内联 <style>，逐字抽出；不要再写回可编辑区。
 * ① majors.html <head>：三专业卡 390px 下单列
 * ② research-results.html 正文内：证书横向滚动展示
 * ③ student-style.html <head>：瀑布流照片墙 */

/* ① majors.html —— 三专业卡窄屏单列 */
/* 三个专业卡片：桌面固定三列一排；窄屏回落为单列 */
    @media (max-width: 768px){.majors-tri-cards{grid-template-columns:1fr !important;}}

/* ② research-results.html —— 证书横向滚动展示 */
@keyframes certFadeIn {
              from { opacity: 0; transform: scale(0.96); }
              to { opacity: 1; transform: scale(1); }
            }
            .cert-scroll-container::-webkit-scrollbar {
              height: 6px;
            }
            .cert-scroll-container::-webkit-scrollbar-thumb {
              background-color: #CBD5E1;
              border-radius: 3px;
            }
            .cert-card {
              transition: transform 0.2s ease, box-shadow 0.2s ease;
            }
            .cert-card:hover {
              transform: translateY(-4px);
              box-shadow: 0 10px 15px -3px rgba(11, 37, 69, 0.1);
            }
            .cert-card:hover .cert-placeholder {
              background: #CBD5E1 !important;
            }

/* ③ student-style.html —— 瀑布流照片墙 */
/* 瀑布流照片墙与卡片样式 */
    .masonry-wall {
      column-count: 3;
      column-gap: 20px;
    }
    @media (max-width: 992px) {
      .masonry-wall {
        column-count: 2;
        column-gap: 16px;
      }
    }
    @media (max-width: 576px) {
      .masonry-wall {
        column-count: 1;
      }
    }
    .style-card {
      break-inside: avoid;
      margin-bottom: 20px;
      background: #FFFFFF;
      border: 1px solid #E2E8F0;
      border-radius: 10px;
      overflow: hidden;
      box-shadow: 0 4px 6px -1px rgba(11, 37, 69, 0.06);
      transition: transform 0.25s ease, box-shadow 0.25s ease;
      cursor: pointer;
      display: block;
    }
    .style-card:hover {
      transform: translateY(-4px) scale(1.02);
      box-shadow: 0 10px 20px -2px rgba(11, 37, 69, 0.12);
    }
    .style-card-media {
      width: 100%;
      overflow: hidden;
      display: block;
      background: #F1F5F9;
      position: relative;
    }
    .style-card-img {
      width: 100%;
      height: auto;
      display: block;
      object-fit: cover;
      transition: transform 0.3s ease;
    }
    .style-card:hover .style-card-img {
      transform: scale(1.04);
    }
    .style-card-placeholder {
      width: 100%;
      background: #F1F5F9;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      color: #64748B;
      padding: 30px 20px;
      text-align: center;
      box-sizing: border-box;
      border-bottom: 1px solid #E2E8F0;
    }
    .style-card-placeholder .placeholder-icon {
      font-size: 2.2rem;
      margin-bottom: 8px;
      opacity: 0.8;
    }
    .style-card-placeholder .placeholder-text {
      font-size: 0.875rem;
      font-weight: 700;
      color: #475569;
      margin-bottom: 4px;
    }
    .style-card-placeholder .placeholder-sub {
      font-size: 0.75rem;
      color: #94A3B8;
    }
    .style-card-body {
      padding: 14px 16px 16px;
    }
    .style-card-tag {
      display: inline-block;
      padding: 2px 8px;
      border-radius: 4px;
      font-size: 0.75rem;
      font-weight: 600;
      margin-bottom: 6px;
    }
    .tag-youth { background: #FEF3C7; color: #92400E; }
    .tag-practice { background: #E0F2FE; color: #0369A1; }
    .tag-competition { background: #EDE9FE; color: #5B21B6; }
    .tag-alumni { background: #DCFCE7; color: #166534; }

    .style-card-title {
      font-size: 0.9375rem;
      font-weight: 700;
      color: #0B2545;
      margin-bottom: 6px;
      line-height: 1.4;
    }
    .style-card-desc {
      font-size: 0.8125rem;
      color: #64748B;
      line-height: 1.5;
      margin: 0;
    }

    /* 灯箱弹层 */
    .style-lightbox {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 100vw;
      height: 100vh;
      background: rgba(10, 37, 64, 0.85);
      backdrop-filter: blur(4px);
      z-index: 99999;
      align-items: center;
      justify-content: center;
      padding: 20px;
      box-sizing: border-box;
    }
    .style-lightbox.is-open {
      display: flex;
    }
    .lightbox-dialog {
      max-width: 820px;
      width: 100%;
      background: #FFFFFF;
      border-radius: 12px;
      overflow: hidden;
      box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
      position: relative;
      display: flex;
      flex-direction: column;
    }
    .lightbox-close {
      position: absolute;
      top: 12px;
      right: 12px;
      width: 36px;
      height: 36px;
      border-radius: 50%;
      background: rgba(0, 0, 0, 0.6);
      color: #FFFFFF;
      border: none;
      font-size: 1.25rem;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 10;
      transition: background 0.2s;
    }
    .lightbox-close:hover {
      background: rgba(0, 0, 0, 0.9);
    }
    .lightbox-content-media {
      background: #0F172A;
      display: flex;
      align-items: center;
      justify-content: center;
      min-height: 300px;
      max-height: 65vh;
      overflow: hidden;
    }
    .lightbox-content-media img {
      max-width: 100%;
      max-height: 65vh;
      object-fit: contain;
      display: block;
    }
    .lightbox-content-media .placeholder-box {
      padding: 60px 40px;
      text-align: center;
      color: #94A3B8;
      background: #1E293B;
      width: 100%;
      box-sizing: border-box;
    }
    .lightbox-caption {
      padding: 18px 24px;
      background: #FFFFFF;
      border-top: 1px solid #E2E8F0;
    }
    .lightbox-caption-tag {
      display: inline-block;
      padding: 2px 8px;
      border-radius: 4px;
      font-size: 0.75rem;
      font-weight: 600;
      margin-bottom: 6px;
    }
    .lightbox-caption-title {
      font-size: 1.1rem;
      font-weight: 700;
      color: #0B2545;
      margin-bottom: 4px;
    }
    .lightbox-caption-desc {
      font-size: 0.85rem;
      color: #64748B;
      margin: 0;
    }
