/* ===== 胖猫个人网站 - 公共样式 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body {
    width: 100%; min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
    background: #f5f7fa;
    color: #333;
    line-height: 1.8;
}
a { color: #2c5282; text-decoration: none; transition: color 0.2s; }
a:hover { color: #4a90d9; }

.wrap {
    max-width: 1080px;
    margin: 0 auto;
    background: white;
    min-height: 100vh;
    box-shadow: 0 0 20px rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
}
.main-content { flex: 1; }

/* ===== 顶部导航 ===== */
.navbar {
    background: #fff;
    border-bottom: 1px solid #e8ecf1;
    padding: 0 40px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}
.nav-logo {
    font-size: 18px;
    font-weight: 600;
    color: #2c5282;
    letter-spacing: 1px;
}
.nav-logo span { color: #4a90d9; }
.nav-logo a { color: #2c5282; }
.nav-links {
    display: flex;
    gap: 28px;
    font-size: 14px;
}
.nav-links a {
    color: #5a6a7a;
    text-decoration: none;
    transition: color 0.2s;
    padding: 4px 0;
    border-bottom: 2px solid transparent;
}
.nav-links a:hover { color: #2c5282; }
.nav-links a.active {
    color: #2c5282;
    border-bottom-color: #4a90d9;
    font-weight: 500;
}

/* ===== 页面头部 ===== */
.page-hero {
    padding: 60px 40px 40px;
    background: linear-gradient(135deg, #f0f4f8 0%, #e8edf3 100%);
    text-align: center;
}
.page-hero h1 {
    font-size: 30px;
    color: #2c5282;
    margin-bottom: 10px;
    font-weight: 600;
}
.page-hero .desc {
    font-size: 14px;
    color: #6b7c8d;
}

/* ===== 面包屑 ===== */
.breadcrumb {
    padding: 16px 40px;
    background: #fafbfc;
    border-bottom: 1px solid #eef2f7;
    font-size: 13px;
    color: #8a9ba8;
}
.breadcrumb a { color: #5a6a7a; }
.breadcrumb a:hover { color: #2c5282; }
.breadcrumb .sep { margin: 0 8px; color: #c0ccd6; }

/* ===== 通用板块 ===== */
.section {
    padding: 50px 40px;
    border-bottom: 1px solid #eef2f7;
}
.section-header {
    text-align: center;
    margin-bottom: 36px;
}
.section-header h2 {
    font-size: 24px;
    color: #2c5282;
    font-weight: 600;
    margin-bottom: 8px;
}
.section-header .desc {
    font-size: 14px;
    color: #8a9ba8;
}

/* ===== Hero ===== */
.hero {
    padding: 70px 40px 50px;
    background: linear-gradient(135deg, #f0f4f8 0%, #e8edf3 100%);
    text-align: center;
}
.hero-avatar {
    width: 90px;
    height: 90px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #4a90d9, #2c5282);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 42px;
    box-shadow: 0 8px 24px rgba(44,82,130,0.2);
}
.hero h1 {
    font-size: 32px;
    color: #2c5282;
    margin-bottom: 10px;
    font-weight: 600;
    letter-spacing: 2px;
}
.hero .tagline {
    font-size: 15px;
    color: #6b7c8d;
    margin-bottom: 6px;
}
.hero .sub {
    font-size: 13px;
    color: #8a9ba8;
}
.hero-tags {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 22px;
    flex-wrap: wrap;
}
.hero-tags span {
    padding: 5px 14px;
    background: white;
    border: 1px solid #dce3eb;
    border-radius: 18px;
    font-size: 12px;
    color: #4a5a6a;
}

/* ===== 首页特色区域 ===== */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.feature-card {
    padding: 28px 24px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e8ecf1;
    text-align: center;
    transition: all 0.25s;
}
.feature-card:hover {
    border-color: #4a90d9;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(44,82,130,0.08);
}
.feature-icon {
    font-size: 40px;
    margin-bottom: 14px;
}
.feature-card h3 {
    font-size: 17px;
    color: #2c5282;
    margin-bottom: 8px;
    font-weight: 600;
}
.feature-card p {
    font-size: 13px;
    color: #6b7c8d;
    line-height: 1.7;
}
.feature-card .more {
    display: inline-block;
    margin-top: 14px;
    font-size: 13px;
    color: #4a90d9;
}

/* ===== 笔记列表（首页精简版） ===== */
.notes-preview {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.note-card {
    padding: 18px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e8ecf1;
    transition: all 0.2s;
    display: block;
}
.note-card:hover {
    border-color: #4a90d9;
    background: #f0f6fb;
}
.note-card h4 {
    font-size: 14px;
    color: #2c5282;
    margin-bottom: 8px;
    font-weight: 500;
    line-height: 1.5;
}
.note-card .meta {
    font-size: 12px;
    color: #9aa8b5;
}
.note-card .summary {
    font-size: 13px;
    color: #6b7c8d;
    margin-top: 8px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.view-more {
    text-align: center;
    margin-top: 28px;
}
.view-more a {
    display: inline-block;
    padding: 10px 30px;
    border: 1px solid #4a90d9;
    color: #2c5282;
    border-radius: 20px;
    font-size: 13px;
    transition: all 0.2s;
}
.view-more a:hover {
    background: #2c5282;
    color: white;
    border-color: #2c5282;
}

/* ===== 作品项目 ===== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.project-card {
    padding: 28px 22px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e8ecf1;
    transition: all 0.25s;
}
.project-card:hover {
    border-color: #4a90d9;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(44,82,130,0.08);
}
.project-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #4a90d9, #2c5282);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    margin-bottom: 16px;
}
.project-card h3 {
    font-size: 17px;
    color: #2c5282;
    margin-bottom: 10px;
    font-weight: 600;
}
.project-card p {
    font-size: 13px;
    color: #6b7c8d;
    line-height: 1.7;
    margin-bottom: 14px;
}
.project-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.project-tags span {
    padding: 3px 10px;
    background: white;
    border: 1px solid #dce3eb;
    border-radius: 12px;
    font-size: 11px;
    color: #5a6a7a;
}
a.project-card {
    display: block;
    color: inherit;
}
a.project-card:hover {
    color: inherit;
}
.project-more {
    margin-top: 14px;
    font-size: 13px;
    color: #4a90d9;
    font-weight: 500;
}

/* ===== 项目详情页 ===== */
.project-detail {
    padding: 40px 0;
}
.project-detail h1 {
    font-size: 28px;
    color: #2c5282;
    margin-bottom: 12px;
}
.project-detail .meta {
    color: #8a9aaa;
    font-size: 14px;
    margin-bottom: 24px;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.project-detail .content p {
    margin-bottom: 16px;
    color: #445566;
}
.project-detail .content h2 {
    font-size: 20px;
    color: #2c5282;
    margin: 28px 0 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e8ecf1;
}
.project-detail .content h3 {
    font-size: 16px;
    color: #3d5a80;
    margin: 20px 0 10px;
}
.project-detail .content ul,
.project-detail .content ol {
    margin: 10px 0 16px 24px;
    color: #445566;
}
.project-detail .content li {
    margin-bottom: 6px;
}
.project-detail .content blockquote {
    margin: 16px 0;
    padding: 14px 20px;
    background: #f0f5fa;
    border-left: 4px solid #4a90d9;
    border-radius: 0 8px 8px 0;
    color: #3d5a80;
}
.project-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 20px 0 30px;
}
.project-feature-item {
    padding: 20px;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #e8ecf1;
    text-align: center;
}
.project-feature-item .icon {
    font-size: 28px;
    margin-bottom: 8px;
}
.project-feature-item h4 {
    font-size: 14px;
    color: #2c5282;
    margin-bottom: 4px;
}
.project-feature-item p {
    font-size: 12px;
    color: #8a9aaa;
    margin: 0 !important;
}

/* ===== 课程资源管理搜索展示区 ===== */
.crm-search-section {
    background: linear-gradient(135deg, #4a90d9 0%, #2c5282 100%);
    border-radius: 14px;
    padding: 40px 30px;
    color: white;
    text-align: center;
    margin: 20px 0 30px;
}
.crm-search-section h2 {
    font-size: 22px;
    margin-bottom: 8px;
    color: white !important;
    border: none !important;
    padding: 0 !important;
}
.crm-search-section .sub {
    font-size: 14px;
    opacity: 0.85;
    margin-bottom: 24px;
}
.crm-search-bar {
    display: flex;
    max-width: 600px;
    margin: 0 auto 20px;
    gap: 10px;
}
.crm-search-bar input {
    flex: 1;
    padding: 12px 18px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
}
.crm-search-bar button {
    padding: 12px 24px;
    background: #ffb347;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    font-weight: 500;
}
.crm-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 20px;
}
.crm-stat-item .num {
    font-size: 28px;
    font-weight: bold;
}
.crm-stat-item .label {
    font-size: 12px;
    opacity: 0.8;
}
.crm-filter-bar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding: 16px 20px;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #e8ecf1;
}
.crm-filter-item {
    font-size: 13px;
    color: #5a6a7a;
}
.crm-filter-item select {
    padding: 6px 12px;
    border: 1px solid #dce3eb;
    border-radius: 6px;
    font-size: 13px;
    background: white;
    color: #333;
    margin-left: 6px;
}
.crm-course-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.crm-course-item {
    display: flex;
    gap: 16px;
    padding: 18px 20px;
    background: white;
    border-radius: 10px;
    border: 1px solid #e8ecf1;
    transition: all 0.2s;
}
.crm-course-item:hover {
    border-color: #4a90d9;
    box-shadow: 0 4px 12px rgba(44,82,130,0.06);
}
.crm-course-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #4a90d9, #2c5282);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    flex-shrink: 0;
}
.crm-course-info {
    flex: 1;
    min-width: 0;
}
.crm-course-info h4 {
    font-size: 15px;
    color: #2c5282;
    margin-bottom: 6px;
}
.crm-course-info p {
    font-size: 12px !important;
    color: #8a9aaa;
    margin: 0 0 6px 0 !important;
    line-height: 1.6;
}
.crm-course-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.crm-course-tags span {
    padding: 2px 8px;
    background: #f0f5fa;
    border-radius: 10px;
    font-size: 11px;
    color: #4a90d9;
}
.crm-course-meta {
    text-align: right;
    flex-shrink: 0;
    font-size: 12px;
    color: #8a9aaa;
    padding-top: 4px;
}
.crm-course-meta .duration {
    color: #2c5282;
    font-weight: 500;
}

/* ===== 随笔列表（首页精简） ===== */
.essay-preview {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
.essay-card {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #e8ecf1;
    transition: all 0.2s;
}
.essay-card:hover {
    border-color: #4a90d9;
    background: #f0f6fb;
}
.essay-date {
    flex-shrink: 0;
    width: 60px;
    text-align: center;
    padding: 10px 4px;
    background: linear-gradient(135deg, #4a90d9, #2c5282);
    color: white;
    border-radius: 8px;
}
.essay-date .day { font-size: 22px; font-weight: bold; line-height: 1.1; }
.essay-date .month { font-size: 11px; margin-top: 4px; opacity: 0.85; }
.essay-content h4 {
    font-size: 15px;
    color: #2c5282;
    margin-bottom: 6px;
    font-weight: 500;
}
.essay-content p {
    font-size: 13px;
    color: #6b7c8d;
    line-height: 1.6;
}

/* ===== 文章列表页 ===== */
.article-list {
    padding: 40px;
}
.article-item {
    padding: 24px 0;
    border-bottom: 1px solid #eef2f7;
    display: block;
}
.article-item:last-child { border-bottom: none; }
.article-item:hover h3 { color: #4a90d9; }
.article-item h3 {
    font-size: 18px;
    color: #2c5282;
    margin-bottom: 10px;
    font-weight: 500;
    transition: color 0.2s;
}
.article-item .meta {
    font-size: 12px;
    color: #9aa8b5;
    margin-bottom: 10px;
}
.article-item .meta span { margin-right: 16px; }
.article-item .excerpt {
    font-size: 14px;
    color: #5a6a7a;
    line-height: 1.8;
}
.article-category {
    margin-bottom: 32px;
}
.article-category h2 {
    font-size: 20px;
    color: #2c5282;
    margin-bottom: 8px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e8edf3;
    font-weight: 600;
}
.article-category h2 .icon { margin-right: 8px; }

/* ===== 文章详情页 ===== */
.article-detail {
    padding: 40px 60px;
    max-width: 820px;
    margin: 0 auto;
}
.article-detail h1 {
    font-size: 28px;
    color: #2c5282;
    margin-bottom: 16px;
    font-weight: 600;
    line-height: 1.4;
}
.article-detail .meta {
    font-size: 13px;
    color: #8a9ba8;
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eef2f7;
}
.article-detail .meta span { margin-right: 20px; }
.article-detail .content {
    font-size: 15px;
    color: #3a4a5a;
    line-height: 2;
}
.article-detail .content h2 {
    font-size: 20px;
    color: #2c5282;
    margin: 32px 0 16px;
    font-weight: 600;
}
.article-detail .content h3 {
    font-size: 17px;
    color: #2c5282;
    margin: 24px 0 12px;
    font-weight: 600;
}
.article-detail .content p {
    margin-bottom: 18px;
    text-align: justify;
}
.article-detail .content ul,
.article-detail .content ol {
    margin: 16px 0 16px 24px;
}
.article-detail .content li {
    margin-bottom: 8px;
}
.article-detail .content blockquote {
    border-left: 4px solid #4a90d9;
    padding: 12px 20px;
    background: #f0f6fb;
    color: #5a6a7a;
    margin: 20px 0;
    border-radius: 0 6px 6px 0;
}
.article-nav {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid #eef2f7;
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}
.article-nav .prev, .article-nav .next {
    flex: 1;
}
.article-nav .next { text-align: right; }
.article-nav .label {
    font-size: 12px;
    color: #9aa8b5;
    margin-bottom: 4px;
}
.article-nav a {
    color: #2c5282;
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ===== 关于我页面 ===== */
.about-page {
    padding: 50px 60px;
    max-width: 900px;
    margin: 0 auto;
}
.about-page-header {
    text-align: center;
    margin-bottom: 40px;
}
.about-page-avatar {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #4a90d9, #2c5282);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 48px;
    box-shadow: 0 8px 24px rgba(44,82,130,0.15);
}
.about-page h1 {
    font-size: 28px;
    color: #2c5282;
    margin-bottom: 8px;
}
.about-page .role {
    font-size: 14px;
    color: #8a9ba8;
    margin-bottom: 16px;
}
.about-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}
.about-tags span {
    padding: 5px 14px;
    background: #eef4fb;
    color: #2c5282;
    border-radius: 16px;
    font-size: 13px;
}
.about-section {
    margin-bottom: 36px;
}
.about-section h2 {
    font-size: 20px;
    color: #2c5282;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e8edf3;
    font-weight: 600;
}
.about-section p {
    font-size: 15px;
    color: #3a4a5a;
    line-height: 2;
    margin-bottom: 14px;
    text-align: justify;
}
.timeline {
    position: relative;
    padding-left: 30px;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 6px;
    bottom: 6px;
    width: 2px;
    background: #dce3eb;
}
.timeline-item {
    position: relative;
    margin-bottom: 20px;
}
.timeline-item::before {
    content: '';
    position: absolute;
    left: -27px;
    top: 8px;
    width: 10px;
    height: 10px;
    background: #4a90d9;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 0 0 2px #4a90d9;
}
.timeline-date {
    font-size: 13px;
    color: #4a90d9;
    font-weight: 500;
    margin-bottom: 4px;
}
.timeline-title {
    font-size: 15px;
    color: #2c5282;
    font-weight: 500;
    margin-bottom: 4px;
}
.timeline-desc {
    font-size: 13px;
    color: #6b7c8d;
    line-height: 1.7;
}

/* ===== 联系页面 ===== */
.contact-page {
    padding: 50px 40px;
    max-width: 800px;
    margin: 0 auto;
}
.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}
.contact-card {
    padding: 28px 20px;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #e8ecf1;
    text-align: center;
}
.contact-icon {
    font-size: 32px;
    margin-bottom: 12px;
}
.contact-card h4 {
    font-size: 15px;
    color: #2c5282;
    margin-bottom: 8px;
    font-weight: 500;
}
.contact-card p {
    font-size: 13px;
    color: #6b7c8d;
    line-height: 1.6;
}
.contact-card a {
    color: #2c5282;
    font-weight: 500;
}

/* ===== 分页 ===== */
.pagination {
    text-align: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eef2f7;
}
.pagination span {
    display: inline-block;
    padding: 8px 14px;
    margin: 0 4px;
    background: #f8fafc;
    border: 1px solid #e8ecf1;
    border-radius: 6px;
    font-size: 13px;
    color: #5a6a7a;
}
.pagination span.active {
    background: #2c5282;
    color: white;
    border-color: #2c5282;
}

/* ===== 底部 ===== */
.footer {
    background: #2a3441;
    color: #8a9ba8;
    text-align: center;
    padding: 32px 30px 24px;
    font-size: 13px;
    flex-shrink: 0;
}
.footer-name {
    font-size: 15px;
    color: #fff;
    margin-bottom: 6px;
    font-weight: 500;
}
.footer-desc {
    font-size: 12px;
    color: #6b7c8d;
    margin-bottom: 14px;
}
.beian {
    margin-top: 10px;
    font-size: 12px;
}
.beian a {
    color: #6b7c8d;
    text-decoration: none;
    margin: 0 4px;
}
.beian a:hover { color: #4a90d9; }
.copyright {
    margin-top: 8px;
    font-size: 11px;
    color: #5a6a7a;
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
    .navbar { padding: 0 20px; }
    .nav-links { display: none; }
    .hero { padding: 50px 20px 40px; }
    .hero h1 { font-size: 24px; }
    .section { padding: 40px 20px; }
    .feature-grid, .notes-preview, .projects-grid, .essay-preview, .contact-grid {
        grid-template-columns: 1fr;
    }
    .article-detail { padding: 30px 20px; }
    .article-detail h1 { font-size: 22px; }
    .about-page { padding: 40px 20px; }
    .article-list { padding: 20px; }
    .breadcrumb { padding: 12px 20px; }
    .page-hero { padding: 40px 20px 30px; }
    .page-hero h1 { font-size: 24px; }
}
