/* 付费进群系统 - 前端样式 */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { background: #f5f5f5; font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif; -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }

.page { max-width: 480px; margin: 0 auto; background: #fff; min-height: 100vh; position: relative; padding-bottom: 70px; overflow-x: hidden; }

/* 顶部 banner */
.banner img { width: 100%; }
.banner-placeholder { height: 200px; background: linear-gradient(135deg,#ff7e5f,#feb47b); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 24px; font-weight: bold; }
.badge { width: 100%; }

.group-title { text-align: center; padding: 14px 12px 4px; }
.group-title h1 { font-size: 22px; color: #333; }
.group-title .slogan { font-size: 16px; color: #e04242; font-weight: bold; margin-top: 6px; }
.group-title .slogan-2 { margin-top: 2px; }

/* 卡片 */
.card { padding: 14px 14px; border-bottom: 1px solid #f0f0f0; }
.card-title { font-size: 16px; font-weight: bold; color: #333; margin-bottom: 10px; }
.card-title .sub { font-size: 12px; color: #999; font-weight: normal; margin-left: 6px; }
.card-text { font-size: 14px; color: #555; line-height: 1.7; }
.card-img { width: 100%; margin-top: 10px; border-radius: 6px; }
.notice { margin-top: 10px; padding: 10px; background: #fff7e6; border: 1px solid #ffe1a8; border-radius: 6px; color: #c77b0a; font-size: 13px; line-height: 1.6; }

/* 群成员 */
.members .member-list { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.members .member-list li { width: calc(20% - 8px); text-align: center; }
.members .avatar { width: 52px; height: 52px; margin: 0 auto; border-radius: 50%; overflow: hidden; background: #eee; }
.members .avatar img { width: 100%; height: 100%; object-fit: cover; }
.members .member-list span { display: block; font-size: 12px; color: #666; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 统计 */
.stats { display: flex; justify-content: space-around; padding: 16px 0; border-bottom: 1px solid #f0f0f0; background: #fafafa; }
.stats .stat { text-align: center; }
.stats .num { display: block; font-size: 18px; font-weight: bold; color: #3a51a9; }
.stats .label { font-size: 12px; color: #999; }

/* 评价 */
.head-row { display: flex; justify-content: space-between; align-items: center; }
.write-cmt { font-size: 13px; color: #3a51a9; }
.comment { display: flex; padding: 12px 0; border-bottom: 1px solid #f5f5f5; }
.comment:last-child { border-bottom: none; }
.avatar.sm { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; background: #eee; flex: 0 0 40px; }
.avatar.sm img { width: 100%; height: 100%; object-fit: cover; }
.comment-body { flex: 1; margin-left: 10px; }
.comment-head { display: flex; justify-content: space-between; align-items: center; }
.comment-head .name { font-size: 14px; color: #333; font-weight: bold; }
.comment-head .from { font-size: 12px; color: #999; font-weight: normal; margin-left: 6px; }
.comment-head .like { font-size: 12px; color: #999; }
.comment-text { font-size: 14px; color: #555; margin-top: 6px; line-height: 1.6; }
.reply { margin-top: 8px; padding: 8px 10px; background: #f7f8fa; border-radius: 6px; font-size: 13px; color: #666; }
.reply .reply-name { color: #3a51a9; font-weight: bold; margin-right: 6px; }
.empty { color: #aaa; font-size: 13px; text-align: center; padding: 20px 0; }

/* 底部文字 */
.footer { text-align: center; font-size: 12px; color: #bbb; padding: 16px; }

/* 支付栏 */
.pay-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 900; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid #eee; }
.pay-bar { max-width: 480px; margin: 0 auto; }
.pay-btn { width: 100%; height: 48px; border: none; border-radius: 24px; font-size: 17px; font-weight: bold; color: #fff; background: linear-gradient(to right,#fc6b2a,#ff0000); cursor: pointer; }
.pay-btn:active { opacity: .85; }

/* 客服按钮 */
.kf-btn { position: fixed; right: 14px; bottom: 84px; z-index: 900; width: 48px; height: 48px; border-radius: 50%; border: none; color: #fff; background: rgba(0,0,0,.45); font-size: 13px; cursor: pointer; }
.kf-btn:active { background: rgba(0,0,0,.6); }

/* 弹窗 */
.modal-mask { position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 1000; background: rgba(0,0,0,.5); display: flex; align-items: center; justify-content: center; }
.modal-box { width: 82%; max-width: 360px; background: #fff; border-radius: 12px; padding: 24px 20px 20px; position: relative; text-align: center; box-shadow: 0 4px 20px rgba(0,0,0,.2); }
.modal-box h3 { font-size: 17px; color: #333; margin-bottom: 16px; line-height: 1.5; }
.modal-close { position: absolute; top: 8px; right: 14px; font-size: 26px; color: #aaa; cursor: pointer; }
.modal-close:hover { color: #333; }
.kf-img img { width: 220px; height: 220px; margin: 0 auto; object-fit: contain; border: 1px solid #eee; border-radius: 8px; }
.no-img { padding: 60px 10px; color: #bbb; font-size: 13px; border: 1px dashed #ddd; border-radius: 8px; }
.kf-wechat { margin-top: 12px; font-size: 14px; color: #666; }

/* 支付方式 */
.pay-options { display: flex; gap: 12px; margin-bottom: 12px; }
.pay-option { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 0; border: 1px solid #eee; border-radius: 10px; font-size: 14px; color: #333; }
.pay-option:active { border-color: #3a51a9; }
.po-icon { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: bold; font-size: 18px; }
.po-icon.wx { background: #07c160; }
.po-icon.ali { background: #1677ff; }
.pay-tip { font-size: 13px; color: #999; }
.pay-tip b { color: #e04242; font-size: 16px; }

/* 播报 */
.toast { position: fixed; top: 20px; left: 50%; transform: translateX(-50%); max-width: 320px; background: rgba(0,0,0,.55); color: #fff; font-size: 13px; padding: 8px 16px; border-radius: 20px; opacity: 0; transition: opacity .3s; z-index: 1200; pointer-events: none; white-space: nowrap; }
.toast.show { opacity: 1; }
