/* Fdrama 版权中心 · 独立站样式
   配色与画布内版权中心一致：暖白底 + 墨绿主色。 */
:root{
  --cc-ink:#202a35;--cc-muted:#7b8590;--cc-line:#e6e9e5;--cc-green:#8eaa72;
  --cc-bg:#f5f6f3;--cc-card:#fff;--cc-deep:#435446;--cc-deep-hover:#35463a;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0;background:var(--cc-bg);color:var(--cc-ink);
  font-family:Inter,"Noto Sans SC","PingFang SC",system-ui,-apple-system,sans-serif;
  -webkit-font-smoothing:antialiased}
body{min-height:100vh}
button{font-family:inherit}
a{color:inherit}

.cc-root{min-height:100vh;display:flex;flex-direction:column;background:var(--cc-bg)}
.cc-boot{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;color:#9aa19c;font-size:13px}
.cc-spin-ring{width:26px;height:26px;border-radius:50%;border:2px solid #e2e7dd;border-top-color:#8eaa72;animation:ccspin .9s linear infinite}
@keyframes ccspin{to{transform:rotate(360deg)}}

/* ---------------- 顶栏 ---------------- */
.cc-header{position:sticky;top:0;z-index:30;height:66px;background:rgba(250,251,248,.92);
  border-bottom:1px solid #e8ebe7;backdrop-filter:blur(16px)}
.cc-header-inner{height:100%;max-width:1260px;margin:auto;padding:0 32px;display:flex;align-items:center;justify-content:space-between;gap:24px}
.cc-header-left{display:flex;align-items:center;gap:22px;min-width:0}
.cc-brand{display:flex;align-items:center;gap:10px;border:0;background:none;color:#28323c;font-size:15px;font-weight:750;letter-spacing:-.3px;cursor:pointer;padding:0}
.cc-brand-logo{width:31px;height:31px;border-radius:10px;object-fit:cover;display:block}
.cc-nav{display:flex;align-items:center;gap:4px}
.cc-nav button{border:0;background:none;padding:8px 11px;border-radius:8px;color:#6b766f;font-size:12.5px;font-weight:600;cursor:pointer;transition:.15s}
.cc-nav button:hover{background:#f0f3ed;color:#46524a}
.cc-nav button.on{background:#eef3e9;color:#5d7350}
.cc-account{display:flex;align-items:center;gap:14px}
.cc-price{font-size:11px;color:#748174;background:#f0f3ed;border:1px solid #e4e9df;padding:7px 10px;border-radius:30px;white-space:nowrap}
.cc-username{font-size:12px;color:#59645f;max-width:120px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cc-logout{display:flex;align-items:center;gap:6px;border:1px solid #e1e5e0;background:transparent;padding:8px 11px;border-radius:9px;color:#657068;font-size:12px;cursor:pointer}
.cc-logout:hover{border-color:#cfd7cc;color:#46524a}

/* ---------------- 主体 ---------------- */
.cc-main{flex:1;width:100%;max-width:1160px;margin:0 auto;padding:44px 32px 30px}
.cc-intro{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:24px}
.cc-eyebrow{display:flex;align-items:center;gap:8px;color:#84917f;font-size:10px;letter-spacing:1.8px;font-weight:700}
.cc-eyebrow span{width:6px;height:6px;border-radius:50%;background:#91aa79}
.cc-intro h1{font-size:clamp(27px,3.2vw,37px);letter-spacing:-1.5px;margin:12px 0 7px;font-weight:720;color:#26312d}
.cc-intro p{margin:0;color:#7b847e;font-size:13px;line-height:1.8;max-width:520px}
.cc-intro-badge{display:flex;align-items:center;gap:11px;padding:12px 17px;border:1px solid #e4e8e1;border-radius:12px;background:#fafbf8;color:#7e9670;font-size:11px;line-height:1.6;flex:none}
.cc-intro-badge b{font-weight:650;color:#49584a}
.cc-notice{display:flex;align-items:center;gap:8px;padding:11px 14px;margin:0 0 18px;border-radius:10px;background:#edf3e7;border:1px solid #dfe9d5;color:#64795b;font-size:12px}
.cc-notice.is-warn{background:#fbf3e5;border-color:#f1e4c9;color:#937643}
.cc-notice.is-bad{background:#fcefee;border-color:#f3dcda;color:#a2564e}

.cc-workspace{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(360px,.92fr);gap:20px;align-items:start}
.cc-panel{background:var(--cc-card);border:1px solid #e9ece8;border-radius:15px;box-shadow:0 7px 24px rgba(35,47,38,.035)}
.cc-form-panel{padding:25px 27px 23px}
.cc-panel-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px;gap:12px}
.cc-panel-heading>div{display:flex;align-items:center;gap:12px;min-width:0}
.cc-step{height:32px;min-width:32px;padding:0 6px;display:grid;place-items:center;border-radius:9px;background:#eef3e9;color:#748966;font-size:11px;font-weight:700;letter-spacing:.4px;flex:none}
.cc-panel h2{margin:0;color:#2d3832;font-size:16px;letter-spacing:-.25px;font-weight:680}
.cc-panel-heading p,.cc-history-heading p{margin:4px 0 0;color:#9aa19c;font-size:11px}
.cc-required{color:#9aa19c;font-size:10px;white-space:nowrap}

.cc-dropzone{width:100%;min-height:128px;border:1px dashed #ccd5c8;background:#fafbf8;border-radius:11px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;cursor:pointer;color:#535f55;transition:.18s;padding:16px}
.cc-dropzone:hover,.cc-dropzone.has-file{border-color:#8fa67c;background:#f6f9f2}
.cc-upload-icon{width:35px;height:35px;display:grid;place-items:center;border-radius:10px;background:#edf2e9;color:#829872}
.cc-drop-title{font-size:12px;font-weight:620;max-width:90%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cc-drop-meta{font-size:10px;color:#9aa19c;text-align:center;line-height:1.6}
.cc-hidden-input{display:none}

.cc-fields{display:grid;grid-template-columns:1fr 1fr;gap:14px 13px;margin-top:19px}
.cc-field{display:flex;flex-direction:column;gap:7px;min-width:0;color:#66716a;font-size:11px;font-weight:600}
.cc-field-wide{grid-column:1/-1}
.cc-field b{color:#9b735e;font-weight:700}
.cc-field small{margin-left:auto;color:#a4aaa5;font-size:10px;font-weight:400}
.cc-field>span{display:flex;align-items:center}
.cc-field input,.cc-field textarea,.cc-field select{width:100%;border:1px solid #e3e7e2;background:#fff;border-radius:8px;padding:10px 11px;color:#303a34;font:400 12px inherit;outline:none;transition:.16s}
.cc-field input,.cc-field select{height:38px}
.cc-field textarea{resize:vertical;min-height:76px;line-height:1.65}
.cc-field input::placeholder,.cc-field textarea::placeholder{color:#b5bcb6}
.cc-field input:focus,.cc-field textarea:focus,.cc-field select:focus{border-color:#9daf8c;box-shadow:0 0 0 3px rgba(142,170,114,.12)}
.cc-hintline{font-size:10px;color:#a4aaa5;font-weight:400;line-height:1.5}

.cc-privacy{display:flex;align-items:flex-start;gap:8px;margin:14px 0;color:#8b948d;font-size:10px;line-height:1.65}
.cc-privacy svg{flex:none;color:#91a17f;margin-top:1px}
.cc-error{margin:6px 0 11px;color:#b7554c;font-size:11px;line-height:1.6}
.cc-submit{height:43px;width:100%;border:0;border-radius:9px;background:var(--cc-deep);color:#f9fbf6;font-size:12px;font-weight:650;letter-spacing:.2px;display:flex;align-items:center;justify-content:center;gap:8px;cursor:pointer;transition:.18s}
.cc-submit:hover{background:var(--cc-deep-hover);transform:translateY(-1px)}
.cc-submit:disabled{opacity:.6;cursor:wait;transform:none}
.cc-submit.ghost{background:#f1f4ee;color:#5f6f5b;border:1px solid #e2e8db}
.cc-submit.ghost:hover{background:#eaf0e4;color:#4c5c48}
.cc-spin{animation:ccspin 1s linear infinite}

/* ---------------- 凭证 ---------------- */
.cc-side{display:flex;flex-direction:column;gap:16px}
.cc-certificate-panel{padding:22px 22px 17px}
.cc-cert-heading{margin-bottom:17px}
.cc-status{display:flex;align-items:center;gap:6px;border:1px solid #e6e9e5;color:#9aa19c;border-radius:20px;padding:5px 9px;font-size:10px;white-space:nowrap}
.cc-status i{width:5px;height:5px;background:#b2bbb3;border-radius:50%}
.cc-status.done{background:#f1f5ed;border-color:#e4ecdc;color:#6f8763}
.cc-status.done i{background:#86a36f}
.cc-status.fail{background:#fcefee;border-color:#f3dcda;color:#a2564e}
.cc-status.fail i{background:#c98a83}

.cc-certificate{position:relative;min-height:286px;padding:19px 21px 14px;overflow:hidden;border:1px solid #e7e7df;border-radius:10px;background:linear-gradient(145deg,#fff 0%,#fbfaf5 70%,#f5f3eb 100%)}
.cc-certificate:after{content:"";position:absolute;width:170px;height:170px;right:-76px;top:-83px;border:1px solid rgba(139,157,120,.12);border-radius:50%;box-shadow:0 0 0 12px rgba(139,157,120,.035),0 0 0 25px rgba(139,157,120,.025)}
.cc-cert-top{display:flex;align-items:center;justify-content:space-between;gap:10px}
.cc-cert-seal{width:37px;height:37px;border:1px solid #e1e7d9;border-radius:50%;display:grid;place-items:center;color:#82986e;flex:none}
.cc-cert-kind{font-size:9px;color:#87927e;border:1px solid #e5e9df;padding:5px 8px;border-radius:20px;white-space:nowrap}
.cc-cert-title{text-align:center;margin-top:8px;color:#3d493e;font-family:"Noto Serif SC",Georgia,serif;font-weight:650;font-size:18px;letter-spacing:2px}
.cc-cert-subtitle{text-align:center;margin-top:4px;color:#a1a79d;font-size:8px;letter-spacing:1.25px}
.cc-cert-rule{height:1px;background:#e6e8df;margin:14px 0 12px}
.cc-certificate dl{margin:0;display:grid;gap:9px}
.cc-certificate dl>div{display:grid;grid-template-columns:68px minmax(0,1fr);gap:8px;align-items:start;font-size:10px}
.cc-certificate dt{color:#929991}
.cc-certificate dd{margin:0;min-width:0;color:#4e594f;font-weight:550;overflow-wrap:anywhere}
.cc-certificate .cc-hash{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;color:#74806f;font-size:9px;line-height:1.5;word-break:break-all}
.cc-cert-foot{display:flex;justify-content:space-between;align-items:center;color:#a3a99f;font-size:9px;margin-top:14px;padding-top:10px;border-top:1px solid #ecece6}
.cc-cert-foot svg{color:#b1b9a8}
.cc-cert-actions{display:flex;gap:9px;margin-top:12px;flex-wrap:wrap}
.cc-cert-actions a,.cc-cert-actions button{height:36px;padding:0 12px;border:1px solid #e1e6df;border-radius:8px;background:#fff;color:#64735f;display:inline-flex;align-items:center;justify-content:center;gap:7px;text-decoration:none;font-size:10px;cursor:pointer;white-space:nowrap}
.cc-cert-actions a{flex:1;background:#f5f7f2;border-color:#e6ebdf}
.cc-cert-actions a.disabled{opacity:.48;pointer-events:none}
.cc-cert-actions button:disabled{opacity:.45;cursor:default}
.cc-legal-note{display:flex;align-items:flex-start;gap:6px;margin:11px 1px 0;color:#919a91;font-size:9px;line-height:1.6}
.cc-legal-note svg{flex:none;margin-top:1px}

/* ---------------- 历史 ---------------- */
.cc-history-panel{padding:18px 20px 11px}
.cc-history-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px;gap:10px}
.cc-history-heading h2{font-size:14px}
.cc-history-heading>span{color:#8b9784;font-size:11px;font-variant-numeric:tabular-nums}
.cc-history-list{display:flex;flex-direction:column;max-height:420px;overflow:auto}
.cc-history-item{width:100%;display:flex;align-items:center;gap:10px;text-align:left;padding:10px 4px;border:0;border-top:1px solid #f0f1ee;background:transparent;cursor:pointer}
.cc-history-item:first-child{border-top:0}
.cc-history-item:hover{background:#fafbf7}
.cc-history-item.selected{background:#f7f9f4}
.cc-history-file{width:31px;height:31px;border-radius:8px;background:#f0f3ed;color:#829477;display:grid;place-items:center;flex:none}
.cc-history-info{min-width:0;flex:1;display:flex;flex-direction:column;gap:4px}
.cc-history-info b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#4b564d;font-size:11px;font-weight:600}
.cc-history-info small{color:#a0a69f;font-size:9px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cc-history-state{color:#89a172;display:grid;place-items:center;flex:none}
.cc-history-state>span{width:5px;height:5px;border-radius:50%;background:#d3d8d0}
.cc-history-arrow{color:#b1b7b0;flex:none}
.cc-empty{min-height:105px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:6px;color:#a0a89e;font-size:11px;text-align:center;padding:12px}
.cc-empty svg{color:#bdc7b5}
.cc-empty small{font-size:9px;color:#b0b6af}

.cc-footer{display:flex;justify-content:space-between;align-items:center;gap:12px;padding-top:25px;color:#a2aaa2;font-size:9px;letter-spacing:.4px;flex-wrap:wrap}
.cc-footer span:first-child{font-weight:700;letter-spacing:1px;color:#879187}
.cc-footer a{color:#8d9b84;text-decoration:none}

/* ---------------- 支付宝弹窗 ---------------- */
.cc-pay-mask{position:fixed;inset:0;z-index:80;background:rgba(15,23,42,.55);display:flex;align-items:center;justify-content:center;padding:24px}
.cc-pay-card{width:min(360px,92vw);background:#fff;border-radius:12px;overflow:hidden;display:flex;flex-direction:column;align-items:center;box-shadow:0 20px 50px rgba(15,40,80,.28);font-family:"PingFang SC","Noto Sans SC",system-ui,sans-serif}
.cc-pay-brand{align-self:stretch;height:56px;background:#1677ff;color:#fff;display:flex;align-items:center;justify-content:center;gap:8px;font-size:17px;font-weight:650}
.cc-pay-brand span{width:22px;height:22px;border-radius:5px;background:#fff;color:#1677ff;font-size:14px;font-weight:800;display:grid;place-items:center}
.cc-pay-merchant{margin-top:18px;font-size:13px;color:#8c8c8c;text-align:center;line-height:1.5;padding:0 20px}
.cc-pay-title{margin-top:4px;max-width:260px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px;color:#434343}
.cc-pay-amount{margin:8px 0 14px;font-weight:650;color:#141414;letter-spacing:-.6px;font-size:40px}
.cc-pay-amount i{font-style:normal;font-size:20px;margin-right:2px}
.cc-pay-qr{padding:12px;border-radius:10px;border:1px solid #91caff;box-shadow:0 0 0 6px #f0f7ff}
.cc-pay-qr img{display:block;width:196px;height:196px}
.cc-pay-qr p{margin:0;width:196px;height:196px;display:grid;place-items:center;color:#a2564e;font-size:12px}
.cc-pay-scan{align-self:stretch;margin:16px 24px 0;height:40px;border-radius:8px;background:#1677ff;color:#fff;display:flex;align-items:center;justify-content:center;font-size:14px}
.cc-pay-card button{margin:10px 0 14px;border:0;background:transparent;color:#8c8c8c;font-size:13px;cursor:pointer}

/* ---------------- 登录 / 注册 ---------------- */
.cc-auth{flex:1;display:grid;place-items:center;padding:40px 20px}
.cc-auth-card{width:min(410px,100%);background:#fff;border:1px solid #e9ece8;border-radius:16px;box-shadow:0 18px 48px rgba(35,47,38,.07);padding:32px 30px 26px}
.cc-auth-brand{display:flex;align-items:center;gap:10px;margin-bottom:22px}
.cc-auth-brand img{width:36px;height:36px;border-radius:11px;object-fit:cover}
.cc-auth-brand b{font-size:16px;color:#28323c;letter-spacing:-.3px}
.cc-auth-brand small{display:block;margin-top:3px;color:#9aa19c;font-size:9px;letter-spacing:1.4px}
.cc-auth h1{margin:0 0 6px;font-size:21px;letter-spacing:-.6px;color:#26312d;font-weight:700}
.cc-auth p.sub{margin:0 0 20px;color:#8b948d;font-size:12px;line-height:1.7}
.cc-auth .cc-field{margin-bottom:13px}
.cc-auth-switch{margin-top:14px;text-align:center;color:#8b948d;font-size:11.5px}
.cc-auth-switch button{border:0;background:none;color:#5f7a4f;font-size:11.5px;font-weight:650;cursor:pointer;padding:0 2px;text-decoration:underline;text-underline-offset:3px}
.cc-auth-foot{margin-top:18px;padding-top:14px;border-top:1px solid #f0f1ee;color:#a4aaa5;font-size:10px;line-height:1.7;text-align:center}

/* ---------------- 后台 ---------------- */
.cc-admin{display:flex;flex-direction:column;gap:18px}
.cc-tabs{display:flex;gap:6px;flex-wrap:wrap;border-bottom:1px solid #e9ece8;padding-bottom:12px}
.cc-tabs button{border:1px solid transparent;background:none;padding:8px 13px;border-radius:9px;color:#6b766f;font-size:12px;font-weight:600;cursor:pointer}
.cc-tabs button:hover{background:#f3f6f0}
.cc-tabs button.on{background:#eef3e9;border-color:#e2eadd;color:#5d7350}
.cc-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px}
.cc-stat{background:#fff;border:1px solid #e9ece8;border-radius:12px;padding:15px 16px}
.cc-stat small{display:block;color:#9aa19c;font-size:10px;letter-spacing:.4px;margin-bottom:8px}
.cc-stat b{font-size:21px;color:#31413a;font-weight:700;letter-spacing:-.6px;font-variant-numeric:tabular-nums}
.cc-stat i{font-style:normal;font-size:11px;color:#8b9784;margin-left:5px}
.cc-table-wrap{background:#fff;border:1px solid #e9ece8;border-radius:12px;overflow:auto}
table.cc-table{width:100%;border-collapse:collapse;font-size:11.5px;min-width:620px}
table.cc-table th{text-align:left;padding:11px 14px;color:#8b9784;font-weight:650;font-size:10px;letter-spacing:.5px;background:#fafbf8;border-bottom:1px solid #eef0ec;white-space:nowrap}
table.cc-table td{padding:11px 14px;border-bottom:1px solid #f4f5f2;color:#4b564d;vertical-align:middle}
table.cc-table tr:last-child td{border-bottom:0}
table.cc-table td.mono{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:10px;color:#74806f;word-break:break-all}
table.cc-table td.num{font-variant-numeric:tabular-nums;white-space:nowrap}
table.cc-table td.act{white-space:nowrap;text-align:right}
.cc-chip{display:inline-flex;align-items:center;gap:5px;padding:3px 8px;border-radius:20px;font-size:9.5px;font-weight:650;white-space:nowrap}
.cc-chip.ok{background:#f1f5ed;color:#6f8763}
.cc-chip.warn{background:#fbf3e5;color:#937643}
.cc-chip.bad{background:#fcefee;color:#a2564e}
.cc-chip.mute{background:#f2f4f1;color:#8b948d}
.cc-mini{border:1px solid #e1e6df;background:#fff;border-radius:7px;padding:5px 9px;color:#64735f;font-size:10px;cursor:pointer;margin-left:5px}
.cc-mini:hover{border-color:#cbd5c6;color:#46524a}
.cc-mini.primary{background:#eef3e9;border-color:#e0e9d8;color:#5d7350}
.cc-mini.danger{color:#a2564e;border-color:#f3dcda}
.cc-toolbar{display:flex;align-items:flex-end;gap:10px;flex-wrap:wrap;background:#fff;border:1px solid #e9ece8;border-radius:12px;padding:14px 16px}
.cc-toolbar .cc-field{margin:0;min-width:130px;flex:0 1 auto}
.cc-toolbar .cc-field.grow{flex:1 1 180px}
.cc-inline-note{font-size:10px;color:#9aa19c;line-height:1.7;margin:0}
.cc-token-box{margin-top:12px;background:#f7f9f4;border:1px dashed #cfdcc6;border-radius:10px;padding:13px 15px;font-size:11px;color:#54604f;line-height:1.7;word-break:break-all}
.cc-token-box code{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;color:#3f5140;font-size:11px}

/* ---------------- 响应式 ---------------- */
@media(max-width:980px){
  .cc-workspace{grid-template-columns:1fr}
  .cc-main{max-width:720px}
  .cc-side{display:grid;grid-template-columns:1fr 1fr;align-items:start}
  .cc-nav button{padding:7px 9px;font-size:12px}
}
@media(max-width:760px){
  .cc-header{height:58px}
  .cc-header-inner{padding:0 15px;gap:12px}
  .cc-brand{font-size:13px}
  .cc-brand-logo{width:28px;height:28px}
  .cc-price{display:none}
  .cc-account{gap:9px}
  .cc-username{max-width:78px}
  .cc-logout{padding:7px 9px}
  .cc-nav{gap:2px}
  .cc-nav button{padding:7px 8px;font-size:11.5px}
  .cc-main{padding:30px 15px 24px}
  .cc-intro{align-items:flex-start;flex-direction:column;gap:14px}
  .cc-intro h1{font-size:27px}
  .cc-intro p{font-size:12px}
  .cc-intro-badge{padding:9px 12px}
  .cc-workspace{gap:13px}
  .cc-form-panel{padding:19px 16px}
  .cc-side{display:flex;gap:13px}
  .cc-certificate-panel{padding:18px 16px 15px}
  .cc-history-panel{padding:17px 16px 10px}
  .cc-fields{gap:12px 10px;grid-template-columns:1fr}
  .cc-field input{padding:9px}
  .cc-certificate{padding:17px;min-height:277px}
  .cc-footer{padding-top:20px}
  .cc-auth-card{padding:26px 20px 22px}
}
