/* 200天纪念日专用样式 - 深色浪漫主题 */

.title-icon {
    width: 60px;
    height: auto;
    vertical-align: middle;
    position: relative;
    top: -4px;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
}

body {
    font-family: "Georgia", "Times New Roman", serif;
    text-align: center;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #f8f8ff;
    padding: 20px;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* 星空背景动画 */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(2px 2px at 20px 30px, #eee, transparent),
        radial-gradient(
            2px 2px at 40px 70px,
            rgba(255, 255, 255, 0.8),
            transparent
        ),
        radial-gradient(1px 1px at 90px 40px, #fff, transparent),
        radial-gradient(
            1px 1px at 130px 80px,
            rgba(255, 255, 255, 0.6),
            transparent
        ),
        radial-gradient(2px 2px at 160px 30px, #ddd, transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    animation: sparkle 20s linear infinite;
    z-index: -1;
}

@keyframes sparkle {
    from {
        transform: translateY(0px);
    }
    to {
        transform: translateY(-100px);
    }
}

.container {
    max-width: 700px;
    margin: auto;
    position: relative;
    z-index: 1;
}

h1 {
    font-size: 32px;
    margin-bottom: 30px;
    background: linear-gradient(45deg, #ffd700, #ffed4e, #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
    animation: glow 3s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
    }
    to {
        text-shadow: 0 0 40px rgba(255, 215, 0, 0.6),
            0 0 60px rgba(255, 215, 0, 0.3);
    }
}

/* 信件样式 - 优雅的深色卡片 */
.letter {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 215, 0, 0.2);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    line-height: 2;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.letter::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 215, 0, 0.5),
        transparent
    );
}

.letter p {
    margin-bottom: 20px;
    font-size: 16px;
    color: #f0f0f0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.letter strong {
    color: #ffd700;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

/* 特殊段落样式 */
.letter p:first-of-type {
    font-size: 18px;
    color: #ffd700;
    text-align: center;
    margin-bottom: 30px;
    font-style: italic;
}

/* 返回链接样式 */
.back-link {
    display: inline-block;
    margin-top: 30px;
    padding: 12px 24px;
    text-decoration: none;
    color: #ffd700;
    font-weight: bold;
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 25px;
    background: rgba(255, 215, 0, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.back-link::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 215, 0, 0.2),
        transparent
    );
    transition: left 0.5s ease;
}

.back-link:hover {
    color: #1a1a2e;
    background: #ffd700;
    border-color: #ffd700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    transform: translateY(-2px);
}

.back-link:hover::before {
    left: 100%;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 0 10px;
    }

    h1 {
        font-size: 24px;
    }

    .letter {
        padding: 20px;
        border-radius: 15px;
    }

    .letter p {
        font-size: 14px;
    }
}

/* 特殊装饰元素 */
.letter::after {
    content: "✨";
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 20px;
    animation: twinkle 2s ease-in-out infinite;
}

@keyframes twinkle {
    0%,
    100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}
