* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1890ff;
    --primary-hover: #40a9ff;
    --primary-active: #096dd9;
    --success-color: #52c41a;
    --warning-color: #faad14;
    --error-color: #ff4d4f;
    --text-primary: #262626;
    --text-secondary: #595959;
    --text-tertiary: #8c8c8c;
    --border-color: #e8e8e8;
    --bg-primary: #ffffff;
    --bg-secondary: #fafafa;
    --bg-tertiary: #f5f5f5;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.16);
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

/* 顶部导航栏 */
.top-header {
    height: 64px;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 24px;
}

.logo {
    font-size: 22px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-active) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.5px;
}

.breadcrumb {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
}

.breadcrumb span::after {
    content: ' / ';
    margin: 0 8px;
    color: #ccc;
}

.breadcrumb span:last-child::after {
    content: '';
}

.header-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.ai-quota {
    color: var(--text-secondary);
    font-size: 14px;
    padding: 6px 12px;
    background: linear-gradient(135deg, #fff5e6 0%, #ffe7ba 100%);
    border-radius: var(--radius-md);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ai-quota i {
    color: var(--warning-color);
    font-size: 16px;
}

.ai-quota span {
    color: var(--warning-color);
    font-weight: 600;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: var(--text-primary);
    padding: 6px 12px;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.user-info i {
    font-size: 18px;
    color: var(--primary-color);
}

.user-info:hover {
    background: var(--bg-secondary);
}

.dropdown-arrow {
    font-size: 10px;
    color: var(--text-tertiary);
    transition: var(--transition);
}

.user-info:hover .dropdown-arrow {
    color: var(--text-secondary);
}

.dropdown-arrow {
    font-size: 12px;
    color: #999;
}

/* 主容器 */
.main-container {
    display: flex;
    margin-top: 64px;
    min-height: calc(100vh - 64px);
}

/* 左侧导航栏 */
.sidebar {
    width: 240px;
    background: linear-gradient(180deg, #001529 0%, #002140 100%);
    color: #fff;
    position: fixed;
    left: 0;
    top: 64px;
    bottom: 0;
    overflow-y: auto;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.sidebar-nav {
    padding: 16px 0;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    cursor: pointer;
    transition: var(--transition);
    color: rgba(255, 255, 255, 0.7);
    position: relative;
    margin: 2px 8px;
    border-radius: var(--radius-md);
}

.nav-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: var(--primary-color);
    border-radius: 0 2px 2px 0;
    transition: var(--transition);
}

.nav-item:hover {
    background-color: rgba(255, 255, 255, 0.08);
    color: #fff;
    transform: translateX(4px);
}

.nav-item.active {
    background: linear-gradient(90deg, rgba(24, 144, 255, 0.2) 0%, rgba(24, 144, 255, 0.1) 100%);
    color: #fff;
    font-weight: 500;
}

.nav-item.active::before {
    height: 60%;
}

.nav-icon {
    font-size: 16px;
    width: 20px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nav-group {
    margin-top: 8px;
}

.nav-group-title {
    padding: 8px 24px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.45);
    text-transform: uppercase;
}

/* 主内容区 */
.main-content {
    flex: 1;
    margin-left: 240px;
    padding: 32px;
    background: transparent;
    min-height: calc(100vh - 64px);
}

.page-content {
    display: none;
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 32px;
    min-height: calc(100vh - 112px);
    box-shadow: var(--shadow-sm);
    animation: fadeIn 0.3s ease-in-out;
}

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

.page-content.active {
    display: block;
}

.page-header {
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--bg-secondary);
    position: relative;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    border-radius: 2px;
}

.page-header h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.5px;
}

/* 警告横幅 */
.warning-banner {
    background: linear-gradient(135deg, #fffbe6 0%, #fff7e6 100%);
    border-left: 4px solid var(--warning-color);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ad6800;
    font-size: 14px;
    box-shadow: var(--shadow-sm);
    animation: slideIn 0.3s ease-out;
}

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

.warning-banner i {
    font-size: 20px;
    color: var(--warning-color);
    flex-shrink: 0;
}

/* 文章编辑器容器 */
.article-editor-container {
    display: flex;
    gap: 24px;
    max-width: 1400px;
    margin: 0 auto;
}

/* AI正文展示区域（改稿模式） */
.ai-content-display {
    width: 100%;
    margin-bottom: 16px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #fff7e6 0%, #fffbea 100%);
    border-radius: var(--radius-md);
    border: 1px solid #ffe7ba;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.ai-content-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.ai-content-label i {
    color: var(--warning-color);
}

.ai-content-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    word-break: break-word;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    cursor: default;
}

/* 提示词选择区域 */
.prompt-selector-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
    padding: 14px 16px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.prompt-selector-header {
    margin-bottom: 4px;
}

.prompt-selector-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.prompt-selector-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.prompt-selector-label i {
    color: var(--primary-color);
}

.prompt-selector {
    flex: 0 0 auto;
    min-width: 200px;
    max-width: 300px;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 13px;
    outline: none;
    transition: var(--transition);
    background: var(--bg-primary);
    cursor: pointer;
    height: 36px;
}

.prompt-selector:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(24, 144, 255, 0.1);
}

.prompt-selector:disabled {
    background: var(--bg-secondary);
    cursor: not-allowed;
    opacity: 0.6;
}

/* 提示词按钮组 */
.prompt-buttons-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex: 1;
    align-items: center;
}

/* 提示词按钮（横向布局：图标左，文字右） */
.prompt-btn {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    font-size: 12px;
    color: var(--text-secondary);
    white-space: nowrap;
    height: 36px;
    min-width: auto;
}

.prompt-btn i {
    font-size: 14px;
    color: var(--text-secondary);
    transition: var(--transition);
    flex-shrink: 0;
}

.prompt-btn span {
    font-size: 12px;
    color: var(--text-secondary);
    transition: var(--transition);
}

.prompt-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #e6f7ff 0%, #bae7ff 100%);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(24, 144, 255, 0.15);
}

.prompt-btn:hover:not(:disabled) i,
.prompt-btn:hover:not(:disabled) span {
    color: var(--primary-color);
}

/* 禁用状态 */
.prompt-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: var(--bg-secondary);
    border-color: var(--border-color);
    pointer-events: none;
}

.prompt-btn:disabled i,
.prompt-btn:disabled span {
    color: var(--text-tertiary);
}

/* AI工具列 */
.ai-tools-column {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
}

.ai-tool-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 16px 10px;
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    font-size: 12px;
    color: var(--text-secondary);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    min-height: 80px;
    justify-content: center;
}

/* 禁用状态样式 */
.ai-tool-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: var(--bg-secondary);
    border-color: var(--border-color);
    pointer-events: none;
}

.ai-tool-btn:disabled:hover {
    background: var(--bg-secondary);
    border-color: var(--border-color);
    color: var(--text-secondary);
    transform: none;
    box-shadow: var(--shadow-sm);
}

.ai-tool-btn:disabled i {
    color: var(--text-tertiary);
}

.ai-tool-btn:disabled span {
    color: var(--text-tertiary);
}

.ai-tool-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(24, 144, 255, 0.1), transparent);
    transition: var(--transition);
}

.ai-tool-btn:hover {
    background: linear-gradient(135deg, #e6f7ff 0%, #bae7ff 100%);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.ai-tool-btn:hover::before {
    left: 100%;
}

.ai-tool-btn i {
    font-size: 20px;
    margin-bottom: 2px;
    color: var(--text-secondary);
    transition: var(--transition);
}

.ai-tool-btn:hover i {
    color: var(--primary-color);
    transform: scale(1.05);
}

/* 编辑器主区域 */
.editor-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0; /* 防止flex子元素溢出 */
    width: 100%;
}

.form-group {
    position: relative;
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-primary);
    font-size: 14px;
}

.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 14px;
    outline: none;
    transition: var(--transition);
    background: var(--bg-primary);
    resize: vertical;
    font-family: inherit;
    line-height: 1.6;
}

.form-textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(24, 144, 255, 0.1);
}

/* 图片上传区域 */
.image-upload-container {
    margin-top: 8px;
    display: flex;
    align-items: flex-start;
}

.image-upload-area {
    position: relative;
    width: 150px;
    height: 150px;
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
    flex-shrink: 0;
}

.image-upload-area:hover {
    border-color: var(--primary-color);
}

.image-upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    cursor: pointer;
    color: var(--text-tertiary);
    transition: var(--transition);
    padding: 10px;
    box-sizing: border-box;
}

.image-upload-placeholder:hover {
    background: var(--bg-secondary);
    color: var(--primary-color);
}

.image-upload-placeholder i {
    font-size: 32px;
    margin-bottom: 8px;
}

.image-upload-placeholder span {
    font-size: 12px;
    text-align: center;
    line-height: 1.4;
}

.image-preview {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 0;
    background: var(--bg-secondary);
}

.image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-sm);
    display: block;
}

.image-remove-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.image-remove-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.image-preview-link {
    margin-top: 8px;
    text-align: center;
}

.image-preview-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
}

.image-preview-link a:hover {
    text-decoration: underline;
}

.article-title-input {
    width: 100%;
    padding: 14px 20px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 16px;
    outline: none;
    transition: var(--transition);
    background: var(--bg-primary);
    font-weight: 500;
}

.article-title-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(24, 144, 255, 0.1);
}

.char-counter {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-tertiary);
    font-size: 12px;
    font-weight: 500;
    background: var(--bg-secondary);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
}

.editor-wrapper {
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.editor-wrapper:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(24, 144, 255, 0.1);
}

.editor-toolbar {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px;
    background: #fafafa;
    border-bottom: 1px solid #e8e8e8;
    flex-wrap: wrap;
}

.toolbar-btn {
    padding: 8px 12px;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
}

.toolbar-btn i {
    font-size: 14px;
}

.toolbar-btn:hover {
    background: var(--bg-secondary);
    color: var(--primary-color);
    transform: scale(1.05);
}

.toolbar-btn.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: #fff;
    box-shadow: var(--shadow-sm);
}

.toolbar-divider {
    width: 1px;
    height: 20px;
    background: #e8e8e8;
    margin: 0 4px;
}

.editor-content {
    min-height: 450px;
    padding: 20px;
    outline: none;
    font-size: 15px;
    line-height: 1.8;
    overflow-y: auto;
    background: var(--bg-primary);
}

.editor-content::-webkit-scrollbar {
    width: 8px;
}

.editor-content::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

.editor-content::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

.editor-content::-webkit-scrollbar-thumb:hover {
    background: var(--text-tertiary);
}

.editor-content:empty::before {
    content: attr(placeholder);
    color: #bfbfbf;
}

.editor-footer {
    padding: 12px 20px;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, #f0f0f0 100%);
    border-top: 1px solid var(--border-color);
    text-align: right;
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.editor-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 8px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

/* 账号选择面板 */
.account-panel {
    width: 300px;
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    height: fit-content;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 80px;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--bg-secondary);
}

.refresh-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 14px;
    padding: 6px 10px;
    transition: var(--transition);
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.refresh-btn i {
    font-size: 14px;
}

.refresh-btn:hover {
    transform: rotate(180deg);
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.account-list {
    margin-bottom: 20px;
    max-height: 500px;
    overflow-y: auto;
    padding-right: 4px;
}

.account-list::-webkit-scrollbar {
    width: 6px;
}

.account-list::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 3px;
}

.account-list::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.account-list::-webkit-scrollbar-thumb:hover {
    background: var(--text-tertiary);
}

.account-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 10px;
    cursor: pointer;
    transition: var(--transition);
}

.account-item:hover {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, #e6f7ff 0%, #f0f9ff 100%);
    box-shadow: var(--shadow-sm);
    transform: translateX(4px);
}

.account-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary-color);
    transition: var(--transition);
}

.account-item input[type="checkbox"]:checked {
    transform: scale(1.1);
}

.account-item.selected {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(24, 144, 255, 0.1) 0%, rgba(24, 144, 255, 0.05) 100%);
}

.account-item.selected:hover {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(24, 144, 255, 0.15) 0%, rgba(24, 144, 255, 0.1) 100%);
}

.account-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e8e8e8 0%, #d9d9d9 100%);
    object-fit: cover;
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    display: block;
}

.account-info {
    flex: 1;
}

.account-name {
    font-size: 15px;
    color: var(--text-primary);
    margin-bottom: 6px;
    font-weight: 500;
}

.account-status {
    font-size: 12px;
    color: var(--success-color);
    font-weight: 500;
    padding: 2px 8px;
    background: rgba(82, 196, 26, 0.1);
    border-radius: var(--radius-sm);
    display: inline-block;
}

.account-status.offline {
    color: var(--text-tertiary);
    background: var(--bg-secondary);
}

.btn-add-account {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-add-account i {
    font-size: 14px;
}

.btn-add-account:hover {
    background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary-active) 100%);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

/* 按钮样式 */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn i {
    font-size: 14px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: #fff;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary-active) 100%);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

/* AI改稿按钮特殊样式 */
.btn-ai-revise {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: #fff;
    border: none;
    box-shadow: var(--shadow-sm);
    font-weight: 600;
    padding: 8px 16px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn-ai-revise::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-ai-revise:hover {
    background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary-active) 100%);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.btn-ai-revise:hover::before {
    left: 100%;
}

.btn-ai-revise:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

/* 批量管理按钮 */
#btnBatchManage.active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

#btnBatchManage.active:hover {
    background: #1890ff;
    border-color: #1890ff;
}

.btn-ai-revise i {
    font-size: 13px;
    color: #fff;
}

.btn-ai-revise span {
    color: #fff;
    font-weight: 600;
}

.btn-secondary {
    background: var(--bg-primary);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: var(--bg-secondary);
    transform: translateY(-1px);
}

/* 筛选栏 */
.filter-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    align-items: center;
}

.filter-select {
    padding: 10px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 14px;
    outline: none;
    cursor: pointer;
    background: var(--bg-primary);
    transition: var(--transition);
    font-weight: 500;
}

.filter-select:hover {
    border-color: var(--primary-color);
}

.filter-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(24, 144, 255, 0.1);
}

.search-box {
    display: flex;
    gap: 8px;
    flex: 1;
    max-width: 300px;
    margin-left: auto;
}

.search-box input {
    flex: 1;
    padding: 10px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 14px;
    outline: none;
    transition: var(--transition);
    background: var(--bg-primary);
}

.search-box input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(24, 144, 255, 0.1);
}

.search-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.search-btn:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

/* 文章表格 */
.article-table-container {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.article-table {
    width: 100%;
    border-collapse: collapse;
}

.article-table thead {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, #f0f0f0 100%);
}

.article-table th {
    padding: 16px 20px;
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border-color);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-table td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--bg-secondary);
    transition: var(--transition);
}


.article-table tbody tr {
    transition: var(--transition);
}

.article-table tbody tr:hover {
    background: linear-gradient(90deg, rgba(24, 144, 255, 0.03) 0%, transparent 100%);
    transform: scale(1.001);
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.status-draft {
    color: var(--text-tertiary);
    background: var(--bg-secondary);
}

.status-published {
    color: var(--success-color);
    background: rgba(82, 196, 26, 0.1);
}

.status-scheduled {
    color: var(--primary-color);
    background: rgba(24, 144, 255, 0.1);
}

.status-pending {
    color: var(--warning-color);
    background: rgba(250, 173, 20, 0.1);
}

.status-active {
    color: var(--success-color);
    background: rgba(82, 196, 26, 0.1);
}

.status-suspended {
    color: var(--error-color);
    background: rgba(255, 77, 79, 0.1);
}

/* 角色徽章样式 */
.role-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.role-admin {
    color: #722ed1;
    background: rgba(114, 46, 209, 0.1);
}

.role-agent {
    color: #1890ff;
    background: rgba(24, 144, 255, 0.1);
}

.role-customer {
    color: var(--success-color);
    background: rgba(82, 196, 26, 0.1);
}

.action-buttons {
    display: flex;
    gap: 8px;
}

.action-btn {
    padding: 6px 12px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.action-btn i {
    font-size: 12px;
}

.action-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: var(--bg-secondary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

/* 模态框 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.3s ease-out;
    border: 1px solid var(--border-color);
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 28px;
    border-bottom: 2px solid var(--bg-secondary);
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

.modal-header h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
}

.modal-close {
    font-size: 18px;
    cursor: pointer;
    color: var(--text-tertiary);
    line-height: 1;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.modal-close i {
    font-size: 18px;
}

.modal-close:hover {
    color: var(--text-primary);
    background: var(--bg-secondary);
    transform: rotate(90deg);
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

/* 平台选择弹窗 */
.modal-platform-select {
    max-width: 600px;
}

.platform-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.platform-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 20px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    background: var(--bg-primary);
}

.platform-item:hover {
    border-color: var(--primary-color);
    background: var(--bg-secondary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.platform-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    color: #fff;
    box-shadow: var(--shadow-sm);
}

.platform-baijiahao-icon {
    background: linear-gradient(135deg, #0066cc 0%, #004499 100%);
}

.platform-toutiao-icon {
    background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
}

.platform-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    text-align: center;
}

/* 占位提示 */
.coming-soon {
    text-align: center;
    padding: 120px 0;
    color: var(--text-tertiary);
    font-size: 18px;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    border-radius: var(--radius-lg);
    margin: 20px 0;
    border: 2px dashed var(--border-color);
}

.loading {
    text-align: center;
    padding: 60px 0;
    color: var(--text-tertiary);
    font-size: 14px;
}

.loading::after {
    content: '...';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

/* 账号管理页面样式 */
.account-action-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.account-table-container {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    overflow: visible;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    position: relative;
}

.account-table {
    width: 100%;
    border-collapse: collapse;
    position: relative;
}

.account-table thead {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, #f0f0f0 100%);
}

.account-table th {
    padding: 16px 20px;
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border-color);
    font-size: 14px;
    position: relative;
}

.sort-icon {
    margin-left: 8px;
    font-size: 12px;
    color: var(--text-tertiary);
    cursor: pointer;
}

.account-table td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--bg-secondary);
    transition: var(--transition);
}

.account-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.account-avatar-small {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.account-name-text {
    font-weight: 500;
    color: var(--text-primary);
}

.platform-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
}

.platform-baijiahao {
    background: rgba(0, 102, 204, 0.1);
    color: #0066cc;
}

.platform-toutiao {
    background: rgba(255, 0, 0, 0.1);
    color: #ff0000;
}

.status-online {
    color: var(--success-color);
    background: rgba(82, 196, 26, 0.1);
}

.status-offline {
    color: var(--text-tertiary);
    background: var(--bg-secondary);
}

/* 账号操作按钮样式 */
.account-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.btn-sm:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

/* 更多菜单样式 */
.more-menu-container {
    position: relative;
    display: inline-block;
}

.more-menu-dropdown {
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 4px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    min-width: 120px;
    overflow: hidden;
}

.more-menu-item {
    width: 100%;
    padding: 10px 16px;
    text-align: left;
    border: none;
    background: none;
    cursor: pointer;
    color: var(--text-primary);
    font-size: 14px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.more-menu-item:hover {
    background: var(--bg-secondary);
    color: #d32f2f;
}

.more-menu-item i {
    width: 16px;
    text-align: center;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    min-width: 150px;
    z-index: 10000;
    margin-top: 4px;
    overflow: visible;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
    font-size: 13px;
}

.dropdown-menu a:hover {
    background: var(--bg-secondary);
    color: var(--primary-color);
}

.dropdown-menu a i {
    font-size: 12px;
    width: 16px;
}

/* 词库管理 */
.keyword-management-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 20px;
    align-items: start;
}

.keyword-groups,
.keyword-main {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.keyword-groups {
    overflow: visible;
    min-height: 600px;
}

.keyword-main {
    min-height: 600px;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--bg-secondary);
}

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

.group-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
    overflow: visible;
}

/* 翻页控件 */
.pagination-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 0 0;
    margin-top: 16px;
    border-top: 2px solid var(--bg-secondary);
}

.btn-page {
    padding: 8px 14px;
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-page:hover:not(:disabled) {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: var(--bg-secondary);
    transform: translateY(-1px);
}

.btn-page:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: var(--bg-secondary);
}

.btn-page i {
    font-size: 12px;
}

.page-info {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
    padding: 0 8px;
}

.page-info span {
    color: var(--primary-color);
    font-weight: 600;
}

.group-item {
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    background: var(--bg-primary);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: visible;
}

.group-item:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.group-item.active {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, #e6f7ff 0%, #f0f9ff 100%);
    box-shadow: var(--shadow-sm);
}

.group-main {
    display: flex;
    align-items: center;
    gap: 12px;
}

.group-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 15px;
    flex: 1;
    min-width: 0;
}

.group-count {
    font-size: 12px;
    color: var(--primary-color);
    background: rgba(24, 144, 255, 0.1);
    padding: 3px 10px;
    border-radius: 12px;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

.group-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
    flex-shrink: 0;
}

/* 下拉菜单容器 */
.dropdown-menu-container {
    position: relative;
    display: inline-block;
}

/* 更多按钮（三个点） */
.btn-more {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: var(--text-tertiary);
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 16px;
}

.btn-more:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-primary);
}

.btn-more.active {
    background: var(--primary-color);
    color: #fff;
}

.group-item.active .btn-more:hover {
    background: rgba(24, 144, 255, 0.15);
}

.group-item.active .btn-more.active {
    background: var(--primary-color);
    color: #fff;
}

/* 下拉菜单弹出层 */
.dropdown-menu-popup {
    position: absolute;
    right: 0;
    top: calc(100% + 4px);
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    min-width: 160px;
    overflow: visible;
    display: none;
}

.dropdown-menu-popup.active {
    display: block;
    animation: slideDown 0.2s ease-out;
}

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

/* 下拉菜单项 */
.dropdown-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    cursor: pointer;
    color: var(--text-primary);
    transition: var(--transition);
    font-size: 14px;
    white-space: nowrap;
}

.dropdown-menu-item i {
    width: 16px;
    text-align: center;
    font-size: 14px;
    color: var(--text-secondary);
}

.dropdown-menu-item:hover {
    background: var(--bg-secondary);
}

.dropdown-menu-item.danger {
    color: var(--error-color);
}

.dropdown-menu-item.danger i {
    color: var(--error-color);
}

.dropdown-menu-item.danger:hover {
    background: rgba(255, 77, 79, 0.08);
}

.keyword-main .panel-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.panel-title {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

.title-main {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.title-sub {
    color: var(--text-secondary);
    font-size: 13px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

.title-sub strong {
    color: var(--primary-color);
    font-weight: 700;
}

.keyword-toolbar {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
    width: 100%;
    align-items: center;
}

.search-box.compact {
    max-width: 260px;
    margin-left: 0;
    flex: 1;
}

.search-box.compact input {
    padding: 8px 14px;
    font-size: 13px;
}

.inline-add {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
    align-items: center;
}

.inline-add input {
    min-width: 200px;
    padding: 8px 14px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    outline: none;
    transition: var(--transition);
    font-size: 13px;
}

.inline-add input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(24, 144, 255, 0.1);
}

.keyword-list {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    overflow-y: auto;
    padding-right: 4px;
}

.keyword-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.keyword-item:hover {
    background: var(--bg-secondary);
    border-color: var(--primary-color);
    transform: translateX(2px);
}

.keyword-item .kw {
    font-weight: 500;
    color: var(--text-primary);
    word-break: break-all;
    flex: 0 1 auto;
    font-size: 14px;
    min-width: 0;
    margin-right: 12px;
}

/* 关键词列表批量管理 */
.keyword-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    margin-bottom: 8px;
    gap: 16px;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

.checkbox-wrapper input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.batch-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    justify-content: flex-end;
}

.selected-count {
    color: var(--text-tertiary);
    font-size: 12px;
    margin-left: 8px;
}

.keyword-prompt-info {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    margin-right: auto;
}

.prompt-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    background: rgba(24, 144, 255, 0.1);
    color: var(--primary-color);
    white-space: nowrap;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.prompt-badge.empty {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-tertiary);
}

.prompt-badge i {
    font-size: 10px;
}

.keyword-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-warning {
    background: #faad14;
    color: #fff;
    border: none;
}

.btn-warning:hover {
    background: #d48806;
}


.meta-dot {
    color: var(--text-tertiary);
    margin: 0 6px;
}

.meta-ghost {
    color: var(--text-tertiary);
}

.btn.ghost {
    border-style: dashed;
    color: var(--text-secondary);
    background: transparent;
}

.btn.ghost:hover {
    background: var(--bg-secondary);
    border-style: solid;
}

.btn-danger {
    background: linear-gradient(135deg, #ff4d4f 0%, #ff7875 100%);
    color: #fff;
    border: none;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #cf1322 0%, #ff4d4f 100%);
    box-shadow: var(--shadow-md);
}

.modal-sm {
    max-width: 420px;
}

.modal-md {
    max-width: 640px;
}

.modal-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-size: 14px;
}

.modal-input,
.modal-select {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 14px;
    background: var(--bg-primary);
    transition: var(--transition);
    outline: none;
}

.modal-textarea {
    width: 100%;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px;
    font-size: 14px;
    line-height: 1.6;
    resize: vertical;
    min-height: 200px;
    background: var(--bg-secondary);
    font-family: 'Consolas', 'Monaco', monospace;
}

.modal-input:focus,
.modal-select:focus,
.modal-textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(24, 144, 255, 0.1);
    outline: none;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px;
    border-top: 2px solid var(--bg-secondary);
    background: var(--bg-secondary);
}

/* 发布账号确认弹窗 */
.modal-publish-account {
    max-width: 700px;
}

.publish-warning-banner {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: #fffbe6;
    border: 1px solid #ffe58f;
    border-left: 4px solid #faad14;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    color: #614700;
    font-size: 14px;
    line-height: 1.6;
}

.publish-warning-banner i {
    color: #faad14;
    font-size: 18px;
    margin-top: 2px;
    flex-shrink: 0;
}

.publish-account-section {
    margin-top: 20px;
}

.publish-account-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.publish-account-header h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.btn-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-secondary);
}

.btn-icon:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    transform: rotate(180deg);
}

.btn-icon i {
    font-size: 14px;
}

.publish-account-list {
    max-height: 400px;
    overflow-y: auto;
    padding: 8px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.publish-account-list::-webkit-scrollbar {
    width: 6px;
}

.publish-account-list::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

.publish-account-list::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.publish-account-list::-webkit-scrollbar-thumb:hover {
    background: var(--text-tertiary);
}

/* 发布账号列表中的账号项样式 */
.publish-account-list .account-item {
    margin-bottom: 12px;
    background: var(--bg-primary);
}

.publish-account-list .account-item:last-child {
    margin-bottom: 0;
}

/* 平台徽章样式（用于发布账号列表中的头像徽章） */
.publish-account-list .platform-badge,
.account-avatar-wrapper .platform-badge {
    position: absolute;
    bottom: -2px;
    left: -2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 600;
    color: #fff;
}

.publish-account-list .platform-badge.baijiahao,
.account-avatar-wrapper .platform-badge.baijiahao {
    background: #1890ff;
}

.publish-account-list .platform-badge.toutiao,
.account-avatar-wrapper .platform-badge.toutiao {
    background: #ff4d4f;
}

.account-avatar-wrapper {
    position: relative;
    flex-shrink: 0;
}

/* 定时发布时间选择器弹窗 */
.modal-schedule-time {
    max-width: 500px;
}

.schedule-time-instruction {
    margin-bottom: 24px;
    text-align: center;
}

.schedule-time-instruction p {
    margin: 8px 0;
    color: var(--text-primary);
    font-size: 14px;
}

.schedule-time-instruction p:first-child {
    font-weight: 500;
    color: var(--text-primary);
}

.schedule-time-example {
    color: var(--text-tertiary) !important;
    font-size: 13px !important;
}

.schedule-time-input-wrapper {
    display: flex;
    justify-content: center;
    margin: 20px 0 30px 0;
}

.schedule-time-input {
    width: 100%;
    max-width: 420px;
    padding: 16px 20px;
    border: 2px solid var(--primary-color);
    border-radius: var(--radius-md);
    font-size: 16px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: var(--transition);
    outline: none;
    cursor: pointer;
    text-align: center;
    box-shadow: 0 2px 8px rgba(24, 144, 255, 0.1);
}

.schedule-time-input:hover {
    border-color: var(--primary-hover);
    box-shadow: 0 0 0 3px rgba(24, 144, 255, 0.1);
}

.schedule-time-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(24, 144, 255, 0.15);
}

/* 自定义 datetime-local 输入框样式（针对不同浏览器） */
.schedule-time-input::-webkit-calendar-picker-indicator {
    cursor: pointer;
    font-size: 18px;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.schedule-time-input::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

.schedule-time-input::-webkit-datetime-edit-text {
    color: var(--text-secondary);
    padding: 0 4px;
}

.schedule-time-input::-webkit-datetime-edit-month-field,
.schedule-time-input::-webkit-datetime-edit-day-field,
.schedule-time-input::-webkit-datetime-edit-year-field,
.schedule-time-input::-webkit-datetime-edit-hour-field,
.schedule-time-input::-webkit-datetime-edit-minute-field {
    color: var(--text-primary);
    padding: 0 2px;
}

.schedule-time-input::-webkit-datetime-edit-month-field:focus,
.schedule-time-input::-webkit-datetime-edit-day-field:focus,
.schedule-time-input::-webkit-datetime-edit-year-field:focus,
.schedule-time-input::-webkit-datetime-edit-hour-field:focus,
.schedule-time-input::-webkit-datetime-edit-minute-field:focus {
    background-color: rgba(24, 144, 255, 0.1);
    color: var(--primary-color);
    border-radius: 3px;
    outline: none;
}

.input-ghost {
    padding: 8px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    min-width: 180px;
    transition: var(--transition);
    font-size: 13px;
    outline: none;
}

.input-ghost:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(24, 144, 255, 0.1);
}

.keyword-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.summary-card {
    background: linear-gradient(135deg, #e6f7ff 0%, #f0f9ff 100%);
    border: 2px solid rgba(24, 144, 255, 0.2);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.summary-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.summary-card.muted {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, #f0f0f0 100%);
    border-color: var(--border-color);
}

.summary-label {
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: 8px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.summary-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.summary-value.small {
    font-size: 18px;
    font-weight: 600;
}

.summary-extra {
    margin-top: 6px;
    color: var(--text-secondary);
    font-size: 12px;
}

.helper-row {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
    color: var(--text-tertiary);
    font-size: 12px;
    text-align: center;
}

.empty-tip {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-tertiary);
    font-size: 14px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    border: 2px dashed var(--border-color);
}

.error {
    text-align: center;
    padding: 40px 20px;
    color: var(--error-color);
    font-size: 14px;
}

/* 响应式 */
@media (max-width: 1200px) {
    .article-editor-container {
        flex-direction: column;
    }
    
    .prompt-selector-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .prompt-selector {
        max-width: 100%;
        width: 100%;
    }
    
    .prompt-buttons-group {
        width: 100%;
        justify-content: flex-start;
    }
    
    .prompt-btn {
        flex: 0 0 auto;
    }
    
    .ai-tools-column {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .editor-main {
        max-width: 100%;
    }

    .keyword-management-container {
        grid-template-columns: 1fr;
    }

    .keyword-toolbar {
        justify-content: flex-start;
    }
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-tertiary);
}

/* 选择文本样式 */
::selection {
    background: rgba(24, 144, 255, 0.2);
    color: var(--text-primary);
}

/* 输入框占位符样式 */
::placeholder {
    color: var(--text-tertiary);
    opacity: 0.6;
}

/* 焦点可见性 */
*:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* 加载动画 */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.loading-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* 提示词管理页面样式 */
.prompt-management-container {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.prompt-action-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    align-items: center;
    justify-content: space-between;
}

.prompt-list-container {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.prompt-table {
    width: 100%;
    border-collapse: collapse;
}

.prompt-table thead {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, #f0f0f0 100%);
}

.prompt-table th {
    padding: 16px 20px;
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border-color);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.prompt-table td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--bg-secondary);
    transition: var(--transition);
}

.prompt-table tbody tr {
    transition: var(--transition);
}

.prompt-table tbody tr:hover {
    background: linear-gradient(90deg, rgba(24, 144, 255, 0.03) 0%, transparent 100%);
    transform: scale(1.001);
}

/* 系统设置页面样式 */
.settings-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 1000px;
}

.settings-section {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.settings-section-header {
    padding: 16px 20px;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, #f0f0f0 100%);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.settings-section-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.settings-section-header h3 i {
    color: var(--primary-color);
}

.settings-content {
    padding: 20px;
}

.setting-item {
    margin-bottom: 24px;
}

.setting-item:last-child {
    margin-bottom: 0;
}

.setting-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.setting-control {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 6px;
}

.setting-input {
    flex: 1;
    max-width: 400px;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    outline: none;
    transition: var(--transition);
    background: var(--bg-primary);
}

.setting-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(24, 144, 255, 0.1);
}

.setting-value {
    font-size: 14px;
    color: var(--text-secondary);
    padding: 8px 12px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    display: inline-block;
    min-width: 200px;
}

.setting-help {
    font-size: 12px;
    color: var(--text-tertiary);
    margin-top: 4px;
    line-height: 1.5;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.btn-warning {
    background-color: var(--warning-color);
    color: white;
    border: none;
}

.btn-warning:hover {
    background-color: #d48806;
}

.btn-danger {
    background-color: var(--error-color);
    color: white;
    border: none;
}

.btn-danger:hover {
    background-color: #cf1322;
}

/* 扣子配置样式 */
.couzi-config-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.couzi-config-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    transition: var(--transition);
}

.couzi-config-item:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.couzi-config-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.couzi-config-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.couzi-config-title i {
    color: var(--primary-color);
}

.couzi-config-actions {
    display: flex;
    gap: 8px;
}

.btn-action {
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 6px 10px;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-secondary);
    font-size: 13px;
}

.btn-action:hover {
    background: var(--bg-primary);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.couzi-config-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.couzi-config-field {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
}

.field-label {
    font-weight: 500;
    color: var(--text-secondary);
    min-width: 100px;
}

.field-value {
    color: var(--text-primary);
    font-family: 'Courier New', monospace;
    word-break: break-all;
}

.settings-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* 文章详情弹窗样式 */
.article-detail-info {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.detail-row {
    display: flex;
    margin-bottom: 12px;
    align-items: flex-start;
}

.detail-row:last-child {
    margin-bottom: 0;
}

.detail-label {
    font-weight: 600;
    color: var(--text-secondary);
    min-width: 100px;
    flex-shrink: 0;
}

.detail-value {
    color: var(--text-primary);
    flex: 1;
    word-break: break-word;
}

.detail-section {
    margin-bottom: 24px;
}

.detail-section:last-child {
    margin-bottom: 0;
}

.detail-section h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-section h4 i {
    color: var(--primary-color);
}

.detail-content {
    background: var(--bg-secondary);
    padding: 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    line-height: 1.8;
    color: var(--text-primary);
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 400px;
    overflow-y: auto;
}

.markdown-content {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', sans-serif;
    line-height: 1.8;
    color: #333;
}

.markdown-content h1,
.markdown-content h2,
.markdown-content h3,
.markdown-content h4,
.markdown-content h5,
.markdown-content h6 {
    margin-top: 24px;
    margin-bottom: 16px;
    font-weight: 600;
    line-height: 1.25;
}

.markdown-content h1 {
    font-size: 2em;
    border-bottom: 1px solid #eaecef;
    padding-bottom: 0.3em;
}

.markdown-content h2 {
    font-size: 1.5em;
    border-bottom: 1px solid #eaecef;
    padding-bottom: 0.3em;
}

.markdown-content h3 {
    font-size: 1.25em;
}

.markdown-content p {
    margin-bottom: 16px;
}

.markdown-content ul,
.markdown-content ol {
    margin-bottom: 16px;
    padding-left: 2em;
}

.markdown-content li {
    margin-bottom: 8px;
}

.markdown-content code {
    padding: 0.2em 0.4em;
    margin: 0;
    font-size: 85%;
    background-color: rgba(27, 31, 35, 0.05);
    border-radius: 3px;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
}

.markdown-content pre {
    padding: 16px;
    overflow: auto;
    font-size: 85%;
    line-height: 1.45;
    background-color: #f6f8fa;
    border-radius: 6px;
    margin-bottom: 16px;
}

.markdown-content pre code {
    display: inline;
    max-width: auto;
    padding: 0;
    margin: 0;
    overflow: visible;
    line-height: inherit;
    word-wrap: normal;
    background-color: transparent;
    border: 0;
}

.markdown-content blockquote {
    padding: 0 1em;
    color: #6a737d;
    border-left: 0.25em solid #dfe2e5;
    margin-bottom: 16px;
}

.markdown-content table {
    border-spacing: 0;
    border-collapse: collapse;
    margin-bottom: 16px;
    width: 100%;
}

.markdown-content table th,
.markdown-content table td {
    padding: 6px 13px;
    border: 1px solid #dfe2e5;
}

.markdown-content table th {
    font-weight: 600;
    background-color: #f6f8fa;
}

.markdown-content table tr:nth-child(2n) {
    background-color: #f6f8fa;
}

.markdown-content a {
    color: #0366d6;
    text-decoration: none;
}

.markdown-content a:hover {
    text-decoration: underline;
}

.markdown-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 16px 0;
}

.markdown-content hr {
    height: 0.25em;
    padding: 0;
    margin: 24px 0;
    background-color: #e1e4e8;
    border: 0;
}

/* 参考资料样式 */
.reference-count {
    font-size: 14px;
    font-weight: normal;
    color: var(--text-tertiary);
}

.references-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.reference-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.reference-item:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.reference-number {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 600;
}

.reference-content {
    flex: 1;
    min-width: 0;
}

.reference-title {
    margin-bottom: 6px;
}

.reference-title a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    word-break: break-all;
}

.reference-title a:hover {
    text-decoration: underline;
}

.reference-title .no-title {
    color: var(--text-tertiary);
    font-style: italic;
}

.reference-url {
    margin-bottom: 4px;
    font-size: 12px;
}

.reference-url a {
    color: var(--text-secondary);
    text-decoration: none;
    word-break: break-all;
}

.reference-url a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.reference-site {
    font-size: 12px;
    color: var(--text-tertiary);
}

.references-collapse {
    margin-top: 12px;
    text-align: center;
}

.references-hidden {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* 提示词模态框折叠区域样式 */
.prompt-section {
    margin-bottom: 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-primary);
    transition: var(--transition);
}

.prompt-section:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.prompt-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: var(--bg-secondary);
    cursor: pointer;
    user-select: none;
    transition: var(--transition);
}

.prompt-section-header:hover {
    background: linear-gradient(90deg, rgba(24, 144, 255, 0.05) 0%, var(--bg-secondary) 100%);
}

.prompt-section-header.active {
    background: linear-gradient(90deg, rgba(24, 144, 255, 0.1) 0%, var(--bg-secondary) 100%);
    border-bottom: 1px solid var(--border-color);
}

.prompt-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: var(--text-primary);
    font-size: 14px;
}

.prompt-section-title i {
    color: var(--primary-color);
    width: 18px;
    text-align: center;
}

.prompt-section-icon {
    transition: transform 0.3s ease;
    color: var(--text-tertiary);
    font-size: 12px;
}

.prompt-section-header.active .prompt-section-icon {
    transform: rotate(180deg);
    color: var(--primary-color);
}

.prompt-section-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 16px;
}

.prompt-section-body.active {
    max-height: 500px;
    padding: 16px;
}

.prompt-section-body textarea {
    width: 100%;
    min-height: 100px;
    resize: vertical;
}

/* ================== 定时任务样式 ================== */

.modal-create-task .modal-body {
    padding: 24px;
}

.task-form-section {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}

.task-form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.section-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title i {
    color: var(--primary-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.form-label-small {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 14px;
    color: var(--text-primary);
    background: var(--bg-primary);
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.1);
}

.form-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 14px;
    color: var(--text-primary);
    background: var(--bg-primary);
    cursor: pointer;
    transition: var(--transition);
}

.form-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.1);
}

.form-hint {
    font-size: 12px;
    color: var(--text-tertiary);
    margin-top: 4px;
}

.required {
    color: var(--error-color);
}

.time-selector-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkbox-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 200px;
    overflow-y: auto;
    padding: 12px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.checkbox-item:hover {
    background: var(--bg-tertiary);
}

.checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-item span {
    font-size: 14px;
    color: var(--text-primary);
}

.item-count {
    font-size: 12px;
    color: var(--text-tertiary);
    margin-left: auto;
}

.weekday-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}

.weekday-checkbox {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    font-size: 13px;
}

.weekday-checkbox:hover {
    border-color: var(--primary-color);
    background: rgba(24, 144, 255, 0.05);
}

.weekday-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.weekday-checkbox input[type="checkbox"]:checked + span {
    color: var(--primary-color);
    font-weight: 500;
}

.estimate-info {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: 16px;
    border: 1px solid var(--border-color);
}

.estimate-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 12px;
}

.estimate-card {
    background: var(--bg-primary);
    border-radius: var(--radius-sm);
    padding: 12px;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.estimate-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.estimate-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(24, 144, 255, 0.1) 0%, rgba(24, 144, 255, 0.05) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.estimate-icon i {
    font-size: 16px;
    color: var(--primary-color);
}

.estimate-content {
    width: 100%;
}

.estimate-content .estimate-label {
    font-size: 11px;
    color: var(--text-tertiary);
    margin-bottom: 6px;
    font-weight: 400;
    line-height: 1.3;
}

.estimate-content .estimate-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.2;
    margin-bottom: 2px;
}

.estimate-content .estimate-unit {
    font-size: 11px;
    color: var(--text-secondary);
}

.estimate-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.estimate-item:last-child {
    border-bottom: none;
}

.estimate-label {
    font-size: 14px;
    color: var(--text-secondary);
}

.estimate-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
}

.btn-outline {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 10px 16px;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(24, 144, 255, 0.05);
}

.platform-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
}

/* 浮窗提示（Toast）样式 */
.toast-notification {
    position: fixed;
    top: 80px;
    right: 20px;
    min-width: 280px;
    max-width: 400px;
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 12px 16px;
    z-index: 10000;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    border-left: 4px solid var(--primary-color);
}

.toast-notification.show {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.toast-notification.toast-success {
    border-left-color: var(--success-color);
}

.toast-notification.toast-success .toast-icon {
    color: var(--success-color);
}

.toast-notification.toast-error {
    border-left-color: var(--error-color);
}

.toast-notification.toast-error .toast-icon {
    color: var(--error-color);
}

.toast-notification.toast-warning {
    border-left-color: var(--warning-color);
}

.toast-notification.toast-warning .toast-icon {
    color: var(--warning-color);
}

.toast-notification.toast-info {
    border-left-color: var(--primary-color);
}

.toast-notification.toast-info .toast-icon {
    color: var(--primary-color);
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.toast-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.toast-message {
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.5;
    word-break: break-word;
}


