@import url('../fonts/lxgw-wenkai-local.css');

  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

  html {
    scroll-behavior: smooth;
  }

  body {
    font-family: var(--font-display);
    font-weight: 400;
    background-color: #fff5f8;
    color: #333;
    line-height: 1.6;
    padding-top: 80px;
  }

  /* ===== 导航栏 ===== */
  .nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #fff;
    height: clamp(40px, 6vh, 58px);
    padding: 0 clamp(16px, 4vw, 32px);
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(255, 182, 193, 0.5);
    z-index: 1000;
    display: flex;
    gap: clamp(4px, 1vw, 8px);
    align-items: center;
    white-space: nowrap;
  }

  .nav-item {
    font-size: clamp(11px, 2vw, 16px);
    font-weight: 400;
    color: #aaa;
    cursor: pointer;
    padding: clamp(4px, 1vh, 6px) clamp(8px, 2vw, 12px);
    border-radius: 20px;
    transition: all 0.3s;
  }

  .nav-item:hover {
    color: #e91e8c;
    background-color: rgba(255, 183, 197, 0.2);
  }

  .nav-item.active {
    color: #e91e8c;
    font-weight: 700;
    background-color: rgba(255, 183, 197, 0.15);
  }

  .nav-separator {
    color: #ddd;
    font-size: clamp(10px, 1.5vw, 12px);
  }

  /* 移动端底部导航（桌面端隐藏） */
  .mobile-nav {
    display: none;
  }

  /* ===== 全屏板块 ===== */
  .page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 24px;
  }

  .page-inner {
    max-width: 1360px;
    width: 100%;
  }

  /* ===== Page1 - 介绍页 ===== */
  .page1-content {
    display: flex;
    gap: clamp(40px, 8vw, 80px);
    align-items: center;
  }

  .page1-left {
    flex: 1;
  }

  .page1-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
  }

  .birthday-text {
    font-size: 22px;
    font-weight: 300;
    color: #a08090;
    margin-bottom: 8px;
  }

  .name-container {
    display: flex;
    flex-direction: column;
    margin-bottom: 24px;
  }

  .name-line-1 {
    font-size: clamp(40px, 10vw, 110px);
    font-weight: 700;
    color: #333;
    line-height: 1.2;
  }

  .name-line-2 {
    font-size: clamp(36px, 9vw, 110px);
    font-weight: 700;
    color: #333;
    line-height: 1.2;
    display: block;
  }

  .name-highlight {
    position: relative;
    display: inline-block;
  }

  .name-highlight::after {
    content: '';
    position: absolute;
    left: -0.04em;
    right: -0.04em;
    top: 50%;
    transform: translateY(-50%);
    height: 0.55em;
    background-color: #ffb7c5;
    z-index: -1;
    opacity: 0.75;
    border-radius: 0.08em;
  }

  .romaji-text {
    font-size: clamp(14px, 3vw, 36.5px);
    font-weight: 300;
    color: #999;
    margin-bottom: 28px;
  }

  .profile-text {
    font-size: clamp(15px, 2.2vw, 18px);
    font-weight: 400;
    color: #666;
    line-height: 1.8;
  }

  /* ===== 倒计时 ===== */
  .countdown {
    margin-top: 28px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    max-width: 400px;
  }

  .cd-cell {
    position: relative;
    padding: 14px 8px 10px;
    background: rgba(255,255,255,0.6);
    border: 1px solid rgba(43,38,48,0.08);
    border-radius: 10px;
    text-align: center;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 70px;
  }

  .cd-cell .num {
    font-size: clamp(22px, 3vw, 32px);
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    color: #d4708a;
    line-height: 1;
    letter-spacing: -0.01em;
    min-width: 0;
    overflow: hidden;
    text-overflow: clip;
    white-space: nowrap;
    display: block;
    width: 100%;
  }

  .cd-cell .lbl {
    margin-top: 6px;
    font-size: 9px;
    font-weight: 400;
    letter-spacing: 0.15em;
    color: #999;
    display: block;
    width: 100%;
  }

  .cd-caption {
    margin-bottom: 10px;
    font-size: 12px;
    font-weight: 300;
    color: #999;
    letter-spacing: 0.08em;
  }

  .cd-caption .date {
    color: #d4708a;
    font-weight: 700;
    margin: 0 4px;
  }

  /* ===== 拍立得相纸卡片 ===== */
  :root {
    --font-display: 'LXGW WenKai', 'PingFang SC', 'Microsoft YaHei', serif;
    --accent: #d4708a;
    --accent-2: #c06078;
    --accent-3: #e89bb3;
    --ink-soft: #666;
    --sakura-deep: #d4708a;
  }

  .portrait-card {
    position: relative;
    background: #fffaf3;
    border-radius: 18px;
    padding: 14px 14px 0;
    display: flex;
    flex-direction: column;
    transform: rotate(var(--tilt, -2deg)) translateZ(0);
    will-change: transform;
    box-shadow:
      0 1px 0 rgba(255,255,255,0.9) inset,
      0 0 0 1px rgba(43,38,48,0.05),
      0 22px 40px -20px rgba(90,40,80,0.28),
      0 60px 80px -40px rgba(90,40,80,0.18);
    width: clamp(220px, 35vw, 380px);
  }

  .portrait-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    inset: 0;
    border-radius: inherit;
    background-image:
      radial-gradient(circle at 20% 30%, rgba(232,155,179,0.06), transparent 60%),
      radial-gradient(circle at 80% 80%, rgba(159,195,228,0.05), transparent 55%);
    pointer-events: none;
  }

  /* 斜贴胶带 */
  .portrait-tape {
    position: absolute;
    top: -10px;
    left: 18%;
    width: 120px;
    height: 26px;
    background:
      repeating-linear-gradient(135deg,
        rgba(255,255,255,0.35) 0 4px,
        transparent 4px 8px),
      linear-gradient(180deg, rgba(245,198,214,0.75), rgba(245,198,214,0.55));
    transform: rotate(-10deg);
    box-shadow: 0 4px 10px rgba(90,40,80,0.08);
    border-radius: 1px;
    z-index: 2;
  }

  .portrait-tape::before,
  .portrait-tape::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 6px;
    background: inherit;
    mix-blend-mode: normal;
  }

  .portrait-tape::before {
    left: -2px;
    clip-path: polygon(100% 0, 0 25%, 100% 50%, 0 75%, 100% 100%);
  }

  .portrait-tape::after {
    right: -2px;
    clip-path: polygon(0 0, 100% 25%, 0 50%, 100% 75%, 0 100%);
  }

  /* 照片区 */
  .portrait-photo-wrap {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 100%;  /* iOS Safari <15 后备方案：1:1 比例 */
    aspect-ratio: 1/1;
    border-radius: 10px;
    overflow: hidden;
    background-color: #ffffff;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.35);
  }

  /* 支持 aspect-ratio 的浏览器覆盖 padding-bottom */
  @supports (aspect-ratio: 1) {
    .portrait-photo-wrap {
      height: auto;
      padding-bottom: 0;
    }
  }

  .portrait-photo {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    transition: opacity 1s ease-in-out;
  }

  .portrait-photo.photo-next {
    opacity: 0;
  }



  /* 拍立得底部签名区 */
  .portrait-caption {
    height: 66px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 6px;
    font-family: var(--font-display);
    font-size: clamp(13px, 2vw, 15px);
    color: var(--ink-soft);
    letter-spacing: 0.04em;
  }

  .portrait-caption .sep {
    color: var(--sakura-deep);
  }

  .portrait-caption .years {
    font-feature-settings: "tnum";
    letter-spacing: 0.08em;
  }

  /* ===== 滚动提示 ===== */
  .scroll-hint {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0.6;
    visibility: visible;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    animation: scrollHintBounce 2s ease-in-out infinite;
    z-index: 100;
  }

  .scroll-hint.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  .scroll-hint-text {
    font-size: clamp(11px, 1.5vw, 13px);
    color: #a08090;
    letter-spacing: 0.15em;
    text-transform: lowercase;
  }

  .scroll-hint-arrow {
    width: 16px;
    height: 16px;
    border-right: 2px solid #a08090;
    border-bottom: 2px solid #a08090;
    transform: rotate(45deg);
    animation: scrollHintArrow 1.5s ease-in-out infinite;
  }

  @keyframes scrollHintBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(6px); }
  }

  @keyframes scrollHintArrow {
    0%, 100% { transform: rotate(45deg) translateY(0); }
    50% { transform: rotate(45deg) translateY(3px); }
  }

  /* ===== Page2 - 详情页 ===== */
  .page-title {
    font-size: clamp(24px, 3.5vw, 32px);
    font-weight: 700;
    text-align: center;
    color: #a08090;
    margin-bottom: 48px;
  }

  .page-title[data-timeline-lang] {
    cursor: pointer;
    user-select: none;
    position: relative;
    transition: opacity 0.3s ease;
  }

  .page-title[data-timeline-lang]:hover {
    opacity: 0.8;
  }

  .timeline-lang-text {
    display: inline-block;
    border-bottom: 2px solid #a08090;
    padding-bottom: 4px;
    transition: opacity 0.4s ease, transform 0.4s ease;
    min-width: 120px;
  }

  .page-title[data-timeline-lang="cn"] .timeline-lang-text {
    opacity: 0;
    transform: translateY(-8px);
  }

  .timeline-lang-text-alt {
    display: none;
    opacity: 0;
    transform: translateY(8px);
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%) translateY(8px);
    border-bottom: 2px solid #a08090;
    padding-bottom: 4px;
    transition: opacity 0.4s ease, transform 0.4s ease;
    min-width: 120px;
  }

  .page-title[data-timeline-lang="cn"] .timeline-lang-text-alt {
    display: inline-block;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }

  .timeline-lang-hint {
    display: block;
    font-size: 11px;
    font-weight: 300;
    color: #888;
    margin-top: 8px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
  }

  .page-title[data-timeline-lang]:hover .timeline-lang-hint {
    opacity: 1;
  }

  .profile-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
  }

  .profile-left-column {
    display: flex;
    flex-direction: column;
    gap: 18px;
  }

  .profile-left-column > .profile-card,
  .profile-left-column > .feature-card {
    width: 100%;
    box-sizing: border-box;
  }

  .profile-left-column > .feature-card {
    flex: 1;
  }

  @media (max-width: 768px) {
    .profile-container {
      grid-template-columns: 1fr;
      gap: 18px;
    }

    .profile-left-column {
      gap: 16px;
    }
  }

  .profile-card {
    background: #fffdf5;
    border-radius: 20px;
    box-shadow: 
      0 2px 8px rgba(212, 112, 138, 0.08),
      0 8px 24px rgba(212, 112, 138, 0.06);
    overflow: hidden;
    border: 1px solid rgba(240, 200, 210, 0.5);
  }

  .profile-card-header {
    padding: 18px 20px 12px;
    background: linear-gradient(160deg, #fef0f3 0%, #fce4ec 100%);
    border-bottom: 1px dashed rgba(212, 112, 138, 0.2);
  }

  .profile-card-header h3 {
    font-size: 13px;
    font-weight: 700;
    color: #c08090;
    margin: 0;
    line-height: 1.4;
    letter-spacing: 0.05em;
  }

  .profile-info {
    padding: 6px 0 12px;
  }

  .info-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 18px;
    border-bottom: 1px solid rgba(240, 220, 225, 0.4);
  }

  .info-row:last-child {
    border-bottom: none;
  }

  .info-label {
    font-size: 13px;
    color: #b09090;
    font-weight: 400;
  }

  .info-value {
    font-size: 13px;
    color: #d4708a;
    text-align: right;
    font-weight: 400;
  }

  .profile-right-section {
    display: flex;
    flex-direction: column;
    gap: 18px;
  }

  .top-cards-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }

  .mini-card {
    background: #fffdf5;
    border-radius: 16px;
    box-shadow: 
      0 2px 6px rgba(212, 112, 138, 0.06),
      0 6px 16px rgba(212, 112, 138, 0.04);
    overflow: hidden;
    border: 1px solid rgba(240, 200, 210, 0.4);
    position: relative;
  }

  .mini-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40px;
    height: 40px;
    background: radial-gradient(circle at top right, rgba(252, 228, 236, 0.6), transparent 70%);
    pointer-events: none;
  }

  .mini-card-header {
    padding: 12px 16px 10px;
    background: linear-gradient(135deg, #fef0f3 0%, #fce4ec 60%, #fff 100%);
    border-bottom: 1px solid rgba(240, 200, 210, 0.3);
  }

  .mini-card-header h4 {
    font-size: 12px;
    font-weight: 700;
    color: #c08090;
    margin: 0;
    letter-spacing: 0.08em;
  }

  .mini-card-content {
    padding: 14px 16px;
  }

  .mini-card-content p {
    margin: 0;
    font-size: 13px;
    font-weight: 400;
    color: #888;
    line-height: 1.6;
  }

  .nickname-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
  }

  .nickname-tag {
    display: inline-block;
    padding: 5px 14px;
    font-size: 13px;
    font-weight: 400;
    color: #d4708a;
    background: rgba(255, 245, 248, 0.9);
    border: 1px solid rgba(212, 112, 138, 0.18);
    border-radius: 20px;
    box-shadow: 0 1px 3px rgba(212, 112, 138, 0.08);
    transition: all 0.25s ease;
    letter-spacing: 0.04em;
  }

  .nickname-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(212, 112, 138, 0.15);
    color: #c06078;
    border-color: rgba(212, 112, 138, 0.35);
  }

  .food-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .food-item {
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 10px;
    border: 1px solid rgba(240, 200, 210, 0.3);
  }

  .food-label {
    display: inline-block;
    padding: 1px 6px;
    background: #f8b4c4;
    border-radius: 8px;
    font-size: 9px;
    color: #fff;
    margin-bottom: 4px;
  }

  .food-item p {
    margin: 0;
    font-size: 12px;
    color: #777;
  }

  .feature-card {
    background: #fffdf5;
    border-radius: 20px;
    box-shadow: 
      0 2px 8px rgba(212, 112, 138, 0.08),
      0 8px 24px rgba(212, 112, 138, 0.06);
    overflow: hidden;
    border: 1px solid rgba(240, 200, 210, 0.5);
  }

  .feature-card-header {
    padding: 16px 20px 10px;
    background: linear-gradient(160deg, #fef0f3 0%, #fce4ec 100%);
    border-bottom: 1px dashed rgba(212, 112, 138, 0.2);
  }

  .feature-card-header h3 {
    font-size: 13px;
    font-weight: 700;
    color: #c08090;
    margin: 0;
    line-height: 1.4;
    letter-spacing: 0.05em;
  }

  .feature-card-content {
    padding: 12px 20px 16px;
  }

  .feature-card-content p {
    margin: 0 0 14px 0;
    font-size: 13px;
    color: #777;
    line-height: 1.7;
  }

  .feature-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }

  .tag {
    padding: 3px 10px;
    background: rgba(252, 228, 236, 0.7);
    border-radius: 16px;
    font-size: 11px;
    color: #d4708a;
    border: 1px solid rgba(240, 180, 200, 0.3);
  }

  .phrase-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 22px;
  }

  .phrase-item {
    padding: 8px 0;
    border-bottom: 1px dashed rgba(43,38,48,0.08);
  }

  .phrase-item:last-child {
    border-bottom: 0;
  }

  .phrase-main {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 2px;
    flex-wrap: wrap;
  }

  .phrase-jp {
    font-size: 13px;
    color: #d4708a;
    letter-spacing: 0.02em;
  }

  .phrase-sep {
    color: #c8a0b0;
    font-size: 11px;
  }

  .phrase-cn {
    font-size: 12px;
    color: #666;
  }

  .phrase-usage {
    display: block;
    font-size: 11px;
    color: #aaa;
    line-height: 1.6;
  }

  .phrase-jp .placeholder-text {
    color: #d4708a;
  }

  .phrase-cn .placeholder-text {
    color: #666;
  }

  .phrase-usage .placeholder-text {
    color: #aaa;
  }

  .placeholder-text {
    color: #d4708a;
    font-style: normal;
  }

  /* 响应式布局 */
  @media (max-width: 950px) {
    .profile-container {
      grid-template-columns: 1fr;
      gap: 18px;
    }

    .profile-left-column {
      gap: 16px;
    }

    .top-cards-row {
      grid-template-columns: 1fr;
      gap: 16px;
    }

    .phrase-grid {
      grid-template-columns: 1fr;
    }
  }

  /* ===== Page3 - 时间线 ===== */
  .timeline-wrapper {
    max-width: 600px;
    margin: 0 auto;
  }

  .timeline {
    position: relative;
    padding-left: 40px;
  }

  .timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #f8bbd0;
  }

  .timeline-item {
    position: relative;
    margin-bottom: 40px;
  }

  .timeline-dot {
    position: absolute;
    left: -40px;
    top: 4px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: #f8bbd0;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }

  .timeline-item.highlight .timeline-dot {
    background-color: #c2185b;
    width: 20px;
    height: 20px;
    left: -42px;
  }

  .timeline-date {
    font-size: 13px;
    color: #a08090;
    font-weight: 700;
    margin-bottom: 4px;
  }

  .timeline-title {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin-bottom: 4px;
  }

  .timeline-desc {
    font-size: 14px;
    font-weight: 400;
    color: #666;
  }

  .timeline-video-link {
    color: #d4708a;
    cursor: pointer;
    border-bottom: 1px dashed #d4708a;
    transition: all 0.2s;
  }

  .timeline-video-link:hover {
    color: #e91e8c;
    border-bottom-color: #e91e8c;
  }

  .timeline-external-link {
    color: #d4708a;
    cursor: pointer;
    border-bottom: 1px dashed #d4708a;
    transition: all 0.2s;
  }

  .timeline-external-link:hover {
    color: #e91e8c;
    border-bottom-color: #e91e8c;
  }

  /* 时间线悬浮提示框 */
  .timeline-tooltip {
    position: absolute;
    left: -240px;
    top: 50%;
    transform: translateY(-50%);
    width: 200px;
    background: linear-gradient(135deg, #fff5f8 0%, #ffe8f0 100%);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    padding: 12px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 100;
    border: 2px solid #f8bbd0;
  }

  .timeline-item:hover .timeline-tooltip,
  .timeline-item.tooltip-visible .timeline-tooltip {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .tooltip-arrow {
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 10px solid #f8bbd0;
  }

  .tooltip-image {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease;
  }

  .tooltip-image:hover {
    transform: scale(1.02);
  }

  .tooltip-caption {
    display: block;
    text-align: center;
    font-size: 12px;
    color: #d4708a;
    margin-top: 8px;
    font-weight: 400;
  }

  /* 响应式调整 */
  @media (max-width: 900px) {
    .timeline-tooltip {
      left: auto;
      right: 0;
      top: -220px;
      transform: translateY(0);
    }

    .tooltip-arrow {
      right: auto;
      left: 50%;
      top: auto;
      bottom: -10px;
      transform: translateX(-50%);
      border-left: none;
      border-right: none;
      border-top: 10px solid #f8bbd0;
      border-bottom: 10px solid transparent;
    }
}

/* ===== 时间线图片查看器 ===== */
.timeline-image-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3000;
  padding: 20px;
}

.timeline-image-container {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
}

.timeline-image-large {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.timeline-image-close {
  position: absolute;
  top: -45px;
  right: 0;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.timeline-image-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

/* ===== Page4 - 精选切片 ===== */
  .video-section {
    margin-bottom: 40px;
  }

  .video-section:last-child {
    margin-bottom: 0;
  }

  .section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px dashed rgba(212, 112, 138, 0.3);
  }

  .section-dot {
    width: 12px;
    height: 12px;
    background: linear-gradient(135deg, #f8b4c4 0%, #f098b0 100%);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(212, 112, 138, 0.4);
  }

  .section-title {
    font-size: 18px;
    font-weight: 700;
    color: #d4708a;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(212, 112, 138, 0.3) 0%, transparent 100%);
    margin-left: 10px;
  }

  .section-desc {
    font-size: 13px;
    font-weight: 300;
    color: #999;
    margin: 0;
    margin-left: auto;
  }

  .video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  @media (max-width: 768px) {
    .video-grid {
      grid-template-columns: repeat(2, 1fr);
      gap: 16px;
    }

    .section-header {
      flex-wrap: wrap;
    }

    .section-title::after {
      display: none;
    }

    .section-desc {
      margin-left: 0;
      width: 100%;
    }
  }

  @media (max-width: 480px) {
    .video-grid {
      grid-template-columns: 1fr;
    }
  }

  .video-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(212, 112, 138, 0.08);
    border: 1px solid rgba(240, 200, 210, 0.4);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
  }

  .video-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(212, 112, 138, 0.15);
  }

  /* 默认隐藏多余视频卡片，显示查看更多按钮（所有设备） */
  .video-more-hidden {
    display: none;
  }

  .video-load-more {
    display: block;
    margin: 16px auto 0;
    padding: 10px 28px;
    background: #fff;
    border: 1px solid rgba(212, 112, 138, 0.2);
    border-radius: 24px;
    color: #d4708a;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-display);
    letter-spacing: 1px;
  }

  .video-load-more:hover {
    background: #fff5f8;
    border-color: rgba(212, 112, 138, 0.4);
  }

  .video-load-more.expanded {
    border-color: rgba(212, 112, 138, 0.4);
    background: #fff5f8;
  }

  .video-thumbnail {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: linear-gradient(135deg, #fef0f3 0%, #fce4ec 100%);
    overflow: hidden;
    /* 与卡片圆角对齐（卡片 16px 圆角 - 1px 边框 ≈ 15px 内圆角），
       让封面图自身被圆角裁剪，彻底消除移动端顶部白角 */
    border-radius: 15px 15px 0 0;
  }

  .video-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* 直接给封面图本体加圆角，圆角裁剪作用在图片栅格上而非依赖父级 overflow，
       从根上消除移动端（百度/UC/X5、iOS Safari）顶部白边 */
    border-radius: 15px 15px 0 0;
  }

  .video-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    padding: 3px 8px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 4px;
    font-size: 11px;
    color: #fff;
    font-family: var(--font-display);
  }

  .video-info {
    padding: 14px;
  }

  .video-title {
    font-size: 14px;
    font-weight: 700;
    color: #333;
    margin: 0 0 6px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .video-desc {
    font-size: 12px;
    font-weight: 400;
    color: #999;
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    box-orient: vertical;
    overflow: hidden;
  }

  /* ===== 视频播放器悬浮窗口 ===== */
  .video-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(43, 38, 48, 0.85);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  .video-modal-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  .video-modal {
    width: 90%;
    max-width: 960px;
    background: linear-gradient(145deg, #fffdf5 0%, #fff5f8 100%);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 
      0 20px 60px rgba(43, 38, 48, 0.4),
      0 0 0 1px rgba(255, 255, 255, 0.1);
    transform: scale(0.9);
    transition: transform 0.3s ease;
  }

  .video-modal-overlay.active .video-modal {
    transform: scale(1);
  }

  .video-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 10;
  }

  .video-modal-close:hover {
    background: #d4708a;
    color: #fff;
    transform: rotate(90deg);
  }

  .video-modal-content {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: #000;
  }

  .video-modal-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
  }

  .video-modal-info {
    padding: 20px 24px;
  }

  .video-modal-title {
    font-size: clamp(16px, 2vw, 20px);
    font-weight: 700;
    color: #333;
    margin: 0 0 6px 0;
    line-height: 1.4;
  }

  .video-modal-desc {
    font-size: 14px;
    color: #999;
    line-height: 1.6;
    margin: 0;
  }

  @media (max-width: 768px) {
    .video-modal {
      width: 95%;
      border-radius: 16px;
    }

    .video-modal-info {
      padding: 16px 20px;
    }
  }

  /* ===== 粉丝留言 ===== */
  .messages-wrapper {
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
    min-height: 400px;
    background: #FFF5F8;
    border-radius: 0;
    box-shadow: none;
    border: none;
    overflow: visible;
    position: relative;
    padding: 24px 0 40px;
  }

  /* 顶部统计栏 */
  .messages-top-bar {
    padding: 0 24px 20px;
    border-bottom: 1px dashed rgba(255, 182, 193, 0.3);
    margin-bottom: 24px;
  }

  .messages-stats {
    font-size: 14px;
    color: #666;
  }

  .messages-stats span {
    color: #FF698F;
    font-weight: 400;
  }

  /* 留言卡片容器 - 两列瀑布流布局 */
  .messages-container {
    padding: 0 12px;
    min-height: 300px;
    overflow: visible;
    column-count: 2;
    column-gap: 20px;
  }

  /* 响应式：小屏幕单列布局 */
  @media (max-width: 768px) {
    .messages-container {
      column-count: 1;
    }
  }

  /* 留言卡片样式 */
  .message-card {
    background: #FFE6ED;
    border-radius: 4px;
    padding: 0;
    box-shadow:
      2px 3px 10px rgba(0,0,0,0.05),
      0 6px 18px rgba(255, 182, 193, 0.15);
    border: 1px solid rgba(255, 182, 193, 0.15);
    transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.25, 1), box-shadow 0.35s ease, height 0.3s ease;
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
    position: relative;
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;
    break-inside: avoid;
    margin-bottom: 20px;
    transform: rotate(var(--tilt, -0.6deg));
    cursor: default;
    overflow: visible;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
   }

   .message-card.flippable {
     cursor: pointer;
   }

  /* 卡片悬浮状态 */
  .message-card-hover {
    transform: rotate(0deg) translateY(-2px) !important;
    box-shadow:
      3px 6px 20px rgba(0,0,0,0.08),
      0 12px 30px -10px rgba(255, 182, 193, 0.3),
      0 0 0 2px rgba(255, 182, 193, 0.3) !important;
  }

  /* 3D 翻转容器 */
  .message-card-inner {
    position: relative;
    width: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
  }

  .message-card-inner.flipped {
    transform: rotateY(180deg);
  }

  .message-card-front,
  .message-card-back {
    width: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    padding: 20px 22px;
  }

  /* 「能屈能伸」的核心：始终只让「当前朝向用户的那一面」留在普通文档流里，
     由它独自撑起 inner / 卡片的高度；另一面用绝对定位脱离文档流——
     既不再撑高父容器，又因身处 preserve-3d 容器内、仍正常参与 3D 翻转。
     于是从长(日)面翻到短(中)面时，撑高的不再是隐藏的正面，高度自然回落，
     且 releaseCardHeight 释放内联高度后回归的 auto 高度=当前面，不再被锁死成 max。 */
  .message-card-front {
    position: relative;
    font-family: var(--font-display);
    /* 优化文本渲染，避免旋转导致的模糊 */
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* 使用 3D 加速提升渲染质量 */
    transform: translateZ(0);
    backface-visibility: hidden;
  }

  .message-card-back {
    position: absolute;
    top: 0;
    left: 0;
    transform: rotateY(180deg);
    font-family: var(--font-display);
  }

  /* 翻到背面后角色互换：背面入流定高，正面脱流、不再撑高 */
  .message-card-inner.flipped .message-card-front {
    position: absolute;
    top: 0;
    left: 0;
  }

  .message-card-inner.flipped .message-card-back {
    position: relative;
  }

  /* 胶带装饰 — 手撕便签风 */
  .message-tape {
    display: block;
    width: 48px;
    height: 14px;
    margin: -26px auto 10px;
    background: linear-gradient(
      135deg,
      rgba(255,255,255,0.7) 0%,
      rgba(255,255,255,0.5) 40%,
      rgba(245,235,225,0.4) 100%
    );
    border-radius: 1px;
    transform: rotate(-5deg);
    pointer-events: none;
    box-shadow:
      0 1px 2px rgba(0,0,0,0.04),
      inset 0 1px 0 rgba(255,255,255,0.5);
  }

  /* 卡片内容区域 */
  .message-content {
    position: relative;
    z-index: 1;
    min-height: 3em;
  }

  /* 卡片底部信息栏 */
  .message-footer {
    position: relative;
    z-index: 1;
  }

  .message-author {
    font-size: 13px;
    color: #FF698F;
    font-style: normal;
  }

  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    99% {
      opacity: 1;
      transform: translateY(0);
    }
    to {
      opacity: 1;
    }
  }

  /* ===== 分页组件 ===== */
  .pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 32px;
    padding: 0;
    background: transparent;
    border-radius: 0;
    backdrop-filter: none;
  }

  .pagination-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #FFB6C1;
    border-radius: 6px;
    background: #fff;
    color: #FF698F;
    font-size: 16px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
  }

  .pagination-btn:hover:not(:disabled) {
    background: #FFE6ED;
    border-color: #FF698F;
  }

  .pagination-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    border-color: #FFCCDB;
    color: #CCC;
  }

  .pagination-numbers {
    display: flex;
    gap: 4px;
  }

  .pagination-number {
    width: 32px;
    height: 32px;
    border: 1px solid #FFB6C1;
    border-radius: 6px;
    background: #fff;
    color: #FF698F;
    font-size: 13px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: none;
  }

  .pagination-number:hover {
    background: #FFF0F3;
    border-color: #FF698F;
  }

  .pagination-number.active {
    background: #FFB6C1;
    border-color: #FFB6C1;
    color: #fff;
    box-shadow: none;
  }

  .pagination-dots {
    color: #FF9FB3;
    font-size: 14px;
    padding: 0 4px;
    opacity: 0.6;
  }

  /* ===== 弹幕留言板 ===== */
  .danmaku-container {
    position: fixed;
    top: 90px;
    left: 0;
    right: 0;
    height: calc(60vh - 90px - env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    box-sizing: border-box;
    pointer-events: none;
    /* 层级压在顶层 UI 之下，且下沉到樱花之下，配合 isolation 建立独立堆叠上下文 */
    z-index: 9;
    isolation: isolate;
    /* 硬兜底裁掉飞出舞台的合成层 */
    overflow: hidden;
    contain: layout style;
    user-select: none;
    /* mask 只挂在舞台层本身，不在它上面叠加 transform */
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 5%, #000 95%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, #000 5%, #000 95%, transparent 100%);
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
  }



  .danmaku-item {
    white-space: nowrap;
    font-size: 14px;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 6px 14px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    animation: danmaku-scroll linear forwards;
    pointer-events: auto;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease;
    will-change: transform;
    /* iOS 抗撕裂：稳定独立合成层 + 关闭背面渲染，消除横向滚动时的撕裂/重绘。
       因弹幕已收纳进受控舞台层（z60 + isolation），此处的合成层提升被封死在舞台内，
       绝不会穿透挡住顶层 UI —— 这正是「既要 GPU 加速、又不破坏层级」的破局点 */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    /* 防止弹幕把导航栏挡住（双保险，主防线是上面的舞台层 isolation） */
    z-index: 1;
    /* 文字加一个极淡描边，在浅色背景上更清晰 */
    text-shadow: 0 0 2px rgba(255,255,255,0.8), 0 0 4px rgba(255,255,255,0.6);
  }
  
  .danmaku-item:hover {
    animation-play-state: paused !important;
    transform: scale(1.08);
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    z-index: 100;
  }

  .danmaku-item.flipping {
    transform: scaleX(0);
    opacity: 0;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .danmaku-item .danmaku-name {
    color: #c05850;
    font-weight: 400;
    margin-right: 4px;
  }

  .danmaku-item .danmaku-text {
    color: #444;
  }

  @keyframes danmaku-scroll {
    from {
      transform: translate3d(100vw, 0, 0);
    }
    to {
      transform: translate3d(-120%, 0, 0);
    }
  }

  /* ===== 控制按钮 ===== */
  .control-buttons {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 999;
  }

  .control-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: none;
    background-color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    box-shadow: 0 2px 12px rgba(255, 183, 197, 0.4);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: visible;
  }

  .control-btn:hover {
    background-color: #fff;
    box-shadow: 0 4px 16px rgba(255, 183, 197, 0.6);
    transform: scale(1.05);
  }

  .control-btn.off {
    background-color: rgba(200, 200, 200, 0.7);
    color: #999;
  }

  .control-btn.off:hover {
    background-color: rgba(210, 210, 210, 0.8);
  }

  .control-btn.on {
    background-color: #d4708a;
    color: #fff;
  }

  .control-btn.on:hover {
    background-color: #c06078;
  }

  .btn-text {
    font-size: 18px;
    font-weight: 400;
    line-height: 1;
    position: relative;
    z-index: 1;
  }

  .strike-line {
    position: absolute;
    width: 70%;
    height: 2px;
    background-color: currentColor;
    transform: rotate(-45deg);
    opacity: 0;
    transition: opacity 0.3s;
  }

  .control-btn.off .strike-line {
    opacity: 1;
  }

  .btn-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background-color: #d4708a;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 2;
  }

  .control-btn.on .btn-badge {
    opacity: 1;
  }

  /* ===== 音乐按钮专用样式 ===== */
  #musicBtn.on {
    animation: musicPulse 2s ease-in-out infinite;
  }

  @keyframes musicPulse {
    0%, 100% {
      box-shadow: 0 2px 12px rgba(255, 183, 197, 0.4);
    }
    50% {
      box-shadow: 0 2px 18px rgba(212, 112, 138, 0.6);
    }
  }

  /* ===== 响应式 ===== */
  @media (max-width: 950px) {
    .page1-content {
      flex-direction: column;
      gap: 40px;
    }
  }

  @media (max-width: 768px) {
    .birthday-text {
      font-size: clamp(9px, 1.8vw, 14px);
      margin-bottom: 4px;
    }

    .name-line-1 {
      font-size: clamp(32px, 9vw, 52px);
    }

    .name-line-2 {
      font-size: clamp(28px, 8vw, 46px);
    }

    .name-container {
      margin-bottom: 12px;
    }

    .romaji-text {
      font-size: clamp(10px, 2.5vw, 16px);
      margin-bottom: 14px;
    }

    .profile-text {
      font-size: clamp(12px, 2.8vw, 16px);
    }
  }

/* ===== Page7 - 致谢 ===== */
.page7-inner {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.credits-wrapper {
  margin-top: 60px;
}

.credits-body {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  align-items: center;
}

.credits-left {
  text-align: center;
}

.credits-text {
  font-size: clamp(16px, 2.5vw, 20px);
  color: #666;
  line-height: 2.2;
  margin-bottom: 48px;
}

.credits-text .placeholder-text {
  color: #d4708a;
}

.credits-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  margin-bottom: 48px;
}

.credits-item {
  color: #888;
  font-size: clamp(14px, 2vw, 16px);
}

.credits-item .placeholder-text {
  color: #d4708a;
  font-weight: 400;
}

.credits-final {
  margin-top: 32px;
  margin-bottom: 0;
  font-size: clamp(22px, 3.5vw, 32px);
  color: #d4708a;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
}

.credits-final .placeholder-text {
  color: #d4708a;
}

.credits-right {
  display: flex;
  justify-content: center;
}

.credits-gift {
  width: 100%;
  max-width: 340px;
}

.credits-gift img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

.follow-section {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.follow-section .follow-text {
  font-size: clamp(15px, 2.2vw, 18px);
  color: #888;
  font-weight: 400;
}

.social-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  color: #fff;
  text-decoration: none;
  border-radius: 20px;
  font-size: clamp(13px, 2vw, 15px);
  font-weight: 400;
  transition: all 0.3s ease;
}

.social-link:hover {
  transform: translateY(-2px);
}

.social-link-bilibili {
  background: linear-gradient(135deg, #d4708a 0%, #e89bb3 100%);
  box-shadow: 0 4px 15px rgba(212, 112, 138, 0.3);
}

.social-link-twitter {
  background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

.social-link-youtube {
  background: linear-gradient(135deg, #c4302b 0%, #d6302b 100%);
  box-shadow: 0 4px 15px rgba(196, 48, 43, 0.3);
}

  .sakura {
    position: fixed;
    top: -50px;
    color: #ffb7c5;
    animation: sakura-fall linear forwards;
    pointer-events: none;
    z-index: 10;
  }

  @keyframes sakura-fall {
    0% {
      transform: translateY(0) rotate(0deg) translateX(0);
      opacity: 0;
    }
    10% {
      opacity: 1;
    }
    90% {
      opacity: 1;
    }
    100% {
      transform: translateY(110vh) rotate(360deg) translateX(50px);
      opacity: 0;
    }
  }

/* ===== Page6 - 特殊贈り物 · Special Gifts ===== */

.page-title-note {
  text-align: center;
  font-size: 13px;
  color: #b09090;
  letter-spacing: 2px;
  font-family: var(--font-display);
  margin-top: 8px;
  margin-bottom: 36px;
}

/* Masonry 卡片展示区 */
.gift-showcase {
  -webkit-column-count: 2;
  -moz-column-count: 2;
  column-count: 2;
  -webkit-column-gap: 20px;
  -moz-column-gap: 20px;
  column-gap: 20px;
  max-width: 760px;
  margin: 0 auto 12px;
  overflow: visible;
  padding-top: 8px;
}

.gift-load-more {
  display: none;
}

.gift-more-hidden {
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
  break-inside: avoid;
  margin-bottom: 20px;
}

/* 礼物卡片 */
.gift-card {
  position: relative;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
  break-inside: avoid;
  margin-bottom: 20px;
  cursor: pointer;
}

.gift-card-inner {
  position: relative;
  transform: rotate(var(--tilt, 0deg));
  transition: all 0.3s ease;
}

.gift-card:hover .gift-card-inner {
  transform: rotate(0deg) translateY(-3px);
}

.gift-showcase > .gift-card:first-child { --tilt: 0deg; }
.gift-showcase > .gift-card:last-child { --tilt: 0deg; }

/* ===== 视频卡片 ===== */
.gift-card-video-glass .gift-card-image {
  position: relative;
  overflow: hidden;
}

.gift-card-video-glass .gift-card-image .video-play-overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.1);
  transition: background 0.3s ease;
}

.gift-card-video-glass:hover .video-play-overlay {
  background: rgba(0,0,0,0.2);
}

.gift-card-video-glass .glass-overlay .gift-card-label {
  color: #c8a0b0;
}

.gift-card-video-glass .glass-overlay .gift-card-title {
  color: #555;
}

.gift-card-video-glass .glass-overlay .gift-card-desc,
.gift-card-video-glass .glass-overlay .gift-card-date {
  color: #5d4a4a;
}

/* 胶带 — 像真实纸胶带一样贴在卡片上边缘 */
.gift-tape {
  position: absolute;
  top: 0;
  left: 20px;
  width: 48px;
  height: 15px;
  background: linear-gradient(135deg,
    rgba(240, 216, 184, 0.6) 0%,
    rgba(230, 200, 160, 0.5) 100%
  );
  border-radius: 1px;
  z-index: 5;
  box-shadow: 0 1px 3px rgba(120, 80, 60, 0.08);
  transform: translateY(-50%);
}

.gift-tape--center {
  left: 50%;
  transform: translate(-50%, -50%);
}

.gift-tape--right {
  left: auto;
  right: 20px;
}

/* 卡片图片区 */
.gift-card-image {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
}

.gift-card-image.portrait-type {
  height: 0;
  padding-bottom: 177.78%;  /* iOS Safari <15 后备方案：9:16 比例 */
  aspect-ratio: 9 / 16;
}

.gift-card-image.video-type {
  height: 0;
  padding-bottom: 56.25%;  /* iOS Safari <15 后备方案：16:9 比例 */
  aspect-ratio: 16 / 9;
}

@supports (aspect-ratio: 1) {
  .gift-card-image.portrait-type,
  .gift-card-image.video-type {
    height: auto;
    padding-bottom: 0;
  }
}

.gift-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  /* 圆角作用在图片本体：hover 时 img 会 scale 放大，仅靠父级 overflow 裁剪在
     移动端易漏白边，给图片自身加同值圆角可从根上避免 */
  border-radius: 16px;
}

.gift-card:hover .gift-card-image img {
  transform: scale(1.04);
}
.gift-card-video-glass:hover .gift-card-image img {
  transform: none;
}

/* ===== 图片毛玻璃覆盖层 ===== */
.gift-card-img-glass .gift-card-image {
  position: relative;
  overflow: hidden;
}

.glass-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 18px 16px;
  background: linear-gradient(0deg, rgba(255,255,255,0.82) 0%, rgba(255,255,255,0.45) 60%, transparent 100%);
  transition: opacity 0.3s ease;
}

.glass-content {
  position: relative;
  z-index: 1;
}

.glass-content .gift-card-label {
  margin-bottom: 2px;
}

.glass-content .gift-card-title {
  font-size: 14px;
}

.glass-content .gift-card-desc {
  font-size: 11px;
  margin-top: 1px;
}

.glass-content .gift-card-date {
  font-size: 10px;
  margin-top: 3px;
}

/* 视频播放按钮覆盖层 */
.video-play-overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.02);
  transition: background 0.3s ease;
  cursor: pointer;
}

.video-play-overlay:hover {
  background: rgba(0,0,0,0.05);
}

.play-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #fff;
  transition: all 0.3s ease;
}

.play-circle::before {
  content: '\25B6';
  margin-left: 4px;
}

.video-play-overlay:hover .play-circle {
  transform: scale(1.1);
  background: rgba(0,0,0,0.7);
}

/* 占位卡片 */
.gift-card-placeholder {
  cursor: default;
  opacity: 0.35;
}
.gift-card-placeholder .gift-card-image {
  border: 2px dashed rgba(212, 112, 138, 0.2);
  border-radius: 16px;
  background: rgba(212, 112, 138, 0.02);
}
.gift-card-placeholder .placeholder-content {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: rgba(212, 112, 138, 0.25);
}
.gift-card-placeholder .placeholder-icon {
  font-size: 28px;
  font-weight: 300;
  line-height: 1;
}
.gift-card-placeholder .placeholder-text {
  font-size: 11px;
  font-family: var(--font-display);
  letter-spacing: 1px;
}
.gift-card-placeholder:hover {
  transform: none;
}

/* 卡片内容区 */
.gift-card-label {
  font-size: 10px;
  letter-spacing: 1px;
  color: #c8a0b0;
  margin-bottom: 3px;
  font-family: var(--font-display);
}

.gift-card-title {
  font-size: 15px;
  font-weight: 700;
  color: #555;
  letter-spacing: 1px;
  margin: 0 0 3px;
}

.gift-card-desc {
  font-size: 12px;
  color: #b09090;
  line-height: 1.5;
  margin: 0;
}

.gift-card-date {
  font-size: 11px;
  color: #c8a0b0;
  margin-top: 6px;
  font-family: var(--font-display);
  letter-spacing: 0.5px;
}

/* 引导分割线 */
.book-divider {
  text-align: center;
  padding: 40px 0 28px;
}

.book-divider-title {
  font-size: 22px;
  font-weight: 700;
  color: #9b7b7b;
  letter-spacing: 4px;
  font-family: var(--font-display);
}

.book-divider-sub {
  font-size: 13px;
  color: #b5a0a0;
  letter-spacing: 2px;
  margin-top: 6px;
}

/* ===== 小说章节导航区域 ===== */
.novel-section {
  padding: 0 0 36px;
}

.novel-section .novel-header {
  text-align: center;
  margin-bottom: 32px;
}

.novel-header-subtitle {
  font-size: 13px;
  color: #b5a0a0;
  letter-spacing: 1px;
  margin: 0;
}

/* ===== 故事梗概 ===== */
.novel-synopsis {
  max-width: 680px;
  margin: 0 auto 36px;
  border-radius: 12px;
  background: rgba(255, 245, 248, 0.45);
}

.novel-synopsis-inner {
  padding: 20px 24px 16px;
  position: relative;
  overflow: hidden;
  transition: height 0.35s ease;
}

.novel-synopsis-cn,
.novel-synopsis-jp {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  opacity: 0;
  pointer-events: none;
}

.novel-synopsis.is-jp .novel-synopsis-cn {
  opacity: 0;
  pointer-events: none;
}

.novel-synopsis.is-jp .novel-synopsis-jp {
  opacity: 1;
  pointer-events: auto;
}

.novel-synopsis:not(.is-jp) .novel-synopsis-cn {
  opacity: 1;
  pointer-events: auto;
}

.novel-synopsis.is-switching .novel-synopsis-cn {
  animation: synopsisFadeOut 0.45s ease forwards;
}

.novel-synopsis.is-switching .novel-synopsis-jp {
  animation: synopsisFadeIn 0.5s ease 0.15s forwards;
}

.novel-synopsis.is-switching-back .novel-synopsis-jp {
  animation: synopsisFadeOut 0.45s ease forwards;
}

.novel-synopsis.is-switching-back .novel-synopsis-cn {
  animation: synopsisFadeIn 0.5s ease 0.15s forwards;
}

@keyframes synopsisFadeOut {
  0% {
    opacity: 1;
    clip-path: inset(0 0 0 0);
  }
  100% {
    opacity: 0;
    clip-path: inset(100% 0 0 0);
  }
}

@keyframes synopsisFadeIn {
  0% {
    opacity: 0;
    clip-path: inset(0 0 100% 0);
  }
  100% {
    opacity: 1;
    clip-path: inset(0 0 0 0);
  }
}

.novel-synopsis-lead {
  text-align: center;
  font-size: 13px;
  color: #b09090;
  letter-spacing: 3px;
  margin: 0 0 14px;
}

.novel-synopsis-cn p {
  font-size: 14px;
  color: #6b5b5b;
  line-height: 2;
  margin: 0 0 12px;
  text-indent: 2em;
  font-family: var(--font-display);
}

.novel-synopsis-cn p:last-child {
  margin-bottom: 0;
}

.novel-synopsis-jp p {
  font-size: 14px;
  color: #6b5b5b;
  line-height: 2;
  margin: 0 0 12px;
  text-indent: 2em;
  font-family: var(--font-display);
}

.novel-synopsis-jp p:last-child {
  margin-bottom: 0;
}

.novel-synopsis b {
  color: #8b4a5a;
  font-weight: 700;
}

.novel-synopsis-hint {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 8px 0 14px;
  font-size: 12px;
  color: #b5a0a0;
  letter-spacing: 2px;
  cursor: pointer;
  user-select: none;
  transition: color 0.25s ease;
}

.novel-synopsis-hint:hover {
  color: #8b6b6b;
}

/* ===== 双语章节列表 ===== */
.novel-lang-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-bottom: 28px;
}

.novel-lang-label {
  font-size: 14px;
  font-weight: 400;
  color: #8b6b6b;
  letter-spacing: 2px;
  padding-bottom: 10px;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(180, 150, 150, 0.2);
}

.novel-lang-label span {
  font-size: 11px;
  color: #b5a0a0;
  font-weight: 400;
  margin-left: 8px;
  letter-spacing: 1px;
}

.chapter-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.chapter-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
}

.chapter-number {
  font-size: 12px;
  color: #c0a8a8;
  letter-spacing: 0.5px;
  min-width: 30px;
  font-family: var(--font-display);
}

.chapter-title {
  font-size: 14px;
  color: #5a4a4a;
  flex: 1;
  letter-spacing: 0.5px;
}

.chapter-actions {
  display: flex;
  gap: 8px;
}

.chapter-actions a {
  font-size: 12px;
  color: #a08080;
  text-decoration: none;
  letter-spacing: 0.5px;
  padding: 2px 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.chapter-actions a:hover {
  color: #8b6b6b;
  border-bottom-color: #c0a8a8;
}

.chapter-actions a:last-child {
  color: #b5a0a0;
}

.chapter-actions a:last-child:hover {
  color: #9b8b8b;
  border-bottom-color: #c0a8a8;
}

/* ===== 整本下载区 ===== */
.novel-download-area {
  text-align: center;
  padding: 20px 0 0;
}

.novel-download-hint {
  font-size: 12px;
  color: #b5a0a0;
  margin: 0 0 12px;
  letter-spacing: 1px;
}

.novel-download-link {
  display: inline-block;
  margin: 0 10px;
  font-size: 13px;
  color: #a08080;
  text-decoration: none;
  letter-spacing: 1px;
  padding: 2px 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.novel-download-link:hover {
  color: #8b6b6b;
  border-bottom-color: #c0a8a8;
}

/* ===== 粉丝来信板块 ===== */
.fanletter-divider {
  text-align: center;
  padding: 16px 0 20px;
}

.fanletter-divider-line {
  width: 60px;
  height: 1px;
  background: rgba(180, 150, 150, 0.25);
  margin: 0 auto;
}

.fanletter-section {
  padding: 12px 0 24px;
}

.fanletter-inner {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: center;
  max-width: 960px;
  margin: 0 auto;
}

.fanletter-inner-flip {
  grid-template-columns: 300px 1fr;
}

/* 左：信件内容 */
.fanletter-text {
  position: relative;
}

.fanletter-text-content {
  position: relative;
  overflow: hidden;
  transition: height 0.35s ease;
}

.fanletter-cn,
.fanletter-jp {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  opacity: 0;
  pointer-events: none;
}

.fanletter-text.is-jp .fanletter-cn {
  opacity: 0;
  pointer-events: none;
}

.fanletter-text.is-jp .fanletter-jp {
  opacity: 1;
  pointer-events: auto;
}

.fanletter-text:not(.is-jp) .fanletter-cn {
  opacity: 1;
  pointer-events: auto;
}

.fanletter-text.is-switching .fanletter-cn {
  animation: synopsisFadeOut 0.45s ease forwards;
}

.fanletter-text.is-switching .fanletter-jp {
  animation: synopsisFadeIn 0.5s ease 0.15s forwards;
}

.fanletter-text.is-switching-back .fanletter-jp {
  animation: synopsisFadeOut 0.45s ease forwards;
}

.fanletter-text.is-switching-back .fanletter-cn {
  animation: synopsisFadeIn 0.5s ease 0.15s forwards;
}

.fanletter-lead {
  font-size: 12px;
  color: #b09090;
  letter-spacing: 3px;
  text-align: center;
  margin: 0 0 16px;
  font-family: var(--font-display);
}

.fanletter-cn p,
.fanletter-jp p {
  font-size: 14px;
  color: #6b5b5b;
  line-height: 2;
  margin: 0 0 10px;
  text-indent: 2em;
}

.fanletter-cn p {
  font-family: var(--font-display);
}

.fanletter-jp p {
  font-family: var(--font-display);
}

.fanletter-cn p:last-child,
.fanletter-jp p:last-child {
  margin-bottom: 0;
}

.fanletter-switch {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 14px 0 0;
  font-size: 12px;
  color: #b5a0a0;
  letter-spacing: 2px;
  cursor: pointer;
  user-select: none;
  transition: color 0.25s ease;
}

.fanletter-switch:hover {
  color: #8b6b6b;
}

/* 右：贺图 */
.fanletter-image {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.fanletter-image-inner {
  width: 100%;
  max-width: 300px;
  height: 0;
  padding-bottom: 133.33%;  /* iOS Safari <15 后备方案：3:4 比例 */
  aspect-ratio: 3 / 4;
  border-radius: 4px;
  overflow: hidden;
  background: #fff5f8;
}

@supports (aspect-ratio: 1) {
  .fanletter-image-inner {
    height: auto;
    padding-bottom: 0;
  }
}

.fanletter-image-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* 与父级 4px 圆角对齐，图片本体圆角，避免移动端白边 */
  border-radius: 4px;
}

.fanletter-signature {
  font-size: 13px;
  color: #b09090;
  letter-spacing: 1px;
  margin: 0;
  font-family: var(--font-display);
}

/* 粉丝来信视频 */
.fanletter-video {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.fanletter-video-inner {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #f5f0f0;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 12px rgba(120, 80, 60, 0.08);
}

.fanletter-video-inner:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 20px rgba(120, 80, 60, 0.15);
}

@supports (aspect-ratio: 1) {
  .fanletter-video-inner {
    height: auto;
    padding-bottom: 0;
  }
}

.fanletter-video-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.fanletter-video-inner .video-play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.08);
  transition: background 0.3s ease;
}

.fanletter-video-inner:hover .video-play-overlay {
  background: rgba(0, 0, 0, 0.18);
}

@media (max-width: 768px) {
  .fanletter-inner,
  .fanletter-inner-flip {
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 100%;
  }

  .fanletter-image {
    order: -1;
    width: 100%;
  }

  .fanletter-image-inner {
    max-width: 220px;
    margin: 0 auto;
  }

  .fanletter-video-inner {
    max-width: 100%;
  }

  .fanletter-signature {
    text-align: center;
  }

  .fanletter-cn p,
  .fanletter-jp p {
    font-size: 13px;
  }
}
/* ===== 礼物弹窗 ===== */
.gift-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  padding: 20px;
}

.gift-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.gift-modal {
  position: relative;
  background: #fff;
  border-radius: 18px;
  width: 90%;
  max-width: 960px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.gift-modal-overlay.active .gift-modal {
  transform: scale(1);
}

.gift-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
}

.gift-modal-close:hover {
  background: rgba(0, 0, 0, 0.6);
  transform: rotate(90deg);
}

.gift-modal-content {
  width: 100%;
  max-width: 800px;
  max-height: calc(90vh - 80px);
  overflow-y: auto;
  overflow-x: hidden;
}

.gift-modal-content img {
  display: block;
  max-height: calc(90vh - 80px);
  width: auto;
  height: auto;
  margin: 0 auto;
}

/* 图片模式 — 弹窗自适应图片大小 */
.gift-modal-overlay[data-mode="image"] .gift-modal {
  width: auto;
  max-width: 90vw;
}

/* 视频模式 — 与 Page4 .video-modal-content 采用相同 padding-top 方案 */
.gift-modal-content.video-mode {
  position: relative;
  width: 100%;
  max-width: 960px;
  padding-top: 56.25%; /* 16:9，相对 .gift-modal 宽度计算 */
  background: #000;
  max-height: none;
  overflow: hidden;
}

.gift-modal-content.video-mode iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.gift-modal-desc {
  word-break: break-word;
  overflow-wrap: break-word;
}

.gift-modal-caption {
  padding: 18px;
  text-align: center;
}

.gift-modal-title {
  font-size: clamp(16px, 2.5vw, 20px);
  font-weight: 700;
  color: #555;
  margin: 0 0 6px;
}

.gift-modal-desc {
  font-size: clamp(13px, 2vw, 15px);
  color: #b09090;
  margin: 0;
}

/* =========================================================
   移动端响应式综合修复
   目的：避免横向溢出、避免内容被裁、保证图片/文字自适应。
   ========================================================= */

/* 全站防止横向溢出兜底 */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}

/* 媒体元素自适应兜底，避免任何位图把容器撑爆 */
img, video, iframe {
  max-width: 100%;
  height: auto;
}

@media (max-width: 768px) {
  /* 1) 顶部留白与 .page 内边距收窄 */
  body {
    padding-top: 0;
    padding-bottom: 72px;
  }
  .page {
    padding: 56px 16px;
  }

  /* 2) 移动端：隐藏桌面导航栏，显示底部全宽导航栏 */
  .nav {
    display: none !important;
  }

  .mobile-nav {
    display: flex !important;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(212, 112, 138, 0.15);
    z-index: 1000;
    padding: 6px 0 calc(6px + env(safe-area-inset-bottom, 0px));
    contain: paint;
    justify-content: space-around;
  }

  .mobile-nav-item {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 4px 2px;
    text-decoration: none;
    font-size: 10px;
    letter-spacing: 0.03em;
    color: #aaa;
    transition: color 0.2s;
    white-space: nowrap;
    cursor: pointer;
  }

  .mobile-nav-item .mn-icon {
    font-size: 16px;
    line-height: 1;
    opacity: 0.7;
    transition: opacity 0.2s;
  }

  .mobile-nav-item .mn-label {
    font-family: var(--font-display);
    font-size: 10px;
    line-height: 1.2;
  }

  .mobile-nav-item.active {
    color: #e91e8c;
  }
  .mobile-nav-item.active .mn-icon {
    opacity: 1;
  }
  .mobile-nav-item:active {
    color: #e91e8c;
  }
  .mobile-nav-item:active .mn-icon {
    opacity: 1;
  }

  /* 3) 倒计时：移动端始终一行，自适应宽度 */
  .countdown {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    max-width: none;
    width: 100%;
    gap: 6px;
  }
  .cd-cell {
    flex: 1;
    min-width: 0;
    padding: 10px 4px 8px;
  }
  .cd-cell .num {
    font-size: clamp(16px, 5.5vw, 28px);
  }
  .cd-cell .lbl {
    font-size: clamp(7px, 1.8vw, 9px);
  }

  /* 4) Page1 立式照片限宽并居中 */
  .page1-right {
    justify-content: center;
    width: 100%;
  }
  .portrait-card {
    width: min(80vw, 320px);
    margin: 0 auto;
  }

  /* 5) Page2 信息行：label / value 上下堆叠，长文本不再溢出 */
  .info-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .info-value {
    text-align: left;
    word-break: break-word;
  }

  /* 7) Page3 时间线 tooltip：限宽 + 自适应位置，避免漂出视口 */
  .timeline-tooltip {
    width: min(220px, calc(100vw - 80px));
    max-width: calc(100vw - 80px);
  }
  .tooltip-image {
    height: auto;
    max-height: 140px;
  }

  /* 9) 通用文本块的长内容兜底（避免英文/链接撑破容器） */
  .page-inner,
  .messages-container,
  .credits-wrapper,
  .feature-card-content,
  .mini-card-content {
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  .credits-body {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .credits-right {
    order: -1;
  }

  .credits-gift {
    max-width: 280px;
  }

  /* 10) 控制按钮在小屏轻微缩小，避开底部导航栏 */
  .control-buttons {
    bottom: 80px;
    right: 16px;
    gap: 10px;
  }
  .control-btn {
    width: 46px;
    height: 46px;
  }

  /* 11) 视频卡片标题在窄屏允许两行而不是省略号截断 */
  .video-title {
    white-space: normal;
  }

  /* 12) Page6 Masonry：小屏单列 */
  .gift-showcase {
    -webkit-column-count: 1;
    -moz-column-count: 1;
    column-count: 1;
    gap: 16px;
  }
  .gift-showcase > .gift-card {
    --tilt: 0deg !important;
  }
  .gift-more-hidden {
    display: none;
  }
  .gift-load-more {
    display: block;
    margin: 16px auto 12px;
    padding: 10px 28px;
    background: #fff;
    border: 1px solid rgba(212, 112, 138, 0.2);
    border-radius: 24px;
    color: #d4708a;
    font-size: 13px;
    cursor: pointer;
    font-family: var(--font-display);
    letter-spacing: 1px;
    transition: all 0.3s ease;
  }
  .gift-load-more:hover {
    background: rgba(212, 112, 138, 0.05);
    border-color: rgba(212, 112, 138, 0.3);
  }
  .page-title-note {
    font-size: 12px;
    margin-bottom: 28px;
  }
  .novel-section {
    padding: 0 0 28px;
  }
  .novel-lang-row {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* 超小屏：再收一档 */
@media (max-width: 480px) {
  .page {
    padding: 48px 12px;
  }
  .nav-item {
    font-size: 12px;
    padding: 4px 8px;
  }
  .countdown {
    max-width: none;
    width: 100%;
    gap: 4px;
  }
  .cd-cell {
    padding: 8px 3px 6px;
  }
  .cd-cell .num {
    font-size: clamp(14px, 5vw, 20px);
  }
  .cd-cell .lbl {
    font-size: 7px;
  }
  .messages-wrapper {
    height: auto;
    min-height: 50vh;
    max-height: none;
  }
}

/* 不支持 hover 的设备（触屏）：把依赖 hover 才显示的元素改为常显，
   避免 timeline 缩略图等关键交互入口在手机上完全消失 */
@media (hover: none) {
  .timeline-tooltip {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    width: 100%;
    max-width: 100%;
    margin: 8px 0 12px;
    z-index: 0;
  }
  .tooltip-arrow {
    display: none;
  }

  /* 弹幕移动端缩小 */
  .danmaku-item {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 14px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  }
  .danmaku-item .danmaku-name {
    margin-right: 3px;
    font-size: 11px;
  }
  .danmaku-item .danmaku-text {
    font-size: 12px;
  }
  .danmaku-container {
    top: 65px;
    height: calc(40vh - 65px - 50px);
  }
}

/* ===== 底栏 ===== */
.footer {
  padding: 32px 24px;
  text-align: center;
  border-top: 1px solid rgba(212, 112, 138, 0.1);
  background: linear-gradient(180deg, transparent, rgba(255, 240, 245, 0.4));
}

.footer-inner {
  max-width: 600px;
  margin: 0 auto;
}

.footer-line {
  font-size: 13px;
  color: #b09090;
  line-height: 1.6;
  letter-spacing: 0.05em;
  margin: 0;
}

.footer-copy {
  font-size: 11px;
  color: #c8a0b0;
  margin-top: 12px;
  letter-spacing: 0.1em;
}

.footer-underline {
  border-bottom: 1px dashed rgba(212, 112, 138, 0.4);
  padding-bottom: 2px;
}

@media (max-width: 768px) {
  .footer {
    padding: 24px 16px;
  }
  .footer-line {
    font-size: 12px;
  }
}
