﻿:root{
  --maple:#f05a14;
  --maple2:#ff7a1a;
  --maple-dark:#c9430a;
  --cream:#fff8f1;
  --paper:#fffdfa;
  --text:#30251f;
  --muted:#8b7769;
  --line:#efe1d5;
  --shadow:0 16px 40px rgba(91,48,20,.16);
}

*{
  box-sizing:border-box;
}

html{
  scroll-behavior:smooth;
}

html,body{
  margin:0;
  min-height:100%;
}

body{
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;

  color:var(--text);
  background:#f1e0ce;
  overflow-x:hidden;
}

button,
select,
input{
  font:inherit;
}

button{
  cursor:pointer;
}

.maple-bg{
  position:fixed;
  inset:0;
  z-index:-10;

  background:
    linear-gradient(
      180deg,
      rgba(100,45,14,.12),
      rgba(255,238,217,.50) 35%,
      rgba(255,250,244,.88)
    ),
    url("/assets/maple-cabin-bg.jpg")
    center top / cover fixed no-repeat;
}

/* 如果背景图片还没有放进去，先用这层颜色兜底 */
.maple-bg::after{
  content:"";
  position:absolute;
  inset:0;

  background:
    radial-gradient(
      circle at 12% 12%,
      rgba(231,91,18,.20),
      transparent 22%
    ),
    radial-gradient(
      circle at 88% 18%,
      rgba(184,59,16,.15),
      transparent 26%
    );
}

.app-shell{
  width:min(1040px,100%);
  margin:0 auto;
  padding:22px 16px 100px;
}

.hero-card,
.white-card{
  position:relative;
  overflow:hidden;

  background:
    rgba(255,255,255,.94);

  border:
    2px solid rgba(255,255,255,.98);

  border-radius:26px;

  box-shadow:var(--shadow);

  backdrop-filter:
    blur(16px);

  -webkit-backdrop-filter:
    blur(16px);
}

.hero-card{
  padding:26px;
}

.brand-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
}

.brand-row h1{
  margin:0;
  color:var(--maple);
  font-size:42px;
  line-height:1;
  font-weight:950;
  letter-spacing:1px;
}

.brand-row p{
  margin:10px 0 0;
  color:#654a3b;
  font-size:16px;
}

.tg-status{
  min-width:245px;

  display:flex;
  align-items:center;
  gap:12px;

  padding:13px 16px;

  background:
    linear-gradient(
      135deg,
      #fff7f0,
      #ffffff
    );

  border:1px solid #f0ddd0;
  border-radius:18px;
}

.tg-dot,
.tg-round{
  flex:none;

  display:grid;
  place-items:center;

  border-radius:50%;

  color:white;

  background:
    linear-gradient(
      145deg,
      #42b9ef,
      #168ac6
    );

  box-shadow:
    0 6px 15px rgba(18,139,203,.25);
}

.tg-dot{
  width:42px;
  height:42px;
  font-size:18px;
}

.tg-status b{
  display:block;
}

.tg-status small{
  display:block;
  margin-top:3px;
  color:var(--muted);
}

.white-card{
  margin-top:16px;
  padding:20px;
}

.section-title{
  display:flex;
  align-items:center;
  gap:11px;

  color:var(--maple-dark);
}

.section-title>span{
  font-size:24px;
}

.section-title div{
  display:flex;
  flex-direction:column;
  gap:3px;
}

.section-title b{
  font-size:20px;
}

.section-title small{
  color:#a07960;
  font-size:13px;
  font-weight:500;
}

.region-grid{
  display:grid;
  grid-template-columns:
    repeat(4,minmax(0,1fr));

  gap:10px;

  margin-top:16px;
}

.region-grid select,
.project-select{
  width:100%;
  height:58px;

  padding:0 14px;

  color:#51392b;
  font-weight:700;

  background:white;

  border:
    1px solid #ead9cb;

  border-radius:15px;

  outline:none;

  transition:.2s;
}

.region-grid select:focus,
.project-select:focus{
  border-color:#f49a67;

  box-shadow:
    0 0 0 3px rgba(240,90,20,.10);
}

.local-group-card{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}

.group-info{
  display:flex;
  align-items:center;
  gap:14px;
}

.tg-round{
  width:60px;
  height:60px;
  font-size:25px;
}

.group-info h3{
  margin:0;
  font-size:22px;
  color:#3f3028;
}

.group-info p{
  margin:6px 0 0;
  color:var(--muted);
}

.group-btn{
  flex:none;

  padding:12px 21px;

  color:var(--maple);
  font-weight:800;

  background:white;

  border:
    1px solid var(--maple);

  border-radius:999px;

  transition:.2s;
}

.group-btn:hover{
  color:white;
  background:var(--maple);
}

.main-action{
  width:min(620px,92%);

  min-height:76px;

  margin:20px auto;

  display:flex;
  align-items:center;
  justify-content:center;
  gap:16px;

  padding:10px 26px;

  color:white;

  font-size:29px;
  font-weight:950;

  border:
    8px solid white;

  border-radius:999px;

  background:
    linear-gradient(
      180deg,
      #ff8424,
      #ed520f
    );

  box-shadow:
    0 14px 28px rgba(220,73,8,.35),
    inset 0 1px 0 rgba(255,255,255,.35);

  transition:
    transform .18s,
    box-shadow .18s;
}

.main-action:hover{
  transform:translateY(-2px);

  box-shadow:
    0 18px 34px rgba(220,73,8,.42);
}

.main-action span:first-child{
  font-size:31px;
}

.main-action strong{
  font-size:31px;
}

.quick-tags{
  display:flex;
  gap:9px;

  margin-top:16px;

  overflow-x:auto;
  scrollbar-width:none;
}

.quick-tags::-webkit-scrollbar{
  display:none;
}

.quick-tags button{
  flex:none;

  padding:10px 17px;

  color:#5d493d;

  background:white;

  border:
    1px solid #e8dbd2;

  border-radius:999px;

  transition:.2s;
}

.quick-tags button:hover,
.quick-tags button.active{
  color:#e64c0c;

  border-color:#f7a578;

  background:#fff1e8;
}

.search-line{
  height:56px;

  display:flex;

  margin-top:14px;

  overflow:hidden;

  border:
    1px solid #e5d7cc;

  border-radius:15px;

  background:white;
}

.search-line input{
  flex:1;

  min-width:0;

  padding:0 16px;

  border:0;
  outline:0;

  color:#4d392e;

  background:transparent;
}

.search-line button{
  width:92px;

  color:white;
  font-weight:800;

  border:0;

  background:
    linear-gradient(
      180deg,
      #ff7620,
      #eb4c0c
    );
}

.project-select{
  margin-top:10px;
}

.project-row{
  display:grid;

  grid-template-columns:
    repeat(6,minmax(105px,1fr));

  gap:10px;

  margin-top:16px;

  overflow-x:auto;
}

.project-item{
  min-height:95px;

  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:7px;

  color:#5b4438;

  background:
    linear-gradient(
      180deg,
      #fff,
      #fff8f3
    );

  border:
    1px solid #eedfd4;

  border-radius:18px;

  box-shadow:
    0 5px 13px rgba(80,45,25,.06);
}

.project-item span{
  font-size:27px;
}

.project-item.active,
.project-item:hover{
  color:white;

  border-color:transparent;

  background:
    linear-gradient(
      145deg,
      #ff8a42,
      #e94c0d
    );

  box-shadow:
    0 9px 20px rgba(232,76,13,.25);
}

.teacher-title-row{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;

  margin-bottom:16px;
}

.teacher-title-row h2{
  margin:0;
  color:#45342b;
  font-size:25px;
}

.teacher-title-row p{
  margin:6px 0 0;
  color:var(--muted);
}

.flip-switch{
  display:flex;
  align-items:center;
  gap:7px;

  padding:6px;

  background:#fff7f2;

  border-radius:999px;
}

.flip-switch>span{
  margin-left:5px;
  color:#8d6d5a;
  font-size:12px;
}

.flip-switch button{
  padding:8px 11px;

  color:#735747;

  background:transparent;

  border:0;
  border-radius:999px;
}

.flip-switch button.active{
  color:white;

  background:var(--maple);

  box-shadow:
    0 5px 12px rgba(225,74,10,.25);
}

/* ==================================================
   老师六宫格
   ================================================== */

.teacher-grid{
  display:grid;

  grid-template-columns:
    repeat(3,minmax(0,1fr));

  gap:14px;
}

.teacher-card{
  position:relative;

  height:410px;

  perspective:1300px;

  user-select:none;
}

.card-inner{
  position:absolute;
  inset:0;

  transform-style:preserve-3d;

  transition:
    transform .65s cubic-bezier(.22,.72,.26,1);
}

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

.card-front,
.card-back{
  position:absolute;
  inset:0;

  overflow:hidden;

  border-radius:22px;

  backface-visibility:hidden;
  -webkit-backface-visibility:hidden;

  box-shadow:
    0 12px 24px rgba(60,37,27,.16);

  border:
    2px solid rgba(255,255,255,.65);
}

.card-front{
  display:flex;
  flex-direction:column;
}

.card-back{
  transform:rotateY(180deg);

  padding:20px;

  display:flex;
  flex-direction:column;
  justify-content:center;
}

.card-back h3{
  margin:0 0 15px;
  font-size:23px;
}

.card-back p{
  margin:6px 0;
  line-height:1.6;
}

.photo-placeholder{
  flex:1;

  min-height:280px;

  display:grid;
  place-items:center;

  color:rgba(255,255,255,.92);

  font-size:20px;
  font-weight:800;

  text-shadow:
    0 2px 6px rgba(0,0,0,.28);

  background:
    linear-gradient(
      160deg,
      rgba(255,255,255,.18),
      rgba(55,35,25,.16)
    );
}

.teacher-info{
  min-height:110px;

  padding:14px;

  background:
    rgba(255,255,255,.78);

  backdrop-filter:
    blur(10px);
}

.teacher-info h3{
  margin:0;
  font-size:20px;
}

.teacher-info p{
  margin:7px 0 0;

  color:#755d4f;

  font-size:13px;
}

/* 晶石紫 */

.crystal{
  background:
    radial-gradient(
      circle at 25% 10%,
      rgba(255,255,255,.55),
      transparent 30%
    ),
    linear-gradient(
      145deg,
      #d8caff,
      #7655bb
    );
}

/* 火山橙 */

.volcano{
  background:
    radial-gradient(
      circle at 75% 15%,
      rgba(255,238,194,.55),
      transparent 28%
    ),
    linear-gradient(
      145deg,
      #ffc088,
      #e75b17
    );
}

/* 星灰绿 */

.stargray{
  background:
    radial-gradient(
      circle at 25% 10%,
      rgba(255,255,255,.5),
      transparent 30%
    ),
    linear-gradient(
      145deg,
      #d7e2dc,
      #6e8375
    );
}

/* 洒蓝 */

.sprinkleblue{
  background:
    radial-gradient(
      circle at 72% 10%,
      rgba(255,255,255,.55),
      transparent 30%
    ),
    linear-gradient(
      145deg,
      #cbe9ff,
      #559bd5
    );
}

/* 春叶绿 */

.springgreen{
  background:
    radial-gradient(
      circle at 25% 12%,
      rgba(255,255,255,.55),
      transparent 30%
    ),
    linear-gradient(
      145deg,
      #e2f3ae,
      #7d9f3f
    );
}

/* 胭脂红 */

.rouge{
  background:
    radial-gradient(
      circle at 75% 12%,
      rgba(255,255,255,.48),
      transparent 30%
    ),
    linear-gradient(
      145deg,
      #ffcbd5,
      #bf425d
    );
}

.load-more{
  display:block;

  margin:20px auto 0;

  padding:12px 25px;

  color:var(--maple);
  font-weight:800;

  background:#fff0e6;

  border:0;
  border-radius:999px;
}

/* ==================================================
   老师详情
   ================================================== */

.modal{
  position:fixed;
  inset:0;

  z-index:1000;
}

.hidden{
  display:none !important;
}

.modal-mask{
  position:absolute;
  inset:0;

  background:
    rgba(28,17,12,.70);

  backdrop-filter:blur(4px);
}

.detail-sheet{
  position:absolute;

  left:50%;
  bottom:0;

  width:min(720px,100%);
  max-height:92vh;

  transform:
    translateX(-50%);

  overflow-y:auto;

  background:white;

  border-radius:
    30px 30px 0 0;

  box-shadow:
    0 -18px 50px rgba(0,0,0,.25);
}

.close-btn{
  position:absolute;

  right:15px;
  top:15px;

  z-index:5;

  width:42px;
  height:42px;

  display:grid;
  place-items:center;

  color:white;

  font-size:29px;
  line-height:1;

  background:
    rgba(20,14,10,.65);

  border:0;
  border-radius:50%;
}

.detail-photo{
  height:430px;

  display:grid;
  place-items:center;

  color:white;
  font-size:22px;
  font-weight:800;

  background:
    linear-gradient(
      145deg,
      #d9914d,
      #7b4324
    );
}

.detail-content{
  padding:23px;
}

.detail-content h2{
  margin-top:0;
}

.detail-content p{
  margin:9px 0;
}

.detail-description{
  margin-top:17px;

  padding:15px;

  color:#6f594c;

  line-height:1.75;

  background:#fff8f2;

  border-radius:15px;
}

.detail-actions{
  position:sticky;
  bottom:0;

  display:grid;

  grid-template-columns:
    repeat(3,1fr);

  gap:8px;

  margin-top:20px;

  padding:
    10px 0 3px;

  background:white;
}

.detail-actions button{
  min-height:48px;

  padding:9px;

  color:white;
  font-weight:800;

  border:0;
  border-radius:14px;

  background:
    linear-gradient(
      180deg,
      #fb7625,
      #e74b0c
    );
}

/* ==================================================
   桌面小屏
   ================================================== */

@media(max-width:800px){

  .app-shell{
    padding:
      14px 10px 80px;
  }

  .brand-row{
    align-items:flex-start;
    flex-direction:column;
  }

  .tg-status{
    width:100%;
  }

  .region-grid{
    grid-template-columns:
      repeat(2,1fr);
  }

  .project-row{
    grid-template-columns:
      repeat(3,1fr);
  }

  .teacher-grid{
    grid-template-columns:
      repeat(2,minmax(0,1fr));
  }

  .teacher-title-row{
    flex-direction:column;
  }

}

/* ==================================================
   手机
   ================================================== */

@media(max-width:520px){

  .hero-card,
  .white-card{
    border-radius:20px;
  }

  .hero-card{
    padding:20px;
  }

  .brand-row h1{
    font-size:33px;
  }

  .white-card{
    padding:15px;
  }

  .region-grid{
    gap:8px;
  }

  .region-grid select{
    height:52px;
    padding:0 9px;
    font-size:14px;
  }

  .local-group-card{
    align-items:flex-start;
  }

  .tg-round{
    width:48px;
    height:48px;
  }

  .group-info h3{
    font-size:18px;
  }

  .group-info p{
    font-size:12px;
  }

  .group-btn{
    padding:9px 11px;
    font-size:12px;
  }

  .main-action{
    min-height:66px;
    font-size:23px;
    border-width:6px;
  }

  .project-row{
    display:flex;
    overflow-x:auto;
  }

  .project-item{
    flex:0 0 112px;
  }

  .teacher-grid{
    grid-template-columns:
      repeat(2,minmax(0,1fr));

    gap:9px;
  }

  .teacher-card{
    height:350px;
  }

  .photo-placeholder{
    min-height:225px;
    font-size:15px;
  }

  .teacher-info{
    min-height:105px;
    padding:11px;
  }

  .teacher-info h3{
    font-size:17px;
  }

  .teacher-info p{
    font-size:11px;
  }

  .flip-switch{
    width:100%;

    justify-content:space-between;
  }

  .flip-switch>span{
    display:none;
  }

  .flip-switch button{
    flex:1;
  }

  .detail-photo{
    height:360px;
  }

  .detail-actions{
    grid-template-columns:
      1fr;
  }

}

/* ==================================================
   新版顶部操作
   ================================================== */

.top-bar{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
}

.brand-block h1{
  margin:0;
  color:var(--maple);
  font-size:42px;
  line-height:1;
  font-weight:950;
}

.brand-block p{
  margin:11px 0 0;
  color:#6d4f3c;
  font-weight:700;
  letter-spacing:.5px;
}

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

.top-btn{
  min-height:42px;
  padding:9px 15px;
  border-radius:999px;
  font-weight:850;
}

.recharge-btn{
  color:white;
  border:1px solid var(--maple);
  background:linear-gradient(180deg,#ff8128,#ec500d);
}

.my-btn{
  color:var(--maple);
  border:1px solid var(--maple);
  background:white;
}

.local-preview{
  margin-top:18px;
  display:flex;
  align-items:center;
  gap:10px;
  padding:11px 14px;
  border-radius:15px;
  background:#fff7ef;
  border:1px solid #f1ded0;
}

.local-preview b,
.local-preview small{
  display:block;
}

.local-preview small{
  margin-top:2px;
  color:var(--muted);
}


/* ==================================================
   老师标签 / 卡片详情按钮
   ================================================== */

.teacher-tags{
  display:flex;
  gap:5px;
  flex-wrap:wrap;
  margin-top:7px;
}

.teacher-tags span{
  padding:3px 8px;
  border-radius:999px;
  font-size:11px;
  color:#82482c;
  background:rgba(255,255,255,.65);
}

.card-detail-btn{
  margin-top:12px;
  padding:10px 14px;
  border:0;
  border-radius:12px;
  color:white;
  font-weight:800;
  background:rgba(55,37,29,.72);
}

.infinite-loader{
  padding:22px 10px 6px;
  text-align:center;
  color:#a16d4f;
  font-size:13px;
}


/* ==================================================
   详情图片 / 视频
   ================================================== */

.detail-gallery{
  display:flex;
  overflow-x:auto;
  scroll-snap-type:x mandatory;
  scrollbar-width:none;
}

.detail-gallery::-webkit-scrollbar{
  display:none;
}

.detail-media{
  flex:0 0 100%;
  height:430px;
  display:grid;
  place-items:center;
  scroll-snap-align:start;
  color:white;
  font-size:22px;
  font-weight:850;
  background:
    linear-gradient(
      145deg,
      #e29b57,
      #78462b
    );
}

.video-lock{
  background:
    radial-gradient(
      circle at center,
      #745744,
      #30231c
    );
}

.video-lock>div{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:9px;
  padding:24px;
}

.video-lock strong{
  font-size:22px;
}

.video-lock small{
  opacity:.8;
}

.detail-tags{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin:8px 0 16px;
}

.detail-tags span{
  padding:5px 10px;
  border-radius:999px;
  color:#df510f;
  background:#fff0e6;
}

.detail-info{
  line-height:1.7;
}


/* ==================================================
   老师详情操作
   ================================================== */

.detail-small-actions{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:8px;
  margin-top:18px;
}

.detail-small-actions button{
  min-height:46px;
  padding:8px 5px;
  border-radius:13px;
  color:#e95211;
  font-weight:800;
  border:1px solid #f2a07a;
  background:#fff8f3;
}

.detail-main-actions{
  position:sticky;
  bottom:0;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin-top:13px;
  padding:10px 0 4px;
  background:white;
}

.detail-main-actions button{
  min-height:54px;
  border:0;
  border-radius:15px;
  color:white;
  font-size:16px;
  font-weight:900;
}

.gift-main-btn{
  background:
    linear-gradient(
      180deg,
      #ff9a28,
      #f1690e
    );
}

.report-main-btn{
  background:
    linear-gradient(
      180deg,
      #e76339,
      #bd391e
    );
}


/* ==================================================
   通用底部弹层
   ================================================== */

.bottom-sheet{
  position:absolute;
  left:50%;
  bottom:0;

  width:min(660px,100%);
  max-height:90vh;

  transform:translateX(-50%);

  overflow-y:auto;

  padding:24px 20px 30px;

  background:white;

  border-radius:
    28px 28px 0 0;

  box-shadow:
    0 -18px 50px rgba(0,0,0,.24);
}

.bottom-sheet h2{
  margin:0 0 18px;
  color:#4b3326;
}

.sheet-main-btn{
  width:100%;
  min-height:54px;
  margin-top:18px;

  color:white;
  font-size:16px;
  font-weight:900;

  border:0;
  border-radius:15px;

  background:
    linear-gradient(
      180deg,
      #ff7d26,
      #e94a0d
    );
}


/* ==================================================
   送礼
   ================================================== */

.balance-line{
  padding:13px 15px;
  border-radius:14px;
  background:#fff6ef;
}

.gift-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:9px;
  margin-top:15px;
}

.gift-item{
  min-height:105px;

  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:4px;

  border:1px solid #eeddd1;
  border-radius:16px;

  background:white;
}

.gift-item span{
  font-size:29px;
}

.gift-item small{
  color:#8f6a55;
}

.gift-item.active{
  border-color:#f4864e;
  background:#fff0e7;
  box-shadow:
    0 6px 14px rgba(225,82,17,.12);
}

.gift-quantity{
  margin-top:17px;

  display:flex;
  align-items:center;
  justify-content:center;
  gap:18px;

  padding:14px;

  border-radius:14px;
  background:#fff9f5;
}

.gift-quantity>span{
  margin-right:auto;
  font-weight:800;
}

.gift-quantity button{
  width:38px;
  height:38px;
  border:0;
  border-radius:50%;
  color:#e85311;
  font-size:21px;
  background:#ffe9dc;
}

.gift-summary{
  margin-top:12px;
  padding:14px;
  border:1px solid #f0dfd2;
  border-radius:15px;
}

.gift-summary>div{
  display:flex;
  justify-content:space-between;
  padding:6px 0;
}


/* ==================================================
   写报告
   ================================================== */

.report-textarea{
  width:100%;
  min-height:190px;
  resize:vertical;

  padding:14px;

  outline:none;

  border:
    1px solid #e8d8cd;

  border-radius:15px;
}


/* ==================================================
   充值
   ================================================== */

.account-summary{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:8px;
  margin-bottom:16px;
}

.account-summary>div{
  display:flex;
  flex-direction:column;
  gap:5px;

  padding:14px 10px;

  text-align:center;

  border-radius:15px;

  background:#fff7ef;
}

.account-summary span{
  color:#8b6c59;
  font-size:12px;
}

.account-summary b{
  color:#e65210;
}

.recharge-tabs{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:7px;

  padding:5px;

  border-radius:999px;

  background:#fff2e8;
}

.recharge-tabs button{
  min-height:42px;
  border:0;
  border-radius:999px;
  background:transparent;
}

.recharge-tabs button.active{
  color:white;
  background:var(--maple);
}

.recharge-panel{
  margin-top:15px;
}

.panel-note{
  color:#896d5e;
  font-size:13px;
}

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

.vip-grid button,
.balance-options button{
  min-height:68px;

  color:#6d4733;
  font-weight:900;

  border:1px solid #efddcf;
  border-radius:14px;

  background:white;
}

.vip-grid button:hover,
.balance-options button:hover{
  color:#e8500e;
  border-color:#f09062;
  background:#fff4ec;
}

.vip-video{
  color:#e24b0d !important;
  background:#fff0e7 !important;
}

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


/* ==================================================
   我的
   ================================================== */

.profile-card{
  display:flex;
  align-items:center;
  gap:13px;

  margin-bottom:15px;
  padding:14px;

  border-radius:16px;

  background:#fff7f1;
}

.profile-avatar{
  width:54px;
  height:54px;

  display:grid;
  place-items:center;

  flex:none;

  color:white;
  font-weight:900;

  border-radius:50%;

  background:
    linear-gradient(
      145deg,
      #ff8d3e,
      #df4b11
    );
}

.profile-card b,
.profile-card small{
  display:block;
}

.profile-card small{
  margin-top:4px;
  color:#947362;
}

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

.my-menu button{
  min-height:54px;

  text-align:left;
  padding:0 14px;

  color:#624738;
  font-weight:800;

  border:1px solid #edddd2;
  border-radius:14px;

  background:white;
}


/* ==================================================
   手机补充
   ================================================== */

@media(max-width:520px){

  .top-bar{
    gap:10px;
  }

  .brand-block h1{
    font-size:31px;
  }

  .brand-block p{
    font-size:13px;
  }

  .top-actions{
    flex-direction:column;
  }

  .top-btn{
    min-height:36px;
    padding:6px 10px;
    font-size:12px;
  }

  .gift-grid{
    grid-template-columns:repeat(2,1fr);
  }

  .detail-media{
    height:350px;
  }

  .detail-small-actions{
    grid-template-columns:repeat(3,1fr);
  }

  .detail-small-actions button{
    font-size:11px;
  }

}


/* =========================================================
   项目入口固定 5 × 2
   ========================================================= */

.project-row{
  display:grid !important;
  grid-template-columns:repeat(5,minmax(0,1fr)) !important;
  gap:8px !important;
  width:100%;
}

.project-item{
  min-width:0 !important;
  min-height:72px;

  display:flex !important;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:5px;

  padding:8px 4px !important;
  text-align:center;
}

.project-item span{
  font-size:20px;
  line-height:1;
}

.project-item b{
  font-size:13px;
  line-height:1.15;
  white-space:nowrap;
}

@media(max-width:520px){

  .project-row{
    grid-template-columns:repeat(5,minmax(0,1fr)) !important;
    gap:6px !important;
  }

  .project-item{
    min-height:66px;
    padding:7px 2px !important;
  }

  .project-item span{
    font-size:18px;
  }

  .project-item b{
    font-size:11px;
  }

}


/* =========================================================
   老师详情：图片 / VIP3 视频轮播
   ========================================================= */

.teacher-media-box{
  width:100%;
  overflow:hidden;
  background:#211711;
}

.detail-main-media{
  position:relative;
  width:100%;
  height:430px;
  overflow:hidden;
  background:#2b1e17;
}

.media-content{
  width:100%;
  height:100%;
}

.media-demo-photo{
  width:100%;
  height:100%;

  display:flex;
  align-items:center;
  justify-content:center;

  color:#fff;
  font-size:22px;
  font-weight:900;
}

.media-demo-1{
  background:
    linear-gradient(
      145deg,
      #d99c75,
      #754938
    );
}

.media-demo-2{
  background:
    linear-gradient(
      145deg,
      #7b91ae,
      #364a66
    );
}


/* VIP3视频锁 */

.media-video-lock{
  width:100%;
  height:100%;

  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;

  gap:9px;

  color:white;

  background:
    radial-gradient(
      circle at center,
      #665045,
      #211915
    );
}

.media-video-lock .lock-icon{
  font-size:50px;
}

.media-video-lock strong{
  font-size:22px;
}

.media-video-lock small{
  opacity:.76;
}


/* 左右箭头 */

.media-arrow{
  position:absolute;

  top:50%;
  z-index:15;

  width:46px;
  height:46px;

  transform:translateY(-50%);

  display:grid;
  place-items:center;

  padding:0;

  border:0;
  border-radius:50%;

  color:#fff;

  font-size:35px;
  line-height:1;

  background:
    rgba(20,13,9,.45);

  backdrop-filter:
    blur(5px);
}

.media-arrow-left{
  left:12px;
}

.media-arrow-right{
  right:12px;
}


/* 图片数量 */

.media-counter{
  position:absolute;

  right:13px;
  bottom:13px;

  z-index:15;

  padding:5px 10px;

  border-radius:999px;

  color:white;

  font-size:12px;
  font-weight:800;

  background:
    rgba(0,0,0,.52);
}


/* 下方缩略图 */

.media-thumbs{
  display:flex;
  align-items:center;

  gap:8px;

  width:100%;

  padding:10px;

  overflow-x:auto;

  scrollbar-width:none;

  background:#201610;
}

.media-thumbs::-webkit-scrollbar{
  display:none;
}

.media-thumb{
  flex:0 0 92px;

  height:65px;

  padding:3px;

  overflow:hidden;

  border:2px solid transparent;

  border-radius:11px;

  background:#392820;
}

.media-thumb.active{
  border-color:#ff782c;

  box-shadow:
    0 0 0 1px
    rgba(255,120,44,.2);
}

.thumb-demo{
  width:100%;
  height:100%;

  display:grid;
  place-items:center;

  overflow:hidden;

  border-radius:7px;

  color:white;

  font-size:11px;
  font-weight:850;
}

.thumb-demo-1{
  background:#a96a4e;
}

.thumb-demo-2{
  background:#627791;
}

.thumb-video{
  background:
    linear-gradient(
      145deg,
      #3b3029,
      #191410
    );
}


/* 手机端 */

@media(max-width:520px){

  .detail-main-media{
    height:360px;
  }

  .media-arrow{
    width:42px;
    height:42px;

    font-size:31px;
  }

  .media-arrow-left{
    left:8px;
  }

  .media-arrow-right{
    right:8px;
  }

  .media-thumb{
    flex-basis:82px;
    height:59px;
  }

}


/* =========================================================
   体验报告弹窗 - 手机防卡死
   ========================================================= */

#reportListModal{
  position:fixed !important;
  inset:0 !important;
  width:100% !important;
  height:100% !important;
  z-index:12000 !important;
  overflow:hidden !important;
}

#reportListModal .modal-mask{
  position:absolute !important;
  inset:0 !important;
}

#reportListModal .bottom-sheet{
  position:absolute !important;

  left:50% !important;
  bottom:0 !important;

  transform:translateX(-50%) !important;

  width:min(680px,100%) !important;

  height:auto !important;
  max-height:92vh !important;
  max-height:92dvh !important;

  overflow-y:auto !important;
  overflow-x:hidden !important;

  overscroll-behavior:contain !important;
  -webkit-overflow-scrolling:touch !important;

  padding:
    18px
    18px
    calc(28px + env(safe-area-inset-bottom))
    !important;

  border-radius:
    24px 24px 0 0 !important;
}


/* X 固定在右上角，不随内容消失 */

#reportListModal .close-btn{
  position:sticky !important;

  top:
    calc(4px + env(safe-area-inset-top))
    !important;

  margin-left:auto !important;
  margin-right:0 !important;

  z-index:100 !important;

  width:42px !important;
  height:42px !important;

  display:grid !important;
  place-items:center !important;

  border:0 !important;
  border-radius:50% !important;

  font-size:27px !important;
  line-height:1 !important;

  background:
    rgba(255,255,255,.96) !important;

  box-shadow:
    0 3px 14px
    rgba(0,0,0,.15) !important;
}


/* 报告列表自己正常排列 */

#reportListModal .report-list{
  display:flex !important;
  flex-direction:column !important;
  gap:12px !important;

  width:100% !important;

  padding-bottom:
    calc(20px + env(safe-area-inset-bottom))
    !important;
}

#reportListModal .report-card{
  flex:none !important;

  padding:14px !important;

  border:1px solid #eadbd1 !important;
  border-radius:15px !important;

  background:#fffaf7 !important;
}

#reportListModal .report-card-head{
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:10px !important;

  margin-bottom:8px !important;
}

#reportListModal .report-card p{
  margin:8px 0 !important;

  line-height:1.65 !important;

  word-break:break-word !important;
  overflow-wrap:anywhere !important;
}

#reportListModal .report-card small{
  display:block !important;
  color:#987665 !important;
}


/* 小屏手机 */

@media(max-width:520px){

  #reportListModal .bottom-sheet{
    width:100% !important;

    max-height:94vh !important;
    max-height:94dvh !important;

    padding-left:
      max(
        15px,
        env(safe-area-inset-left)
      ) !important;

    padding-right:
      max(
        15px,
        env(safe-area-inset-right)
      ) !important;
  }

}


/* =========================================================
   MAPLE 手机弹窗导航安全区 V2
   ========================================================= */

html.maple-modal-open,
html.maple-modal-open body{
  overflow:hidden !important;
  overscroll-behavior:none;
}


/* 手机保留左右一点空白区域 */

@media(max-width:520px){

  .detail-sheet,
  .bottom-sheet{

    width:
      calc(100% - 24px) !important;

    max-width:
      calc(100% - 24px) !important;

    max-height:94dvh !important;

    left:50% !important;
    bottom:0 !important;

    transform:
      translateX(-50%) !important;

    overflow-y:auto !important;
    overflow-x:hidden !important;

    -webkit-overflow-scrolling:
      touch !important;

    overscroll-behavior:
      contain !important;

    padding-bottom:
      calc(
        24px +
        env(safe-area-inset-bottom)
      ) !important;

    border-radius:
      22px 22px 0 0 !important;
  }


  /* 体验报告也保留左右空白 */

  #reportListModal .bottom-sheet{

    width:
      calc(100% - 24px) !important;

    max-width:
      calc(100% - 24px) !important;
  }

}


/* X始终保持右上角可见 */

.detail-sheet > .close-btn,
.bottom-sheet > .close-btn{

  position:sticky !important;

  top:
    calc(
      6px +
      env(safe-area-inset-top)
    ) !important;

  z-index:200 !important;

  display:grid !important;
  place-items:center !important;

  width:42px !important;
  height:42px !important;

  margin-left:auto !important;
  margin-right:4px !important;

  border:0 !important;
  border-radius:50% !important;

  color:#543827 !important;

  font-size:27px !important;
  line-height:1 !important;

  background:
    rgba(255,255,255,.96) !important;

  box-shadow:
    0 3px 15px
    rgba(0,0,0,.16) !important;
}


/* =========================================================
   全屏礼物展示 V1
   ========================================================= */

.gift-show-modal{
  position:fixed !important;
  inset:0 !important;
  z-index:20000 !important;
  overflow:hidden !important;
}

.gift-show-bg{
  position:absolute;
  inset:0;

  background:
    radial-gradient(
      circle at center,
      rgba(255,147,66,.22),
      rgba(20,12,8,.92) 62%
    );

  backdrop-filter:
    blur(8px);
}

.gift-show-stage{
  position:absolute;
  inset:0;

  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;

  padding:
    max(24px,env(safe-area-inset-top))
    20px
    max(28px,env(safe-area-inset-bottom));

  overflow:hidden;
}


/* 右上角关闭 */

.gift-show-close{
  position:absolute;

  top:
    max(
      14px,
      env(safe-area-inset-top)
    );

  right:
    max(
      14px,
      env(safe-area-inset-right)
    );

  z-index:50;

  width:44px;
  height:44px;

  display:grid;
  place-items:center;

  border:0;
  border-radius:50%;

  color:#5b3825;

  font-size:28px;
  line-height:1;

  background:
    rgba(255,255,255,.94);

  box-shadow:
    0 6px 22px
    rgba(0,0,0,.2);
}


/* 礼物中心区域 */

.gift-effect-area{
  position:relative;

  width:min(360px,80vw);
  height:min(360px,80vw);

  display:grid;
  place-items:center;
}

.gift-big-icon{
  position:relative;
  z-index:10;

  font-size:
    clamp(
      88px,
      24vw,
      170px
    );

  line-height:1;

  filter:
    drop-shadow(
      0 18px 30px
      rgba(0,0,0,.28)
    );

  transform:
    scale(.4);

  opacity:0;
}

.gift-glow{
  position:absolute;

  width:72%;
  height:72%;

  border-radius:50%;

  opacity:0;

  background:
    radial-gradient(
      circle,
      rgba(255,215,120,.85),
      rgba(255,132,55,.28) 44%,
      transparent 72%
    );

  filter:
    blur(5px);
}


/* 文案 */

.gift-show-info{
  position:relative;
  z-index:20;

  width:min(430px,90vw);

  margin-top:-10px;

  padding:18px 20px;

  text-align:center;

  border:
    1px solid
    rgba(255,255,255,.22);

  border-radius:22px;

  color:white;

  background:
    rgba(55,30,18,.48);

  backdrop-filter:
    blur(10px);

  box-shadow:
    0 14px 40px
    rgba(0,0,0,.24);
}

.gift-show-title{
  font-size:15px;
  opacity:.9;
}

.gift-show-title strong{
  color:#ffd09d;
}

.gift-show-name{
  margin-top:8px;

  font-size:27px;
  font-weight:950;
}

.gift-show-name b{
  margin-left:8px;

  color:#ffd36f;
}

.gift-show-popularity{
  margin-top:10px;

  font-size:16px;
}

.gift-show-popularity strong{
  margin-left:5px;

  color:#ffb55f;

  font-size:21px;
}


/* 3秒进度条 */

.gift-show-progress{
  width:min(360px,76vw);
  height:5px;

  margin-top:16px;

  overflow:hidden;

  border-radius:999px;

  background:
    rgba(255,255,255,.18);
}

#giftShowProgressBar{
  width:100%;
  height:100%;

  transform-origin:left center;

  background:
    linear-gradient(
      90deg,
      #ff9a45,
      #ffd071
    );
}


/* =========================================================
   通用礼物动画
   ========================================================= */

.gift-show-modal.playing .gift-big-icon{
  animation:
    mapleGiftPop
    .65s
    cubic-bezier(.18,.85,.24,1.35)
    forwards;
}

.gift-show-modal.playing .gift-glow{
  animation:
    mapleGiftGlow
    1.5s
    ease-out
    forwards;
}

.gift-show-modal.playing #giftShowProgressBar{
  animation:
    mapleGiftProgress
    3s
    linear
    forwards;
}

@keyframes mapleGiftPop{

  0%{
    opacity:0;
    transform:
      scale(.25)
      rotate(-12deg);
  }

  65%{
    opacity:1;
    transform:
      scale(1.16)
      rotate(4deg);
  }

  100%{
    opacity:1;
    transform:
      scale(1)
      rotate(0);
  }

}

@keyframes mapleGiftGlow{

  0%{
    opacity:0;
    transform:scale(.4);
  }

  35%{
    opacity:1;
  }

  100%{
    opacity:.2;
    transform:scale(1.45);
  }

}

@keyframes mapleGiftProgress{

  from{
    transform:scaleX(1);
  }

  to{
    transform:scaleX(0);
  }

}


/* =========================================================
   单独礼物效果
   ========================================================= */

/* 鲜花 */

.gift-show-modal.gift-flower .gift-big-icon{
  animation:
    mapleGiftFlower
    1.1s
    ease-out
    forwards;
}

@keyframes mapleGiftFlower{

  0%{
    opacity:0;
    transform:
      translateY(120px)
      scale(.4)
      rotate(-25deg);
  }

  70%{
    opacity:1;
    transform:
      translateY(-10px)
      scale(1.12)
      rotate(8deg);
  }

  100%{
    opacity:1;
    transform:
      translateY(0)
      scale(1);
  }

}


/* 钻石 */

.gift-show-modal.gift-diamond .gift-big-icon{
  animation:
    mapleGiftDiamond
    1.25s
    ease-out
    forwards;
}

@keyframes mapleGiftDiamond{

  0%{
    opacity:0;
    transform:
      scale(.3)
      rotate(-35deg);

    filter:
      brightness(1)
      drop-shadow(
        0 0 0
        transparent
      );
  }

  55%{
    opacity:1;
    transform:
      scale(1.2)
      rotate(8deg);

    filter:
      brightness(1.8)
      drop-shadow(
        0 0 30px
        rgba(180,225,255,.9)
      );
  }

  100%{
    opacity:1;
    transform:
      scale(1)
      rotate(0);

    filter:
      brightness(1.2)
      drop-shadow(
        0 12px 30px
        rgba(80,180,255,.48)
      );
  }

}


/* 皇冠 */

.gift-show-modal.gift-crown .gift-big-icon{
  animation:
    mapleGiftCrown
    1s
    cubic-bezier(.2,.9,.22,1.25)
    forwards;
}

@keyframes mapleGiftCrown{

  0%{
    opacity:0;
    transform:
      translateY(-150px)
      scale(.45)
      rotate(-15deg);
  }

  70%{
    opacity:1;
    transform:
      translateY(12px)
      scale(1.2)
      rotate(5deg);
  }

  100%{
    opacity:1;
    transform:
      translateY(0)
      scale(1);
  }

}


/* 火箭 */

.gift-show-modal.gift-rocket .gift-big-icon{
  animation:
    mapleGiftRocket
    1.5s
    ease-in-out
    forwards;
}

@keyframes mapleGiftRocket{

  0%{
    opacity:0;
    transform:
      translateY(230px)
      scale(.45)
      rotate(-12deg);
  }

  35%{
    opacity:1;
  }

  72%{
    transform:
      translateY(-45px)
      scale(1.12)
      rotate(5deg);
  }

  100%{
    opacity:1;
    transform:
      translateY(0)
      scale(1);
  }

}


/* 手机 */

@media(max-width:520px){

  .gift-show-info{
    width:88vw;

    padding:
      15px 14px;
  }

  .gift-show-name{
    font-size:23px;
  }

  .gift-show-close{
    width:42px;
    height:42px;
  }

}


/* =========================================================
   老师图片 / 视频全屏预览
   左右保留空白导航区域
   ========================================================= */

#mediaPreviewModal{
  position:fixed !important;
  inset:0 !important;

  z-index:19000 !important;

  overflow:hidden !important;

  background:
    rgba(10,7,5,.82);
}


/* 后方左右空白区域 */

#mediaPreviewModal .modal-mask{
  position:absolute !important;
  inset:0 !important;

  background:
    rgba(8,6,5,.65);

  backdrop-filter:
    blur(5px);
}


/* 主预览框 */

.media-preview-sheet{
  position:absolute;

  left:50%;
  top:50%;

  width:
    min(
      760px,
      calc(100% - 56px)
    );

  height:
    min(
      94dvh,
      920px
    );

  transform:
    translate(-50%,-50%);

  display:flex;
  flex-direction:column;

  overflow:hidden;

  border-radius:22px;

  background:#0d0b0a;

  box-shadow:
    0 20px 70px
    rgba(0,0,0,.55);
}


/* 右上角 X */

.media-preview-sheet > .close-btn{
  position:absolute !important;

  top:
    max(
      12px,
      env(safe-area-inset-top)
    ) !important;

  right:12px !important;

  z-index:100 !important;

  width:44px !important;
  height:44px !important;

  margin:0 !important;

  display:grid !important;
  place-items:center !important;

  border:0 !important;
  border-radius:50% !important;

  color:#3f2d23 !important;

  font-size:28px !important;
  line-height:1 !important;

  background:
    rgba(255,255,255,.94) !important;

  box-shadow:
    0 5px 20px
    rgba(0,0,0,.26) !important;
}


/* =========================================================
   主媒体区域
   ========================================================= */

.preview-media-stage{
  position:relative;

  flex:1 1 auto;

  min-height:0;

  overflow:hidden;

  background:#080808;
}

.preview-media-content{
  width:100%;
  height:100%;

  display:flex;
  align-items:center;
  justify-content:center;

  overflow:hidden;

  touch-action:
    pan-y;
}


/* 本地预览图片 */

.preview-demo{
  width:100%;
  height:100%;

  display:grid;
  place-items:center;

  color:white;

  font-size:24px;
  font-weight:900;

  user-select:none;
}

.preview-demo-1{
  background:
    linear-gradient(
      145deg,
      #b87858,
      #56392e
    );
}

.preview-demo-2{
  background:
    linear-gradient(
      145deg,
      #607a9c,
      #263e5e
    );
}


/* VIP3视频锁 */

.preview-video-lock{
  width:100%;
  height:100%;

  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;

  gap:10px;

  color:white;

  background:
    radial-gradient(
      circle at center,
      #4c4038,
      #0d0b0a
    );
}

.preview-video-lock .lock-icon{
  font-size:58px;
}

.preview-video-lock strong{
  font-size:23px;
}

.preview-video-lock small{
  opacity:.75;
}


/* =========================================================
   左右切换箭头
   ========================================================= */

.preview-arrow{
  position:absolute;

  top:50%;

  z-index:40;

  width:50px;
  height:50px;

  transform:
    translateY(-50%);

  display:grid;
  place-items:center;

  padding:0;

  border:0;
  border-radius:50%;

  color:white;

  font-size:37px;
  line-height:1;

  background:
    rgba(0,0,0,.42);

  backdrop-filter:
    blur(5px);
}

.preview-arrow-left{
  left:14px;
}

.preview-arrow-right{
  right:14px;
}


/* 数量 */

.preview-media-counter{
  position:absolute;

  right:15px;
  bottom:14px;

  z-index:40;

  padding:6px 11px;

  border-radius:999px;

  color:white;

  font-size:12px;
  font-weight:850;

  background:
    rgba(0,0,0,.56);
}


/* =========================================================
   底部缩略图
   ========================================================= */

.preview-media-thumbs{
  flex:none;

  display:flex;
  align-items:center;
  justify-content:center;

  gap:8px;

  min-height:86px;

  padding:
    10px 12px
    calc(
      10px +
      env(safe-area-inset-bottom)
    );

  overflow-x:auto;

  scrollbar-width:none;

  background:
    rgba(18,14,12,.98);
}

.preview-media-thumbs::-webkit-scrollbar{
  display:none;
}

.preview-media-thumb{
  flex:0 0 84px;

  min-height:58px;

  padding:6px;

  border:
    2px solid
    transparent;

  border-radius:10px;

  color:#eee;

  font-size:11px;
  font-weight:800;

  background:#342822;
}

.preview-media-thumb.active{
  border-color:#ff7b31;

  color:white;

  background:#5a3727;
}


/* =========================================================
   手机
   ========================================================= */

@media(max-width:520px){

  .media-preview-sheet{

    /*
     * 两侧各留约24px，
     * 左边可回首页，
     * 右边可返回上一层
     */
    width:
      calc(100% - 48px);

    height:
      calc(
        100dvh -
        18px -
        env(safe-area-inset-top) -
        env(safe-area-inset-bottom)
      );

    max-height:none;

    border-radius:20px;
  }


  .preview-arrow{
    width:43px;
    height:43px;

    font-size:32px;
  }

  .preview-arrow-left{
    left:7px;
  }

  .preview-arrow-right{
    right:7px;
  }


  .preview-media-thumb{
    flex-basis:74px;

    min-height:54px;
  }

}


/* 很窄的手机 */

@media(max-width:380px){

  .media-preview-sheet{
    width:
      calc(100% - 40px);
  }

  .preview-media-thumbs{
    justify-content:flex-start;
  }

}


/* =========================================================
   REPORT V2
   报告列表 / 报告详情 / 写报告
   ========================================================= */

.report-v2-sheet,
.report-detail-sheet,
.report-write-sheet{
  width:min(680px,calc(100% - 28px)) !important;
  max-height:94vh !important;
  max-height:94dvh !important;

  overflow-y:auto !important;
  overflow-x:hidden !important;

  -webkit-overflow-scrolling:touch;
  overscroll-behavior:contain;

  padding:
    18px
    18px
    calc(28px + env(safe-area-inset-bottom))
    !important;

  background:#fffdfb !important;

  border-radius:
    26px 26px 0 0 !important;
}


/* =========================================================
   报告列表顶部
   ========================================================= */

.report-v2-header{
  display:flex;
  align-items:center;
  justify-content:space-between;

  gap:16px;

  margin:
    0 0 16px;
}

.report-v2-header h2{
  margin:0;

  color:#493126;
  font-size:24px;
}

.report-v2-header p{
  margin:5px 0 0;

  color:#987563;
  font-size:13px;
}

.report-v2-count{
  flex:none;

  min-width:64px;

  padding:10px 13px;

  text-align:center;

  border-radius:16px;

  color:#e75a18;

  background:#fff0e6;
}

.report-v2-count b{
  display:block;

  font-size:22px;
  line-height:1;
}

.report-v2-count span{
  display:block;

  margin-top:4px;

  font-size:11px;
}


/* =========================================================
   报告列表卡片
   ========================================================= */

.report-v2-list{
  display:flex;
  flex-direction:column;

  gap:12px;

  padding-bottom:
    calc(
      14px +
      env(safe-area-inset-bottom)
    );
}

.report-v2-card{
  padding:15px;

  border:
    1px solid
    #ecdcd2;

  border-radius:18px;

  background:
    linear-gradient(
      180deg,
      #fff,
      #fffaf7
    );

  box-shadow:
    0 7px 20px
    rgba(81,48,30,.06);

  cursor:pointer;
}

.report-v2-card:active{
  transform:scale(.992);
}

.report-v2-card-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;

  gap:10px;
}

.report-v2-card-top>div{
  display:flex;
  align-items:center;
  flex-wrap:wrap;

  gap:7px;
}

.report-v2-card-top>b{
  color:#493326;
}

.report-v2-card-top small{
  flex:none;

  color:#a08170;
  font-size:11px;
}

.report-v2-card p{
  margin:12px 0;

  color:#60483b;

  font-size:14px;
  line-height:1.7;

  word-break:break-word;
  overflow-wrap:anywhere;
}


/* 报告类型 */

.report-type{
  display:inline-flex;
  align-items:center;

  min-height:28px;

  padding:4px 9px;

  border-radius:999px;

  font-size:11px;
  font-weight:850;
}

.report-type.normal{
  color:#53656f;
  background:#edf2f4;
}

.report-type.recommend{
  color:#d14d0d;
  background:#fff0e4;
}

.report-type.warning{
  color:#a33927;
  background:#ffebe7;
}


/* 报告媒体缩略图 */

.report-v2-media-strip{
  display:flex;

  gap:7px;

  overflow-x:auto;

  padding:2px 0 8px;

  scrollbar-width:none;
}

.report-v2-media-strip::-webkit-scrollbar{
  display:none;
}

.report-media-thumb{
  flex:0 0 78px;

  height:58px;

  display:grid;
  place-items:center;

  border-radius:11px;

  color:#754b35;

  font-size:11px;
  font-weight:800;

  background:
    linear-gradient(
      145deg,
      #f4d7c6,
      #e8bda4
    );
}

.report-media-thumb.video{
  color:white;

  background:
    linear-gradient(
      145deg,
      #66564d,
      #2d2521
    );
}


/* 查看完整报告 */

.report-v2-card-bottom{
  display:flex;
  align-items:center;
  justify-content:space-between;

  margin-top:4px;

  padding-top:10px;

  border-top:
    1px solid
    #f0e3da;

  color:#dd5819;

  font-size:13px;
  font-weight:850;
}

.report-v2-card-bottom b{
  font-size:21px;
}


/* =========================================================
   单篇报告详情
   ========================================================= */

.report-detail-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;

  gap:15px;

  margin-bottom:18px;
}

.report-detail-head h2{
  margin:8px 0 0;

  color:#493127;
  font-size:24px;
}

.report-detail-author{
  flex:none;

  text-align:right;
}

.report-detail-author b,
.report-detail-author small{
  display:block;
}

.report-detail-author b{
  color:#674a3a;
  font-size:13px;
}

.report-detail-author small{
  margin-top:5px;

  color:#a18270;
  font-size:11px;
}

.report-detail-body{
  padding:16px;

  border:
    1px solid
    #edddd3;

  border-radius:17px;

  color:#554036;

  font-size:14px;
  line-height:1.8;

  background:#fffaf7;

  word-break:break-word;
  overflow-wrap:anywhere;
}

.report-detail-media-title{
  margin:
    20px 0 10px;

  color:#4d3428;

  font-weight:900;
}

.report-detail-media{
  display:grid;

  grid-template-columns:
    repeat(3,minmax(0,1fr));

  gap:8px;
}

.report-detail-media-item{
  min-height:100px;

  overflow:hidden;

  border:
    1px solid
    #ebd9cd;

  border-radius:14px;

  background:
    linear-gradient(
      145deg,
      #f7ded0,
      #e6bca5
    );
}

.report-detail-media-item.video{
  color:white;

  background:
    linear-gradient(
      145deg,
      #62534b,
      #29211d
    );
}

.report-detail-media-item>div{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;

  gap:6px;

  height:100%;

  font-weight:850;
}

.report-detail-media-item span{
  font-size:11px;
}


/* =========================================================
   写报告
   ========================================================= */

.report-write-head{
  margin-bottom:17px;
}

.report-write-head h2{
  margin:0;

  color:#493127;
  font-size:24px;
}

.report-write-head p{
  margin:6px 0 0;

  color:#91705f;
  font-size:13px;
}

.report-write-head strong{
  color:#dc5718;
}

.report-form-block{
  margin-top:15px;

  padding:15px;

  border:
    1px solid
    #edddd2;

  border-radius:17px;

  background:#fffaf7;
}

.report-form-title{
  display:block;

  margin-bottom:10px;

  color:#523b2f;

  font-size:14px;
  font-weight:900;
}


/* 报告类型按钮 */

.report-type-buttons{
  display:grid;

  grid-template-columns:
    repeat(3,minmax(0,1fr));

  gap:7px;
}

.report-type-buttons button{
  min-height:44px;

  padding:7px 5px;

  border:
    1px solid
    #ead8cc;

  border-radius:13px;

  color:#685044;

  font-size:12px;
  font-weight:850;

  background:white;
}

.report-type-buttons button.active{
  color:white;

  border-color:#ec6725;

  background:
    linear-gradient(
      180deg,
      #ff8a43,
      #e75516
    );

  box-shadow:
    0 6px 14px
    rgba(224,88,25,.17);
}


/* 输入内容 */

.report-v2-textarea{
  width:100% !important;

  min-height:190px !important;

  padding:14px !important;

  resize:vertical;

  border:
    1px solid
    #e6d5cb !important;

  border-radius:14px !important;

  outline:none;

  color:#49372e;

  font-size:14px;

  background:white;
}

.report-v2-textarea:focus{
  border-color:#ee824b !important;

  box-shadow:
    0 0 0 3px
    rgba(237,111,46,.09);
}


/* =========================================================
   上传区域
   ========================================================= */

.report-upload-title{
  display:flex;
  align-items:center;
  justify-content:space-between;

  gap:10px;

  margin-bottom:11px;
}

.report-upload-title b,
.report-upload-title small{
  display:block;
}

.report-upload-title b{
  color:#523b2f;
}

.report-upload-title small{
  margin-top:3px;

  color:#9b7c6b;
  font-size:11px;
}

.report-upload-btn{
  flex:none;

  padding:9px 11px;

  border:
    1px solid
    #ef9a6d;

  border-radius:12px;

  color:#df5718;

  font-size:12px;
  font-weight:900;

  background:#fff3eb;

  cursor:pointer;
}

.report-upload-preview{
  display:grid;

  grid-template-columns:
    repeat(3,minmax(0,1fr));

  gap:8px;

  min-height:82px;
}

.report-upload-empty{
  grid-column:1 / -1;

  min-height:78px;

  display:grid;
  place-items:center;

  border:
    1px dashed
    #dfc9bb;

  border-radius:13px;

  color:#a0806d;

  font-size:12px;

  background:
    rgba(255,255,255,.65);
}


/* 后面JS动态生成 */

.report-preview-item{
  position:relative;

  aspect-ratio:1 / 1;

  overflow:hidden;

  border-radius:13px;

  background:#ead8cd;
}

.report-preview-item img,
.report-preview-item video{
  width:100%;
  height:100%;

  object-fit:cover;
}

.report-preview-remove{
  position:absolute;

  top:5px;
  right:5px;

  width:27px;
  height:27px;

  display:grid;
  place-items:center;

  border:0;
  border-radius:50%;

  color:white;

  font-size:16px;

  background:
    rgba(30,20,15,.72);
}


/* 提示 */

.report-submit-note{
  margin-top:14px;

  padding:11px 13px;

  border-radius:13px;

  color:#856450;

  font-size:12px;
  line-height:1.5;

  background:#fff2e8;
}


/* 提交按钮手机端固定 */

.report-submit-btn{
  position:sticky !important;

  bottom:
    calc(
      6px +
      env(safe-area-inset-bottom)
    );

  z-index:60;

  margin-top:15px !important;

  box-shadow:
    0 8px 24px
    rgba(194,77,22,.24);
}


/* =========================================================
   三种报告弹窗统一 X
   ========================================================= */

#reportListModal .close-btn,
#reportDetailModal .close-btn,
#reportModal .close-btn{
  position:sticky !important;

  top:
    calc(
      5px +
      env(safe-area-inset-top)
    ) !important;

  z-index:150 !important;

  width:42px !important;
  height:42px !important;

  display:grid !important;
  place-items:center !important;

  margin-left:auto !important;
  margin-right:0 !important;

  border:0 !important;
  border-radius:50% !important;

  color:#54382a !important;

  font-size:27px !important;
  line-height:1 !important;

  background:
    rgba(255,255,255,.97) !important;

  box-shadow:
    0 4px 16px
    rgba(0,0,0,.14) !important;
}


/* =========================================================
   手机端
   ========================================================= */

@media(max-width:520px){

  .report-v2-sheet,
  .report-detail-sheet,
  .report-write-sheet{
    width:
      calc(100% - 24px) !important;

    max-height:94dvh !important;

    padding:
      14px
      14px
      calc(
        26px +
        env(safe-area-inset-bottom)
      )
      !important;
  }

  .report-v2-header h2,
  .report-detail-head h2,
  .report-write-head h2{
    font-size:21px;
  }

  .report-v2-count{
    min-width:56px;
    padding:8px 10px;
  }

  .report-v2-count b{
    font-size:19px;
  }

  .report-detail-head{
    flex-direction:column;
  }

  .report-detail-author{
    text-align:left;
  }

  .report-detail-media{
    grid-template-columns:
      repeat(2,minmax(0,1fr));
  }

  .report-type-buttons{
    grid-template-columns:
      repeat(3,minmax(0,1fr));
  }

  .report-type-buttons button{
    font-size:10px;
    padding:6px 2px;
  }

  .report-upload-preview{
    grid-template-columns:
      repeat(3,minmax(0,1fr));
  }

}


/* =========================================================
   报告评分滑条
   ========================================================= */

.report-score-grid{
  display:flex;
  flex-direction:column;
  gap:13px;
}

.report-score-item{
  display:grid;
  grid-template-columns:86px 1fr 34px;
  align-items:center;
  gap:10px;
}

.report-score-item span{
  color:#60483b;
  font-size:12px;
  font-weight:800;
}

.report-score-item b{
  display:grid;
  place-items:center;

  min-width:32px;
  height:32px;

  border-radius:10px;

  color:white;
  font-size:13px;

  background:#ed6726;
}

.report-score-item input[type="range"]{
  --score-progress:77.7%;

  width:100%;
  height:6px;

  appearance:none;
  -webkit-appearance:none;

  border-radius:999px;

  outline:none;

  background:
    linear-gradient(
      90deg,
      #ef6b2b 0%,
      #ef6b2b var(--score-progress),
      #ead8cd var(--score-progress),
      #ead8cd 100%
    );
}

.report-score-item input[type="range"]::-webkit-slider-thumb{
  appearance:none;
  -webkit-appearance:none;

  width:22px;
  height:22px;

  border:3px solid white;
  border-radius:50%;

  background:#ed6726;

  box-shadow:
    0 2px 8px
    rgba(121,54,23,.28);
}

.report-score-item input[type="range"]::-moz-range-thumb{
  width:18px;
  height:18px;

  border:3px solid white;
  border-radius:50%;

  background:#ed6726;
}

.report-score-total{
  display:flex;
  align-items:baseline;
  justify-content:flex-end;
  gap:5px;

  margin-top:15px;
  padding-top:12px;

  border-top:1px solid #eedfd5;

  color:#795c4a;
  font-size:13px;
}

.report-score-total strong{
  color:#e75b19;
  font-size:25px;
}


/* =========================================================
   观看报告：六项评分
   ========================================================= */

.report-view-score-box{
  margin-top:18px;
  padding:16px;

  border:1px solid #ecdcd2;
  border-radius:18px;

  background:
    linear-gradient(
      180deg,
      #fffaf7,
      #fff6ef
    );
}

.report-view-score-title{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;

  margin-bottom:15px;
}

.report-view-score-title>b{
  color:#50372b;
  font-size:15px;
}

.report-view-score-title>div{
  color:#8a6956;
  font-size:12px;
}

.report-view-score-title strong{
  margin:0 3px;

  color:#e95e1a;
  font-size:24px;
}

.report-view-score-grid{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.report-view-score-item{
  display:grid;
  grid-template-columns:86px 1fr 32px;

  align-items:center;
  gap:9px;
}

.report-view-score-item>span{
  color:#654b3d;

  font-size:12px;
  font-weight:800;
}

.report-view-score-item>b{
  display:grid;
  place-items:center;

  min-width:30px;
  height:30px;

  border-radius:9px;

  color:white;
  font-size:12px;

  background:#ed6726;
}

.report-view-score-track{
  position:relative;

  width:100%;
  height:7px;

  overflow:hidden;

  border-radius:999px;

  background:#ead9cf;
}

.report-view-score-track i{
  display:block;

  width:80%;
  height:100%;

  border-radius:999px;

  background:
    linear-gradient(
      90deg,
      #ef6b2b,
      #ff9a4c
    );

  transition:
    width .25s ease;
}

@media(max-width:520px){

  .report-view-score-box{
    padding:14px 12px;
  }

  .report-view-score-item{
    grid-template-columns:78px 1fr 30px;
    gap:7px;
  }

  .report-view-score-item>span{
    font-size:11px;
  }

}


/* =========================================================
   报告弹窗层级修复
   ========================================================= */

#reportListModal{
  z-index:12000 !important;
}

#reportDetailModal{
  z-index:13000 !important;
}

#reportMediaModal{
  z-index:14000 !important;
}

/* 写报告从老师详情直接打开 */
#reportModal{
  z-index:12000 !important;
}

