/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 举报按钮样式 */
.report-button {
    position: relative;
    float: right;
    margin-top: 20px;
    margin-bottom: 20px;
    margin-right: 20px;
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(220, 53, 69, 0.2);
    transition: all 0.3s ease;
    z-index: 10;
    opacity: 0.8;
}

.report-button:hover {
    background-color: #c82333;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(220, 53, 69, 0.3);
    opacity: 1;
}

.report-button:active {
    transform: translateY(0);
}

/* 举报模态框内容样式 */
.report-modal-content {
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
}

/* 举报模态框标题 */
.report-modal-content h3 {
    margin-bottom: 20px;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

/* 举报模态框表单组 */
.report-form-group {
    margin-bottom: 20px;
}

/* 举报模态框标签 */
.report-form-group label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
}

/* 举报模态框文本域 */
#report-content {
    width: 100%;
    height: 120px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    resize: vertical;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

#report-content:focus {
    outline: none;
    border-color: #1890ff;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.1);
}

/* 举报模态框按钮组 */
.report-modal-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 20px;
}

/* 举报模态框按钮 */
.report-modal-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* 举报模态框提交按钮 */
#submit-report-btn {
    background-color: #1890ff;
    color: white;
}

#submit-report-btn:hover {
    background-color: #40a9ff;
    transform: translateY(-1px);
}

/* 举报模态框取消按钮 */
#cancel-report-btn {
    background-color: #f0f0f0;
    color: #333;
}

#cancel-report-btn:hover {
    background-color: #e0e0e0;
    transform: translateY(-1px);
}

/* 举报模态框关闭按钮 */
#close-report-modal {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    font-size: 20px;
    color: #999;
    cursor: pointer;
    transition: color 0.3s ease;
}

#close-report-modal:hover {
    color: #333;
}

/* 动画定义 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 骨架屏加载动画 */
@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', Arial, sans-serif;
    color: #333;
    background-color: #f5f5f5;
    line-height: 1.6;
}

/* 主容器布局 */
.profile-container {
    display: flex;
    min-height: 100vh;
    max-width: 1550px;
    margin: 0 auto;
    background-color: white;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    position: relative;
}

/* 汉堡菜单按钮 */
.hamburger-menu {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 32px;
    height: 26px;
    display: none;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    background: none;
    border: none;
    z-index: 1001;
    padding: 0;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    padding: 4px;
}

.hamburger-menu span {
    width: 100%;
    height: 4px;
    background-color: #007bff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* 汉堡菜单激活状态 */
.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* 左侧导航栏样式 */
.sidebar {
    width: 280px;
    background-color: #f8f9fa;
    border-right: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1000;
}

/* 遮罩层样式 */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    transition: opacity 0.3s ease;
}

/* 响应式布局 */
@media (max-width: 768px) {
    /* 返回首页按钮在小屏幕时恢复原大小 */
    .back-btn {
        padding: 10px 20px;
        font-size: 16px;
        border-radius: 4px;
    }
    /* 显示汉堡菜单 */
    .hamburger-menu {
        display: flex;
    }
    
    /* 显示侧边栏关闭按钮 */
    .sidebar-close-btn {
        display: flex;
    }
    
    /* 显示遮罩层 */
    .sidebar-overlay {
        display: none;
    }
    
    .sidebar-overlay.active {
        display: block;
    }
    
    /* 隐藏侧边栏 */
    .sidebar {
        position: fixed;
        left: -240px;
        top: 0;
        height: 100vh;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        width: 240px; /* 减小侧边栏宽度 */
    }
    
    /* 侧边栏展开状态 */
    .sidebar.open {
        left: 0;
    }
    
    /* 内容区域适应全屏 */
    .content {
        padding: 20px;
        width: 100%;
        margin-left: 0;
        transition: all 0.3s ease;
    }
    
    /* 调整表单和元素大小 */
    .form-group {
        margin-bottom: 15px;
    }
    
    .form-group label {
        width: 120px;
        font-size: 14px;
    }
    
    .form-group input, 
    .form-group textarea {
        flex: 1;
        min-width: 0;
    }
    
    /* 调整侧边栏头部样式 */
    .sidebar-header {
        padding: 15px;
    }
    
    .sidebar-header h3 {
        font-size: 16px;
    }
    
    /* 调整导航项样式 */
    .sidebar-nav ul li a {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    /* 调整评论卡片在小屏幕状态下的间距 */
    .work-card-container {
        width: calc(50% - 15px) !important;
        margin: 0 7.5px 20px !important;
    }
    
    .work-card {
        width: 100% !important;
    }
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-header h3 {
    color: #007bff;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

/* 侧边栏关闭按钮样式 */
.sidebar-close-btn {
    background: none;
    border: none;
    color: #6c757d;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 4px;
    transition: all 0.3s ease;
}

/* 大屏幕时隐藏侧边栏关闭按钮 */
@media (min-width: 769px) {
    .sidebar-close-btn {
        display: none;
    }
}

.sidebar-close-btn:hover {
    background-color: #e9ecef;
    color: #495057;
}

.sidebar-nav {
    flex: 1;
    padding: 20px 0;
}

.sidebar-nav ul {
    list-style: none;
}

.sidebar-nav li {
    margin: 0;
}

.nav-item {
    display: block;
    padding: 15px 25px;
    color: #555;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.nav-item:hover {
    background-color: #e9ecef;
    color: #007bff;
}

.nav-item.active {
    background-color: #e3f2fd;
    color: #007bff;
    border-left-color: #007bff;
    font-weight: 500;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid #e0e0e0;
}

.back-btn {
    width: auto;
    padding: 15px 30px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 18px;
    transition: background-color 0.3s ease;
}

.back-btn:hover {
    background-color: #0056b3;
}

/* 右侧内容区域样式 */
.content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    transition: all 0.3s ease;
}

/* 小屏幕设备优化 */
@media (max-width: 640px) {
    .content {
        padding: 15px;
    }
    
    .works-list,
    .reviews-list {
        gap: 15px; /* 与需求卡片间距一致 */
    }
    
    .work-card,
    .work-card-container {
        width: 100%;
        min-width: 200px; /* 与需求卡片最小宽度一致 */
        max-width: 300px; /* 与需求卡片最大宽度一致 */
        /* 评论卡片高度设置为宽度的3/4 */
        aspect-ratio: 4/3;
        max-height: none;
    }
    
    /* 小屏幕设备上优化卡片内容布局 */
    .work-info {
        padding: 15px 15px 30px;
        min-height: 120px;
    }
    
    .work-cover {
        height: auto; /* 让高度根据aspect-ratio自动调整 */
    }
    
    /* 调整标题文字大小 */
    .work-info h4 {
        font-size: 16px; /* 与需求卡片标题大小一致 */
        line-height: 1.6;
        max-height: 3.2em;
    }
    
    /* 调整标签和时间文字大小 */
    .work-tag,
    .work-date {
        font-size: 12px;
    }
}

/* 响应式布局 - 确保内容区域在桌面端能正确排列 */
@media (min-width: 769px) {
    .content {
        margin-left: 0;
    }
}

.section {
    padding: 20px;
    background-color: #fff;
    display: none;
}

.section.active {
    display: block;
    animation: fadeIn 0.5s ease;
    border: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section h2 {
    color: #333;
    font-size: 24px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
}

/* 小屏幕设备上为标题添加顶部边距，避免被汉堡菜单遮挡 */
@media (max-width: 768px) {
    .section h2 {
        margin-top: 20px;
    }
}

.section p {
    margin-bottom: 20px;
    color: #666;
}



/* 作品列表样式 */
.works-container {
    margin-top: 20px;
}

.works-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    max-width: 100%;
}

/* 评论列表样式 */
.reviews-container {
    margin-top: 20px;
}

.reviews-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    max-width: 100%;
}

/* 我发布的问答列表样式 */
.questions-list {
    max-height: 500px;
    overflow-y: auto;
    padding: 10px;
}

/* 加载状态和占位符样式 */
.loading-message,
.placeholder {
    width: 100%;
    text-align: center;
    padding: 20px;
    color: #666;
    font-size: 14px;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin: 10px 0;
}

/* 骨架屏样式 */
.works-skeleton {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.works-skeleton > div {
    height: 300px;
    background: linear-gradient(
        90deg,
        #f0f0f0 25%,
        #e0e0e0 50%,
        #f0f0f0 75%
    );
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 8px;
}

/* 作品卡片样式 - 与需求提问卡片保持一致 */
.work-card {
    background-color: white;
    border: 1px solid #eee;
    border-radius: 8px;
    text-decoration: none !important;
    color: inherit;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
    cursor: pointer;
    position: relative;
    /* 与需求提问卡片保持一致的尺寸 */
    flex: 1;
    min-width: 200px;
    max-width: 300px;
    height: auto;
    min-height: 300px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
}

.work-card:link, .work-card:visited, .work-card:hover, .work-card:active {
    text-decoration: none !important;
    color: inherit !important;
}

.work-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* 封面图片部分 */
.work-cover {
    width: 100%;
    height: 140px;
    overflow: hidden;
    background-color: #f5f5f5;
}

.work-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 保持宽高比并填满容器 */
    transition: transform 0.3s ease, opacity 0.3s ease-in-out;
    opacity: 1;
}

.work-card:hover .work-cover img {
    transform: scale(1.05); /* 悬停时图片轻微放大 */
}

/* 信息部分 - 白底 */
.work-info {
    width: 100%;
    padding: 15px 15px 30px;
    background-color: white;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    min-height: 120px;
    overflow: hidden;
}

/* 作品卡片容器 - 用于包含卡片和删除按钮 */
.work-card-container {
    position: relative;
    margin-bottom: 15px;
    display: inline-block;
    vertical-align: top;
    /* 与需求提问卡片保持一致的尺寸 */
    flex: 1;
    min-width: 200px;
    max-width: 300px;
}

.work-card {
    position: relative;
}

/* 删除按钮容器 */
.work-delete-btn-container {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
}

/* 评论卡片状态角标 */
.work-status-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    z-index: 5;
    height: 18px;
    line-height: 18px;
}

.work-status-badge.published {
    background-color: #e8f5e8;
    color: #2e7d32;
}

.work-status-badge.unpublished {
    background-color: #fff3e0;
    color: #ef6c00;
}

/* 删除按钮样式 */
.work-delete-btn {
    background-color: rgba(255, 77, 79, 0.9);
    color: white;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 18px;
    line-height: 1;
    text-align: center;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.work-delete-btn:hover {
    background-color: rgba(255, 0, 0, 0.9);
    transform: scale(1.1);
}

.work-info h4 {
    color: #333;
    font-size: 16px;
    margin: 0 0 8px 0;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    max-height: 3.2em;
    line-height: 1.6;
    max-width: 100%;
    word-break: keep-all;
    overflow-wrap: break-word;
}

/* 标签样式 */
.work-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    margin-bottom: 8px;
    overflow: hidden;
    max-height: 48px;
    flex-shrink: 0;
}

/* 时间信息区域 */
.work-date {
    color: #999;
    font-size: 12px;
    margin: 0;
    line-height: 1.4;
    white-space: normal;
    overflow: hidden;
    max-height: 1.8em;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    line-clamp: 1;
    flex-shrink: 0;
    margin-bottom: auto;
}

.work-tag {
    background-color: #f0f0f0;
    color: #666;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 10px;
    white-space: nowrap;
}

/* 作品内容样式 */
.work-card-content h4 {
    color: #333;
    font-size: 18px;
    margin-bottom: 12px;
    font-weight: 600;
    word-break: keep-all;
    overflow-wrap: break-word;
}

/* 产品名称样式 - 评论卡片 */
.review-product-name {
    font-size: 12px;
    color: #999;
    position: absolute;
    bottom: 10px;
    left: 15px;
    right: 70px;
    height: 18px;
    line-height: 18px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin: 0;
    z-index: 1;
}

/* 产品名称样式 - 需求卡片 */
.question-product-name {
    font-size: 12px;
    color: #999;
    margin-top: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.work-card-content p {
    color: #666;
    font-size: 14px;
    margin-bottom: 8px;
    line-height: 1.5;
}

/* 加载和空状态消息样式 */
.loading-message, .empty-message {
    width: 100%;
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-size: 16px;
}

.empty-message a {
    color: #007bff;
    text-decoration: none;
}

.empty-message a:hover {
    text-decoration: underline;
}

.work-item {
    background-color: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 15px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    width: calc(33.333% - 10px);
    min-width: 280px;
    text-decoration: none !important;
    color: inherit;
    display: block;
}

.work-item:link, .work-item:visited, .work-item:hover, .work-item:active {
    text-decoration: none !important;
    color: inherit !important;
}

/* 创建作品/评论卡片样式 - 确保优先级并直接应用 */
.work-item.create-work-card,
.create-work-card {
    border: 2px dashed #007bff !important;
    background-color: #f0f7ff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    min-height: 230px !important;
    width: 30% !important; /* 调整为长矩形，占据整个宽度 */
    max-width: 900px !important;
    min-width: 300px !important;
    border-radius: 8px !important;
    padding: 12px !important;
    margin-bottom: 20px !important;
    transition: all 0.3s ease !important;
}

/* 创建评论卡片样式 - 与创建提问卡片大小相同 */
.create-review-card {
    border: 2px dashed #007bff !important;
    background-color: #f0f7ff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    min-height: 120px !important;
    width: 33.333% !important;
    max-width: 300px !important;
    min-width: 200px !important;
    border-radius: 8px !important;
    padding: 12px !important;
    margin-bottom: 20px !important;
    transition: all 0.3s ease !important;
}

.create-work-content {
    text-align: center !important;
    padding: 20px !important;
    width: 100% !important;
}

.create-work-content .create-work-icon {
    font-size: 48px !important;
    color: #007bff !important;
    margin-bottom: 10px !important;
    font-weight: 300 !important;
    display: block !important;
}

.create-work-content h4 {
    color: #007bff !important;
    margin-bottom: 8px !important;
    font-size: 18px !important;
}

.create-work-content p {
    color: #666 !important;
    font-size: 14px !important;
    margin: 0 !important;
}

.work-item.create-work-card:hover {
    background-color: #e3f2fd !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.2) !important;
}



.placeholder {
    text-align: center;
    color: #999;
    font-style: italic;
    padding: 40px 0;
}

/* 个人信息表单样式 */
.info-form {
    max-width: 600px;
    margin-top: 20px;
}

.form-group {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background-color: white;
    border-radius: 6px;
}

.form-group.flex-column {
    flex-direction: column;
    align-items: flex-start;
}

/* 用户头像样式 */
.user-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e0e0e0;
    transition: border-color 0.3s ease;
}

.user-avatar:hover {
    border-color: #007bff;
}

/* 设置表单样式 */
.settings-form .form-group {
    margin-bottom: 20px;
    display: flex;
    justify-content: flex-start;
}

/* 操作按钮样式 */
.action-btn {
    padding: 10px 20px;
    font-size: 16px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    min-width: 150px;
    background-color: #f8f9fa;
    color: #555;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 编辑图标样式 */
.edit-icon {
    width: 16px;
    height: 16px;
    vertical-align: middle;
}

/* 退出登录图标样式 */
.logout-icon {
    width: 16px;
    height: 16px;
    vertical-align: middle;
}

.action-btn:hover {
    background-color: #e3f2fd;
}

/* 退出登录按钮特殊样式 */
.logout-btn {
    background-color: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
    position: relative;
    z-index: 1003; /* 确保按钮在所有元素之上 */
    cursor: pointer;
    pointer-events: auto;
}

.logout-btn:hover {
    background-color: #f5c6cb;
    color: #721c24;
}

/* 提示文字样式 */
.note-text {
    margin-top: 10px;
    margin-left: 20px;
    font-size: 14px;
    color: #666;
    font-style: italic;
    line-height: 1.5;
}

/* 模态框样式 */
.modal-overlay,
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1002;
}

.modal-overlay.active,
.modal.active {
    display: flex;
}

.modal-content {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    padding: 20px 24px 16px;
    border-bottom: 1px solid #e0e0e0;
}

.modal-header h3 {
    color: #333;
    font-size: 20px;
    margin: 0;
    font-weight: 600;
}

.modal-body {
    padding: 20px 24px;
}

.modal-footer {
    padding: 16px 24px 20px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* 模态框中的输入框样式 */
.modal-body .form-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 16px;
    padding: 0;
    background-color: transparent;
}

.modal-body .form-group label {
    width: auto;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
}

.modal-body .form-group input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.modal-body .form-group input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.1);
}

/* 模态框中的textarea样式 */
.modal-body .form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
}

.modal-body .form-group textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.1);
}

/* 发送建议模态框按钮样式 */
.modal-btn {
    padding: 10px 20px;
    font-size: 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    min-width: 80px;
}

.cancel-btn {
    background-color: #f8f9fa;
    color: #555;
    border: 1px solid #e0e0e0;
}

.cancel-btn:hover {
    background-color: #e9ecef;
}

.submit-btn {
    background-color: #007bff;
    color: white;
}

.submit-btn:hover {
    background-color: #0056b3;
}

/* 模态框按钮样式 */
.modal-btn, .btn-primary, .btn-secondary {
    padding: 10px 20px;
    font-size: 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    min-width: 80px;
}

.btn-primary {
    background-color: #007bff;
    color: white;
}

.btn-primary:hover {
    background-color: #0056b3;
}

.btn-primary:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
}

.btn-secondary {
    background-color: #f8f9fa;
    color: #555;
    border: 1px solid #e0e0e0;
}

.btn-secondary:hover {
    background-color: #e9ecef;
}

/* 头像预览容器样式 */
.avatar-preview-container {
    margin-top: 15px;
    text-align: center;
}

.avatar-preview {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ddd;
    margin: 0 auto;
}

/* 加载指示器样式 */
.loading-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 15px;
    color: #666;
    font-size: 14px;
}

.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 8px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 空消息样式 */
.empty-message {
    text-align: center;
    padding: 20px;
    color: #666;
    font-size: 16px;
    margin-bottom: 20px;
    white-space: pre-line; /* 允许换行 */
}

/* 选项卡样式 */
.tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.tab-item {
    padding: 10px 20px;
    margin-right: 5px;
    cursor: pointer;
    border: none;
    background-color: transparent;
    color: #666;
    font-size: 16px;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.tab-item:hover {
    color: #007bff;
    border-bottom-color: #007bff;
}

.tab-item.active {
    color: #007bff;
    border-bottom-color: #007bff;
    font-weight: 500;
}

/* 错误消息样式 */
.error-message {
    color: #dc3545;
    font-size: 14px;
    margin-top: 8px;
    min-height: 20px;
}

/* 提问列表样式 */
#questions-section {
    padding: 20px;
}

.questions-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

/* 提问卡片状态角标 */
.question-status-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    z-index: 5;
}

.question-status-badge.published {
    background-color: #e8f5e8;
    color: #2e7d32;
}

.question-status-badge.unpublished {
    background-color: #fff3e0;
    color: #ef6c00;
}

.question-item {
    position: relative;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 15px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;
    flex: 1;
    min-width: 200px;
    max-width: 300px;
    box-sizing: border-box;
}

.question-item:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.question-item h4 {
    margin: 0;
    color: #333;
    font-size: 16px;
    font-weight: 600;
}

.question-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.delete-question-btn {
    background-color: #ff4d4f;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 18px;
    line-height: 20px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    transition: background-color 0.3s;
}

.delete-question-btn:hover {
    background-color: #ff7875;
}

.question-date {
    margin: 0;
}
/* 空提问提示样式 */
.empty-message {
    text-align: center;
    color: #999;
    margin: 20px 0;
    font-size: 14px;
    color: #999;
}

/* 创建提问卡片样式 */
.question-card.create-question-card,
.create-question-card {
    border: 2px dashed #007bff !important;
    background-color: #f0f7ff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    min-height: 120px !important;
    flex: 1 !important;
    min-width: 200px !important;
    max-width: 300px !important;
    border-radius: 8px !important;
    padding: 12px !important;
    transition: all 0.3s ease !important;
}

.create-card-content {
    text-align: center !important;
    padding: 20px !important;
    width: 100% !important;
}

.create-card-content .create-icon {
    font-size: 48px !important;
    color: #007bff !important;
    margin-bottom: 10px !important;
    font-weight: 300 !important;
    display: block !important;
}

.create-card-content .create-text {
    color: #007bff !important;
    margin-bottom: 8px !important;
    font-size: 18px !important;
    font-weight: 500 !important;
    margin: 0 !important;
}

.question-card.create-question-card:hover,
.create-question-card:hover,
.create-review-card:hover {
    background-color: #e3f2fd !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.2) !important;
}

.form-group label {
    width: 120px;
    font-weight: 500;
    color: #555;
}

.form-group span {
    color: #333;
    font-size: 16px;
}



/* 模态对话框样式 */
.modal {
    display: none; /* 默认隐藏 */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex; /* 激活时显示 */
}

.modal-content {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    width: 90%;
    max-width: 450px;
    overflow: hidden;
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.modal-header h3 {
    margin: 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.modal-body {
    padding: 20px;
    color: #666;
    line-height: 1.5;
}

.modal-footer {
    padding: 15px 20px;
    background-color: #f8f9fa;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.modal-footer .action-btn {
    margin: 0;
    padding: 8px 20px;
    font-size: 14px;
}

/* 提问详情对话框样式 */
.user-info-section {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.user-info-section .avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f5f5f5;
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

.user-info-section .avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-info-section .avatar-placeholder {
    font-size: 24px;
    font-weight: 600;
    color: #888;
}

.user-info-section .username {
    font-size: 17px;
    font-weight: 600;
    color: #222;
}

.question-info-section h4 {
    margin-top: 0;
    margin-bottom: 18px;
    color: #222;
    font-size: 19px;
    font-weight: 600;
    line-height: 1.4;
}

.question-info-section #detail-content {
    line-height: 1.7;
    color: #555;
    word-break: break-word;
    font-size: 15px;
    background-color: #fafafa;
    padding: 18px;
    border-radius: 8px;
    border: 1px solid #f0f0f0;
}

/* 模态框样式增强 */
.modal-content {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    width: 90%;
    max-width: 550px;
    overflow: hidden;
    animation: modalFadeIn 0.3s ease-out;
}

.modal-header {
    padding: 22px 24px;
    border-bottom: 1px solid #e0e0e0;
    background-color: #fafafa;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: #222;
    font-size: 20px;
    font-weight: 600;
}

.modal-body {
    padding: 24px;
    color: #666;
    line-height: 1.5;
}

/* 关闭按钮样式 */
.close-btn {
    background: none;
    border: none;
    font-size: 28px;
    color: #888;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.close-btn:hover {
    background-color: #f0f0f0;
    color: #555;
}
