/**
 * Customer Reviews Block - Frontend Styles
 * 
 * 客户评价区块前端样式
 * 
 * @package LightingTheme
 * @since 2.0.0
 */

/* ============================================
   CSS 变量 - 设计令牌
   ============================================ */

.lt-customer-reviews {
    /* 基础颜色令牌 */
    --lt-reviews-primary: var(--lt-modern-primary, #e0a96d);
    --lt-reviews-secondary: var(--lt-modern-secondary, #6c757d);
    --lt-reviews-bg: var(--lt-modern-bg, #ffffff);
    --lt-reviews-text: #333333;
    --lt-reviews-text-light: #666666;
    --lt-reviews-text-muted: #999999;
    
    /* 阴影令牌 */
    --lt-reviews-shadow: var(--lt-modern-shadow, 0 4px 12px rgba(0,0,0,0.1));
    --lt-reviews-shadow-hover: 0 8px 25px rgba(0,0,0,0.15);
    
    /* 圆角令牌 */
    --lt-reviews-radius: var(--lt-modern-radius, 12px);
    --lt-reviews-radius-small: calc(var(--lt-reviews-radius) / 2);
    --lt-reviews-radius-large: calc(var(--lt-reviews-radius) * 1.5);
    
    /* 动画令牌 */
    --lt-reviews-transition: var(--lt-modern-transition, all 300ms cubic-bezier(0.4, 0, 0.2, 1));
    --lt-reviews-transition-fast: all 200ms ease;
    
    /* 间距令牌 */
    --lt-reviews-spacing: 20px;
    --lt-reviews-spacing-small: calc(var(--lt-reviews-spacing) / 2);
    --lt-reviews-spacing-large: calc(var(--lt-reviews-spacing) * 1.5);
    
    /* 星级颜色令牌 */
    --lt-star-filled: #ffc107;
    --lt-star-empty: #e9ecef;
    --lt-star-hover: #ffb300;
}

/* ============================================
   基础容器样式
   ============================================ */

.lt-customer-reviews {
    position: relative;
    width: 100%;
    padding: var(--lt-reviews-spacing-large);
    box-sizing: border-box;
}

/* 
 * 区块自适应父容器
 * 当放在网格单元格中时，自动填满可用空间
 * 不设置 max-width，让父容器（网格单元格）决定宽度
 */
.lt-grid-area .lt-customer-reviews,
.lt-grid-cell .lt-customer-reviews {
    max-width: none;
    margin: 0;
}

/* 独立使用时的默认最大宽度 */
.lt-customer-reviews:not(.lt-grid-area .lt-customer-reviews):not(.lt-grid-cell .lt-customer-reviews) {
    max-width: 1200px;
    margin: 0 auto;
}

/* 对齐方式 */
.lt-align-left { text-align: left; }
.lt-align-center { text-align: center; }
.lt-align-right { text-align: right; }

/* ============================================
   轮播容器
   ============================================ */

.lt-reviews-carousel {
    position: relative;
    overflow: hidden;
    border-radius: var(--lt-reviews-radius);
    width: 100%;
}

/* 轮播容器自适应父容器 */
.lt-grid-area .lt-reviews-carousel,
.lt-grid-cell .lt-reviews-carousel {
    /* 不设置固定高度，让内容自然撑开 */
}

.lt-reviews-track {
    display: flex;
    transition: transform 500ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.lt-reviews-slide {
    flex: 0 0 100%;
    padding: 0 var(--lt-reviews-spacing-small);
    box-sizing: border-box;
}

/* 多列显示 - 根据 data-slides-to-show 属性动态设置 */
/* 显示1个 - 默认值 */
.lt-reviews-carousel[data-slides-to-show="1"] .lt-reviews-slide {
    flex: 0 0 100%;
}

.lt-reviews-carousel[data-slides-to-show="2"] .lt-reviews-slide {
    flex: 0 0 50%;
}

.lt-reviews-carousel[data-slides-to-show="3"] .lt-reviews-slide {
    flex: 0 0 33.333%;
}

.lt-reviews-carousel[data-slides-to-show="4"] .lt-reviews-slide {
    flex: 0 0 25%;
}

.lt-reviews-carousel[data-slides-to-show="5"] .lt-reviews-slide {
    flex: 0 0 20%;
}

.lt-reviews-carousel[data-slides-to-show="6"] .lt-reviews-slide {
    flex: 0 0 16.666%;
}

.lt-reviews-carousel[data-slides-to-show="7"] .lt-reviews-slide {
    flex: 0 0 14.285%;
}

.lt-reviews-carousel[data-slides-to-show="8"] .lt-reviews-slide {
    flex: 0 0 12.5%;
}

.lt-reviews-carousel[data-slides-to-show="9"] .lt-reviews-slide {
    flex: 0 0 11.111%;
}

.lt-reviews-carousel[data-slides-to-show="10"] .lt-reviews-slide {
    flex: 0 0 10%;
}

/* ============================================
   评价卡片基础样式
   ============================================ */

.lt-review-card {
    position: relative;
    background: var(--lt-reviews-bg);
    border-radius: var(--lt-reviews-radius);
    padding: var(--lt-reviews-spacing-large);
    box-shadow: var(--lt-reviews-shadow);
    transition: var(--lt-reviews-transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.lt-review-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--lt-reviews-shadow-hover);
}

/* ============================================
   头像样式
   ============================================ */

.lt-review-avatar-wrapper {
    position: relative;
    margin-bottom: var(--lt-reviews-spacing);
    display: inline-block;
}

.lt-review-avatar {
    position: relative;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    border: 3px solid var(--lt-reviews-primary);
    transition: var(--lt-reviews-transition);
    cursor: pointer;
    z-index: 2;
}

.lt-review-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: var(--lt-reviews-transition);
}

.lt-review-avatar:hover {
    transform: scale(1.05);
    border-color: var(--lt-star-filled);
}

.lt-review-avatar:hover img {
    transform: scale(1.1);
}

/* 头像光晕呼吸效果 - 霓虹灯多彩版 */
.lt-review-avatar-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.4;
    filter: blur(25px);
    z-index: 1;
    transition: var(--lt-reviews-transition);
    /* 默认使用强调色 */
    background: var(--lt-accent-color, var(--lt-reviews-primary));
}

/* 悬停时启动霓虹灯效果 */
.lt-review-card:hover .lt-review-avatar-glow {
    opacity: 0.85;
    filter: blur(35px);
    width: 140%;
    height: 140%;
    animation: lt-neon-glow-rainbow 4s ease-in-out infinite;
}

/* 霓虹灯多彩呼吸动画 - 颜色循环变换 */
@keyframes lt-neon-glow-rainbow {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.7;
        background: #ff6b6b; /* 红色 */
        filter: blur(30px);
    }
    14% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.9;
        background: #ffa502; /* 橙色 */
        filter: blur(35px);
    }
    28% {
        transform: translate(-50%, -50%) scale(1.15);
        opacity: 0.95;
        background: #ffd93d; /* 黄色 */
        filter: blur(40px);
    }
    42% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.9;
        background: #6bcb77; /* 绿色 */
        filter: blur(35px);
    }
    57% {
        transform: translate(-50%, -50%) scale(1.15);
        opacity: 0.95;
        background: #4d96ff; /* 蓝色 */
        filter: blur(40px);
    }
    71% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.9;
        background: #9b59b6; /* 紫色 */
        filter: blur(35px);
    }
    85% {
        transform: translate(-50%, -50%) scale(1.15);
        opacity: 0.95;
        background: #e056fd; /* 粉紫色 */
        filter: blur(40px);
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.7;
        background: #ff6b6b; /* 回到红色 */
        filter: blur(30px);
    }
}

/* 备选：单色深度呼吸效果（使用强调色） */
.lt-customer-reviews--elegant .lt-review-card:hover .lt-review-avatar-glow {
    animation: lt-neon-glow-deep 2.5s ease-in-out infinite;
}

@keyframes lt-neon-glow-deep {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
        filter: blur(25px);
    }
    25% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.9;
        filter: blur(40px);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 1;
        filter: blur(50px);
    }
    75% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.9;
        filter: blur(40px);
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
        filter: blur(25px);
    }
}

/* 现代风格：使用渐变霓虹效果 */
.lt-customer-reviews--modern .lt-review-avatar-glow {
    background: var(--theme-gradient-primary, linear-gradient(135deg, #667eea 0%, #764ba2 100%));
}

.lt-customer-reviews--modern .lt-review-card:hover .lt-review-avatar-glow {
    animation: lt-neon-glow-gradient 3s ease-in-out infinite;
}

@keyframes lt-neon-glow-gradient {
    0% {
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
        opacity: 0.6;
        background: var(--theme-gradient-primary, linear-gradient(135deg, #667eea 0%, #764ba2 100%));
        filter: blur(30px);
    }
    33% {
        transform: translate(-50%, -50%) scale(1.25) rotate(120deg);
        opacity: 1;
        background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
        filter: blur(45px);
    }
    66% {
        transform: translate(-50%, -50%) scale(1.2) rotate(240deg);
        opacity: 0.9;
        background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
        filter: blur(40px);
    }
    100% {
        transform: translate(-50%, -50%) scale(1) rotate(360deg);
        opacity: 0.6;
        background: var(--theme-gradient-primary, linear-gradient(135deg, #667eea 0%, #764ba2 100%));
        filter: blur(30px);
    }
}

/* 卡片风格：脉冲霓虹效果 */
.lt-customer-reviews--card .lt-review-card:hover .lt-review-avatar-glow {
    animation: lt-neon-pulse 1.5s ease-in-out infinite;
}

@keyframes lt-neon-pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
        background: #e0a96d;
        filter: blur(25px);
        box-shadow: 0 0 20px rgba(224, 169, 109, 0.5);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.4);
        opacity: 1;
        background: #ff6b6b;
        filter: blur(50px);
        box-shadow: 0 0 60px rgba(255, 107, 107, 0.8);
    }
}

/* 简约风格：柔和呼吸 */
.lt-customer-reviews--minimal .lt-review-avatar-glow {
    opacity: 0.2;
    filter: blur(15px);
}

.lt-customer-reviews--minimal .lt-review-card:hover .lt-review-avatar-glow {
    animation: lt-neon-glow-soft 3s ease-in-out infinite;
}

@keyframes lt-neon-glow-soft {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.4;
        filter: blur(20px);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.15);
        opacity: 0.7;
        filter: blur(30px);
    }
}

/* ============================================
   星级评分样式
   ============================================ */

.lt-review-rating {
    margin-bottom: var(--lt-reviews-spacing);
}

.lt-star-rating {
    display: flex;
    gap: 4px;
    justify-content: center;
}

.lt-star {
    font-size: 20px;
    color: var(--lt-star-empty);
    transition: var(--lt-reviews-transition-fast);
    cursor: pointer;
    user-select: none;
}

.lt-star--filled {
    color: var(--lt-star-filled);
}

.lt-star:hover {
    color: var(--lt-star-hover);
    transform: scale(1.1);
}

/* ============================================
   客户信息样式（放在评分下面）
   ============================================ */

.lt-review-customer {
    text-align: center;
    margin-bottom: var(--lt-reviews-spacing);
}

/* 姓名和职位同行显示 */
.lt-customer-name-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.lt-customer-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--lt-reviews-text);
    margin: 0;
    letter-spacing: -0.02em;
}

.lt-customer-position {
    font-size: 0.95rem;
    color: var(--lt-reviews-text-light);
    font-weight: 500;
    position: relative;
    padding-left: 12px;
}

/* 姓名和职位之间的分隔符 */
.lt-customer-position::before {
    content: '·';
    position: absolute;
    left: 0;
    color: var(--lt-reviews-text-muted);
}

.lt-customer-company {
    font-size: 0.9rem;
    color: var(--lt-reviews-text-muted);
    margin: 0;
    font-weight: 400;
}

/* ============================================
   评价内容样式（放在最下面）
   ============================================ */

.lt-review-content {
    position: relative;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--lt-reviews-text);
    margin-top: auto;
    padding-top: var(--lt-reviews-spacing);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    width: 100%;
}

.lt-review-content p {
    margin: 0;
    width: 100%;
    /* 默认居中（单行时） */
    text-align: center;
}

/* 多行文本：左对齐 + 首行缩进 */
.lt-review-content p.lt-multiline {
    text-align: justify;
    text-indent: 2em;
}

/* 内联引号样式 */
.lt-quote {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.5em;
    color: var(--lt-reviews-primary);
    font-weight: bold;
    line-height: 1;
}

.lt-quote-open {
    margin-right: 2px;
}

.lt-quote-close {
    margin-left: 2px;
}

/* ============================================
   轮播控制器
   ============================================ */

.lt-reviews-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--lt-reviews-spacing);
    margin-top: var(--lt-reviews-spacing-large);
}

/* 网格单元格中的控制器样式 - 确保不被裁剪 */
.lt-grid-cell .lt-reviews-controls,
.lt-grid-area .lt-reviews-controls {
    position: relative;
    z-index: 10;
    /* 减少上边距，确保在有限空间内显示 */
    margin-top: var(--lt-reviews-spacing);
}

/* 箭头按钮 */
.lt-reviews-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: var(--lt-reviews-bg);
    color: var(--lt-reviews-primary);
    box-shadow: var(--lt-reviews-shadow);
    cursor: pointer;
    transition: var(--lt-reviews-transition);
    font-size: 18px;
}

.lt-reviews-arrow:hover {
    transform: translateY(-2px);
    box-shadow: var(--lt-reviews-shadow-hover);
    background: var(--lt-reviews-primary);
    color: white;
}

.lt-reviews-arrow:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.lt-reviews-arrow svg {
    width: 20px;
    height: 20px;
}

/* 指示点 */
.lt-reviews-dots {
    display: flex;
    gap: 8px;
}

.lt-reviews-dot {
    width: 12px;
    height: 12px;
    border: none;
    border-radius: 50%;
    background: var(--lt-star-empty);
    cursor: pointer;
    transition: var(--lt-reviews-transition-fast);
}

.lt-reviews-dot.is-active,
.lt-reviews-dot:hover {
    background: var(--lt-reviews-primary);
    transform: scale(1.2);
}

/* ============================================
   卡片样式变体
   ============================================ */

/* 默认风格（多彩霓虹） - 使用基础样式，头像光晕使用多彩霓虹动画 */
.lt-customer-reviews--default .lt-review-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid rgba(224, 169, 109, 0.1);
}

.lt-customer-reviews--default .lt-review-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff6b6b, #ffa502, #ffd93d, #6bcb77, #4d96ff, #9b59b6);
    background-size: 300% 100%;
    border-radius: var(--lt-reviews-radius) var(--lt-reviews-radius) 0 0;
    opacity: 0;
    transition: var(--lt-reviews-transition);
    animation: lt-rainbow-bar 3s linear infinite;
}

.lt-customer-reviews--default .lt-review-card:hover::before {
    opacity: 1;
}

@keyframes lt-rainbow-bar {
    0% { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
}

/* 优雅风格 */
.lt-customer-reviews--elegant .lt-review-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid rgba(224, 169, 109, 0.1);
}

.lt-customer-reviews--elegant .lt-review-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--lt-reviews-primary), var(--lt-reviews-secondary));
    border-radius: var(--lt-reviews-radius) var(--lt-reviews-radius) 0 0;
    opacity: 0;
    transition: var(--lt-reviews-transition);
}

.lt-customer-reviews--elegant .lt-review-card:hover::before {
    opacity: 1;
}

/* 简约风格 */
.lt-customer-reviews--minimal .lt-review-card {
    background: transparent;
    box-shadow: none;
    border: 2px solid var(--lt-star-empty);
    padding: var(--lt-reviews-spacing);
}

.lt-customer-reviews--minimal .lt-review-card:hover {
    border-color: var(--lt-reviews-primary);
    transform: none;
}

.lt-customer-reviews--minimal .lt-review-avatar {
    border-width: 2px;
}

.lt-customer-reviews--minimal .lt-review-avatar::after {
    display: none;
}

/* 现代风格 */
.lt-customer-reviews--modern .lt-review-card {
    background: var(--lt-reviews-bg);
    border-radius: var(--lt-reviews-radius-large);
    box-shadow: 
        0 4px 6px rgba(0, 0, 0, 0.05),
        0 10px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.lt-customer-reviews--modern .lt-review-card:hover {
    transform: translateY(-6px) scale(1.02);
}

.lt-customer-reviews--modern .lt-review-avatar {
    box-shadow: 
        0 8px 30px rgba(0, 0, 0, 0.12),
        inset 0 -2px 5px rgba(0, 0, 0, 0.05);
}

.lt-customer-reviews--modern .lt-customer-name {
    background: linear-gradient(135deg, var(--lt-reviews-text) 0%, var(--lt-reviews-text-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 卡片风格 */
.lt-customer-reviews--card .lt-review-card {
    background: var(--lt-reviews-bg);
    border-radius: var(--lt-reviews-radius-small);
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.1),
        0 8px 16px rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--lt-reviews-primary);
}

.lt-customer-reviews--card .lt-review-card:hover {
    border-left-width: 6px;
}

/* ============================================
   响应式设计
   ============================================ */

@media (max-width: 768px) {
    .lt-customer-reviews {
        padding: var(--lt-reviews-spacing);
    }
    
    .lt-review-card {
        padding: var(--lt-reviews-spacing);
    }
    
    .lt-review-content {
        font-size: 1rem;
    }
    
    .lt-customer-name {
        font-size: 1.1rem;
    }
    
    .lt-customer-company {
        font-size: 0.9rem;
    }
    
    .lt-star {
        font-size: 18px;
    }
    
    .lt-reviews-arrow {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .lt-reviews-arrow svg {
        width: 16px;
        height: 16px;
    }
    
    .lt-reviews-dot {
        width: 10px;
        height: 10px;
    }
    
    /* 
     * 移动端显示数量由 JS 动态控制
     * 根据 data-slides-to-show-mobile 属性设置
     * 不再强制单列显示
     */
}

@media (max-width: 480px) {
    .lt-quote {
        font-size: 1.3em;
    }
}

/* ============================================
   深色模式支持
   ============================================ */

@media (prefers-color-scheme: dark) {
    .lt-customer-reviews {
        --lt-reviews-bg: #1e1e1e;
        --lt-reviews-text: #f5f5f5;
        --lt-reviews-text-light: #cccccc;
        --lt-reviews-text-muted: #999999;
        --lt-star-empty: #444444;
    }
    
    .lt-customer-reviews--default .lt-review-card {
        background: linear-gradient(145deg, #2a2a2a 0%, #1e1e1e 100%);
        border-color: rgba(224, 169, 109, 0.2);
    }
    
    .lt-customer-reviews--elegant .lt-review-card {
        background: linear-gradient(145deg, #2a2a2a 0%, #1e1e1e 100%);
        border-color: rgba(224, 169, 109, 0.2);
    }
    
    .lt-customer-reviews--minimal .lt-review-card {
        border-color: #444444;
    }
    
    .lt-customer-reviews--modern .lt-review-card {
        background: linear-gradient(145deg, #2a2a2a 0%, #1e1e1e 100%);
        border-color: rgba(255, 255, 255, 0.05);
    }
    
    .lt-reviews-arrow {
        background: #2a2a2a;
        color: var(--lt-reviews-primary);
    }
}

/* ============================================
   动画效果
   ============================================ */

@keyframes lt-review-fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.lt-review-card {
    animation: lt-review-fade-in 600ms ease-out;
}

@keyframes lt-star-sparkle {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.2) rotate(180deg); }
}

.lt-star--filled:hover {
    animation: lt-star-sparkle 400ms ease-in-out;
}

/* ============================================
   编辑器专用样式
   ============================================ */

.lt-reviews-editor {
    border: 2px dashed #ddd;
    border-radius: var(--lt-reviews-radius);
    padding: var(--lt-reviews-spacing);
    background: #f9f9f9;
}

.lt-reviews-preview-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--lt-reviews-spacing);
    margin-top: var(--lt-reviews-spacing);
    padding: var(--lt-reviews-spacing-small);
    background: #f0f0f0;
    border-radius: var(--lt-reviews-radius-small);
}

.lt-preview-dots {
    display: flex;
    gap: 6px;
}

.lt-preview-dot {
    width: 8px;
    height: 8px;
    border: none;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: var(--lt-reviews-transition-fast);
}

.lt-preview-dot.is-active {
    background: var(--lt-reviews-primary);
}

.lt-preview-info {
    font-size: 0.85rem;
    color: var(--lt-reviews-text-light);
    font-weight: 500;
}

/* 输入框样式 */
.lt-review-content-input,
.lt-customer-name-input,
.lt-customer-position-input,
.lt-customer-company-input {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: var(--lt-reviews-radius-small);
    padding: 8px 12px;
    font-size: 1rem;
    transition: var(--lt-reviews-transition-fast);
}

.lt-review-content-input:focus,
.lt-customer-name-input:focus,
.lt-customer-position-input:focus,
.lt-customer-company-input:focus {
    border-color: var(--lt-reviews-primary);
    outline: none;
    box-shadow: 0 0 0 2px rgba(224, 169, 109, 0.2);
}

/* 编辑器中姓名和职位同行显示 */
.lt-reviews-editor .lt-customer-name-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.lt-reviews-editor .lt-customer-name-row .lt-customer-name-input,
.lt-reviews-editor .lt-customer-name-row .lt-customer-position-input {
    flex: 1;
}

.lt-reviews-editor .lt-customer-name-row .components-base-control {
    margin-bottom: 0;
    flex: 1;
}

.lt-avatar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    opacity: 0;
    transition: var(--lt-reviews-transition);
}

.lt-review-avatar:hover .lt-avatar-overlay {
    opacity: 1;
}


/* ============================================
   水平布局样式
   ============================================ */

/* 水平布局卡片 */
.lt-review-card--horizontal {
    display: flex;
    flex-direction: column;
}

/* 水平布局头部区域：头像 + 信息 */
.lt-review-header-horizontal {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 0;
}

/* 水平布局中的头像 */
.lt-review-card--horizontal .lt-review-avatar-wrapper {
    flex-shrink: 0;
    margin-bottom: 0;
}

/* 水平布局右侧信息区 */
.lt-review-info-horizontal {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

/* 水平布局姓名行：姓名 + 职位 */
.lt-review-info-horizontal .lt-review-name-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.lt-review-info-horizontal .lt-customer-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--lt-reviews-text);
    margin: 0;
}

.lt-review-info-horizontal .lt-customer-position {
    font-size: 0.95rem;
    color: var(--lt-reviews-text-light);
    margin: 0;
}

/* 水平布局公司名称 */
.lt-review-info-horizontal .lt-customer-company {
    font-size: 0.9rem;
    color: var(--lt-reviews-text-muted);
    margin: 0;
}

/* 水平布局星级评分 */
.lt-review-info-horizontal .lt-review-rating {
    margin-top: 4px;
}

.lt-review-info-horizontal .lt-star-rating {
    justify-content: flex-start;
}

/* 分隔线 */
.lt-review-divider {
    border: none;
    border-top: 1px solid var(--lt-reviews-border, #e0e0e0);
    margin: 16px 0;
    width: 100%;
}

/* 水平布局评价内容 */
.lt-review-card--horizontal .lt-review-content {
    margin-top: 0;
    padding-top: 0;
}

/* 编辑器中的水平布局样式 */
.lt-reviews-editor .lt-review-card--horizontal .lt-review-header-horizontal {
    margin-bottom: 0;
}

.lt-reviews-editor .lt-review-info-horizontal .components-base-control {
    margin-bottom: 8px;
}

.lt-reviews-editor .lt-review-info-horizontal .lt-customer-name-input,
.lt-reviews-editor .lt-review-info-horizontal .lt-customer-position-input {
    width: 100%;
}

.lt-reviews-editor .lt-review-info-horizontal .lt-customer-company-input {
    margin-bottom: 8px;
}

.lt-reviews-editor .lt-review-info-horizontal .lt-review-rating {
    margin-bottom: 0;
}

.lt-reviews-editor .lt-review-divider {
    margin: 16px 0;
}

/* 前端水平布局样式 */
.lt-customer-reviews--horizontal .lt-review-card {
    display: flex;
    flex-direction: column;
}

.lt-customer-reviews--horizontal .lt-review-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.lt-customer-reviews--horizontal .lt-review-avatar-wrapper {
    flex-shrink: 0;
    margin-bottom: 0;
}

.lt-customer-reviews--horizontal .lt-review-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
}

.lt-customer-reviews--horizontal .lt-review-info .lt-customer-name {
    margin: 0 0 4px 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.lt-customer-reviews--horizontal .lt-review-info .lt-customer-position {
    display: block;
    margin: 0 0 4px 0;
    font-size: 0.95rem;
    color: var(--lt-reviews-text-light);
    padding-left: 0;
}

/* 水平布局中职位不需要分隔符 */
.lt-customer-reviews--horizontal .lt-review-info .lt-customer-position::before {
    display: none;
}

.lt-customer-reviews--horizontal .lt-review-info .lt-customer-company {
    margin: 0;
}

.lt-customer-reviews--horizontal .lt-review-info .lt-star-rating {
    justify-content: flex-start;
    margin-top: 4px;
}

.lt-customer-reviews--horizontal .lt-review-divider {
    margin: 16px 0;
}

.lt-customer-reviews--horizontal .lt-review-content {
    margin-top: 0;
}

/* 水平布局多行文本也使用首行缩进 */
.lt-customer-reviews--horizontal .lt-review-content p.lt-multiline {
    text-align: justify;
    text-indent: 2em;
}

/* 水平布局响应式 - 保持水平布局，只调整间距 */
@media (max-width: 576px) {
    .lt-review-header-horizontal {
        gap: 12px;
    }
    
    .lt-review-info-horizontal .lt-review-name-row {
        gap: 8px;
    }
    
    .lt-customer-reviews--horizontal .lt-review-header {
        gap: 12px;
    }
    
    .lt-customer-reviews--horizontal .lt-review-info .lt-customer-meta {
        gap: 8px;
    }
}
