/* ===== 星语桥 —— 星语暖心屋子模块 ===== */

/* 页面容器 */
.pcc-page {
  background: #FAF7F2;
  min-height: calc(100vh - 60px);
}
.pcc-container {
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  padding: 0 40px;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 60px);
}

/* ===== 二级主题导航 - 复用并微调 ===== */
.pcc-hero-banner {
  background:
    radial-gradient(ellipse at 20% 0%, rgba(255,200,200,0.25) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(200,220,255,0.2) 0%, transparent 45%),
    linear-gradient(160deg, #FFF9F5 0%, #FDF5F0 30%, #FAF0EA 55%, #F6E9E0 100%);
  padding: 72px 0 64px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(232, 140, 100, 0.1);
}
.pcc-hero-banner .particles {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  overflow: hidden;
}
.pcc-hero-banner .particles span {
  position: absolute;
  display: block;
  width: 4px; height: 4px;
  background: rgba(240,140,100,0.25);
  border-radius: 50%;
  animation: particleFloat 8s ease-in-out infinite;
}
.pcc-hero-banner .particles span:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; animation-duration: 7s; }
.pcc-hero-banner .particles span:nth-child(2) { left: 25%; top: 60%; animation-delay: 1s; animation-duration: 9s; width: 3px; height: 3px; }
.pcc-hero-banner .particles span:nth-child(3) { left: 40%; top: 30%; animation-delay: 2s; animation-duration: 6s; }
.pcc-hero-banner .particles span:nth-child(4) { left: 55%; top: 70%; animation-delay: 0.5s; animation-duration: 8s; width: 5px; height: 5px; background: rgba(107,158,240,0.2); }
.pcc-hero-banner .particles span:nth-child(5) { left: 70%; top: 25%; animation-delay: 3s; animation-duration: 10s; }
.pcc-hero-banner .particles span:nth-child(6) { left: 85%; top: 55%; animation-delay: 1.5s; animation-duration: 7s; width: 3px; height: 3px; background: rgba(240,140,100,0.18); }
.pcc-hero-banner .particles span:nth-child(7) { left: 15%; top: 80%; animation-delay: 4s; animation-duration: 9s; }
.pcc-hero-banner .particles span:nth-child(8) { left: 90%; top: 15%; animation-delay: 2.5s; animation-duration: 8s; width: 4px; height: 4px; background: rgba(107,158,240,0.15); }

/* ===== 主布局（全单栏垂直流）===== */
.pcc-main {
  display: flex;
  flex-direction: column;
  max-width: 100%;
  flex: 1;
  min-height: 0;
  padding: 20px 0 40px;
  box-sizing: border-box;
  gap: 24px;
}

/* ====== 左侧区域（全宽）====== */
.pcc-visual {
  width: 100%;
  max-width: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* --- 左侧对话展示模式 --- */
.pcc-visual-dialog {
  gap: 16px;
}

/* 顶部横幅 */
.pcc-dialog-banner {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  min-height: 180px;
  flex-shrink: 0;
}
.pcc-dialog-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 180px;
}
.pcc-dialog-banner-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg,
    rgba(0,0,0,0.15) 0%,
    rgba(0,0,0,0.05) 40%,
    rgba(0,0,0,0.45) 75%,
    rgba(0,0,0,0.6) 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px 24px;
  box-sizing: border-box;
}
.pcc-dialog-banner-overlay .vh-title {
  font-family: 'STKaiti', 'KaiTi', 'FangSong', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-size: 1.6rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 6px;
  letter-spacing: 4px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.pcc-dialog-banner-overlay .vh-title::after {
  content: none !important;
  display: none !important;
}
.pcc-dialog-banner-overlay .vh-title-line {
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, #F0A060, rgba(240,160,100,0.3), transparent);
  border-radius: 2px;
  margin-bottom: 6px;
}
.pcc-dialog-banner-overlay .vh-subtitle {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.9);
  margin: 0;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
  letter-spacing: 1px;
}

/* 对话列表容器 */
.pcc-dialog-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-height: 0;
}

/* ====== 对话卡片 —— 情绪转化展墙 ====== */
.pcc-dialog-card {
  position: relative;
  background: linear-gradient(170deg, #FFFCF8 0%, #FFF9F3 50%, #FFF6EE 100%);
  border-radius: 24px;
  padding: 0;
  border: 1px solid rgba(240,160,100,0.1);
  box-shadow:
    0 2px 4px rgba(0,0,0,0.02),
    0 8px 24px rgba(0,0,0,0.04);
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
}
.pcc-dialog-card:hover {
  transform: translateY(-5px);
  box-shadow:
    0 12px 40px rgba(240,160,100,0.12),
    0 4px 12px rgba(0,0,0,0.04);
}

/* 场景图片区 */
.pcc-dialog-scene {
  position: relative;
  width: 100%;
  overflow: hidden;
}
.pcc-scene-img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.8s ease;
}
.pcc-dialog-card:hover .pcc-scene-img {
  transform: scale(1.04);
}
.pcc-scene-tag {
  position: absolute;
  bottom: 12px;
  left: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  font-size: 0.82rem;
  font-weight: 600;
  color: #5A4A3A;
}
.pcc-scene-icon {
  font-size: 1rem;
}

/* 左右对比区 */
.pcc-dialog-compare {
  display: flex;
  align-items: stretch;
  gap: 0;
  padding: 20px 16px 16px;
}

/* 左侧 —— 原始情绪 */
.pcc-compare-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding-right: 8px;
}

/* 右侧 —— 温暖表达 */
.pcc-compare-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding-left: 8px;
}

/* 情绪徽章 */
.pcc-mood-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.pcc-mood-emoji {
  font-size: 1.6rem;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}
.pcc-mood-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #B0A8A0;
}
.pcc-compare-right .pcc-mood-label {
  color: #E89050;
}

/* 中间 —— 转化区 */
.pcc-compare-center {
  flex: 0 0 70px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.pcc-transform-ring {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #F0A060, #E89050);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 4px 16px rgba(240,160,100,0.3),
    0 0 0 4px rgba(240,160,100,0.08);
  animation: transformRingPulse 3s ease-in-out infinite;
}
@keyframes transformRingPulse {
  0%, 100% { box-shadow: 0 4px 16px rgba(240,160,100,0.3), 0 0 0 4px rgba(240,160,100,0.08); }
  50% { box-shadow: 0 6px 24px rgba(240,160,100,0.4), 0 0 0 6px rgba(240,160,100,0.12); }
}
.pcc-transform-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
}
.pcc-transform-from {
  font-size: 0.85rem;
  filter: grayscale(0.3);
}
.pcc-transform-arrow {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.9);
  font-weight: 700;
}
.pcc-transform-to {
  font-size: 0.85rem;
}
.pcc-transform-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #E89050;
  letter-spacing: 1px;
  text-align: center;
  white-space: nowrap;
}

/* 对比气泡 */
.pcc-compare-bubble {
  width: 100%;
  border-radius: 16px;
  padding: 14px 16px;
  position: relative;
  overflow: hidden;
}
.pcc-bubble-header {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 10px;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 1px;
}
.pcc-bubble-icon {
  font-size: 0.8rem;
}
.pcc-bubble-title {
  text-transform: uppercase;
}
.pcc-bubble-quote-mark {
  position: absolute;
  top: 6px;
  right: 12px;
  font-size: 2.8rem;
  font-family: 'Georgia', 'Times New Roman', serif;
  line-height: 1;
  color: rgba(0,0,0,0.03);
  pointer-events: none;
  user-select: none;
}
.pcc-compare-bubble p {
  margin: 0;
  line-height: 1.8;
  font-size: 1rem;
  position: relative;
  z-index: 1;
}

/* 原话气泡 */
.pcc-bubble-original {
  background: linear-gradient(145deg, #F5F0EB, #EDE8E2);
  border: 1px solid rgba(0,0,0,0.04);
}
.pcc-bubble-original .pcc-bubble-header {
  color: #B0A098;
}
.pcc-bubble-original p {
  color: #8A8078;
  opacity: 0.8;
}

/* 优化后气泡 */
.pcc-bubble-optimized {
  background: linear-gradient(145deg, #FFF8F0, #FFF0E0);
  border: 1px solid rgba(240,160,100,0.12);
  border-left: 4px solid #F0A060;
}
.pcc-bubble-optimized .pcc-bubble-header {
  color: #E89050;
}
.pcc-bubble-optimized .pcc-bubble-quote-mark {
  color: rgba(240,160,100,0.06);
}
.pcc-bubble-optimized p {
  color: #4A4036;
  font-size: 1.02rem;
  font-weight: 400;
}

/* 洞察条 */
.pcc-dialog-insight {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 16px 16px;
  padding: 10px 16px;
  background: linear-gradient(90deg, rgba(240,160,100,0.06), transparent);
  border-radius: 12px;
  border-left: 3px solid #F0A060;
}
.pcc-insight-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}
.pcc-dialog-insight p {
  margin: 0;
  font-size: 0.95rem;
  color: #8A7060;
  font-weight: 500;
  line-height: 1.5;
}

/* 底部CTA */
.pcc-dialog-footer {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  background: linear-gradient(135deg, #FFF5EE, #FFEEE0);
  border-radius: 20px;
  border: 1px solid rgba(240,160,100,0.12);
  position: relative;
  overflow: hidden;
}
.pcc-dialog-footer::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 5px;
  background: linear-gradient(to bottom, #F0A060, #E89050);
  border-radius: 20px 0 0 20px;
}
.pcc-footer-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
  z-index: 1;
}
.pcc-footer-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FFD699, #FFB84D);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: 0 3px 12px rgba(240,160,100,0.25);
  animation: footerIconGlow 3s ease-in-out infinite;
}
@keyframes footerIconGlow {
  0%, 100% { box-shadow: 0 3px 12px rgba(240,160,100,0.25); }
  50% { box-shadow: 0 5px 20px rgba(240,160,100,0.35); }
}
.pcc-footer-line {
  width: 2px;
  height: 20px;
  background: linear-gradient(to bottom, #F0A060, transparent);
  border-radius: 1px;
}
.pcc-footer-text {
  flex: 1;
  position: relative;
  z-index: 1;
}
.pcc-footer-title {
  margin: 0 0 4px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #4A4036;
  letter-spacing: 1px;
}
.pcc-footer-sub {
  margin: 0;
  font-size: 0.8rem;
  color: #A09890;
}
.pcc-footer-action {
  position: relative;
  z-index: 1;
}
.pcc-footer-btn-hint {
  display: inline-block;
  padding: 8px 16px;
  background: linear-gradient(135deg, #F0A060, #E89050);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 20px;
  box-shadow: 0 2px 10px rgba(240,160,100,0.3);
  animation: btnHintPulse 2.5s ease-in-out infinite;
}
@keyframes btnHintPulse {
  0%, 100% { transform: translateY(0); box-shadow: 0 2px 10px rgba(240,160,100,0.3); }
  50% { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(240,160,100,0.4); }
}

/* ===== 互动功能区（全宽单栏）===== */
.pcc-interaction-area {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* 角色切换（全宽） */
.pcc-role-switcher {
  display: flex;
  gap: 12px;
  background: linear-gradient(135deg, #FFF5EE, #FFEEE0);
  border-radius: 16px;
  padding: 6px;
  border: 1px solid rgba(240,160,100,0.12);
}
.role-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 8px;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: #8A8078;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
}
.role-btn .role-icon {
  font-size: 1.2rem;
}
.role-btn.active {
  background: #fff;
  color: #5A4036;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.role-btn:hover:not(.active) {
  background: rgba(255,255,255,0.5);
}

/* 功能标签（全宽） */
.pcc-func-tabs {
  display: flex;
  gap: 10px;
  background: #F5F0EB;
  border-radius: 16px;
  padding: 6px;
}
.func-tab {
  flex: 1;
  padding: 12px 4px;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: #8A8078;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
}
.func-tab.active {
  background: linear-gradient(135deg, #F0A060, #E89050);
  color: #fff;
  box-shadow: 0 2px 8px rgba(240,160,100,0.25);
}
.func-tab:hover:not(.active) {
  background: #EDE8E2;
}

/* 功能面板内容区 */
.pcc-panels {
  display: flex;
  flex-direction: column;
}

/* 内联引导卡片 */
.pcc-inline-card {
  background: linear-gradient(145deg, #FFFFFF 0%, #FFFCF8 100%);
  border-radius: 20px;
  padding: 24px;
  border: 1px solid rgba(240,160,100,0.08);
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  display: flex;
  align-items: center;
  gap: 20px;
}
.pcc-inline-card-header {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 14px;
}
.pic-header-icon {
  font-size: 2.2rem;
  flex-shrink: 0;
}
.pic-header-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #4A4036;
  margin-bottom: 4px;
}
.pic-header-desc {
  font-size: 0.82rem;
  color: #A09890;
  line-height: 1.5;
}
.pcc-inline-card-btn {
  padding: 12px 24px;
  border: 2px solid #F0A060;
  border-radius: 24px;
  background: linear-gradient(135deg, #FFF5EE, #FFEDE0);
  color: #C47030;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
  flex-shrink: 0;
  font-family: inherit;
}
.pcc-inline-card-btn:hover {
  background: linear-gradient(135deg, #F0A060, #E89050);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(240,160,100,0.25);
}

/* 双卡片横向排列 */
.pcc-dual-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ===== 功能面板 ===== */
.func-panel {
  display: none;
  flex-direction: column;
  gap: 14px;
}
.func-panel.active {
  display: flex;
}

/* ===== 角色视图 ===== */
.role-view {
  display: none;
  flex-direction: column;
  gap: 14px;
}
.role-view.active {
  display: flex;
}

/* ===== 数据卡片 ===== */
.data-card {
  background: linear-gradient(145deg, #FFFFFF 0%, #FFFDF9 100%);
  border-radius: 16px;
  padding: 20px;
  box-shadow:
    0 1px 3px rgba(0,0,0,0.04),
    0 4px 12px rgba(0,0,0,0.03),
    0 0 0 1px rgba(0,0,0,0.02);
  border: 1px solid rgba(0,0,0,0.03);
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.data-card:hover {
  box-shadow:
    0 2px 6px rgba(0,0,0,0.05),
    0 8px 24px rgba(0,0,0,0.05),
    0 0 0 1px rgba(240,160,100,0.08);
  transform: translateY(-2px);
}
.dc-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: #4A4036;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.dc-icon {
  font-size: 1.2rem;
}
.dc-desc {
  font-size: 0.82rem;
  color: #A09890;
  margin: 0 0 16px;
}

/* ===== 场景模板 ===== */
.scene-templates {
  margin-bottom: 14px;
}
.st-label {
  font-size: 0.8rem;
  color: #8A8078;
  margin-bottom: 8px;
  font-weight: 500;
}
.scene-btns {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.scene-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 2px solid #F0EBE5;
  border-radius: 12px;
  background: #FFFCF8;
  color: #5A554E;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  text-align: left;
}
.scene-btn .s-icon-img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
.scene-btn.active {
  border-color: #F0A060;
  background: linear-gradient(135deg, #FFF5EE, #FFEDE0);
  color: #C47030;
  animation: scenePulse 2.5s ease-in-out infinite;
  transform: scale(1.02);
}
@keyframes scenePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(240,160,100,0.25); }
  50% { box-shadow: 0 0 0 4px rgba(240,160,100,0.1); }
}
.scene-btn:hover:not(.active) {
  border-color: #E0D5CC;
  background: #FFF9F3;
  transform: scale(1.01);
}

/* ===== 语气选择 ===== */
.tone-selector {
  margin-bottom: 14px;
}
.tone-btns {
  display: flex;
  gap: 8px;
}
.tone-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 6px;
  border: 2px solid #F0EBE5;
  border-radius: 10px;
  background: #FFFCF8;
  color: #5A554E;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
}
.tone-btn .t-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.tone-btn.active {
  border-color: #F0A060;
  background: linear-gradient(135deg, #FFF5EE, #FFEDE0);
  animation: tonePulse 2.5s ease-in-out infinite;
  transform: scale(1.05);
}
@keyframes tonePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(240,160,100,0.2); }
  50% { box-shadow: 0 0 0 3px rgba(240,160,100,0.08); }
}
.tone-btn:hover:not(.active) {
  border-color: #E0D5CC;
  transform: scale(1.03);
}

/* ===== 输入区 ===== */
.input-area {
  margin-bottom: 14px;
}
.input-label {
  display: block;
  font-size: 0.85rem;
  color: #5A554E;
  margin-bottom: 8px;
  font-weight: 500;
}
.pcc-textarea {
  width: 100%;
  min-height: 80px;
  padding: 12px 14px;
  border: 2px solid #F0EBE5;
  border-radius: 12px;
  background: #FFFCF8;
  color: #4A4036;
  font-size: 0.88rem;
  line-height: 1.6;
  resize: vertical;
  box-sizing: border-box;
  font-family: inherit;
  transition: all 0.3s;
}
.pcc-textarea:focus {
  outline: none;
  border-color: #F0A060;
  background: #FFF;
  box-shadow: 0 0 0 3px rgba(240,160,100,0.1);
}
.pcc-textarea::placeholder {
  color: #C0B8B0;
}
.char-count {
  text-align: right;
  font-size: 0.75rem;
  color: #B0A8A0;
  margin-top: 4px;
}

/* ===== 按钮 ===== */
.optimize-btn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #F0A060, #E89050);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 14px;
}
.optimize-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(240,160,100,0.3);
}
.optimize-btn:active {
  transform: translateY(0);
}
.pcc-btn-primary {
  padding: 10px 18px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #F0A060, #E89050);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}
.pcc-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(240,160,100,0.25);
}
.pcc-btn-secondary {
  padding: 10px 18px;
  border: 2px solid #F0EBE5;
  border-radius: 10px;
  background: #FFFCF8;
  color: #5A554E;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
}
.pcc-btn-secondary:hover {
  border-color: #F0A060;
  background: #FFF5EE;
}

/* ===== 预览区 ===== */
.preview-area {
  background: linear-gradient(135deg, #FFF8F0, #FFF0E5);
  border-radius: 14px;
  padding: 16px;
  border: 2px solid rgba(240,160,100,0.15);
}
.preview-label {
  font-size: 0.85rem;
  color: #C47030;
  font-weight: 600;
  margin-bottom: 10px;
}
.preview-box {
  background: #fff;
  border-radius: 10px;
  padding: 14px;
  font-size: 0.9rem;
  color: #4A4036;
  line-height: 1.7;
  margin-bottom: 12px;
  border-left: 3px solid #F0A060;
}
.preview-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

/* ===== 空状态 ===== */
.empty-state {
  text-align: center;
  padding: 30px 20px;
  color: #B0A8A0;
}
.empty-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
  opacity: 0.6;
}
.empty-state p {
  margin: 0;
  font-size: 0.9rem;
}
.empty-sub {
  font-size: 0.8rem;
  margin-top: 6px;
  opacity: 0.7;
}

/* ===== 消息列表 ===== */
.msg-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.msg-item {
  background: linear-gradient(135deg, #FFF8F0, #FFF0E5);
  border-radius: 14px;
  padding: 16px;
  border: 1px solid rgba(240,160,100,0.1);
}
.msg-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.msg-item-from {
  font-size: 0.85rem;
  font-weight: 600;
  color: #C47030;
}
.msg-item-time {
  font-size: 0.75rem;
  color: #B0A8A0;
}
.msg-item-raw {
  background: #FFF;
  border-radius: 8px;
  padding: 10px;
  font-size: 0.85rem;
  color: #8A8078;
  margin-bottom: 8px;
  text-decoration: line-through;
  opacity: 0.7;
}
.msg-item-opt {
  background: #fff;
  border-radius: 8px;
  padding: 12px;
  font-size: 0.88rem;
  color: #4A4036;
  line-height: 1.6;
  border-left: 3px solid #F0A060;
  margin-bottom: 10px;
}
.msg-item-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.msg-reply-area {
  margin-top: 10px;
  display: none;
}
.msg-reply-area.active {
  display: block;
}

/* ===== 心愿 ===== */
.wish-input-area {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}
.wish-input {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid #F0EBE5;
  border-radius: 12px;
  background: #FFFCF8;
  color: #4A4036;
  font-size: 0.88rem;
  box-sizing: border-box;
  font-family: inherit;
  transition: all 0.3s;
}
.wish-input:focus {
  outline: none;
  border-color: #F0A060;
  background: #FFF;
  box-shadow: 0 0 0 3px rgba(240,160,100,0.1);
}
.wish-options {
  display: flex;
  gap: 16px;
}
.wish-opt {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: #5A554E;
  cursor: pointer;
}
.wish-opt input {
  accent-color: #F0A060;
}
.wish-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.wish-item {
  background: linear-gradient(135deg, #FFF8F0, #FFF0E5);
  border-radius: 12px;
  padding: 14px;
  border: 1px solid rgba(240,160,100,0.1);
}
.wish-item-text {
  font-size: 0.9rem;
  color: #4A4036;
  margin-bottom: 10px;
}
.wish-item-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.wish-item-date {
  font-size: 0.75rem;
  color: #B0A8A0;
}
.wish-status-btns {
  display: flex;
  gap: 6px;
}
.wish-status-btn {
  padding: 4px 10px;
  border: none;
  border-radius: 6px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
}
.wish-status-btn.done {
  background: #E8F5E9;
  color: #2E7D32;
}
.wish-status-btn.plan {
  background: #FFF3E0;
  color: #E65100;
}
.wish-status-btn.wait {
  background: #F5F5F5;
  color: #757575;
}
.wish-status-btn:hover {
  transform: scale(1.05);
}
.wish-scope-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  background: #F0EBE5;
  color: #8A8078;
}

/* ===== 心愿日历 ===== */
.wish-calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin-bottom: 12px;
}
.cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 0.75rem;
  background: #F5F0EB;
  color: #8A8078;
}
.cal-day.done {
  background: linear-gradient(135deg, #FFD54F, #FFCA28);
  color: #5A4036;
  font-weight: 600;
}
.cal-day.plan {
  background: linear-gradient(135deg, #FFCC80, #FFB74D);
  color: #5A4036;
}
.cal-day-header {
  font-size: 0.7rem;
  color: #B0A8A0;
  text-align: center;
  padding: 4px;
}
.calendar-legend {
  display: flex;
  gap: 16px;
  justify-content: center;
  font-size: 0.78rem;
  color: #8A8078;
}
.calendar-legend span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.cal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.cal-dot.done { background: #FFD54F; }
.cal-dot.plan { background: #FFCC80; }
.cal-dot.wait { background: #E0E0E0; }

/* ===== 寄语 ===== */
.daily-msg-input {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.msg-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}
.today-msg-preview {
  margin-top: 14px;
  background: linear-gradient(135deg, #FFF8F0, #FFF0E5);
  border-radius: 12px;
  padding: 14px;
  border: 1px solid rgba(240,160,100,0.15);
}
.msg-preview-label {
  font-size: 0.82rem;
  color: #C47030;
  font-weight: 600;
  margin-bottom: 8px;
}
.msg-preview-box {
  background: #fff;
  border-radius: 8px;
  padding: 12px;
  font-size: 0.9rem;
  color: #4A4036;
  line-height: 1.6;
  border-left: 3px solid #F0A060;
}
.feedback-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.feedback-item {
  background: linear-gradient(135deg, #F0F8FF, #E8F4FD);
  border-radius: 12px;
  padding: 12px;
  border-left: 3px solid #7EB8E0;
}
.feedback-item-text {
  font-size: 0.88rem;
  color: #4A4036;
  line-height: 1.5;
}
.feedback-item-time {
  font-size: 0.75rem;
  color: #B0A8A0;
  margin-top: 6px;
}

/* ===== 时光胶囊 ===== */
.capsule-card {
  max-height: 500px;
  overflow-y: auto;
}
.capsule-timeline {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.timeline-item {
  display: flex;
  gap: 14px;
  position: relative;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: 18px;
  top: 36px;
  bottom: -16px;
  width: 2px;
  background: linear-gradient(to bottom, #F0A060, transparent);
}
.timeline-item:last-child::before {
  display: none;
}
.timeline-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #F0A060, #E89050);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  color: #fff;
}
.timeline-content {
  flex: 1;
  background: linear-gradient(135deg, #FFF8F0, #FFF0E5);
  border-radius: 12px;
  padding: 14px;
}
.timeline-date {
  font-size: 0.75rem;
  color: #B0A8A0;
  margin-bottom: 6px;
}
.timeline-text {
  font-size: 0.88rem;
  color: #4A4036;
  line-height: 1.5;
}
.timeline-type {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  background: #F0A060;
  color: #fff;
  margin-bottom: 6px;
}

/* ===== AI话术翻译官 —— 专业级美化重设计 (v13) ===== */

/* 外层面板 */
.pcc-translator-panel {
  background:
    radial-gradient(ellipse at 10% 0%, rgba(240,160,100,0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 90% 100%, rgba(168,197,226,0.06) 0%, transparent 50%),
    linear-gradient(155deg, #FFFFFF 0%, #FFFDF9 40%, #FFF9F2 100%);
  border-radius: 28px;
  border: 1.5px solid rgba(240,160,100,0.12);
  box-shadow:
    0 1px 2px rgba(0,0,0,0.02),
    0 4px 12px rgba(0,0,0,0.03),
    0 12px 32px rgba(240,160,100,0.06);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
}
.pcc-translator-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, #F0A060, #E89050, #F0C080, #7ECFB3, #A8C5E2, #F0A060);
  background-size: 300% 100%;
  animation: translatorGlow 6s ease-in-out infinite;
  z-index: 2;
}
@keyframes translatorGlow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.pcc-translator-panel:hover {
  box-shadow:
    0 2px 4px rgba(0,0,0,0.03),
    0 8px 24px rgba(0,0,0,0.05),
    0 20px 48px rgba(240,160,100,0.1);
}

/* ===== 品牌标题区 ===== */
.pcc-tr-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px 20px;
  position: relative;
  background: linear-gradient(135deg, rgba(240,160,100,0.04) 0%, transparent 60%);
}
.pcc-tr-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}
.pcc-tr-logo {
  position: relative;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.pcc-tr-logo-ring {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, #F0A060, #E89050, #F0C080);
  animation: logoRingRotate 8s linear infinite;
}
@keyframes logoRingRotate {
  0% { transform: rotate(0deg); border-radius: 16px; }
  50% { border-radius: 20px; }
  100% { transform: rotate(360deg); border-radius: 16px; }
}
.pcc-tr-logo-icon {
  position: relative;
  z-index: 1;
  font-size: 1.5rem;
  filter: brightness(1.1);
}
.pcc-tr-brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.pcc-tr-title {
  font-family: 'STKaiti', 'KaiTi', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #3D2E1E;
  margin: 0;
  letter-spacing: 2px;
  background: linear-gradient(135deg, #3D2E1E, #8B5E3C);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.pcc-tr-tagline {
  font-size: 0.78rem;
  color: #A09890;
  margin: 0;
  letter-spacing: 0.5px;
  font-weight: 400;
}
.pcc-tr-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: linear-gradient(135deg, rgba(126,207,179,0.12), rgba(126,207,179,0.06));
  border-radius: 20px;
  border: 1px solid rgba(126,207,179,0.2);
  font-size: 0.75rem;
  font-weight: 600;
  color: #5AAF8C;
  letter-spacing: 0.5px;
}
.pcc-tr-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #7ECFB3;
  box-shadow: 0 0 0 3px rgba(126,207,179,0.2);
  animation: statusDotPulse 2s ease-in-out infinite;
}
@keyframes statusDotPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 3px rgba(126,207,179,0.2); }
  50% { opacity: 0.6; box-shadow: 0 0 0 6px rgba(126,207,179,0.1); }
}

/* ===== 控制条：角色 + 功能标签 ===== */
.pcc-tr-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 28px 18px;
  background: linear-gradient(180deg, rgba(240,160,100,0.03) 0%, transparent 100%);
  flex-wrap: wrap;
}

/* 角色切换 */
.pcc-tr-roles {
  display: flex;
  gap: 0;
  background: #F0ECE6;
  border-radius: 14px;
  padding: 4px;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.04);
}
.pcc-tr-role {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: #8A8078;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  font-family: inherit;
  white-space: nowrap;
  position: relative;
}
.pcc-tr-role-avatar {
  font-size: 1.2rem;
  filter: saturate(0.7);
  transition: filter 0.3s;
}
.pcc-tr-role-name {
  transition: color 0.3s;
}
.pcc-tr-role-check {
  display: none;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, #F0A060, #E89050);
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(240,160,100,0.3);
}
.pcc-tr-role.active {
  background: #fff;
  color: #3D2E1E;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  transform: scale(1.03);
}
.pcc-tr-role.active .pcc-tr-role-avatar {
  filter: saturate(1);
}
.pcc-tr-role.active .pcc-tr-role-check {
  display: flex;
}
.pcc-tr-role:hover:not(.active) {
  background: rgba(255,255,255,0.6);
  color: #5A4A3A;
}

/* 功能标签 */
.pcc-tr-funcs {
  display: flex;
  gap: 4px;
  background: #F0ECE6;
  border-radius: 14px;
  padding: 4px;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.04);
}
.pcc-tr-func {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border: none;
  border-radius: 11px;
  background: transparent;
  color: #8A8078;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  font-family: inherit;
  white-space: nowrap;
}
.pcc-tr-func span:first-child {
  font-size: 1rem;
  transition: transform 0.3s;
}
.pcc-tr-func.active {
  background: linear-gradient(135deg, #F0A060, #E89050);
  color: #fff;
  box-shadow: 0 3px 12px rgba(240,160,100,0.3);
  transform: scale(1.04);
}
.pcc-tr-func.active span:first-child {
  transform: scale(1.1) rotate(-5deg);
}
.pcc-tr-func:hover:not(.active) {
  background: rgba(255,255,255,0.5);
  color: #5A4A3A;
}

/* ===== 主体区域 ===== */
.pcc-tr-body {
  display: block;
  padding: 0 28px 28px;
}
.pcc-tr-body > .func-panel {
  display: none;
}
.pcc-tr-body > .func-panel.active {
  display: block;
}

/* ===== AI桥梁 两栏工作区 ===== */
.pcc-tr-workspace {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}

/* ===== 输入卡片 ===== */
.pcc-tr-input-col {
  display: flex;
  flex-direction: column;
}
.pcc-tr-input-card {
  background: linear-gradient(145deg, #FFFFFF, #FFFDF9);
  border-radius: 20px;
  border: 1.5px solid rgba(240,160,100,0.1);
  box-shadow:
    0 2px 8px rgba(0,0,0,0.03),
    0 8px 24px rgba(240,160,100,0.05);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: box-shadow 0.3s;
}
.pcc-tr-input-card:focus-within {
  box-shadow:
    0 2px 8px rgba(0,0,0,0.03),
    0 8px 24px rgba(240,160,100,0.08),
    0 0 0 3px rgba(240,160,100,0.06);
}
.pcc-tr-input-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.pcc-tr-input-label-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}
.pcc-tr-input-icon {
  font-size: 1.1rem;
}
.pcc-tr-input-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: #3D2E1E;
  letter-spacing: 0.5px;
}
.pcc-tr-input-hint {
  font-size: 0.75rem;
  color: #B0A8A0;
  font-style: italic;
  white-space: nowrap;
}

/* 文本输入区 */
.pcc-tr-textarea-wrap {
  position: relative;
}
.pcc-tr-textarea {
  width: 100%;
  min-height: 140px;
  padding: 16px 18px;
  border: 2px solid #F0ECE6;
  border-radius: 16px;
  background: #FFFCF8;
  color: #3D2E1E;
  font-size: 0.92rem;
  line-height: 1.8;
  resize: vertical;
  box-sizing: border-box;
  font-family: inherit;
  transition: all 0.3s;
}
.pcc-tr-textarea:focus {
  outline: none;
  border-color: #F0A060;
  background: #FFFFFF;
  box-shadow:
    0 0 0 4px rgba(240,160,100,0.08),
    inset 0 2px 8px rgba(240,160,100,0.03);
}
.pcc-tr-textarea::placeholder {
  color: #C8C0B8;
}

/* 字符进度条 */
.pcc-tr-char-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}
.pcc-tr-char-track {
  flex: 1;
  height: 4px;
  background: #F0ECE6;
  border-radius: 2px;
  overflow: hidden;
}
.pcc-tr-char-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #F0A060, #E89050);
  border-radius: 2px;
  transition: width 0.3s, background 0.3s;
}
.pcc-tr-char-fill.warning {
  background: linear-gradient(90deg, #FFB74D, #FF9800);
}
.pcc-tr-char-fill.danger {
  background: linear-gradient(90deg, #EF5350, #E53935);
}
.pcc-tr-char-text {
  font-size: 0.72rem;
  color: #B0A8A0;
  font-weight: 500;
  white-space: nowrap;
  min-width: 48px;
  text-align: right;
}

/* 提交按钮 */
.pcc-tr-submit {
  position: relative;
  width: 100%;
  padding: 16px 24px;
  border: none;
  border-radius: 16px;
  background: linear-gradient(135deg, #F0A060 0%, #E89050 50%, #D07838 100%);
  background-size: 200% 200%;
  animation: submitBtnShimmer 4s ease-in-out infinite;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  overflow: hidden;
  font-family: inherit;
  letter-spacing: 1px;
  box-shadow: 0 4px 16px rgba(240,160,100,0.3);
}
@keyframes submitBtnShimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.pcc-tr-submit-bg {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 60%);
  animation: submitBgRotate 6s linear infinite;
  pointer-events: none;
}
@keyframes submitBgRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.pcc-tr-submit-icon {
  font-size: 1.15rem;
  position: relative;
  z-index: 1;
  transition: transform 0.3s;
}
.pcc-tr-submit-text {
  position: relative;
  z-index: 1;
}
.pcc-tr-submit-arrow {
  position: relative;
  z-index: 1;
  font-size: 0.9rem;
  opacity: 0;
  transform: translateX(-8px);
  transition: all 0.3s;
}
.pcc-tr-submit:hover {
  transform: translateY(-3px);
  box-shadow:
    0 8px 28px rgba(240,160,100,0.35),
    0 0 0 4px rgba(240,160,100,0.08);
}
.pcc-tr-submit:hover .pcc-tr-submit-icon {
  transform: scale(1.15) rotate(-10deg);
}
.pcc-tr-submit:hover .pcc-tr-submit-arrow {
  opacity: 1;
  transform: translateX(0);
}
.pcc-tr-submit:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(240,160,100,0.25);
}

/* ===== 右栏：预览卡片 ===== */
.pcc-tr-preview-col {
  display: flex;
  flex-direction: column;
}
.pcc-tr-preview-card {
  background: linear-gradient(145deg, #FFF8F0, #FFF2E5);
  border-radius: 20px;
  border: 1.5px solid rgba(240,160,100,0.12);
  box-shadow:
    0 2px 8px rgba(0,0,0,0.03),
    0 8px 20px rgba(240,160,100,0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* 预览顶部 */
.pcc-tr-preview-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: linear-gradient(135deg, rgba(240,160,100,0.06), transparent);
}
.pcc-tr-preview-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  background: linear-gradient(135deg, #F0A060, #E89050);
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  box-shadow: 0 2px 8px rgba(240,160,100,0.25);
  letter-spacing: 0.5px;
}
.pcc-tr-preview-badge-icon {
  font-size: 0.85rem;
}
.pcc-tr-preview-wave {
  display: flex;
  gap: 3px;
  align-items: center;
  height: 16px;
}
.pcc-tr-preview-wave span {
  display: block;
  width: 3px;
  border-radius: 2px;
  background: #F0A060;
  animation: waveBar 1.2s ease-in-out infinite;
}
.pcc-tr-preview-wave span:nth-child(1) { height: 6px; animation-delay: 0s; }
.pcc-tr-preview-wave span:nth-child(2) { height: 12px; animation-delay: 0.15s; }
.pcc-tr-preview-wave span:nth-child(3) { height: 8px; animation-delay: 0.3s; }
@keyframes waveBar {
  0%, 100% { transform: scaleY(1); opacity: 0.5; }
  50% { transform: scaleY(1.6); opacity: 1; }
}

/* 预览内容 */
.pcc-tr-preview-content {
  padding: 16px 20px;
  min-height: 160px;
  font-size: 0.92rem;
  line-height: 1.8;
  color: #3D2E1E;
  flex: 1;
}

/* 空状态占位 */
.pcc-tr-preview-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 32px 20px;
  text-align: center;
}
.pcc-tr-preview-empty-icon {
  font-size: 2.5rem;
  opacity: 0.3;
  margin-bottom: 8px;
  animation: emptyPenFloat 3s ease-in-out infinite;
}
@keyframes emptyPenFloat {
  0%, 100% { transform: translateY(0) rotate(-5deg); }
  50% { transform: translateY(-8px) rotate(5deg); }
}
.pcc-tr-preview-empty p {
  margin: 0;
  font-size: 0.82rem;
  color: #B0A8A0;
  line-height: 1.6;
}

/* 预览操作按钮 */
.pcc-tr-preview-actions {
  display: flex;
  gap: 10px;
  padding: 16px 20px;
  border-top: 1px solid rgba(240,160,100,0.08);
}
.pcc-tr-action-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 16px;
  border: none;
  border-radius: 12px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  font-family: inherit;
  letter-spacing: 0.3px;
}
.pcc-tr-btn-secondary {
  background: #F5F0EB;
  color: #6A5A4A;
  border: 1.5px solid #E8E0D8;
}
.pcc-tr-btn-secondary:hover {
  background: #EDE8E2;
  border-color: #D8D0C8;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.pcc-tr-btn-primary {
  background: linear-gradient(135deg, #F0A060, #E89050);
  color: #fff;
  box-shadow: 0 2px 8px rgba(240,160,100,0.2);
}
.pcc-tr-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(240,160,100,0.3);
}

/* ===== 兼容旧版 body 面板切换 ===== */
.pcc-translator-body {
  display: block;
  padding: 20px 28px 28px;
}
.pcc-translator-body > .func-panel {
  display: none;
}
.pcc-translator-body > .func-panel.active {
  display: block;
}

/* ===== 响应式 ===== */
@media (max-width: 900px) {
  .pcc-tr-workspace {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .pcc-tr-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px 20px 14px;
  }
  .pcc-tr-roles,
  .pcc-tr-funcs {
    justify-content: center;
  }
  .pcc-tr-header {
    padding: 20px 20px 16px;
  }
  .pcc-tr-body {
    padding: 0 20px 20px;
  }
  .pcc-tr-input-card {
    padding: 20px;
  }
  .pcc-tr-preview-card {
    min-height: 180px;
  }
  .pcc-dual-card {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .pcc-container {
    padding: 0 16px;
  }
  .pcc-tr-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 18px 18px 14px;
  }
  .pcc-tr-status {
    align-self: flex-start;
  }
  .pcc-tr-controls {
    padding: 10px 14px 12px;
    gap: 8px;
  }
  .pcc-tr-role {
    padding: 8px 14px;
    font-size: 0.82rem;
  }
  .pcc-tr-func {
    padding: 8px 12px;
    font-size: 0.75rem;
  }
  .pcc-tr-body {
    padding: 0 14px 18px;
  }
  .pcc-tr-workspace {
    gap: 16px;
  }
  .pcc-tr-input-card {
    padding: 16px;
  }
  .pcc-tr-textarea {
    min-height: 100px;
    padding: 14px;
  }
  .pcc-tr-submit {
    padding: 14px;
    font-size: 0.92rem;
  }
  .pcc-tr-title {
    font-size: 1.1rem;
  }
  .tone-btns {
    flex-direction: column;
  }
  .preview-actions {
    flex-direction: column;
  }
  .pcc-dialog-banner-overlay .vh-title {
    font-size: 1.3rem;
    letter-spacing: 2px;
  }
  .pcc-dialog-card {
    padding: 14px 16px;
  }
  .pcc-inline-card {
    flex-direction: column;
    text-align: center;
  }
  .pcc-inline-card-header {
    flex-direction: column;
  }
  .pcc-func-tabs {
    gap: 6px;
    padding: 4px;
    border-radius: 12px;
  }
  .func-tab {
    font-size: 0.78rem;
    padding: 10px 4px;
  }
  .pcc-role-switcher {
    gap: 8px;
    padding: 4px;
    border-radius: 12px;
  }
  .role-btn {
    padding: 10px 8px;
    font-size: 0.88rem;
  }
}
