/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.7;
    background-image: url('data:image/svg+xml,%3Csvg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath d="M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z" fill="%23ffcccb" fill-opacity="0.2" fill-rule="evenodd"/%3E%3C/svg%3E');
    animation: backgroundScroll 60s linear infinite;
    position: relative;
    overflow-x: hidden;
    min-height: 100vh;
    background-attachment: fixed;
}

/* 页面加载动画 */
@keyframes pageLoading {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
    animation: pageLoading 0.8s ease-out forwards;
}

@keyframes backgroundScroll {
    from { background-position: 0 0; }
    to { background-position: 100% 100%; }
}

/* 全局光影效果 */
.light-effect {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: radial-gradient(ellipse at 80% 20%, rgba(255, 204, 203, 0.25) 0%, rgba(255, 255, 255, 0) 60%), 
                radial-gradient(ellipse at 20% 80%, rgba(231, 76, 60, 0.2) 0%, rgba(255, 255, 255, 0) 60%),
                radial-gradient(ellipse at 50% 50%, rgba(255, 217, 176, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
    pointer-events: none;
    z-index: 0;
    animation: lightShift 30s ease-in-out infinite alternate;
}

@keyframes lightShift {
    0% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
    100% { opacity: 0.7; transform: scale(1); }
}

/* 背景效果 */
.background-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.bubble {
    position: absolute;
    border-radius: 50%;
    opacity: 0.2;
    background: radial-gradient(circle at 30% 30%, #ffffff, #ffcccb);
    filter: blur(5px);
    animation: floatBubble linear infinite;
    box-shadow: 0 0 20px rgba(231, 76, 60, 0.3), inset 0 0 15px rgba(255, 255, 255, 0.6);
}

.bubble-1 {
    width: 100px;
    height: 100px;
    left: 10%;
    top: 20%;
    animation-duration: 25s;
}

.bubble-2 {
    width: 150px;
    height: 150px;
    right: 15%;
    top: 30%;
    animation-duration: 30s;
}

.bubble-3 {
    width: 80px;
    height: 80px;
    left: 20%;
    bottom: 20%;
    animation-duration: 20s;
}

.bubble-4 {
    width: 120px;
    height: 120px;
    right: 20%;
    bottom: 35%;
    animation-duration: 35s;
}

.bubble-5 {
    width: 60px;
    height: 60px;
    left: 50%;
    top: 10%;
    animation-duration: 15s;
}

.bubble-6 {
    width: 180px;
    height: 180px;
    right: 5%;
    bottom: 10%;
    animation-duration: 40s;
    opacity: 0.15;
}

.bubble-7 {
    width: 50px;
    height: 50px;
    left: 35%;
    bottom: 40%;
    animation-duration: 18s;
    opacity: 0.1;
}

@keyframes floatBubble {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg);
    }
    25% {
        transform: translateY(-20px) translateX(20px) rotate(5deg);
    }
    50% {
        transform: translateY(0) translateX(40px) rotate(0deg);
    }
    75% {
        transform: translateY(20px) translateX(20px) rotate(-5deg);
    }
    100% {
        transform: translateY(0) translateX(0) rotate(0deg);
    }
}

/* 头部样式 */
header {
    text-align: center;
    margin-bottom: 30px;
    background-color: rgba(255, 204, 203, 0.9);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15), inset 0 0 20px rgba(255, 255, 255, 0.5);
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transform: translateZ(0);
}

header:before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 50%, rgba(255,255,255,0.1) 100%);
    z-index: -1;
    transform: scale(1.05);
    filter: blur(5px);
    animation: gradientShift 10s ease infinite;
}

@keyframes gradientShift {
    0% {background-position: 0% 50%;}
    50% {background-position: 100% 50%;}
    100% {background-position: 0% 50%;}
}

header:hover {
    transform: translateY(-8px) translateZ(30px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2), inset 0 0 25px rgba(255, 255, 255, 0.6);
}

h1 {
    font-size: 3.2rem;
    color: #e74c3c;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.25), 0 0 15px rgba(231, 76, 60, 0.3);
    position: relative;
    display: inline-block;
    letter-spacing: 3px;
    font-weight: 800;
    font-family: 'Ma Shan Zheng', cursive;
}

h1 .fas {
    animation: bounce 2s infinite;
    filter: drop-shadow(2px 2px 3px rgba(0, 0, 0, 0.2));
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-12px) scale(1.1);
    }
}

.subtitle {
    margin-top: 15px;
    color: #555;
    font-size: 1.4rem;
    opacity: 0.9;
    font-style: italic;
    text-shadow: 1px 1px 3px rgba(255, 255, 255, 0.6);
    font-family: 'Ma Shan Zheng', cursive;
    position: relative;
}

.subtitle:after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(231, 76, 60, 0.5);
    border-radius: 3px;
}

h1:after {
    content: '';
    position: absolute;
    width: 100%;
    height: 5px;
    bottom: -10px;
    left: 0;
    background: linear-gradient(to right, transparent, #e74c3c, transparent);
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

header:hover h1:after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* 主要内容区 */
.content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
    margin-bottom: 40px;
    perspective: 1000px;
}

/* 图片容器 */
.image-container {
    flex: 0 0 320px;
    text-align: center;
    position: relative;
    perspective: 1200px;
    z-index: 2;
}

.image-frame {
    position: relative;
    padding: 18px;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25), 0 0 20px rgba(231, 76, 60, 0.2);
    transform-style: preserve-3d;
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.image-frame:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 50%);
    z-index: 1;
    pointer-events: none;
}

.image-container:hover .image-frame {
    transform: translateY(-15px) rotateX(5deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 20px rgba(231, 76, 60, 0.2);
}

.image-caption {
    margin-top: 15px;
    font-size: 1rem;
    color: #e74c3c;
    animation: pulse 2s infinite;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
}

@keyframes pulse {
    0% {
        opacity: 0.7;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
    100% {
        opacity: 0.7;
        transform: scale(1);
    }
}

#mainImage {
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
    filter: saturate(1.2) contrast(1.1);
    cursor: pointer;
    position: relative;
    z-index: 2;
}

#mainImage:hover {
    transform: translateY(-10px) rotateY(5deg) scale(1.05);
    box-shadow: 15px 15px 30px rgba(0, 0, 0, 0.3), 0 0 15px rgba(231, 76, 60, 0.4);
    filter: saturate(1.4) contrast(1.15) brightness(1.1);
}

.image-container:after {
    content: '';
    position: absolute;
    width: 90%;
    height: 20px;
    bottom: -20px;
    left: 5%;
    background: radial-gradient(ellipse at center, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0) 70%);
    filter: blur(5px);
    z-index: -1;
    transition: all 0.6s ease;
    transform: translateZ(-10px);
}

.image-container:hover:after {
    width: 95%;
    opacity: 0.8;
    filter: blur(8px);
}

.frame-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px dashed rgba(231, 76, 60, 0.3);
    border-radius: 15px;
    margin: 8px;
    pointer-events: none;
    z-index: 1;
}

/* 坏事列表样式 */
.deeds-container {
    flex: 1 1 500px;
    background-color: rgba(255, 255, 255, 0.92);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15), 0 0 15px rgba(231, 76, 60, 0.1);
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transform: translateZ(0);
}

.deeds-container:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2), 0 0 20px rgba(231, 76, 60, 0.15);
}

.deeds-container:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(to right, #e74c3c, #f9a825, #27ae60, #3498db);
    opacity: 0.9;
    border-radius: 3px;
    animation: gradientAnimate 5s linear infinite;
    background-size: 300% 300%;
}

@keyframes gradientAnimate {
    0% {background-position: 0% 50%;}
    50% {background-position: 100% 50%;}
    100% {background-position: 0% 50%;}
}

.deeds-container h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.7rem;
    color: #333;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 12px;
}

.deeds-container h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, rgba(231, 76, 60, 0.8), transparent);
}

.deeds-container h2 .fas {
    color: #e74c3c;
    filter: drop-shadow(2px 2px 2px rgba(0, 0, 0, 0.1));
    font-size: 1.4em;
    transform-origin: center;
    animation: wiggle 5s ease-in-out infinite;
}

@keyframes wiggle {
    0%, 100% { transform: rotate(0deg); }
    92% { transform: rotate(0deg); }
    94% { transform: rotate(10deg); }
    96% { transform: rotate(-10deg); }
    98% { transform: rotate(5deg); }
}

.deeds-list {
    margin-top: 15px;
    max-height: 450px;
    overflow-y: auto;
    padding-right: 15px;
    scrollbar-width: thin;
    scrollbar-color: #ffcccb #f5f5f5;
    position: relative;
}

.deeds-list::-webkit-scrollbar {
    width: 10px;
}

.deeds-list::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 10px;
}

.deeds-list::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #ffcccb, #e74c3c);
    border-radius: 10px;
    border: 2px solid #f5f5f5;
}

.deeds-list::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #e74c3c, #c0392b);
}

@keyframes bubbleAppear {
    0% {
        opacity: 0;
        transform: scale(0.5) translateX(-50px);
    }
    70% {
        opacity: 1;
        transform: scale(1.05) translateX(0);
    }
    100% {
        transform: scale(1) translateX(0);
    }
}

@keyframes bubblePulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.03);
    }
    100% {
        transform: scale(1);
    }
}

.deed-bubble {
    animation: bubbleAppear 0.6s forwards;
    border-radius: 18px;
    padding: 20px;
    margin-bottom: 20px;
    position: relative;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-origin: left center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1), 0 0 8px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.deed-bubble:hover {
    animation: bubblePulse 2s infinite;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2), 0 0 15px rgba(231, 76, 60, 0.15);
    transform: translateY(-5px) translateZ(10px);
}

.deed-bubble:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 50%);
    pointer-events: none;
    z-index: 1;
}

.deed-bubble:nth-child(3n+1) {
    background-color: #e8f4f8;
}

.deed-bubble:nth-child(3n+2) {
    background-color: #f8f4e8;
}

.deed-bubble:nth-child(3n+3) {
    background-color: #f4e8f8;
}

.deed-bubble:before {
    content: '';
    position: absolute;
    left: -12px;
    top: 20px;
    width: 0;
    height: 0;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    filter: drop-shadow(-3px 2px 2px rgba(0, 0, 0, 0.05));
}

.deed-bubble:nth-child(3n+1):before {
    border-right: 12px solid #e8f4f8;
}

.deed-bubble:nth-child(3n+2):before {
    border-right: 12px solid #f8f4e8;
}

.deed-bubble:nth-child(3n+3):before {
    border-right: 12px solid #f4e8f8;
}

.deed-content {
    font-size: 1.15rem;
    line-height: 1.6;
    position: relative;
    z-index: 2;
}

.deed-time {
    font-size: 0.85rem;
    color: #888;
    margin-top: 8px;
    text-align: right;
    font-style: italic;
    position: relative;
    z-index: 2;
}

/* 添加表单样式 */
.add-deed-form {
    background-color: rgba(255, 255, 255, 0.92);
    border-radius: 15px;
    padding: 25px;
    margin-top: 30px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15), 0 0 15px rgba(231, 76, 60, 0.1);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transform: translateZ(0);
}

.add-deed-form:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 50%);
    pointer-events: none;
    z-index: 0;
}

.add-deed-form:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2), 0 0 20px rgba(231, 76, 60, 0.15);
}

.add-deed-form h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.add-deed-form h3 .fas {
    color: #e74c3c;
    filter: drop-shadow(1px 1px 1px rgba(0, 0, 0, 0.2));
    animation: rotatePencil 10s ease-in-out infinite;
    transform-origin: center;
}

@keyframes rotatePencil {
    0%, 90%, 100% { transform: rotate(0deg); }
    92% { transform: rotate(-10deg); }
    94% { transform: rotate(5deg); }
    96% { transform: rotate(-5deg); }
    98% { transform: rotate(3deg); }
}

.form-group {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    position: relative;
    z-index: 1;
}

input[type="text"] {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid #ddd;
    border-radius: 12px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.05), 0 0 0 transparent;
    background-color: rgba(255, 255, 255, 0.9);
}

input[type="text"]:focus {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.2), inset 0 2px 5px rgba(0, 0, 0, 0);
    outline: none;
    background-color: white;
}

button {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: bold;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3), 0 0 0 transparent;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1;
}

button:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 100%);
    z-index: -1;
}

button:hover {
    background-color: #c0392b;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 25px rgba(192, 57, 43, 0.5), 0 0 15px rgba(231, 76, 60, 0.3);
}

button:active {
    transform: translateY(2px) scale(0.98);
    box-shadow: 0 5px 10px rgba(192, 57, 43, 0.4);
}

button:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    100% {
        transform: scale(20, 20);
        opacity: 0;
    }
}

button:focus:not(:active)::after {
    animation: ripple 1s ease-out;
}

.form-message {
    margin-top: 15px;
    min-height: 20px;
    font-weight: bold;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.success {
    color: #27ae60;
    animation: successPulse 1.5s ease-in-out;
}

@keyframes successPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.error {
    color: #e74c3c;
    animation: errorShake 0.5s ease-in-out;
}

@keyframes errorShake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    50% { transform: translateX(10px); }
    75% { transform: translateX(-5px); }
    100% { transform: translateX(0); }
}

/* 表情反应盒子 */
.reaction-box {
    background-color: rgba(255, 255, 255, 0.92);
    border-radius: 15px;
    padding: 25px;
    margin-top: 30px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15), 0 0 15px rgba(231, 76, 60, 0.1);
    text-align: center;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transform: translateZ(0);
}

.reaction-box:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 50%);
    pointer-events: none;
    z-index: 0;
}

.reaction-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2), 0 0 20px rgba(231, 76, 60, 0.15);
}

.reaction-title {
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
    font-size: 1.2rem;
    position: relative;
    z-index: 1;
}

.reactions {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.reaction {
    font-size: 2.2rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: scale(1);
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.15));
    position: relative;
}

.reaction:hover {
    transform: scale(1.7) rotate(15deg);
    filter: drop-shadow(3px 3px 8px rgba(0, 0, 0, 0.25));
    z-index: 10;
}

.reaction:active {
    transform: scale(0.9) rotate(-10deg);
}

.current-reaction {
    font-size: 4.5rem;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(5px 5px 10px rgba(0, 0, 0, 0.3));
    position: relative;
    z-index: 1;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(5deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

/* 底部样式 */
footer {
    text-align: center;
    margin-top: 40px;
    padding: 25px;
    color: #777;
    border-top: 1px solid rgba(238, 238, 238, 0.5);
    position: relative;
    background-color: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

footer p {
    position: relative;
    display: inline-block;
    font-size: 1.1rem;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
}

.heart-icon {
    color: #e74c3c;
    animation: heartBeat 1.5s ease-in-out infinite;
    display: inline-block;
    filter: drop-shadow(1px 1px 1px rgba(0, 0, 0, 0.2));
}

@keyframes heartBeat {
    0% { transform: scale(1); }
    14% { transform: scale(1.3); }
    28% { transform: scale(1); }
    42% { transform: scale(1.3); }
    70% { transform: scale(1); }
}

footer p:after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: linear-gradient(to right, transparent, #888, transparent);
    transform: scaleX(0);
    transition: transform 0.5s ease;
}

footer:hover p:after {
    transform: scaleX(1);
}

/* 加载中动画 */
.loading {
    text-align: center;
    padding: 30px;
    color: #888;
    font-size: 1.2rem;
    position: relative;
}

.loading:after {
    content: '';
    animation: loadingDots 1.5s infinite;
}

@keyframes loadingDots {
    0% { content: '.'; }
    33% { content: '..'; }
    66% { content: '...'; }
    100% { content: '.'; }
}

/* 页面全局动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

main > * {
    animation: fadeInUp 0.8s backwards;
}

main > *:nth-child(1) {
    animation-delay: 0.1s;
}

main > *:nth-child(2) {
    animation-delay: 0.3s;
}

main > *:nth-child(3) {
    animation-delay: 0.5s;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .content {
        flex-direction: column;
    }
    
    .image-container, .deeds-container {
        flex: 1 1 100%;
    }
    
    h1 {
        font-size: 2.2rem;
    }
    
    .reaction {
        font-size: 1.7rem;
    }
    
    .current-reaction {
        font-size: 3rem;
    }
    
    .subtitle {
        font-size: 1.1rem;
    }
    
    button {
        padding: 12px 20px;
    }
}

/* 图片和链接样式 */
.deed-image {
    max-width: 100%;
    max-height: 200px;
    border-radius: 8px;
    cursor: zoom-in;
    margin: 8px 0;
    transition: transform 0.2s ease;
}

.deed-image:hover {
    transform: scale(1.03);
}

.deed-link {
    color: #3182ce;
    word-break: break-all;
    text-decoration: underline;
}

.deed-link:hover {
    color: #2c5282;
}

/* 图片模态窗口 */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    cursor: pointer;
}

.image-modal img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    cursor: default;
    border-radius: 4px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 25px;
    color: white;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
} 