* {
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}

body {
    margin: 0;
    background:  rgb(254, 234, 205);
    color: #333;
}

.container {
    max-width: 480px;
    margin: auto;
    background: rgb(254, 234, 205);
    padding-bottom: 90px;
}

.container-nobottom {
    max-width: 480px;
    margin: auto;
    background: rgb(254, 234, 205);
}

/* 顶部 */
.header {
    padding: 5px 15px;
    font-size: 14px;
    font-weight: bold;
    display:flex;
    background: rgba(253, 243, 228);

}
.fixed-top {
  position: fixed;
  top: 0;
  max-width: 480px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%; /* 确保宽度覆盖整个屏幕 */
  z-index: 999; /* 确保它在其他内容之上 */
}
.zhang{
    border-radius: 10px;
    border: 1px solid #F00;
    float:left;
}
/* 滚动公告栏样式 */
.notice-board {
    width: 100%;
    height: 30px;
    overflow: hidden;
    background-color: #fff9f0;

}

.notice-list {
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
    height: 100%;
}

.notice-list li {
    height: 30px;
    line-height: 30px;
    padding: 0 15px;
    font-size: 14px;
    color: #ff6b35;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 轮播部分 */
#banner.fixed .close_video {
	display: block;
}
.banner img {
	display: block;
	width: 100% !important;
}
.banner.fixed {
	position: fixed;
	z-index: 99;
	width: 50%;
	top: 80px;
	right: 10px;
}

.video {
	position: relative
}

.video .play_button {
	position: absolute;
	width: 100%;
	height: 100%;
	z-index: 99;
	text-align: center;
	background-color: rgba(0, 0, 0 );
    opacity: 0;
}

.video {
	display: block;
}

.video .play_button img {
	width: 20% !important;
	height: auto;
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	display: block;
}

.video .muted {
	position: absolute;
    bottom: 5px;
    left: 0px;
    height: 40px;
    height: 40px;
    padding: 0 10px 10px 10px;
    font-size: 24px;
    z-index: 100;
}

.close_video {
	color: #fff;
	font-size: 24px;
	position: absolute;
	top: 0px;
    right: 0px;
    padding: 0 12px;
	height: 40px;
    height: 40px;
	display: none;
	z-index: 105;
}

.sound-btn {
  position: absolute;
  bottom: 8px;
  left: 8px;
  width: 36px;
  height: 36px;
  background: rgba(0,0,0,.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}
.sound-btn img {
  width: 20px;
}
.sound-btn:active {
  transform: scale(0.9);
}

/* 主视觉 */
.hero img {
    width: 100%;
    display: block;
}

.hero-content {
    padding: 16px;
    position: absolute;
    top: 50px;
    z-index: 100;
}
.title_top{
    color:rgba(186, 29, 31);
    text-shadow: 0 0 10px #fff; /* 水平偏移 0, 垂直偏移 0, 模糊半径 5px, 颜色 #fff（白色） */
}

.hero-title {
    font-size: 22px;
    font-weight: bold;
    line-height: 1.4;
}

.hero-sub {
    font-size: 14px;
    color: #666;
    margin-top: 6px;
}

/* 主按钮 */
.primary-btn {
    margin-top: 80px;
    background: linear-gradient(90deg,#ff4d4f,#ff7875);
    color: #fff;
    border-radius: 30px;
    padding: 10px;
    text-align: center;
    font-size: 14px;
    cursor: pointer;
}

/* 祝福主输入栏 */
.blessing-bar{
    height:40px;
    display:flex;
    align-items:center;
    background:#fff;
    border-radius:20px;
    padding:0 12px;
    margin: 10px ;
    box-shadow:0 2px 6px rgba(0,0,0,.05);
}

.blessing-icon{
    font-size:16px;
    margin-right:6px;
}

.blessing-input{
    flex:1;
    border:none;
    outline:none;
    font-size:14px;
    color:#333;
}

.blessing-btn{
    font-size:12px;
    color:#ff5a5f;
    padding: 2px 10px;
    cursor:pointer;
    white-space:nowrap;
    border: #F00 1px solid;
    border-radius: 8px;
}

/* 祝福弹层 */
.mask{
    position:fixed;
    left:0;
    top:0;
    right:0;
    bottom:0;
    z-index:40;
    background:rgba(0,0,0,.45);
    display:none;
}

.panel{
    position:fixed;
    left:0;
    right:0;
    bottom:0;
    background:#fff;
    border-radius:12px 12px 0 0;
    padding:12px;
    transform:translateY(100%);
    transition:.25s;
    z-index:50;
 }
 .panel-close{
    position:absolute;
    top:10px;
    right:15px;
    cursor:pointer;
    color:red;
 }

.panel.show{
    transform:translateY(0);
}

.panel-title{
    font-size:14px;
    font-weight:bold;
    margin-bottom:10px;
}

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

.tag{
    padding:6px 10px;
    background:#f2f3f7;
    border-radius:20px;
    font-size:12px;
    cursor:pointer;
}

.tag:hover{
    background:#ffecec;
    color:#ff5a5f;
}

.custom-input{
    width:100%;
    margin-top:12px;
    height:36px;
    border-radius:18px;
    border:1px solid #eee;
    padding:0 12px;
    font-size:13px;
}

.confirm-btn{
    margin-top:12px;
    width:100%;
    height:36px;
    border:none;
    background:#ff5a5f;
    color:#fff;
    border-radius:18px;
    font-size:14px;
}


/* 滚动容器 */
.marquee-box{
    height:40px;
    background:#fff;
    border-radius:20px;
    display:flex;
    align-items:center;
    overflow:hidden;
    box-shadow:0 2px 6px rgba(0,0,0,.05);
      padding:0 10px;
  margin: 10px ;

}

/* 左侧icon */
.marquee-title{
    display: flex;
    font-size:14px;
    white-space:nowrap;
    color:#ff5a5f;
    margin-right:6px;
}

/* 滚动区域 */
.marquee-wrap{
    flex:1;
    overflow:hidden;
    position:relative;
}

#marquee{
    display:flex;
    align-items:center;
    white-space:nowrap;
    will-change: transform;
}

.marquee-item{
    font-size:12px;
    color:#333;
    background:#f2f3f7;
    padding:4px 10px;
    border-radius:20px;
    margin-right:10px;
}

/* 新祝福高亮 */
.new-blessing{
    background:linear-gradient(90deg,#ffe29f,#ffa99f,#ffe29f);
    color:#a94442;
    animation: flash 1s ease-in-out infinite;
}

@keyframes flash{
    0%{opacity:1}
    50%{opacity:.6}
    100%{opacity:1}
}
/* 心跳动画 */
.bless-bar {
  display: flex;
  align-items: center;
  height: 0px;
  background: #fff5f5;
  border-radius: 20px;
  padding: 0 12px;
  overflow: hidden;
}


.heart {
  font-size: 14px;
  margin-right: 8px;
  transition: transform 0.2s;
}

/* 激活态 */
.heart.active {
  animation: heartBeat 1.2s ease-in-out 6,
             glow 1.2s ease-in-out 6;
}

@keyframes heartBeat {
  0%   { transform: scale(1); }
  30%  { transform: scale(3.5); }
  60%  { transform: scale(1); }
}

@keyframes glow {
  0%   { filter: drop-shadow(0 0 0 rgba(255,0,0,0)); }
  50%  { filter: drop-shadow(0 0 8px rgba(255,0,0,0.8)); }
  100% { filter: drop-shadow(0 0 0 rgba(255,0,0,0)); }
}

.blessing-item {
  background-color: #fd0501;
  border-radius: 10px;
  font-size: 12px;
  padding: 4px 8px;
  color: #fafafa;
  display: flex;
  gap: 4px;
}
.blessing-item .system {
  color: #ffffff;
  font-weight: 500;
  opacity: 0.9;
}

.original-style {
  position: relative;
  top: 0;
  text-align: center;
  transition: top 0.3s; /* 平滑过渡效果 */

}

.sticky-style {
  position: fixed;
  top: 28px; /* 距离顶部30px */
  max-width: 480px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%; /* 确保宽度覆盖整个屏幕 */
  z-index: 999; /* 确保它在其他内容之上 */
  
}



   /* 项目容器样式 */
        .panel-container {
            margin: 0 12px;
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        /* 板块基础样式 */
        .panel-item {
            background-color: rgb(255, 250, 243);
            border-radius: 8px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
            position: relative;
            overflow: hidden;
            transition: height 0.3s ease;
            
        }

        /* 板块内容容器 */
        .panel-content {
            padding: 12px;
            position: relative;
            z-index: 1;

        }

        /* 板块标题 */
        .panel-title {
            font-size: 18px;
            font-weight: 400;
            color: #333;
            border-bottom: 1px solid #eee;
            padding-bottom: 5px;
        }

        /* 渐变遮罩层 - 未展开时显示 */
        .gradient-mask {
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 180px;
            background: linear-gradient(to top, rgb(255, 250, 243), transparent);
            z-index: 2;
            transition: opacity 0.3s ease;
                       
        }

        /* 展开/收起按钮 */
        .toggle-btn {
            position: absolute;
            bottom: 10px;
            left: 50%;
            transform: translateX(-50%);
            padding: 8px 16px;
            background: linear-gradient(62deg, rgba(254, 234, 205), rgba(254, 247, 238) 50.000%, rgba(254, 234, 205)100.000%);
            color: rgba(251, 116, 14);
            border: none;
            border-radius: 4px;
            cursor: pointer;
            z-index: 3;
            transition: all 0.2s ease;
        }



        .toggle-btn:hover {
            background-color: #0056b3;
        }

        /* 展开状态下的样式 */
        .panel-item.expanded .gradient-mask {
            opacity: 0;
            pointer-events: none;
        }

        /* 模拟的板块内容 */
        .content-placeholder {
            line-height: 1.6;
            color: #666;
             padding-bottom: 30px;
        }


        .section-title {
            display: flex;
            align-items: center;
            font-size: 18px;
            font-weight: 600;
            color: #333;
            border-bottom: 1px solid #eee;
        }
        
        .section-icon {
            width: 30px;
            height: 30px;
            margin: 0px 10px 2px 0px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 10px;
            color: white;
            font-weight: 600;
            font-size: 24px;
        }
        
        .icon-1 {
        /* background: linear-gradient(62deg, #ffab7e 0.000%, #ffd366 50.000%, #f7ce68 100.000%); */
        background: linear-gradient(62deg, #ff684d 0.000%, #ff3d5c 50.000%, #fa6f38ff 100.000%);
        }
        
        .icon-2 {
            background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
        }
        
        .icon-3 {
            background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
        }
        
        .icon-4 {
            background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
        }
/* 项目容器样式 */






/* 进度 */
.progress-box {
    background: #fffaf3;
    padding: 14px;
    margin: 20px 12px;
    border-radius: 10px;
    font-weight:600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: relative;
}
.progress-box span{
color:rgba(228, 45, 50);
}

.progress-bar {
    height: 10px;
    background: #eee;
    border-radius: 5px;
    overflow: hidden;
    margin-top: 6px;
}

.progress-inner {
    
    height: 100%;
    background: linear-gradient(90deg,#ff9f43,#ff4d4f);
}

.progress-box .pro-title {
  font-size: 24px;
  padding: 10px 5px;
}
.progress-box .sub-title {
  font-size: 14px;
  color: #888;
  padding: 0px 25px 10px 10px;
}

.progress-jindu {
    margin: 5px 5px;
    font-weight:500;

    }

.progress-box .logo {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  position: absolute;
  top: 5px;
  right: 10px;
  border: 3px solid #fff;
}


/* 进度条 样式 */
.pro-box {
  background-color: white;
  margin: 25px 10px;
  border-radius: 15px;
  position: relative;
  box-shadow: 0 3px 12px rgba(0, 173, 181, 0.8);
}
.pro-box .logo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  position: absolute;
  top: 5px;
  right: 20px;
  border: 3px solid #fff;
}
.pro-box .dl-horizontal {
	margin: 5px;
	padding: 0 10px;
 }

 .pro-box .dl-horizontal span {
  font-size: 12px;
  color: #fab6b6;
  white-space: nowrap;
 }



/* 信任背书 */
.trust {
    padding: 14px 16px;
    font-size: 13px;
    color: #555;
    background: #f8f9fa;
}

/* 留言 */
.comment-box {
    padding: 14px 16px;
}

.comment {
    background: #f7f7f7;
    border-radius: 8px;
    padding: 8px;
    margin-bottom: 8px;
    font-size: 13px;
}

/* 评论内容样式 */
.feed-element {
    margin-top: 10px;
    padding: 0 10px 0 0px;
    
}
.user_info {
    display: flex;
    position: relative;
}
.info_img {
    margin-right: 10px;
}

.info_name {
    font-weight: 400;
    font-size: 14px;
    margin-top: 8px;
}
.info_span {

    font-size: 12px;
color: #ff684d;

}
.feed-element img , .img-circle {
    border-radius: 50%;
    width: 38px;
    height: 38px;
    box-shadow: 0 2px 6px rgba(0,0,0,.2);}
.info_time {
    color: #999;
    font-size: 12px;
    position: absolute;
    top: 8px;
    right: 5px;
}

.feed-element .well {
    border-bottom: 1px dotted #e7eaec;
    box-shadow: none;
     padding: 10px 30px;
    line-height: 18px;
    color: rgba(86, 86, 86);
}

.feed-element .actions {
    margin-top: 10px;
}

.feed-element .photos {
    margin: 10px 0;
}


/* 金额内容样式 */
.donate-area {
    display: none;
	position: fixed;
	max-width: 480px;
	bottom: 0px;
	border: 3px solid rgba(252, 206, 138);
	height: auto;
	background-color: rgba(255, 250, 243);
	padding: 10px;
    border-radius: 20px 20px 10px 10px;
	z-index: 99999;
	padding-bottom: 20px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
}

.donate-area .mechanism_info {
	border-bottom: 1px dashed #999;
	padding-bottom: 10px;
}

.donate-area .mechanism_info {
	position: relative;
	margin: 5px 0px;
	display: block;
}
.donate-area .mechanism_info .thumb img {
	width: 100%;
	-webkit-filter: brightness(100%);
	filter: brightness(100%);
}
.donate-area .mechanism_info .thumb {
	width: 60px;
	height: 60px;
	position: absolute;
	left: 10px;
	top: -5px;
}

.donate-area .mechanism_info .name {
	padding-left: 80px;
}

.donate-area .mechanism_info .name .title {
	padding: 0px;
	line-height: 18px;
    color:#999;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

.donate-area .mechanism_info .name .desc {
	color: #9a9a9a;
	font-size: 14px;
}

.donate-area .close {
	position: absolute;
	right: 0px;
	top: 0px;
	width: 40px;
    padding: 10px 10px; 
	height: 40px;
	z-index: 99;
    color: red;
}


.diy-money {
	padding: 5px;
	position: relative;
}

.diy-money .money-ipt {
	margin: 4px;
}

.diy-money .money-ipt input {
	height:35px;
	line-height: 20px;
	font-size: 18px;
	border: 1px solid rgba(252, 206, 138);
	border-radius: 4px;
	font-weight: 400;
    font-family: "Microsoft soft";
    width: 66%;
}


.diy-money .money-ipt input:focus{
    border-color: rgba(252, 206, 138);;
    outline: 0;
    -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(252, 195, 73, 0.6);
    box-shadow: inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(252, 191, 59, 0.6)
    
}


.diy-money .random-money {
	position: absolute;
	right: 0px;
	top: 0px;
    
	display: inline-block;
	margin: 8px 10px 0px 30px;
	background-color: #fff;
	font-size: 18px;
    text-align: center;
	padding: 5px 20px;
	border: 1px solid #e2e2e2;
	border-radius: 5px;
	box-shadow: 1px 1px 2px 0px rgba(193, 203, 216,0.75);
    display: flex;
}
.diy-money .random-money:active {
    background-color:rgb(238, 140, 53); /* 按下时的颜色 */
  }

.money-selection {
	padding: 5px;
	display: flex;
	text-align: center;
	justify-content: space-between;
	flex-wrap: wrap;
}

.money-selection span {
	display: inline-block;
	width: 30%;
	margin: 5px 3px;
	background-color: #fff;
	font-size: 18px;
    text-align: center;
	padding: 6px 0px;
	border: 1px solid #e2e2e2;
	border-radius: 5px;
	box-shadow: 1px 1px 2px 0px rgba(193, 203, 216,0.75);
}

.money-selection span.act {
	border: 2px solid rgb(248, 153, 11);
	background-image: url(../img/duihao.png);
	background-position: right 0px bottom 0px;
	background-size: 28px;
	background-repeat: no-repeat;
}


.donate-botton {
	padding: 0px;
	display: flex;
	margin-top: 5px;
	
	flex-wrap: wrap;
}

.donate-botton .icon{
    margin: 8px 10px 0px 10px
    

}

.donate-botton .month-donate {
	background-color: #ee8c35;
	color: #fff;
	font-size: 2.5vw;
	line-height: 1.5em;
}

.donate-botton .wechat-pay {
    flex: 1;
    display: flex;
    margin: 0px 5px;
	background-color: rgba(3, 219, 108);
	height: 50px;
	color: #fff;
	font-size: 24px;
    justify-content: center; 
	border-radius: 10px;
	box-shadow: 0 3px 12px rgba(127, 137, 147, 0.5)
}
.donate-botton .wechat-pay:active {
    background-color:rgba(31, 142, 62); /* 按下时的颜色 */
  }
.donate-botton .wechat-pay:focus {
    background-color: lightcoral; /* 点击时的颜色 */
    outline: none; /* 移除点击后的轮廓 */
  }

.donate-botton .ali-pay {
	background-color: rgba(3, 151, 219)  ;
    flex: 1;
    display: flex;
    justify-content: center;
    margin: 0px 5px;
	height: 50px;
	color: #fff;
	font-size: 24px;
	border-radius: 10px;
	box-shadow: 0 3px 12px rgba(127, 137, 147, 0.5)
}
.donate-botton .ali-pay:active {
    background-color:rgb(3, 88, 168); /* 按下时的颜色 */
  }



.donate-botton .month-donate>div {
	display: inline-block;
}



/* 金额区 */
.amount-box {
     padding: 5px;
     margin: -25px 12px;
}
.amount-box img {
  opacity: 0.3; /* 调整这个值以改变透明度 */
}

.amount-title {
    font-weight: bold;
    margin-bottom: 10px;
}

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

.amount-item {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px 5px;
    text-align: center;
    cursor: pointer;
}

.amount-item.active {
    border-color: #ff4d4f;
    background: #fff3f3;
}

.amount-item span {
    display: block;
    font-size: 12px;
    color: #888;
}

/* 底部固定按钮 */
.footer-bar {
    max-width: 480px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    border-top: 1px solid #eee;
    padding: 12px 15px;
    z-index: 45;
    display: flex;
    border-radius: 10px 10px 0 0;
    left: 50%;
  transform: translateX(-50%);
  width: 100%; /* 确保宽度覆盖整个屏幕 */

}

.footer-bar .donate {
	color: #fff;
    flex: 2;
    margin-left: 10px;
}

.footer-bar .share-btn {
    background: linear-gradient( #fd9b3f 50.000%, #f36d13 100.000%);
    color: #fff;
    border-radius: 15px;
    padding: 6px 12px;
    text-align: center;
    font-size: 16px;
    box-shadow: 0 2px 4px 0 rgba(0,0,0,0.50);
}

.pay-btn {
    background: linear-gradient( #ff6164 50.000%, #ff011a 100.000%);
    color: #fff;
    border-radius: 15px;
    padding: 12px;
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    box-shadow: 0 2px 4px 0 rgba(0,0,0,0.50);
}

#ShareMask{
	width: 100vw;
	height: 100vh;
	position: fixed;
	top: 0px;
	left: 0px;
	z-index: 99999;
	background-color: rgba(0,0,0,.6);
	padding: 15px;
	display: none;
	
}
#ShareMask .ShareImg{
	width: 100%;
	display: block;
}


/* 红心触发按钮样式 */
        .hx-donate-btn {
            padding: 12px 30px;
            font-size: 18px;
            color: white;
            background-color: #e63946;
            border: none;
            border-radius: 50px;
            cursor: pointer;
            box-shadow: 0 4px 8px rgba(230, 57, 70, 0.3);
            transition: all 0.2s ease;
        }

        .hx-donate-btn:hover {
            background-color: #d62828;
            transform: translateY(-2px);
        }

        /* 动画容器：固定定位，覆盖整个屏幕，用于承载红心 */
        .hx-heart-container {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none; /* 不阻挡按钮点击 */
            z-index: 9999;
        }

        /* 红心样式 */
        .hx-heart {
            position: absolute;
            font-size: 25px;
            color: #e63946;
            transform: translate(-50%, -50%);
            animation: heart-fly 2s ease-out forwards;
        }

        /* 红心扩散动画核心 */
        @keyframes heart-fly {
            0% {
                /* 初始位置：屏幕中间，大小正常，不透明 */
                top: 50%;
                left: 50%;
                opacity: 1;
                transform: translate(-50%, -50%) scale(1);
            }
            100% {
                /* 结束位置：向上随机偏移，左右随机偏移，变大，透明 */
                top: 0;
                left: calc(50% + var(--random-x));
                opacity: 0;
                transform: translate(-50%, 0) scale(1.8);
            }
        }