* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(180deg, #ffe4ec 0%, #fff5f7 100%);
    min-height: 100vh;
}

.page-container {
    max-width: 600px;
    margin: 0 auto;
    background: #ffffff;
    min-height: 100vh;
    position: relative;
}

.header {
    position: relative;
    padding: 40px 20px 50px;
    text-align: center;
    color: white;
    overflow: hidden;
}

.header-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #ff6b9d 0%, #c44569 50%, #ff8fa3 100%);
}

.header-bg::before {
    content: '';
    position: absolute;
    top: -100px;
    left: -100px;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.header-bg::after {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
}

.header-content {
    position: relative;
    z-index: 1;
}

.couple-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
}

.avatar-box {
    position: relative;
}

.couple-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.6);
    background: white;
}

.online-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    background: #52c41a;
    border-radius: 50%;
    border: 2px solid white;
}

.couple-names {
    display: flex;
    align-items: center;
    gap: 8px;
}

.name-boy, .name-girl {
    font-size: 16px;
    font-weight: 600;
}

.heart-symbol {
    font-size: 18px;
}

.love-quote {
    margin-bottom: 30px;
}

.love-quote p {
    font-size: 18px;
    font-weight: normal;
    letter-spacing: 2px;
    opacity: 0.95;
}

.timer-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 15px;
}

.timer-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 65px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 12px 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.timer-num {
    font-size: 36px;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    line-height: 1;
}

.timer-text {
    font-size: 10px;
    opacity: 0.85;
    margin-top: 4px;
}

.timer-separator {
    font-size: 24px;
    font-weight: bold;
    opacity: 0.4;
    margin-bottom: 20px;
}

.timer-date {
    font-size: 13px;
    opacity: 0.85;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin: -25px 15px 20px;
    position: relative;
    z-index: 2;
}

.stat-item {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 15px 10px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(255, 107, 157, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.5);
    cursor: pointer;
}

.stat-icon-box {
    font-size: 22px;
    margin-bottom: 6px;
}

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

.stat-value {
    font-size: 18px;
    font-weight: bold;
    color: #ff6b9d;
}

.stat-label {
    font-size: 11px;
    color: #666;
    margin-top: 3px;
}

.stat-bar {
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 2px;
    margin-top: 6px;
    overflow: hidden;
}

.stat-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff6b9d, #c44569);
    border-radius: 2px;
}

.content-section {
    padding: 15px;
    border-bottom: 10px solid #fff5f7;
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.section-title h3 {
    font-size: 17px;
    font-weight: 600;
    color: #333;
}

.section-tabs {
    display: flex;
    gap: 8px;
}

.tab-btn {
    font-size: 11px;
    padding: 4px 12px;
    border: none;
    background: #f5f5f5;
    border-radius: 12px;
    cursor: pointer;
    color: #666;
}

.tab-btn.active {
    background: #ff6b9d;
    color: white;
}

.more-link {
    font-size: 12px;
    color: #ff6b9d;
    text-decoration: none;
    font-weight: 500;
}

.memorial-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.memorial-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 15px;
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(255, 107, 157, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-left: 4px solid #ff6b9d;
}

.memorial-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.memorial-tag {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 8px;
    font-weight: 600;
}

.memorial-tag.coming {
    background: rgba(255, 107, 157, 0.15);
    color: #ff6b9d;
}

.memorial-tag.passed {
    background: rgba(82, 196, 26, 0.15);
    color: #52c41a;
}

.memorial-info {
    display: flex;
    flex-direction: column;
}

.memorial-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.memorial-date-text {
    font-size: 11px;
    color: #999;
    margin-top: 2px;
}

.memorial-right {
    display: flex;
    align-items: baseline;
    gap: 2px;
}

.memorial-days {
    font-size: 24px;
    font-weight: bold;
    color: #ff6b9d;
    font-family: 'Courier New', monospace;
}

.memorial-unit {
    font-size: 11px;
    color: #999;
}

.diaries-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.diary-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(255, 107, 157, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.diary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.diary-day-num {
    font-size: 12px;
    color: #ff6b9d;
    font-weight: 700;
    font-family: 'Courier New', monospace;
}

.diary-time {
    font-size: 11px;
    color: #999;
}

.diary-body {
    display: flex;
    padding: 15px;
    gap: 12px;
}

.diary-image-box {
    width: 90px;
    height: 90px;
    flex-shrink: 0;
    border-radius: 10px;
    overflow: hidden;
}

.diary-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.diary-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.diary-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}

.diary-text {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    flex: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.diary-footer {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}

.diary-author {
    font-size: 11px;
    color: #999;
}

.diary-location {
    font-size: 11px;
    color: #16a0ff;
}

.albums-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.album-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(255, 107, 157, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

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

.album-photo {
    aspect-ratio: 1;
    overflow: hidden;
}

.album-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.album-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
}

.album-date {
    font-size: 13px;
    font-weight: 600;
    color: #333;
}

.album-count {
    font-size: 12px;
    color: #999;
}

.guestbook-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.guestbook-card {
    display: flex;
    gap: 10px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 15px;
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(255, 107, 157, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.guestbook-avatar-box {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.guestbook-content {
    flex: 1;
}

.guestbook-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.guestbook-name {
    font-size: 13px;
    font-weight: 600;
    color: #333;
}

.guestbook-time {
    font-size: 11px;
    color: #999;
}

.guestbook-text {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    word-break: break-all;
}

.footer {
    padding: 25px 20px;
    text-align: center;
    background: #fff5f7;
}

.footer-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 20px;
}

.footer-stat {
    text-align: center;
}

.footer-stat-num {
    font-size: 22px;
    font-weight: bold;
    color: #ff6b9d;
    display: block;
}

.footer-stat-label {
    font-size: 11px;
    color: #999;
}

.footer-copy {
    font-size: 12px;
    color: #999;
}

.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 12px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
}

.floating-heart {
    position: fixed;
    bottom: -60px;
    font-size: 24px;
    animation: floatUp 6s ease-in-out infinite;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.6;
}

@keyframes floatUp {
    0% { transform: translateY(0) rotate(0deg) scale(1); opacity: 0.6; }
    50% { transform: translateY(-50vh) rotate(180deg) scale(1.2); opacity: 1; }
    100% { transform: translateY(-100vh) rotate(360deg) scale(0.8); opacity: 0; }
}

@media (max-width: 480px) {
    .page-container {
        width: 100%;
    }
    
    .header {
        padding: 35px 15px 45px;
    }
    
    .couple-avatar {
        width: 52px;
        height: 52px;
    }
    
    .love-quote p {
        font-size: 16px;
    }
    
    .timer-item {
        min-width: 55px;
        padding: 10px 6px;
    }
    
    .timer-num {
        font-size: 30px;
    }
    
    .stats-row {
        gap: 8px;
        margin: -20px 12px 15px;
    }
    
    .stat-item {
        padding: 12px 8px;
    }
    
    .stat-value {
        font-size: 16px;
    }
    
    .content-section {
        padding: 12px;
    }
    
    .diary-image-box {
        width: 75px;
        height: 75px;
    }
    
    .diary-body {
        padding: 12px;
        gap: 10px;
    }
}
