/* 完整样式文件 - 异步加载 */
/* 全局恋爱风格样式 */
body {
    background-color: #fff5f7;
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

.bg {
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(255, 105, 180, 0.1);
    padding: 25px;
    margin-bottom: 30px;
}

h1, h2, h3 {
    color: #ff6b8b;
    font-weight: 600;
}

/* 评论区恋爱风格 */
.comments-container {
    margin: 30px 0;
    position: relative;
}

.comments-container::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #ffb6c1, #ff6b8b, #ffb6c1);
    transform: translateX(-50%);
    opacity: 0.3;
}

.leavform {
    display: flex;
    margin-bottom: 25px;
    position: relative;
    animation: fadeInUp 0.5s ease-out;
}

/* 左右交替布局 */
.leavform:nth-child(odd) {
    justify-content: flex-start;
}

.leavform:nth-child(even) {
    justify-content: flex-end;
}

.comment-bubble {
    max-width: 70%;
    position: relative;
    padding: 15px;
    border-radius: 18px;
    box-shadow: 0 3px 10px rgba(255, 105, 180, 0.2);
    background: #fff;
    border: 1px solid rgba(255, 182, 193, 0.5);
}

/* 左侧评论气泡样式 */
.leavform:nth-child(odd) .comment-bubble {
    background: linear-gradient(135deg, #fff, #fff8f9);
    margin-left: 15px;
}

.leavform:nth-child(odd) .comment-bubble::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 15px;
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-right: 10px solid #fff;
    filter: drop-shadow(-2px 0 2px rgba(255, 105, 180, 0.1));
}

/* 右侧评论气泡样式 */
.leavform:nth-child(even) .comment-bubble {
    background: linear-gradient(135deg, #fff8f9, #fff);
    margin-right: 15px;
}

.leavform:nth-child(even) .comment-bubble::before {
    content: '';
    position: absolute;
    right: -10px;
    top: 15px;
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 10px solid #fff8f9;
    filter: drop-shadow(2px 0 2px rgba(255, 105, 180, 0.1));
}

/* 用户信息样式 */
.user_info {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.user_info img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 105, 180, 0.3);
    box-shadow: 0 2px 5px rgba(255, 105, 180, 0.2);
    transition: all 0.3s ease;
}

.user_info:hover img {
    transform: scale(1.1);
    box-shadow: 0 3px 10px rgba(255, 105, 180, 0.4);
    border-color: rgba(255, 105, 180, 0.6);
}

.name {
    margin-left: 10px;
    font-weight: 600;
    color: #ff6b8b;
    font-size: 15px;
}

/* 评论内容样式 */
.text {
    color: #666;
    line-height: 1.6;
    font-size: 14px;
    padding: 5px 0;
}

/* 评论时间样式 */
.MsgTopInfo {
    text-align: right;
    margin-bottom: 8px;
}

.time {
    font-size: 12px;
    color: #999;
}

.time .yuan {
    display: inline-block;
    width: 4px;
    height: 4px;
    background: #ff6b8b;
    border-radius: 50%;
    margin: 0 8px;
    vertical-align: middle;
}

/* ===== 博主标签样式 ===== */
.blogger-tag {
    display: inline-block;
    margin-left: 8px;
    background: linear-gradient(45deg, #ff6b8b, #ff8e9e);
    color: white;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(255, 105, 180, 0.3);
    animation: pulse 1.5s infinite;
}

/* ===== 女主标签样式 ===== */
.heroine-tag {
    display: inline-flex;
    align-items: center;
    margin-left: 8px;
    background: linear-gradient(135deg, #ffb6c1, #ffc0cb);
    color: white;
    padding: 2px 10px 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(255, 182, 193, 0.4);
}

.heroine-tag::before {
    content: '♥';
    margin-right: 4px;
    font-size: 12px;
    animation: heartbeat 1.2s infinite;
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 2px 5px rgba(255, 105, 180, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 3px 8px rgba(255, 105, 180, 0.5);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 2px 5px rgba(255, 105, 180, 0.3);
    }
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    25% {
        transform: scale(1.2);
    }
    50% {
        transform: scale(0.9);
    }
    75% {
        transform: scale(1.1);
    }
}

/* ===== 表单样式 ===== */
#commentForm {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px dashed #ffb6c1;
}

.inputbox {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.inputbox .avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 105, 180, 0.5);
    box-shadow: 0 3px 10px rgba(255, 105, 180, 0.2);
    transition: all 0.3s ease;
}

.inputbox:hover .avatar {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(255, 105, 180, 0.3);
    border-color: rgba(255, 105, 180, 0.7);
}

.inputbox input {
    flex: 1;
    margin-left: 15px;
    padding: 10px 15px;
    border: 1px solid #ffd1dc;
    border-radius: 20px;
    outline: none;
    transition: all 0.3s ease;
}

.inputbox input:focus {
    border-color: #ff6b8b;
    box-shadow: 0 0 0 2px rgba(255, 107, 139, 0.2);
}

#wenben {
    width: 100%;
    padding: 15px;
    border: 1px solid #ffd1dc;
    border-radius: 15px;
    min-height: 120px;
    resize: vertical;
    outline: none;
    transition: all 0.3s ease;
}

#wenben:focus {
    border-color: #ff6b8b;
    box-shadow: 0 0 0 3px rgba(255, 107, 139, 0.2);
}

.input-sub {
    text-align: right;
    margin-top: 15px;
}

.tijiao {
    background: linear-gradient(135deg, #ff6b8b, #ff8e9e);
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(255, 105, 180, 0.3);
}

.tijiao:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 105, 180, 0.4);
    background: linear-gradient(135deg, #ff5b7b, #ff7e8e);
}

.tijiao:active {
    transform: translateY(0);
}

/* ===== 生成一言按钮样式 ===== */
.generate-quote-btn {
    background: linear-gradient(135deg, #ffb6c1, #ff6b8b);
    color: white;
    border: none;
    border-radius: 20px;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(255,105,180,0.3);
    margin: 10px 0;
}

.generate-quote-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255,105,180,0.4);
    background: linear-gradient(135deg, #ffa6b1, #ff5b7b);
}

.generate-quote-btn:active {
    transform: translateY(0);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .comment-bubble {
        max-width: 85%;
    }
    
    .leavform:nth-child(odd) .comment-bubble {
        margin-left: 5px;
    }
    
    .leavform:nth-child(even) .comment-bubble {
        margin-right: 5px;
    }
}