/* 客户评价区块 —— 薰衣草紫「静奢」配色，类名统一 tr-t- 前缀，避免与 app.css 冲突 */
@import url("https://fonts.googleapis.com/css2?family=Trirong:wght@300;400;500&family=Noto+Sans+Thai:wght@300;400;500;600&family=Cormorant+Garamond:ital,wght@0,500;0,600;1,400;1,500&display=swap");

.tr-testimonials {
  /* 区块内令牌（变量名保持不变，值与 premium.css 一致） */
  --tr-blush-50: #F9F7FC;
  --tr-blush-100: #F0ECF8;
  --tr-rose-200: #E4DEF0;
  --tr-rose-300: #CEC6E0;
  --tr-rose-600: #5B4CA8;   /* violet：链接 / 强调 */
  --tr-rose-700: #2E2449;   /* aubergine：悬停 / 主按钮 */
  --tr-gold: #8E84D0;       /* lavender：细线 */
  --tr-ink: #2A2140;
  --tr-muted: #5E5773;
  --tr-gold-text: #6A5FA8;  /* label */
  --tr-pink: #E48FA7;       /* 仅用于引号 */

  position: relative;
  padding: 110px 16px 120px;
  background: var(--tr-blush-100);
  font-family: "Noto Sans Thai", "Poppins", sans-serif;
  color: var(--tr-ink);
  box-sizing: border-box;
}
.tr-testimonials *, .tr-testimonials *::before, .tr-testimonials *::after { box-sizing: border-box; }
.tr-testimonials[hidden] { display: none; }

.tr-t-inner { max-width: 1160px; margin: 0 auto; }

/* 区块标题 */
.tr-t-head { text-align: center; max-width: 680px; margin: 0 auto 44px; }
/* 英文大写小标签，两侧细线 */
.tr-t-eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: "Noto Sans Thai", "Poppins", sans-serif; font-style: normal; font-weight: 400;
  font-size: 12px; line-height: 1.5; letter-spacing: .3em; text-transform: uppercase;
  color: var(--tr-gold-text); margin: 0 0 16px;
}
.tr-t-eyebrow::before, .tr-t-eyebrow::after { content: ""; flex: none; width: 36px; height: 1px; background: var(--tr-gold); }
.tr-t-eyebrow::after { margin-left: -.3em; }
/* 泰文小标签不加字距 */
.tr-t-eyebrow.tr-eyebrow--th, .tr-t-eyebrow[lang|="th"] { letter-spacing: 0; text-transform: none; font-size: 14px; }
.tr-t-eyebrow.tr-eyebrow--th::after, .tr-t-eyebrow[lang|="th"]::after { margin-left: 0; }
/* app.css 对 h2–h6 使用了 !important 字体，这里需同级覆盖 */
.tr-testimonials .tr-t-title {
  font-family: "Trirong", "Noto Serif Thai", serif !important; font-weight: 300;
  font-size: clamp(28px, 3.1vw, 44px); line-height: 1.4; margin: 0 0 16px; color: var(--tr-ink);
}
.tr-t-title em { font-style: normal; color: var(--tr-rose-600); }
.tr-t-sub { font-size: 16px; line-height: 1.9; color: var(--tr-muted); margin: 0; }

/* 排列：置顶卡占满一行，其余卡片居中自动换行；只有 1 条时收窄居中 */
.tr-t-grid { display: flex; flex-wrap: wrap; justify-content: center; align-items: stretch; gap: 24px; }
.tr-t-grid > .tr-t-card { flex: 1 1 300px; max-width: 370px; }
.tr-t-grid > .tr-t-card--featured { flex-basis: 100%; max-width: 920px; }
.tr-t--single .tr-t-grid > .tr-t-card--featured { max-width: 920px; }

/* 卡片：白底细边框，无圆角无阴影 */
.tr-t-card {
  position: relative; display: flex; flex-direction: column;
  background: #FFFFFF;
  border: 1px solid var(--tr-rose-200);
  border-radius: 0;
  padding: 36px 32px 28px;
  box-shadow: none;
  transition: border-color .2s ease;
}
.tr-t-card:hover { border-color: var(--tr-rose-300); }
.tr-t-card--featured { grid-column: 1 / -1; padding: 52px 64px 40px; }
.tr-t-card--featured::before {
  /* 顶部薰衣草细线 */
  content: ""; position: absolute; top: 0; left: 64px; right: 64px; height: 2px;
  background: linear-gradient(90deg, rgba(142, 132, 208, 0), var(--tr-gold), rgba(142, 132, 208, 0));
}

/* 引号：唯一使用粉色点缀的地方 */
.tr-t-quote { width: 36px; height: 27px; fill: var(--tr-pink); margin-bottom: 20px; }
.tr-t-card--featured .tr-t-quote { width: 44px; height: 33px; }

.tr-t-tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 16px; }
.tr-t-tags li {
  font-size: 13px; line-height: 1; padding: 7px 12px; border-radius: 0;
  color: var(--tr-rose-700); background: var(--tr-blush-100);
}

.tr-testimonials .tr-t-headline {
  font-family: "Trirong", "Noto Serif Thai", serif !important; font-weight: 400;
  font-size: 22px; line-height: 1.55; margin: 0 0 14px; color: var(--tr-ink);
}
.tr-t-card--featured .tr-t-headline { font-size: clamp(24px, 2.4vw, 28px); }
.tr-t-excerpt { font-size: 16px; line-height: 1.9; color: var(--tr-muted); margin: 0 0 16px; }
.tr-t-card--featured .tr-t-excerpt { font-size: 17px; line-height: 1.95; }

/* 展开全文 */
.tr-t-more { margin: 0 0 24px; }
.tr-t-more summary {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; list-style: none;
  font-size: 15px; font-weight: 500; color: var(--tr-rose-600);
}
.tr-t-more summary::-webkit-details-marker { display: none; }
.tr-t-more summary::after { content: ""; width: 7px; height: 7px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .2s; }
.tr-t-more[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.tr-t-more summary:hover { color: var(--tr-rose-700); }
.tr-t-more summary:focus-visible { outline: 2px solid var(--tr-rose-600); outline-offset: 4px; border-radius: 0; }
.tr-t-close, .tr-t-more[open] .tr-t-open { display: none; }
.tr-t-more[open] .tr-t-close { display: inline; }
.tr-t-body { margin-top: 16px; padding-left: 20px; border-left: 1px solid var(--tr-gold); }
.tr-t-body p { font-size: 16px; line-height: 1.9; color: var(--tr-ink); margin: 0 0 14px; }
.tr-t-body p:last-child { margin-bottom: 0; }

/* 署名栏 */
.tr-t-foot {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  margin-top: auto; padding-top: 22px; border-top: 1px solid #EFEAF6;
}
.tr-t-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex: none; }
.tr-t-avatar--mono {
  display: inline-grid; place-items: center;
  font-family: "Cormorant Garamond", serif; font-style: italic; font-size: 24px;
  color: #fff; background: linear-gradient(135deg, #B7AEE6, var(--tr-rose-600));
}
.tr-t-who { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
/* 署名使用正文字体（与全站 b/strong 规则一致） */
.tr-t-who strong { font-family: "Noto Sans Thai", "Poppins", sans-serif; font-size: 16px; font-weight: 600; color: var(--tr-ink); }
.tr-t-who span { font-size: 13px; color: var(--tr-muted); }
.tr-t-verified {
  margin-left: auto; display: inline-flex; align-items: center; gap: 6px;
  min-height: 32px; font-size: 13px; color: var(--tr-rose-600); background: #F4F1FB; border-radius: 0; padding: 0 14px;
}
.tr-t-verified svg { width: 13px; height: 13px; fill: currentColor; }
.tr-t-shot { display: inline-block; margin-top: 14px; font-size: 13px; color: var(--tr-muted); text-decoration: underline; text-underline-offset: 3px; }

/* 预览用示例卡片标记，正式数据中不要使用 demo */
.tr-t-card--demo { border-style: dashed; }
.tr-t-card--demo .tr-t-verified { display: none; }
.tr-t-card--demo::after {
  content: "ตัวอย่างเลย์เอาต์ · ไม่ใช่รีวิวจริง"; position: absolute; top: 14px; right: 16px;
  font-size: 11px; color: #5E5773; background: #F0ECF8; padding: 4px 8px; border-radius: 0;
}

/* 底部 CTA：深紫直角 */
.tr-t-cta { text-align: center; margin-top: 44px; }
.tr-t-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px;
  padding: 0 30px; border-radius: 0; font-size: 15px; font-weight: 500; text-decoration: none;
  color: #F9F7FC; background: var(--tr-rose-700); transition: background-color .2s;
}
.tr-t-btn:hover { background: #221B38; color: #fff; }
.tr-t-btn:focus-visible { outline: 2px solid var(--tr-rose-600); outline-offset: 3px; }

@media (max-width: 767px) {
  .tr-testimonials { padding: 60px 16px; }
  .tr-t-head { margin-bottom: 32px; }
  .tr-t-eyebrow { font-size: 11px; letter-spacing: .26em; gap: 12px; }
  .tr-t-eyebrow::before, .tr-t-eyebrow::after { width: 28px; }
  .tr-t-eyebrow::after { margin-left: -.26em; }
  .tr-testimonials .tr-t-title { font-size: clamp(26px, 7.6vw, 30px); line-height: 1.45; }
  .tr-t-grid > .tr-t-card { max-width: 100%; }
  .tr-t-card, .tr-t-card--featured { padding: 32px 20px 24px; }
  .tr-t-card--featured::before { left: 20px; right: 20px; }
  .tr-t-verified { margin-left: 0; }
  .tr-t-cta .tr-t-btn { display: flex; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .tr-t-card, .tr-t-more summary::after, .tr-t-btn { transition: none; }
}

/* 署名信息与日期分成两个节点（便于分别翻译），分隔符用 CSS 生成 */
.tr-t-meta .tr-t-date::before { content: "·"; margin: 0 7px; }
