/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --pink-light: #ffe4ec;
    --pink: #ffb3c6;
    --pink-deep: #ff8fa3;
    --blue-light: #d6eaff;
    --blue: #a8d0ff;
    --blue-deep: #7bb8ff;
    --klein-blue: #002fa7;
    --cream: #fff9f5;
    --text-dark: #4a3748;
    --text-soft: #7a6875;
    --handwrite: 'STXingkai', '华文行楷', '楷体', 'KaiTi', cursive;
    --fun-font: 'STXingkai', '华文行楷', '楷体', 'KaiTi', cursive;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(180deg, var(--cream) 0%, var(--pink-light) 30%, var(--blue-light) 70%, var(--cream) 100%);
    min-height: 100vh;
    color: var(--text-dark);
    overflow-x: hidden;
    position: relative;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 蒲公英背景动画 */
.dandelion-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.dandelion {
    position: absolute;
    width: 30px;
    height: 30px;
    animation: float 15s linear infinite;
    opacity: 0.6;
}

.dandelion::before {
    content: '🌼';
    position: absolute;
    font-size: 24px;
    filter: blur(0.5px);
}

@keyframes float {
    0% {
        transform: translateY(110vh) rotate(0deg) translateX(0);
    }
    25% {
        transform: translateY(75vh) rotate(90deg) translateX(50px);
    }
    50% {
        transform: translateY(50vh) rotate(180deg) translateX(-30px);
    }
    75% {
        transform: translateY(25vh) rotate(270deg) translateX(40px);
    }
    100% {
        transform: translateY(-10vh) rotate(360deg) translateX(0);
    }
}

/* 首页 Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    z-index: 2;
    padding: 20px;
}

.hero-content {
    max-width: 800px;
    animation: fadeInUp 1.5s ease;
}

.hero-subtitle {
    font-family: var(--handwrite);
    font-size: 2rem;
    color: var(--pink-deep);
    margin-bottom: 20px;
    letter-spacing: 4px;
}

.hero-title {
    font-family: var(--handwrite);
    font-size: 5rem;
    background: linear-gradient(135deg, var(--pink-deep), var(--blue-deep));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 40px;
    letter-spacing: 8px;
    text-shadow: none;
    filter: drop-shadow(0 4px 8px rgba(255, 143, 163, 0.3));
}

.counter {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.counter-label {
    font-size: 1.2rem;
    color: var(--text-soft);
}

.counter-number {
    font-family: var(--fun-font);
    font-size: 4rem;
    color: var(--pink-deep);
    background: white;
    padding: 10px 30px;
    border-radius: 50px;
    box-shadow: 0 8px 25px rgba(255, 143, 163, 0.3);
}

.counter-unit {
    font-size: 1.5rem;
    color: var(--text-soft);
}

.counter-hint {
    font-size: 0.9rem;
    color: var(--pink-deep);
    margin-bottom: 20px;
    opacity: 0.7;
    animation: fadeInUp 2s ease;
}

.hero-date {
    font-size: 1rem;
    color: var(--text-soft);
    margin-bottom: 50px;
    letter-spacing: 2px;
}

.scroll-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 40px;
    background: linear-gradient(135deg, var(--pink), var(--blue));
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.1rem;
    box-shadow: 0 8px 25px rgba(168, 208, 255, 0.4);
    transition: all 0.3s ease;
    animation: bounce 2s ease-in-out infinite;
}

.scroll-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(168, 208, 255, 0.5);
}

.arrow {
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid white;
}

/* 时间线 Section */
.timeline-section {
    padding: 80px 0;
    position: relative;
    z-index: 2;
}

.section-title {
    font-family: var(--handwrite);
    font-size: 3rem;
    text-align: center;
    color: var(--pink-deep);
    margin-bottom: 15px;
    letter-spacing: 6px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-soft);
    margin-bottom: 60px;
    font-size: 1.1rem;
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 100%;
    background: linear-gradient(to bottom, var(--pink), var(--blue), var(--pink));
    border-radius: 3px;
    box-shadow: 0 0 10px rgba(255, 143, 163, 0.3);
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 20px 40px;
    margin-bottom: 40px;
}

.timeline-item.left {
    left: 0;
    text-align: right;
}

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

.timeline-dot {
    position: absolute;
    top: 30px;
    width: 20px;
    height: 20px;
    background: white;
    border: 4px solid var(--pink-deep);
    border-radius: 50%;
    z-index: 3;
    box-shadow: 0 0 15px rgba(255, 143, 163, 0.5);
}

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

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

.timeline-dot.big {
    width: 28px;
    height: 28px;
    border: 5px solid var(--klien-blue);
    box-shadow: 0 0 20px rgba(0, 47, 167, 0.4);
}

.timeline-content {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 179, 198, 0.3);
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 143, 163, 0.2);
}

.timeline-content.special {
    background: linear-gradient(135deg, #fff9f5, var(--pink-light));
    border: 2px solid var(--pink-deep);
}

.timeline-content.latest {
    background: linear-gradient(135deg, var(--cream), var(--blue-light));
    border: 2px solid var(--klien-blue);
}

.timeline-date {
    display: inline-block;
    font-family: var(--fun-font);
    font-size: 1rem;
    color: var(--pink-deep);
    background: var(--pink-light);
    padding: 5px 15px;
    border-radius: 20px;
    margin-bottom: 10px;
}

.timeline-content.latest .timeline-date {
    color: var(--klien-blue);
    background: var(--blue-light);
}

.timeline-content.special .timeline-date {
    background: var(--pink);
    color: white;
}

.timeline-content h3 {
    font-family: var(--handwrite);
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.timeline-content.special h3 {
    color: var(--pink-deep);
}

.timeline-days {
    color: var(--text-soft);
    font-size: 0.95rem;
    margin-bottom: 15px;
}

/* 信件样式 */
.letter {
    text-align: left;
    line-height: 2;
    font-size: 1rem;
    color: var(--text-dark);
    padding: 15px;
    background: linear-gradient(135deg, rgba(255, 228, 236, 0.3), rgba(214, 234, 255, 0.3));
    border-radius: 15px;
    position: relative;
}

.timeline-item.left .letter {
    text-align: left;
}

.letter p {
    margin-bottom: 8px;
}

.quote {
    font-family: var(--handwrite);
    font-size: 1.3rem;
    color: var(--pink-deep);
    text-align: center;
    margin: 15px 0 !important;
    padding: 10px 0;
    border-top: 1px dashed var(--pink);
    border-bottom: 1px dashed var(--pink);
}

.quote.big-quote {
    font-size: 1.5rem;
    color: var(--klien-blue);
    padding: 15px;
    border-color: var(--blue);
    background: rgba(214, 234, 255, 0.3);
    border-radius: 10px;
    border: 1px solid var(--blue);
    border-left: 4px solid var(--klien-blue);
    line-height: 1.6;
}

.highlight {
    background: linear-gradient(180deg, transparent 60%, var(--pink) 60%);
    padding: 0 5px;
    font-weight: bold;
}

.big-highlight {
    font-size: 1.2rem !important;
    color: var(--klien-blue) !important;
    background: linear-gradient(180deg, transparent 50%, var(--pink) 50%);
    display: inline-block;
    padding: 5px 10px;
    margin: 8px 0 !important;
    width: 100%;
}

.long-letter {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
}

.long-letter::-webkit-scrollbar {
    width: 6px;
}

.long-letter::-webkit-scrollbar-track {
    background: rgba(255, 228, 236, 0.3);
    border-radius: 3px;
}

.long-letter::-webkit-scrollbar-thumb {
    background: var(--pink);
    border-radius: 3px;
}

.letter-divider {
    text-align: center;
    font-size: 1.5rem;
    margin: 20px 0;
    color: var(--pink-deep);
    letter-spacing: 10px;
}

.written-by {
    display: block;
    text-align: right;
    color: var(--text-soft);
    font-size: 0.9rem;
    font-style: italic;
    margin-top: 15px;
}

/* 蒲公英之约 Section */
.promise-section {
    padding: 80px 0;
    position: relative;
    z-index: 2;
    background: linear-gradient(180deg, transparent, var(--blue-light), transparent);
}

.promise-card {
    max-width: 600px;
    margin: 0 auto 50px;
    background: white;
    padding: 50px 40px;
    border-radius: 30px;
    box-shadow: 0 15px 50px rgba(168, 208, 255, 0.3);
    text-align: center;
    border: 2px solid var(--blue);
}

.promise-text {
    font-family: var(--handwrite);
    font-size: 1.6rem;
    color: var(--klien-blue);
    line-height: 2;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.promise-note {
    color: var(--text-soft);
    font-size: 1rem;
}

.promise-info {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.info-card {
    background: white;
    padding: 30px 25px;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
    text-align: center;
    min-width: 180px;
    transition: transform 0.3s ease;
    border: 1px solid rgba(214, 234, 255, 0.5);
}

.info-card:hover {
    transform: translateY(-5px);
}

.info-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.info-card h3 {
    font-family: var(--handwrite);
    font-size: 1.5rem;
    color: var(--pink-deep);
    margin-bottom: 8px;
}

.info-card p {
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.info-desc {
    font-size: 0.85rem !important;
    color: var(--text-soft) !important;
}

/* 页脚 */
.footer {
    text-align: center;
    padding: 50px 20px;
    background: linear-gradient(180deg, transparent, var(--pink-light));
    position: relative;
    z-index: 2;
}

.footer p {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.footer-sub {
    font-family: var(--handwrite);
    font-size: 1.5rem !important;
    color: var(--pink-deep) !important;
}

.footer-date {
    color: var(--text-soft) !important;
    font-size: 0.9rem !important;
}

/* 动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }

    .counter-number {
        font-size: 3rem;
        padding: 8px 20px;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item,
    .timeline-item.left,
    .timeline-item.right {
        width: 100%;
        left: 0;
        text-align: left;
        padding-left: 50px;
        padding-right: 10px;
    }

    .timeline-item.left .timeline-dot,
    .timeline-item.right .timeline-dot {
        left: 10px;
        right: auto;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .promise-text {
        font-size: 1.3rem;
    }

    .promise-info {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
        letter-spacing: 4px;
    }

    .hero-subtitle {
        font-size: 1.5rem;
    }

    .counter-number {
        font-size: 2.5rem;
    }

    .timeline-content {
        padding: 20px;
    }

    .timeline-content h3 {
        font-size: 1.4rem;
    }

    .quote,
    .quote.big-quote {
        font-size: 1.1rem;
    }
}
