/* ========== 全局暖色调二次元风格 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Serif SC', 'Quicksand', sans-serif;
    background: #fef8ef;
    color: #3e2a21;
    min-height: 100vh;
}

.site-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    background: #fffef9;
    border-radius: 32px;
    box-shadow: 0 8px 28px rgba(0,0,0,0.05);
    overflow: hidden;
}

.hero-header {
    position: relative;
}
.hero-image-wrapper {
    position: relative;
    height: 260px;
    overflow: hidden;
}
.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 波浪区域 */
.wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background-repeat: repeat-x;
    background-size: 200px 80px;
    pointer-events: none;
}
.wave#wave1 {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 80'%3E%3Cpath fill='%23ffb347' fill-opacity='0.5' d='M0,40 Q25,15 50,40 T100,40 T150,40 T200,40 L200,80 L0,80 Z'/%3E%3C/svg%3E");
    animation: waveMove 1.2s linear infinite;
    bottom: 0;
}
.wave#wave2 {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 80'%3E%3Cpath fill='%23ff8c42' fill-opacity='0.4' d='M0,50 Q30,25 60,50 T120,50 T180,50 L200,50 L200,80 L0,80 Z'/%3E%3C/svg%3E");
    animation: waveMove 1.5s linear infinite;
    bottom: 8px;
    opacity: 0.7;
}
.wave#wave3 {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 80'%3E%3Cpath fill='%23ffd27a' fill-opacity='0.3' d='M0,60 Q20,40 40,60 T80,60 T120,60 T160,60 T200,60 L200,80 L0,80 Z'/%3E%3C/svg%3E");
    animation: waveMove 0.9s linear infinite;
    bottom: 16px;
}
.wave#wave4 {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 80'%3E%3Cpath fill='%23ffe0a3' fill-opacity='0.2' d='M0,70 Q25,55 50,70 T100,70 T150,70 T200,70 L200,80 L0,80 Z'/%3E%3C/svg%3E");
    animation: waveMove 0.7s linear infinite;
    bottom: 24px;
}
@keyframes waveMove {
    0% { background-position: 0 0; }
    100% { background-position: -200px 0; }
}

.profile-avatar {
    text-align: center;
    margin-top: -60px;
    position: relative;
    z-index: 5;
}
.avatar-wrapper {
    display: inline-block;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255,240,220,0.8);
    backdrop-filter: blur(4px);
    padding: 4px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1), 0 0 0 4px #ffb347;
}
.rotating-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    animation: spinAvatar var(--avatar-speed, 10s) infinite linear;
}
@keyframes spinAvatar {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.content-container {
    padding: 2rem 2rem 1.5rem;
}
.blog-info-header {
    text-align: center;
    margin-bottom: 2rem;
}
.blog-title {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #e67e22, #f39c12, #ffb347);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}
.blog-subtitle {
    font-size: 1.1rem;
    color: #c97e3a;
    font-style: italic;
}
.blog-desc {
    font-size: 0.9rem;
    color: #b5651e;
}
.signature {
    font-size: 0.8rem;
    color: #e67e22;
    margin-top: 0.5rem;
}

.stats-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    background: rgba(255,235,210,0.6);
    border-radius: 32px;
    padding: 0.8rem 1.2rem;
    margin: 1rem 0;
}
.stat-item {
    text-align: center;
    flex: 1;
    min-width: 70px;
}
.stat-item i {
    font-size: 1.2rem;
    color: #e67e22;
    margin-right: 6px;
}
.stat-item span:first-of-type {
    font-weight: bold;
    font-size: 1rem;
    color: #8b4c1a;
}
.stat-item span:last-of-type {
    font-size: 0.7rem;
    color: #b5651e;
}

.notice-bar {
    background: rgba(255,200,150,0.5);
    border-radius: 40px;
    padding: 0.5rem 1rem;
    margin: 1rem 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    border: 1px solid #ffb347;
    color: #8b4c1a;
}
.time-ticker {
    background: rgba(255,235,210,0.6);
    border-radius: 40px;
    padding: 0.6rem 1rem;
    margin: 1rem 0;
    text-align: center;
}
.live-time {
    font-size: 0.85rem;
    color: #c97e3a;
    margin-bottom: 5px;
}
.scroll-content {
    font-size: 0.85rem;
    color: #8b694a;
    display: inline-block;
    border-right: 2px solid #ffb347;
    padding-right: 8px;
    animation: blink 0.8s step-end infinite;
}
@keyframes blink {
    0%,100% { border-color: transparent; }
    50% { border-color: #ffb347; }
}

.post-list {
    margin: 28px 0;
}
.post-item {
    display: flex;
    gap: 1.2rem;
    padding: 1rem 0;
    border-bottom: 1px solid #efe0ce;
    transition: 0.2s;
}
.post-item:hover {
    background: rgba(255,240,210,0.3);
    border-radius: 20px;
    transform: translateX(6px);
}
.post-date-large {
    flex-shrink: 0;
    width: 80px;
    text-align: center;
    background: #f9f0e3;
    border-radius: 20px;
    padding: 8px 0;
}
.post-day {
    display: block;
    font-size: 1.8rem;
    font-weight: bold;
    color: #e67e22;
}
.post-month {
    display: block;
    font-size: 0.75rem;
    color: #b08c64;
    text-transform: uppercase;
}
.post-content-right {
    flex: 1;
}
.post-title {
    font-size: 1.2rem;
    margin: 0 0 6px 0;
}
.post-title a {
    color: #5e3e22;
    text-decoration: none;
}
.post-title a:hover {
    color: #e67e22;
}
.post-excerpt {
    font-size: 0.8rem;
    color: #8f6d48;
    margin-bottom: 8px;
    line-height: 1.4;
}
.read-more-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    color: #e67e22;
    padding: 2px 12px;
    border-radius: 30px;
    font-size: 0.7rem;
    text-decoration: none;
    border: 1px solid #d4bea0;
    transition: 0.2s;
}
.read-more-link:hover {
    background: #e67e22;
    color: white;
    border-color: #e67e22;
}

.pagination {
    text-align: center;
    margin: 30px 0;
}
.pagination a {
    background: #f0e6d8;
    padding: 4px 12px;
    border-radius: 30px;
    color: #8b694a;
    text-decoration: none;
    margin: 0 4px;
}

.official-player-wrapper {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    background: rgba(255, 245, 235, 0.9);
    backdrop-filter: blur(8px);
    border-radius: 60px;
    padding: 6px 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 1px solid #ffb347;
    transition: transform 0.2s;
    cursor: grab;
    user-select: none;
}
.official-player-wrapper:active {
    cursor: grabbing;
}
.official-player-wrapper iframe {
    display: block;
    border-radius: 40px;
    pointer-events: auto;
}

/* 看板娘容器全局位置 */
.waifu {
    bottom: 100px !important;
    left: 20px !important;
    right: auto !important;
    z-index: 1001;
}

footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    font-size: 0.7rem;
    border-top: 1px solid rgba(200,120,50,0.2);
    color: #b5651e;
}
.footer-social a {
    color: #c97e3a;
    font-size: 1.2rem;
    margin: 0 8px;
}
.footer-social a:hover {
    color: #e67e22;
}

@media (max-width: 650px) {
    .hero-image-wrapper { height: 160px; }
    .profile-avatar { margin-top: -40px; }
    .avatar-wrapper { width: 80px; height: 80px; }
    .content-container { padding: 1rem; }
    .post-item { flex-direction: column; align-items: center; text-align: center; }
    .post-date-large { width: auto; }
    .stats-grid { flex-wrap: wrap; justify-content: center; margin: 12px 16px; }
    .official-player-wrapper { transform: scale(0.85); bottom: 10px; right: 10px; }
    .waifu { bottom: 80px !important; left: 10px !important; transform: scale(0.8); }
}