.page-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #eee;
}

.page-header h1 {
    font-size: 2rem;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: 10px;
}

.page-header h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: 10px;
}

.page-header h3 {
    font-size: 1rem;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #333333 0%, #2575fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: 10px;
}

.common-meta {
    display: flex;
    gap: 20px;
    color: #666;
    font-size: 0.95rem;
}

.common-content p {
    margin-bottom: 20px;
}

.section-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #2c3e50;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
}

.buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.buttons2 {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
}

.section-title i {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.generated-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 25px;
}

.content-item h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #4a6583;
}

.content-item p {
    margin-bottom: 15px;
    line-height: 1.6;
}

button {
    padding: 10px 20px;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 10px rgba(37, 117, 252, 0.25);
}

button i {
    font-size: 0.9rem;
}

button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(37, 117, 252, 0.35);
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.image-item {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.image-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.image-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.image-actions {
    padding: 15px;
    background: white;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.comments-table th,
.comments-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.comments-table th {
    background-color: #f8f9fc;
    font-weight: 600;
    color: #4a6583;
}

.comments-table tr:hover {
    background-color: #f5f9ff;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 1.6rem;
    }

    .common-meta {
        flex-direction: column;
        gap: 5px;
    }

    .generated-content {
        grid-template-columns: 1fr;
    }

    .image-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

@media (max-width: 480px) {
    .content-actions button {
        width: 100%;
    }
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    overflow: auto; /* 允许滚动 */
}
.modal-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
    cursor: grab; /* 提示可拖动 */
}
.modal-content img {
    width: auto; /* 保持原图比例 */
    height: auto;
    max-width: 100%;
    max-height: 90vh; /* 限制最大高度 */
    display: block;
    margin: 0 auto;
    user-select: none; /* 防止拖动时选中文本 */
}
.close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
}

/* 拖动相关样式 */
.modal-content.dragging {
    cursor: grabbing;
}
