/* 基础字体与背景 */
body {
    font-family: 'ZCOOL XiaoWei', 'Noto Serif JP', serif;
    background-color: #FFF5F7;
    background-image:
        radial-gradient(circle at 20% 10%, rgba(255, 204, 219, 0.3) 0%, transparent 40%),
        radial-gradient(circle at 80% 90%, rgba(255, 180, 200, 0.2) 0%, transparent 40%);
    background-attachment: fixed;
    overflow-x: hidden;
}

/* 樱花飘落动画 */
.sakura-petal {
    position: absolute;
    width: 14px;
    height: 14px;
    background: radial-gradient(ellipse at center, #ffc2d4 0%, #ff9eba 60%, transparent 70%);
    border-radius: 150% 0 150% 0;
    opacity: 0.85;
    pointer-events: none;
    animation: fall linear infinite;
    filter: drop-shadow(0 2px 3px rgba(255, 107, 139, 0.3));
}

@keyframes fall {
    0% {
        transform: translateY(-10vh) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% { opacity: 0.9; }
    90% { opacity: 0.7; }
    100% {
        transform: translateY(110vh) translateX(100px) rotate(720deg);
        opacity: 0;
    }
}

/* Hero 字体阴影 */
.font-brush {
    font-family: 'Ma Shan Zheng', cursive;
    letter-spacing: 0.05em;
}
.font-jp {
    font-family: 'Noto Serif JP', serif;
}
.font-elegant {
    font-family: 'ZCOOL XiaoWei', serif;
}

/* 时间线圆点 */
.timeline-dot {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #FF6B8B;
    border: 4px solid white;
    box-shadow: 0 0 0 2px #FFB3C9, 0 0 20px rgba(255, 107, 139, 0.5);
    z-index: 2;
}

/* 每日卡片渐显动画 */
.day-section {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}
.day-section.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* 图片悬浮 */
.zoom-img {
    transition: transform 0.6s ease;
}
.zoom-img:hover {
    transform: scale(1.05);
}

/* 日期标签 */
.day-badge {
    background: linear-gradient(135deg, #FF6B8B, #C73E66);
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    box-shadow: 0 4px 14px rgba(255, 107, 139, 0.4);
    letter-spacing: 0.05em;
}

/* 时刻卡片 */
.schedule-item {
    position: relative;
    padding-left: 2rem;
    padding-bottom: 1.5rem;
    border-left: 2px dashed #FFCCDB;
}
.schedule-item:last-child {
    border-left: 2px dashed transparent;
}
.schedule-item::before {
    content: '';
    position: absolute;
    left: -7px;
    top: 0.3rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #FF6B8B;
    border: 3px solid white;
    box-shadow: 0 0 0 2px #FFB3C9;
}
.schedule-item .time-label {
    display: inline-block;
    padding: 0.15rem 0.6rem;
    background: #FFE4EC;
    color: #C73E66;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

/* 标签样式 */
.tag {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    background: #FFE4EC;
    color: #C73E66;
}
.tag.matcha {
    background: #E8F0DC;
    color: #3E5F2E;
}
.tag.sky {
    background: #E0F2FE;
    color: #0C4A6E;
}
.tag.sun {
    background: #FEF3C7;
    color: #92400E;
}

/* 浮动点缀 */
.floating {
    animation: floating 4s ease-in-out infinite;
}
@keyframes floating {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* 图片卡片 */
.photo-card {
    position: relative;
    overflow: hidden;
    border-radius: 1.25rem;
    box-shadow: 0 10px 40px rgba(199, 62, 102, 0.15);
}
.photo-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26, 26, 46, 0.6) 0%, transparent 50%);
    pointer-events: none;
}
.photo-card .photo-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem 1.5rem;
    color: white;
    z-index: 1;
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #FFF5F7;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #FF8DA8, #C73E66);
    border-radius: 10px;
}

/* 导航滚动高亮 */
.nav-link.active {
    color: #E94E77;
    font-weight: 700;
}

/* 返回顶部显示 */
#back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

/* 虚线分隔 */
.dashed-divider {
    background-image: linear-gradient(to right, #FFCCDB 50%, transparent 50%);
    background-size: 10px 1px;
    background-repeat: repeat-x;
    height: 1px;
}

/* 卡片悬浮 */
.hover-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.hover-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 20px 50px rgba(199, 62, 102, 0.2);
}

/* 小徽章闪光 */
@keyframes shine {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}
.shine {
    animation: shine 2.5s ease-in-out infinite;
}

/* 时间线左右布局 */
@media (min-width: 768px) {
    .timeline-row {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
        gap: 2rem;
        min-height: 120px;
    }
    .timeline-row .timeline-card-left {
        grid-column: 1;
        text-align: right;
    }
    .timeline-row .timeline-card-right {
        grid-column: 3;
        text-align: left;
    }
    .timeline-row .timeline-center {
        grid-column: 2;
        position: relative;
    }
}

/* 移动端时间线：左右容器都正常显示，空的自动不占空间 */
@media (max-width: 767px) {
    .timeline-row .timeline-card-left:empty,
    .timeline-row .timeline-card-right:empty {
        display: none;
    }
}

/* 日期章印 */
.stamp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border: 3px solid #C73E66;
    border-radius: 50%;
    color: #C73E66;
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 1.5rem;
    transform: rotate(-10deg);
    background: rgba(255, 228, 236, 0.6);
    flex-shrink: 0;
}

/* 天气图标装饰 */
.weather-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.7rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 9999px;
    font-size: 0.75rem;
    color: #4B5563;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* 页内锚点偏移修正 */
section[id], div[id^="day"] {
    scroll-margin-top: 80px;
}

/* 路线地图动画 */
.route-line {
    stroke-dashoffset: 200;
    animation: drawRoute 2s ease forwards;
}
@keyframes drawRoute {
    from { stroke-dashoffset: 200; opacity: 0; }
    to { stroke-dashoffset: 0; opacity: 0.7; }
}

.station-marker {
    opacity: 0;
    animation: stationAppear 0.5s ease forwards;
}
@keyframes stationAppear {
    from { opacity: 0; transform: scale(0.5); }
    to { opacity: 1; transform: scale(1); }
}

.route-label {
    opacity: 0;
    animation: labelFade 0.4s ease forwards;
}
@keyframes labelFade {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes tooltipIn {
    from { opacity: 0; transform: translateX(-50%) translateY(5px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.station-marker:hover circle:nth-child(2) {
    stroke-width: 3.5;
    transition: stroke-width 0.3s ease;
}