* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'WD-XL', 'Segoe UI', sans-serif;
}
@font-face {
    font-family: 'WD-XL';
    src: url(../font/WD-XLLubrifontSC-Regular.otf);
}

body {
    background: linear-gradient(135deg, #fff5f5 0%, #fff0f5 50%, #f5f5ff 100%);
    min-height: 100vh;
    color: #5a5a7a;
    position: relative;
    overflow-x: hidden;
    padding: 0;
}

body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(255, 200, 200, 0.1) 0px, transparent 50px),
        radial-gradient(circle at 90% 30%, rgba(200, 230, 255, 0.1) 0px, transparent 60px),
        radial-gradient(circle at 50% 80%, rgba(230, 200, 255, 0.1) 0px, transparent 70px);
    background-size: 100% 100%;
    z-index: -1;
    animation: float 15s infinite ease-in-out;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 25px;
    box-shadow: 0 15px 50px rgba(255, 105, 180, 0.2);
    overflow: hidden;
    min-height: 100vh;
}

/* 头部样式 */
.header {
    text-align: center;
    padding: 40px 20px 50px;
    background: linear-gradient(120deg, #ff9a9e, #fad0c4, #fbc2eb, #a6c1ee);
    background-size: 300% 300%;
    position: relative;
    overflow: hidden;
    animation: gradientBG 12s ease infinite;
}

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

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.header::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path fill="rgba(255,255,255,0.2)" d="M20,50 Q40,30 50,20 Q60,30 80,50 Q60,70 50,80 Q40,70 20,50Z"/></svg>');
    background-size: 80px;
    opacity: 0.3;
    animation: rotate 60s linear infinite;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.couple-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
    padding: 0 30px;
}

.avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 5px solid white;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    transition: all 0.5s ease;
}

.avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 30px rgba(233, 30, 99, 0.3);
}

.avatar-1 {
    background-image: url('../images/ttx.jpg');
    margin-right: 10px;
    z-index: 2;
    animation: floatAvatar1 4s infinite ease-in-out;
}

.avatar-2 {
    background-image: url('../images/ttx2.jpg');
    margin-left: 10px;
    z-index: 1;
    animation: floatAvatar2 4s infinite ease-in-out;
}

@keyframes floatAvatar1 {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

@keyframes floatAvatar2 {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(15px);
    }
}

.heart {
    font-size: 60px;
    color: #ff3b6d;
    animation: heartbeat 1.2s infinite, glow 2s infinite;
    z-index: 3;
    margin: 0 20px;
    text-shadow: 0 0 15px rgba(255, 59, 109, 0.7);
}

@keyframes heartbeat {
    0% {
        transform: scale(1);
    }

    5% {
        transform: scale(1.1);
    }

    10% {
        transform: scale(1);
    }

    15% {
        transform: scale(1.2);
    }

    20% {
        transform: scale(1);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes glow {
    0% {
        text-shadow: 0 0 10px rgba(255, 59, 109, 0.7);
    }

    50% {
        text-shadow: 0 0 25px rgba(255, 59, 109, 0.9);
    }

    100% {
        text-shadow: 0 0 10px rgba(255, 59, 109, 0.7);
    }
}

.title {
    font-size: 46px;
    color: white;
    margin: 20px 0;
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
    font-family: 'Ma Shan Zheng', cursive;
    letter-spacing: 2px;
    animation: fadeInDown 1s ease;
}

.subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 20px;
    max-width: 600px;
    margin: 0 auto 25px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 1s ease;
}

.counter {
    background: rgba(255, 255, 255, 0.9);
    display: inline-flex;
    padding: 20px 40px;
    border-radius: 60px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    margin-top: 15px;
    animation: fadeInUp 1s ease;
    backdrop-filter: blur(5px);
}

.counter-item {
    margin: 0 20px;
    text-align: center;
    min-width: 90px;
}

.counter-value {
    font-size: 36px;
    font-weight: bold;
    color: #ff3b6d;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.counter-label {
    font-size: 16px;
    color: #888;
    letter-spacing: 1px;
}

/* 导航样式 */
.nav {
    display: flex;
    justify-content: center;
    background: white;
    border-bottom: 1px solid #f0f0f0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 10;
    padding: 0 20px;
}

.nav-item {
    padding: 25px 40px;
    cursor: pointer;
    font-size: 22px;
    color: #777;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: center;
    max-width: 300px;
}

.nav-item i {
    margin-right: 15px;
    font-size: 24px;
    transition: all 0.3s ease;
}

.nav-item:hover,
.nav-item.active {
    color: #ff3b6d;
}

.nav-item:hover i {
    transform: scale(1.2);
}

.nav-item.active::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 4px;
    background: linear-gradient(to right, #ff9a9e, #ff3b6d);
    border-radius: 4px 4px 0 0;
    animation: navUnderline 0.4s ease;
}

@keyframes navUnderline {
    from {
        width: 0;
    }

    to {
        width: 80%;
    }
}

/* 内容区域 */
.content {
    padding: 50px 40px;
    min-height: 600px;
}

.section {
    display: none;
    animation: fadeIn 0.8s ease;
}

.section.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    color: #ff3b6d;
    font-size: 36px;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Ma Shan Zheng', cursive;
    letter-spacing: 3px;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(to right, #ffb6c1, #ff3b6d);
    border-radius: 4px;
    animation: lineExtend 0.8s ease;
}

@keyframes lineExtend {
    from {
        width: 0;
    }

    to {
        width: 100px;
    }
}

/* 聊天记录样式 */
.chat-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 30px;
    background: #fdfcff;
    border-radius: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0e6ff;
}

.chat-item {
    display: flex;
    margin-bottom: 40px;
    animation: slideIn 0.6s ease;
}

.chat-item:nth-child(even) {
    flex-direction: row-reverse;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.chat-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-size: cover;
    flex-shrink: 0;
    margin: 0 25px;
    border: 3px solid white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.chat-avatar:hover {
    transform: scale(1.1) rotate(5deg);
}

.chat-bubble {
    max-width: 70%;
    padding: 25px;
    border-radius: 25px;
    position: relative;
    line-height: 1.8;
    font-size: 18px;
    animation: bubbleAppear 0.5s ease;
}

@keyframes bubbleAppear {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.chat-item:nth-child(odd) .chat-bubble {
    background: linear-gradient(to bottom right, #e0f7fa, #f0fcff);
    border-top-left-radius: 5px;
}

.chat-item:nth-child(even) .chat-bubble {
    background: linear-gradient(to bottom left, #fce4ec, #ffebf3);
    border-top-right-radius: 5px;
}

.chat-date {
    font-size: 14px;
    color: #999;
    margin-top: 12px;
    text-align: right;
    font-style: italic;
}

/* 时间轴样式 */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 0;
}

.timeline::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 6px;
    background: linear-gradient(to bottom, #ff9a9e, #ff3b6d);
    transform: translateX(-50%);
    border-radius: 10px;
}

.timeline-item {
    width: 50%;
    padding: 30px;
    position: relative;
    animation: fadeInLeft 0.8s ease;
}

.timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 70px;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 70px;
    animation-name: fadeInRight;
}

.timeline-content {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    position: relative;
    transition: all 0.4s ease;
    border: 1px solid #f8f0ff;
}

.timeline-content:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(255, 59, 109, 0.15);
}

.timeline-date {
    font-weight: bold;
    color: #ff3b6d;
    margin-bottom: 15px;
    font-size: 20px;
}

.timeline-item:nth-child(odd)::before,
.timeline-item:nth-child(even)::before {
    content: "";
    position: absolute;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #ff3b6d;
    top: 40px;
    border: 6px solid white;
    box-shadow: 0 0 0 4px rgba(255, 59, 109, 0.3);
    z-index: 1;
}

.timeline-item:nth-child(odd)::before {
    right: -15px;
}

.timeline-item:nth-child(even)::before {
    left: -15px;
}

/* 相册样式 */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.photo {
    height: 300px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background-size: cover;
    background-position: center;
    animation: photoAppear 0.6s ease;
}

@keyframes photoAppear {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.photo:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 20px 40px rgba(255, 59, 109, 0.25);
}

.photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    color: white;
    padding: 30px 20px 15px;
    opacity: 0;
    transition: opacity 0.4s ease;
    text-align: center;
    font-size: 18px;
}

.photo:hover .photo-overlay {
    opacity: 1;
}

/* 愿望清单样式 */
.wishes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.wish-card {
    background: white;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid #f5e6ff;
    animation: cardAppear 0.6s ease;
}

@keyframes cardAppear {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.wish-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 40px rgba(255, 59, 109, 0.2);
}

.wish-header {
    background: linear-gradient(to right, #ff9a9e, #fad0c4, #fbc2eb);
    color: white;
    padding: 25px 30px;
    display: flex;
    align-items: center;
}

.wish-icon {
    font-size: 32px;
    margin-right: 20px;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.wish-title {
    font-size: 24px;
    font-weight: 500;
    letter-spacing: 1px;
}

.wish-body {
    padding: 30px;
    line-height: 1.8;
    font-size: 18px;
    background: #fefcff;
}

.wish-date {
    padding: 15px 30px;
    background: #faf5ff;
    color: #888;
    font-size: 16px;
    text-align: right;
    font-style: italic;
}

.wish-status {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 16px;
    margin-top: 20px;
    font-weight: bold;
}

.status-pending {
    background: linear-gradient(to right, #fff8e1, #fff3d6);
    color: #ff9800;
    border: 1px solid #ffecb3;
}

.status-completed {
    background: linear-gradient(to right, #e8f5e9, #dff0d8);
    color: #4caf50;
    border: 1px solid #c8e6c9;
}

/* 漂浮爱心 */
.floating-hearts {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.heart-shape {
    position: absolute;
    width: 20px;
    height: 20px;
    background: #ff6b9d;
    transform: rotate(45deg);
    opacity: 0;
    animation: floatHeart 10s infinite linear;
}

.heart-shape:before,
.heart-shape:after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    background: #ff6b9d;
    border-radius: 50%;
}

.heart-shape:before {
    top: -10px;
    left: 0;
}

.heart-shape:after {
    top: 0;
    left: -10px;
}

@keyframes floatHeart {
    0% {
        transform: translateY(100vh) rotate(45deg);
        opacity: 0;
    }

    10% {
        opacity: 0.8;
    }

    90% {
        opacity: 0.6;
    }

    100% {
        transform: translateY(-100px) rotate(45deg);
        opacity: 0;
    }
}

/* 响应式设计 */
@media (max-width: 1200px) {

    .gallery,
    .wishes {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 992px) {
    .nav {
        flex-wrap: wrap;
    }

    .nav-item {
        padding: 20px;
        font-size: 20px;
        max-width: 50%;
    }

    .counter {
        padding: 15px 30px;
    }

    .counter-item {
        min-width: 70px;
        margin: 0 15px;
    }

    .counter-value {
        font-size: 30px;
    }
}

@media (max-width: 768px) {
    .avatar {
        width: 110px;
        height: 110px;
    }

    .heart {
        font-size: 45px;
        margin: 0 15px;
    }

    .title {
        font-size: 36px;
    }

    .counter {
        padding: 12px 20px;
    }

    .counter-item {
        min-width: 60px;
        margin: 0 10px;
    }

    .counter-value {
        font-size: 26px;
    }

    .counter-label {
        font-size: 14px;
    }

    .nav-item {
        padding: 15px;
        font-size: 18px;
        max-width: 100%;
    }

    .content {
        padding: 40px 20px;
    }

    .timeline::before {
        left: 30px;
    }

    .timeline-item {
        width: 100%;
        left: 0 !important;
        padding: 30px 0 30px 70px !important;
        text-align: left !important;
    }

    .timeline-item:nth-child(odd)::before,
    .timeline-item:nth-child(even)::before {
        left: 18px !important;
    }

    .gallery,
    .wishes {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .photo {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .avatar {
        width: 90px;
        height: 90px;
    }

    .heart {
        font-size: 35px;
        margin: 0 10px;
    }

    .title {
        font-size: 28px;
    }

    .counter {
        padding: 10px 15px;
        border-radius: 40px;
    }

    .counter-item {
        min-width: 50px;
        margin: 0 8px;
    }

    .counter-value {
        font-size: 22px;
    }

    .counter-label {
        font-size: 12px;
    }

    .nav-item {
        padding: 12px 10px;
        font-size: 16px;
    }

    .nav-item i {
        font-size: 18px;
        margin-right: 8px;
    }

    .section-title {
        font-size: 28px;
        margin-bottom: 40px;
    }

    .chat-bubble {
        font-size: 16px;
        padding: 20px;
    }

    .chat-avatar {
        width: 60px;
        height: 60px;
        margin: 0 15px;
    }
}