/* 情侣空间样式 - 浪漫粉色主题 */

:root {
    --theme-color: #ff6b9d;
    --theme-light: #ffc4d6;
    --theme-dark: #e91e63;
    --bg-color: #ffeef8;
    --bg-gradient-start: #fff5f7;
    --bg-gradient-end: #ffe0ec;
    --text-color: #5a3d44;
    --text-light: #8b6b73;
    --card-bg: rgba(255, 255, 255, 0.9);
    --shadow: 0 8px 32px rgba(255, 107, 157, 0.15);
    --shadow-hover: 0 12px 40px rgba(255, 107, 157, 0.25);
    --border-radius: 20px;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    min-height: 100vh;
    color: var(--text-color);
    position: relative;
    overflow-x: hidden;
}

/* 浮动爱心背景 */
.bg-hearts {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.heart-float {
    position: absolute;
    width: 150px;
    height: 150px;
    animation: float 6s ease-in-out infinite;
}

.heart-1 {
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.heart-2 {
    top: 60%;
    right: 5%;
    width: 200px;
    height: 200px;
    animation-delay: 2s;
}

.heart-3 {
    bottom: 10%;
    left: 10%;
    width: 120px;
    height: 120px;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

/* 容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    position: relative;
    z-index: 1;
}

/* 头部 */
.header {
    text-align: center;
    margin-bottom: 50px;
}

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

.name {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--theme-color);
    text-shadow: 2px 2px 4px rgba(255, 107, 157, 0.2);
}

.heart-icon {
    width: 40px;
    height: 40px;
    animation: heartbeat 1.2s ease-in-out infinite;
    filter: drop-shadow(0 2px 4px rgba(255, 107, 157, 0.3));
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    14% {
        transform: scale(1.1);
    }
    28% {
        transform: scale(1);
    }
    42% {
        transform: scale(1.1);
    }
    70% {
        transform: scale(1);
    }
}

.title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--theme-dark);
    margin-bottom: 10px;
    text-shadow: 2px 2px 8px rgba(255, 107, 157, 0.2);
}

.subtitle {
    font-size: 1rem;
    color: var(--text-light);
}

.subtitle span {
    color: var(--theme-color);
    font-weight: 600;
}

/* 计时器区域 */
.timer-section {
    margin-bottom: 60px;
}

.timer-container {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 107, 157, 0.1);
}

.time-main {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.time-box {
    text-align: center;
    min-width: 100px;
}

.time-box .number {
    display: block;
    font-size: 4rem;
    font-weight: 700;
    color: var(--theme-color);
    line-height: 1;
    text-shadow: 3px 3px 6px rgba(255, 107, 157, 0.2);
    font-variant-numeric: tabular-nums;
}

.time-box .label {
    display: block;
    font-size: 1rem;
    color: var(--text-light);
    margin-top: 8px;
}

/* 毫秒微秒细节时间 */
.time-detail {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    padding-top: 20px;
    border-top: 2px dashed var(--theme-light);
}

.detail-box {
    text-align: center;
}

.detail-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--theme-dark);
    font-family: 'Courier New', monospace;
    font-variant-numeric: tabular-nums;
    text-shadow: 2px 2px 4px rgba(233, 30, 99, 0.2);
}

.detail-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 5px;
}

.detail-separator {
    font-size: 2rem;
    color: var(--theme-color);
    font-weight: 700;
    animation: blink 1s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* 区域标题 */
.section-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1.5rem;
    color: var(--theme-dark);
    margin-bottom: 30px;
}

.title-icon {
    width: 28px;
    height: 28px;
}

/* 消息区域 */
.messages-section {
    margin-bottom: 60px;
}

.messages-list {
    display: grid;
    gap: 20px;
}

.message-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-left: 4px solid var(--theme-color);
}

.message-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.message-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 15px;
}

.message-author {
    text-align: right;
    font-size: 0.95rem;
    color: var(--theme-color);
    font-style: italic;
    margin-bottom: 10px;
}

.message-time {
    text-align: right;
    font-size: 0.8rem;
    color: var(--text-light);
}

.empty-message {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.empty-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
}

/* 相册区域 */
.gallery-section {
    margin-bottom: 60px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-hover);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.gallery-caption {
    padding: 15px;
    font-size: 0.9rem;
    color: var(--text-color);
    text-align: center;
}

/* 页脚 */
.footer {
    text-align: center;
    padding: 40px 20px;
}

.love-quote {
    font-size: 1.2rem;
    color: var(--theme-color);
    font-style: italic;
    margin-bottom: 30px;
}

.admin-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 10px 20px;
    border-radius: 20px;
    border: 1px solid var(--theme-light);
    transition: var(--transition);
}

.admin-link:hover {
    background: var(--theme-light);
    color: var(--theme-dark);
}

.admin-icon {
    width: 18px;
    height: 18px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 20px 15px;
    }
    
    .title {
        font-size: 1.8rem;
    }
    
    .name {
        font-size: 1.3rem;
    }
    
    .time-box .number {
        font-size: 2.5rem;
    }
    
    .time-box {
        min-width: 70px;
    }
    
    .detail-number {
        font-size: 1.8rem;
    }
    
    .timer-container {
        padding: 25px 15px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .gallery-item img {
        height: 150px;
    }
}

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

.timer-container,
.message-card,
.gallery-item {
    animation: fadeInUp 0.6s ease-out;
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-gradient-start);
}

::-webkit-scrollbar-thumb {
    background: var(--theme-light);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--theme-color);
}