/* CC 网页新增交互的样式：左下角积分徽标、画像/升级弹窗、分享赚积分、反馈专区。
   线上安全策略是 style-src 'self'：页面里的内嵌 <style> 和元素上的 style="..." 都会被拦掉，
   所以这些样式必须放在这个独立文件里，脚本只加类名（2026-09-16 踩过：分享按钮的图标失去尺寸，铺满了半个页面）。 */

/* ── 左下角：版本 + 今日积分 + 奖励积分 ───────────────────────── */
#planBadge{margin-top:2px;font-size:11px;line-height:16px;color:#8a9099;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;font-variant-numeric:tabular-nums}
#planBadge .cc-gift{color:#b45309;font-weight:600}
#planBadge .cc-reward{color:#15803d;font-weight:600}
.cc-ledger-link{display:block;margin-top:3px;padding:0;border:0;background:none;color:#b63225;font:inherit;font-size:11px;line-height:18px;text-align:left;cursor:pointer}
.cc-ledger-link[hidden]{display:none}
.cc-ledger-link:hover{text-decoration:underline}
.cc-ledger-link:focus-visible{outline:2px solid #b63225;outline-offset:2px;border-radius:2px}

/* ── 通用弹窗（画像、升级） ──────────────────────────────────── */
.cc-mask{position:fixed;inset:0;z-index:400;background:rgba(20,16,12,.45);display:flex;align-items:center;justify-content:center;padding:16px}
.cc-box{width:min(460px,100%);max-height:90vh;overflow:auto;background:#fff;border-radius:14px;padding:20px 20px 16px;box-shadow:0 12px 40px rgba(0,0,0,.25);font-size:14px;line-height:1.6;color:#222;box-sizing:border-box}
.cc-title{font-size:17px;font-weight:600;margin-bottom:4px}
.cc-sub{color:#6b625b;margin-bottom:12px}
/* 测试说明与欢迎信的正文：多行纯文本，保留换行，长了自己滚 */
.cc-body{white-space:pre-wrap;overflow-wrap:anywhere;margin:8px 0 4px;max-height:60vh;overflow-y:auto}
/* 测试通知：独立阅读区与固定操作区，不再把整篇正文塞进一块纯文本 */
.cc-box.cc-test-box{display:flex;flex-direction:column;width:min(760px,100%);max-height:min(88vh,860px);max-height:min(88dvh,860px);padding:0;overflow:hidden;border:1px solid #eee4df;border-radius:22px;background:#fff;box-shadow:0 24px 72px rgba(42,30,24,.22);color:#222936}
.cc-test-head{flex:none;padding:25px 30px 22px;background:linear-gradient(115deg,#fff8f5 0%,#fff 76%);border-bottom:1px solid #f0e4df}
.cc-test-eyebrow{margin-bottom:8px;color:#bd3a2c;font-size:12px;font-weight:700;letter-spacing:.08em}
.cc-test-title{margin:0;font-size:25px;font-weight:750;line-height:1.35;letter-spacing:-.02em;color:#202632}
.cc-test-scroll{min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:22px 30px 24px;scrollbar-color:#d6c8c1 transparent;scrollbar-width:thin}
.cc-test-list{display:grid;gap:11px;margin:0 0 16px;padding:0;list-style:none}
.cc-test-item{display:grid;grid-template-columns:36px minmax(0,1fr);gap:12px;align-items:start;padding:15px 17px;border:1px solid #eee8e4;border-radius:14px;background:#fff;box-shadow:0 2px 9px rgba(35,26,22,.035)}
.cc-test-number{display:flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:11px;background:#fff0ec;color:#b93629;font-size:15px;font-weight:750;font-variant-numeric:tabular-nums}
.cc-test-item-content{min-width:0}
.cc-test-item-title{display:block;margin:1px 0 3px;font-size:17px;line-height:1.45;color:#262b35}
.cc-test-item-text{margin:0;color:#4e5865;font-size:16px;line-height:1.65;overflow-wrap:anywhere}
.cc-test-item:nth-child(4){border-color:#dce9e2;background:#f8fcf9}
.cc-test-item:nth-child(4) .cc-test-number{background:#e4f3ea;color:#27684a}
.cc-test-scope,.cc-test-feedback,.cc-test-safety,.cc-test-note{margin:0 0 11px;overflow-wrap:anywhere;font-size:14px;line-height:1.65}
.cc-test-scope{padding:12px 15px;border-radius:11px;background:#fff7ea;color:#75502c}
.cc-test-feedback{padding:15px 17px;border:1px solid #f4ddd7;border-radius:12px;background:#fff8f6;color:#683b34;font-size:15px}
.cc-test-safety{padding:0 2px;color:#68727d;font-size:13px}
.cc-test-footer{display:flex;flex:none;justify-content:flex-end;align-items:center;padding:14px 30px 18px;border-top:1px solid #eee8e4;background:#fff;box-shadow:0 -7px 18px rgba(35,26,22,.035)}
.cc-test-footer .cc-btn{min-height:46px;margin:0;padding:11px 26px;border-radius:11px;background:#bd382b;font:inherit;font-size:15px;font-weight:700;line-height:24px;box-shadow:0 6px 14px rgba(189,56,43,.18)}
.cc-test-footer .cc-btn:hover:not(:disabled){background:#a82e23}
.cc-test-footer .cc-btn:focus-visible{outline:3px solid #ee9a8e;outline-offset:3px}
@media (max-width:600px){.cc-box.cc-test-box{max-height:calc(100dvh - 32px);border-radius:18px}.cc-test-head{padding:21px 19px 18px}.cc-test-title{font-size:21px}.cc-test-scroll{padding:16px 17px 18px}.cc-test-item{grid-template-columns:32px minmax(0,1fr);gap:10px;padding:14px 13px}.cc-test-number{width:30px;height:30px}.cc-test-item-title{font-size:16px}.cc-test-item-text{font-size:16px}.cc-test-footer{padding:12px 17px 16px}.cc-test-footer .cc-btn{width:100%}}
/* ── 《给你的一封信》：先一个信封，点开展成信纸 ─────────────── */
.cc-box.ccl-box{width:min(760px,100%);padding:22px}
.ccl-env{display:block;width:100%;border:0;background:transparent;padding:6px 0 2px;cursor:pointer;font:inherit;color:inherit;text-align:center;transition:transform .22s ease,opacity .22s ease}
.ccl-env:hover{transform:translateY(-3px)}
.ccl-env:focus-visible{outline:2px solid #b63225;outline-offset:6px;border-radius:12px}
.ccl-env.opening{transform:translateY(-10px) scale(1.03);opacity:0}
.ccl-art{display:block;width:100%;max-width:320px;height:auto;margin:0 auto}
.ccl-for{margin-top:14px;font-size:16px;font-weight:600;color:#3f3a34}
.ccl-hint{margin-top:5px;font-size:12px;color:#8a8279}
.ccl-paper{opacity:0;transform:translateY(8px);transition:opacity .28s ease,transform .28s ease;background:#fffdf8;border:1px solid #efe4d4;border-radius:12px;padding:24px 26px 14px;box-shadow:inset 0 0 0 1px #fff,0 2px 10px rgba(120,90,50,.06)}
.ccl-paper.on{opacity:1;transform:none}
.ccl-title{font-size:20px;font-weight:700;color:#2f2a25;text-align:center;padding-bottom:14px;border-bottom:1px solid #f0e6d7;margin-bottom:16px}
.ccl-text{white-space:pre-wrap;overflow-wrap:anywhere;max-height:62vh;overflow-y:auto;font-size:15px;line-height:1.9;color:#3a352f;padding-right:4px}
@media (max-width:520px){.cc-box.ccl-box{padding:16px}.ccl-paper{padding:18px 16px 10px}.ccl-text{font-size:14px;line-height:1.8;max-height:56vh}.ccl-title{font-size:18px}}
@media (prefers-reduced-motion:reduce){.ccl-env,.ccl-paper{transition:none}.ccl-env:hover,.ccl-env.opening{transform:none}}
/* 专家切换器：让它看起来就能点，并写清两位的区别 */
.tab.expick{box-shadow:inset 0 0 0 1px rgba(255,255,255,.34)}
.tab.expick:hover{filter:brightness(1.08)}
.expick-hint{margin:-18px 0 20px;font-size:12px;line-height:1.55;color:#8a9099;max-width:560px}
/* 快速评星弹窗（点发送时上一条还没评价） */
.r2-quick{display:flex;gap:8px;flex-wrap:wrap;margin:6px 0 2px}
.r2-star{flex:1 1 auto;min-width:64px;padding:10px 6px;border:1px solid #e0d6c9;border-radius:9px;background:#fffdf9;color:#5a5149;font-size:15px;cursor:pointer}
.r2-star:hover:not(:disabled){border-color:#d99b93;background:#fff6f4;color:#b63225}
.r2-star:disabled{opacity:.55;cursor:default}
.r2-reasons{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0 2px;align-items:center}
.r2-reason{min-height:36px;padding:6px 12px;border:1px solid #e0d6c9;border-radius:18px;background:#fffdf9;color:#5a5149;font-size:14px;cursor:pointer}
.r2-reason[aria-pressed="true"]{border-color:#b63225;background:#fff1ee;color:#b63225}
.r2-reason:disabled{opacity:.6;cursor:default}
.r2-reason:focus-visible{outline:2px solid #b63225;outline-offset:2px}
.r2-reason-status{font-size:12px;color:#b63225}
.cc-field{display:block;margin-bottom:10px}
.cc-label{font-weight:600;margin-bottom:4px}
.cc-input{width:100%;box-sizing:border-box;padding:8px;border:1px solid #d6cfc8;border-radius:8px;font-size:14px;font-family:inherit;background:#fff}
.cc-input.cc-area{min-height:64px;resize:vertical}
.cc-err{color:#b63225;min-height:20px}
.cc-row{text-align:right}
.cc-note{color:#9a3412;margin-top:6px}
.cc-btn{display:inline-block;margin:10px 0 0 8px;padding:7px 14px;border:0;border-radius:8px;background:#b63225;color:#fff;font-size:14px;line-height:20px;cursor:pointer}
.cc-btn.cc-ghost{border:1px solid #d6cfc8;background:#fff;color:#333}
.cc-btn:disabled{background:#d9dce0;cursor:default}
/* 回答下面挂的按钮（交给私教、升级） */
.cc-inline-btn{display:inline-block;margin:10px 8px 0 0;padding:7px 14px;border:0;border-radius:8px;background:#b63225;color:#fff;font-size:14px;line-height:20px;cursor:pointer}
.cc-inline-btn:disabled{background:#d9dce0;cursor:default}
/* 升级弹窗里的版本卡片 */
.cc-plan-card{display:block;width:100%;text-align:left;margin:0 0 8px;padding:10px 12px;border:1px solid #e5ddd6;border-radius:10px;background:#fff;font:inherit;cursor:pointer;box-sizing:border-box}
.cc-plan-card.on{border:2px solid #b63225}
.cc-plan-card:disabled{opacity:.45;cursor:default}
.cc-plan-head{display:flex;justify-content:space-between;gap:8px}
.cc-plan-price{color:#b63225;font-weight:600;font-variant-numeric:tabular-nums}
.cc-plan-note{color:#6b625b;font-size:13px}
.cc-plan-locked{color:#8a9099;font-size:12px}

/* ── 分享赚积分 ─────────────────────────────────────────────── */
.ccs-entry{position:fixed;top:12px;right:18px;z-index:120;display:inline-flex;align-items:center;gap:6px;height:32px;padding:0 14px;border:0;border-radius:16px;background:linear-gradient(135deg,#D93A2B,#EF7A36);color:#fff;font-size:13px;font-weight:600;cursor:pointer;box-shadow:0 4px 14px rgba(217,58,43,.28)}
.ccs-entry:hover{filter:brightness(1.06)}
.ccs-entry svg{width:15px;height:15px;flex:none}
.ccs-mask{position:fixed;inset:0;z-index:400;background:rgba(20,16,12,.48);display:flex;align-items:center;justify-content:center;padding:16px}
.ccs-box{position:relative;width:min(560px,100%);max-height:92vh;overflow:auto;background:#fff;border-radius:16px;box-shadow:0 18px 50px rgba(0,0,0,.28);font-size:14px;color:#1F2328;line-height:1.5}
.ccs-hero{position:relative;padding:26px 130px 72px 24px;background:linear-gradient(135deg,#D93A2B 0%,#EC6531 62%,#F4A03C 100%);color:#fff;overflow:hidden}
.ccs-hero h2{margin:0;font-size:25px;letter-spacing:1px;line-height:1.3}
.ccs-hero p{margin:8px 0 0;font-size:13px;opacity:.93}
.ccs-coin{position:absolute;right:52px;top:26px;width:72px;height:72px;border-radius:50%;background:radial-gradient(circle at 35% 30%,#FFE9A8,#F2B544 58%,#D98F1E);box-shadow:inset 0 -4px 0 rgba(0,0,0,.12),0 6px 16px rgba(120,40,0,.25);display:flex;align-items:center;justify-content:center;font-size:30px;font-weight:800;color:#A8541A;transform:rotate(-12deg)}
.ccs-close{position:absolute;top:10px;right:12px;z-index:2;width:30px;height:30px;border:0;border-radius:50%;background:rgba(255,255,255,.22);color:#fff;font-size:20px;line-height:30px;cursor:pointer}
.ccs-close.dark{position:static;background:#EFE6E0;color:#4A5058}
.ccs-card{position:relative;margin:-54px 18px 0;padding:16px;background:#fff;border-radius:14px;box-shadow:0 6px 24px rgba(0,0,0,.09)}
.ccs-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;padding-bottom:14px;border-bottom:1px dashed #F0D9CF;text-align:center}
.ccs-stats b{display:block;font-size:21px;color:#D93A2B;font-variant-numeric:tabular-nums}
.ccs-stats span{font-size:12px;color:#8A9099}
.ccs-link{display:flex;gap:10px;align-items:center;margin-top:14px;padding:8px 10px;background:#FFF6EC;border-radius:8px;font-size:12px;color:#4A5058}
.ccs-link span{flex:none}
.ccs-link code{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:inherit;color:#1F2328}
.ccs-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:12px}
.ccs-actions.tight{margin-top:16px}
.ccs-btn{height:40px;border-radius:10px;border:0;font-size:14px;font-weight:600;cursor:pointer}
.ccs-primary{background:linear-gradient(135deg,#D93A2B,#EC6531);color:#fff}
.ccs-ghost{background:#fff;border:1px solid #F0C9B8;color:#B32B1E}
.ccs-sec{padding:18px 18px 0}
.ccs-sec h3{margin:0 0 10px;font-size:15px}
.ccs-rules{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.ccs-rule{padding:12px;border:1px solid #F3E3DB;border-radius:10px;background:#FFFBF8}
.ccs-rule b{font-size:18px;color:#D93A2B;font-variant-numeric:tabular-nums}
.ccs-rule div{margin-top:2px;font-weight:600}
.ccs-rule span{display:block;margin-top:2px;font-size:12px;color:#8A9099}
.ccs-friends{display:flex;flex-wrap:wrap;gap:8px}
.ccs-friend{display:flex;align-items:center;gap:6px;padding:4px 11px 4px 4px;border-radius:16px;background:#F7F8FA;font-size:13px}
.ccs-friend i{display:flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:50%;background:#D93A2B;color:#fff;font-style:normal;font-size:12px}
.ccs-friend small{color:#8A9099;font-size:12px}
.ccs-list{margin:0;padding:0;list-style:none}
.ccs-list li{display:flex;align-items:center;gap:10px;padding:10px 0;border-bottom:1px solid #EBEDF0;font-size:13px}
.ccs-list li:last-child{border-bottom:0}
.ccs-list time{flex:none;width:74px;color:#8A9099;font-size:12px}
.ccs-list em{margin-left:auto;font-style:normal;font-weight:700;color:#15803d;font-variant-numeric:tabular-nums}
.ccs-empty{color:#8A9099;font-size:13px}
.ccs-blocked{margin-top:14px;padding:10px 12px;border-radius:10px;background:#FFF6EC;border:1px solid #F3E3DB;color:#B45309;font-size:13px}
.ccs-list em.down{color:#B32B1E}
.ccs-foot{padding:12px 18px 18px;font-size:12px;color:#8A9099}
.ccs-foot.center{padding:10px 0 0;text-align:center}
.ccs-pbox{width:min(380px,100%);padding:18px 20px 20px;background:#FAF4EF}
.ccs-ptitle{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px;font-size:16px}
.ccs-poster{display:block;width:300px;max-width:100%;margin:0 auto;border-radius:14px;box-shadow:0 8px 30px rgba(0,0,0,.16)}
@media (max-width:520px){.ccs-hero{padding-right:24px}.ccs-coin{display:none}.ccs-rules{grid-template-columns:1fr}.ccs-entry{top:10px;right:10px;padding:0 11px}}

/* ── 反馈专区 ───────────────────────────────────────────────── */
.fbc-mask{position:fixed;inset:0;z-index:400;background:rgba(20,16,12,.45);display:flex;align-items:center;justify-content:center;padding:16px}
.fbc-box{width:min(520px,100%);max-height:92vh;overflow:auto;background:#fff;border-radius:16px;padding:20px;box-shadow:0 18px 50px rgba(0,0,0,.25);font-size:14px;line-height:1.6;color:#1F2328;box-sizing:border-box}
.fbc-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.fbc-head h2{margin:0;font-size:18px}
.fbc-x{width:30px;height:30px;border:0;border-radius:50%;background:#F0F2F5;color:#4A5058;font-size:20px;line-height:30px;cursor:pointer}
.fbc-sub{margin:6px 0 12px;color:#6B625B;font-size:13px}
.fbc-text{display:block;width:100%;min-height:110px;box-sizing:border-box;padding:10px 12px;border:1px solid #E1D9D2;border-radius:10px;font:inherit;resize:vertical}
.fbc-tools{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.fbc-tools button{height:34px;padding:0 12px;border:1px solid #E1D9D2;border-radius:17px;background:#fff;color:#4A5058;font-size:13px;cursor:pointer}
.fbc-tools button.on{border-color:#D93A2B;color:#fff;background:#D93A2B}
.fbc-files{list-style:none;margin:10px 0 0;padding:0;display:grid;gap:6px}
.fbc-file{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:8px;padding:8px 10px;border:1px solid #EBEDF0;border-radius:10px;background:#FAFAF9}
.fbc-kind{font-size:12px;color:#8A9099;min-width:28px}
.fbc-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fbc-meta{grid-column:2/3;font-size:12px;color:#8A9099}
.fbc-meta.err{color:#B32B1E}
.fbc-progress{grid-column:1/4;width:100%;height:3px}
.fbc-acts{display:flex;gap:6px}
.fbc-acts button{border:0;background:none;color:#B32B1E;font-size:13px;cursor:pointer;padding:2px 4px}
.fbc-err{min-height:20px;margin-top:8px;color:#B32B1E;font-size:13px}
.fbc-foot{display:flex;justify-content:flex-end}
.fbc-submit{height:40px;padding:0 22px;border:0;border-radius:10px;background:#D93A2B;color:#fff;font-size:15px;font-weight:600;cursor:pointer}
.fbc-submit:disabled{background:#D9DCE0;cursor:default}
.fbc-history{margin-top:14px;border-top:1px solid #EBEDF0;padding-top:10px}
.fbc-history summary{cursor:pointer;color:#4A5058}
.fbc-item{padding:8px 0;border-bottom:1px solid #F2F3F5;font-size:13px}
.fbc-item time{color:#8A9099;font-size:12px}
.fbc-item p{margin:2px 0;white-space:pre-wrap;overflow-wrap:anywhere}

/* ── 原来写在首页 <style> 里的几条（同样被 style-src 'self' 拦掉，挪到这里） ── */
#attachBox,#attachBox2{max-height:160px;overflow-y:auto}
#attachBox>small,#attachBox2>small{display:block;padding:4px 12px}
.web-attachment{min-width:0}
.attachment-name{min-width:0;text-align:left}

/* 私教回答下方的「记入 / 建档」提问：一行，点一下就结束。 */
.customer-link{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:10px 0 4px;padding:10px 12px;border:1px solid #eadfd2;border-radius:12px;background:#fffaf5}
.customer-link-q{flex:1 1 100%;font-size:14px;color:#3d352e}
.customer-link-btn{min-height:40px;min-width:64px;padding:8px 16px;border:1px solid #b63225;border-radius:20px;background:#b63225;color:#fff;font-size:14px;cursor:pointer}
.customer-link-btn.is-ghost{background:transparent;color:#5a5149;border-color:#d8cdbf}
.customer-link-btn:disabled{opacity:.55;cursor:default}
.customer-link-btn:focus-visible,.customer-link-retry:focus-visible{outline:2px solid #b63225;outline-offset:2px}
.customer-link.is-done{padding:0;border:0;background:none}
.customer-link-done{font-size:13px;color:#8a8178}
.customer-link.is-error{padding:0;border:0;background:none}
.customer-link-retry{padding:0;border:0;background:none;color:#b63225;font-size:13px;text-decoration:underline;cursor:pointer}
@media (min-width:768px){.customer-link-q{flex:1 1 auto}}
/* 打 1 星后的「哪里没帮上」窗口（round2.js lowRatingFeedback 复用反馈专区） */
.fbc-foot{gap:10px}
.fbc-skip{height:40px;padding:0 18px;border:1px solid #e0d6c9;border-radius:10px;background:#fff;color:#5a5149;font-size:15px;cursor:pointer}
.fbc-box .r2-reasons{margin:4px 0 10px}
.r2-more{margin-top:8px;padding:6px 0;border:0;background:none;color:#b63225;font-size:14px;text-decoration:underline;cursor:pointer}
.r2-more:focus-visible,.fbc-skip:focus-visible{outline:2px solid #b63225;outline-offset:2px}
/* ── 定向邀请弹窗：二维码 + 一键复制 ───────────────────────── */
.cc-group-qr{margin:4px 0 14px;text-align:center}
.cc-group-qr img{display:block;width:min(240px,72%);height:auto;margin:0 auto 8px;border:1px solid #eee4df;border-radius:12px;background:#fff}
.cc-group-qr figcaption{color:#6f6560;font-size:13px;line-height:1.5}
.cc-group-copy{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 15px;border:1px solid #f4ddd7;border-radius:12px;background:#fff8f6}
.cc-group-copy strong{min-width:0;font-size:16px;color:#262b35;overflow-wrap:anywhere;-webkit-user-select:all;user-select:all}
.cc-group-copy-btn{flex:none;min-height:36px;padding:6px 16px;border:1px solid #bd382b;border-radius:9px;background:#fff;color:#bd382b;font:inherit;font-weight:700;cursor:pointer}
.cc-group-copy-btn:focus-visible{outline:3px solid #ee9a8e;outline-offset:2px}
.cc-offscreen{position:fixed;left:-9999px;top:0;opacity:0}
.cc-test-footer{gap:10px}
.cc-test-footer .cc-btn.cc-btn-quiet{background:#fff;color:#6f6560;border:1px solid #e4d9d4;box-shadow:none}
.cc-test-footer .cc-btn.cc-btn-quiet:hover:not(:disabled){background:#faf6f4}
@media (max-width:600px){.cc-test-footer .cc-btn.cc-btn-quiet{width:auto;flex:0 0 auto}.cc-test-footer{flex-wrap:nowrap}}
