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

/* 去除所有列表的点 */
ul,
ol {
    list-style: none;
    padding-left: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
        'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #fce4ec 0%, #f8bbd0 50%, #f48fb1 100%);
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 主内容区域 */
.main-wrapper {
    flex: 1;
    width: 100%;
}

/* 容器样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏样式 */
nav {
    background: linear-gradient(135deg, #e91e63 0%, #c2185b 100%);
    box-shadow: 0 2px 10px rgba(233, 30, 99, 0.3);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav .logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #fce4ec;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.btn-primary {
    background-color: #e91e63;
    color: white;
}

.btn-primary:hover {
    background-color: #c2185b;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #545b62;
}

.btn-success {
    background-color: #28a745;
    color: white;
}

.btn-danger {
    background-color: #dc3545;
    color: white;
}

/* 卡片样式 */
.card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.15);
    padding: 20px;
    margin-bottom: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
    backdrop-filter: blur(10px);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(233, 30, 99, 0.25);
}

/* 表单样式 */
.form-group {
    margin-bottom: 20px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: #e91e63;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
}

/* 消息提示样式 */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    font-weight: 500;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

/* 告白卡片样式 */
.confession-card {
    background: linear-gradient(135deg, #fff, #f8f0f4);
    border-left: 4px solid #e91e63;
}

/* 告白结果状态样式 */
.confession-result {
    padding: 20px;
    border-radius: 15px;
    margin: 20px 0;
    text-align: center;
    animation: fadeIn 0.5s ease-out;
}

/* 成功状态 */
.confession-result.success {
    background: linear-gradient(135deg, #ffebee, #f8bbd0);
    border: 2px solid #e91e63;
    color: #c2185b;
}

/* 失败状态 */
.confession-result.failed {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    border: 2px solid #2196f3;
    color: #1565c0;
}

/* 未查看状态 */
.confession-result.unviewed {
    background: linear-gradient(135deg, #fff8e1, #fff176);
    border: 2px solid #ffeb3b;
    color: #f57f17;
}

/* 状态标签 */
.badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    margin: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.badge-pending {
    background-color: #ffeb3b;
    color: #f57f17;
    border: 1px solid #fbc02d;
}

.badge-accepted {
    background-color: #e91e63;
    color: white;
    border: 1px solid #c2185b;
}

.badge-rejected {
    background-color: #2196f3;
    color: white;
    border: 1px solid #1976d2;
}

.badge-expired {
    background-color: #9e9e9e;
    color: white;
    border: 1px solid #757575;
}

/* 牵手成功动画 */
.animation-container {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 20px;
}

.hand {
    position: absolute;
    font-size: 80px;
    opacity: 0;
    animation-duration: 2s;
    animation-fill-mode: forwards;
}

.hand.left {
    left: 0;
    animation-name: leftHandMove;
}

.hand.right {
    right: 0;
    animation-name: rightHandMove;
}

@keyframes leftHandMove {
    0% {
        left: -100px;
        opacity: 0;
        transform: rotate(-20deg);
    }
    50% {
        left: 0;
        opacity: 1;
        transform: rotate(0deg);
    }
    100% {
        left: 60px;
        opacity: 1;
        transform: rotate(10deg);
    }
}

@keyframes rightHandMove {
    0% {
        right: -100px;
        opacity: 0;
        transform: rotate(20deg);
    }
    50% {
        right: 0;
        opacity: 1;
        transform: rotate(0deg);
    }
    100% {
        right: 60px;
        opacity: 1;
        transform: rotate(-10deg);
    }
}

/* 爱心动画 */
.hearts {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0;
    opacity: 0;
    animation: heartsAppear 3s ease-in-out forwards;
    animation-delay: 1.5s;
}

.heart {
    position: absolute;
    font-size: 30px;
    color: #e91e63;
    opacity: 0;
    animation: heartFloat 2s ease-out forwards;
}

.heart:nth-child(1) { animation-delay: 1.8s; }
.heart:nth-child(2) { animation-delay: 2s; }
.heart:nth-child(3) { animation-delay: 2.2s; }
.heart:nth-child(4) { animation-delay: 2.4s; }
.heart:nth-child(5) { animation-delay: 2.6s; }

@keyframes heartsAppear {
    0% { opacity: 0; }
    50% { opacity: 1; }
    100% { opacity: 0; }
}

@keyframes heartFloat {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.2);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -100px) scale(0.8);
    }
}

/* 牵手成功文字动画 */
.success-text {
    font-size: 24px;
    font-weight: bold;
    margin: 20px 0;
    opacity: 0;
    animation: successTextAppear 1s ease-out forwards;
    animation-delay: 2.5s;
}

@keyframes successTextAppear {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 鼓励性文字样式 */
.encouragement-text {
    font-size: 18px;
    line-height: 1.6;
    margin: 20px 0;
    color: #333;
}

/* 未查看提示样式 */
.unviewed-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 16px;
    margin: 15px 0;
}

.unviewed-hint i {
    animation: pulse 2s infinite;
}

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

/* 状态图标样式 */
.status-icon {
    font-size: 48px;
    margin: 20px 0;
    animation: bounce 1s ease-in-out;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-30px); }
    60% { transform: translateY(-15px); }
}

/* 超链接样式优化 */
a {
    color: #e91e63;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
    padding-bottom: 2px;
}

a:hover {
    color: #c2185b;
    text-decoration: none;
    transform: translateX(3px);
}

a::after {
    content: none;
}

a:hover::after {
    width: 0;
}

/* 导航链接样式 */
nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    padding: 8px 15px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

nav a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

nav a::after {
    content: none;
}

nav a:hover::after {
    width: 0;
}

/* 按钮链接样式 */
.btn {
    text-decoration: none;
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.btn:hover {
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn::after {
    background-color: transparent;
}

/* 卡片链接样式 */
.card a {
    color: #e91e63;
    font-weight: 600;
}

.card a:hover {
    color: #c2185b;
    transform: translateX(5px);
}

/* 页脚链接样式 */
footer a {
    color: #ffcdd2;
    text-decoration: none;
    transition: all 0.3s ease;
}

footer a:hover {
    color: white;
    transform: translateX(3px);
}

footer a::after {
    content: none;
}

footer a:hover::after {
    width: 0;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.pagination a {
    padding: 10px 15px;
    margin: 0 5px;
    border: 1px solid #ddd;
    color: #555;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s;
}

.pagination a.active {
    background-color: #e91e63;
    color: white;
    border-color: #e91e63;
}

.pagination a:hover:not(.active) {
    background-color: #f8f9fa;
}

/* 旧版页脚样式 - 已弃用，使用.site-footer代替 */
/* footer {
    background-color: #333;
    color: white;
    padding: 30px 0;
    margin-top: 50px;
}

footer .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

footer .footer-col {
    flex: 1;
    min-width: 200px;
    margin-bottom: 20px;
}

footer h4 {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

footer p {
    color: #ddd;
    font-size: 0.9rem;
} */

/* 响应式设计 */
@media (max-width: 768px) {
    nav .container {
        flex-direction: column;
    }
    
    nav ul {
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav ul li {
        margin: 5px 10px;
    }
    
    .card {
        padding: 15px;
    }
    
    .btn {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
}

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

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* 心跳动画 */
@keyframes heartbeat {
    0% {
        transform: scale(1);
    }
    25% {
        transform: scale(1.1);
    }
    50% {
        transform: scale(1);
    }
    75% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.heartbeat {
    animation: heartbeat 1.5s infinite;
    color: #e91e63;
}

/* 新版站点页脚样式 */
.site-footer {
    margin-top: auto;
    padding: 20px;
    background: transparent;
}

.site-footer .container {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 20px 25px;
    box-shadow: 0 8px 25px rgba(233, 30, 99, 0.2);
    backdrop-filter: blur(10px);
    position: relative;
}

/* 联系我区域 - 左上角（仅图标） */
.footer-contact-me {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 15px;
}

.footer-contact-label {
    display: none;
}

.footer-social-icons {
    display: flex;
    gap: 20px;
    align-items: center;
}

.social-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(233, 30, 99, 0.12);
    color: #e91e63;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    background: rgba(33, 150, 243, 0.18);
    color: #2196f3;
    transform: translateY(-5px) scale(1.15);
    box-shadow: 0 6px 16px rgba(33, 150, 243, 0.35);
}

.social-icon i {
    color: inherit;
    transition: transform 0.3s ease;
}

.social-icon:hover i {
    transform: rotate(15deg);
}

/* 分割线 */
.footer-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(233, 30, 99, 0.3), transparent);
    margin: 12px 0;
}

/* 版权信息 */
.footer-copyright {
    text-align: center;
}

.footer-copyright p {
    color: #c2185b;
    font-size: 13px;
    margin: 5px 0;
    font-weight: 500;
}

.footer-copyright p:first-child {
    font-weight: 600;
}

.footer-copyright p:last-child {
    font-size: 12px;
    opacity: 0.85;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .site-footer .container {
        padding: 18px 20px;
    }
    
    .footer-social-icons {
        gap: 16px;
    }
    
    .social-icon {
        width: 44px;
        height: 44px;
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .footer-social-icons {
        gap: 14px;
    }
    
    .social-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .footer-copyright p {
        font-size: 12px;
    }
    
    .footer-copyright p:last-child {
        font-size: 11px;
    }
}
