
/* === 重置样式 === */
.moe-reset * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* === 基础样式 === */
.moe-body {
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, #f9f7ff 0%, #fff5f5 100%);
    color: #555;
    line-height: 1.6;
}

/* === 容器 === */
.moe-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.moe-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 25px;
    margin: 15px 0;
    box-shadow: 0 8px 25px rgba(255, 182, 193, 0.15);
    border: 1px solid rgba(255, 182, 193, 0.3);
    backdrop-filter: blur(10px);
}

/* === 标题 === */
.moe-h1, .moe-h2, .moe-h3, .moe-h4, .moe-h5, .moe-h6 {
    color: #ff6b9d;
    margin: 20px 0 15px;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.moe-h1 { font-size: 2.5em; border-left: 5px solid #ff6b9d; padding-left: 15px; }
.moe-h2 { font-size: 2em; border-bottom: 2px dashed #a8d8ff; padding-bottom: 10px; }
.moe-h3 { font-size: 1.6em; color: #6ecbff; }
.moe-h4 { font-size: 1.3em; color: #ff9ec5; }
.moe-h5 { font-size: 1.1em; color: #88d3ff; }
.moe-h6 { font-size: 1em; color: #ffb6c1; }

/* === 段落和文字 === */
.moe-p {
    margin-bottom: 15px;
    text-align: justify;
}

.moe-text-primary { color: #ff6b9d; }
.moe-text-secondary { color: #6ecbff; }
.moe-text-muted { color: #aaa; }
.moe-text-center { text-align: center; }
.moe-text-right { text-align: right; }

/* === 按钮 === */
.moe-btn {
    display: inline-block;
    padding: 12px 25px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    position: relative;
    overflow: hidden;
}

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

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

.moe-btn-primary {
    background: linear-gradient(45deg, #ff6b9d, #ff8eb4);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.3);
}

.moe-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 157, 0.4);
}

.moe-btn-secondary {
    background: linear-gradient(45deg, #6ecbff, #8cd5ff);
    color: white;
    box-shadow: 0 4px 15px rgba(110, 203, 255, 0.3);
}

.moe-btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(110, 203, 255, 0.4);
}

.moe-btn-outline {
    background: transparent;
    border: 2px solid #ff6b9d;
    color: #ff6b9d;
}

.moe-btn-outline:hover {
    background: #ff6b9d;
    color: white;
}

/* === 表单 === */
.moe-form-group {
    margin-bottom: 20px;
}

.moe-label {
    display: block;
    margin-bottom: 8px;
    color: #ff6b9d;
    font-weight: 600;
}

.moe-input, .moe-textarea, .moe-select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e6f7ff;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
}

.moe-input:focus, .moe-textarea:focus, .moe-select:focus {
    outline: none;
    border-color: #6ecbff;
    box-shadow: 0 0 0 3px rgba(110, 203, 255, 0.1);
}

.moe-textarea {
    min-height: 100px;
    resize: vertical;
}

.moe-checkbox, .moe-radio {
    margin-right: 8px;
    transform: scale(1.2);
}

/* === 导航 === */
.moe-nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    border-bottom: 2px solid #ffebf0;
}

.moe-nav-list {
    list-style: none;
    display: flex;
    gap: 30px;
}

.moe-nav-link {
    color: #ff6b9d;
    text-decoration: none;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.moe-nav-link:hover, .moe-nav-link.active {
    background: #ff6b9d;
    color: white;
}

/* === 弹窗 === */
.moe-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.moe-modal {
    background: white;
    border-radius: 20px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 50px rgba(255, 107, 157, 0.2);
    border: 2px solid #ffebf0;
}

.moe-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px dashed #e6f7ff;
}

.moe-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #ff6b9d;
}

/* === 列表 === */
.moe-ul, .moe-ol {
    margin-left: 20px;
    margin-bottom: 20px;
}

.moe-li {
    margin-bottom: 8px;
    padding-left: 5px;
}

.moe-ul .moe-li::marker {
    color: #ff6b9d;
}

.moe-ol .moe-li::marker {
    color: #6ecbff;
    font-weight: bold;
}





ul,ol {
    margin-left: 20px;
    margin-bottom: 20px;
}

li {
    margin-bottom: 8px;
    padding-left: 5px;
}

ul li::marker {
    color: #ff6b9d;
}

ol li::marker {
    color: #6ecbff;
    font-weight: bold;
}

/* === 表格 === */
.moe-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.moe-th, .moe-td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #f0f8ff;
}

.moe-th {
    background: linear-gradient(45deg, #ff6b9d, #ff8eb4);
    color: white;
    font-weight: 600;
}

.moe-tr:nth-child(even) {
    background: #f9fcff;
}

.moe-tr:hover {
    background: #f0f8ff;
}




table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

th, td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #f0f8ff;
}

th {
    background: linear-gradient(45deg, #ff6b9d, #ff8eb4);
    color: white;
    font-weight: 600;
}

tr:nth-child(even) {
    background: #f9fcff;
}

tr:hover {
    background: #f0f8ff;
}




/* === 标签 === */
.moe-tag {
    display: inline-block;
    padding: 5px 12px;
    background: #e6f7ff;
    color: #6ecbff;
    border-radius: 15px;
    font-size: 14px;
    margin: 2px 5px;
    border: 1px solid #b3e8ff;
}

.moe-tag-primary {
    background: #ffe6ee;
    color: #ff6b9d;
    border-color: #ffcfe0;
}

/* === 进度条 === */
.moe-progress {
    width: 100%;
    height: 10px;
    background: #f0f8ff;
    border-radius: 5px;
    overflow: hidden;
    margin: 15px 0;
}

.moe-progress-bar {
    height: 100%;
    background: linear-gradient(45deg, #ff6b9d, #ff8eb4);
    border-radius: 5px;
    transition: width 0.3s ease;
}

/* === 工具类 === */
.moe-mt-1 { margin-top: 10px; }
.moe-mt-2 { margin-top: 20px; }
.moe-mt-3 { margin-top: 30px; }
.moe-mb-1 { margin-bottom: 10px; }
.moe-mb-2 { margin-bottom: 20px; }
.moe-mb-3 { margin-bottom: 30px; }
.moe-ml-1 { margin-left: 10px; }
.moe-ml-2 { margin-left: 20px; }
.moe-ml-3 { margin-left: 30px; }
.moe-mr-1 { margin-right: 10px; }
.moe-mr-2 { margin-right: 20px; }
.moe-mr-3 { margin-right: 30px; }

.moe-p-1 { padding: 10px; }
.moe-p-2 { padding: 20px; }
.moe-p-3 { padding: 30px; }

.moe-d-flex { display: flex; }
.moe-flex-column { flex-direction: column; }
.moe-justify-center { justify-content: center; }
.moe-align-center { align-items: center; }
.moe-flex-wrap { flex-wrap: wrap; }

.moe-w-100 { width: 100%; }
.moe-h-100 { height: 100%; }

/* === 动画 === */
@keyframes moe-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes moe-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.moe-animate-bounce {
    animation: moe-bounce 2s infinite;
}

.moe-animate-pulse {
    animation: moe-pulse 2s infinite;
}

/* === 响应式设计 === */
@media (max-width: 768px) {
    .moe-container {
        padding: 0 15px;
    }
    
    .moe-nav-list {
        flex-direction: column;
        gap: 10px;
    }
    
    .moe-card {
        padding: 20px 15px;
    }
    
    .moe-h1 { font-size: 2em; }
    .moe-h2 { font-size: 1.6em; }
    .moe-h3 { font-size: 1.3em; }
}

/* === 特殊效果 === */
.moe-ribbon {
    position: relative;
    background: #ff6b9d;
    color: white;
    padding: 10px 20px;
    margin: 20px 0;
    border-radius: 5px;
}

.moe-ribbon::before {
    content: '✨';
    margin-right: 10px;
}

.moe-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #ff4757;
    color: white;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

/* === 代码块 === */
.moe-code {
    background: #2d2d2d;
    color: #f8f8f2;
    padding: 20px;
    border-radius: 10px;
    font-family: 'Courier New', monospace;
    margin: 20px 0;
    overflow-x: auto;
    border-left: 5px solid #ff6b9d;
}

/* === 分隔线 === */
.moe-hr {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ff6b9d, #6ecbff, transparent);
    margin: 30px 0;
}

/* === 卡片悬停效果 === */
.moe-card-hover {
    transition: all 0.3s ease;
}

.moe-card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(255, 107, 157, 0.2);
}

/* === 加载动画 === */
.moe-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #ff6b9d;
    border-radius: 50%;
    animation: moe-spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes moe-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* === 页脚 === */
.moe-footer {
    background: rgba(255, 255, 255, 0.9);
    text-align: center;
    padding: 30px;
    margin-top: 50px;
    border-top: 2px solid #ffebf0;
    color: #888;
}
/* === 编辑器专用补充样式 === */

/* 块引用样式 */
.moe-blockquote {
    border-left: 4px solid #ff6b9d;
    background: #fff5f7;
    padding: 15px 20px;
    margin: 20px 0;
    font-style: italic;
    color: #666;
}

/* 链接样式 */
a{
    color: #6ecbff;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #ff6b9d;
    text-decoration: underline;
}

/* 图片样式 */
.moe-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin: 10px 0;
}

/* 预格式文本样式 */
.moe-pre {
    background: #2d2d2d;
    color: #f8f8f2;
    padding: 15px;
    border-radius: 5px;
    font-family: 'Courier New', monospace;
    overflow-x: auto;
}

/* 文字颜色和背景色通用类 */
.moe-text-color { display: inline; }
.moe-bg-color { display: inline; }

/* 粗体、斜体、下划线 */
.moe-bold { font-weight: bold; }
.moe-italic { font-style: italic; }
.moe-underline { text-decoration: underline; }

/* 文本对齐 */
.moe-text-left { text-align: left; }
.moe-text-center { text-align: center; }
.moe-text-right { text-align: right; }