/* 全局样式 */
body {
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background-color: #f8f9fa;
    color: #333;
}

/* 导航栏样式 */
.navbar-brand {
    font-size: 1.5rem;
}

.navbar .nav-link {
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
    transition: all 0.3s;
}

.navbar .nav-link:hover {
    color: #fff !important;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

/* 轮播图样式 */
.carousel-item {
    height: 500px;
}

.carousel-item img {
    height: 100%;
    object-fit: cover;
}

.carousel-caption {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    padding: 20px;
    bottom: 50px;
}

/* 卡片样式 */
.card {
    border: none;
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card-img-top {
    height: 200px;
    object-fit: cover;
}

/* 按钮样式 */
.btn-success {
    background-color: #28a745;
    border-color: #28a745;
}

.btn-outline-success {
    color: #28a745;
    border-color: #28a745;
}

.btn-outline-success:hover {
    background-color: #28a745;
    color: white;
}

/* 页脚样式 */
footer {
    background: linear-gradient(to right, #1e3c1e, #2d5a2d);
}

footer h5 {
    border-bottom: 2px solid #28a745;
    padding-bottom: 10px;
    display: inline-block;
}

footer a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

footer a:hover {
    color: white;
}

/* 表单样式 */
.form-control:focus {
    border-color: #28a745;
    box-shadow: 0 0 0 0.25rem rgba(40, 167, 69, 0.25);
}

/* 产品详情页 */
.product-detail-img {
    max-height: 400px;
    object-fit: cover;
}

/* 购物车页面 */
.cart-item {
    border-bottom: 1px solid #eee;
    padding: 15px 0;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .carousel-item {
        height: 300px;
    }

    .carousel-caption h2 {
        font-size: 1.5rem;
    }

    .carousel-caption p {
        font-size: 1rem;
    }
}

/* static/css/main.css 末尾添加 */
.chat-message {
    max-width: 80%;
}

.user-message {
    margin-left: auto;
}

.bot-message {
    margin-right: auto;
}

.message-content {
    word-wrap: break-word;
}


/* 添加花卉交互样式 */
.flower-item, .vase-item {
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
    border-radius: 8px;
}

.flower-item:hover {
    border-color: #28a745;
    transform: scale(1.05);
}

.vase-item:hover {
    border-color: #0d6efd;
    transform: scale(1.05);
}

.selected-vase {
    border: 3px solid #0d6efd !important;
    background-color: #e7f1ff;
    position: relative;
}

.selected-vase::after {
    content: "✓";
    position: absolute;
    top: 5px;
    right: 5px;
    background: #0d6efd;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

#design-area {
    min-height: 500px;
    background: #f8f9fa url('/static/images/design-bg.jpg') center/cover;
    border-radius: 0 0 8px 8px;
    position: relative;
    overflow: hidden;
}

.flower-in-design {
    filter: drop-shadow(0px 5px 10px rgba(0, 0, 0, 0.2));
    transition: transform 0.3s, filter 0.3s;
}

.flower-in-design:hover {
    transform: scale(1.1);
    filter: drop-shadow(0px 8px 15px rgba(0, 0, 0, 0.3));
    z-index: 100 !important;
}

.flower-controls {
    position: absolute;
    top: -10px;
    right: -10px;
    opacity: 0;
    transition: opacity 0.3s;
}

.flower-in-design:hover .flower-controls {
    opacity: 1;
}

#save-design {
    transition: all 0.3s;
}

#save-design:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 设计卡片样式 */
.design-card {
    transition: all 0.3s;
}

.design-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}