/* 粉色主题椰子表白网站 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #ffb6c1 0%, #ff69b4 50%, #ff1493 100%);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* 椰子飘落效果容器 */
.coconut-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* CSS绘制的椰子 */
.coconut {
    position: absolute;
    width: 30px;
    height: 40px;
    animation: fall linear infinite, sway ease-in-out infinite;
}

/* 椰子壳 */
.coconut::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 80%;
    background: linear-gradient(135deg, #8B4513, #A0522D);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    bottom: 0;
}

/* 椰子顶部 */
.coconut::after {
    content: '';
    position: absolute;
    width: 40%;
    height: 30%;
    background: linear-gradient(135deg, #32CD32, #228B22);
    border-radius: 0 0 50% 50% / 0 0 100% 100%;
    top: 0;
    left: 30%;
}

@keyframes fall {
    0% {
        transform: translateY(-100px) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

@keyframes sway {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(30px);
    }
}

/* 爱心粒子效果 */
.heart {
    position: absolute;
    width: 20px;
    height: 20px;
    background: #ff1493;
    transform: rotate(-45deg);
    animation: heartFloat ease-in-out infinite;
}

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

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

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

@keyframes heartFloat {
    0%, 100% {
        transform: translateY(0) rotate(-45deg);
        opacity: 1;
    }
    50% {
        transform: translateY(-20px) rotate(-45deg);
        opacity: 0.8;
    }
}

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

/* 头部 */
header {
    text-align: center;
    padding: 40px 0;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(255, 105, 180, 0.3);
}

header h1 {
    font-size: 3rem;
    color: #ff1493;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

header p {
    font-size: 1.2rem;
    color: #ff69b4;
    font-weight: bold;
}

/* 表白宣言卡片 - 晾衣绳效果 */
.declarations {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    margin: 60px 0 80px;
    padding: 40px 20px;
}

/* 晾衣绳 */
.declarations::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 10%;
    right: 10%;
    height: 4px;
    background: linear-gradient(90deg, transparent, #8B4513, transparent);
    z-index: 1;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.declaration-card {
    position: relative;
    background: rgba(255, 255, 255, 0.98);
    padding: 30px 25px 25px;
    width: 300px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: cardFloat 3s ease-in-out infinite;
    transition: transform 0.3s ease;
    border-radius: 2px;
    /* 添加纸张纹理和颜色变化 */
    background-image: linear-gradient(45deg, rgba(255, 248, 220, 0.3), rgba(255, 255, 255, 0.9));
    /* 添加随机旋转角度 */
    transform: rotate(var(--rotation));
}

/* 衣夹 */
.declaration-card::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 25px;
    background: linear-gradient(135deg, #A0522D, #8B4513);
    border-radius: 5px;
    z-index: 2;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

/* 衣夹中间的洞 */
.declaration-card::after {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 15px;
    height: 15px;
    background: #654321;
    border-radius: 50%;
    z-index: 3;
    box-shadow: inset 0 2px 3px rgba(0, 0, 0, 0.5);
}

/* 随机旋转角度 */
.declaration-card:nth-child(3n+1) { --rotation: -2deg; }
.declaration-card:nth-child(3n+2) { --rotation: 1deg; }
.declaration-card:nth-child(3n+3) { --rotation: 3deg; }
.declaration-card:nth-child(4n+4) { --rotation: -4deg; }

@keyframes cardFloat {
    0%, 100% {
        transform: rotate(var(--rotation)) translateY(0);
    }
    50% {
        transform: rotate(var(--rotation)) translateY(-10px);
    }
}

.declaration-card:hover {
    transform: rotate(var(--rotation)) translateY(-15px);
    box-shadow: 0 15px 40px rgba(255, 105, 180, 0.3);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ffb6c1;
}

.card-name {
    font-size: 1.3rem;
    color: #ff1493;
    font-weight: bold;
}

.card-date {
    font-size: 0.9rem;
    color: #999;
}

.card-content {
    font-size: 1.1rem;
    color: #333;
    line-height: 1.6;
    margin-bottom: 15px;
    min-height: 80px;
}

/* 表白表单 */
.declaration-form {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(255, 105, 180, 0.3);
    margin-bottom: 40px;
    animation: formFadeIn 0.8s ease-out;
}

@keyframes formFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #ff1493;
    font-size: 1.1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ffb6c1;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ff1493;
    box-shadow: 0 0 0 3px rgba(255, 20, 147, 0.1);
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

/* 验证码容器样式 */
.captcha-container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

/* 验证码图片样式 */
#captchaImage {
    width: 120px;
    height: 40px;
    object-fit: contain;
}

/* 验证码输入框样式 */
#captcha {
    width: 80px !important;
    margin-right: 10px !important;
}

.btn-submit {
    background: linear-gradient(45deg, #ff69b4, #ff1493);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 20, 147, 0.4);
}

.btn-submit:active {
    transform: translateY(0);
}

/* 管理员入口 */
.admin-link {
    text-align: center;
    margin-bottom: 30px;
}

.admin-link a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: bold;
    padding: 10px 20px;
    background: rgba(255, 20, 147, 0.8);
    border-radius: 25px;
    transition: all 0.3s ease;
}

.admin-link a:hover {
    background: rgba(255, 20, 147, 1);
    transform: scale(1.05);
}

/* 表白宣言轮播 */
.declarations-carousel {
    margin: 60px 0 80px;
    padding: 40px 20px;
    position: relative;
}

.carousel-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    will-change: transform;
}

.carousel-slide {
    min-width: 100%;
    padding: 40px;
    background: rgba(255, 255, 255, 0.95);
}

/* 新表白卡片样式 */
.declaration-card-new {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 240, 245, 0.95) 100%);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(255, 105, 180, 0.2);
    position: relative;
    overflow: hidden;
}

.declaration-card-new::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff1493, #ff69b4, #ff1493);
}

.card-heart {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    animation: heartBeat 1.5s ease-in-out infinite;
}

@keyframes heartBeat {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

.card-header-new {
    margin-bottom: 30px;
}

.card-name-new {
    font-size: 1.8rem;
    color: #ff1493;
    font-weight: bold;
    line-height: 1.8;
    margin-bottom: 15px;
}

.card-content-new {
    font-size: 1.3rem;
    color: #333;
    line-height: 1.8;
    margin-bottom: 30px;
    font-style: italic;
}

.card-date-new {
    font-size: 1rem;
    color: #999;
    text-align: right;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #ffb6c1;
}

/* 轮播控制按钮 */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 20, 147, 0.8);
    color: white;
    border: none;
    padding: 20px 15px;
    font-size: 2rem;
    cursor: pointer;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-btn:hover {
    background: rgba(255, 20, 147, 1);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 5px 15px rgba(255, 20, 147, 0.4);
}

.carousel-btn-left {
    left: 20px;
}

.carousel-btn-right {
    right: 20px;
}

/* 轮播指示器 */
.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.carousel-dot {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    border: 2px solid #ff1493;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: #ff1493;
    transform: scale(1.2);
}

/* 友情链接 */
.friend-links {
    padding: 30px 0;
    margin: 40px auto;
    max-width: 1200px;
}

.friend-links-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 15px;
    margin-top: 20px;
    padding: 0 20px;
}

.friend-link-item {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(45deg, #ffb6c1, #ff69b4);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(255, 105, 180, 0.2);
}

.friend-link-item:hover {
    transform: translateY(-3px);
    background: linear-gradient(45deg, #ff69b4, #ff1493);
    box-shadow: 0 6px 15px rgba(255, 105, 180, 0.3);
}

/* 页脚 */
footer {
    text-align: center;
    padding: 20px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: bold;
}

/* 响应式设计 */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }
    
    .declarations {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 10px;
    }
    
    .carousel-slide {
        padding: 20px;
    }
    
    .declaration-card-new {
        padding: 30px 20px;
    }
    
    .card-name-new {
        font-size: 1.4rem;
    }
    
    .card-content-new {
        font-size: 1.1rem;
    }
    
    .carousel-btn {
        width: 45px;
        height: 45px;
        font-size: 1.5rem;
        padding: 15px 10px;
    }
    
    .carousel-btn-left {
        left: 10px;
    }
    
    .carousel-btn-right {
        right: 10px;
    }
    
    /* 优化表单在移动端的显示 */
    .declaration-form {
        padding: 20px 15px;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 12px 15px;
        font-size: 1rem;
    }
    
    .captcha-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    /* 优化验证码容器 */
    #captchaImage {
        width: 150px;
        height: 45px;
    }
    
    /* 优化提交按钮 */
    .btn-submit {
        padding: 15px 20px;
        font-size: 1rem;
    }
    
    /* 优化友情链接在移动端的显示 */
    .friend-links {
        padding: 20px 0;
    }
    
    .friend-links-container {
        gap: 10px;
        padding: 0 10px;
    }
    
    .friend-link-item {
        padding: 8px 16px;
        font-size: 13px;
    }
}

/* 瀑布流容器 */
.waterfall-container {
    column-count: 3;
    column-gap: 20px;
    margin: 40px auto;
    max-width: 1200px;
    padding: 0 20px;
}

/* 瀑布流卡片 */
.waterfall-card {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    break-inside: avoid;
    margin-bottom: 20px;
    padding: 25px;
    transition: all 0.3s ease;
    background-image: linear-gradient(45deg, rgba(255, 248, 220, 0.3), rgba(255, 255, 255, 0.9));
    animation: fadeInUp 0.5s ease;
}

.waterfall-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(255, 105, 180, 0.4);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* 卡片点击效果 */
.waterfall-card:active {
    transform: translateY(-5px) scale(0.98);
    box-shadow: 0 10px 30px rgba(255, 105, 180, 0.2);
}

/* 加载指示器动画 */
.loading-indicator {
    text-align: center;
    padding: 40px;
    color: #ff1493;
    font-weight: bold;
    position: relative;
}

.loading-indicator::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 20, 147, 0.3);
    border-top: 3px solid #ff1493;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
    vertical-align: middle;
}

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

.waterfall-card-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid #ffb6c1;
}

.waterfall-card-name {
    font-size: 1.3rem;
    color: #ff1493;
    font-weight: bold;
    text-align: center;
    line-height: 1.6;
}

.waterfall-card-content {
    font-size: 1.1rem;
    color: #333;
    line-height: 1.6;
    margin-bottom: 15px;
    text-align: center;
}

.waterfall-card-date {
    font-size: 0.9rem;
    color: #999;
    text-align: right;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid #ffb6c1;
}

/* 加载更多指示器 */
.loading-indicator {
    text-align: center;
    padding: 40px;
    color: #ff1493;
    font-weight: bold;
}

.loading-indicator.hidden {
    display: none;
}

/* 返回首页按钮 */
.back-home {
    text-align: center;
    margin: 20px 0;
}

.back-home a {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, #ff1493, #ff69b4);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: bold;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 15px rgba(255, 20, 147, 0.3);
}

.back-home a:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 20, 147, 0.5);
}

.back-home a:active {
    transform: translateY(1px) scale(0.98);
}

/* 页头动画效果 */
header {
    animation: fadeInDown 0.8s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 标题动画效果 */
h1, h2 {
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.03);
    }
}

/* 查看更多按钮 */
.btn-more {
    background: linear-gradient(45deg, #ff69b4, #ff1493) !important;
    color: white !important;
    padding: 15px 40px !important;
    border-radius: 50px !important;
    font-size: 1.1rem !important;
    font-weight: bold !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    display: inline-block !important;
    box-shadow: 0 5px 15px rgba(255, 105, 180, 0.3) !important;
}

.btn-more:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 20px rgba(255, 20, 147, 0.4) !important;
}

/* 淡入上移动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 心跳动画 */
@keyframes heartBeat {
    0% {
        transform: scale(1);
    }
    14% {
        transform: scale(1.3);
    }
    28% {
        transform: scale(1);
    }
    42% {
        transform: scale(1.3);
    }
    70% {
        transform: scale(1);
    }
}

/* 刷新按钮样式 */
.btn-refresh {
    background: linear-gradient(45deg, #32CD32, #228B22);
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 128, 0, 0.3);
}

.btn-refresh:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 128, 0, 0.5);
}

.btn-refresh:active {
    transform: translateY(1px);
}

/* 弹窗按钮样式 */
.declaration-wall-button {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    z-index: 100;
}

.wall-btn {
    background: linear-gradient(45deg, #ff69b4, #ff1493);
    color: white;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 105, 180, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.wall-btn:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 20px rgba(255, 20, 147, 0.6);
    animation: heartBeat 1s ease-in-out;
}

/* 弹窗样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: rgba(255, 255, 255, 0.98);
    margin: 5% auto;
    padding: 0;
    border-radius: 20px;
    width: 80%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalFadeIn 0.5s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-header {
    background: linear-gradient(45deg, #ff69b4, #ff1493);
    color: white;
    padding: 20px 30px;
    border-radius: 20px 20px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.8rem;
}

.close {
    color: white;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.close:hover {
    transform: scale(1.2);
}

.modal-body {
    padding: 30px;
}

.modal-footer {
    background: rgba(255, 255, 255, 0.8);
    padding: 20px 30px;
    border-radius: 0 0 20px 20px;
    text-align: center;
    border-top: 2px solid #ffb6c1;
}

.modal-more-btn {
        font-size: 1rem !important;
        padding: 12px 30px !important;
    }

/* 弹窗轮播样式 */
.modal-carousel-container {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.95);
}

.modal-carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    will-change: transform;
}

.modal-carousel-slide {
    min-width: 100%;
    padding: 30px;
    box-sizing: border-box;
}

/* 弹窗轮播卡片样式 */
.modal-carousel .declaration-card-new {
    background: rgba(255, 248, 220, 0.7);
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(255, 105, 180, 0.2);
}

/* 椰子树表白区样式 */
.coconut-tree-section {
    padding: 60px 20px;
    margin: 60px 0;
    text-align: center;
    position: relative;
}

/* 椰子树容器 */
.coconut-tree-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    height: 1000px;
    margin: 0 auto;
    max-width: 1000px;
}

/* 漫画版椰子树SVG容器 */
.coconut-tree-svg-container {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: flex-end;
    left: -25%;
}

/* 漫画版椰子树SVG */
.comic-coconut-tree {
    width: 180%;
    height: auto;
    max-height: 180%;
    object-fit: contain;
    z-index: 1;
    transform: rotate(5deg);
    transform-origin: bottom center;
}

/* 动态椰子容器 */
.dynamic-coconuts-container {
    position: absolute;
    width: 95%;
    height: 95%;
    top: 2.5%;
    left: 2.5%;
    z-index: 2;
    transform: rotate(15deg);
    transform-origin: bottom center;
}

/* 旧的椰子树样式保持兼容性（如果需要） */
.coconut-tree-trunk, .coconut-tree-leaves, .leaf {
    display: none;
}

/* 漫画版椰子样式 */
.tree-coconut {
    position: absolute;
    width: 60px;
    height: 60px;
    cursor: pointer;
    transition: transform 0.3s ease, filter 0.3s ease;
    z-index: 3;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: rotate(-15deg);
}

.tree-coconut img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.tree-coconut:hover {
    transform: scale(1.3) rotate(-15deg);
    z-index: 4;
    filter: drop-shadow(0 8px 15px rgba(0, 0, 0, 0.3));
}

.tree-coconut:hover img {
    transform: rotate(15deg);
}

/* 椰子弹窗样式 */
.coconut-modal-content {
    max-width: 800px;
    margin: 10% auto;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.coconut-modal-body {
    padding: 40px;
    text-align: center;
}

/* 头像容器 */
.avatar-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(255, 248, 220, 0.7);
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(255, 105, 180, 0.2);
}

.avatar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

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

.male-avatar {
    background: linear-gradient(135deg, #1E90FF, #00BFFF);
    border: 3px solid #1E90FF;
}

.female-avatar {
    background: linear-gradient(135deg, #FF69B4, #FF1493);
    border: 3px solid #FF69B4;
}

.avatar-arrow {
    font-size: 2rem;
    color: #ff1493;
    font-weight: bold;
    animation: pulse 1.5s ease-in-out infinite;
}

.avatar-name {
    font-size: 1.2rem;
    color: #ff1493;
    font-weight: bold;
    text-align: center;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 表白内容 */
.coconut-content {
    background: rgba(255, 255, 255, 0.8);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

#coconutDeclarationContent {
    font-size: 1.3rem;
    color: #333;
    line-height: 1.8;
    margin-bottom: 20px;
    font-style: italic;
}

.declaration-date {
    font-size: 1rem;
    color: #999;
    text-align: right;
    padding-top: 15px;
    border-top: 2px solid #ffb6c1;
}

.modal-carousel .declaration-card-new:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(255, 105, 180, 0.3);
    border-color: rgba(255, 105, 180, 0.6);
}

.modal-carousel .card-heart {
    font-size: 2.5rem;
    margin-bottom: 20px;
    animation: heartBeat 1.5s ease-in-out infinite;
}

.modal-carousel .card-name-new {
    font-size: 1.8rem;
    color: #ff1493;
    font-weight: bold;
    margin-bottom: 25px;
    line-height: 1.8;
    font-family: 'Arial Black', sans-serif;
    text-shadow: 2px 2px 4px rgba(255, 105, 180, 0.3);
}

.modal-carousel .card-content-new {
    font-size: 1.4rem;
    color: #333;
    line-height: 1.8;
    margin-bottom: 30px;
    font-style: italic;
    min-height: 100px;
}

.modal-carousel .card-date-new {
    font-size: 1rem;
    color: #999;
    border-top: 2px dashed rgba(255, 105, 180, 0.3);
    padding-top: 15px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .declaration-wall-button {
        top: auto;
        bottom: 20px;
        right: 20px;
        transform: none;
    }
    
    .wall-btn {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
        max-height: 85vh;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    /* 优化弹窗轮播在移动端的显示 */
    .modal-carousel-slide {
        padding: 20px;
    }
    
    .modal-carousel .declaration-card-new {
        padding: 30px 20px;
    }
    
    .modal-carousel .card-name-new {
        font-size: 1.4rem;
        margin-bottom: 20px;
    }
    
    .modal-carousel .card-content-new {
        font-size: 1.1rem;
        margin-bottom: 25px;
        min-height: 80px;
    }
    
    /* 优化弹窗轮播控制按钮 */
    .modal-carousel .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
        padding: 10px 8px;
    }
    
    .modal-carousel .carousel-btn-left {
        left: 5px;
    }
    
    .modal-carousel .carousel-btn-right {
        right: 5px;
    }
    
    /* 优化弹窗轮播指示器 */
    .modal-carousel .carousel-dots {
        bottom: 10px;
        gap: 8px;
    }
    
    .modal-carousel .carousel-dot {
        width: 12px;
        height: 12px;
    }
    
    /* 优化查看全部按钮 */
    .modal-more-btn {
        font-size: 0.9rem !important;
        padding: 10px 25px !important;
    }
}

/* 瀑布流响应式设计 */
@media (max-width: 992px) {
    .waterfall-container {
        column-count: 2;
    }
}

@media (max-width: 768px) {
    .waterfall-container {
        column-count: 1;
        padding: 0 15px;
    }
    
    /* 椰子树响应式设计 */
    .coconut-tree-container {
        height: 400px;
        max-width: 100%;
    }
    
    .coconut-tree-trunk {
        width: 20px;
        height: 200px;
    }
    
    .coconut-tree-leaves {
        width: 300px;
        height: 250px;
        bottom: 180px;
    }
    
    /* 调整树叶大小 */
    .leaf:nth-child(1) {
        width: 100px;
        height: 130px;
    }
    
    .leaf:nth-child(2),
    .leaf:nth-child(3) {
        width: 90px;
        height: 120px;
    }
    
    .leaf:nth-child(4),
    .leaf:nth-child(5) {
        width: 80px;
        height: 110px;
    }
    
    /* 调整椰子大小 */
    .tree-coconut {
        width: 30px;
        height: 40px;
    }
    
    /* 调整椰子弹窗 */
    .coconut-modal-content {
        width: 95%;
        margin: 20% auto;
    }
    
    .coconut-modal-body {
        padding: 20px;
    }
    
    .avatar-container {
        gap: 15px;
        padding: 15px;
    }
    
    .avatar {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
    
    .coconut-content {
        padding: 20px;
    }
    
    #coconutDeclarationContent {
        font-size: 1.1rem;
    }
}