/*
 * Reviews Page Styles
 * 仅在评价页面加载，减少其他页面 CSS 体积
 *
 * @package Shop001
 */

/* ─── Rating Overview Section ─── */
.rv-overview {
  background: linear-gradient(135deg, #fafafa 0%, #f5f3f0 100%);
  border-bottom: 1px solid #e8e4df;
  padding: 4rem 0;
}
.rv-overview-grid {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 3rem;
  align-items: center;
}
.rv-score-block {
  display: flex; flex-direction: column; gap: 0.8rem;
}
.rv-score-heading {
  font-size: 1.5rem; font-weight: 700; color: var(--secondary-color);
  text-transform: uppercase; letter-spacing: 0.08em;
}
.rv-score-row {
  display: flex; align-items: center; gap: 1.8rem;
}
.rv-big-score {
  font-size: 6rem; font-weight: 900; color: var(--secondary-color);
  line-height: 1; letter-spacing: -0.02em;
}
.rv-score-meta { display: flex; flex-direction: column; gap: 0.4rem; }
.rv-big-stars { font-size: 2.2rem; display: flex; gap: 0.2rem; }
.rv-big-stars i.fas,
.rv-big-stars i.fa-star-half-alt { color: #f5a623 !important; }
.rv-big-stars i.far { color: #d4d0cb !important; }
.rv-score-label { font-size: 1.4rem; color: var(--base-color); font-weight: 500; }
.rv-score-label strong { color: var(--secondary-color); font-weight: 700; }

.rv-tagline-block {
  text-align: center; padding: 0 2rem;
  border-left: 2px solid #e0dcd6; border-right: 2px solid #e0dcd6;
}
.rv-tagline-text {
  font-size: 1.5rem; color: var(--base-color);
  font-style: italic; line-height: 1.7; margin: 0;
}
.rv-tagline-text i {
  color: var(--primary-color); font-style: normal;
  margin-right: 0.5rem; font-size: 1.4rem;
}

.rv-dist-block { min-width: 22rem; }
.rv-dist-row {
  display: flex; align-items: center; gap: 0.8rem;
  margin-bottom: 0.5rem;
}
.rv-dist-row:last-child { margin-bottom: 0; }
.rv-dist-label {
  font-size: 1.25rem; font-weight: 600; color: var(--secondary-color);
  min-width: 3.6rem; text-align: right; white-space: nowrap;
}
.rv-dist-label i.fas { color: #f5a623; font-size: 1.1rem; }
.rv-dist-bar {
  flex: 1; height: 1rem; background: #e8e4df;
  border-radius: 0.5rem; overflow: hidden;
}
.rv-dist-fill {
  height: 100%; background: linear-gradient(90deg, #f5a623, #ffcc02);
  border-radius: 0.5rem; transition: width 0.6s ease;
  min-width: 0.3rem;
}
.rv-dist-pct {
  font-size: 1.2rem; color: var(--base-color);
  min-width: 3.5rem; text-align: right; font-weight: 500;
}

/* ─── Main Layout ─── */
.rv-main { padding: 4rem 0 5rem; }
.rv-layout { display: flex; gap: 3.5rem; align-items: flex-start; }
.rv-list-col { flex: 2; min-width: 0; }
.rv-submit-col { flex: 1; min-width: 30rem; position: sticky; top: 10rem; }

/* ─── Review Cards ─── */
.rv-card {
  position: relative;
  padding: 2.2rem 2.6rem;
  border-radius: 0.8rem;
  margin-bottom: 0.6rem;
  transition: box-shadow 0.25s;
}
.rv-card:hover { box-shadow: 0 0.3rem 1.2rem rgba(0,0,0,0.06); }
.rv-row-white { background: #ffffff; }
.rv-row-gray  { background: #f7f6f4; }
.rv-card-real { border-left: 3px solid var(--primary-color); }

.rv-card-top {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 1rem;
}
.rv-stars { font-size: 1.5rem; display: flex; gap: 0.15rem; }
.rv-stars i.fas { color: #f5a623 !important; }
.rv-stars i.far { color: #d4d0cb !important; }
.rv-date { font-size: 1.2rem; color: #a09a93; white-space: nowrap; font-weight: 500; }

.rv-title {
  font-size: 1.65rem; font-weight: 700; color: var(--secondary-color);
  margin: 0 0 0.7rem; line-height: 1.3;
}
.rv-text {
  font-size: 1.4rem; color: var(--base-color); line-height: 1.75;
  margin: 0 0 1rem;
}
.rv-card-bottom {
  display: flex; justify-content: space-between; align-items: center;
}
.rv-author {
  font-size: 1.3rem; font-weight: 600; color: var(--secondary-color);
}
.rv-verified {
  font-size: 1.15rem; color: #3aac5c; font-weight: 500;
  display: flex; align-items: center; gap: 0.35rem;
}
.rv-verified i { font-size: 1.1rem; }
.rv-empty {
  text-align: center; padding: 5rem 2rem;
  font-size: 1.5rem; color: #a09a93;
  background: #f7f6f4; border-radius: 0.8rem;
}

/* Admin Delete Button */
.rv-admin-del {
  position: absolute; top: 1rem; right: 1rem;
  width: 2.6rem; height: 2.6rem;
  background: #fee; border: 1px solid #fcc; border-radius: 50%;
  color: #d44; font-size: 1.6rem; font-weight: 700;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.2s, background 0.2s;
  line-height: 1; padding: 0;
}
.rv-card:hover .rv-admin-del { opacity: 1; }
.rv-admin-del:hover { background: #d44; color: #fff; border-color: #d44; }

/* ─── Pagination ─── */
.rv-pagination {
  display: flex; justify-content: center; align-items: center;
  gap: 0.8rem; padding: 3rem 0 1rem; flex-wrap: wrap;
}
.rv-page-btn, .rv-page-num {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 4.4rem; height: 4.4rem; padding: 0 1.4rem;
  border: 1px solid #ddd; border-radius: 0.6rem;
  font-size: 1.5rem; font-weight: 600;
  color: var(--secondary-color);
  text-decoration: none;
  transition: all 0.2s;
  background: #fff;
}
.rv-page-btn:hover, .rv-page-num:hover {
  background: var(--primary-color); color: #fff; border-color: var(--primary-color);
  transform: translateY(-1px); box-shadow: 0 2px 6px rgba(255,71,0,0.2);
}
.rv-page-num.current {
  background: var(--primary-color); color: #fff; border-color: var(--primary-color);
  pointer-events: none; box-shadow: 0 2px 8px rgba(255,71,0,0.25);
}
.rv-page-dots {
  font-size: 1.6rem; color: #999; padding: 0 0.5rem;
  display: inline-flex; align-items: center;
}

/* ─── Form Panel ─── */
.rv-form-panel, .rv-notice-panel {
  background: #fff; border: 1px solid #e8e4df; border-radius: 1rem;
  padding: 3rem; box-shadow: 0 0.4rem 2rem rgba(0,0,0,0.06);
}
.rv-form-header {
  margin-bottom: 2.2rem; padding-bottom: 1.8rem;
  border-bottom: 1px solid #eee;
}
.rv-form-panel h3, .rv-notice-panel h3 {
  font-size: 2.2rem; font-weight: 800; color: var(--secondary-color);
  margin: 0 0 0.8rem; display: flex; align-items: center; gap: 0.8rem;
}
.rv-form-panel h3 i { color: var(--primary-color); font-size: 2rem; }
.rv-form-tagline {
  font-size: 1.35rem; color: var(--base-color); line-height: 1.65;
  margin: 0; font-style: italic;
}

.rv-field { margin-bottom: 1.8rem; }
.rv-field label {
  display: block; font-size: 1.35rem; font-weight: 600;
  color: var(--secondary-color); margin-bottom: 0.5rem;
}
.rv-field label .required { color: var(--primary-color); }
.rv-field input[type="text"],
.rv-field input[type="email"],
.rv-field textarea {
  width: 100%; padding: 1.1rem 1.4rem; font-size: 1.4rem;
  border: 1.5px solid #ddd; border-radius: 0.6rem;
  font-family: var(--base-font), sans-serif;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box; background: #fafafa;
}
.rv-field input:focus, .rv-field textarea:focus {
  border-color: var(--primary-color); outline: none;
  box-shadow: 0 0 0 3px rgba(255,71,0,0.1);
  background: #fff;
}
.rv-field textarea { resize: vertical; min-height: 10rem; }
.rv-field-hint {
  font-size: 1.15rem; color: #a09a93; margin-top: 0.4rem; display: block;
}

/* Name / Email side-by-side */
.rv-field-row { display: flex; gap: 1.4rem; }
.rv-field-half { flex: 1; }

/* Star Input */
.rv-star-input { display: flex; gap: 0.5rem; padding: 0.4rem 0; }
.rv-star-input i {
  font-size: 2.8rem; cursor: pointer; color: #d4d0cb;
  transition: color 0.15s, transform 0.15s;
}
.rv-star-input i.fas { color: #f5a623 !important; }
.rv-star-input i:hover { transform: scale(1.2); }

/* Submit Button — right-aligned */
.rv-form-actions {
  display: flex; justify-content: flex-end;
  margin-top: 0.8rem; padding-top: 1.5rem;
  border-top: 1px solid #eee;
}
.rv-submit-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.8rem;
  padding: 1.2rem 3rem; font-size: 1.5rem;
}
.rv-submit-btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* Notice Panel */
.rv-notice-panel { text-align: center; }
.rv-notice-icon { font-size: 3.5rem; color: var(--primary-color); margin-bottom: 1.5rem; }
.rv-notice-content { font-size: 1.4rem; color: var(--base-color); line-height: 1.8; }

/* Form Messages */
#rv-form-msg { margin-bottom: 1rem; }
#rv-form-msg .verify-success, #rv-form-msg .verify-error { margin-top: 0.5rem; }

/* ─── Reviews Responsive ─── */
@media (max-width: 61.95em) {
  .rv-overview-grid {
    grid-template-columns: 1fr;
    text-align: center; gap: 2rem;
  }
  .rv-score-block { justify-content: center; align-items: center; }
  .rv-score-row { justify-content: center; }
  .rv-tagline-block { border-left: none; border-right: none; border-top: 1px solid #e0dcd6; border-bottom: 1px solid #e0dcd6; padding: 1.5rem 0; }
  .rv-dist-block { margin: 0 auto; }
  .rv-layout { flex-direction: column; }
  .rv-submit-col { position: static; min-width: 0; width: 100%; order: -1; margin-bottom: 2.5rem; }
  .rv-big-score { font-size: 4.8rem; }
}
@media (max-width: 47.95em) {
  .rv-overview { padding: 3rem 0; }
  .rv-card { padding: 1.8rem 2rem; }
  .rv-form-panel, .rv-notice-panel { padding: 2.2rem; }
  .rv-big-score { font-size: 4rem; }
  .rv-big-stars { font-size: 1.8rem; }
  .rv-field-row { flex-direction: column; gap: 0; }
}
@media (max-width: 35.95em) {
  .rv-card-top { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .rv-card-bottom { flex-direction: column; align-items: flex-start; gap: 0.4rem; }
  .rv-pagination { gap: 0.5rem; }
  .rv-page-btn, .rv-page-num { min-width: 3.6rem; height: 3.6rem; padding: 0 1rem; font-size: 1.3rem; }
  .rv-big-score { font-size: 3.6rem; }
  .rv-form-panel h3 { font-size: 1.8rem; }
  .rv-submit-btn { width: 100%; }
  .rv-form-actions { justify-content: center; }
}
