/* static/css/style.css */
body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    font-size: 1rem;
    line-height: 1.5;
}

.announcement-card {
    transition: transform 0.2s, box-shadow 0.2s;
    border-radius: 8px;
    border: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

@media (max-width: 576px) {
    .announcement-item {
        padding: 0.6rem;
    }
    
    .announcement-item h5 {
        font-size: 1rem;
    }
}

.announcement-card:hover {
    transform: translateY(-2px);
    transition: all 0.2s ease;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.card-header {
    border-radius: 8px 8px 0 0 !important;
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.form-control:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* 评论表单样式 */
.comment-form textarea {
    min-height: 100px;
    border-radius: 8px;
    padding: 12px;
    border: 1px solid #ddd;
    transition: border-color 0.3s;
}

.comment-form textarea:focus {
    border-color: #4a90e2;
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
    outline: none;
}

.comment-form .btn-primary {
    background-color: #4a90e2;
    border: none;
    padding: 8px 20px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.comment-form .btn-primary:hover {
    background-color: #3a7bc8;
}

/* 按钮样式优化 */
.btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* 注册/登录表单样式 */
.auth-form .card {
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.auth-form .card-header {
    border-radius: 10px 10px 0 0 !important;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .navbar .d-flex {
        flex-direction: column;
        align-items: flex-end;
    }
    
    .navbar-text {
        margin-right: 0 !important;
        margin-bottom: 10px;
    }

    html {
        font-size: 14px;
    }
    
    h1 {
        font-size: 1.6rem;
    }
    
    h2 {
        font-size: 1.4rem;
    }
    
    h3 {
        font-size: 1.2rem;
    }
    
    .navbar-brand {
        font-size: 1rem;
    }
    
    .btn {
        padding: 0.75rem 1.2rem;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    html {
        font-size: 13px;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .card {
        margin-bottom: 10px;
    }
    
    .btn {
        padding: 0.35rem 0.65rem;
        font-size: 0.8rem;
    }
}


/* 评论删除按钮样式 */
.btn-outline-danger {
    border-color: #dc3545;
    color: #dc3545;
    transition: all 0.3s;
}

.btn-outline-danger:hover {
    background-color: #dc3545;
    color: white;
}

/* 评论区域样式 */
.comment-card {
    position: relative;
    border-left: 3px solid #4a90e2;
    transition: all 0.2s;
}

.comment-card:hover {
    border-left-color: #dc3545;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* 用户标识 */
.comment-author {
    font-weight: 600;
    color: #2c3e50;
}

/* 时间戳 */
.comment-time {
    font-size: 0.85rem;
    color: #7f8c8d;
}

.admin-action {
    border: 1px solid #d32f2f;
    color: #d32f2f;
    position: relative;
}

.admin-action:hover {
    background-color: #ffebee;
}

.admin-action::after {
    content: "管理";
    position: absolute;
    top: -8px;
    right: -8px;
    background: #d32f2f;
    color: white;
    font-size: 8px;
    padding: 2px 4px;
    border-radius: 4px;
    font-weight: bold;
}

/* static/css/style.css */
/* 编辑历史时间线样式 */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #e0e0e0;
}

.timeline-item {
    position: relative;
    margin-bottom: 20px;
}

.timeline-badge {
    position: absolute;
    left: -30px;
    top: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #4a90e2;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.timeline-content {
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 5px;
    padding: 15px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.timeline-content pre {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* 基础样式 */
body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* 欢迎横幅 */
.welcome-banner {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #0d6efd 0%, #198754 100%);
    opacity: 0.9;
}

/* 功能卡片 */
.feature-card {
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border-radius: 10px;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(13, 110, 253, 0.1);
    border-radius: 50%;
}

/* 最新更新 */
.latest-updates .card {
    border: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border-radius: 10px;
    overflow: hidden;
}

.latest-updates .card-header {
    border-radius: 10px 10px 0 0 !important;
}

/* 商品图片 */
.item-image {
    height: 150px;
    object-fit: cover;
    width: 100%;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .welcome-banner h1 {
        font-size: 2rem;
    }
    
    .feature-card {
        margin-bottom: 20px;
    }
    
    .community-stats .col-md-3 {
        margin-bottom: 15px;
    }
}

/* marketing */

.card-img-top {
    height: 200px;
    object-fit: cover;
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
}

.item-price {
    font-weight: 700;
    color: var(--accent-color);
    font-size: 1.25rem;
}

.comment-section {
    background-color: var(--light-bg);
    border-radius: 0.5rem;
    padding: 1.5rem;
}

.comment {
    border-left: 3px solid var(--primary-color);
    padding-left: 1rem;
    margin-bottom: 1rem;
}

.comment-meta {
    font-size: 0.85rem;
    color: var(--secondary-color);
}

.action-buttons .btn {
    margin-right: 0.5rem;
}


.list-group-item .badge.bg-danger {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(220, 53, 69, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
    }
}

.nav-link .position-absolute {
    top: 5px;
    right: 5px;
}
