/* 基础重置 */

* {

    margin: 0;

    padding: 0;

    box-sizing: border-box;

}

body {

    font-family: 'Inter', 'LXGW WenKai Screen', sans-serif;

    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);

    color: #333;

    min-height: 100vh;

    overflow-x: hidden;

    position: relative;

}

/* 星空背景 */

.stars, .twinkling {

    position: fixed;

    top: 0;

    left: 0;

    right: 0;

    bottom: 0;

    width: 100%;

    height: 100%;

    display: block;

    z-index: -2;

}

.stars {

    background: #000 url('https://images.unsplash.com/photo-1465101162946-4377e57745c3?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80') repeat top center;

    background-size: cover;

}

.twinkling {

    background: transparent url('https://images.unsplash.com/photo-1519681393784-d120267933ba?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80') repeat top center;

    background-size: cover;

    animation: move-twink-back 200s linear infinite;

    z-index: -1;

    opacity: 0.4;

}

@keyframes move-twink-back {

    from {background-position:0 0;}

    to {background-position:-10000px 5000px;}

}

/* 主容器 */

.container {

    display: grid;

    grid-template-columns: 240px 1fr 300px;

    gap: 30px;

    max-width: 1600px;

    margin: 0 auto;

    padding: 30px;

    position: relative;

    z-index: 1;

}

/* 侧边栏 */

.sidebar {

    background: rgba(255, 255, 255, 0.85);

    backdrop-filter: blur(20px);

    border-radius: 24px;

    padding: 30px 20px;

    height: fit-content;

    position: sticky;

    top: 30px;

    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);

    border: 1px solid rgba(255, 255, 255, 0.3);

}

.logo {

    text-align: center;

    margin-bottom: 40px;

}

.logo-icon {

    font-size: 48px;

    color: #8a6cff;

    margin-bottom: 15px;

    animation: float 6s ease-in-out infinite;

}

@keyframes float {

    0%, 100% { transform: translateY(0px); }

    50% { transform: translateY(-15px); }

}

.logo h1 {

    font-family: 'Playfair Display', serif;

    font-size: 24px;

    color: #2d3436;

    margin-bottom: 8px;

}

.subtitle {

    font-size: 13px;

    color: #636e72;

    opacity: 0.8;

}

.nav-menu {

    list-style: none;

    margin-bottom: 40px;

}

.nav-menu li {

    padding: 15px 20px;

    margin: 8px 0;

    border-radius: 16px;

    cursor: pointer;

    display: flex;

    align-items: center;

    transition: all 0.3s ease;

    color: #555;

}

.nav-menu li:hover {

    background: rgba(138, 108, 255, 0.1);

    color: #8a6cff;

    transform: translateX(5px);

}

.nav-menu li.active {

    background: linear-gradient(135deg, #8a6cff, #c56cf0);

    color: white;

    box-shadow: 0 5px 20px rgba(138, 108, 255, 0.3);

}

.nav-menu li i {

    margin-right: 12px;

    font-size: 18px;

}

/* 社交链接 */

.social-links {

    display: flex;

    justify-content: center;

    gap: 20px;

    margin-bottom: 30px;

}

.social-links a {

    width: 40px;

    height: 40px;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.9);

    display: flex;

    align-items: center;

    justify-content: center;

    color: #666;

    font-size: 18px;

    transition: all 0.3s ease;

    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);

}

.social-links a:hover {

    transform: translateY(-5px);

    color: #8a6cff;

    box-shadow: 0 10px 20px rgba(138, 108, 255, 0.2);

}

/* 天气小部件 */

.weather-widget {

    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);

    border-radius: 16px;

    padding: 15px;

    text-align: center;

    color: #555;

}

.weather-widget i {

    font-size: 24px;

    color: #ff9a00;

    margin-bottom: 8px;

    display: block;

}

/* 主内容区 */

.content {

    background: rgba(255, 255, 255, 0.85);

    backdrop-filter: blur(20px);

    border-radius: 24px;

    padding: 40px;

    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);

    border: 1px solid rgba(255, 255, 255, 0.3);

}

/* 英雄区域 */

.hero {

    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 50px;

    position: relative;

}

.hero-text {

    flex: 1;

}

.hero-title {

    font-family: 'Playfair Display', serif;

    font-size: 42px;

    line-height: 1.2;

    color: #2d3436;

    margin-bottom: 20px;

}

.highlight {

    color: #8a6cff;

    position: relative;

    display: inline-block;

}

.highlight::after {

    content: '';

    position: absolute;

    bottom: 5px;

    left: 0;

    width: 100%;

    height: 8px;

    background: rgba(138, 108, 255, 0.2);

    z-index: -1;

}

.hero-description {

    font-size: 18px;

    color: #636e72;

    line-height: 1.6;

    max-width: 80%;

}

.hero-image {

    position: relative;

    width: 300px;

    height: 200px;

}

.floating-orb {

    position: absolute;

    border-radius: 50%;

    filter: blur(40px);

    opacity: 0.6;

}

.orb-1 {

    width: 150px;

    height: 150px;

    background: linear-gradient(135deg, #8a6cff, #c56cf0);

    top: 0;

    right: 50px;

    animation: orb-float 8s ease-in-out infinite;

}

.orb-2 {

    width: 100px;

    height: 100px;

    background: linear-gradient(135deg, #a8edea, #fed6e3);

    bottom: 0;

    right: 0;

    animation: orb-float 10s ease-in-out infinite reverse;

}

@keyframes orb-float {

    0%, 100% { transform: translateY(0) rotate(0deg); }

    50% { transform: translateY(-30px) rotate(180deg); }

}

/* 文章卡片 */

.section-title {

    font-family: 'Playfair Display', serif;

    font-size: 28px;

    color: #2d3436;

    margin-bottom: 30px;

    display: flex;

    align-items: center;

}

.section-title i {

    margin-right: 15px;

    color: #8a6cff;

}

.article-grid {

    display: grid;

    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));

    gap: 30px;

    margin-bottom: 50px;

}

.article-card {

    background: white;

    border-radius: 20px;

    padding: 25px;

    transition: all 0.4s ease;

    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);

    position: relative;

    overflow: hidden;

    cursor: pointer;

}

.article-card:hover {

    transform: translateY(-10px);

    box-shadow: 0 20px 40px rgba(138, 108, 255, 0.15);

}

.article-card::before {

    content: '';

    position: absolute;

    top: 0;

    left: 0;

    width: 100%;

    height: 4px;

    background: linear-gradient(90deg, #8a6cff, #c56cf0);

}

.article-category {

    display: inline-block;

    background: rgba(138, 108, 255, 0.1);

    color: #8a6cff;

    padding: 5px 15px;

    border-radius: 20px;

    font-size: 12px;

    font-weight: 500;

    margin-bottom: 15px;

}

.article-title {

    font-size: 20px;

    color: #2d3436;

    margin-bottom: 15px;

    line-height: 1.4;

}

.article-excerpt {

    color: #636e72;

    line-height: 1.6;

    margin-bottom: 20px;

    font-size: 15px;

}

.article-meta {

    display: flex;

    justify-content: space-between;

    color: #999;

    font-size: 14px;

    margin-bottom: 15px;

}

.article-meta i {

    margin-right: 5px;

}

.article-tags {

    display: flex;

    gap: 8px;

    flex-wrap: wrap;

}

.article-tags span {

    background: rgba(0, 0, 0, 0.05);

    padding: 4px 12px;

    border-radius: 12px;

    font-size: 12px;

    color: #666;

}

/* 特色区域 */

.features {

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 25px;

    margin-top: 50px;

}

.feature-card {

    background: rgba(255, 255, 255, 0.9);

    border-radius: 20px;

    padding: 30px;

    text-align: center;

    transition: all 0.3s ease;

    border: 1px solid rgba(255, 255, 255, 0.5);

}

.feature-card:hover {

    transform: translateY(-5px);

    box-shadow: 0 15px 30px rgba(138, 108, 255, 0.1);

}

.feature-icon {

    width: 60px;

    height: 60px;

    background: linear-gradient(135deg, #8a6cff, #c56cf0);

    border-radius: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

    margin: 0 auto 20px;

    color: white;

    font-size: 24px;

}

.feature-card h4 {

    font-size: 18px;

    color: #2d3436;

    margin-bottom: 10px;

}

.feature-card p {

    color: #636e72;

    font-size: 14px;

}

/* 右侧小部件 */

.widgets {

    position: sticky;

    top: 30px;

    height: fit-content;

}

.widget {

    background: rgba(255, 255, 255, 0.85);

    backdrop-filter: blur(20px);

    border-radius: 20px;

    padding: 25px;

    margin-bottom: 25px;

    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);

    border: 1px solid rgba(255, 255, 255, 0.3);

}

.widget h4 {

    font-size: 16px;

    color: #2d3436;

    margin-bottom: 20px;

    display: flex;

    align-items: center;

}

.widget h4 i {

    margin-right: 10px;

    color: #8a6cff;

}

/* 夜间模式切换 */

.switch {

    position: relative;

    display: inline-block;

    width: 60px;

    height: 30px;

}

.switch input {

    opacity: 0;

    width: 0;

    height: 0;

}

.slider {

    position: absolute;

    cursor: pointer;

    top: 0;

    left: 0;

    right: 0;

    bottom: 0;

    background: linear-gradient(135deg, #8a6cff, #c56cf0);

    transition: .4s;

    border-radius: 34px;

}

.slider:before {

    position: absolute;

    content: "";

    height: 22px;

    width: 22px;

    left: 4px;

    bottom: 4px;

    background-color: white;

    transition: .4s;

    border-radius: 50%;

}

input:checked + .slider:before {

    transform: translateX(30px);

}

/* 音乐播放器 */

.music-info {

    display: flex;

    align-items: center;

    margin-bottom: 20px;

}

.album-cover {

    width: 50px;

    height: 50px;

    background: linear-gradient(135deg, #8a6cff, #c56cf0);

    border-radius: 10px;

    margin-right: 15px;

}

.song-title {

    font-weight: 500;

    color: #2d3436;

    margin-bottom: 5px;

}

.artist {

    font-size: 13px;

    color: #999;

}

.music-controls {

    display: flex;

    justify-content: center;

    gap: 15px;

}

.music-controls button {

    width: 40px;

    height: 40px;

    border-radius: 50%;

    border: none;

    background: rgba(138, 108, 255, 0.1);

    color: #8a6cff;

    font-size: 16px;

    cursor: pointer;

    transition: all 0.3s ease;

}

.music-controls button:hover {

    background: #8a6cff;

    color: white;

    transform: scale(1.1);

}

.play-btn {

    background: #8a6cff !important;

    color: white !important;

}

/* 访客统计 */

.counter {

    font-size: 24px;

    font-weight: bold;

    color: #8a6cff;

    margin-bottom: 10px;

}

.welcome-message {

    color: #666;

    font-size: 14px;

}

/* 日历 */

.date-display {

    display: flex;

    align-items: center;

}

.date-number {

    font-size: 48px;

    font-weight: bold;

    color: #8a6cff;

    margin-right: 15px;

    font-family: 'Playfair Display', serif;

}

.date-month {

    font-weight: 500;

    color: #2d3436;

    margin-bottom: 5px;

}

.date-lunar {

    font-size: 13px;

    color: #999;

}

/* 页脚 */

.footer {

    text-align: center;

    padding: 30px;

    color: rgba(255, 255, 255, 0.7);

    margin-top: 50px;

    font-size: 14px;

}

.footer-note {

    margin-top: 10px;

    color: rgba(255, 255, 255, 0.5);

}

.footer-note i {

    color: #ff6b8b;

    margin-right: 5px;

}

/* 鼠标跟随精灵 */

.fairy-container {

    position: fixed;

    bottom: 30px;

    right: 30px;

    z-index: 1000;

    pointer-events: none;

}

.fairy {

    width: 80px;

    height: 120px;

    position: relative;

    animation: fairy-float 4s ease-in-out infinite;

}

@keyframes fairy-float {

    0%, 100% { transform: translateY(0) rotate(0deg); }

    50% { transform: translateY(-20px) rotate(5deg); }

}

.fairy-face {

    width: 40px;

    height: 40px;

    background: #fff;

    border-radius: 50%;

    position: absolute;

    top: 0;

    left: 50%;

    transform: translateX(-50%);

    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);

}

.fairy-eye {

    position: absolute;

    width: 10px;

    height: 10px;

    background: #333;

    border-radius: 50%;

    top: 15px;

}

.left-eye {

    left: 10px;

}

.right-eye {

    right: 10px;

}

.fairy-smile {

    position: absolute;

    width: 20px;

    height: 10px;

    border-bottom: 3px solid #ff6b8b;

    border-radius: 0 0 10px 10px;

    bottom: 8px;

    left: 50%;

    transform: translateX(-50%);

}

.fairy-body {

    position: absolute;

    top: 40px;

    left: 50%;

    transform: translateX(-50%);

}

.fairy-wing {

    position: absolute;

    width: 40px;

    height: 60px;

    background: rgba(255, 255, 255, 0.8);

    border-radius: 50%;

    top: -20px;

    border: 2px solid rgba(138, 108, 255, 0.3);

    animation: wing-flap 1.5s ease-in-out infinite;

}

.left-wing {

    left: -30px;

    transform: rotate(30deg);

    animation-delay: 0.1s;

}

.right-wing {

    right: -30px;

    transform: rotate(-30deg);

    animation-delay: 0.2s;

}

@keyframes wing-flap {

    0%, 100% { transform: rotate(30deg); }

    50% { transform: rotate(20deg); }

}

.fairy-dress {

    width: 50px;

    height: 70px;

    background: linear-gradient(135deg, #8a6cff, #c56cf0);

    border-radius: 50% 50% 0 0;

    position: relative;

    top: 10px;

}

.fairy-talk {

    position: absolute;

    bottom: 130px;

    right: 0;

    background: white;

    padding: 10px 15px;

    border-radius: 15px;

    font-size: 14px;

    color: #333;

    width: 140px;

    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);

    opacity: 0;

    animation: talk-appear 8s infinite;

    animation-delay: 2s;

}

@keyframes talk-appear {

    0%, 90% { opacity: 0; transform: translateY(10px); }

    5%, 15% { opacity: 1; transform: translateY(0); }

}

.fairy-talk::after {

    content: '';

    position: absolute;

    bottom: -10px;

    right: 20px;

    border-left: 10px solid transparent;

    border-right: 10px solid transparent;

    border-top: 10px solid white;

}

/* 响应式设计 */

@media (max-width: 1200px) {

    .container {

        grid-template-columns: 1fr;

        gap: 20px;

    }

    

    .sidebar, .widgets {

        position: static;

    }

    

    .hero {

        flex-direction: column;

        text-align: center;

    }

    

    .hero-description {

        max-width: 100%;

    }

    

    .hero-image {

        margin-top: 30px;

    }

    

    .features {

        grid-template-columns: repeat(2, 1fr);

    }

}

@media (max-width: 768px) {

    .container {

        padding: 15px;

    }

    

    .content, .sidebar, .widget {

        padding: 20px;

    }

    

    .hero-title {

        font-size: 32px;

    }

    

    .article-grid {

        grid-template-columns: 1fr;

    }

    

    .features {

        grid-template-columns: 1fr;

    }

    

    .fairy-container {

        bottom: 10px;

        right: 10px;

        transform: scale(0.7);

    }

}