.resource_container{
    margin-top: 100px;
    display: grid;
    justify-items: center;
    background: #e9e9eb;
    border-radius: 8px;
}

.big_title h1{
    font-size: 1.4rem;
    user-select: none;
}

.active_header{
    background: #e9e9eb;
}



/*资源区域*/

/*资源容器*/
.res{
  z-index: 1000;
  background: #e9e9eb8e;
  border-radius: 10px;
  user-select: none;
}
/*容器元素1-资源控件*/
.resctl{
  width: 800px;
  padding: 10px 13px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}
.resctl_left{
  display: flex;
  flex-direction: row;
  justify-content: left;
  align-items: center;
  gap: 25px;
}
.resctl_left button{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  background: #f8e0cfe1;
  border-radius: 4px;
  transition: all 0.1s ease 0s;
  border: solid 1px #f8be95;
}
.resctl_left button:hover{
  background: #f7d8c3e1;
}
.resctl_left button:active{
  transform: scale(0.95);
}
.resctl_left button p{
  font-size: 0.8rem;
  color: #ff7919e1;
}

.resctl_left a{
  text-decoration: none;
  color: #acacac;
  font-size: 0.86rem;
  transform: translateX(-5px);
  transition: all 0.15s ease-in-out;
}
.resctl_left .active_item{
  color: #6b6b6b;
}

.resctl_left a:hover{
  color: #6b6b6b;
}

.resctl_right{
  display: flex;
  flex-direction: row;
  justify-content: right;
  align-items: center;
}
.resctl_right button{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  background: #fafafa;
  border-radius: 4px;
  transition: all 0.15s ease 0s;
}
.resctl_right button:hover{
  background: #fff;
  box-shadow: 0 0 10px #dadada8e;
}
.resctl_right button:active{
  transform: scale(0.95); 
}
.resctl_right button p{
  font-size: 0.8rem;
  color: #ff822a;
}
.resctl_right button svg{
  transform: translateY(-0.5px);
}


/*资源列表*/
.reslist{
  width: 100%;
  user-select: none;
  display: grid;
  gap: 4px;
  margin-top: 5px;
}
/*资源标题*/
.reslist_item{
  width: 100%;
  padding: 10px 13px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  margin-top: 2px;
  margin-bottom: 2px;
}
.res_title{
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: left;
  align-items: center;
  gap: 10px;
}
.res_title span{
  font-size: 0.9rem;
  color: #36363d;
}
.res_title h1{
  font-size: 0.9rem;
  color: #36363d;
  cursor: pointer;
}
.res_title h1:hover{
  text-decoration: underline;
}

.res_download svg{
  opacity: 0.8;
  transition: all 0.12s ease-in-out;
  cursor: pointer;
}
.res_download svg:hover{
  opacity: 1; 
}


/*资源翻页*/
/* 分页容器 */
.reslist_page {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
  padding: 20px 0;
}

/* 分页按钮 */
.page-btn {
  border: 1px solid #e5e7eb;
  padding: 6px 12px;
  border-radius: 6px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
}

.page_btn_st{
  color: #7a7a7a;
  font-size: 0.9rem;
  padding: 5px 8px;
  background: none;
  border-radius: 4px;
}

.page-btn:hover:not(.disabled) {
  background: #f3f4f6;
  border-color: #d1d5db;
}

/* 当前选中状态 */
.active-page {
  background: #ffe7dc;
  color: #ff7919;
  border-color: #ff6d29;
}

/* 禁用按钮 */
.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.disabled svg path {
  fill: #9ca3af; /* 禁用状态图标颜色 */
}











/*盲盒模式样式*/
.blindbox_div{
  width: 100vw;
  height: 100vh;
  display: grid;
  justify-items: center;
  align-content: flex-start;
  z-index: 9999;
  background: #e0e0e0bf;
  backdrop-filter: blur(4px);
  position: fixed;
  top: 0;
  gap: 40px;
  animation: blindboxshow 0.5s ease forwards;
}

@keyframes blindboxshow {
  0%{
    opacity: 0;
  }
  100%{
    opacity: 1;
  }
}


/*盲盒模式大标题*/
.blindbox_title{
  margin-top: 150px;
}
.blindbox_title button{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  background: #f8e0cfe1;
  border-radius: 4px;
  transition: all 0.1s ease 0s;
  border: solid 1px #f8be95;
  cursor: default;
  user-select: none;
}
.blindbox_title button p{
  font-size: 0.88rem;
  color: #ff7919;
}


/*盲盒模式容器*/
.blindbox{
  width: 270px;
  height: auto;
  display: grid;
  justify-items: center;
  background: #fff;
  border-radius: 8px;
}

.blind_title{
  width: 100%;
  padding: 25px 13px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}

.blind_title h1{
  font-size: 1.15rem;
  color: #36363d;
}

.blind_title svg{
  position: absolute;
  transform: translateX(44px);
  cursor: pointer;
}

/*输入框*/
.form-card-input-wrapper {
  position: relative;
  width: 90%;
  height: 3rem;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  margin-bottom: 1rem;
}

.form-card-input {
  width: 200px;
  font-size: 1.7rem;
  font-weight: bold;
  letter-spacing: 2rem;
  text-align: start;
  -webkit-transform: translateX(36px);
  -ms-transform: translateX(36px);
  transform: translateX(45px);
  position: absolute;
  z-index: 3;
  outline: none;
  background-color: transparent;
}

.form-card-input-bg {
  content: '';
  width: 210px;
  height: 55px;
  margin: auto;
  inset: 0;
  bottom: 10px;
  position: absolute;
  z-index: 1;
  border-radius: 12px;
  background-color: rgba(206, 206, 206, 0.664);
}

.call-again {
  color: #5e5e5e;
  font-size: 14px;
}

.call-again:hover {
  cursor: pointer;
}

.underlined {
  text-decoration: underline;
}

.form-card-submit {
  position: absolute;
  width: 180px;
  margin: auto;
  color: white;
  border: none;
  background-color: #212121;
  font-size: 1.2rem;
  border-radius: 0.8rem;
  padding: 0.8rem 3.5rem;
  bottom: 2rem;
  left: 0;
  right: 0;
  -webkit-transition: 200ms ease-in-out;
  transition: 200ms ease-in-out;
}

.form-card-submit:hover {
  cursor: pointer;
  opacity: 0.8;
}

.form-card-submit:active {
  opacity: 0.9;
  -webkit-transform: scale(95%);
  -ms-transform: scale(95%);
  transform: scale(95%);
}

#uuid-d8a0d861-3741-4013 {
  width: auto;
  height: 500px;
}

@-webkit-keyframes scale-out {
  0%, 15%, 100% {
    color: #fff;
    -webkit-transform: scale(72%);
    transform: scale(72%);
  }

  16%, 98% {
    color: rgba(255, 255, 255, 0.295);
    -webkit-transform: scale(100%);
    transform: scale(100%);
  }
}

@keyframes scale-out {
  0%, 15%, 100% {
    color: #fff;
    -webkit-transform: scale(72%);
    transform: scale(72%);
  }

  16%, 98% {
    color: rgba(255, 255, 255, 0.295);
    -webkit-transform: scale(100%);
    transform: scale(100%);
  }
}

@-webkit-keyframes shine {
  to {
    background-position: 200% center;
  }
}

@keyframes shine {
  to {
    background-position: 200% center;
  }
}

.blind_button{
  width: 100%;
  padding: 13px 13px 20px 13px;
  display: grid;
  justify-items: center;
  align-items: center;
}

.blind_button button{
  padding: 3px 12px;
  border-radius: 5px;
  display: grid;
  justify-items: center;
  align-items: center;
  font-size: 0.9rem;
  background: #ff822a;
  color: #fff;
  outline: none;
  transition: all 0.15s ease-in-out;
}

.blind_button button:hover{
  background: #ff7919;
}

.blind_button button:active{
  transform: scale(0.95);
}

.blind_text{
  max-width: 270px;
  display: grid;
  justify-items: center;
  line-height: 28px;
  gap: 8px;
}

.blind_text h1{
  font-size: 0.88rem;
  padding: 3px 8px;
  border-radius: 4px;
  background: #a8a8a870;
}







/*智能工具集*/
.tools{
  width: 100%;
  z-index: 1200 !important;
  background: #e9e9eb8e;
  border-radius: 10px;
  padding: 15px 13px;
  display: grid;
  gap: 15px;
  justify-items: center;
  align-content: flex-start;
  user-select: none;
  position: relative;
  grid-template-columns: repeat(4, 1fr);
}

.tools button{
  width: 100%;
  padding: 8px 8px 8px 0;
  border-radius: 6px;
  background: #fafafa;
  font-size: 0.9rem;
  transition: all 0.12s ease-in-out;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 1200 !important;
}

.tools button:nth-child(4){
  border: solid 1px #f28f51;
}

.tools button:hover{
  background: #fff;
  box-shadow: 0 0 10px #dadada8e;
}

.tools button span{
  color: #ff974c;
  font-size: 0.6rem;
  font-weight: bold;
  letter-spacing: 1px;
  position: absolute;
  transform: translateX(68px) translateY(-2px);
}

.tools button img{
  width: 110px;
  height: 110px;
  padding: 6px;
  border-radius: 4px;
  z-index: 1100;
  position: absolute;
  background: #fff;
  box-shadow: 0 -1px 10px #dadada8e;
  transform: translateY(-85px);
  display: none;
  visibility: hidden;
  justify-items: center;
  align-items: center;
  animation: gifshow 0.3s ease forwards;
}

@keyframes gifshow {
  0%{
    opacity: 0;
    transform: translateY(-75px);
  }
  100%{
    opacity: 1;
    transform: translateY(-85px);
  }
}

.tools button:hover img{
  display: grid;
  visibility: visible;
}

/*抽屉容器*/
.toollist{
  width: 180px;
  padding: 6px;
  border-radius: 5px;
  z-index: 1100;
  display: none;
  visibility: hidden;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  background: #fafafa;
  position: absolute;
  box-shadow: 0 1px 10px #cccccc8e;
  gap: 5px;
}

.tools button:first-child .toollist{
  animation: toollistout1 0.2s ease-in-out forwards;
  transform: translateY(191px) translateX(4px);
}
@keyframes toollistout1 {
  0%{
    opacity: 0;
    transform: translateY(180px) translateX(4px);
  }
  100%{
    opacity: 1;
    transform: translateY(191px) translateX(4px);
  }
}
.tools button:nth-child(2) .toollist{
  animation: toollistout2 0.2s ease-in-out forwards;
  transform: translateY(130px) translateX(4px);
}
@keyframes toollistout2 {
  0%{
    opacity: 0;
    transform: translateY(119px) translateX(4px);
  }
  100%{
    opacity: 1;
    transform: translateY(130px) translateX(4px);
  }
}
.tools button:nth-child(3) .toollist{
  animation: toollistout3 0.2s ease-in-out forwards;
  transform: translateY(110px) translateX(4px);
}
@keyframes toollistout3 {
  0%{
    opacity: 0;
    transform: translateY(99px) translateX(4px);
  }
  100%{
    opacity: 1;
    transform: translateY(110px) translateX(4px);
  }
}

.toollist a{
  width: 100%;
  padding: 7px 15px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  color: #5e5e5e;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.08s ease-in-out;
}

.toollist a:hover{
  background: #f4f4f4;
}


/*工具子菜单*/
.tls_sm{
  width: 180px;
  padding: 6px;
  border-radius: 5px;
  position: absolute;
  z-index: 1110;
  display: none;
  visibility: hidden;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  background: #fafafa;
  box-shadow: 0 1px 10px #cccccc8e;
  gap: 5px;
  transform: translateX(150px) translateY(41px);
}

.tls_sm p{
  width: 100%;
  padding: 7px 15px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  color: #5e5e5e;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.08s ease-in-out;
}

.tls_sm p:hover{
  background: #f4f4f4;
}

.toollist a:hover .tls_sm{
  display: flex;
  visibility: visible; 
}




/* 登录弹窗样式 */
.index_loginsign {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
}
.password-strength {
  font-size: 0.8rem;
  margin-top: 0.5rem;
}


/* [新增] 字符计数器样式 */
.char-counter {
  position: absolute;
  right: 10px;
  bottom: 8px;
  font-size: 0.85em;
  color: #666;
  background: white;
  padding: 0 4px;
  border-radius: 3px;
}








/* 数据看板样式 */
.data-dashboard {
  width: 800px;
  margin: 2rem 0;
  background: none;
  border-radius: 8px;
  backdrop-filter: blur(12px);
  margin-bottom: 100px;
}
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 13px;
  padding: 6px 3px 0 2px;
  font-size: 0.95rem;
}
.header-tip span{
  color: #212121;
}
.live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #ff4757;
  border-radius: 50%;
  margin-right: 8px;
  transform: translateY(-1px);
  animation: pulse 1.5s infinite;
}
.metric-grid {
  display: grid;
  gap: 1.3rem;
}
.mtg_box{
  display: grid;
  gap: 10px;
  max-height: 100px;
  grid-template-columns: repeat(3, 1fr);
}
.metric-card {
  padding: 1.5rem;
  background: white;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.08);
  transition: transform 0.2s;
}
.mtcinbox{
  padding: 1rem 1rem 10px 1rem !important;
}
.metric-card:hover {
  transform: translateY(-3px);
}
.chart-card {
  min-height: 320px;
}
/*金币收益展示*/
/* 数字变化过渡动画 */
.metric_value {
  transition: color 0.5s ease-in-out;
}

.metric_value.updating {
  color: #f5844f;
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.5; }
  100% { opacity: 1; }
}
/* 图表容器 */
#trendChart {
  width: 100% !important;
  height: auto;
  object-fit: cover;
  min-height: 250px !important;
}
.card-header{
  gap: 2rem;
}
/* 激励卡片特效 */
.metric_value{
  font-size: 2rem;
}
.rank-info{
  display: grid;
  justify-items: left;
  align-items: center;
  gap: 0;
}
.rank-info span{
  font-size: 0.95rem;
  color: #5e5e5e;
}
.btn-rank{
  font-size: 0.8rem;
  color: #f8be95;
}
.hot-list{
  display: grid;
}
.hot-list li{
  display: flex;
  margin-top: 5px;
  gap: 8px;
}
.rank-medal{
  font-size: 0.9rem;
  color: #f5844f;
}
.file-info{
  width: 80%;
  max-width: 200px;
  display: grid;
  justify-items: right;
  align-items: center;
  font-size: 0.88rem;
  gap: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.motivate-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #c07254 0%, #b26521 100%);
  color: white;
}
.sparkle-effect {
  position: absolute;
  width: 150px;
  height: 150px;
  background: radial-gradient(rgba(255,255,255,0.15) 0%, transparent 70%);
  top: -50px;
  right: -50px;
}
.reward-list li{
  margin-left: 10px;
  font-size: 0.8rem;
  color: #bfbfbf;
}
.glow-button {
  display: block;
  width: 100%;
  padding: 8px;
  background: rgba(255,255,255,0.15);
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 8px;
  color: white;
  font-weight: bold;
  transition: all 0.3s;
  font-size: 0.9rem;
  margin-top: 10px;
}
.glow-button:hover {
  background: rgba(255,255,255,0.25);
  box-shadow: 0 0 15px rgba(255,255,255,0.3);
}
@keyframes pulse {
  0% { opacity: 0.8; }
  50% { opacity: 0.2; }
  100% { opacity: 0.8; }
}





/* 分类按钮激活状态 */
.resctl_left a.active_item {
  background: none;
  color: #ff7919;
  border-radius: 0;
}



/* 响应式优化 */
@media (max-width: 840px) {
  .metric-grid {
      grid-template-columns: 1fr;
      max-height: auto;
      position: relative;
      overflow-y: scroll;
  }
  .metric-grid::-webkit-scrollbar {
      display: none;
  }
  .mtg_box{
    grid-template-columns: 1fr;
    gap: 13px;
    margin-bottom: 50px;
  }
  .chart-card {
    padding: 10px;
      grid-column: auto;
  }
  .data-dashboard{
    width: 88vw;
    min-width: 320px;
    margin-bottom: 50px;
    position: relative;
  }
  .dashboard-header{
    font-size: 0.88rem;
  }
  .card-header{
    gap: 10px;
  }
  .card-header h3{
    font-size: 0.88rem;
  }
  .chart-legend{
    font-size: 0.88rem;
  }
  .upload-legend{
    margin-left: 5px;
  }
  .motivate-card{
    min-height: 150px;
  }
}





footer{
  width: 100vw;
  margin-top: 50px;
  display: grid;
  justify-items: center;
  align-items: center;
  padding: 20px 0;
}

footer h1{
  font-size: 1.5rem;
  color: #212121;
}

footer p{
  font-size: 0.8rem;
  color: #666666dd;
}









/* 数据更新提示 */
@keyframes pulse-glow {
  0% { opacity: 0.6; }
  50% { opacity: 1; }
  100% { opacity: 0.6; }
}

.updating {
  position: relative;
  &::after {
      content: "🔄";
      margin-left: 8px;
      animation: pulse-glow 1.5s infinite;
  }
}












/*响应式布局*/
@media (max-width: 840px) {
  header{
    min-width: 320px;
  }
  .resctl{
    width: 88vw;
    min-width: 320px;
    display: flex;
    flex-direction: row;
    justify-content: left;
    align-items: center;
    flex-wrap: wrap;
    overflow: scroll;
    white-space: nowrap;
  }
  .resctl::-webkit-scrollbar{
    display: none;
  }
  .resctl_left{
    gap: 13px;
  }
  .resctl_left a{
    font-size: 0.75rem;
  }
  .resctl_left button svg{
    width: 14px;
  }
  .resctl_left button p{
    font-size: 0.72rem;
  }
  .resctl_right{
    display: none;
    visibility: hidden;
  }
  .reslist_item{
    width: 100%;
  }
  .reslist{
    width: 100%;
  }
  .res_title{
    width: 90%;
    overflow: hidden;
    text-overflow: ellipsis !important;
    white-space: nowrap;
    gap: 5px;
  }
  .res_title svg{
    display: none;
    visibility: hidden;
  }
  .res_title span{
    display: none;
    visibility: hidden;
  }
  .res_title h1{
    font-size: 0.8rem;
  }
  .res_download svg{
    width: 18px;
  }
  .reslist_page{
    gap: 8px;
    padding: 0;
  }
  .tools{
    grid-template-columns: repeat(2, 1fr);
  }
  .tools button{
    font-size: 0.75rem;
  }
  .toollist{
    display: none !important;
    visibility: hidden;
  }
  .tools button span {
    transform: translateX(55px) translateY(-2px);
  }
  .file-info{
    width: 80vw;
    max-width: 250px;
    display: flex;
    flex-direction: row;
    justify-content: left;
    align-items: center;
  }
}