/* ============================================
   H5Share 基础样式（沿用原主题设计系统）
   ============================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
    color: #1a1a1a;
    background: #f5f5f5;
    font-size: 14px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { color: #c4a882; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }
input, textarea, select { font-family: inherit; font-size: 14px; }

.hidden { display: none !important; }

/* ---------- 站点头部 / 底部（默认隐藏于卡片页面） ---------- */
.site-header {
    background: #fff;
    border-bottom: 1px solid #e8e5e2;
}
.site-header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.site-logo { font-size: 17px; font-weight: 700; color: #1a1a1a; }
.site-nav { display: flex; gap: 24px; }
.site-nav a { font-size: 13px; color: #666; }
.site-nav a:hover { color: #1a1a1a; }

.site-footer {
    background: #fff;
    border-top: 1px solid #e8e5e2;
    margin-top: 40px;
}
.site-footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 24px;
    text-align: center;
    font-size: 12px;
    color: #999;
}

/* ---------- 按钮 ---------- */
.btn {
    display: inline-block;
    padding: 9px 20px;
    border: 1px solid #e8e5e2;
    border-radius: 4px;
    background: #fff;
    color: #1a1a1a;
    font-size: 13px;
    line-height: 1.5;
    transition: all .2s;
    text-align: center;
}
.btn:hover { border-color: #1a1a1a; color: #1a1a1a; }
.btn-primary {
    background: #1a1a1a;
    border-color: #1a1a1a;
    color: #fff;
}
.btn-primary:hover { background: #333; border-color: #333; color: #fff; }
.btn-ghost { background: transparent; }
.btn-lg { padding: 12px 28px; font-size: 14px; }
.btn-sm { padding: 5px 12px; font-size: 12px; }
.btn-block { display: block; width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- 弹窗 ---------- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 28px;
    height: 28px;
    border: none;
    background: none;
    font-size: 20px;
    color: #999;
    line-height: 1;
}
.modal-close:hover { color: #1a1a1a; }

/* ---------- 支付弹窗（作品页 / 会员页共用） ---------- */
.modal-box {
    position: relative;
    width: 360px;
    max-width: 100%;
    background: #fff;
    border-radius: 4px;
    padding: 28px 24px;
    text-align: center;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .18);
}
.modal-title { font-size: 16px; font-weight: 700; color: #1a1a1a; }
.qr-wrap {
    width: 180px;
    height: 180px;
    margin: 18px auto;
    border: 1px solid #e8e5e2;
    border-radius: 4px;
    padding: 8px;
    background: #fff;
}
.qr-wrap img { width: 100%; height: 100%; }
.order-info {
    text-align: left;
    background: #f5f3f0;
    border-radius: 4px;
    padding: 12px 16px;
    margin-bottom: 14px;
}
.order-info-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    font-size: 12px;
    color: #666;
    padding: 3px 0;
}
.order-info-row span:last-child {
    text-align: right;
    word-break: break-all;
}
.order-info-row .order-amount { color: #c4a882; font-weight: 700; }
.pay-status { font-size: 13px; color: #666; }
.pay-success .pay-success-icon {
    width: 48px;
    height: 48px;
    margin: 6px auto 10px;
    border-radius: 50%;
    background: #5a8a6e;
    color: #fff;
    font-size: 24px;
    line-height: 48px;
}
.pay-success p { font-size: 15px; font-weight: 700; margin-bottom: 16px; color: #1a1a1a; }

/* ---------- 加载圈 ---------- */
.spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid #e8e5e2;
    border-top-color: #1a1a1a;
    border-radius: 50%;
    animation: h5s-spin .8s linear infinite;
    vertical-align: -2px;
}
@keyframes h5s-spin { to { transform: rotate(360deg); } }
