@import url('https://fonts.googleapis.com/css2?family=ZCOOL+KuaiLe&display=swap');

:root {
    --primary: #87CEEB;
    --bg-cream: #FFF9F0;
    --accent: #FFB6C1;
    --text-dark: #2C3E50;
    --text-light: #7F8C8D;
    --shadow: rgba(135, 206, 235, 0.1);
    --shadow-hover: rgba(135, 206, 235, 0.25);
    --mandarin: #FFA500;
}

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

::selection {
    background: var(--accent);
    color: var(--text-dark);
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-cream);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}

body {
    font-family: "Source Han Sans SC", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-cream);
    color: var(--text-dark);
    line-height: 1.8;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/bg1.png');
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    opacity: 0.95;
    filter: blur(0.1px);
    pointer-events: none;
    z-index: -2;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 80%, rgba(135, 206, 235, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(255, 182, 193, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(135, 206, 235, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

header {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.1) 100%);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    padding: 0.5rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.1);
}

header nav {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'ZCOOL KuaiLe', cursive;
    font-size: 1.8rem;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: 2px;
    display: inline-flex;
    align-items: center;
}

.logo::before {
    content: '♪';
    margin-right: 0.5rem;
    color: var(--accent);
}

.logo-chika {
    color: var(--mandarin);
}

.logo-blog {
    color: var(--primary);
}

.logo-emoji {
    font-size: 0.8em;
    vertical-align: middle;
    margin: 0 1px;
    filter: drop-shadow(0 0 3px rgba(255, 165, 0, 0.6));
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 1.15rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    background: var(--primary);
    color: white;
}

main {
    max-width: 950px;
    width: 100%;
    margin: 2rem auto;
    padding: 0 1.5rem 6rem 1.5rem;
    box-sizing: border-box;
}

.card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    padding: 2rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    width: 100%;
    z-index: 20;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 8px 8px 0 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover {
    box-shadow: 0 4px 16px var(--shadow-hover);
    transform: translateY(-2px);
}

.card:hover::before {
    opacity: 1;
}

h1 {
    font-family: 'ZCOOL KuaiLe', cursive;
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
    letter-spacing: 3px;
}

h2 {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(135, 206, 235, 0.2);
    position: relative;
}

h2::after {
    content: '～';
    position: absolute;
    right: 0;
    bottom: 0.5rem;
    color: var(--accent);
    font-size: 1rem;
}

h3 {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin: 1.5rem 0 0.8rem;
}

p {
    margin-bottom: 1rem;
    text-align: justify;
}

.divider {
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary), var(--accent), transparent);
    margin: 2rem 0;
    border-radius: 2px;
    position: relative;
}

.divider::before {
    content: '♡';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: transparent;
    padding: 0 1rem;
    color: var(--accent);
    font-size: 0.8rem;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border: none;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn:hover {
    background: #5BBCE8;
    box-shadow: 0 4px 15px rgba(135, 206, 235, 0.4);
}

.btn:active {
    transform: scale(0.98);
}

.btn-secondary {
    background: var(--accent);
}

.btn-secondary:hover {
    background: #FF9AAA;
}

ul, ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

li {
    margin-bottom: 0.5rem;
    position: relative;
}

ul li::marker {
    content: '♥ ';
    color: var(--accent);
    font-size: 0.8em;
}

ol li::marker {
    color: var(--primary);
    font-weight: bold;
}

.article-meta {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.article-meta span {
    margin-right: 1rem;
}

.article-meta span::before {
    content: '◇ ';
    color: var(--primary);
}

.tag {
    display: inline-block;
    padding: 0.3rem 1rem;
    background: rgba(135, 206, 235, 0.12);
    color: #2C3E50;
    border-radius: 15px;
    font-size: 0.85rem;
    margin: 0.25rem;
    box-shadow: 0 2px 8px rgba(135, 206, 235, 0.15);
    border: 1px solid rgba(135, 206, 235, 0.2);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.tag:hover {
    background: rgba(135, 206, 235, 0.25);
    box-shadow: 0 4px 12px rgba(135, 206, 235, 0.25);
}

.poem {
    font-family: 'ZCOOL KuaiLe', cursive;
    font-size: 1.1rem;
    line-height: 2;
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(255, 165, 0, 0.05) 0%, rgba(135, 206, 235, 0.05) 100%);
    border-radius: 12px;
    border-left: 3px solid var(--mandarin);
    margin: 1rem 0;
}

.poem p {
    margin-bottom: 0.5rem;
 color: var(--text-dark);
 opacity: 0.9;
}

.poem p:last-child {
    margin-bottom: 0;
}

.content-box {
    padding: 1.2rem 1.5rem;
    border-radius: 10px;
    margin: 0.8rem 0;
    transition: all 0.3s ease;
}

.content-box-about {
    background: rgba(135, 206, 235, 0.08);
    border-top: 3px solid var(--primary);
}

.content-box-about p {
    margin-bottom: 0.8rem;
}

.content-box-about p:last-child {
    margin-bottom: 0;
}

.content-box-list {
    background: rgba(255, 182, 193, 0.08);
    border-radius: 10px;
    border: 1px solid rgba(255, 182, 193, 0.2);
}

.content-box-list ul {
    margin: 0;
    padding-left: 1.2rem;
}

.content-box-list li {
    position: relative;
    padding-left: 0.5rem;
}

.content-box-list li::marker {
    content: '♡';
    color: var(--accent);
    font-size: 0.7em;
}

.comment-form {
    margin-top: 2rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid rgba(135, 206, 235, 0.3);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(135, 206, 235, 0.1);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

#commentEditor {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 0 0 8px 8px;
    min-height: 120px;
}

#commentEditor .ql-toolbar {
    border-radius: 8px 8px 0 0;
    background: rgba(255, 255, 255, 0.8);
}

.comment-list {
    margin-top: 2rem;
}

.comment-item {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(135, 206, 235, 0.15);
}

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

.comment-item .comment-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
}

.comment-item .comment-name {
    font-weight: 600;
    color: var(--text-dark);
}

.comment-item .comment-date {
    font-size: 0.8rem;
    color: var(--text-light);
    white-space: nowrap;
}

.comment-item .comment-body {
    margin-top: 0.4rem;
    color: var(--text-dark);
}

.comment-item .comment-reply {
    margin-top: 0.6rem;
    padding: 0.6rem 0.8rem;
    background: rgba(135, 206, 235, 0.1);
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    position: relative;
}

.loading::before,
.loading::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: var(--primary);
    animation: wave 1.2s infinite ease-in-out;
}

.loading::before {
    width: 20px;
    height: 8px;
    top: 6px;
    left: 0;
    animation-delay: 0s;
}

.loading::after {
    width: 14px;
    height: 6px;
    top: 7px;
    right: 0;
    animation-delay: 0.3s;
    background: var(--accent);
}

@keyframes wave {
    0%, 100% {
        transform: translateX(0) scaleY(1);
    }
    50% {
        transform: translateX(10px) scaleY(0.8);
    }
}

footer {
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    background: transparent;
    color: var(--text-light);
    font-size: 0.85rem;
    z-index: 10;
}

footer p:first-child {
    font-family: 'ZCOOL KuaiLe', cursive;
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
}

footer span {
    color: var(--accent);
}

.article-list {
    list-style: none;
    padding: 0;
}

.article-list li {
    padding: 1rem;
    border-bottom: 1px solid rgba(135, 206, 235, 0.1);
    transition: all 0.3s ease;
}

.article-list li:hover {
    background: rgba(135, 206, 235, 0.05);
    padding-left: 1.5rem;
}

.article-list a {
    text-decoration: none;
    color: var(--text-dark);
    display: block;
}

.article-list .title {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 0.3rem;
}

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

.article-list .date {
    font-size: 0.85rem;
    color: var(--text-light);
}

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-light);
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.pagination a {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(135, 206, 235, 0.3);
    border-radius: 20px;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination a:hover,
.pagination a.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

@media (max-width: 600px) {
    .nav-links {
        gap: 1rem;
    }

    .logo {
        font-size: 1.5rem;
    }

    main {
        padding: 0 1rem 6rem 1rem;
    }

    .card {
        padding: 1.5rem;
    }

    h1 {
        font-size: 1.6rem;
    }
}

.falling-decoration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.flake {
    position: absolute;
    top: -20px;
    color: var(--primary);
    font-size: 0.8rem;
    animation: fall linear infinite;
    opacity: 0.7;
}

.flake:nth-child(1) { left: 3%; animation-duration: 30s; animation-delay: 0s; font-size: 0.5rem; opacity: 0.5; }
.flake:nth-child(2) { left: 10%; animation-duration: 35s; animation-delay: 2s; font-size: 0.7rem; opacity: 0.4; }
.flake:nth-child(3) { left: 18%; animation-duration: 32s; animation-delay: 4s; font-size: 0.6rem; opacity: 0.6; }
.flake:nth-child(4) { left: 25%; animation-duration: 38s; animation-delay: 1s; font-size: 0.4rem; opacity: 0.5; }
.flake:nth-child(5) { left: 33%; animation-duration: 34s; animation-delay: 3s; font-size: 0.5rem; opacity: 0.4; }
.flake:nth-child(6) { left: 40%; animation-duration: 36s; animation-delay: 5s; font-size: 0.5rem; opacity: 0.5; }
.flake:nth-child(7) { left: 47%; animation-duration: 31s; animation-delay: 2s; font-size: 0.6rem; opacity: 0.4; }
.flake:nth-child(8) { left: 54%; animation-duration: 33s; animation-delay: 4s; font-size: 0.7rem; opacity: 0.5; }
.flake:nth-child(9) { left: 61%; animation-duration: 37s; animation-delay: 1s; font-size: 0.4rem; opacity: 0.4; }
.flake:nth-child(10) { left: 68%; animation-duration: 35s; animation-delay: 3s; font-size: 0.5rem; opacity: 0.5; }
.flake:nth-child(11) { left: 75%; animation-duration: 32s; animation-delay: 6s; font-size: 0.5rem; opacity: 0.4; }
.flake:nth-child(12) { left: 82%; animation-duration: 34s; animation-delay: 7s; font-size: 0.6rem; opacity: 0.5; }
.flake:nth-child(13) { left: 89%; animation-duration: 30s; animation-delay: 5s; font-size: 0.5rem; opacity: 0.4; }
.flake:nth-child(14) { left: 95%; animation-duration: 36s; animation-delay: 2s; font-size: 0.5rem; opacity: 0.5; }
.flake:nth-child(15) { left: 7%; animation-duration: 33s; animation-delay: 3s; font-size: 0.6rem; opacity: 0.4; }

@keyframes fall {
    0% {
        transform: translateY(-20px) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}
