/* 免登录付费阅读组件核心样式 */
.guest-pay-widget {
    position: relative;
    margin: 35px 0 25px 0;
    clear: both;
}

.guest-pay-unlocked-notice {
    display: flex;
    align-items: center;
    background: #f6ffed;
    border: 1px solid #b7eb8f;
    border-radius: 8px;
    padding: 12px 18px;
    margin: 15px 0 25px 0;
    color: #389e0d;
}

.guest-pay-unlocked-notice .notice-icon {
    width: 24px;
    height: 24px;
    background: #52c41a;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 12px;
    flex-shrink: 0;
}

.guest-pay-unlocked-notice .notice-body strong {
    font-size: 15px;
    display: block;
    color: #237804;
}

.guest-pay-unlocked-notice .notice-body span {
    font-size: 13px;
    color: #595959;
}

.gp-widget-blur-mask {
    height: 70px;
    margin-top: -70px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 100%);
    pointer-events: none;
    position: relative;
    z-index: 1;
}

.gp-widget-card {
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    padding: 24px 28px;
    max-width: 620px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    box-sizing: border-box;
}

.gp-widget-header {
    text-align: center;
    border-bottom: 1px dashed #eee;
    padding-bottom: 18px;
    margin-bottom: 20px;
}

.gp-badge {
    display: inline-flex;
    align-items: center;
    background: #fff7e6;
    border: 1px solid #ffd591;
    color: #d46b08;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.gp-badge-icon {
    margin-right: 4px;
}

.gp-price-wrap {
    margin: 12px 0 6px 0;
    color: #ff4d4f;
}

.gp-currency {
    font-size: 20px;
    font-weight: 700;
}

.gp-amount {
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.gp-tip-validity {
    color: #8c8c8c;
    font-size: 13px;
}

.gp-form-group {
    margin-bottom: 16px;
}

.gp-form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #262626;
    margin-bottom: 8px;
}

.gp-req {
    color: #ff4d4f;
    margin-left: 4px;
}

.gp-input-wrap .gp-input {
    width: 100%;
    height: 42px;
    padding: 8px 14px;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
    outline: none;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.gp-input-wrap .gp-input:focus {
    border-color: #1677ff;
    box-shadow: 0 0 0 2px rgba(22, 119, 255, 0.2);
}

.gp-paytype-section {
    margin-bottom: 20px;
}

.gp-paytype-options {
    display: flex;
    gap: 12px;
}

.gp-paytype-btn {
    flex: 1;
    height: 48px;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fafafa;
    user-select: none;
}

.gp-paytype-btn .gp-icon {
    width: 22px;
    height: 22px;
    margin-right: 8px;
}

.gp-paytype-btn span {
    font-size: 14px;
    font-weight: 600;
    color: #595959;
}

.gp-paytype-btn[data-type="alipay"].gp-selected {
    border-color: #1677ff;
    background: #e6f4ff;
}

.gp-paytype-btn[data-type="alipay"].gp-selected span {
    color: #1677ff;
}

.gp-paytype-btn[data-type="wechat"].gp-selected {
    border-color: #07c160;
    background: #f6ffed;
}

.gp-paytype-btn[data-type="wechat"].gp-selected span {
    color: #07c160;
}

.gp-no-pay {
    color: #ff4d4f;
    font-size: 13px;
    padding: 8px 0;
}

.gp-btn-submit {
    width: 100%;
    height: 48px;
    background: linear-gradient(135deg, #1677ff 0%, #0958d9 100%);
    border: none;
    border-radius: 8px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(22, 119, 255, 0.3);
    transition: all 0.2s ease;
}

.gp-btn-submit:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}

.gp-footer-links {
    text-align: center;
    margin-top: 14px;
}

.gp-link-query {
    color: #8c8c8c;
    font-size: 13px;
    text-decoration: none;
    transition: color 0.2s;
}

.gp-link-query:hover {
    color: #1677ff;
    text-decoration: underline;
}

/* 弹窗通用样式 */
.gp-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.65);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: gpFadeIn 0.2s ease;
}

@keyframes gpFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.gp-modal-dialog {
    background: #ffffff;
    border-radius: 12px;
    width: 90%;
    max-width: 440px;
    padding: 24px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
}

.gp-modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    font-size: 22px;
    color: #8c8c8c;
    cursor: pointer;
    line-height: 1;
}

.gp-modal-close:hover {
    color: #262626;
}

.gp-modal-title {
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
    color: #262626;
}

.gp-qrcode-box {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px;
    background: #fafafa;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    margin: 12px auto;
    width: 220px;
    height: 220px;
}

.gp-modal-tip {
    text-align: center;
    font-size: 13px;
    color: #595959;
    margin-top: 10px;
}

.gp-modal-timer {
    color: #ff4d4f;
    font-weight: 600;
}

/* 查单列表弹窗 */
.gp-query-dialog {
    max-width: 540px;
}

.gp-order-item {
    border-bottom: 1px solid #f0f0f0;
    padding: 12px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gp-order-item:last-child {
    border-bottom: none;
}

.gp-order-title {
    font-size: 14px;
    font-weight: 600;
    color: #262626;
    margin-bottom: 4px;
}

.gp-order-meta {
    font-size: 12px;
    color: #8c8c8c;
}

.gp-status-tag {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 500;
}

.gp-status-valid {
    background: #f6ffed;
    color: #52c41a;
    border: 1px solid #b7eb8f;
}

.gp-status-expired {
    background: #f5f5f5;
    color: #8c8c8c;
    border: 1px solid #d9d9d9;
}
