/* styles.css */

/* 全局样式 */
:root {
    --candle-flame: #ffd700;
    --tombstone: #a9a9a9;
}

body {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #e0e0e0;
    font-family: 'SimHei', sans-serif;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    position: relative;
}

.memorial-wall {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.tombstone {
    background: var(--tombstone);
    width: 300px;
    height: 400px;
    border-radius: 15px;
    margin: 2rem auto;
    transform-style: preserve-3d;
    transition: transform 0.6s;
    cursor: pointer;
    position: relative;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.tombstone:hover {
    transform: rotateY(15deg) translateZ(20px);
}

.epitaph {
    padding: 20px;
    text-align: center;
    font-size: 1.2em;
}

.candle-group {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
    position: relative;
    z-index: 1;
}

.candle {
    width: 50px;
    height: 150px;
    background: #fff;
    position: relative;
    border-radius: 5px;
    cursor: pointer;
}

.flame {
    width: 20px;
    height: 40px;
    background: var(--candle-flame);
    position: absolute;
    top: -50px;
    left: 15px;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    animation: flicker 0.1s infinite alternate;
    box-shadow: 0 0 20px var(--candle-flame);
}

@keyframes flicker {
    0% { transform: skew(2deg, 0) scaleY(0.9); }
    100% { transform: skew(-2deg, 0) scaleY(1.1); }
}

.memorial-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 40px;
    position: relative;
    z-index: 1;
}

.memorial-item {
    background: rgba(255,255,255,0.1);
    padding: 15px;
    border-radius: 10px;
    transition: transform 0.3s;
}

.memorial-item:hover {
    transform: translateY(-5px);
}

/* Canvas 样式 */
#weatherCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}