/* ===========================
   催更栏页面样式 - 暗色科技风格
   =========================== */

:root {
    --primary-color: #8b5cf6;
    --bg-dark: #0a0a0f;
    --bg-darker: #05050a;
    --card-bg: rgba(15, 15, 25, 0.6);
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --border-color: rgba(139, 92, 246, 0.2);
}

body {
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
}

.cuigeng-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px 20px;
}

.cuigeng-header {
    text-align: center;
    margin-bottom: 30px;
}

.cuigeng-header h1 {
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(135deg, #8b5cf6 0%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.cuigeng-header p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* 输入区域 */
.cuigeng-input-area {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}

.cuigeng-input-area textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 16px;
    color: var(--text-primary);
    font-size: 15px;
    resize: none;
    outline: none;
    font-family: inherit;
    line-height: 1.5;
}

.cuigeng-input-area textarea::placeholder {
    color: var(--text-secondary);
}

.cuigeng-input-area textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.15);
}

.input-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
}

.char-count {
    font-size: 13px;
    color: var(--text-secondary);
}

.char-count.warning {
    color: #f59e0b;
}

.char-count.limit {
    color: #ef4444;
}

.btn-publish {
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
    color: white;
    border: none;
    padding: 10px 28px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-publish:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.btn-publish:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* 消息列表 */
.cuigeng-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cuigeng-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px 20px;
    transition: all 0.2s;
}

.cuigeng-item:hover {
    border-color: rgba(139, 92, 246, 0.4);
}

.cuigeng-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.cuigeng-author {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cuigeng-author i {
    color: var(--primary-color);
    font-size: 16px;
}

.cuigeng-author span {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
}

.cuigeng-time {
    color: var(--text-secondary);
    font-size: 12px;
}

.cuigeng-content {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    margin-bottom: 12px;
    word-break: break-word;
}

.cuigeng-item-footer {
    display: flex;
    align-items: center;
}

.btn-like {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 6px 16px;
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-like:hover {
    background: rgba(139, 92, 246, 0.1);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-like.liked {
    background: rgba(139, 92, 246, 0.15);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-like i {
    font-size: 14px;
}

/* 头部右侧操作区 */
.cuigeng-item-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 编辑按钮 */
.btn-edit {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 13px;
    transition: all 0.2s;
}

.btn-edit:hover {
    color: var(--primary-color);
    background: rgba(139, 92, 246, 0.1);
}

/* 编辑区域 */
.edit-area {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.edit-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    padding: 10px 14px;
    color: var(--text-primary);
    font-size: 15px;
    resize: none;
    outline: none;
    font-family: inherit;
    line-height: 1.5;
}

.edit-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.edit-btns {
    display: flex;
    gap: 8px;
}

.btn-edit-cancel,
.btn-edit-save {
    border: none;
    padding: 6px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-edit-cancel {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
}

.btn-edit-cancel:hover {
    background: rgba(255, 255, 255, 0.15);
}

.btn-edit-save {
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
    color: white;
}

.btn-edit-save:hover {
    opacity: 0.9;
}

.btn-edit-save:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 排名标记 */
.rank-badge {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

.rank-1 {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #000;
}

.rank-2 {
    background: linear-gradient(135deg, #d1d5db, #9ca3af);
    color: #000;
}

.rank-3 {
    background: linear-gradient(135deg, #d97706, #b45309);
    color: #fff;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.4;
}

.empty-state p {
    font-size: 16px;
}

/* 加载状态 */
.loading {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
    font-size: 14px;
}

/* 提示消息 */
.toast {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 15, 25, 0.95);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.toast.show {
    opacity: 1;
}

.toast.error {
    border-color: #ef4444;
}

.toast.success {
    border-color: #22c55e;
}

/* 响应式 */
@media (max-width: 600px) {
    .cuigeng-container {
        padding: 16px 12px;
    }

    .cuigeng-header h1 {
        font-size: 22px;
    }

    .cuigeng-input-area {
        padding: 14px;
    }

    .cuigeng-item {
        padding: 12px 14px;
    }

    .cuigeng-content {
        font-size: 15px;
    }
}
