﻿/*!
  使用范围：天海国际8周年庆 碰一碰活动 8.7-8.12 
  作者: Zhuxinyan  
  美术素材：Liuyiruiqi
*/
/* ============================================================
   0. 字体 & 全局重置
   ============================================================ */
@font-face {
  font-family: "MyFont";
  src: url("./fonts/Myfont.woff2") format("woff2");
  font-weight: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "MyFont", sans-serif;
}

html, body {
    width: 100%;
    height: 100%;
    background-size: cover;
    font-family: "Microsoft YaHei", PingFang SC, Hiragino Sans GB, sans-serif;
}

/* ============================================================
   1. 页面容器
   ============================================================ */
.page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    flex-direction: column;
    background-color: transparent;
    z-index: 10;
}
.page.active {
    display: flex;
}

.page-top-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    z-index: 0;
    pointer-events: none;
}

/* ============================================================
   2. 登录页
   ============================================================ */
#loginPage input {
  padding: 12px 16px;
  border: 0;
  border-radius: 8px;
  font-size: 22px;
  color: #ffffff;
  width: 220px;
  background: transparent !important;
  outline: none;
  text-align: center;
  position: absolute;
  top: 54%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 11;
  -webkit-box-shadow: 0 0 0px 1000px transparent inset !important;
  box-shadow: 0 0 0px 1000px transparent inset !important;
}

#loginPage button {
  display: none !important;
}

.paw-image {
  position: fixed;
  bottom: 2%;
  left: 0;
  width: 100%;
  height: auto;
  object-fit: contain;
  z-index: 2;
  pointer-events: none;
}

.login-page {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 10;
  color: #fff;
}

.input-box {
  position: relative;
  z-index: 10;
  text-align: center;
  margin-bottom: 70px;
  width: 85%;
  max-width: 320px;
}

.input-box input::placeholder { color:#cccccc; }

.input-box img {
  width:100%;
  display: block;
  margin: 0 auto;
}

.start-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    z-index: 10;
    position: relative;
}

.start-btn img {
    width: 80px;
    height: auto;
    display: block;
}

.start-btn span {
    color: #c3dddc;
    font-size: 18px;
    font-weight: bold;
    margin-top: 6px;
    opacity:0.6;
}

.login-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.loading-overlay {
    position: fixed; top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.2);
    display: flex; align-items: center; justify-content: center;
    z-index: 9999;
    transition: opacity 0.6s, visibility 0s 0.6s;
}
.loading-overlay.hide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loading-k-img {
    width: 320px;
    height: auto;
}

.preload-bar {
    position: absolute;
    left: 0;
    bottom: -25px;                          /* 输入框下方，值可调 */
    width: 100%;
    height: 2px;
    background: rgba(255,255,255,0.2);     /* 未加载：半透明 */
    border-radius: 1px;
    opacity: 0.8;
    z-index: 12;
}

.preload-dot {
    height: 100%;
    border-radius: 2px;
    background: #ffffff;                   /* 已加载：不透明白 */
    width: 0%;                             /* JS 控制 */
    transition: width 0.2s linear;
}

.preload-dot::after {
    content: "";
    position: absolute;
    right: -4px;                           /* 圆超出条右端 */
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ffffff;
}


/* ============================================================
   3. 规则页
   ============================================================ */
#rulePage {
  display: none;
  align-items: center;
  justify-content: center;
  width: 100vw;
  height: 100vh;
}

#rulePage.active {
  display: flex;
}

.rule-modal {
  width: calc(100% - 40px);
  max-width: 400px;
  position: relative;
  z-index: 100;
}

.rule-modal img {
  width: 100%;
  display: block;
}

.rule-modal .enter-game-btn {
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 30px;
  border: none;
  padding: 12px 27px;
  background: #c3dddc;
  cursor: pointer;
  color: #ffffff;
  z-index: 105;
  font-size: 14;
}

/* ============================================================
   4. 游戏页 — 专辑网格 & 转盘
   ============================================================ */
.album-grid-area {
    position: absolute;
    top: 17%;
    left: 0;
    width: 100%;
    height: 32%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    box-sizing: border-box;
}

.album-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 3px;
    width: 100%;
    max-width: 400px;
    height: 100%;
}

.album-cell {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: visible;
}

.album-behind {
    position: absolute;
    right: -2%;
    width: 80%;
    height: auto;
    z-index: 1;
    pointer-events: none;
    border-radius: 50%;
}

.album-cover {
    position: relative;
    width: 90%;
    height: auto;
    z-index: 2;
    transition: filter 0.5s ease, transform 0.3s ease;
}

.album-cover.grayscale {
    filter: grayscale(100%);
    cursor: pointer;
}

.album-cover.active {
    filter: none;
    cursor: pointer;
    border-radius: 8px;
}

.album-cover.active.latest:not(.used):hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 8px rgba(255,255,200,0.7));
}

.album-cover.active.latest:not(.used) {
    box-shadow: 0 0 12px 4px rgba(255, 215, 107, 0.7);
}

/* 唱片架 */
.shelf {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 400px;
    z-index: 3;
    pointer-events: none;
    height: auto;
}
.shelf-middle { top: 48%; }
.shelf-bottom { top: 98%; }

.album-tip-bar {
    position: absolute;
    top: -34px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 12;
    pointer-events: none;  /* 让点击穿透到地图图标 */
}

/* map-icon 恢复可点击 */
.album-tip-bar .map-icon {
    pointer-events: auto;
}

/* 提示文字 */
.album-tip-top {
    padding-left: 20px;
    color: #222;
    top: -18px;
    font-size: 16px;
    z-index: 12;
}
.map-icon {
    margin-right: 15px;
    width: 65px;
    height: 65px;
    z-index: 9999;
    cursor: pointer;
}

.album-tip-bottom-out {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 15px;
    color: #a1a1a1;
    font-size: 12px;
    white-space: nowrap;
    pointer-events: none;
}

/* 播放器区域 */
.player-area {
    position: absolute;
    bottom: 8%;
    left: 0;
    width: 100%;
    height: 30%;
    align-items: center;
    justify-content: center;
}

/* 转盘 */
.turntable {
    position: absolute;
    left: 47%;
    top: 25%;
    transform: translate(-50%, -50%);
    width: 140px;
    height: 140px;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.album-spinning {
    width: 115%;
    height: auto;
    border-radius: 50%;
    animation: spin 3s linear infinite;
    object-fit: contain;
}
.album-spinning.switching {
    opacity: 0.8;
    transition: opacity 0.4s ease;
}

.album-spinning.pausing {
    animation-play-state: paused;
    opacity: 0.8;
}

/* 底部装饰 */
#bottomDecor {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url(images/bottom.png) no-repeat center bottom;
    background-size: 100% auto;
    z-index: 0;
    pointer-events: none;
    display: block;
}

#needle {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height:100%;
    background: url(images/needle.png) no-repeat center bottom;
    background-size: 100% auto;
    z-index: 10;
    pointer-events: none;
    display: block;
}

/* 底部触摸按钮 */
.touch-btn {
    position: absolute;
    bottom: 3%;
    width: 60px;
    height: 60px;
    z-index: 20;
    cursor: pointer;
}
.touch-btn.rule { left: 3%; }
.touch-btn.lottery { left: 27%; }
.touch-btn.bag { left: 51%; }
.touch-btn.profile { left: 75%; }

/* 地图图标 */


/* ============================================================
   5. 背包页
   ============================================================ */
#bagPage {
    flex-direction: column;
    align-items: center;
    justify-content: center;
}


.bag-divider { z-index: 10;
    position: absolute;
    top: 24%;
    left: 5%;
    width: 90%;
    height: 1px;
    background: rgba(155,155,155,0.85);;
    height: 2px;
}

.bag-progress {
    position: absolute;
    top: 25%;
    left: 5%;
    width: 90%;
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #7b7b7b;
    z-index: 10;
}
.bag-tabs {
    position: absolute;
    top: 18%;
    display: flex;
    gap: 20px;
    border-color: #333;
}

.bag-tab {
    background: #77b7c7;
    color: rgba(255, 255, 255, 0.769);
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
}

.bag-tab.active {
    color: #fff;
    background: #8acedf;
}

.bag-card-area {
    width: 100%;
    height: 200px;
    overflow: visible;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 40px;
}

.bag-card-row {
    display: flex;
    align-items: center;
}

.bag-card {
    flex-shrink: 0;
    margin-left: 0;
    object-fit: contain;
    transition: transform 0.3s, box-shadow 0.3s, filter 0.3s;
    position: relative;
    background: transparent;
    filter:  brightness(0.8) saturate(0.6);
    width:  auto important!;

}
.bag-card.card-series {
    height: 250px; /* 自行修改 */
}

/* 数字相册卡片高度 */
.bag-card.card-number {
    height: 180px; /* 自行修改 */
}

.bag-card:first-child { margin-left: 0; }

.bag-card.active {
    transform: scale(1.15);
    z-index: 10 !important;
     background: transparent;
    filter: brightness(1) saturate(1);
}

.bag-card.uncollected {
    filter: grayscale(0.6) saturate(0);
     background: transparent;
    
}



.bag-nav {
    position: absolute;
    bottom: 5%;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 80px;
    align-items: flex-start;
    z-index: 10;
}

.bag-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.bag-nav-btn {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 60px;
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
}

.bag-nav-tip {
    font-size: 14px;
    color: #fff;
    margin-top: 40px;
    opacity: 0.85;
    display: block;
}

.bag-bottom-img {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100vw;
    height: auto;
    object-fit: contain;
    z-index: 1;
    pointer-events: none;
}

/* ============================================================
   6. 通用弹窗（NFC 图鉴 / 已有提示）
   ============================================================ */
.image-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    visibility: hidden;
    opacity: 0;
    transition: 0.3s;
}

.image-popup.show {
    visibility: visible;
    opacity: 1;
}

.popup-box {
    background: #fff;
    padding: 20px;
    border-radius: 16px;
    max-width: 400px;
    width: 90%;
    height: auto;
    text-align: center;
    position: relative;
}
.popup-box-a {
    
    padding: 0px;
    border-radius: 16px;
    
    width: 90%;
    height: auto;
    text-align: center;
    position: relative;
}
.popup-img {
    max-width: 100%;
    max-height: 70vh;
    margin-bottom: 15px;
}

#popupDesc {
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  text-align: center;
  padding: 10px 15px;
  font-weight: 500;
}

#popupDesc::first-line {
  font-size: 20px !important;
  font-weight: bold !important;
  color: #779e9b !important;
}

.popup-btn-wrap {
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 20px;
    z-index: 999;
}

.popup-btn {
    
   
    font-size: 13px;
    cursor: pointer;
    color: #fff;
    background: #c3dddc !important;
    border: none !important;
    border-radius: 12px;
    padding: 8px 16px;
}

.popup-btn-bottom
    {   position: relative;
        margin-bottom: -15px;
        display: flex;
        justify-content: center;
        gap: 20px;
    }

/* ============================================================
   7. 规则弹窗（游戏内）
   ============================================================ */
.modal-rule {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.3);
  display: none;
  z-index: 999;
  align-items: center;
  justify-content: center;
  object-fit: contain;
}

.modal-rule.show { display: flex; }

.ruletitle-img {
  position: absolute;
  top: 0;
  right: 0;
  transform: translateY(-50%);
  height: auto;
  max-width: 160px;
  z-index: 1002;
  pointer-events: none;
}

.rulecat-img {
  
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 1001;
  pointer-events: none;
  display: block;
}


.rule-text {
  text-align: center;
  padding: 20px 16px;
  color: #fff;
  font-size: 15px;
  line-height: 1.6;
}

.modal-rule .close-rule-btn {
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 30px;
  border: none;
  padding: 10px 25px;
  background: #c3dddc;
  cursor: pointer;
  color: #ffffff;
  z-index: 1001;
}

/* ============================================================
   8. 抽奖弹窗
   ============================================================ */
.modal-lottery {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.3);
    display: none;
    z-index: 999;
    align-items: center;
    justify-content: center;
}
.modal-lottery.show { display: flex; }

.modal-lottery .popup-box {
    max-height: 90vh;
    overflow-y: auto;
    background: #fff;
    padding: 20px;
    border-radius: 16px;
    max-width: 400px;
    width: 90%;
    height: auto;
    text-align: center;
    position: relative;
    overflow: visible;
}

.modal-lottery img {
    width: 100%;
    height: auto;
    display: block;
}

.lottery-image-wrap {
    position: relative;
    width: 100%;
}

/* base 图撑开容器高度 */
.lottery-base {
    position: relative;
    width: 100%;
    height: auto;
    display: block;
    z-index: 1;
}

/* overlay 图叠在 base 上面 */
.lottery-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: auto;
    z-index: 2;
    pointer-events: none;
}

/* 未解锁：overlay 灰色 */
.modal-lottery:not(.started) .lottery-overlay {
    filter: grayscale(1);
    opacity: 0.5;
}
/* 已解锁：overlay 彩色 */
.modal-lottery.started .lottery-overlay {
    filter: none;
    
}
/* 已兑奖：两张图都变淡 */

.modal-lottery.redeemed .lottery-overlay {
    opacity: 0.45;
}

/* 按钮组浮在图片上方 */
.lottery-btns {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 3;
}

.lottery-status {
    position: absolute;
    top: 8%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.4);
    color: #fff;
    font-size: 20px;
    padding: 6px 18px;
    border-radius: 20px;
    white-space: nowrap;
    z-index: 4;
}

/* 两个按钮通用 */
.lottery-btn.prize1,
.lottery-btn.prize2 {
    position: absolute;
    transform: translateX(-50%);
    min-width: 70px;
    padding: 4px 4px;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    text-align: center;
    cursor: pointer;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
    /* 默认灰色不可点 */
    background: #c6c5c4;
    opacity:0.8;
    color: #fff;
    pointer-events: none;
}

.lottery-btn.prize1 { left: 16%; top: 52%; }
.lottery-btn.prize2 { left: 70%; top: 24%; text-decoration: none; }

/* started → 洞洞乐变黄可点 */
.modal-lottery.started .prize1 {
    background: #9bd380;
    pointer-events: auto;
}

/* can-redeem → 签名照变黄可点 */
.modal-lottery.can-redeem .prize2,
.modal-lottery.redeemed .prize2 {
    background: #9bd380;
    pointer-events: auto;
}

/* redeemed → 洞洞乐灰回去 */
.modal-lottery.redeemed .prize1 {
    filter: grayscale(0.8);
    pointer-events: none;
}

.lottery-check {
    position: absolute;
    top: 82%; left: 70%;
    transform: translateX(-50%);
    display: none;
    color: #16a34a;
    font-size: 40px;
    line-height: 1;
    z-index: 5;
    pointer-events: none;
}
.modal-lottery.redeemed .lottery-check {
    display: block;
}

.modal-lottery .close-lottery {
    position: absolute;
    bottom: -15px; left: 50%;
    transform: translateX(-50%);
    border-radius: 30px;
    border: none;
    padding: 10px 25px;
    background: #c3dddc;
    cursor: pointer;
    color: #fff;
    z-index: 1001;
}
/* ============================================================
   9. 地图弹窗
   ============================================================ */
.map-sidebar {
    position: absolute;
    top: -10px;
    left: -5px;
    display: flex;
    flex-direction: row;
    z-index: 2;
}

.floor-btn {
    width: 32px;
    height: 32px;
    cursor: pointer;
    margin-right: -4px;
    transition: all 0.25s ease;
    background: transparent;
    border: none;
}

.floor-btn.active {
    width: 44px;
    height: 44px;
}

.maptitle-img {
    position: absolute;
    top: 0;
    right: 0;
    transform: translateY(-50%);
    height: auto;
    width: auto;
    max-width: 180px;
    z-index: 10;
    pointer-events: none;
}

.map-content {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 40vh;
}

.map-content img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 8px;
    object-fit: contain;
}

.popup-box .back-game-btn {
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 30px;
  border: none;
  padding: 10px 25px;
  background: #c3dddc;
  cursor: pointer;
  z-index: 1001;
  font-size: 13px;
  
  color: #fff;
}


/* ============================================================
   10. 个人主页弹窗（日记风格）
   ============================================================ */
.profile-card {
    background: #faf7f0 !important;
    border-radius: 12px !important;
    padding: 28px 0px 30px !important;
    max-width: 360px !important;
    height: auto!important;
    box-shadow: 0 2px 16px rgba(0,0,0.12);
    position: relative !important;
}

.profile-date,
.profile-location {
    text-align: right;
    font-size: 17px;
    color: #5a4a3a;
    letter-spacing: 2px;
    margin-bottom: 6px;
    margin-right:  20px;
}


.profile-name {
    text-align: right;
    font-size: 25px;
    font-weight: bold;
    color: #3a2f24;
    margin-bottom: 2px;
    margin-right: 20px;
}


.profile-grid-area {
    padding: 16px 12px;
    margin-bottom: 14px;
    overflow:visible;
}

.profile-grid-label {
    text-align: center;
    font-size: 13px;
    color: #8a7a6a;
    margin-top: 5px;
    letter-spacing: 1px;
}

.profile-icon-grid {
    display: flex;
    flex-direction: column;
    margin-top: 10%;
}

/* 6个数字：2行3列 grid */
.grid-num-wrap {
    max-width:80%;
    align-items: flex-end;
    margin-left: 40%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 5px;
    
}

/* 中间分割线 */
.grid-middle-line {
    width: 80%;
    height: 1px;
    background-color: #d4c8b8;
    margin: 20px 0 5px auto; /* auto左边距 = 向右对齐 */
}


/* A开头图片：1行5列 grid */
.grid-a-wrap {
    clear: both;
    margin-top: 20px;
   margin-right: 20px;
    display: grid;
    grid-template-columns: repeat(5, 36px);
    grid-template-rows: repeat(1, 20px);
    gap: 30px;
    justify-content: center;  
}

.profile-icon {
    width: 55px;
    /* 删除固定 height，高度自动由aspect-ratio控制 */
    border-radius: 10%;
    flex-shrink: 0;
    object-fit: cover; /* 图片填满框，不变形拉伸；想留白改用 contain */
}

/* ========== 数字组（grid-num-wrap）1:1 ========== */
.grid-num-wrap .profile-icon {
    aspect-ratio: 1 / 1;
}

/* ========== A开头组（grid-a-wrap）3:4 竖版 ========== */
.grid-a-wrap .profile-icon {
    aspect-ratio: 3 / 4;
}

/* 已收集样式 */
.profile-icon.collected {
    box-shadow: 0 0 8px 2px rgba(200, 160, 80, 0.5);
    border: 2px solid #c8a050;
}

/* 未收集占位框 */
.profile-icon.uncollected {
    background: #e8e3d8;
    border: 2px dashed #c4bca8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #c4bca8;
    font-style: italic;
}

.profile-reward {
    text-align: center;
    font-size: 15px;
    
    color: #c8a050;
    margin-top: 15px;
margin-bottom: -10px;
    display: none;
}

.profile-reward.show {
    display: block;
}

/* 时间地点下方短横线（和文字长度匹配，不撑满整行） */
.disc-wrap {
    position: absolute;
    width: 300px;
    
    top: 10%;
    z-index: 1;
    pointer-events: none; /* 可选：防止遮挡右侧内容点击 */
}

.profile-disc-img {
    left: 0; 
    margin-top: -10%; 
    display:block;
    width:38%;
    
    height:auto;

}

.popup-btn-wrap {
   
    bottom: -40px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 999;
}


/* ============================================================
   11. 新手引导
   ============================================================ */
.tutorial-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.65);
    z-index: 10000;
    cursor: pointer;
    display: none;
}
.tutorial-overlay.show { display: block; }

.tutorial-pointer {
    position: absolute;
    width: 52px; height: 52px;
    pointer-events: none;
    transition: left 0.4s ease, top 0.4s ease;
    z-index: 10001;
    animation: pointerTap 0.7s ease-in-out infinite;
}

@keyframes pointerTap {
    0%, 100% { transform: translate(-30%, -10%) scale(1); opacity: 1; }
    40%  { transform: translate(-30%, -10%) scale(0.85); opacity: 0.6; }
}

.tutorial-tip {
    position: absolute;
    background: #fff;
    color: #333;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 15px;
    
    pointer-events: none;
    white-space: nowrap;
    box-shadow: 0 3px 16px rgba(0,0,0,0.35);
    transition: left 0.35s ease, top 0.35s ease;
    z-index: 10001;
}

/* 气泡下方小三角 */
.tutorial-tip::after {
    content: '';
    position: absolute;
    bottom: -10px; left: 50%;
    transform: translateX(-50%);
    width: 0; height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 10px solid #fff;
}

/* 全局禁止选中、拖拽 */
* {
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
}

img {
  -webkit-touch-callout: none;
  pointer-events: auto;
  max-width: 100%;
  display: block;
}

.img-protect-wrapper {
  position: relative;
  /* 核心修复：自适应包裹图片尺寸，不会塌陷 */
  display: inline-block;
  width: auto;
  height: auto;
  line-height: 0;
}

.img-protect-mask {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  background: transparent;
}