
/* 基本重置和通用样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    color: #ffffff;
    overflow-x: hidden;
    background-color: #090926;
}

/* 背景 */
.editor-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image: url('../assets/images/');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 10, 42, 0.85) 0%, rgba(20, 20, 50, 0.7) 100%);
    z-index: 0;
}

/* 装饰元素 */
.decoration-elements {
    position: fixed;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.tech-circles {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    border: 1px solid rgba(73, 160, 255, 0.2);
    border-radius: 50%;
    animation: rotate 60s linear infinite;
}

.tech-circles::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    border: 1px solid rgba(73, 160, 255, 0.15);
    border-radius: 50%;
    animation: rotate-reverse 40s linear infinite;
}

.tech-circles::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    border: 1px solid rgba(73, 160, 255, 0.25);
    border-radius: 50%;
    animation: pulse 5s ease-in-out infinite;
}

/* 顶部导航 - 重新设计 */
.editor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px;
    background: rgba(10, 10, 30, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(73, 160, 255, 0.2);
    position: relative;
    z-index: 10;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.header-section {
    display: flex;
    align-items: center;
}

.header-left {
    flex: 1;
    justify-content: flex-start;
}

.header-center {
    flex: 2;
    justify-content: center;
}

.header-right {
    flex: 1;
    justify-content: flex-end;
    gap: 15px;
}

.nav-btn {
    display: flex;
    align-items: center;
    background: rgba(73, 160, 255, 0.1);
    border: 1px solid rgba(73, 160, 255, 0.2);
    color: #a9d4ff;
    font-size: 0.95rem;
    cursor: pointer;
    padding: 8px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.nav-btn:hover {
    background: rgba(73, 160, 255, 0.2);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.nav-btn i {
    margin-right: 8px;
    font-size: 1.1rem;
}

.stats-btn {
    background: rgba(80, 120, 180, 0.15);
    border-color: rgba(80, 120, 180, 0.3);
}

.stats-btn:hover {
    background: rgba(80, 120, 180, 0.25);
}

.page-title {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff 0%, #a9d4ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 2px 10px rgba(73, 160, 255, 0.3);
}

.primary-btn {
    background: linear-gradient(135deg, #48a0ff 0%, #7e4dff 100%);
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(73, 160, 255, 0.3);
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(73, 160, 255, 0.4);
}

.primary-btn i {
    margin-right: 8px;
    font-size: 1rem;
}

.user-info {
    display: flex;
    align-items: center;
    padding: 5px 10px;
    background: rgba(73, 160, 255, 0.1);
    border-radius: 50px;
    border: 1px solid rgba(73, 160, 255, 0.2);
    transition: all 0.3s ease;
}

.user-info:hover {
    background: rgba(73, 160, 255, 0.2);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(73, 160, 255, 0.6);
}

.user-name {
    color: #ffffff;
    font-size: 0.9rem;
    margin-left: 8px;
    margin-right: 5px;
}

/* 侧边栏容器 */
.sidebar-nav {
    position: fixed; /* 固定在屏幕上 */
    top: 0;
    left: 0;
    width: 260px; /* 侧边栏宽度 */
    height: 100vh; /* 侧边栏高度占满屏幕 */
    background: linear-gradient(150deg, #10102a 0%, #181838 100%); /* 深色渐变背景 */
    z-index: 1001; /* 比 header 高，比 overlay 高 */
    box-shadow: 5px 0px 15px rgba(0, 0, 0, 0.4); /* 右侧阴影 */
    transform: translateX(-100%); /* 默认隐藏在左边屏幕外 */
    transition: transform 0.3s ease-in-out; /* 滑动动画效果 */
    display: flex;
    flex-direction: column; /* 内部元素垂直排列 */
    border-right: 1px solid rgba(73, 160, 255, 0.2); /* 右边框 */
}

/* 当 body 有 sidebar-active 类时，侧边栏滑出 */
body.sidebar-active .sidebar-nav {
    transform: translateX(0);
}

/* 侧边栏头部 */
.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(73, 160, 255, 0.15);
    background-color: rgba(0, 0, 0, 0.1); /* 头部轻微背景色 */
}

.sidebar-title {
    font-size: 1.2rem;
    color: #e0e0ff;
    font-weight: 500;
}

.close-btn {
    background: transparent;
    border: none;
    color: #a9d4ff;
    font-size: 1.3rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.close-btn:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

/* 侧边栏链接列表 */
.sidebar-links {
    list-style: none; /* 移除列表默认的点点 */
    padding: 15px 0; /* 上下内边距 */
    margin: 0;
    flex-grow: 1; /* 占据剩余空间 */
    overflow-y: auto; /* 如果链接多，可以滚动 */
}

.sidebar-links li a {
    display: flex; /* 使用 flex 布局让图标和文字对齐 */
    align-items: center;
    padding: 14px 25px; /* 链接内边距 */
    color: #c0d8ff; /* 链接文字颜色 */
    text-decoration: none; /* 移除下划线 */
    font-size: 0.95rem;
    transition: background-color 0.2s ease, color 0.2s ease; /* 悬停效果 */
    border-left: 3px solid transparent; /* 左侧指示条，默认透明 */
}

.sidebar-links li a i {
    margin-right: 15px; /* 图标和文字的间距 */
    font-size: 1.1rem; /* 图标大小 */
    width: 20px; /* 固定图标宽度，让文字对齐 */
    text-align: center;
}

.sidebar-links li a:hover {
    background-color: rgba(73, 160, 255, 0.1); /* 悬停背景色 */
    color: #ffffff; /* 悬停文字颜色 */
    border-left-color: #49a0ff; /* 左侧指示条显示 */
}

/* 遮罩层 */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* 半透明黑色 */
    z-index: 1000; /* 在侧边栏下面，在主内容上面 */
    opacity: 0; /* 默认透明 */
    visibility: hidden; /* 默认不可见 */
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out; /* 渐变动画 */
}

/* 当 body 有 sidebar-active 类时，遮罩层显示 */
body.sidebar-active .sidebar-overlay {
    opacity: 1;
    visibility: visible;
}

/* --- 修改：汉堡按钮样式 --- */
#hamburger-menu {
    /* 你可以根据需要微调汉堡按钮的样式 */
    /* 比如调整 padding 或 font-size */
     padding: 8px 12px; /* 可能比其他图标按钮稍微大一点 */
}

#hamburger-menu i {
    font-size: 1.2rem; /* 调整图标大小 */
    margin: 0; /* 因为没有文字了，不需要右边距 */
}

/* 主内容区域 */
.editor-content {
    padding: 30px;
    max-width: 1600px;
    margin: 0 auto;
    position: relative;
    z-index: 5;
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.content-header h2 {
    font-size: 1.8rem;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(73, 160, 255, 0.5);
}

.filters {
    display: flex;
    align-items: center;
}

.search-box {
    position: relative;
    margin-left: 10px;
}

.search-box input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(73, 160, 255, 0.3);
    border-radius: 20px;
    padding: 8px 15px 8px 35px;
    color: #ffffff;
    font-size: 0.9rem;
    width: 200px;
    outline: none;
    transition: all 0.3s ease;
}

.search-box input:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(73, 160, 255, 0.7);
    width: 240px;
}

.search-box i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #a9d4ff;
    font-size: 0.9rem;
}

/* 草稿卡片网格 */
.drafts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.draft-card {
    position: relative;
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.draft-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.draft-card-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

/* 不同的背景图片 */
.draft-card:nth-child(1) .draft-card-background {
    background-image: url('../assets/images/character1.jpg');
}

.draft-card:nth-child(2) .draft-card-background {
    background-image: url('../assets/images/character2.jpg');
}

.draft-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(5, 5, 20, 0.9) 0%, rgba(5, 5, 20, 0.6) 50%, rgba(5, 5, 20, 0.3) 100%);
    z-index: 2;
}

.draft-card-content {
    position: relative;
    z-index: 3;
    padding: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.draft-avatar {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.7);
}

.draft-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.draft-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #ffffff;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.draft-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

.draft-status {
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
    background: rgba(73, 160, 255, 0.3);
    color: #a9d4ff;
}

.draft-card:nth-child(2) .draft-status {
    background: rgba(126, 87, 194, 0.3);
    color: #d4a9ff;
}

/* 草稿操作悬浮窗 */
.draft-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100;
    display: none;
}

.draft-modal.active {
    display: block;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(5, 5, 20, 0.8);
    backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 500px;
    background: rgba(20, 20, 40, 0.95);
    border-radius: 15px;
    border: 1px solid rgba(73, 160, 255, 0.4);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(73, 160, 255, 0.3);
    overflow: hidden;
    animation: modalIn 0.5s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(73, 160, 255, 0.2);
}

.modal-title {
    font-size: 1.3rem;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(73, 160, 255, 0.5);
}

.close-modal {
    background: transparent;
    border: none;
    color: #a9d4ff;
    font-size: 1.2rem;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-modal:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

.modal-body {
    padding: 20px;
}

.draft-preview {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    padding: 15px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
}

.preview-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.7);
    margin-right: 20px;
}

.preview-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-info h4 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: #ffffff;
}

.preview-info p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.action-btn {
    padding: 15px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: #ffffff;
}

.action-btn i {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.edit-btn {
    background: linear-gradient(135deg, #48a0ff 0%, #4073ff 100%);
}

.publish-btn {
    background: linear-gradient(135deg, #7e4dff 0%, #4d7eff 100%);
}

.play-btn {
    background: linear-gradient(135deg, #4dcaff 0%, #49a0ff 100%);
}

.delete-btn {
    background: linear-gradient(135deg, #ff4d4d 0%, #ff6b4d 100%);
}

.action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* 与主页一致的过渡动画样式 */
.editor-transition-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 10, 42, 0);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    transition: background-color 0.5s ease;
}

.editor-transition-container.active {
    background-color: rgba(10, 10, 42, 0.9);
    pointer-events: all;
}

.editor-transition-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #48a0ff 0%, #7e4dff 100%);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: scale(0.1) rotate(0deg);
    opacity: 0;
    box-shadow: 0 0 30px rgba(120, 200, 255, 0.7);
}

.editor-transition-icon i {
    font-size: 40px;
    color: white;
}

.editor-transition-icon.animate {
    animation: editorIconTransition 1.2s ease-in-out forwards;
}

/* 动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: translate(-50%, -55%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes rotate {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes rotate-reverse {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(-360deg);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.05);
        opacity: 0.5;
    }
}

.editor-transition-icon.animate {
    animation: editorIconTransition 1.2s ease-in-out forwards;
}

@keyframes editorIconTransition {
    0% {
        transform: scale(0.1) rotate(0deg);
        opacity: 0;
    }
    20% {
        opacity: 1;
        transform: scale(1) rotate(180deg);
    }
    60% {
        transform: scale(1.2) rotate(360deg);
    }
    100% {
        transform: scale(20) rotate(720deg);
        opacity: 0;
    }
}

/* 定制滚动条 */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background: rgba(73, 160, 255, 0.5);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(73, 160, 255, 0.8);
}

/* 加载指示器 */
#loading-indicator {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    text-align: center;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(73, 160, 255, 0.3);
    border-top: 4px solid rgba(73, 160, 255, 0.8);
    border-radius: 50%;
    margin-bottom: 15px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 空草稿状态 */
.empty-drafts {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px 20px;
    background: rgba(30, 30, 60, 0.4);
    border: 1px dashed rgba(73, 160, 255, 0.3);
    border-radius: 12px;
    text-align: center;
}

.empty-drafts i {
    font-size: 3rem;
    color: rgba(73, 160, 255, 0.5);
    margin-bottom: 20px;
}

.empty-drafts p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.empty-drafts p:last-child {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

/* 已发布和未发布的状态样式 */
.draft-status.published {
    background: rgba(50, 205, 50, 0.3);
    color: #9eff9e;
}

.draft-status.unpublished {
    background: rgba(73, 160, 255, 0.3);
    color: #a9d4ff;
}
/* --- 发布警告悬浮窗样式 --- */
.publish-warning-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 110; /* 比草稿操作悬浮窗高一点 */
    display: none; /* 默认隐藏 */
}

.publish-warning-modal.active {
    display: block; /* 激活时显示 */
}

/* 沿用之前的 modal 样式 */
.publish-warning-modal .modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(5, 5, 20, 0.8);
    backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease; /* 沿用之前的动画 */
}

.publish-warning-modal .modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 450px; /* 可以调整宽度 */
    background: rgba(30, 25, 50, 0.95); /* 稍微不同的背景色 */
    border-radius: 15px;
    border: 1px solid rgba(255, 100, 100, 0.4); /* 警告色边框 */
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(255, 100, 100, 0.3); /* 警告色阴影 */
    overflow: hidden;
    animation: modalIn 0.5s cubic-bezier(0.165, 0.84, 0.44, 1) forwards; /* 沿用之前的动画 */
}

.publish-warning-modal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 100, 100, 0.2); /* 警告色分割线 */
}

.publish-warning-modal .modal-title {
    font-size: 1.2rem; /* 调整标题大小 */
    color: #ffdddd; /* 浅红色 */
    text-shadow: 0 0 8px rgba(255, 80, 80, 0.6);
}

.publish-warning-modal .modal-title i {
    margin-right: 8px;
    color: #ffaeae;
}

.publish-warning-modal .close-warning-modal {
    background: transparent;
    border: none;
    color: #ffaeae; /* 警告色 */
    font-size: 1.2rem;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.publish-warning-modal .close-warning-modal:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
    color: #ff8080;
}

.publish-warning-modal .modal-body {
    padding: 25px 20px; /* 调整内边距 */
    color: #e0e0e0; /* 文字颜色 */
    line-height: 1.6;
    font-size: 0.95rem;
}

.publish-warning-modal .warning-text p {
    margin-bottom: 15px;
}

.publish-warning-modal .warning-text p:last-child {
    margin-bottom: 0;
}

.publish-warning-modal .warning-text strong {
    color: #ffd700; /* 强调文字用黄色 */
    font-weight: 600;
}
.publish-warning-modal .warning-text .last-line {
    font-size: 0.85rem;
    color: #aaa;
    margin-top: 20px;
    font-style: italic;
}
.publish-warning-modal .warning-text .last-line i {
    vertical-align: middle;
}


.publish-warning-modal .modal-footer {
    padding: 15px 20px;
    background-color: rgba(0, 0, 0, 0.2); /* 页脚背景 */
    border-top: 1px solid rgba(255, 100, 100, 0.1);
    display: flex;
    justify-content: flex-end; /* 按钮靠右 */
    gap: 15px; /* 按钮间距 */
}

/* 沿用之前的按钮样式，但可以微调 */
.publish-warning-modal .action-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px; /* 调整圆角 */
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: #ffffff;
    min-width: 120px; /* 按钮最小宽度 */
}

.publish-warning-modal .action-btn i {
    font-size: 1rem; /* 调整图标大小 */
    margin-right: 8px;
}

.publish-warning-modal .cancel-publish-btn {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%); /* 灰色系 */
}
.publish-warning-modal .cancel-publish-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(80, 80, 80, 0.3);
}

.publish-warning-modal .confirm-publish-btn {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee4d4d 100%); /* 红色系确认 */
}
.publish-warning-modal .confirm-publish-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 80, 80, 0.3);
}

/* 按钮禁用时的样式 */
.publish-warning-modal .action-btn:disabled {
    background: #555;
    cursor: not-allowed;
    opacity: 0.7;
    transform: none;
    box-shadow: none;
}

.publish-warning-modal .action-btn:disabled i.fa-spinner {
    margin-right: 8px; /* 确保加载图标和文字间距 */
}

/* 适配780px宽度 */
@media (max-width: 780px) {
    .editor-header {
        flex-wrap: wrap; /* 允许头部元素换行 */
        padding: 12px 15px; /* 调整内边距 */
    }

    .header-center {
        order: -1; /* 将标题移到最前面（视觉上在顶部） */
        flex: 1 0 100%; /* 占据整行宽度 */
        margin-bottom: 10px; /* 与下方按钮隔开距离 */
        text-align: center; /* 标题居中 */
    }

    .header-left, .header-right {
        flex: 1; /* 左右区域平分剩余空间 */
    }

    .header-right {
        justify-content: flex-end; /* 右侧按钮靠右对齐 */
        gap: 8px; /* 调整按钮间距 */
    }

    .page-title {
        font-size: 1.5rem; /* 缩小页面标题字体 */
    }

    /* --- 这是关键：隐藏按钮文字，只留图标 --- */
    .nav-btn span, .primary-btn span {
        display: none; /* 不显示按钮内的文字 (span 标签) */
    }

    .nav-btn i, .primary-btn i {
        margin-right: 0; /* 图标(i 标签)旁边不需要右边距了 */
    }
    /* --- 关键部分结束 --- */

    .nav-btn, .primary-btn {
        padding: 8px 10px; /* 调整按钮内边距，让图标居中些 */
    }

    .user-info {
        padding: 5px; /* 调整用户信息区域内边距 */
    }

    .user-avatar {
        width: 30px; /* 缩小头像尺寸 */
        height: 30px;
    }

    .user-name {
        display: none; /* 用户名在小屏幕也不显示 */
    }

    .content-header {
        flex-direction: column; /* 头部标题和筛选/搜索区域垂直排列 */
        align-items: flex-start; /* 左对齐 */
        gap: 15px; /* 增加间距 */
    }

    .filters {
       width: 100%; /* 筛选/搜索区域占满宽度 */
       flex-wrap: wrap; /* 允许内部元素换行 */
       gap: 8px; /* 调整元素间距 */
    }

    .search-box {
       flex-grow: 1; /* 搜索框占据剩余空间 */
       margin-left: 0; /* 移除左边距 */
    }

    .search-box input {
       width: 100%; /* 搜索输入框占满容器宽度 */
    }

    .search-box input:focus {
        width: 100%; /* 聚焦时也占满 */
    }

    .drafts-grid {
        /* 在小屏幕上可以考虑改为单列显示，或者保持自动填充但最小宽度减小 */
         grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
         gap: 15px; /* 减小卡片间距 */
    }

    .draft-card {
        height: 180px; /* 稍微减小卡片高度 */
    }

    .modal-content {
        width: 95%; /* 模态框宽度更大 */
    }

    .action-buttons {
        /* 在非常小的屏幕上可以考虑单列 */
         grid-template-columns: 1fr 1fr; /* 保持两列，但可能需要调整 */
    }
}

/* 下载按钮样式 */
.download-btn {
    background: rgba(73, 160, 255, 0.15);
    border-color: rgba(73, 160, 255, 0.3);
}

.download-btn:hover {
    background: rgba(73, 160, 255, 0.25);
}

/* 下载作品悬浮窗样式 */
.download-works-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 110;
    display: none;
}

.download-works-modal.active {
    display: block;
}

.download-works-modal .modal-content {
    max-width: 700px;
    max-height: 80vh;
    overflow-y: auto;
}

.download-works-modal .modal-title i {
    color: #49a0ff;
    margin-right: 8px;
}

.download-works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.download-work-card {
    position: relative;
    height: 180px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid rgba(73, 160, 255, 0.3);
    transition: all 0.3s ease;
    background-color: rgba(20, 20, 40, 0.5);
}

.download-work-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(73, 160, 255, 0.2);
    border-color: rgba(73, 160, 255, 0.6);
}

.download-work-img {
    width: 100%;
    height: 100px;
    overflow: hidden;
    position: relative;
    background: #14142a;
    display: flex;
    align-items: center;
    justify-content: center;
}

.download-work-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.download-work-img.no-img {
    background: linear-gradient(135deg, #14142a 0%, #1a1a4a 100%);
}

.download-work-img.no-img i {
    font-size: 2rem;
    color: rgba(73, 160, 255, 0.5);
}

.download-work-info {
    padding: 10px;
}

.download-work-title {
    font-size: 0.9rem;
    font-weight: bold;
    margin-bottom: 5px;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.download-work-date {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
}

.download-work-download {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(73, 160, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #49a0ff;
    transition: all 0.3s ease;
}

.download-work-download:hover {
    background: rgba(73, 160, 255, 0.4);
    transform: scale(1.1);
}

#no-published-works {
    text-align: center;
    padding: 30px 20px;
}

#no-published-works i {
    font-size: 3rem;
    color: rgba(73, 160, 255, 0.5);
    margin-bottom: 15px;
    display: block;
}

#no-published-works p {
    color: #a9d4ff;
    margin-bottom: 10px;
}
