* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 全局链接样式 */
a {
    color: gray;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #ff6b6b;
    text-decoration: underline;
}

body {
    font-family: 'Microsoft YaHei', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.7;
    background: linear-gradient(135deg, #ffccd5 0%, #ffb6c1 30%, #ffc0cb 60%, #ffe4e1 100%);
    color: #333;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* 添加全局背景装饰 */
body::before,
body::after {
    content: '';
    position: fixed;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 107, 107, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 30s ease-in-out infinite;
    z-index: -1;
}

body::before {
    top: -200px;
    left: -200px;
    animation-delay: 0s;
}

body::after {
    bottom: -200px;
    right: -200px;
    animation-delay: 15s;
}

main {
    flex-grow: 1;
}

/* 重置所有导航相关样式，避免冲突 */
header {
    background-color: #ff6b6b;
    padding: 0;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    position: relative;
    width: 100%;
    z-index: 100;
}

nav {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
    width: 100%;
    box-sizing: border-box;
    position: relative;
}

/* Logo样式 */
nav .logo a {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
}

/* 汉堡菜单按钮样式 - 默认隐藏 */
.hamburger {
    display: none !important;
    cursor: pointer;
    color: white;
    font-size: 1.5rem;
    padding: 0.5rem;
    z-index: 101;
    position: relative;
}

/* 电脑端导航菜单 - 默认显示 */
nav ul.nav-links {
    display: flex !important;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-direction: row;
    gap: 0.25rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    white-space: nowrap;
}

/* 导航链接样式 */
nav ul.nav-links li {
    margin: 0;
    flex-shrink: 0;
}

nav ul.nav-links li a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    margin: 0 0.125rem;
    border-radius: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    font-size: 0.9rem;
    text-align: center;
    min-width: 60px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* 隐藏滚动条但保留功能 */
nav ul.nav-links::-webkit-scrollbar {
    display: none;
}

nav ul.nav-links {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

nav ul.nav-links li a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

nav ul.nav-links li a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
    z-index: -1;
}

nav ul.nav-links li a:hover::before {
    left: 100%;
}

.hero {
    text-align: center;
    padding: 6rem 2rem;
    background: linear-gradient(135deg, rgba(255, 153, 163, 0.05) 0%, rgba(255, 205, 210, 0.05) 50%, rgba(255, 182, 193, 0.05) 100%);
    margin: 2rem auto;
    max-width: 900px;
    border-radius: 20px;
    box-shadow: none;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid transparent;
}

/* 添加装饰元素 */
.hero::before,
.hero::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 107, 107, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 20s ease-in-out infinite;
}

.hero::before {
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.hero::after {
    bottom: -100px;
    right: -100px;
    animation-delay: 10s;
}

/* 爱心装饰 */
.hero .love-heart {
    position: absolute;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, rgba(255, 107, 107, 0.8) 0%, rgba(255, 182, 193, 0.6) 70%);
    clip-path: path('M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z');
    opacity: 0.6;
    animation: floatHeart 15s ease-in-out infinite;
}

.hero .love-heart:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
    transform: scale(0.8);
}

.hero .love-heart:nth-child(2) {
    top: 60%;
    right: 15%;
    animation-delay: 5s;
    transform: scale(1.2);
}

.hero .love-heart:nth-child(3) {
    top: 40%;
    left: 85%;
    animation-delay: 10s;
    transform: scale(0.6);
}

/* 漂浮动画 */
@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(20px, -20px) rotate(90deg);
    }
    50% {
        transform: translate(0, -40px) rotate(180deg);
    }
    75% {
        transform: translate(-20px, -20px) rotate(270deg);
    }
}

@keyframes floatHeart {
    0%, 100% {
        transform: translateY(0) rotate(0deg) scale(1);
        opacity: 0.6;
    }
    25% {
        transform: translateY(-20px) rotate(45deg) scale(1.1);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-40px) rotate(90deg) scale(1.2);
        opacity: 1;
    }
    75% {
        transform: translateY(-20px) rotate(135deg) scale(1.1);
        opacity: 0.8;
    }
}

/* 标题样式优化 */
.hero h1 {
    font-size: 3.5rem;
    font-weight: bold;
    color: #ff6b6b;
    margin: 1rem 0;
    text-shadow: 2px 2px 4px rgba(255, 107, 107, 0.2);
    animation: fadeInUp 1s ease-out;
}

.hero p {
    font-size: 1.3rem;
    color: #666;
    margin: 1rem 0 2rem;
    animation: fadeInUp 1s ease-out 0.3s both;
}

/* 按钮样式优化 */
.hero .btn {
    font-size: 1.1rem;
    padding: 1.2rem 3rem;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e8e 100%);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.3);
    animation: fadeInUp 1s ease-out 0.6s both;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.hero .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
    z-index: -1;
}

.hero .btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 35px rgba(255, 107, 107, 0.4);
}

.hero .btn:hover::before {
    left: 100%;
}

/* 随机文字样式优化 */
.hero .random-text {
    font-size: 1.4rem;
    color: #ff8e8e;
    text-align: center;
    margin-bottom: 1rem;
    font-style: italic;
    font-weight: 500;
    opacity: 0.9;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease-out 0.15s both;
    position: relative;
    display: inline-block;
    text-shadow: 1px 1px 2px rgba(255, 107, 107, 0.1);
}

/* 爱情箴言板块样式 */
.love-quote-container {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.05) 0%, rgba(255, 182, 193, 0.05) 100%);
    padding: 2rem 0;
    margin: 3rem auto;
    position: relative;
    overflow: hidden;
}

.love-quote-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
    padding: 1.5rem;
    text-align: center;
    position: relative;
    z-index: 2;
}

.love-quote-content i.fas.fa-heart {
    color: #ff6b6b;
    font-size: 1.5rem;
    animation: pulse 2s infinite;
    opacity: 0.7;
}

.quote-text {
    font-size: 1.3rem;
    color: #ff6b6b;
    font-style: italic;
    line-height: 1.8;
    max-width: 600px;
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(255, 107, 107, 0.1);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .hero {
        padding: 4rem 1.5rem;
        margin: 1rem auto;
        max-width: 95%;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .hero .btn {
        font-size: 1rem;
        padding: 1rem 2.5rem;
    }
    
    .hero::before,
    .hero::after {
        width: 150px;
        height: 150px;
    }
    
    .hero::before {
        top: -75px;
        left: -75px;
    }
    
    .hero::after {
        bottom: -75px;
        right: -75px;
    }
    
    /* 爱情箴言响应式 */
    .love-quote-container {
        padding: 1.5rem 0;
        margin: 2rem auto;
    }
    
    .love-quote-content {
        gap: 1rem;
        padding: 1rem;
        flex-wrap: wrap;
    }
    
    .quote-text {
        font-size: 1.1rem;
        max-width: 100%;
    }
    
    .love-quote-content i.fas.fa-heart {
        font-size: 1.2rem;
    }
}



.btn {
    display: inline-block;
    padding: 0.9rem 2.2rem;
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    margin-top: 1rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn:hover {
    background: linear-gradient(135deg, #ff5252, #ff7070);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.btn:active {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(255, 107, 107, 0.3);
}

footer {
    background-color: #ff6b6b;
    color: white;
    padding: 2rem 0;
    margin-top: 3rem;
    position: relative;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 0 20px;
}

.footer-section h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    color: white;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    opacity: 0.9;
}

.footer-section ul li a:hover {
    opacity: 1;
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

/* 网站运行状态样式 - 确保生效 */
.footer-stats {
    font-size: 13px !important;
    color: #d3c9c9ff !important;
    margin-bottom: 1rem !important;
    display: flex !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 0.5rem !important;
    line-height: 1.2 !important;
}

/* 网站运行状态文字样式 */
.footer-stats span {
    font-size: 13px !important;
    color: #d3c9c9ff !important;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
        padding: 0 1rem;
    }
    
    .footer-section {
        margin-bottom: 0;
    }
    
    .footer-section h3 {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }
    
    .footer-section p {
        font-size: 0.9rem;
        margin-bottom: 0.8rem;
    }
    
    .footer-section ul {
        display: flex;
        flex-direction: column;
        gap: 0.4rem;
    }
    
    .footer-section ul li {
        margin-bottom: 0;
    }
    
    .footer-section ul li a {
        font-size: 0.9rem;
        padding: 0.3rem 0;
    }
    
    /* 移动端网站运行状态样式 */
    .footer-stats {
        font-size: 12px !important;
        gap: 0.3rem !important;
        padding: 0 1rem !important;
        color: #d3c9c9ff !important;
    }
    
    /* 移动端网站运行状态文字样式 */
    .footer-stats span {
        font-size: 12px !important;
        color: #d3c9c9ff !important;
        margin-right: 0.5rem !important;
    }
    
    /* 移动端版权信息样式 */
    .footer-bottom {
        padding-top: 1.5rem;
        margin-top: 1.5rem;
    }
    
    .footer-bottom p {
        font-size: 0.9rem;
        padding: 0 1rem;
    }
    
    /* 移动端隐私政策模态框样式 */
    .modal-content {
        width: 95% !important;
        margin: 10% auto !important;
    }
    
    .modal-body {
        padding: 15px !important;
        max-height: 70vh !important;
    }
    
    .modal-header {
        padding: 15px !important;
    }
    
    .modal-header h2 {
        font-size: 20px !important;
    }
}

/* 评论相关样式 */
.comment-form {
    margin: 1.5rem 0;
    padding: 1.5rem;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 107, 107, 0.1);
}

.comment-form h4 {
    margin-bottom: 1.5rem;
    color: #333;
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.comment-form h4::before {
    content: '';
    width: 4px;
    height: 20px;
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
    border-radius: 2px;
}

.comment-form .form-group {
    margin-bottom: 1.5rem;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 0.9rem 1.1rem;
    border: 2px solid rgba(255, 107, 107, 0.1);
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.05);
}

.comment-form input:focus,
.comment-form textarea:focus {
    border-color: #ff6b6b;
    outline: none;
    box-shadow: 0 0 0 4px rgba(255, 107, 107, 0.15), inset 0 2px 8px rgba(0, 0, 0, 0.05);
    transform: translateY(-1px);
}

.comment-form textarea {
    height: 100px;
    resize: vertical;
}

.comments-list {
    margin-top: 1rem;
}

.comment {
    padding: 1rem;
    border-bottom: 1px solid #eee;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 14px;
}

.comment-author {
    color: #ff6b6b;
    font-weight: bold;
}

.comment-date {
    color: #999;
}

.comment-content {
    font-size: 14px;
    line-height: 1.5;
    color: #666;
}

.no-comments {
    text-align: center;
    color: #999;
    padding: 1rem;
}

.error {
    color: #ff4444;
    text-align: center;
    padding: 1rem;
}

/* 表白墙页面样式 */
.wall-page {
    background-color: #f9f9f9;
    min-height: 100vh;
}

.wall-header {
    text-align: center;
    padding: 3rem 1rem;
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
    color: white;
    margin-bottom: 2rem;
}

.wall-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .wall-header {
        padding: 2rem 1rem;
        margin-bottom: 1.5rem;
    }
    
    .wall-header h1 {
        font-size: 2rem;
        margin-bottom: 0.8rem;
    }
    
    .wall-header p {
        font-size: 0.9rem;
    }
}

/* 搜索框样式 */
.search-container {
    max-width: 1400px;
    margin: 0 auto 2rem;
    padding: 0 1.5rem;
}

.search-form {
    display: flex;
    gap: 1rem;
    background: white;
    padding: 0.8rem;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.1);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.search-form:hover {
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.15);
    transform: translateY(-2px);
}

/* 确保搜索框输入样式不会被其他规则覆盖 */
.search-form input[type="text"] {
    flex: 1;
    padding: 1rem 1.5rem !important;
    border: none !important;
    background: transparent !important;
    font-size: 1rem !important;
    color: #333 !important;
    outline: none !important;
    border-radius: 40px !important;
    transition: all 0.3s ease !important;
    width: auto !important;
    box-shadow: none !important;
    transform: none !important;
}

.search-form input[type="text"]::placeholder {
    color: rgba(153, 153, 153, 0.6) !important;
}

.search-form input[type="text"]:focus {
    background: rgba(255, 255, 255, 0.95) !important;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.05) !important;
    transform: none !important;
    border: none !important;
}

/* 确保搜索按钮样式不会被其他规则覆盖 */
.search-form button.search-btn {
    padding: 1rem 2rem !important;
    border: none !important;
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e) !important;
    color: white !important;
    border-radius: 40px !important;
    cursor: pointer !important;
    font-size: 1rem !important;
    font-weight: 500 !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.6rem !important;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3) !important;
    width: auto !important;
    margin: 0 !important;
}

.search-form button.search-btn:hover {
    background: linear-gradient(135deg, #ff5252, #ff7070) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4) !important;
}

.search-form button.search-btn:active {
    transform: translateY(-1px) !important;
    box-shadow: 0 3px 10px rgba(255, 107, 107, 0.3) !important;
}

/* 响应式搜索框 */
@media (max-width: 768px) {
    .search-container {
        padding: 0 1rem;
    }
    
    .search-form {
        flex-direction: column;
        border-radius: 20px;
        padding: 1rem;
    }
    
    .search-form button.search-btn {
        justify-content: center;
    }
}

.confessions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding: 0 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

@media (max-width: 1200px) and (min-width: 769px) {
    .confessions-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.2rem;
    }
}

@media (max-width: 768px) {
    .confessions-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
        padding: 0 1rem;
    }
}

.confession-card {
    position: relative;
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 107, 107, 0.1);
    background: linear-gradient(135deg, #ffffff 0%, #fff5f5 100%);
}

.confession-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 48px rgba(255, 107, 107, 0.15);
    border-color: rgba(255, 107, 107, 0.2);
}

.confession-card .confession-id {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: rgba(153, 153, 153, 0.6);
    font-size: 0.75rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.8);
    padding: 0.3rem 0.6rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.confession-card .confession-header {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    margin-bottom: 0;
    border-bottom: 1px solid rgba(255, 107, 107, 0.1);
    background: rgba(255, 255, 255, 0.95);
}

.confession-avatar {
    width: 50px;
    height: 50px;
    margin-right: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.confession-avatar i {
    font-size: 2.2rem;
    color: #ff6b6b;
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.confession-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

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

.confession-info {
    flex-grow: 1;
}

.confession-info .from {
    display: block;
    font-weight: 600;
    color: #333;
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.confession-info .to {
    color: #666;
    font-size: 0.9rem;
    font-style: italic;
}

.confession-date {
    color: rgba(153, 153, 153, 0.8);
    font-size: 0.8rem;
    font-weight: 500;
}

.confession-content {
    padding: 2rem;
    position: relative;
    color: #444;
    line-height: 1.8;
    flex-grow: 1;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.5);
}

.quote-icon {
    color: #ff6b6b;
    opacity: 0.15;
    font-size: 2rem;
    transition: opacity 0.3s ease;
}

.confession-card:hover .quote-icon {
    opacity: 0.25;
}

.fa-quote-left {
    position: absolute;
    top: 1rem;
    left: 1rem;
}

.fa-quote-right {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
}

.read-more {
    font-size: 0.75rem;
    color: #999;
    margin-left: 0.3rem;
    font-weight: normal;
    font-style: italic;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    opacity: 0.8;
}

.read-more:hover {
    color: #ff6b6b;
    opacity: 1;
    text-decoration: underline;
}

.confession-footer {
    display: flex;
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(255, 107, 107, 0.1);
    gap: 1rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.comment-btn,
.like-btn {
    flex: 1;
    padding: 1rem;
    border: none;
    background: rgba(255, 255, 255, 0.8);
    color: #666;
    cursor: pointer;
    border-radius: 12px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 107, 107, 0.1);
}

.comment-btn:hover,
.like-btn:hover {
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(255, 107, 107, 0.3);
    border-color: transparent;
}

.comment-btn i,
.like-btn i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.comment-btn:hover i,
.like-btn:hover i {
    transform: scale(1.2);
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 3rem 0;
    gap: 0.8rem;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.2rem;
    border-radius: 12px;
    background-color: white;
    color: #666;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 107, 107, 0.1);
    min-width: 45px;
    height: 45px;
}

.page-link:hover {
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(255, 107, 107, 0.3);
    border-color: transparent;
}

.page-link.active {
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
    color: white;
    box-shadow: 0 4px 16px rgba(255, 107, 107, 0.3);
    border-color: transparent;
}

/* 移动端分页样式 */
@media (max-width: 768px) {
    .pagination {
        margin: 2rem 0;
        gap: 0.5rem;
        padding: 0 1rem;
        flex-wrap: wrap;
    }
    
    .page-link {
        padding: 0.6rem 0.9rem;
        min-width: 38px;
        height: 38px;
        font-size: 0.9rem;
        border-radius: 10px;
    }
    
    .page-link:first-child,
    .page-link:last-child {
        padding: 0.6rem 1rem;
    }
    
    .page-link:hover {
        transform: translateY(-1px);
    }
}

/* 响应式调整 */
@media (max-width: 768px) {
    /* 表白墙页面适配 */
    .confessions-grid {
        grid-template-columns: 1fr;
        padding: 0 0.8rem;
        gap: 1.2rem;
    }

    .wall-header {
        padding: 2rem 1rem;
    }

    .wall-header h1 {
        font-size: 1.8rem;
        margin-bottom: 0.8rem;
    }

    .wall-header p {
        font-size: 0.9rem;
    }

    .confession-card {
        margin-bottom: 0;
        min-height: 280px;
    }
    
    /* 表白卡片内部元素适配 */
    .confession-card .confession-header {
        padding: 1.2rem;
    }
    
    .confession-card .confession-content {
        padding: 1.2rem;
        font-size: 0.95rem;
    }
    
    .confession-card .confession-footer {
        padding: 1rem 1.2rem;
        gap: 0.8rem;
    }
    
    /* 表白卡片按钮适配 */
    .confession-footer button {
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
    }
    
    /* 搜索框适配 */
    .search-container {
        padding: 0 0.8rem;
        margin: 0 auto 1.5rem;
    }
}

/* 点赞按钮样式 */
.like-btn.liked {
    color: #ff6b6b;
    background-color: #fff1f1;
}

.like-btn.liked i {
    animation: heartBeat 0.3s ease-in-out;
}

.count {
    font-size: 0.9rem;
    color: #999;
    margin-left: 0.3rem;
}

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

/* 评论和点赞按钮hover效果 */
.comment-btn:hover .count,
.like-btn:hover .count {
    color: #ff6b6b;
}

/* 表白页面样式 */
.confess-page {
    background-color: #f9f9f9;
    min-height: 100vh;
    padding-bottom: 3rem;
}

.confess-header {
    text-align: center;
    padding: 3rem 1rem;
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
    color: white;
    margin-bottom: 2rem;
}

.confess-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.confess-header h1 i {
    margin-right: 0.5rem;
    animation: heartbeat 1.5s ease infinite;
}

.confess-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.confess-form {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: bold;
}

.form-group label i {
    color: #ff6b6b;
    margin-right: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 2px solid rgba(255, 107, 107, 0.1);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.05);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(153, 153, 153, 0.6);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #ff6b6b;
    outline: none;
    box-shadow: 0 0 0 4px rgba(255, 107, 107, 0.15), inset 0 2px 8px rgba(0, 0, 0, 0.05);
    transform: translateY(-1px);
}

.form-tip {
    display: block;
    margin-top: 0.5rem;
    color: #666;
    font-size: 0.9rem;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin-right: 0.5rem;
}

.checkbox-text {
    color: #333;
}

.content-length {
    text-align: right;
    color: #666;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.submit-btn,
.reset-btn {
    padding: 1.1rem 2.5rem;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    flex: 0;
    white-space: nowrap;
    min-width: 140px;
}

.submit-btn {
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.reset-btn {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    color: #666;
    margin-right: 10px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.submit-btn:hover {
    background: linear-gradient(135deg, #ff5252, #ff7070);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.reset-btn:hover {
    background: linear-gradient(135deg, #e9ecef, #dee2e6);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.submit-btn:active,
.reset-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.error-message {
    background-color: #ffe5e5;
    color: #ff4444;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.confess-tips {
    margin-top: 2rem;
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.confess-tips h3 {
    color: #333;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.confess-tips h3 i {
    color: #ff6b6b;
}

.confess-tips ul {
    list-style: none;
    padding-left: 1.5rem;
}

.confess-tips ul li {
    margin-bottom: 0.5rem;
    color: #666;
    position: relative;
}

.confess-tips ul li::before {
    content: '❤';
    color: #ff6b6b;
    position: absolute;
    left: -1.5rem;
    opacity: 0.5;
}

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

/* 响应式调整 */
@media (max-width: 768px) {
    .confess-header h1 {
        font-size: 2rem;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .submit-btn,
    .reset-btn {
        width: 100%;
    }
}

/* 未来信件页面样式 */
.future-letter-page {
    background-color: #f9f9f9;
    min-height: 100vh;
    padding-bottom: 3rem;
}

.letter-header {
    text-align: center;
    padding: 3rem 1rem;
    background: linear-gradient(135deg, #6b8eff, #8e8eff);
    color: white;
    margin-bottom: 2rem;
}

.letter-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.letter-header h1 i {
    margin-right: 0.5rem;
    animation: float 3s ease-in-out infinite;
}

.letter-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.letter-form {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.letter-preview {
    background: #fff9f0;
    padding: 2rem;
    margin: 2rem 0;
    border-radius: 10px;
    border: 1px dashed #ffd699;
}

.preview-header {
    text-align: center;
    color: #ff9933;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.preview-content {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(255, 153, 51, 0.1);
}

.preview-date {
    color: #666;
    margin-bottom: 1rem;
    font-style: italic;
}

.preview-text {
    color: #333;
    line-height: 1.8;
    white-space: pre-wrap;
}

.letter-tips {
    margin-top: 2rem;
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.letter-tips h3 {
    color: #6b8eff;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.letter-tips ul {
    list-style: none;
    padding-left: 1.5rem;
}

.letter-tips ul li {
    margin-bottom: 0.5rem;
    color: #666;
    position: relative;
}

.letter-tips ul li::before {
    content: '✈';
    color: #6b8eff;
    position: absolute;
    left: -1.5rem;
    opacity: 0.5;
}

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

/* 响应式调整 */
@media (max-width: 768px) {
    .letter-header h1 {
        font-size: 2rem;
    }
    
    .letter-form {
        padding: 1.5rem;
    }
    
    .preview-content {
        padding: 1.5rem;
    }
}

/* 消息弹窗样式 */
.message-popup {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.95);
    padding: 1rem 2rem;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    animation: slideDown 0.5s ease-out, fadeOut 0.5s ease-out 4.5s forwards;
}

.message-content {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: #28a745;
    font-size: 1.1rem;
}

.message-content i {
    font-size: 1.3rem;
}

@keyframes slideDown {
    from {
        transform: translate(-50%, -100%);
        opacity: 0;
    }
    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
        visibility: hidden;
    }
}

.about-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    background: linear-gradient(135deg, #fef9f9 0%, #fdf5f7 100%);
    min-height: calc(100vh - 200px);
}

/* 头部样式 */
.about-header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 2rem 1.5rem;
    background: linear-gradient(135deg, #ffd6e0 0%, #ffb8c9 100%);
    border-radius: 24px;
    box-shadow: 0 12px 36px rgba(255, 107, 107, 0.18);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.about-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
    animation: float 8s ease-in-out infinite;
}

.about-header h1 {
    font-size: 2.2rem;
    color: #ff5c7c;
    margin-bottom: 0.8rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
    text-shadow: 0 3px 12px rgba(255, 107, 107, 0.25);
    letter-spacing: -0.5px;
}

.about-header p {
    font-size: 1.05rem;
    color: #666;
    position: relative;
    z-index: 1;
    font-weight: 500;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

/* 内容区样式 */
.about-content {
    background: white;
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.12);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff5c7c, #ffa6b7, #ffd6e0, #ff5c7c);
    animation: gradientShift 4s ease-in-out infinite;
    background-size: 400% 400%;
}

.about-content:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
}

.about-content h2 {
    color: #ff5c7c;
    margin-top: 2rem;
    margin-bottom: 1.2rem;
    font-size: 1.6rem;
    border-bottom: 3px solid #ffd6e0;
    padding-bottom: 0.6rem;
    font-weight: 700;
    position: relative;
    letter-spacing: -0.3px;
    text-align: left;
}

.about-content p {
    color: #555;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    text-align: left;
    font-weight: 400;
}

.about-content h2::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 60px;
    height: 3px;
    background: #ff5c7c;
    border-radius: 3px;
    transition: width 0.3s ease;
}

.about-content h2:hover::after {
    width: 100px;
}

.about-content p {
    color: #555;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    text-align: justify;
    font-weight: 400;
}

/* 团队成员样式 */
.team-members {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin: 2.5rem 0;
}

.team-member {
    background: linear-gradient(135deg, #fff0f5 0%, #ffe6f0 100%);
    padding: 1.5rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.12);
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid rgba(255, 107, 107, 0.1);
}

.team-member:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(255, 107, 107, 0.2);
    border-color: rgba(255, 107, 107, 0.2);
}

.team-member strong {
    display: block;
    color: #ff5c7c;
    font-size: 1.3rem;
    margin-bottom: 0.6rem;
    font-weight: 700;
}

.team-member span {
    display: block;
    color: #777;
    font-size: 1.05rem;
    font-weight: 500;
}

/* 更新日志样式 */
.changelog {
    margin: 2.5rem 0;
}

.changelog-item {
    background: #fafafa;
    padding: 1.2rem 1.8rem;
    border-radius: 12px;
    margin-bottom: 1.2rem;
    border-left: 5px solid #ff5c7c;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.changelog-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: linear-gradient(90deg, rgba(255, 92, 124, 0.15), transparent);
    transition: width 0.4s ease;
}

.changelog-item:hover::before {
    width: 100%;
}

.changelog-item:hover {
    background: #f5f5f5;
    transform: translateX(8px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    border-color: rgba(255, 92, 124, 0.15);
}

.changelog-item date {
    display: inline-block;
    color: #ff5c7c;
    font-weight: 700;
    margin-bottom: 0.6rem;
    padding: 0.3rem 0.8rem;
    background: rgba(255, 92, 124, 0.12);
    border-radius: 16px;
    font-size: 0.85rem;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    font-family: 'Arial', sans-serif;
}

.changelog-item span {
    display: block;
    color: #555;
    line-height: 1.6;
    font-size: 1rem;
    font-weight: 400;
}

/* 联系我们样式 */
.contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin: 2.5rem 0;
    justify-content: flex-start;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    font-size: 1.1rem;
    color: #555;
    padding: 1rem 1.5rem;
    background: #fafafa;
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 107, 107, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    min-width: 250px;
}

.contact-item:hover {
    background: linear-gradient(135deg, #fff0f5 0%, #ffe6f0 100%);
    transform: translateY(-6px);
    box-shadow: 0 8px 24px rgba(255, 107, 107, 0.15);
    border-color: rgba(255, 107, 107, 0.2);
}

.contact-item i {
    color: #ff5c7c;
    font-size: 1.8rem;
    width: 35px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 92, 124, 0.1);
    padding: 0.8rem;
    border-radius: 50%;
}

.contact-item:hover i {
    transform: scale(1.15) rotate(5deg);
    background: rgba(255, 92, 124, 0.2);
}

.contact-item a {
    color: #555;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
}

.contact-item:hover a {
    color: #ff5c7c;
    text-decoration: underline;
}

.contact-item span {
    font-weight: 500;
    color: #666;
}

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

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

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

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

.about-content > * {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

.about-content h2:nth-of-type(1) { animation-delay: 0.2s; }
.about-content p:nth-of-type(1) { animation-delay: 0.3s; }
.about-content h2:nth-of-type(2) { animation-delay: 0.4s; }
.about-content p:nth-of-type(2) { animation-delay: 0.5s; }
.about-content h2:nth-of-type(3) { animation-delay: 0.6s; }
.team-members { animation-delay: 0.7s; }
.about-content h2:nth-of-type(4) { animation-delay: 0.8s; }
.changelog { animation-delay: 0.9s; }
.about-content h2:nth-of-type(5) { animation-delay: 1s; }
.contact-info { animation-delay: 1.1s; }

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #ffccd5;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #ff5c7c;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .about-page {
        padding: 1.5rem 0.8rem;
    }

    .about-content {
        padding: 2rem 1.5rem;
    }

    .about-header h1 {
        font-size: 2.2rem;
    }

    .about-header p {
        font-size: 1.1rem;
    }

    .about-content h2 {
        font-size: 1.7rem;
    }

    .team-members {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .contact-info {
        flex-direction: column;
        align-items: stretch;
        gap: 1.2rem;
    }

    .changelog-item {
        padding: 1.2rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .about-content {
        padding: 1.5rem 1rem;
    }

    .about-header {
        padding: 2rem 1.5rem;
    }

    .about-header h1 {
        font-size: 1.8rem;
    }

    .team-member {
        padding: 1.5rem;
    }
}

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

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

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

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

.about-content > * {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

.about-content h2:nth-of-type(1) { animation-delay: 0.2s; }
.about-content p:nth-of-type(1) { animation-delay: 0.3s; }
.about-content h2:nth-of-type(2) { animation-delay: 0.4s; }
.about-content p:nth-of-type(2) { animation-delay: 0.5s; }
.about-content h2:nth-of-type(3) { animation-delay: 0.6s; }
.team-members { animation-delay: 0.7s; }
.about-content h2:nth-of-type(4) { animation-delay: 0.8s; }
.changelog { animation-delay: 0.9s; }
.about-content h2:nth-of-type(5) { animation-delay: 1s; }
.contact-info { animation-delay: 1.1s; }

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #ffccd5;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #ff6b6b;
}



.footer-section a {
    color: white;
    text-decoration: none;
}

.footer-section a:hover {
    text-decoration: underline;
}

/* 响应式调整 */
/* 移动端响应式设计 */
@media (max-width: 768px) {
    header {
        padding: 0.5rem 0;
    }

    nav {
        padding: 0.8rem 1rem;
        flex-direction: row;
        gap: 0;
    }

    /* 显示汉堡菜单，覆盖内联样式 */
    nav .hamburger {
        display: block !important;
    }

    /* 默认隐藏导航菜单 */
    nav ul.nav-links {
        display: none !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 0.8rem !important;
        width: 100% !important;
        background-color: #ff6b6b !important;
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        right: 0 !important;
        padding: 1rem !important;
        z-index: 1000 !important;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
        margin: 0 !important;
    }

    /* 显示导航菜单的类 */
    nav ul.nav-links.show {
        display: flex !important;
    }

    nav ul.nav-links li {
        margin: 0 !important;
        width: 100% !important;
        text-align: center !important;
    }

    nav ul.nav-links li a {
        display: block !important;
        width: 100% !important;
        padding: 0.8rem 1.5rem !important;
        border-radius: 25px !important;
        margin: 0 !important;
        background-color: transparent !important;
    }

    nav ul.nav-links li a:hover {
        background-color: rgba(255, 255, 255, 0.2) !important;
    }

    /* 移动端下拉菜单优化 */
    nav .dropdown-content {
        position: static;
        width: 100%;
        margin-top: 0.5rem;
        opacity: 1;
        transform: none;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
    }

    nav .dropdown-content a {
        border-radius: 12px;
        margin: 0.3rem 0;
    }

    .hero {
        padding: 2rem 1rem;
    }

    .btn {
        padding: 0.9rem 2rem;
        width: 100%;
        text-align: center;
    }

    footer {
        padding: 1.5rem 0;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }

    /* 移动端卡片优化 */
    .confessions-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem;
        gap: 1.2rem;
    }

    .confession-card {
        min-height: 280px;
    }

    /* 移动端表单优化 */
    .login-container, .register-container, .profile-container {
        padding: 1.5rem;
        margin: 1rem;
    }

    .form-actions {
        flex-direction: column;
    }

    .submit-btn, .reset-btn {
        width: 100%;
        margin-right: 0;
        margin-bottom: 1rem;
    }
}

/* 登录和注册页面样式 */
.login-container, .register-container {
    max-width: 400px;
    margin: 2rem auto;
    padding: 2.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #fff5f5 100%);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.1);
}

h1 {
    text-align: center;
    color: #ff6b6b;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
}

.form-group input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.btn {
    background-color: #ff6b6b;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
}

.btn:hover {
    background-color: #e55a5a;
}

.error-message {
    color: #721c24;
    background-color: #f8d7da;
    padding: 0.5rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

/* 个人中心样式 */
.profile-container {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 0 1rem;
    flex-grow: 1;
}



.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
}

.form-group input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.btn {
    background-color: #ff6b6b;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
}

.btn:hover {
    background-color: #e55a5a;
}

.success-message {
    color: #155724;
    background-color: #d4edda;
    padding: 0.5rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

/* 导航栏优化 */
nav {
    background-color: #ff6b6b;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    padding: 1rem 2rem;
}

nav ul {
    gap: 0.5rem;
}

nav ul li a {
    border-radius: 25px;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
}

nav ul li a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: white;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

nav ul li a:hover::before {
    width: 80%;
}

/* 二级菜单样式优化 */
nav ul li {
    position: relative; /* 使子菜单相对于父菜单定位 */
}

nav .dropdown-content {
    display: none; /* 默认隐藏 */
    position: absolute; /* 绝对定位 */
    background-color: white; /* 白色背景 */
    min-width: 180px; /* 最小宽度 */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15); /* 阴影效果 */
    border-radius: 12px; /* 圆角 */
    z-index: 1000; /* 确保在其他元素之上 */
    transition: all 0.3s ease; /* 添加过渡效果 */
    top: 120%; /* 将菜单位置设置为父元素底部 */
    left: 0; /* 对齐到左侧 */
    opacity: 0;
    transform: translateY(-10px);
    border: 1px solid rgba(255, 107, 107, 0.1);
}

nav .dropdown-content a {
    color: #333; /* 链接颜色 */
    padding: 12px 20px; /* 内边距 */
    text-decoration: none; /* 去掉下划线 */
    display: block; /* 块级元素 */
    transition: all 0.3s ease; /* 添加过渡效果 */
    border-radius: 0;
    margin: 0;
}

nav .dropdown-content a:first-child {
    border-radius: 12px 12px 0 0;
}

nav .dropdown-content a:last-child {
    border-radius: 0 0 12px 12px;
}

nav .dropdown-content a:hover {
    background-color: #ff6b6b; /* 悬停时背景颜色 */
    color: white; /* 悬停时文字颜色 */
    transform: translateX(5px);
}

/* 显示二级菜单时的样式 */
nav .dropdown:hover .dropdown-content {
    display: block; /* 鼠标悬停时显示 */
    opacity: 1; /* 使其完全可见 */
    transform: translateY(0);
}

/* 下拉菜单指示器 */
nav .dropdown > a::after {
    content: '▼';
    font-size: 0.7rem;
    margin-left: 0.3rem;
    vertical-align: middle;
    transition: transform 0.3s ease;
}

nav .dropdown:hover > a::after {
    transform: rotate(180deg);
}

/* ����״ָ̬ʾ����ʽ */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.loading-overlay.show {
    opacity: 1;
    visibility: visible;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 6px solid #f3f3f3;
    border-top: 6px solid #ff6b6b;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    position: relative;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ��ť����״̬ */
.btn.loading {
    position: relative;
    pointer-events: none;
}

.btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* �����ύ��ť����״̬ */
.submit-btn.loading {
    pointer-events: none;
}

.submit-btn.loading::after {
    content: '';
    width: 20px;
    height: 20px;
    margin-left: 10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: inline-block;
    vertical-align: middle;
}
