/* ===== 博主页基础布局 ===== */
.blogger-container {
    padding: 40px 30px;
}

/* ===== 标签页 ===== */
.blogger-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 8px 0 30px;
}

.blogger-tab {
    padding: 10px 28px;
    border: 1px solid #a3c962;
    border-radius: 30px;
    color: #e8e0c0;
    text-decoration: none;
    font-size: 15px;
    transition: all 0.3s ease;
}

.blogger-tab:hover {
    background: rgba(163, 201, 98, 0.15);
}

.blogger-tab.active {
    background: #a3c962;
    color: #1a2f1a;
    font-weight: bold;
}

/* ===== 顶部工具条 ===== */
.skills-toolbar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
}

/* ===== 右侧竖向操作按钮 ===== */
.blogger-side-actions .admin-btn {
    width: 150px;
}

.toggle-all-btn {
    padding: 8px 20px;
    background: transparent;
    border: 1px solid #a3c962;
    border-radius: 30px;
    color: #a3c962;
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
}

.toggle-all-btn:hover {
    background: #a3c962;
    color: #1a2f1a;
}

/* ===== 技能折叠列表 ===== */
.skill-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.skill-item {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid #a3c962;
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.3s ease, background 0.3s ease;
}

.skill-item:hover {
    background: rgba(163, 201, 98, 0.08);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

.skill-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    padding: 16px 20px;
    background: transparent;
    border: none;
    color: #d4c5a2;
    font-size: 18px;
    font-weight: bold;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    transition: background 0.3s ease;
}

.skill-header:hover {
    background: rgba(163, 201, 98, 0.1);
}

.skill-title {
    word-break: break-word;
}

.skill-toggle {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    line-height: 26px;
    text-align: center;
    border: 1px solid #a3c962;
    border-radius: 50%;
    color: #a3c962;
    font-size: 16px;
    transition: all 0.3s ease;
}

.skill-item.open .skill-toggle {
    background: #a3c962;
    color: #1a2f1a;
}

.skill-body {
    display: none;
    padding: 4px 24px 22px;
    color: #e8e0c0;
    font-size: 15px;
    line-height: 1.8;
    word-break: break-word;
}

.skill-item.open .skill-body {
    display: block;
}

/* 技能正文富文本 */
.skill-body p {
    margin: 0 0 12px;
}

.skill-body p:last-child {
    margin-bottom: 0;
}

.skill-body h1,
.skill-body h2,
.skill-body h3,
.skill-body h4 {
    color: #a3c962;
    font-family: inherit;
    font-size: 18px;
    margin: 18px 0 10px;
    text-align: left;
    text-shadow: none;
}

.skill-body h1:first-child,
.skill-body h2:first-child,
.skill-body h3:first-child,
.skill-body h4:first-child {
    margin-top: 0;
}

.skill-body ul,
.skill-body ol {
    margin: 0 0 12px;
    padding-left: 24px;
}

.skill-body li {
    margin-bottom: 6px;
}

.skill-body img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 14px 0;
    border: 1px solid rgba(163, 201, 98, 0.4);
    border-radius: 10px;
}

.skill-body a {
    color: #a3c962;
    text-decoration: underline;
}

.skill-body a:hover {
    color: #ffd700;
}

.skill-body blockquote {
    margin: 12px 0;
    padding: 8px 16px;
    border-left: 3px solid #a3c962;
    background: rgba(163, 201, 98, 0.08);
    color: #cfc9b4;
}

.skill-body pre {
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(163, 201, 98, 0.3);
    border-radius: 8px;
    overflow-x: auto;
    font-size: 14px;
}

/* ===== 管理页 ===== */
.blogger-admin-container {
    max-width: 1100px;
}

.admin-actions-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.skill-table .content-preview {
    color: #999;
    font-size: 13px;
    line-height: 1.6;
    max-width: 420px;
    word-break: break-word;
}

.order-links {
    display: flex;
    gap: 8px;
}

.order-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 1px solid #a3c962;
    border-radius: 50%;
    color: #a3c962;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s ease;
}

.order-link:hover {
    background: #a3c962;
    color: #1a2f1a;
}

.order-link.disabled {
    opacity: 0.3;
    pointer-events: none;
}

/* ===== 富文本编辑器（Quill 深色主题） ===== */
.editor-wrapper {
    margin-bottom: 22px;
}

.ql-toolbar.ql-snow {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid #a3c962;
    border-radius: 8px 8px 0 0;
    padding: 8px 10px;
}

.ql-container.ql-snow {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid #a3c962;
    border-top: none;
    border-radius: 0 0 8px 8px;
    font-family: "Open Sans", sans-serif;
    font-size: 15px;
}

.ql-editor {
    min-height: 340px;
    color: #fff;
    line-height: 1.8;
}

.ql-editor.ql-blank::before {
    color: #888;
    font-style: normal;
}

.ql-snow .ql-stroke {
    stroke: #e8e0c0;
}

.ql-snow .ql-fill,
.ql-snow .ql-stroke.ql-fill {
    fill: #e8e0c0;
}

.ql-snow .ql-picker {
    color: #e8e0c0;
}

.ql-snow .ql-picker-options {
    background: #2a3a2a;
    border-color: #a3c962;
}

.ql-snow .ql-picker-item:hover,
.ql-snow .ql-picker-item.ql-selected {
    color: #ffd700;
}

.ql-snow .ql-tooltip {
    background: #2a3a2a;
    border: 1px solid #a3c962;
    color: #e8e0c0;
    box-shadow: none;
}

.ql-snow .ql-tooltip input[type="text"] {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid #a3c962;
    color: #fff;
}

.ql-snow .ql-tooltip a.ql-action,
.ql-snow .ql-tooltip a.ql-remove {
    color: #a3c962;
}

.ql-snow .ql-editor img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.ql-snow .ql-editor a {
    color: #a3c962;
}

/* ===== 编辑页操作按钮 ===== */
.editor-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.btn-secondary {
    display: inline-block;
    padding: 12px 26px;
    background: transparent;
    border: 1px solid #a3c962;
    border-radius: 6px;
    color: #a3c962;
    text-decoration: none;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #a3c962;
    color: #1a2f1a;
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
    .blogger-container {
        padding: 20px 15px;
    }

    .skills-toolbar {
        justify-content: center;
    }

    .toggle-all-btn {
        width: 100%;
        text-align: center;
    }

    /* 保持右侧按钮竖向排列 */
    .admin-actions.blogger-side-actions {
        flex-direction: column;
        align-items: center;
    }

    .blogger-side-actions .admin-btn {
        width: 180px;
    }

    .skill-header {
        padding: 14px 16px;
        font-size: 16px;
    }

    .skill-body {
        padding: 4px 16px 18px;
    }

    .skill-table .content-preview {
        max-width: 200px;
    }

    .ql-editor {
        min-height: 260px;
    }
}
