* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    background: linear-gradient(135deg, #ffafbd, #ffc3a0, #a1c4fd, #c2e9fb);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    color: #5a3e36;
    overflow-x: hidden;
    min-height: 100vh;
    padding: 10px;
    line-height: 1.5;
    font-size: 16px;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.container {
    max-width: 100%;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
    padding: 10px;
    background-image: url("https://aurora-1259397844.cos.ap-nanjing.myqcloud.com/icon/bg.jpg");
    background-repeat: no-repeat; /* 防止平铺 */
    background-size: cover;      /* 覆盖整个元素 */
    background-position: center; /* 居中显示 */
    background-attachment: fixed; /* 固定背景（视差效果） */
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    /*transform: translateZ(0);*/
    transform: none;
}


#hearts-container {
    /*background-image: url("bg.jpg");*/
}

.header {
    text-align: center;
    padding: 30px 15px;
    background: linear-gradient(to right, #ff7eb3, #ff758c);
    color: white;
    border-radius: 15px;
    position: relative;
    overflow: hidden;
    margin: 10px;
}

.header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M20,20 Q40,5 50,30 T80,20" fill="none" stroke="rgba(255,255,255,0.2)" stroke-width="2"/></svg>');
    opacity: 0.3;
}

.header h1 {
    font-size: 1.7rem;
    margin-bottom: 12px;
    font-family: 'Ma Shan Zheng', cursive;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    letter-spacing: 2px;
    line-height: 1.3;
}

.header p {
    font-size: 1rem;
    max-width: 100%;
    margin: 0 auto;
    line-height: 1.6;
    padding: 0 10px;
}

.heart {
    position: absolute;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    animation: float 6s ease-in-out infinite;
    z-index: 1;
}

.section {
    margin: 20px 0;
    padding: 20px 15px;
    background: rgba(255, 250, 245, 0.9);
    border-radius: 15px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    position: relative;
    transition: transform 0.3s ease;
}

.section:hover {
    transform: translateY(-3px);
}

.section-title {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px dashed #ffafbd;
    color: #e84393;
    font-size: 1.5rem;
    font-family: 'Ma Shan Zheng', cursive;
}

.topic-title {
    margin: 20px;
}

.topic-title h3 {
    color: #e84393;
    margin-bottom: 12px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    line-height: 1.4;
}


.section-title i {
    margin-right: 12px;
    font-size: 1.3rem;
}

.grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-top: 15px;
}

.card {
    background: white;
    padding: 18px;
    border-radius: 12px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, #ffafbd, #ffc3a0);
}

.card h3 {
    color: #e84393;
    margin-bottom: 12px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    line-height: 1.4;
}

.card h3 i {
    margin-right: 8px;
    font-size: 1.2rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    flex-wrap: wrap;
}

.info-item:last-child {
    border-bottom: none;
}

.highlight {
    color: #e84393;
    font-weight: 500;
    font-size: 1rem;
    text-align: right;
    flex-shrink: 0;
    margin-left: 5px;
}

.timeline {
    position: relative;
    padding-left: 25px;
    margin-top: 15px;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 8px;
    top: 0;
    height: 100%;
    width: 3px;
    background: linear-gradient(to bottom, #ffafbd, #a1c4fd);
}

.timeline-item {
    position: relative;
    margin-bottom: 25px;
    padding-left: 15px;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: -7px;
    top: 6px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #ff758c;
    border: 2px solid white;
    box-shadow: 0 0 0 2px #ff758c;
}

.timeline-date {
    font-weight: bold;
    color: #e84393;
    margin-bottom: 5px;
    font-size: 0.95rem;
}

.timeline-item div {
    font-size: 0.95rem;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 15px;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
}

.stat-number {
    font-size: 1.8rem;
    font-weight: bold;
    color: #e84393;
    margin: 8px 0;
}

.stat-label {
    font-size: 0.9rem;
    color: #777;
}

.chart-container {
    height: 250px;
    margin-top: 15px;
    position: relative;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: 15px;
}

@media (min-width: 768px) {
    .photo-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        margin-top: 15px;
    }
}

.photo-item {
    border-radius: 8px;
    overflow: hidden;
    height: 100px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.photo-item i {
    font-size: 1.8rem;
    color: #ccc;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

.modal-content {
    max-width: 100%;
    max-height: 90%;
    border-radius: 10px;
}

.close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: white;
    font-size: 35px;
    cursor: pointer;
    z-index: 1001;
}

.wish-wall {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-top: 15px;
}

.wish-card {
    background: white;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.08);
    border-left: 4px solid #ffafbd;
}

.keyword-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 15px;
}

.keyword {
    padding: 6px 12px;
    background: rgba(255, 175, 189, 0.2);
    border-radius: 18px;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: default;
}

.keyword-large {
    font-size: 1.2rem;
}

.keyword-medium {
    font-size: 1.1rem;
}

.progress-container {
    background: #f0f0f0;
    border-radius: 8px;
    height: 16px;
    margin: 12px 0;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(to right, #ffafbd, #ffc3a0);
    border-radius: 8px;
    text-align: center;
    color: white;
    font-weight: bold;
    line-height: 16px;
    font-size: 0.75rem;
}

.footer {
    text-align: center;
    padding: 30px 15px;
    color: #e84393;
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0.7;
    background: white;
    border-radius: 12px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;

}

.share-btn {
    background: linear-gradient(to right, #ff7eb3, #ff758c);
    color: white;
    border: none;
    padding: 14px 35px;
    font-size: 1.1rem;
    border-radius: 30px;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 12px rgba(255, 126, 179, 0.4);
    display: inline-block;
    font-weight: 500;
}

.cook-btn {
    background: linear-gradient(to right, #e6a756, #ff758c);
    color: gainsboro;
    border: none;
    padding: 14px 35px;
    font-size: 1.1rem;
    border-radius: 30px;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 12px rgba(255, 126, 179, 0.4);
    display: inline-block;
    font-weight: 500;
}

@keyframes float {
    0% { transform: translateY(0) rotate(0deg); opacity: 0; }
    50% { transform: translateY(-15px) rotate(180deg); opacity: 1; }
    100% { transform: translateY(-30px) rotate(360deg); opacity: 0; }
}

/* 媒体查询 - 平板和桌面 */
@media (min-width: 768px) {
    .container {
        max-width: 700px;
        padding: 20px;
    }

    .header {
        padding: 40px 20px;
        margin: 15px;
    }

    .header h1 {
        font-size: 2.3rem;
    }

    .header p {
        font-size: 1.1rem;
    }

    .section {
        padding: 25px 20px;
        margin: 25px 0;
    }

    .grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .stats-container {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }

    .wish-wall {
        grid-template-columns: repeat(3, 1fr);
    }

    .photo-grid {
        gap: 12px;
    }

    .photo-item {
        height: 130px;
    }
}

/* 媒体查询 - 桌面大屏 */
@media (min-width: 992px) {
    .container {
        max-width: 800px;
    }
}


/*music播放器*/
/* 音乐按钮样式 */
#music-player {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

#music-player:hover {
    background-color: #45a049;
    transform: scale(1.1);
}

/* 隐藏音频元素 */
#bg-music {
    display: none;
}