/* Product Reviews Pro v3 */

.pro-reviews-wrapper,
.pro-reviews-wrapper * { box-sizing: border-box; }

/* 禁止 WooCommerce 原生评论区干扰 */
.woocommerce-Reviews #reviews,
#comments.woocommerce-Reviews { display:none!important; }

.pro-reviews-wrapper {
    --bg:    #0a0a0a;
    --bg2:   #141414;
    --bd:    #252525;
    --tx:    #f0f0f0;
    --mu:    #777;
    --ac:    #f5a623;
    --gr:    #00b67a;
    --tl:    #5bc8b4;
    --re:    #e53935;
    --mbg:   #f5f4f2;
    --font:  -apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;
    background: var(--bg);
    color: var(--tx);
    font-family: var(--font);
    padding: 52px 24px;
    width: 100%;
}

/* ── Title ── */
.pro-title {
    font-size:clamp(1.5rem,3vw,2rem); font-weight:700; text-align:center;
    color:var(--tx); margin:0 0 44px; padding:0; border:none; background:none;
}

/* ── Summary ── */
.pro-summary { display:flex; align-items:center; justify-content:center; gap:56px; margin-bottom:52px; flex-wrap:wrap; }
.pro-summary__score { text-align:center; flex-shrink:0; }
.pro-score-row { display:flex; align-items:baseline; justify-content:center; gap:4px; }
.pro-big-num  { font-size:4.2rem; font-weight:800; color:var(--tx); line-height:1; }
.pro-big-slash{ font-size:1.8rem; font-weight:300; color:var(--mu); }
.pro-stars-lg { margin:10px 0 2px; }
.pro-stars-lg .ps { font-size:1.65rem; line-height:1; }
.ps { line-height:1; }
.pf { color:var(--ac); }
.ph { color:var(--ac); }
.pe { color:#444; }
.pro-count-label { font-size:.85rem; color:var(--mu); margin-top:6px; }

.pro-summary__bars { flex:1; max-width:420px; min-width:240px; }
.pro-bar-row { display:flex; align-items:center; gap:10px; margin-bottom:9px; }
.pro-bar-n   { font-size:.85rem; color:var(--tx); min-width:10px; text-align:right; font-weight:500; }
.pro-bar-ico { font-size:.82rem; color:var(--ac); }
.pro-bar-track { flex:1; height:9px; background:#2a2a2a; border-radius:5px; overflow:hidden; }
.pro-bar-fill  { height:100%; background:var(--ac); border-radius:5px; transition:width .7s cubic-bezier(.4,0,.2,1); }
.pro-bar-pct   { font-size:.82rem; color:var(--mu); min-width:32px; text-align:right; }

/* ── List ── */
.pro-list-wrap { }
.pro-list-hd { display:flex; align-items:center; justify-content:space-between; margin-bottom:8px; }
.pro-list-title { font-size:1.25rem; font-weight:700; color:var(--tx); margin:0; padding:0; border:none; font-family:var(--font); }
.pro-list-cnt { color:var(--mu); font-weight:400; margin-left:6px; font-size:1rem; }
.pro-list-line { height:3px; width:72px; background:var(--gr); border-radius:2px; margin-bottom:26px; }

.pro-write-btn {
    background:transparent; color:var(--tx); border:1.5px solid rgba(255,255,255,.55);
    border-radius:24px; padding:9px 22px; font-size:.88rem; cursor:pointer;
    font-family:var(--font); transition:background .2s,color .2s;
}
.pro-write-btn:hover { background:var(--tx); color:var(--bg); }

/* ── Toolbar ── */
.pro-toolbar { display:flex; gap:12px; flex-wrap:wrap; align-items:center; margin-bottom:30px; }
.pro-search-box {
    display:flex; align-items:center; gap:8px; flex:1; min-width:180px;
    background:var(--bg2); border:1px solid var(--bd); border-radius:24px; padding:9px 18px;
    color:var(--mu);
}
.pro-search-inp { background:transparent; border:none; outline:none; color:var(--tx); font-size:.88rem; width:100%; font-family:var(--font); }
.pro-search-inp::placeholder { color:var(--mu); }
.pro-toolbar-right { display:flex; gap:10px; flex-wrap:wrap; align-items:center; }
.pro-sel-wrap { position:relative; }
.pro-sel {
    appearance:none; -webkit-appearance:none;
    background:var(--bg2); border:1px solid var(--bd); color:var(--tx);
    border-radius:24px; padding:9px 34px 9px 16px; font-size:.86rem;
    cursor:pointer; font-family:var(--font);
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23888'/%3E%3C/svg%3E");
    background-repeat:no-repeat; background-position:right 13px center;
}
.pro-sel:focus { outline:none; border-color:var(--ac); }
.pro-media-tag {
    background:var(--bg2); border:1px solid var(--bd); color:var(--tx);
    border-radius:24px; padding:9px 16px; font-size:.86rem; cursor:pointer; font-family:var(--font);
    transition:border-color .15s,color .15s;
}
.pro-media-tag.is-on { border-color:var(--ac); color:var(--ac); }

/* ── Review items ── */
.pro-review-item { padding:26px 0; border-bottom:1px solid var(--bd); }
.pro-review-item:last-child { border-bottom:none; }
.pro-review-top { display:flex; justify-content:space-between; align-items:flex-start; margin-bottom:10px; }
.pro-r-stars { display:flex; gap:2px; }
.pro-r-stars .ps { font-size:1.05rem; }
.pro-r-date { font-size:.8rem; color:var(--mu); }
.pro-r-author { font-size:.9rem; font-weight:600; color:var(--tx); margin-bottom:5px; display:flex; align-items:center; gap:7px; flex-wrap:wrap; }
.pro-verified-badge { display:inline-flex; align-items:center; gap:4px; color:var(--gr); font-size:.78rem; font-weight:500; }
.pro-v-icon { width:15px; height:15px; background:var(--gr); color:#fff; border-radius:50%; display:inline-flex; align-items:center; justify-content:center; font-size:9px; font-weight:700; }
.pro-r-body { font-size:.93rem; line-height:1.7; color:#ccc; margin-bottom:10px; }
.pro-r-photo { width:88px; height:88px; object-fit:cover; border-radius:8px; border:1px solid var(--bd); cursor:pointer; transition:opacity .2s; margin-top:8px; }
.pro-r-photo:hover { opacity:.8; }

/* ── Merchant reply ── */
.pro-reply-block {
    margin-top:14px; margin-left:20px;
    padding:14px 18px;
    background:#1a1a1a;
    border-left:3px solid var(--ac);
    border-radius:0 8px 8px 0;
}
.pro-reply-meta { font-size:.82rem; color:var(--mu); margin-bottom:6px; }
.pro-reply-meta strong { color:var(--tx); }
.pro-reply-body { font-size:.9rem; line-height:1.6; color:#bbb; }

/* Admin reply button (frontend, only visible to admins) */
.pro-admin-reply-btn {
    margin-top:10px; background:transparent; border:1px dashed var(--bd);
    color:var(--mu); border-radius:6px; padding:5px 12px; font-size:.8rem;
    cursor:pointer; font-family:var(--font); transition:border-color .15s,color .15s;
}
.pro-admin-reply-btn:hover { border-color:var(--ac); color:var(--ac); }

.pro-inline-reply { margin-top:10px; display:none; }
.pro-inline-reply textarea {
    width:100%; background:var(--bg2); border:1px solid var(--bd); color:var(--tx);
    border-radius:8px; padding:10px 12px; font-size:.88rem; font-family:var(--font);
    resize:vertical; min-height:72px;
}
.pro-inline-reply textarea:focus { outline:none; border-color:var(--ac); }
.pro-inline-reply-row { display:flex; gap:8px; margin-top:8px; align-items:center; }
.pro-inline-submit {
    background:var(--ac); color:#000; border:none; border-radius:6px;
    padding:7px 16px; font-size:.85rem; font-weight:600; cursor:pointer; font-family:var(--font);
}
.pro-inline-submit:hover { background:#d4891c; }
.pro-inline-cancel { background:transparent; border:1px solid var(--bd); color:var(--mu); border-radius:6px; padding:7px 12px; font-size:.85rem; cursor:pointer; font-family:var(--font); }
.pro-reply-msg { font-size:.82rem; }

/* ── Spinner / empty ── */
.pro-spinner,.pro-empty { text-align:center; color:var(--mu); padding:48px 0; font-size:.95rem; }

/* ── Pagination ── */
.pro-pager { display:flex; justify-content:center; gap:6px; padding:36px 0 8px; flex-wrap:wrap; }
.pro-pg {
    background:transparent; border:1px solid var(--bd); color:var(--tx);
    border-radius:7px; padding:7px 13px; font-size:.85rem; cursor:pointer; font-family:var(--font);
    transition:border-color .15s,background .15s; min-width:36px;
}
.pro-pg:hover:not(:disabled) { border-color:var(--ac); }
.pro-pg.on { background:var(--ac); border-color:var(--ac); color:#000; font-weight:700; }
.pro-pg:disabled { opacity:.3; cursor:default; }

/* ── Modal ── */
.pro-overlay {
    position:fixed; inset:0; background:rgba(0,0,0,.78);
    z-index:999999; display:flex; align-items:center; justify-content:center; padding:16px;
}
.pro-modal {
    background:var(--mbg); border-radius:16px; padding:36px 40px;
    max-width:560px; width:100%; max-height:92vh; overflow-y:auto;
    position:relative; color:#1a1a1a; font-family:var(--font);
    box-shadow:0 24px 80px rgba(0,0,0,.5);
}
.pro-modal-x { position:absolute; top:14px; right:18px; background:transparent; border:none; font-size:1.8rem; color:#999; cursor:pointer; line-height:1; }
.pro-modal-x:hover { color:#333; }
.pro-modal-prod { display:flex; align-items:center; gap:16px; margin-bottom:22px; }
.pro-modal-thumb { width:72px; height:72px; object-fit:cover; border-radius:8px; border:1px solid #ddd; }
.pro-modal-pname { font-size:1.05rem; font-weight:600; color:#1a1a1a; line-height:1.3; }

.pro-pick-row { display:flex; justify-content:center; gap:14px; margin-bottom:22px; }
.pro-pick { font-size:2.4rem; color:#ddd; cursor:pointer; transition:color .12s,transform .1s; user-select:none; }
.pro-pick.hov,.pro-pick.sel { color:var(--ac); }
.pro-pick:hover { transform:scale(1.18); }

.pro-form { display:flex; flex-direction:column; }
.pro-lbl { font-size:.87rem; font-weight:600; color:#333; margin:14px 0 4px; display:block; }
.pro-req { color:var(--re); }
.pro-inp,.pro-txt {
    width:100%; border:1px solid #ddd; border-radius:8px; padding:12px 14px;
    font-size:.93rem; color:#1a1a1a; font-family:var(--font); background:#fff;
    transition:border-color .2s,box-shadow .2s;
}
.pro-inp:focus,.pro-txt:focus { outline:none; border-color:var(--ac); box-shadow:0 0 0 3px rgba(245,166,35,.18); }
.pro-txt { resize:vertical; min-height:96px; }
.pro-photo-area { margin-top:18px; }
.pro-photo-tip { font-size:.83rem; color:#666; margin:0 0 10px; line-height:1.5; }
.pro-upload-lbl { display:inline-block; cursor:pointer; background:#fff; border:1.5px dashed #ccc; border-radius:8px; padding:9px 18px; font-size:.85rem; color:#555; transition:border-color .2s,color .2s; }
.pro-upload-lbl:hover { border-color:var(--ac); color:var(--ac); }
.pro-photo-prev { position:relative; display:inline-block; margin-top:10px; }
.pro-photo-prev img { width:100px; height:100px; object-fit:cover; border-radius:8px; border:1px solid #ddd; }
.pro-photo-rm { position:absolute; top:-8px; right:-8px; background:var(--re); color:#fff; border:none; border-radius:50%; width:22px; height:22px; font-size:1rem; cursor:pointer; line-height:1; display:flex; align-items:center; justify-content:center; }
.pro-msg { padding:11px 14px; border-radius:8px; font-size:.88rem; margin-top:10px; }
.pro-msg.ok  { background:#e8f5e9; color:#2e7d32; border:1px solid #c8e6c9; }
.pro-msg.err { background:#ffebee; color:#c62828; border:1px solid #ffcdd2; }
.pro-submit {
    background:var(--tl); color:#fff; border:none; border-radius:30px; padding:14px; width:100%;
    font-size:1rem; font-weight:600; cursor:pointer; font-family:var(--font); margin-top:18px;
    transition:background .2s,transform .1s; letter-spacing:.4px;
}
.pro-submit:hover { background:#4ab0a0; }
.pro-submit:disabled { background:#aaa; cursor:not-allowed; }
.pro-submit:active { transform:scale(.98); }

@media(max-width:640px){
    .pro-reviews-wrapper{padding:36px 16px;}
    .pro-summary{gap:24px;}
    .pro-summary__bars{max-width:100%;width:100%;}
    .pro-big-num{font-size:3.2rem;}
    .pro-modal{padding:28px 20px;}
    .pro-list-hd{flex-wrap:wrap;gap:12px;}
}

/* ── Show more button ─────────────────────────────────────── */
.pro-show-more {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 36px 0 12px;
}
.pro-show-more-btn {
    background: transparent;
    color: var(--tx);
    border: 1.5px solid rgba(255,255,255,.45);
    border-radius: 30px;
    padding: 13px 40px;
    font-size: .95rem;
    font-weight: 500;
    cursor: pointer;
    font-family: var(--font);
    letter-spacing: .5px;
    transition: background .2s, color .2s, border-color .2s, transform .1s;
    min-width: 160px;
}
.pro-show-more-btn:hover {
    background: rgba(255,255,255,.08);
    border-color: rgba(255,255,255,.8);
}
.pro-show-more-btn:active   { transform: scale(.97); }
.pro-show-more-btn:disabled,
.pro-show-more-btn.is-loading {
    opacity: .6;
    cursor: default;
    transform: none;
}
/* 加载中旋转动画 */
.pro-show-more-btn.is-loading::after {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: pro-spin .6s linear infinite;
    margin-left: 8px;
    vertical-align: middle;
}
@keyframes pro-spin {
    to { transform: rotate(360deg); }
}
.pro-remaining {
    font-size: .8rem;
    color: var(--mu);
    letter-spacing: .3px;
}

/* ════════════════════════════════════════════════════════════
   全站评论页 .pro-all-reviews-wrapper
════════════════════════════════════════════════════════════ */
.pro-all-reviews-wrapper {
    --bg:   #0a0a0a;
    --bg2:  #141414;
    --bd:   #252525;
    --tx:   #f0f0f0;
    --mu:   #777;
    --ac:   #f5a623;
    --gr:   #00b67a;
    --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background:  var(--bg);
    color:       var(--tx);
    font-family: var(--font);
    padding:     60px 24px 40px;
    max-width:   900px;
    margin:      0 auto;
}

/* 标题 */
.pro-ar-title {
    font-size: clamp(1.8rem, 3.5vw, 2.4rem);
    font-weight: 700;
    text-align: center;
    color: var(--tx);
    margin: 0 0 36px;
    padding: 0;
    border: none;
    background: none;
}

/* 综合评分 */
.pro-ar-summary {
    text-align: center;
    margin-bottom: 48px;
}
.pro-ar-score-row {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 6px;
    margin-bottom: 10px;
}
.pro-ar-big-num { font-size: 4rem; font-weight: 800; line-height: 1; color: var(--tx); }
.pro-ar-slash   { font-size: 1.8rem; font-weight: 300; color: var(--mu); }
.pro-ar-stars   { margin-bottom: 8px; }
.pro-ar-stars .ps { font-size: 1.5rem; }
.pro-ar-count   { font-size: .9rem; color: var(--mu); }

/* 工具栏 */
.pro-ar-toolbar {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 32px;
}
.pro-ar-search-box {
    display: flex; align-items: center; gap: 8px;
    flex: 1; min-width: 200px;
    background: var(--bg2); border: 1px solid var(--bd);
    border-radius: 24px; padding: 10px 18px;
    color: var(--mu);
}
.pro-ar-search-inp {
    background: transparent; border: none; outline: none;
    color: var(--tx); font-size: .88rem; width: 100%;
    font-family: var(--font);
}
.pro-ar-search-inp::placeholder { color: var(--mu); }
.pro-ar-toolbar-right { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* 评论列表 */
.pro-ar-list { }

/* 单条评论 */
.pro-ar-item {
    padding: 28px 0;
    border-bottom: 1px solid var(--bd);
}
.pro-ar-item:last-child { border-bottom: none; }

/* 顶部：星星 + 日期 */
.pro-ar-item-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}
.pro-ar-item-stars { display: flex; gap: 2px; }
.pro-ar-item-stars .ps { font-size: 1.1rem; }
.pro-ar-item-date { font-size: .8rem; color: var(--mu); }

/* 标题（评论 subject，若有）*/
.pro-ar-item-subject {
    font-size: 1rem;
    font-weight: 700;
    color: var(--tx);
    margin-bottom: 6px;
}

/* 作者行 */
.pro-ar-item-author {
    font-size: .88rem;
    color: var(--tx);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}
.pro-ar-item-author strong { font-weight: 600; }

/* 购买时间 */
.pro-ar-purchased {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: .78rem; color: var(--mu);
}
.pro-ar-purchased svg { opacity: .6; }

/* 评论正文 */
.pro-ar-item-body {
    font-size: .93rem;
    line-height: 1.7;
    color: #ccc;
    margin-bottom: 12px;
}

/* 产品卡片 */
.pro-ar-product-card {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--bg2);
    border: 1px solid var(--bd);
    border-radius: 10px;
    padding: 10px 14px;
    text-decoration: none;
    transition: border-color .15s;
    max-width: 320px;
    margin-top: 4px;
}
.pro-ar-product-card:hover { border-color: #444; }
.pro-ar-product-thumb {
    width: 52px; height: 52px;
    object-fit: cover;
    border-radius: 6px;
    background: #1e1e1e;
    flex-shrink: 0;
}
.pro-ar-product-thumb-placeholder {
    width: 52px; height: 52px;
    background: var(--bg2);
    border-radius: 6px;
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
}
.pro-ar-product-info { min-width: 0; }
.pro-ar-product-name {
    font-size: .85rem;
    font-weight: 600;
    color: var(--tx);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
    display: block;
}
.pro-ar-product-meta {
    font-size: .78rem;
    color: var(--mu);
    margin-top: 3px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.pro-ar-product-meta .ps { font-size: .78rem; }
.pro-ar-product-arrow {
    margin-left: auto;
    color: var(--mu);
    font-size: .9rem;
    flex-shrink: 0;
}

/* 已验证 */
.pro-ar-verified {
    display: inline-flex; align-items: center; gap: 4px;
    color: var(--gr); font-size: .78rem; font-weight: 500;
}
.pro-ar-v-icon {
    width: 14px; height: 14px;
    background: var(--gr); color: #fff;
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 8px; font-weight: 700;
}

/* 图片 */
.pro-ar-photo {
    width: 80px; height: 80px;
    object-fit: cover; border-radius: 8px;
    border: 1px solid var(--bd);
    margin-top: 10px; cursor: pointer;
    transition: opacity .2s;
}
.pro-ar-photo:hover { opacity: .8; }

/* 商家回复 */
.pro-ar-reply {
    margin-top: 14px; margin-left: 20px;
    padding: 13px 16px;
    background: #1a1a1a;
    border-left: 3px solid var(--ac);
    border-radius: 0 8px 8px 0;
}
.pro-ar-reply-meta { font-size: .8rem; color: var(--mu); margin-bottom: 5px; }
.pro-ar-reply-meta strong { color: var(--tx); }
.pro-ar-reply-body { font-size: .88rem; line-height: 1.6; color: #bbb; }

/* 空态 */
.pro-ar-empty { text-align:center; color:var(--mu); padding:48px 0; font-size:.95rem; }

@media (max-width: 640px) {
    .pro-all-reviews-wrapper { padding: 36px 16px; }
    .pro-ar-big-num { font-size: 3rem; }
    .pro-ar-product-card { max-width: 100%; }
}

/* ════════════════════════════════════════════════════════════
   评分徽章 .pro-badge-wrap
════════════════════════════════════════════════════════════ */
.pro-badge-wrap {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #111;
    border: 1px solid #2a2a2a;
    border-radius: 40px;
    padding: 10px 18px 10px 14px;
    flex-wrap: wrap;
}
.pro-badge-stars { display: flex; gap: 2px; }
.pro-badge-stars .ps { font-size: 1.15rem; }
.pro-badge-score {
    font-size: .88rem;
    color: #ccc;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    white-space: nowrap;
}
.pro-badge-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #1e1e1e;
    border: 1px solid #333;
    color: #f0f0f0;
    border-radius: 20px;
    padding: 6px 14px;
    font-size: .82rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: background .2s, border-color .2s;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.pro-badge-link:hover { background: #2a2a2a; border-color: #555; color: #fff; }

/* 浅色背景下的徽章变体 */
.pro-badge-wrap.light {
    background: #fff;
    border-color: #e0e0e0;
}
.pro-badge-wrap.light .pro-badge-score { color: #555; }
.pro-badge-wrap.light .pro-badge-link  { background: #f5f5f5; border-color: #ddd; color: #333; }
