/* MyPress 自定义样式 */
:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --text-color: #333;
    --bg-color: #f5f5f5;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--bg-color);
}

a { color: var(--primary-color); text-decoration: none; }
a:hover { text-decoration: underline; }

/* 导航栏 */
.navbar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 15px 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.navbar-content { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }
.navbar-brand { color: white; font-size: 1.5em; font-weight: bold; text-decoration: none; }
.navbar-menu { display: flex; gap: 20px; align-items: center; }
.navbar-menu a { color: rgba(255,255,255,0.9); text-decoration: none; transition: color 0.3s; }
.navbar-menu a:hover { color: white; text-decoration: none; }
.navbar-user { display: flex; gap: 15px; align-items: center; }
.navbar-user a { padding: 8px 15px; border-radius: 20px; background: rgba(255,255,255,0.2); transition: background 0.3s; }
.navbar-user a:hover { background: rgba(255,255,255,0.3); }

/* 按钮样式 */
.btn { display: inline-block; padding: 10px 20px; background: #667eea; color: white; border: none; border-radius: 5px; cursor: pointer; text-decoration: none; font-size: 14px; transition: all 0.3s; }
.btn:hover { background: #5568d3; text-decoration: none; }
.btn-primary { background: #667eea; }
.btn-secondary { background: #6c757d; }
.btn-danger { background: #dc3545; }
.btn-sm { padding: 5px 10px; font-size: 12px; }

/* 表单样式 */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: 500; color: #333; }
.form-group input, .form-group textarea { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 5px; font-size: 14px; transition: border-color 0.3s; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: #667eea; }

/* 博客样式 */
.blog-container { max-width: 1200px; margin: 40px auto; padding: 20px; }
.blog-grid { display: grid; grid-template-columns: 3fr 1fr; gap: 30px; }
.blog-posts { display: flex; flex-direction: column; gap: 20px; }
.blog-post { background: white; padding: 20px; border-radius: 10px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.blog-post h2 { margin-bottom: 10px; }
.blog-post h2 a { color: #333; text-decoration: none; }
.blog-post h2 a:hover { color: #667eea; }
.blog-meta { color: #888; font-size: 0.9em; margin-bottom: 10px; }
.blog-content { line-height: 1.8; }
.blog-content img { max-width: 100%; height: auto; border-radius: 5px; margin: 10px 0; }

/* 侧边栏 */
.sidebar { background: white; padding: 20px; border-radius: 10px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.sidebar h3 { margin-bottom: 15px; padding-bottom: 10px; border-bottom: 2px solid #667eea; }

/* 日历样式 */
.calendar { background: white; padding: 20px; border-radius: 10px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); margin-bottom: 20px; }
.calendar h3 { margin-bottom: 15px; }
.calendar-year { text-align: center; font-size: 1.3em; font-weight: bold; color: #333; margin-bottom: 15px; }
.calendar-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 15px; }
.calendar-nav-btn { background: none; border: 1px solid #ddd; border-radius: 6px; padding: 8px 12px; cursor: pointer; font-size: 1.1em; transition: all 0.2s; color: #333; }
.calendar-nav-btn:hover { background: #667eea; color: white; border-color: #667eea; }
.calendar-nav-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.calendar-months { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.calendar-month { display: block; padding: 10px; background: #f8f9fa; border-radius: 5px; text-align: center; transition: all 0.2s; }
.calendar-month:hover { background: #667eea; color: white; }
.calendar-month.active { background: #667eea; color: white; }
.month-name { font-weight: bold; }
.post-count { font-size: 0.8em; color: #666; }

/* 个人中心 */
.profile-container { max-width: 900px; margin: 40px auto; padding: 20px; }
.profile-header { background: white; padding: 30px; border-radius: 10px; margin-bottom: 30px; box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
.profile-content { background: white; padding: 30px; border-radius: 10px; box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
.profile-actions { margin-top: 20px; }

/* 筛选标签 */
.filter-tags { margin-bottom: 15px; }
.filter-tag { display: inline-block; padding: 5px 15px; background: #667eea; color: white; border-radius: 20px; font-size: 0.9em; }
.filter-tag a { color: white; }

/* 版权 */
.footer { text-align: center; padding: 20px; color: #888; margin-top: 40px; }

/* 响应式 */
@media (max-width: 768px) {
    .blog-grid { grid-template-columns: 1fr; }
    .calendar-months { grid-template-columns: repeat(3, 1fr); }
}
