:root {
    --primary-pink: #FFB7C5;
    --secondary-pink: #FF9EAA;
    --light-bg: #FFFBF0;
    --text-main: #4A4A4A;
    --text-sub: #7A7A7A;
    --accent-blue: #A0C4FF;
    --accent-gold: #FFD700;
    --card-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    --font-serif: 'Noto Serif SC', serif;
    --font-sans: 'Zen Maru Gothic', sans-serif;
}

/* 全局重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--light-bg);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: var(--font-serif);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* 樱花容器 */
#sakura-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.sakura {
    position: absolute;
    background-color: #ffc0cb;
    border-radius: 100% 0 100% 0;
    opacity: 0.8;
    animation: fall linear infinite;
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    transition: padding 0.3s;
}

.navbar.scrolled {
    padding: 0.8rem 5%;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--secondary-pink);
    letter-spacing: 2px;
    font-family: var(--font-serif);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    animation: spin 10s linear infinite;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-weight: 500;
    font-size: 1rem;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-pink);
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--secondary-pink);
}

.menu-toggle {
    display: none;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    background: url("../images/sakura.jpg");
    background-repeat: no-repeat;
    background-size: cover
}

/* 渐变遮罩 */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,222,233,0.4) 0%, rgba(181,255,252,0.4) 100%);
    z-index: 1;
}

.hero-content {
    z-index: 2;
    padding: 2rem;
    max-width: 900px;
    animation: fadeIn 2s ease-out;
}

.main-title {
    font-size: 6rem;
    color: #fff;
    text-shadow: 0 4px 10px rgba(0,0,0,0.15);
    letter-spacing: 1rem;
    margin-bottom: 0.5rem;
}

.japanese-title {
    font-size: 2rem;
    color: #fff;
    letter-spacing: 0.5rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.subtitle {
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.divider {
    width: 50px;
    height: 3px;
    background: #fff;
    margin: 1.5rem auto;
}

.quote {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 3rem;
    font-style: italic;
    font-weight: 300;
}

.cta-button {
    display: inline-block;
    padding: 1rem 3rem;
    background: #fff;
    color: var(--secondary-pink);
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    color: var(--primary-pink);
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    color: #fff;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    opacity: 0.8;
    animation: bounce 2s infinite;
}

/* 通用 Section */
.section {
    padding: 8rem 5%;
    position: relative;
    z-index: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-subtitle {
    display: block;
    font-family: var(--font-serif);
    color: var(--secondary-pink);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.section-title {
    font-size: 2.5rem;
    color: var(--text-main);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 60%;
    height: 4px;
    background-color: var(--primary-pink);
    margin: 10px auto 0;
    border-radius: 2px;
}

/* Intro Section */
.intro-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.intro-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: #555;
    text-align: justify;
}

.intro-image .placeholder-img {
    width: 100%;
    height: 400px;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
}

/* Character Section */
.char-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.char-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: transform 0.4s, box-shadow 0.4s;
    position: relative;
}

.char-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.char-img-container {
    height: 400px;
    overflow: hidden;
}

.char-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.char-card:hover .char-img {
    transform: scale(1.05);
}

.char-info {
    padding: 2rem;
    text-align: center;
}

.char-info h3 {
    font-size: 1.8rem;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.cv {
    display: block;
    font-size: 0.9rem;
    color: var(--text-sub);
    margin-bottom: 1rem;
}

.char-quote {
    font-style: italic;
    color: var(--secondary-pink);
    margin-bottom: 1rem;
    font-weight: 500;
}

.char-desc {
    font-size: 0.95rem;
    color: #666;
}

/* Timeline Section */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

/* 垂直线 */
.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--primary-pink);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    border-radius: 2px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
    box-sizing: border-box;
    opacity: 0; /* 配合 JS 滚动显现 */
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item.left {
    left: 0;
}

.timeline-item.right {
    left: 50%;
}

/* 时间点圆圈 */
.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: #fff;
    border: 4px solid var(--secondary-pink);
    top: 20px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item.right::after {
    left: -10px;
}

.timeline-content {
    padding: 20px 30px;
    background-color: white;
    position: relative;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.timeline-item.highlight-bg .timeline-content {
    background: linear-gradient(135deg, #fff 0%, #FFF0F5 100%);
    border-left: 5px solid var(--secondary-pink);
}

.timeline-content .date {
    color: var(--secondary-pink);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin-bottom: 5px;
    display: block;
}

.timeline-content h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
}

/* Staff Section */
.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.staff-item {
    padding: 1.5rem;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    transition: transform 0.3s;
}

.staff-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.staff-item h4 {
    color: var(--secondary-pink);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    height: 250px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.lightbox-content {
    max-width: 90%;
    max-height: 80%;
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(255,255,255,0.2);
}

.close-lightbox {
    position: absolute;
    top: 30px;
    right: 50px;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    transition: color 0.3s;
}

.close-lightbox:hover {
    color: var(--primary-pink);
}

/* Footer */
footer {
    background-color: #fff;
    padding: 4rem 2rem;
    text-align: center;
    margin-top: 4rem;
}

.dango-family {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 2rem;
}

.dango {
    width: 50px;
    height: 40px;
    border-radius: 50% 50% 40% 40%;
    position: relative;
    transition: transform 0.3s;
    cursor: pointer;
}

.dango:hover {
    transform: translateY(-5px) scale(1.1);
}

/* 简单的团子眼睛 */
.dango::before, .dango::after {
    content: '';
    position: absolute;
    top: 15px;
    width: 5px;
    height: 5px;
    background-color: #444;
    border-radius: 50%;
}
.dango::before { left: 12px; }
.dango::after { right: 12px; }

.dango.green { background-color: #90EE90; }
.dango.pink { background-color: #FFB7C5; }
.dango.yellow { background-color: #FFD700; }

.disclaimer {
    font-size: 0.8rem;
    color: #999;
    margin-top: 1rem;
}

/* 音乐播放器悬浮窗 */
.music-player {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 1500;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    padding: 10px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.5);
}

.player-tooltip {
    position: absolute;
    left: 60px; /* 位于图标右侧 */
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--secondary-pink);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    pointer-events: none;
    font-weight: 500;
}

.player-tooltip.show {
    opacity: 1;
    visibility: visible;
    left: 70px; /* 稍微向右移动一点的动画 */
}

/* 小三角 */
.player-tooltip::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 50%;
    margin-top: -6px;
    border-width: 6px 6px 6px 0;
    border-style: solid;
    border-color: transparent rgba(255, 255, 255, 0.95) transparent transparent;
}

.music-player.closed {
    width: 50px;
    height: 50px;
    padding: 0;
    border-radius: 50%;
    justify-content: center;
    animation: pulse-shadow 2s infinite;
}

@keyframes pulse-shadow {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 183, 197, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(255, 183, 197, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 183, 197, 0);
    }
}

.music-player.closed .player-content {
    display: none;
}

.player-toggle {
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--secondary-pink);
    padding: 10px;
}

.player-content {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-right: 10px;
}

.track-info {
    display: flex;
    flex-direction: column;
}

.track-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-main);
}

.artist-name {
    font-size: 0.75rem;
    color: var(--text-sub);
}

.controls button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    color: var(--text-main);
    margin: 0 5px;
    transition: color 0.3s;
}

.controls button:hover {
    color: var(--secondary-pink);
}

/* 动画定义 */
@keyframes fall {
    0% {
        top: -10%;
        transform: translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    100% {
        top: 110%;
        transform: translateX(100px) rotate(360deg);
        opacity: 0;
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 响应式适配 */
@media screen and (max-width: 768px) {
    .main-title {
        font-size: 3.5rem;
    }

    .navbar {
        padding: 1rem;
    }
    
    .nav-links {
        display: none; /* 移动端可以配合 JS 做折叠菜单，这里简化处理 */
    }

    .menu-toggle {
        display: block;
    }
    
    .menu-toggle .bar {
        display: block;
        width: 25px;
        height: 3px;
        margin: 5px auto;
        background-color: var(--text-main);
    }

    .intro-content {
        grid-template-columns: 1fr;
    }

    .timeline::after {
        left: 31px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    
    .timeline-item::after {
        left: 21px;
    }
    
    .timeline-item.left, .timeline-item.right {
        left: 0;
    }

    .music-player {
        bottom: 20px;
        left: 20px;
    }
}
