/* ==================== 微信登录按钮 ==================== */
.wx-login-btn {
    display: inline-block;
    padding: 10px 24px;
    background-color: #07c160;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s;
}
.wx-login-btn:hover {
    background-color: #06ad56;
}

/* ==================== 付费墙 ==================== */
.wx-paywall {
    position: relative;
    margin: 20px 0;
}
.wx-paywall-excerpt {
    position: relative;
}
.wx-paywall-excerpt::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(transparent, #fff);
    pointer-events: none;
}
.wx-paywall-lock {
    text-align: center;
    padding: 24px 16px;
    border-top: 1px dashed #ddd;
    margin-top: 16px;
    background: #fafafa;
    border-radius: 4px;
}
.wx-paywall-lock p {
    margin: 0 0 16px;
    color: #666;
    font-size: 14px;
}

/* ==================== 列表页付费墙 ==================== */
.wx-paywall-excerpt-list {
    margin: 8px 0;
}
.wx-paywall-excerpt-list p {
    margin: 0 0 6px;
    line-height: 1.6;
    color: #555;
    font-size: 14px;
}
.wx-paywall-notice {
    color: #ff6b35;
    font-size: 13px;
}
.wx-paywall-notice a {
    color: #ff6b35;
    text-decoration: underline;
    font-weight: 500;
}
.wx-paywall-notice a:hover {
    color: #e55a2b;
}

/* ==================== 兑换按钮 ==================== */
.wx-redeem-btn {
    display: inline-block;
    padding: 10px 24px;
    background-color: #ff6b35;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-right: 12px;
}
.wx-redeem-btn:hover {
    background-color: #e55a2b;
}

/* ==================== 赞助链接 ==================== */
.wx-buy-link {
    display: inline-block;
    color: #ff6b35;
    text-decoration: underline;
    font-size: 14px;
    vertical-align: middle;
}
.wx-buy-link:hover {
    color: #e55a2b;
}

/* ==================== 兑换码弹窗 ==================== */
.wx-redeem-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.wx-redeem-modal-content {
    background: #fff;
    border-radius: 8px;
    padding: 32px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.wx-redeem-modal-content h3 {
    margin: 0 0 8px;
    font-size: 18px;
    color: #333;
}
.wx-redeem-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.wx-redeem-modal-header h3 {
    margin: 0;
}
.wx-redeem-close {
    font-size: 24px;
    cursor: pointer;
    color: #999;
    border: none;
    background: none;
    line-height: 1;
    padding: 0 4px;
}
.wx-redeem-close:hover {
    color: #333;
}
.wx-redeem-modal-content > p {
    color: #999;
    font-size: 13px;
    margin: 0 0 20px;
}
.wx-redeem-modal-content input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    margin-bottom: 12px;
}
.wx-redeem-modal-content input:focus {
    border-color: #ff6b35;
    outline: none;
}
.wx-redeem-submit-btn {
    display: inline-block;
    padding: 10px 32px;
    background-color: #ff6b35;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s;
}
.wx-redeem-submit-btn:hover {
    background-color: #e55a2b;
}
#wx-redeem-error {
    color: #e74c3c;
    font-size: 13px;
    margin: 8px 0 0;
    min-height: 18px;
}
.wx-buy-tip {
    margin-top: 16px !important;
    font-size: 13px !important;
    color: #999 !important;
}
.wx-buy-tip a {
    color: #ff6b35;
    text-decoration: underline;
}

/* ==================== 微信登录弹窗（iframe 嵌入二维码） ==================== */
.wx-login-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.wx-login-modal-content {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    width: 360px;
    max-width: 90%;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.wx-login-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.wx-login-modal-header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
}
.wx-login-modal-close {
    font-size: 24px;
    cursor: pointer;
    color: #999;
    border: none;
    background: none;
    line-height: 1;
    padding: 0 4px;
}
.wx-login-modal-close:hover {
    color: #333;
}
.wx-login-qr-container {
    width: 300px;
    height: 340px;
    margin: 0 auto;
    overflow: hidden;
}
.wx-login-iframe {
    width: 300px;
    height: 340px;
    border: none;
}
.wx-login-tip {
    margin-top: 12px;
    color: #666;
    font-size: 14px;
}

/* ==================== Header 登录/用户区域 ==================== */
.wx-header-user {
    text-align: right;
    margin-bottom: 6px;
    font-size: 13px;
    min-height: 24px;
}

/* 未登录：微信登录链接 */
.wx-header-login-link {
    color: #07c160;
    text-decoration: none;
    font-size: 13px;
    cursor: pointer;
    font-weight: 500;
}
.wx-header-login-link:hover {
    color: #06ad56;
    text-decoration: underline;
}

/* 已登录：用户信息 */
.wx-header-user-info {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    position: relative;
    cursor: pointer;
}
.wx-header-user-info .wx-h-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    vertical-align: middle;
}
.wx-header-user-info .wx-h-nickname {
    color: #333;
    font-weight: 500;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.wx-header-user-info .wx-h-arrow {
    font-size: 10px;
    color: #999;
    transition: transform 0.2s;
}
.wx-header-user-info:hover .wx-h-arrow {
    transform: rotate(180deg);
}

/* 下拉菜单 */
.wx-header-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.12);
    min-width: 140px;
    z-index: 999;
    padding-top: 4px;
    margin-top: 0;
    overflow: hidden;
}
.wx-header-dropdown.wx-dropdown-open {
    display: block;
}
.wx-header-dropdown a {
    display: block;
    padding: 8px 16px;
    color: #333;
    text-decoration: none;
    font-size: 13px;
    white-space: nowrap;
}
.wx-header-dropdown a:hover {
    background: #f5f5f5;
}
.wx-header-dropdown .wx-h-member-status {
    color: #999;
    font-size: 12px;
    padding: 8px 16px;
    border-bottom: 1px solid #f0f0f0;
    cursor: default;
}
.wx-header-dropdown .wx-h-member-status:hover {
    background: transparent;
}
.wx-header-dropdown .wx-h-redeem-link {
    color: #ff6b35;
    font-weight: 500;
}
.wx-header-dropdown .wx-h-logout-link {
    color: #999;
    border-top: 1px solid #f0f0f0;
}
