/* ========================================
   Me Blog 管理后台样式
   粉色主题 - 清新有活力
   ======================================== */

/* 基础变量 */
:root {
    --primary-color: #ff8fab;
    --primary-dark: #ff6b9d;
    --primary-light: #ffc2d1;
    
    --sidebar-bg: #ffe5ec;
    --sidebar-active: #ff8fab;
    --sidebar-text: #495057;
    
    --header-bg: #fff;
    
    --bg-color: #fff0f3;
    --card-bg: #fff;
    
    --text-primary: #2d3436;
    --text-secondary: #636e72;
    --text-muted: #b2bec2;
    
    --border-color: #ffe5ec;
    --border-radius: 16px;
    --shadow: 0 4px 15px rgba(255, 107, 157, 0.1);
    --shadow-hover: 0 8px 25px rgba(255, 107, 157, 0.2);
    
    --sidebar-width: 260px;
    --header-height: 70px;
}

/* 全局重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ========================================
   登录页面样式
   ======================================== */

.login-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(180deg, 
        #fff0f3 0%, 
        #ffe5ec 50%, 
        #ffc2d1 100%);
}

.login-card {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 24px;
    padding: 45px 40px;
    box-shadow: 0 20px 60px rgba(255, 107, 157, 0.15);
}

.login-header {
    text-align: center;
    margin-bottom: 35px;
}

.login-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 5px;
}

.login-header p {
    font-size: 14px;
    color: var(--text-secondary);
}

/* 表单样式 */
.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
    margin-left: 5px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 18px;
    font-size: 16px;
    opacity: 0.5;
}

.form-group input {
    width: 100%;
    height: 52px;
    padding: 0 18px 0 50px;
    border: 2px solid var(--border-color);
    border-radius: 14px;
    font-size: 15px;
    outline: none;
    transition: all 0.3s ease;
    background: #fafafa;
}

.form-group input:focus {
    border-color: var(--primary-color);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(255, 143, 171, 0.15);
}

/* 记住密码 */
.form-options {
    margin: 25px 0 30px;
}

.remember-me {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    width: fit-content;
}

.remember-me input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 22px;
    height: 22px;
    border: 2px solid var(--primary-light);
    border-radius: 8px;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    background: #fff;
}

.remember-me input:checked + .checkmark {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.remember-me input:checked + .checkmark::after {
    content: '✓';
    color: white;
    font-size: 13px;
    font-weight: bold;
}

.remember-me span {
    font-size: 14px;
    color: var(--text-secondary);
}

/* 登录按钮 */
.login-btn {
    width: 100%;
    height: 54px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(255, 107, 157, 0.35);
}

.login-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 107, 157, 0.45);
}

.login-btn.loading {
    pointer-events: none;
    opacity: 0.8;
}

.login-btn .btn-loader {
    display: none;
    width: 22px;
    height: 22px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.login-btn.loading .btn-text {
    margin-left: 10px;
}

.login-btn.loading .btn-loader {
    display: inline-block;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.login-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid var(--border-color);
}

.login-footer p {
    font-size: 12px;
    color: var(--text-muted);
}

/* ========================================
   后台布局样式
   ======================================== */

/* 顶部导航 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: var(--header-bg);
    box-shadow: 0 2px 20px rgba(255, 107, 157, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 35px;
    z-index: 100;
}

.header-left h1 {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-sub {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-secondary);
    padding-left: 12px;
    border-left: 2px solid var(--border-color);
    margin-left: 12px;
}

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

.admin-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    padding: 8px 18px;
    background: var(--bg-color);
    border-radius: 25px;
}

.logout-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #4cc9f0 0%, #4895ef 100%);
    color: white;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(76, 201, 240, 0.3);
}

.logout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 201, 240, 0.4);
}

/* 主体容器 */
.main-container {
    display: flex;
    padding-top: var(--header-height);
    min-height: 100vh;
}

/* 侧边栏 */
.sidebar {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: var(--sidebar-width);
    height: calc(100vh - var(--header-height));
    background: var(--sidebar-bg);
    padding: 25px 15px;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--border-color);
}

.nav-menu {
    flex: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    margin-bottom: 8px;
    color: var(--sidebar-text);
    border-radius: 12px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-item:hover {
    background: rgba(255, 143, 171, 0.15);
    transform: translateX(5px);
}

.nav-item.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.3);
}

.nav-icon {
    font-size: 18px;
    margin-right: 12px;
    width: 24px;
    text-align: center;
}

.nav-text {
    font-size: 15px;
}

.sidebar-footer {
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.sidebar-footer .nav-item {
    color: #ef476f;
}

.sidebar-footer .nav-item:hover {
    background: rgba(239, 71, 111, 0.1);
}

/* 内容区 */
.content {
    margin-left: var(--sidebar-width);
    flex: 1;
    padding: 30px 40px;
    background: var(--bg-color);
}

/* 页面通用样式 */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

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

.page-date {
    font-size: 14px;
    color: var(--text-secondary);
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 20px;
}

/* ========================================
   仪表盘样式
   ======================================== */

/* 统计卡片 */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 25px;
    display: flex;
    align-items: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-right: 18px;
}

.stat-card:nth-child(1) .stat-icon { background: linear-gradient(135deg, #ffe5ec, #ffc2d1); }
.stat-card:nth-child(2) .stat-icon { background: linear-gradient(135deg, #e0f7fa, #b2ebf2); }
.stat-card:nth-child(3) .stat-icon { background: linear-gradient(135deg, #fff3e0, #ffe0b2); }
.stat-card:nth-child(4) .stat-icon { background: linear-gradient(135deg, #e8f5e9, #c8e6c9); }

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 30px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.stat-label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* 仪表盘内容区 */
.dashboard-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 25px;
}

.dashboard-section {
    background: white;
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

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

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

.view-all {
    font-size: 13px;
    color: var(--primary-color);
    font-weight: 500;
    transition: all 0.3s ease;
}

.view-all:hover {
    color: var(--primary-dark);
}

/* 文章列表 */
.article-list {
    max-height: 420px;
    overflow-y: auto;
}

.article-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

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

.article-item:hover {
    background: #fff5f7;
    margin: 0 -10px;
    padding: 16px 10px;
    border-radius: 10px;
}

.article-info {
    flex: 1;
    min-width: 0;
}

.article-title {
    font-size: 15px;
    color: var(--text-primary);
    font-weight: 500;
    display: block;
    transition: all 0.3s ease;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 80%;
}

.article-title:hover {
    color: var(--primary-color);
}

.article-meta {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

.article-date {
    font-size: 13px;
    color: var(--text-secondary);
    white-space: nowrap;
    margin-left: 15px;
}

/* 快捷操作 */
.quick-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 22px;
    border-radius: 14px;
    color: white;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.action-btn:nth-child(1) {
    background: linear-gradient(135deg, #ff8fab 0%, #ff6b9d 100%);
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.3);
}

.action-btn:nth-child(2) {
    background: linear-gradient(135deg, #4cc9f0 0%, #4895ef 100%);
    box-shadow: 0 4px 15px rgba(76, 201, 240, 0.3);
}

.action-btn:hover {
    transform: translateX(8px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 50px 20px;
    color: var(--text-secondary);
    font-size: 14px;
}

.loading {
    text-align: center;
    padding: 50px 20px;
    color: var(--text-secondary);
    font-size: 14px;
}

/* 文章管理相关样式 */
.add-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, #ff8fab 0%, #ff6b9d 100%);
    color: white;
    border-radius: 12px;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.3);
    transition: all 0.3s ease;
}

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

.filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.search-box {
    display: flex;
    gap: 10px;
}

.search-box input {
    width: 280px;
    height: 46px;
    padding: 0 18px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

.search-box input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(255, 143, 171, 0.15);
}

.search-btn {
    padding: 0 24px;
    height: 46px;
    background: linear-gradient(135deg, #4cc9f0 0%, #4895ef 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(76, 201, 240, 0.3);
}

.filter-options {
    display: flex;
    gap: 12px;
}

.filter-options select {
    height: 46px;
    padding: 0 40px 0 18px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 14px;
    outline: none;
    background: white url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23636e72' d='M6 8L1 3h10z'/%3E%3C/svg%3E") no-repeat right 15px center;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.glass-card.article-manager {
    overflow: hidden;
}

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

.article-table th {
    padding: 16px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    color: var(--text-secondary);
    background: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
}

.article-table td {
    padding: 18px 20px;
    font-size: 14px;
    border-bottom: 1px solid var(--border-color);
}

.article-table tr:last-child td {
    border-bottom: none;
}

.article-table tr:hover {
    background: #fff8fa;
}

.article-title-link {
    color: var(--text-primary);
    font-weight: 500;
    transition: color 0.3s ease;
}

.article-title-link:hover {
    color: var(--primary-color);
}

.status-tag {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.status-published {
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    color: #2e7d32;
}

.status-draft {
    background: linear-gradient(135deg, #fff3e0, #ffe0b2);
    color: #ef6c00;
}

.action-cell {
    display: flex;
    gap: 12px;
}

.action-link {
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.action-link.edit {
    color: var(--primary-color);
}

.action-link.edit:hover {
    color: var(--primary-dark);
}

.action-link.delete {
    color: #ef476f;
}

.action-link.delete:hover {
    color: #d63031;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 25px;
}

.page-btn {
    padding: 10px 24px;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.page-btn:hover:not(:disabled) {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

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

/* 弹窗样式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-overlay.show {
    display: flex;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal {
    background: white;
    border-radius: 20px;
    width: 420px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    animation: slideUp 0.3s ease;
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 600;
}

.modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--bg-color);
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #ffebef;
    color: var(--primary-color);
}

.modal-body {
    padding: 25px;
}

.modal-body p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px 25px;
    background: var(--bg-color);
}

.btn-cancel {
    padding: 12px 24px;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cancel:hover {
    border-color: var(--text-secondary);
}

.btn-confirm {
    padding: 12px 24px;
    background: linear-gradient(135deg, #ff6b9d 0%, #d63031 100%);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(214, 48, 49, 0.3);
}

.loading-row td {
    text-align: center;
    padding: 50px;
    color: var(--text-secondary);
}

/* ===== 文章编辑页面样式 ===== */
.editor-container { display: flex; gap: 25px; }
.editor-main { flex: 1; min-width: 0; }
.editor-sidebar { width: 300px; flex-shrink: 0; }

.editor-section { background: white; border-radius: 16px; padding: 22px; margin-bottom: 20px; box-shadow: 0 4px 15px rgba(255, 107, 157, 0.08); border: 1px solid rgba(255, 182, 193, 0.2); }
.editor-section h3 { font-size: 15px; font-weight: 600; margin-bottom: 18px; color: var(--text-primary); padding-bottom: 12px; border-bottom: 1px solid var(--border-color); }

.form-group-editor { margin-bottom: 18px; }
.form-group-editor label { display: block; font-size: 13px; font-weight: 500; color: var(--text-secondary); margin-bottom: 8px; }
.form-group-editor input, .form-group-editor select, .form-group-editor textarea { width: 100%; padding: 12px 16px; border: 2px solid var(--border-color); border-radius: 10px; font-size: 14px; outline: none; transition: all 0.3s ease; background: #fafafa; }
.form-group-editor input:focus, .form-group-editor select:focus, .form-group-editor textarea:focus { border-color: var(--primary-color); background: white; box-shadow: 0 0 0 4px rgba(255, 143, 171, 0.1); }
.form-group-editor textarea { resize: vertical; min-height: 100px; }

.tag-input-container { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 14px; border: 2px solid var(--border-color); border-radius: 10px; background: #fafafa; min-height: 50px; align-items: center; transition: all 0.3s ease; }
.tag-input-container:focus-within { border-color: var(--primary-color); background: white; box-shadow: 0 0 0 4px rgba(255, 143, 171, 0.1); }
.tag-input-container input { border: none; padding: 6px; flex: 1; min-width: 80px; background: transparent; }

.tag { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; background: linear-gradient(135deg, #ffe5ec, #ffc2d1); border-radius: 20px; font-size: 13px; color: var(--primary-dark); }
.tag .remove-tag { cursor: pointer; font-size: 16px; opacity: 0.7; }
.tag .remove-tag:hover { opacity: 1; }

.image-upload { border: 2px dashed var(--border-color); border-radius: 12px; padding: 30px; text-align: center; cursor: pointer; transition: all 0.3s ease; background: #fafafa; }
.image-upload:hover { border-color: var(--primary-color); background: #fff8fa; }
.image-upload input { display: none; }
.cover-preview { max-width: 100%; border-radius: 10px; margin-top: 12px; display: none; }
.cover-preview.show { display: block; }

.btn-publish, .btn-draft, .btn-preview { width: 100%; padding: 14px; border: none; border-radius: 12px; font-size: 15px; font-weight: 600; cursor: pointer; transition: all 0.3s ease; margin-bottom: 12px; }
.btn-publish { background: linear-gradient(135deg, #ff8fab 0%, #ff6b9d 100%); color: white; box-shadow: 0 4px 15px rgba(255, 107, 157, 0.3); }
.btn-publish:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255, 107, 157, 0.4); }
.btn-draft { background: linear-gradient(135deg, #e0f7fa, #b2ebf2); color: #00838f; }
.btn-draft:hover { transform: translateY(-2px); }
.btn-preview { background: linear-gradient(135deg, #fff3e0, #ffe0b2); color: #ef6c00; margin-bottom: 0; }
.btn-preview:hover { transform: translateY(-2px); }

.status-badge { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 8px; font-size: 13px; font-weight: 500; }
.status-badge.draft { background: linear-gradient(135deg, #fff3e0, #ffe0b2); color: #ef6c00; }
.status-badge.published { background: linear-gradient(135deg, #e8f5e9, #c8e6c9); color: #2e7d32; }

.word-count { font-size: 12px; color: var(--text-muted); text-align: right; margin-top: 6px; }

.editormd { border-radius: 12px; overflow: hidden; border: 2px solid var(--border-color); }
.editormd .editor-toolbar { background: #fafafa; border-bottom: 1px solid var(--border-color); }

@media (max-width: 1100px) {
    .editor-container { flex-direction: column; }
    .editor-sidebar { width: 100%; }
}

/* ========================================
   响应式设计
   ======================================== */

@media (max-width: 1200px) {
    .dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .dashboard-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .sidebar {
        transform: translateX(-100%);
        z-index: 200;
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .content {
        margin-left: 0;
        padding: 25px 20px;
    }
}

@media (max-width: 768px) {
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    .login-card {
        width: 92%;
        padding: 35px 30px;
    }
    
    .header {
        padding: 0 20px;
    }
    
    .admin-name {
        display: none;
    }
    
    .header-sub {
        display: none;
    }
}

@media (max-width: 480px) {
    .login-card {
        width: 95%;
        padding: 30px 25px;
    }
    
    .login-header h1 {
        font-size: 24px;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .stat-number {
        font-size: 24px;
    }
    
    .form-group input {
        height: 48px;
    }
}
