/* 作者专区 - 布局样式 */

html {
    overflow-y: scroll;
}

body {
    overflow-x: hidden;
    background-color: #ffffff; /* 改为白色背景，与内容区保持一致 */
}

.author-layout {
    display: flex;
    min-height: calc(100vh - 80px); /* 确保最小高度 */
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    gap: 20px;
    background-color: transparent; /* 确保layout本身没有背景 */
    align-items: stretch; /* 让子元素等高 */
}

.author-content {
    flex: 1;
    background-color: #fff;
    border-radius: 10px;
    padding: 30px;
    overflow-y: auto;
    box-sizing: border-box;
    min-height: calc(100vh - 120px); /* 确保与侧边栏一致的最小高度 */
    border: 1px solid #e9ecef; /* 添加边框来区分内容区域 */
}

.content-section {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    padding: 20px;
    margin-bottom: 20px;
}

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

.section-header h2 {
    font-size: 20px;
    font-weight: 500;
    color: #333;
    margin: 0;
}

.section-title {
    font-size: 18px;
    font-weight: 500;
    color: #333;
    margin: 0 0 20px 0;
}

.header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.header-btn {
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid #ddd;
    background-color: #fff;
    color: #666;
}

.header-btn:hover {
    background-color: #f8f9fa;
    color: #5D9968;
    border-color: #5D9968;
}

.primary-btn {
    background-color: #5D9968;
    color: white;
    border-color: #5D9968;
}

.primary-btn:hover {
    background-color: #4C8055;
    color: white;
    border-color: #4C8055;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .author-layout {
        flex-direction: column;
        padding: 10px;
        min-height: auto;
    }
    
    .author-content {
        min-height: auto;
        padding: 20px;
    }
    
    .section-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .header-actions {
        width: 100%;
        justify-content: flex-start;
    }
}