.workshop-rating-summary-top{width:calc(100% - 32px);margin:12px 16px 0;padding:12px 14px;display:flex;align-items:center;gap:8px;border:1px solid color-mix(in srgb,#f3a62f 28%,var(--border-light));border-radius:14px;background:linear-gradient(135deg,rgba(243,166,47,.13),var(--bg-card));color:var(--text-main);text-align:left;cursor:pointer}
.workshop-rating-summary-score{font-size:23px;font-weight:850;color:#d88712}.workshop-rating-summary-top .workshop-stars{font-size:17px}.workshop-rating-summary-count{font-size:12px;color:var(--text-sub)}.workshop-rating-summary-arrow{margin-left:auto;font-size:24px;color:var(--text-time)}
.workshop-rating-panel{margin:12px 0 0;padding:14px;border:1px solid var(--border-light);border-radius:16px;background:var(--bg-card)}
.workshop-rating-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.workshop-rating-heading{min-width:0;display:flex;flex-direction:column;gap:3px}.workshop-rating-title{font-size:16px;font-weight:800;color:var(--text-main)}
.workshop-rating-inline-summary{display:flex;align-items:center;gap:6px;min-width:0;color:var(--text-sub);font-size:11px}.workshop-rating-inline-summary strong{color:#d88712;font-size:17px;line-height:1}.workshop-rating-inline-summary .workshop-stars{font-size:12px;letter-spacing:0}.workshop-rating-inline-summary>span:last-child{white-space:nowrap}
.workshop-stars{display:inline-flex;gap:2px;color:#f3a62f;font-size:21px;letter-spacing:1px}.workshop-stars button{border:0;background:transparent;color:#f3a62f;font-size:30px;padding:2px;cursor:pointer}
.workshop-rating-meta{font-size:12px;color:var(--text-sub);margin-top:4px}.workshop-rating-action{flex:none;white-space:nowrap;border:0;border-radius:11px;background:var(--primary);color:#fff;padding:9px 13px;font-weight:700;cursor:pointer}
.workshop-rating-list{margin-top:13px;display:flex;flex-direction:column;gap:10px}.workshop-rating-empty{padding:26px 10px;text-align:center;color:var(--text-time);font-size:12px}.workshop-evaluation{padding:12px;border:1px solid var(--border-light);border-radius:14px;background:var(--active-bg)}
.workshop-evaluation-head{display:flex;justify-content:space-between;align-items:flex-start;gap:8px}.workshop-evaluation-user{min-width:0;display:flex;align-items:center;gap:9px;padding:0;border:0;background:transparent;color:var(--text-main);text-align:left;cursor:pointer}.workshop-evaluation-user img{width:36px;height:36px;border-radius:50%;object-fit:cover;background:var(--bg-card)}.workshop-evaluation-user span{min-width:0;display:flex;flex-direction:column;gap:3px}.workshop-evaluation-user strong{max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}.workshop-evaluation-user small{font-size:10px;color:var(--text-time);font-weight:400}.workshop-evaluation-stars{flex:none;font-size:13px}
.workshop-evaluation-text{margin:10px 0 0 45px;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6;font-size:13px}.workshop-evaluation-reply{margin:8px 0 0 45px;padding:0;border:0;background:transparent;color:var(--primary);font-size:12px;cursor:pointer}
.workshop-replies-toggle{margin:9px 0 0 45px;padding:5px 0;border:0;background:transparent;color:var(--primary);display:inline-flex;align-items:center;gap:4px;font-size:11px;font-weight:650;cursor:pointer}.workshop-replies-toggle svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;transition:transform .2s ease}.workshop-replies-toggle.is-expanded svg{transform:rotate(180deg)}
.workshop-evaluation-replies{margin:7px 0 0 45px;padding:9px;border-radius:11px;background:var(--bg-card);font-size:12px;animation:workshopRepliesIn .2s ease}.workshop-evaluation-replies[hidden]{display:none!important}@keyframes workshopRepliesIn{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}.workshop-reply-item{display:flex;gap:8px}.workshop-reply-item+.workshop-reply-item{margin-top:10px;padding-top:10px;border-top:1px solid var(--border-light)}.workshop-reply-item>img{width:28px;height:28px;border-radius:50%;object-fit:cover;cursor:pointer}.workshop-reply-item>div{min-width:0;flex:1}.workshop-reply-item button{padding:0;border:0;background:transparent;color:var(--primary);font-size:11px;cursor:pointer}.workshop-reply-item div>div>button{color:var(--text-main);font-weight:700;font-size:12px}.workshop-reply-item em{color:var(--primary);font-style:normal}.workshop-reply-item time{margin-left:7px;color:var(--text-time);font-size:10px}.workshop-reply-item p{margin:4px 0;line-height:1.55;color:var(--text-sub);white-space:pre-wrap;overflow-wrap:anywhere}
.workshop-feature-modal{position:fixed;inset:0;z-index:3000;display:none;align-items:flex-end;background:rgba(0,0,0,.52);backdrop-filter:blur(3px)}.workshop-feature-modal.active{display:flex}.workshop-feature-sheet{width:100%;max-height:86vh;overflow:auto;padding:18px 16px calc(18px + env(safe-area-inset-bottom));border-radius:22px 22px 0 0;background:var(--bg-card);box-shadow:0 -18px 50px rgba(0,0,0,.18)}
.workshop-feature-title{font-size:18px;font-weight:800}.workshop-feature-context{margin-top:7px;padding:9px 11px;border-radius:10px;background:var(--active-bg);color:var(--text-sub);font-size:12px;line-height:1.55}.workshop-feature-sheet>.workshop-stars{margin-top:13px}.workshop-feature-textarea{box-sizing:border-box;width:100%;min-height:105px;margin-top:13px;padding:12px;border:1px solid var(--border-light);border-radius:12px;background:var(--bg-body);color:var(--text-main);resize:vertical;outline:none}.workshop-feature-textarea:focus{border-color:var(--primary);box-shadow:0 0 0 3px color-mix(in srgb,var(--primary) 12%,transparent)}
.workshop-feature-actions{display:flex;gap:10px;margin-top:14px}.workshop-feature-actions button{flex:1;border:0;border-radius:12px;padding:12px;font-weight:700;cursor:pointer}.workshop-feature-cancel{background:var(--active-bg);color:var(--text-main)}.workshop-feature-submit{background:var(--primary);color:#fff}
.detail-btn-trial{background:color-mix(in srgb,var(--primary) 12%,var(--bg-card))!important;color:var(--primary)!important;border:1px solid color-mix(in srgb,var(--primary) 25%,transparent)!important}.detail-btn-trial svg{stroke:currentColor;fill:none;stroke-linecap:round;stroke-linejoin:round}.workshop-access-note{margin:8px 0;padding:9px 12px;border-radius:11px;background:rgba(243,166,47,.13);color:#c67908;font-size:12px;font-weight:700}
.daily-recommendation-card{position:relative}.daily-recommendation-card::before{content:"每日推荐";position:absolute;z-index:3;top:8px;left:8px;padding:3px 8px;border-radius:999px;background:rgba(20,20,20,.72);color:#fff;font-size:9px;font-weight:750;backdrop-filter:blur(6px)}
.ranking-controls{position:absolute;right:14px;top:12px;z-index:3;display:flex;flex-direction:column;align-items:flex-end;gap:6px}.ranking-control-group{display:grid;grid-template-columns:repeat(2,1fr);padding:3px;border:1px solid var(--border-light);border-radius:11px;background:color-mix(in srgb,var(--bg-card) 92%,transparent);box-shadow:0 4px 12px rgba(0,0,0,.05);backdrop-filter:blur(8px)}.ranking-control{min-width:43px;border:0;border-radius:8px;padding:5px 8px;background:transparent;color:var(--text-sub);font-size:10px;font-weight:700;white-space:nowrap;cursor:pointer}.ranking-control.active{background:var(--primary);color:#fff}.ranking-hero .ranking-title{max-width:calc(100% - 118px);align-items:flex-start}.ranking-hero .ranking-subtitle{max-width:calc(100% - 118px);min-height:44px}
.ranking-period-line{display:inline-flex;align-items:center;gap:6px;margin-top:3px}.ranking-month-picker{position:relative;display:inline-flex;align-items:center;max-width:120px;border:1px solid color-mix(in srgb,var(--primary) 28%,var(--border-light));border-radius:999px;background:color-mix(in srgb,var(--primary) 8%,var(--bg-card));color:var(--primary);overflow:hidden}.ranking-month-picker select{width:100%;min-height:27px;padding:3px 25px 3px 9px;border:0;outline:0;background:transparent;color:inherit;font:inherit;font-size:10px;font-weight:750;appearance:none;-webkit-appearance:none}.ranking-month-picker svg{position:absolute;right:7px;width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:2;pointer-events:none}
.workshop-trial-banner{position:fixed;left:50%;top:calc(10px + env(safe-area-inset-top));z-index:9999;transform:translateX(-50%);max-width:calc(100vw - 24px);padding:8px 13px;border-radius:999px;background:rgba(20,20,20,.86);color:#fff;font-size:11px;box-shadow:0 6px 20px rgba(0,0,0,.2);pointer-events:none}
.workshop-rights-box{margin:12px 0;padding:12px;border:1px solid color-mix(in srgb,var(--primary) 22%,var(--border-light));border-radius:15px;background:linear-gradient(145deg,var(--bg-card),color-mix(in srgb,var(--primary) 5%,var(--bg-card)))}.workshop-right-row{position:relative;display:flex;align-items:center;gap:12px;margin-top:9px;padding:11px;border:1px solid var(--border-light);border-radius:12px;background:var(--active-bg);cursor:pointer;overflow:hidden}.workshop-right-row:first-child{margin-top:0}.workshop-right-row>span{min-width:0;flex:1;display:flex;flex-direction:column;gap:2px;pointer-events:none}.workshop-right-row strong{font-size:13px}.workshop-right-row small{font-size:10px;color:var(--text-sub)}.workshop-right-row input{position:absolute;inset:0;z-index:2;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}.workshop-right-row i{position:relative;width:42px;height:24px;border-radius:999px;background:var(--text-time);transition:.2s;flex:none;pointer-events:none}.workshop-right-row i::after{content:"";position:absolute;left:3px;top:3px;width:18px;height:18px;border-radius:50%;background:#fff;box-shadow:0 1px 5px rgba(0,0,0,.2);transition:.2s}.workshop-right-row input:checked+i{background:var(--primary)}.workshop-right-row input:checked+i::after{transform:translateX(18px)}.workshop-right-row input:focus-visible+i{outline:2px solid var(--primary);outline-offset:2px}.workshop-right-row.compact{padding:9px}.workshop-paid-options{margin-top:10px;padding:10px;border-radius:12px;background:color-mix(in srgb,var(--primary) 9%,var(--bg-card))}
@media(min-width:600px){.workshop-feature-modal{align-items:center;justify-content:center}.workshop-feature-sheet{max-width:390px;border-radius:22px}}
.workshop-community-actions{display:flex;align-items:center;gap:14px;margin-top:8px}
.workshop-community-actions button{border:0;background:transparent;color:var(--text-sub);font-size:12px;padding:2px;cursor:pointer}
.workshop-author-badge{display:inline-block;margin-left:5px;padding:1px 5px;border-radius:7px;background:#ffecb8;color:#9b6500;font-size:9px;font-style:normal;vertical-align:1px}
.workshop-author-note{display:flex;gap:10px;margin:0;padding:12px 0;border:0;border-bottom:1px solid var(--border-light);border-radius:0;background:transparent;box-shadow:none}
.workshop-author-note>.comment-avatar{width:34px;height:34px;flex:0 0 34px;border-radius:50%;background-size:cover;background-position:center}
.workshop-author-note>.comment-content{min-width:0;flex:1}
.workshop-author-note .comment-name{display:flex;align-items:center;gap:5px;font-size:13px;font-weight:700}
.workshop-author-note .comment-text{margin-top:7px;white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;line-height:1.62;color:var(--text-main)}
.workshop-author-note .comment-actions-row{display:flex;align-items:center;gap:18px;margin-top:9px;color:var(--text-time)}
.workshop-author-note .comment-action-btn{font-size:12px;color:var(--text-time)}
.workshop-author-note-like{pointer-events:none}
.workshop-author-note-like svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7}
.workshop-author-note-replies{margin-top:8px}
.workshop-author-note-replies .comment-reply-item:last-child{border-bottom:0}
.workshop-pinned-label{display:inline-flex;margin-left:5px;padding:1px 6px;border-radius:999px;background:color-mix(in srgb,var(--primary) 12%,transparent);color:var(--primary);font-size:9px;font-weight:700;vertical-align:1px}
.workshop-rating-panel>.workshop-author-note{order:-1;margin:0 0 12px;padding:12px 0}
.workshop-free-comment-section{margin-top:12px!important;padding:14px!important;border:1px solid var(--border-light)!important;border-radius:16px!important;background:var(--bg-card)!important}
.workshop-free-comment-section .detail-section-title{display:flex;align-items:center;gap:7px;font-size:16px!important;font-weight:800!important}
.workshop-free-comment-section .detail-section-title::after{content:"无需体验门槛";padding:2px 7px;border-radius:999px;background:color-mix(in srgb,var(--primary) 10%,transparent);color:var(--primary);font-size:9px;font-weight:700}
.workshop-free-comment-section .comment-list-area{margin-top:10px}
.workshop-free-comment-section .comment-item{padding:12px 0;border-bottom:1px solid var(--border-light)}
.workshop-free-comment-section .comment-item:last-child{border-bottom:0}
.workshop-free-comment-bar{margin-top:10px!important;border:1px solid var(--border-light)!important;border-radius:14px!important;background:var(--bg-card)!important;box-shadow:0 8px 24px rgba(25,42,80,.06)}
@media(max-width:420px){.workshop-rating-panel{padding:12px}.workshop-rating-head{align-items:stretch;flex-direction:column}.workshop-rating-action{align-self:flex-start}.workshop-evaluation-text,.workshop-replies-toggle,.workshop-evaluation-replies{margin-left:0}.workshop-evaluation-stars{font-size:12px}}

/* 工坊评价、作者寄语和自由评论补充样式 */
.workshop-rating-panel,
.workshop-evaluation,
.workshop-evaluation-head,
.workshop-evaluation-user,
.workshop-evaluation-user span,
.workshop-reply-item,
.workshop-reply-item>div,
.workshop-author-note,
.workshop-author-note>.comment-content { box-sizing:border-box; min-width:0; }
.workshop-evaluation-text,
.workshop-reply-item p,
.workshop-author-note .comment-text {
    max-width:100%;
    overflow-wrap:anywhere;
    word-break:break-word;
}
.workshop-community-actions {
    flex-wrap:wrap;
    gap:6px 14px;
    min-width:0;
}
.workshop-community-actions button {
    min-height:24px;
    line-height:1.4;
}
.workshop-delete-action { color:var(--danger)!important; }
.workshop-ratings-more {
    width:100%;
    padding:9px 12px;
    border:1px solid color-mix(in srgb,var(--primary) 20%,var(--border-light));
    border-radius:11px;
    background:color-mix(in srgb,var(--primary) 7%,var(--bg-card));
    color:var(--primary);
    font-size:12px;
    font-weight:700;
    cursor:pointer;
    transition:transform .15s ease,background .2s ease;
}
.workshop-ratings-more:active { transform:scale(.985); }
.workshop-rating-panel .member-pro,
.workshop-author-note .member-pro {
    color:#a86f12!important;
    background:none!important;
    text-shadow:none!important;
    filter:none!important;
    -webkit-text-fill-color:#a86f12!important;
}
.workshop-rating-panel .member-max,
.workshop-author-note .member-max {
    color:#9B59B6!important;
    background:none!important;
    -webkit-background-clip:border-box;
    background-clip:border-box;
    -webkit-text-fill-color:#9B59B6!important;
}
.workshop-reply-item time { display:inline-block; }
.workshop-free-comment-bar { box-sizing:border-box; }

@media(min-width:760px) {
    .workshop-rating-panel { padding:18px; }
    .workshop-evaluation { padding:14px; }
}

@media(max-width:420px) {
    .workshop-rating-summary-top { width:calc(100% - 24px); margin-left:12px; margin-right:12px; }
    .workshop-rating-inline-summary { flex-wrap:wrap; }
    .workshop-evaluation-user strong { max-width:calc(100vw - 155px); }
    .workshop-evaluation-replies { padding:8px; }
    .workshop-reply-item { gap:7px; }
    .workshop-reply-item>img { width:26px; height:26px; }
    .workshop-community-actions { gap:5px 12px; }
    .workshop-author-note { gap:8px; }
    .workshop-free-comment-section { padding:12px!important; }
}

/* V6：评价与回复在窄屏上保持完整，不让昵称、正文和操作栏相互挤压。 */
.workshop-evaluation,
.workshop-author-note {
    overflow:hidden;
}
.workshop-evaluation-user strong,
.workshop-author-note .comment-name {
    overflow:hidden;
    text-overflow:ellipsis;
}
.workshop-evaluation-text,
.workshop-author-note .comment-text,
.workshop-reply-item p {
    line-height:1.65;
}
.workshop-evaluation-replies {
    border:1px solid var(--border-light);
}
.workshop-community-actions button,
.workshop-evaluation-reply {
    min-height:28px;
    border-radius:8px;
    transition:color .16s ease,background .16s ease;
}
@media(hover:hover) {
    .workshop-community-actions button:hover,
    .workshop-evaluation-reply:hover {
        color:var(--primary);
        background:color-mix(in srgb,var(--primary) 8%,transparent);
    }
}
@media(max-width:420px) {
    .workshop-evaluation,
    .workshop-author-note { border-radius:12px; }
    .workshop-evaluation-user { max-width:100%; }
    .workshop-evaluation-user strong { max-width:calc(100vw - 148px); }
    .workshop-evaluation-text,
    .workshop-evaluation-reply,
    .workshop-replies-toggle,
    .workshop-evaluation-replies { margin-left:0; }
}
