/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

.container {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* 背景动画 */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.floating-card {
    position: absolute;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: float 6s ease-in-out infinite;
}

.card-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.card-2 {
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.card-3 {
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

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

/* 樱花飘落 */
.sakura {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #ffb6c1;
    border-radius: 50%;
    opacity: 0.7;
    animation: fall 8s linear infinite;
}

.sakura-1 {
    left: 20%;
    animation-delay: 0s;
}

.sakura-2 {
    left: 50%;
    animation-delay: 2s;
}

.sakura-3 {
    right: 30%;
    animation-delay: 4s;
}

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

/* 主内容区域 */
.main-content {
    width: 100%;
    max-width: 600px;
    z-index: 10;
}

.anime-frame {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 30px;
    padding: 40px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

/* 框架装饰 */
.frame-corner {
    position: absolute;
    width: 30px;
    height: 30px;
    border: 3px solid #667eea;
    opacity: 0.6;
}

.top-left {
    top: 10px;
    left: 10px;
    border-right: none;
    border-bottom: none;
    border-top-left-radius: 15px;
}

.top-right {
    top: 10px;
    right: 10px;
    border-left: none;
    border-bottom: none;
    border-top-right-radius: 15px;
}

.bottom-left {
    bottom: 10px;
    left: 10px;
    border-right: none;
    border-top: none;
    border-bottom-left-radius: 15px;
}

.bottom-right {
    bottom: 10px;
    right: 10px;
    border-left: none;
    border-top: none;
    border-bottom-right-radius: 15px;
}

/* 头像区域 */
.avatar-section {
    position: relative;
    margin-bottom: 30px;
    text-align: center;
}

.avatar-glow {
    display: inline-block;
    position: relative;
}

.avatar {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 0 30px rgba(102, 126, 234, 0.5);
    animation: pulse 2s ease-in-out infinite;
}

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

.avatar-inner {
    width: 85px;
    height: 85px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-text {
    font-size: 36px;
    font-weight: bold;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.status-indicator {
    position: absolute;
    bottom: 5px;
    right: -10px;
    width: 20px;
    height: 20px;
    background: #ff6b6b;
    border-radius: 50%;
    border: 3px solid white;
    animation: blink 1.5s ease-in-out infinite;
}

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

/* 标题 */
.title {
    text-align: center;
    margin-bottom: 40px;
}

.title-text {
    display: block;
    font-size: 42px;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.title-sub {
    display: block;
    font-size: 16px;
    color: #666;
    font-weight: 300;
    opacity: 0.8;
}

/* 内容卡片 */
.content-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(248, 250, 252, 0.9));
    border-radius: 20px;
    padding: 30px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.card-header {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.header-decoration {
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    margin: 0 auto 15px;
    border-radius: 2px;
}

.header-text {
    font-size: 18px;
    color: #333;
    font-weight: 500;
    opacity: 0.8;
}

/* 消息内容 */
.message-content {
    text-align: center;
}

/* 诗意开场 */
.intro-section {
    margin-bottom: 40px;
}

.poetic-text {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 15px;
    color: #667eea;
}

.story-text {
    font-size: 16px;
    color: #555;
    line-height: 1.8;
    font-style: italic;
}

/* 故事卡片 */
.story-card {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-radius: 15px;
    padding: 25px;
    margin: 25px 0;
    border-left: 4px solid #667eea;
    transition: transform 0.3s ease;
}

.story-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
}

.card-icon {
    font-size: 32px;
    margin-bottom: 15px;
    animation: gentle-float 3s ease-in-out infinite;
}

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

.card-title {
    font-size: 18px;
    font-weight: 600;
    color: #667eea;
    margin-bottom: 12px;
}

.card-content {
    font-size: 15px;
    color: #555;
    line-height: 1.7;
}

/* 承诺区域 */
.promise-section {
    margin: 40px 0;
}

.promise-item {
    display: flex;
    align-items: center;
    margin: 20px 0;
    padding: 15px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.promise-item:hover {
    background: rgba(102, 126, 234, 0.1);
    transform: translateX(5px);
}

.promise-icon {
    font-size: 28px;
    margin-right: 20px;
    flex-shrink: 0;
}

.promise-text strong {
    color: #667eea;
    font-size: 16px;
    display: block;
    margin-bottom: 4px;
}

.promise-detail {
    color: #666;
    font-size: 14px;
    font-style: italic;
}

/* 告别区域 */
.farewell-section {
    margin-top: 50px;
    padding: 30px;
    background: linear-gradient(135deg, rgba(255, 182, 193, 0.2), rgba(255, 192, 203, 0.2));
    border-radius: 20px;
    position: relative;
}

.farewell-section::before {
    content: '✨';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 30px;
    background: white;
    padding: 0 10px;
}

.farewell-main {
    font-size: 20px;
    font-weight: 600;
    color: #764ba2;
    margin-bottom: 15px;
}

.farewell-sub {
    font-size: 16px;
    color: #555;
    line-height: 1.8;
    font-style: italic;
}

/* 保留原始样式兼容性 */
.message-line {
    margin-bottom: 15px;
    font-size: 16px;
    line-height: 1.6;
}

.highlight {
    color: #667eea;
    font-weight: 500;
    position: relative;
}

/* 签名区域 */
.signature-section {
    margin-top: 50px;
    text-align: center;
    position: relative;
}

.signature-line {
    width: 150px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #667eea, #764ba2, transparent);
    margin: 0 auto 30px;
    border-radius: 1px;
}

.signature-text {
    font-family: 'Dancing Script', cursive;
    color: #333;
    line-height: 2;
}

.signature-poem {
    font-size: 18px;
    color: #764ba2;
    font-style: italic;
    margin-bottom: 20px;
    opacity: 0.8;
}

.signature-main {
    font-size: 22px;
    color: #667eea;
    font-weight: bold;
    margin: 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.signature-heart {
    font-size: 18px;
    animation: heartbeat 2s ease-in-out infinite;
}

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

.signature-date {
    font-size: 16px;
    color: #666;
    margin: 15px 0;
}

.signature-name {
    font-size: 20px;
    color: #764ba2;
    font-weight: bold;
    display: block;
    margin: 10px 0;
}

.signature-wish {
    font-size: 15px;
    color: #888;
    font-style: italic;
    line-height: 1.6;
    margin-top: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    border-left: 3px solid #ffb6c1;
}

/* 装饰元素 */
.decoration-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.deco-star, .deco-heart {
    position: absolute;
    color: #667eea;
    opacity: 0.3;
    animation: float-gentle 4s ease-in-out infinite;
}

.deco-star {
    font-size: 20px;
}

.deco-heart {
    font-size: 16px;
    color: #ff6b6b;
}

.star-1 { top: 10%; left: 10%; animation-delay: 0s; }
.star-2 { top: 20%; right: 15%; animation-delay: 1s; }
.star-3 { bottom: 30%; left: 20%; animation-delay: 2s; }
.heart-1 { top: 40%; right: 20%; animation-delay: 1.5s; }
.heart-2 { bottom: 20%; right: 10%; animation-delay: 2.5s; }

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

/* 底部 */
.footer {
    margin-top: 50px;
    text-align: center;
    opacity: 0.9;
}

.footer-poem {
    margin-bottom: 20px;
}

.footer-line {
    display: block;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 10px;
    line-height: 1.8;
    font-style: italic;
}

.footer-sub {
    display: block;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    font-style: italic;
    line-height: 1.6;
}

.footer-contact {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-contact small {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    line-height: 1.6;
}

.icp-info {
    display: inline-block;
    margin-top: 8px;
    font-size: 12px;
}

.icp-info a {
    transition: color 0.3s ease;
}

.icp-info a:hover {
    color: rgba(255, 255, 255, 0.9) !important;
    text-decoration: underline !important;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .anime-frame {
        padding: 30px 20px;
        margin: 10px;
    }
    
    .title-text {
        font-size: 32px;
    }
    
    .avatar {
        width: 80px;
        height: 80px;
    }
    
    .avatar-text {
        font-size: 28px;
    }
    
    .message-line {
        font-size: 14px;
    }
    
    .signature-main {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }
    
    .anime-frame {
        padding: 20px 15px;
    }
    
    .title-text {
        font-size: 28px;
    }
    
    .content-card {
        padding: 20px;
    }
}