/* WechatShop 插件前端样式 */

/* 颜色和基础变量 */
:root {
  --primary-color: #4a6cf7;
  --primary-hover: #3a5ce4;
  --secondary-color: #fa5555;
  --secondary-hover: #e84545;
  --text-color: #333;
  --text-light: #666;
  --bg-light: #f9f9f9;
  --bg-card: #fff;
  --border-color: #e0e0e0;
  --border-highlight: #f5d39a;
  --shadow-color: rgba(0, 0, 0, 0.08);
  --price-color: #05047e;
  
  --spacing-xs: 5px;
  --spacing-sm: 10px;
  --spacing-md: 15px;
  --spacing-lg: 20px;
  --spacing-xl: 30px;
  
  --border-radius-sm: 8px;
  --border-radius-md: 12px;
  --border-radius-lg: 16px;
  --border-radius-full: 999px;
  
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
}

/* 下载容器样式 */
.download-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: var(--spacing-xl);
  background-color: var(--bg-light);
  border-radius: var(--border-radius-md);
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 12px var(--shadow-color);
  font-family: "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  transition: all var(--transition-normal);
}

/* 下载内容区域样式 */
.download-content .xunhu-bg-color {
    background-color: #fff2e0;
    border-radius: 6px;
    border: 1px solid goldenrod;
    background: #fdfaf6;
    border: 1px solid #f5d39a;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(245, 199, 110, 0.15);
    padding: 24px 20px;
    transition: all 0.3s ease;
    font-family: "Segoe UI", "Helvetica Neue", sans-serif;
    color: #333;
    position: relative;
    overflow: hidden;
}

.download-content .xunhu-bg-color:hover {
    box-shadow: 0 8px 24px rgba(245, 199, 110, 0.25);
    transform: translateY(-3px);
    border-color: #efc279;
}

.download-content .xunhu-bg-color::before {
    content: "限时优惠";
    position: absolute;
    top: 12px;
    right: -40px;
    transform: rotate(45deg);
    background: #ffc107;
    color: #FA5555;
    padding: 4px 50px;
    font-size: 13px;
    font-weight: bold;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* 按钮样式 */
.xunhu-btn {
    width: auto!important;
    padding: 6px!important;
    display: inline-flex!important;
    flex-direction: row;
    align-items: center;
    gap: 1px;
    justify-content: center;
    height: 42px;
    margin: 0!important;
    transition: all linear .2s;
}

.xunhu-btn-wrapper {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-content: center;
    gap: 10px;
}

.xunhu-btn svg {
    width: 36px;
    height: 36px;
}

/* 购买按钮样式 */
.download-content .xunhu-btn-buy {
    color: #222226!important;
    background-color: #f8e3c3!important;
    border-color: #f8e3c3!important;
    padding: 10px 20px!important;
    font-size: 14px;
    border-radius: 999px;
}

.download-content .xunhu-btn-buy:hover {
    color: #222226!important;
    border-color: #fdf2e2!important;
    box-shadow: 2px 2px 5px #69421b!important;
}

/* VIP按钮样式 */
.download-content .xunhu-btn-vip {
    color: #fff;
    background-color: #444555;
    border-color: #444555;
    padding: 10px 20px!important;
    font-size: 14px;
    border-radius: 999px;
}

.download-content .xunhu-btn-vip:hover {
    box-shadow: 2px 2px 5px #444555!important;
}

/* 淘宝按钮样式 */
.xunhu-downbox .xunhu-btn-taobao {
    background-color: #ff6600;
    border-color: #ff6600;
    padding: 0 15px!important;
    border-radius: 999px;
    font-size: 14px;
    height: 42px;
    line-height: 42px;
}

.xunhu-downbox .xunhu-btn-taobao:hover {
    box-shadow: 2px 2px 5px #ff660060!important;
}

.xunhu-downbox .xunhu-btn-taobao svg {
    width: 28px;
    height: 28px;
}

/* 内容样式 */
.download-content .playlist__info--inner {
  margin: 0px 0px 30px 10px!important;
}

.download-content h2 {
    font-size: 1.6rem;
    line-height: 1.6;
    border-top: 1px dashed #4259ef23;
    padding-top: 1.5rem;
    padding-bottom: 0;
    padding-left: 0;
    font-weight: 600;
    margin-top: 1.5rem;
    position: relative;
    margin-bottom: 1.5rem;
    color: #2c3e50;
    letter-spacing: 2px;
}

.download-content h2.has-text-align-center {
    padding-left: 0;
    margin-bottom: 0rem;
    padding-top: 3rem;
    padding-bottom: 2rem;
}

.download-content h2::before {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 20px;
  background-color: #3498db;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.download-content h2.has-text-align-center:before {
    content: "";
    width: 50px;
    height: 4px;
    transform: translateX(-50%);
    left: 50%;
    top: unset;
    bottom: 1rem;
}

.download-content h2:hover, .download-content h3:hover {
  color: #3498db;
  text-shadow: 0 0 1PX #999;
  transition: color 0.3s ease;
}

.download-content h2:hover::before {
    width: 0;
    height: 0;
    background-color: unset;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 15px solid #3498db;
    left: -10px;
}

.download-content h2.has-text-align-center:hover::before {
    width: 100px;
    height: 4px;
    border: none;
    left: 50%;
    background-color: #3498db;
}

.download-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #34495e;
    letter-spacing: 1px;
    margin: 1.5rem 0;
}

.download-content p {
    margin: 1.5rem 0;
}

.download-content ul.wp-block-list {
    padding-left: 2rem;
    padding-right: 1rem;
    list-style: circle;
    margin: 0;
}

.download-content ul.wp-block-list li {
    font-weight: 400;
}

body .download-content .is-layout-flex {
    display: flex;
    align-items: center!important;
}

/* 会员相关样式 */
.download-content .xunhu-member-item, .xunhu-member-item {
    width: 30%!important;
    margin: 2.5% 5px!important;
    padding: 2% 5px!important;
    border-radius: 8px!important;
    line-height: 1.5!important;
}

.xunhu-member-item.active, .xunhu-member-item:hover {
    background: #F1EEFF!important;
    border-color: #05047E!important;
    box-shadow: 1px 1px 5px #05047E80!important;
}

.download-content .xunhu-member-item .xunhu-text-lg, .pay_to_see .xunhu-member-item .xunhu-text-lg {
    color: #000;
    font-family: "Ivar Headline", Sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
}

.pay_to_see .xunhu-text-lg, .download-content .xunhu-text-lg {
    font-family: "Ivar Headline", Sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
}

/* 工具类样式 */
.xh-w80 {
    width: 80%!important;
    margin: 0 auto;
}

.xunhu-alert-danger a {
    border-bottom: 1px dashed #05047E;
    color: #05047E;
}

.xh-member-pay a.active, .xh-member-pay a:hover {
    color: #05047E!important;
    border-bottom: 1px solid #05047E!important;
}

.xunhu-font .radio input[type="radio"]:checked + .radio-label:before {
    background-color: #05047E!important;
}

/* 下载框样式 */
.xunhu-downbox {
    margin: 0 auto 15px!important;
}

.xunhu-unlock-more {
    display: block;
    height: 24px;
    margin-top: -10px;
    position: relative;
    text-align: center;
    white-space: nowrap;
}

.xunhu-unlock-more span {
    background: #FFF;
    color: #206be7;
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    line-height: 24px;
    max-width: 100%;
    padding: 0 8px;
    position: relative;
    text-transform: uppercase;
    vertical-align: top;
    border-radius: 10px;
}

.xunhu-unlock-more:before {
    border-top: 3px dashed #206be7;
    content: "";
    left: 0;
    opacity: .2;
    position: absolute;
    right: 0;
    top: 50%;
}

.xunhu-unlock-more:after {
    background: linear-gradient(180deg,transparent,#FFF);
    /* content: ""; */
    height: 60px;
    left: 0;
    position: absolute;
    top: -60px;
    width: 100%;
}

.xunhu-downbox .lock-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #444;
    gap: 6px;
    font-size: 14px;
}

.xunhu-downbox .lock-info svg {
    widows: 38px;
    height: 38px;
}

/* 付费查看相关样式 */
.xunhu-downbox .xunhu-btn-buy, .xunhu-modal .xunhu-btn-buy {
    background: #0072FF;
    padding: 0 15px!important;
    height: 42px;
    line-height: 42px;
    font-size: 14px;
}

.xunhu-modal {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.xunhu-modal-content {
    position: relative;
    transform: translateY(-50%);
    top: 50%;
    margin: 0 auto!important;
}

.xunhu-downbox.pay_to_see .xunhu-btn-buy:hover {
    box-shadow: 2px 2px 5px #0072FF60!important;
}

.xunhu-downbox .xunhu-btn-vip, .xunhu-modal .xunhu-btn-vip {
    background: #FA5555;
    padding: 0 15px!important;
    height: 42px;
    line-height: 42px;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.xunhu-downbox .xunhu-btn-vip:hover {
    box-shadow: 2px 2px 5px #FA555560!important;
}

.xunhu-downbox .xunhu-btn-vip svg {
    width: 28px;
    height: 28px;
}

.xunhu-downbox .xunhu-btn-vip svg.diy path {
    fill: #FFFFFF;
}

.xunhu-downbox .xunhu-btn-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    font-size: 14px;
}

.xunhu-downbox .xunhu-btn-wrapper .xunhu-btn {
    font-size: 14px!important;
    font-weight: 600;
    gap: 3px;
    font-family: "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.xunhu-modal .xunhu-btn {
    text-decoration: none;
}

.download-content .xunhu-font.text-help, .download-content .xunhu-font .text-help {
    color: #333;
}

.download-content .xunhu-font.text-download, .download-content .xunhu-font .text-download {
    color: #05047E;
    font-weight: bold;
}

/* 响应式样式 */
@media (max-width: 767px) {
    .download-content .xunhu-modal, .pay_to_see.xunhu-modal {
        /* display: flex; */
    }
    
    .download-content .xunhu-modal-content, .pay_to_see .xunhu-modal-content {
        margin: auto!important;
    }
    
    .download-content .xunhu-member-item, .pay_to_see .xunhu-member-item {
        box-sizing: border-box;
        width: 90% !important;
        margin: 5px;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
    }
    
    .xunhu-member-info {
        margin: 5px auto!important;
        padding: 5px!important;
    }
    
    .download-content .xunhu-modal-content .xunhu-ptb40, .pay_to_see .xunhu-modal-content .xunhu-ptb40 {
        padding: 10px 0;
    }
    
   .download-content .xunhu-member-item .xh_membership_info, .pay_to_see .xunhu-member-item .xh_membership_info {
        text-align: left;
        padding-left: 10px;
        margin-left: 10px;
        border-left: 1px dashed #DDD;
    }
    
    .download-content .xunhu-member-item .xh_membership_info .xunhu-mt10, .pay_to_see .xunhu-member-item .xh_membership_info .xunhu-mt10 {
        margin-top: 0;
    }
    
    .xh-w80 {
        width: 96%!important;
        margin: 0 2%;
    }
    
    .xunhu-mt20 {
        margin-top: 5px!important;
    }
}

@media screen and (max-width:498px) {
    .download-content h2 {
        font-size: 1.5rem;
        padding-left: 0;
    }
    
    .download-content h2:before {
        content: none;
    }
    
    .download-content h2.has-text-align-center:before {
        content: "";
    }
    
    .download-container {
        padding: var(--spacing-sm);
    }
    
    .download-content .xunhu-bg-color {
        padding: 30px 10px;
    }
    
    .download-content .xunhu-bg-color::before {
        top: unset;
        bottom: 12px;
        transform: rotate(-45deg);
    }
    
    .xunhu-downbox .xunhu-btn-wrapper {
        flex-direction: column;
    }
    
    .xunhu-downbox .xunhu-btn-wrapper .xunhu-btn {
        width: 80%!important;
    }
}