@import url('https://fonts.googleapis.com/css2?family=ZCOOL+KuaiLe&family=Ma+Shan+Zheng&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-pink: #ffb6d9;
    --secondary-pink: #ffc8dd;
    --light-pink: #ffe0ec;
    --deep-pink: #e68aa8;
    --purple: #c9a0dc;
    --light-purple: #e0c3fc;
    --cream: #fff5f8;
    --white: #ffffff;
    --text-dark: #4a3752;
    --text-light: #8b7598;
    --cat-orange: #ffb347;
    --shadow-soft: 0 4px 20px rgba(255, 182, 217, 0.3);
    --shadow-hover: 0 8px 30px rgba(255, 182, 217, 0.5);
    --border-radius: 20px;
    --border-radius-small: 12px;
}

body {
    font-family: 'ZCOOL KuaiLe', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, #ffe0ec 0%, #e0c3fc 50%, #fff5f8 100%);
    color: var(--text-dark);
    min-height: 100vh;
    line-height: 1.8;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(255, 182, 217, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(201, 160, 220, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255, 224, 236, 0.2) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* ============ 导航栏样式 ============ */
.navbar {
    background: linear-gradient(135deg, rgba(255, 182, 217, 0.95), rgba(201, 160, 220, 0.95));
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-soft);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom-left-radius: 30px;
    border-bottom-right-radius: 30px;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--white);
    font-size: 1.5rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.nav-logo .cat-icon {
    width: 40px;
    height: 40px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 8px;
}

.nav-menu a {
    color: var(--white);
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-size: 1rem;
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    background: var(--white);
    color: var(--deep-pink);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.8rem;
    cursor: pointer;
}

/* ============ 页头样式 ============ */
.header {
    text-align: center;
    padding: 60px 20px 40px;
    position: relative;
}

.header-content {
    display: inline-block;
    padding: 40px 60px;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 50px;
    box-shadow: var(--shadow-soft);
    position: relative;
}

.header-content::before,
.header-content::after {
    content: '🐾';
    position: absolute;
    font-size: 2rem;
    opacity: 0.6;
}

.header-content::before {
    top: 15px;
    left: 20px;
    transform: rotate(-30deg);
}

.header-content::after {
    bottom: 15px;
    right: 20px;
    transform: rotate(30deg);
}

.site-title {
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 3rem;
    background: linear-gradient(135deg, var(--deep-pink), var(--purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.site-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
}

/* ============ 主要内容区 ============ */
.main-content {
    padding: 40px 0;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
}

/* ============ 文章卡片 ============ */
.post-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: var(--shadow-soft);
    transition: all 0.4s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.post-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-pink), var(--purple), var(--cat-orange));
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--secondary-pink);
}

.post-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: var(--text-light);
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.meta-divider {
    color: var(--secondary-pink);
    opacity: 0.6;
    font-weight: bold;
}

.post-title {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.post-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.post-title a:hover {
    color: var(--deep-pink);
}

.post-excerpt {
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 20px;
    opacity: 0.9;
}

.post-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag {
    background: linear-gradient(135deg, var(--light-pink), var(--light-purple));
    color: var(--deep-pink);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.tag:hover {
    transform: scale(1.05);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.read-more {
    display: inline-block;
    margin-top: 15px;
    color: var(--deep-pink);
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
}

.read-more:hover {
    color: var(--purple);
    transform: translateX(5px);
}

/* ============ 侧边栏 ============ */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.sidebar-widget {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--shadow-soft);
    position: relative;
}

.widget-title {
    font-size: 1.2rem;
    color: var(--deep-pink);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px dashed var(--secondary-pink);
    display: flex;
    align-items: center;
    gap: 8px;
}

.author-card {
    text-align: center;
}

.avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-pink), var(--purple));
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    box-shadow: 0 5px 20px rgba(255, 182, 217, 0.4);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.author-name {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.author-desc {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--light-pink), var(--light-purple));
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 1.2rem;
}

.social-links a:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.friend-list {
    list-style: none;
}

.friend-list li {
    padding: 12px 0;
    border-bottom: 1px dashed var(--light-pink);
}

.friend-list li:last-child {
    border-bottom: none;
}

.friend-list a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.friend-list a:hover {
    color: var(--deep-pink);
}

.friend-list .friend-icon {
    font-size: 1.2rem;
}

/* ============ 页脚样式 ============ */
.footer {
    background: linear-gradient(135deg, rgba(255, 182, 217, 0.95), rgba(201, 160, 220, 0.95));
    color: var(--white);
    padding: 40px 20px 20px;
    margin-top: 60px;
    border-top-left-radius: 40px;
    border-top-right-radius: 40px;
    position: relative;
}

.footer-content {
    max-width: 1100px;
    margin: 0 auto;
}

.footer-section {
    margin-bottom: 30px;
}

.footer h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.footer-links {
    list-style: none;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s;
    padding: 5px 15px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.2);
}

.footer-links a:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 0.9rem;
}

.beian-info {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.beian-info a {
    color: var(--white);
    text-decoration: none;
    transition: opacity 0.3s;
}

.beian-info a:hover {
    opacity: 0.8;
}

.copyright {
    opacity: 0.9;
}

/* ============ 文章详情页 ============ */
.post-detail {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--shadow-soft);
    margin-bottom: 30px;
}

.post-detail .post-title {
    font-size: 2.2rem;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 2px dashed var(--secondary-pink);
}

.post-content {
    line-height: 2;
    color: var(--text-dark);
}

.post-content h2,
.post-content h3 {
    margin: 25px 0 15px;
    color: var(--deep-pink);
}

.post-content p {
    margin-bottom: 18px;
}

.post-content img {
    max-width: 100%;
    border-radius: var(--border-radius-small);
    margin: 20px 0;
}

.post-content blockquote {
    border-left: 4px solid var(--primary-pink);
    padding: 15px 20px;
    background: var(--light-pink);
    border-radius: 0 var(--border-radius-small) var(--border-radius-small) 0;
    margin: 20px 0;
}

.post-content code {
    background: var(--light-purple);
    padding: 3px 8px;
    border-radius: 5px;
    font-family: 'Courier New', monospace;
}

.post-content pre {
    background: var(--text-dark);
    color: var(--white);
    padding: 20px;
    border-radius: var(--border-radius-small);
    overflow-x: auto;
    margin: 20px 0;
}

.post-content pre code {
    background: none;
    color: inherit;
    padding: 0;
}

.post-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 25px;
    border-top: 2px dashed var(--secondary-pink);
}

.post-nav a {
    flex: 1;
    text-decoration: none;
    color: var(--deep-pink);
    padding: 15px 20px;
    border-radius: var(--border-radius-small);
    transition: all 0.3s;
}

.post-nav a:hover {
    background: var(--light-pink);
}

.post-nav .prev {
    margin-right: 15px;
}

.post-nav .next {
    text-align: right;
}

/* ============ 归档页 ============ */
.archive-list {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow-soft);
}

.archive-year {
    font-size: 1.5rem;
    color: var(--deep-pink);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--secondary-pink);
}

.archive-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px dashed var(--light-pink);
    transition: all 0.3s;
}

.archive-item:last-child {
    border-bottom: none;
}

.archive-item:hover {
    padding-left: 10px;
}

.archive-date {
    color: var(--text-light);
    min-width: 100px;
    font-size: 0.95rem;
}

.archive-title {
    color: var(--text-dark);
    text-decoration: none;
    flex: 1;
    transition: color 0.3s;
}

.archive-title:hover {
    color: var(--deep-pink);
}

/* ============ 关于页 ============ */
.about-section {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--shadow-soft);
    margin-bottom: 30px;
}

.about-section h2 {
    color: var(--deep-pink);
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.about-section p {
    line-height: 2;
    margin-bottom: 15px;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.skill-tag {
    background: linear-gradient(135deg, var(--light-pink), var(--light-purple));
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--deep-pink);
}

.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--primary-pink), var(--purple));
    border-radius: 3px;
}

.timeline-item {
    position: relative;
    padding-bottom: 25px;
}

.timeline-item::before {
    content: '🐾';
    position: absolute;
    left: -28px;
    top: 0;
    width: 25px;
    height: 25px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.timeline-date {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.timeline-content {
    color: var(--text-dark);
}

/* ============ 返回顶部 ============ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-pink), var(--purple));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    font-size: 1.5rem;
    box-shadow: var(--shadow-soft);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 999;
    cursor: pointer;
    border: none;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

/* ============ 分页 ============ */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 30px 0;
}

.pagination a,
.pagination span {
    padding: 10px 20px;
    background: var(--white);
    border-radius: 25px;
    text-decoration: none;
    color: var(--text-dark);
    box-shadow: var(--shadow-soft);
    transition: all 0.3s;
}

.pagination a:hover,
.pagination .current {
    background: linear-gradient(135deg, var(--primary-pink), var(--purple));
    color: var(--white);
}

/* ============ 可爱装饰 ============ */
.decorations {
    position: fixed;
    pointer-events: none;
    z-index: 0;
}

.decoration-star {
    position: absolute;
    font-size: 1.5rem;
    opacity: 0.3;
    animation: twinkle 3s infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.2); }
}

/* ============ 响应式设计 ============ */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, var(--primary-pink), var(--purple));
        flex-direction: column;
        padding: 20px;
        gap: 10px;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-toggle {
        display: block;
    }

    .content-wrapper {
        grid-template-columns: 1fr;
    }

    .header-content {
        padding: 30px 25px;
    }

    .site-title {
        font-size: 2rem;
    }

    .post-card,
    .post-detail,
    .about-section {
        padding: 20px;
    }

    .post-nav {
        flex-direction: column;
    }

    .post-nav .prev,
    .post-nav .next {
        margin: 0 0 10px 0;
        text-align: left;
    }

    .footer-links {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .site-title {
        font-size: 1.5rem;
    }

    .header-content {
        padding: 25px 20px;
    }

    .post-title {
        font-size: 1.4rem;
    }

    .beian-info {
        flex-direction: column;
        gap: 10px;
    }
}

/* ============ 滚动条样式 ============ */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--light-pink);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-pink), var(--purple));
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--deep-pink), var(--purple));
}

/* ============ 选中文本样式 ============ */
::selection {
    background: var(--secondary-pink);
    color: var(--text-dark);
}
