/* --- 全局变量与重置 --- */
:root {
    --primary-pink: #ffb7c5;
    --deep-pink: #ff6b81;
    --text-color: #555;
    --light-bg: #fff9fb;
    --card-bg: #ffffff;
    --border-color: #ffe0e6;
    --nav-hover-bg: rgba(255, 255, 255, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
    background-color: var(--light-bg);
    color: var(--text-color);
    overflow-x: hidden;
    position: relative;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* --- 樱花特效容器 --- */
#sakura-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.sakura {
    position: absolute;
    background-color: #ffc0cb;
    border-radius: 100% 0 100% 0;
    opacity: 0.8;
    animation: fall linear infinite;
}

@keyframes fall {
    0% { transform: translate(0, -10vh) rotate(0deg); opacity: 1; }
    100% { transform: translate(100px, 110vh) rotate(360deg); opacity: 0; }
}

/* --- 顶部导航栏 --- */
header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1200px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    height: 70px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-radius: 0 0 15px 15px;
}

.nav-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 10px 20px;
    position: relative;
}

.nav-menu {
    display: flex;
    gap: 5px;
}

.nav-item {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    color: #555;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

/* ✅ 鼠标悬停时：背景变化、字体颜色变深、显示 ♥ 图标 */
.nav-item:hover {
    background-color: var(--nav-hover-bg);
    color: var(--deep-pink);
    font-weight: bold;
}

/* ✅ 鼠标悬停时，显示 ♥ 图标 */
.nav-item:hover::after {
    content: '♥';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    color: var(--deep-pink);
}

/* ✅ 选中状态：保持背景、颜色和加粗（不显示 ♥） */
.nav-item.active {
    background-color: var(--nav-hover-bg);
    color: var(--deep-pink);
    font-weight: bold;
}

.nav-item small {
    display: block;
    font-size: 10px;
    color: #888;
    text-transform: uppercase;
}

/* --- 浮动 LOGO --- */
#main-floating-logo {
    position: absolute;
    top: -10px; 
    left: 50px;
    z-index: 10001;
    width: 260px;
    height: 100px;
    pointer-events: auto;
    cursor: pointer;
}

.logo-main-text {
    font-size: 36px;
    font-weight: bold;
    color: #ff8fa3;
    font-family: "Brush Script MT", "Comic Sans MS", cursive, sans-serif;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.9), 2px 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    display: inline-block;
}

.logo-deco-sakura {
    position: absolute;
    font-size: 14px;
    color: #ffb7c5;
    text-shadow: 0 0 5px rgba(255,255,255,0.8);
}
.logo-deco-sakura.top-left { top: -5px; left: -10px; transform: rotate(-20deg); }
.logo-deco-sakura.top-right { top: 5px; right: -15px; transform: rotate(20deg); }

.logo-sub-text {
    font-size: 14px;
    color: #6a89cc;
    font-weight: bold;
    letter-spacing: 1px;
    margin-top: -5px;
    margin-left: 5px;
    display: block;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.9), 1px 1px 2px rgba(0,0,0,0.1);
}

.logo-ribbon {
    position: absolute;
    bottom: -10px;
    left: 20px;
    background: rgba(255, 158, 181, 0.9);
    color: #fff;
    padding: 2px 15px;
    font-size: 12px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    font-weight: bold;
    letter-spacing: 2px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.logo-ribbon::before, .logo-ribbon::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
}
.logo-ribbon::before { left: -8px; border-right: 8px solid rgba(255, 158, 181, 0.9); }
.logo-ribbon::after { right: -8px; border-left: 8px solid rgba(255, 158, 181, 0.9); }

/* --- 通用容器 --- */
.container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

/* --- 通用板块头部 --- */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
}

.section-title {
    font-size: 18px;
    color: var(--deep-pink);
    display: flex;
    align-items: center;
}
.section-title::before {
    content: '❀';
    margin-right: 8px;
}

.more-link {
    font-size: 12px;
    color: #999;
}

/* --- 页脚 --- */
footer {
    background: #fff;
    margin-top: 50px;
    padding: 30px 0;
    border-top: 2px solid var(--border-color);
}

.footer-links {
    text-align: center;
    margin-bottom: 20px;
    font-size: 12px;
    color: #888;
}
.footer-links span { margin: 0 10px; }

.copyright {
    text-align: center;
    font-size: 12px;
    color: #aaa;
    line-height: 1.8;
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    background: var(--primary-pink);
    color: #fff;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 999;
}