/* 基础样式重置 */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* CSS变量定义 */
:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --accent-color: #f093fb;
    --success-color: #4caf50;
    --warning-color: #ff9800;
    --error-color: #f44336;
    --text-color: #333;
    --text-light: #666;
    --bg-white: #ffffff;
    --bg-light: #f8f9fa;
    --border-color: #e0e0e0;
    --shadow-light: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 5px 20px rgba(0, 0, 0, 0.15);
    --shadow-heavy: 0 10px 40px rgba(0, 0, 0, 0.2);
    --radius-small: 8px;
    --radius-medium: 12px;
    --radius-large: 20px;
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.6s ease;
}

body {
    font-family: 'Arial', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    min-height: 100vh;
    /* 性能优化 - 移除 transform: translateZ(0) 以避免影响 position: fixed */
    will-change: scroll-position;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部样式 */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #667eea;
}

.logo i {
    font-size: 2rem;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 600;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #666;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

/* 搜索区域 */
.search-section {
    padding: 4rem 0;
    background: transparent;
}

.search-header {
    text-align: center;
    margin-bottom: 3rem;
    color: white;
}

.search-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.search-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.search-container {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.search-box {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 50px;
    padding: 1rem 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.search-box i {
    color: #667eea;
    margin-right: 1rem;
    font-size: 1.2rem;
}

.search-box input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1rem;
    padding: 0.5rem;
}

.search-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 0.7rem 2rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: #5a6fd8;
    transform: translateY(-2px);
}

.filter-controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

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

.filter-group label {
    font-weight: 500;
    color: #555;
}

.filter-group select {
    padding: 0.7rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    background: white;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.filter-group select:focus {
    outline: none;
    border-color: #667eea;
}

/* 标签区域 */
.tags-section {
    padding: 2rem 0;
    background: rgba(255, 255, 255, 0.1);
}

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

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.tag {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.tag:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.tag.active {
    background: rgba(255, 255, 255, 0.4);
}

/* 活动区域 */
.activities-section {
    padding: 3rem 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.section-header h3 {
    font-size: 1.8rem;
    color: #333;
}

.view-controls {
    display: flex;
    gap: 0.5rem;
}

.view-btn {
    background: #f5f5f5;
    border: none;
    padding: 0.7rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-btn.active {
    background: #667eea;
    color: white;
}

.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(370px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.activity-card {
    background: var(--bg-white);
    border-radius: var(--radius-medium);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: var(--transition-normal);
    cursor: pointer;
    /* 性能优化 */
    will-change: transform;
    backface-visibility: hidden;
}

.activity-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-heavy);
}

@media (hover: none) {
    .activity-card:hover {
        transform: none;
    }
}

.activity-image {
    height: 200px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    position: relative;
    overflow: hidden;
}

.activity-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.activity-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(102, 126, 234, 0.8), rgba(118, 75, 162, 0.8));
}

.activity-content {
    padding: 1.5rem;
}

.activity-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

.activity-description {
    color: #666;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    line-height: 1.5;
}

.activity-meta {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    /* flex-wrap: wrap;  将此行注释掉或删除 */
}

.badge {
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 500;
}

.category-badge {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.duration-badge {
    background: rgba(255, 193, 7, 0.1);
    color: #ff9800;
}

.participant-badge {
    background: rgba(156, 39, 176, 0.1);
    color: #9c27b0;
}

.activity-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.activity-tag {
    background: #f0f0f0;
    color: #666;
    padding: 0.2rem 0.6rem;
    border-radius: 10px;
    font-size: 0.75rem;
}

.activity-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.activity-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: #666;
}

.activity-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-icon {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #999;
    transition: all 0.3s ease;
}

.btn-icon:hover {
    color: #667eea;
}

.btn-icon.active {
    color: #ff4757;
}

/* 列表视图样式 */
.activities-grid.list-view {
    grid-template-columns: 1fr;
}

.activities-grid.list-view .activity-card {
    display: flex;
    height: 185px;
}

.activities-grid.list-view .activity-image {
    width: 200px;
    height: 100%;
}

.activities-grid.list-view .activity-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* 加载更多按钮 */
.load-more {
    text-align: center;
}

.load-more-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 1rem 3rem;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.load-more-btn:hover {
    background: #5a6fd8;
    transform: translateY(-2px);
}

/* 统计面板 */
.stats-section {
    padding: 3rem 0;
    background: rgba(255, 255, 255, 0.1);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card i {
    font-size: 2.5rem;
    color: #667eea;
    margin-bottom: 1rem;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #666;
    font-size: 0.9rem;
}

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

.modal-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 20px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 2001;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    border-bottom: 1px solid #eee;
}

.modal-header h3 {
    font-size: 1.5rem;
    color: #333;
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #999;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #333;
}

.modal-body {
    padding: 2rem;
}

.activity-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.activity-details .activity-image {
    height: 300px;
    border-radius: 15px;
    overflow: hidden;
}

.activity-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.rating {
    display: flex;
    gap: 0.2rem;
}

.star {
    color: #ddd;
    transition: color 0.3s ease;
}

.star.filled {
    color: #ffc107;
}

.btn-primary {
    background: #667eea;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #5a6fd8;
}

.btn-secondary {
    background: #f8f9fa;
    color: #666;
    border: 1px solid #ddd;
    padding: 1rem 2rem;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #e9ecef;
}

/* 活动详细信息样式 */
.detailed-info {
    margin-top: 2rem;
    grid-column: 1 / -1;
}

.info-section {
    margin-bottom: 2rem;
}

.info-section h4 {
    color: #667eea;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.info-item .label {
    font-weight: 500;
    color: #666;
}

.info-item .value {
    color: #333;
    font-weight: 500;
}

.materials-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.material-tag {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 0.4rem 1rem;
    border-radius: var(--radius-large);
    font-size: 0.8rem;
    font-weight: 500;
    box-shadow: var(--shadow-light);
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.material-tag:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-medium);
}

.material-tag::before {
    content: "🔧";
    font-size: 0.7rem;
}

/* 活动流程时间线样式 */
.activity-timeline {
    position: relative;
    padding-left: 2rem;
}

.activity-timeline::before {
    content: '';
    position: absolute;
    left: 1rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #667eea, #764ba2);
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 2rem;
}

.timeline-marker {
    position: absolute;
    left: -2rem;
    top: 0.5rem;
    width: 2rem;
    height: 2rem;
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.3);
}

.timeline-content {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

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

.step-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 0.5rem;
}

.step-header h5 {
    color: #333;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}



.step-description {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.sub-steps {
    margin-top: 1rem;
    border-left: 3px solid #f0f0f0;
    padding-left: 1rem;
}

.sub-step {
    margin-bottom: 1rem;
    padding: 0.8rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.sub-step:last-child {
    margin-bottom: 0;
}

.sub-step h6 {
    color: #667eea;
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
}

.sub-step p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

/* 查看详情按钮样式 */
.btn-view {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-view:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}


/* 弹窗标题样式增强 */
.modal-header h3 {
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.5rem;
    font-weight: 600;
}


.timeline-item:last-child::before {
    display: none;
}

.timeline-marker {
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    margin-right: 2rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.timeline-content {
    flex: 1;
    background: #f8f9fa;
    border-radius: 15px;
    padding: 1.5rem;
    border-left: 4px solid #667eea;
    position: relative;
}

.timeline-content::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 20px;
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-right: 8px solid #f8f9fa;
}

.step-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.step-header h5 {
    color: #333;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}



.step-description {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.sub-steps {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.sub-step {
    margin-bottom: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 10px;
    border-left: 3px solid #764ba2;
}

.sub-step h6 {
    color: #764ba2;
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    font-weight: 600;
}

.sub-step p {
    color: #666;
    margin: 0;
    line-height: 1.5;
    font-size: 0.9rem;
}

/* 页脚 */
.footer {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem 0;
    text-align: center;
    margin-top: 2rem;
    backdrop-filter: blur(10px);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .search-header h2 {
        font-size: 2rem;
    }
    
    .search-box {
        flex-direction: column;
        gap: 1rem;
    }
    
    .filter-controls {
        grid-template-columns: 1fr;
    }
    
    .activities-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .activity-details {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 95%;
        max-width: 90vw;
        max-height: 85vh;
    }
    
    /* 时间线在移动端的适配 */
    .activity-timeline {
        padding-left: 1rem;
    }
    
    .timeline-marker {
        left: -1.5rem;
        width: 1.5rem;
        height: 1.5rem;
        font-size: 0.8rem;
    }
    
    .timeline-content {
        padding: 1rem;
    }
    
    .step-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .search-container {
        padding: 1.5rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .activity-actions {
        flex-direction: column;
        gap: 1rem;
    }
}

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

@keyframes shimmer {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: calc(200px + 100%) 0;
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.activity-card {
    animation: fadeInUp var(--transition-slow) ease-out;
}

.timeline-item {
    animation: slideInRight var(--transition-slow) ease-out;
}

.timeline-item:nth-child(even) {
    animation-delay: 0.1s;
}

.timeline-item:nth-child(odd) {
    animation-delay: 0.2s;
}

/* 加载状态 */
.loading {
    background: linear-gradient(90deg, 
        var(--bg-light) 25%, 
        rgba(255,255,255,0.5) 37%, 
        var(--bg-light) 63%);
    background-size: 200px 100%;
    animation: shimmer 1.5s infinite;
}

/* 状态指示器 */
.status-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 0.5rem;
}

.status-pending {
    background: var(--warning-color);
    animation: pulse 2s infinite;
}

.status-completed {
    background: var(--success-color);
}

.status-in-progress {
    background: var(--primary-color);
    animation: pulse 1s infinite;
}

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #5a6fd8, #6a4c96);
}

/* 焦点样式优化 */
*:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* 减少动画偏好设置 */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}



/* 高对比度模式支持 */
@media (prefers-contrast: high) {
    .timeline-content {
        border: 2px solid #000;
    }
    
    .btn-view {
        border: 2px solid #000;
    }
}

/* 可爱弹窗样式 */
.cute-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 3000;
    backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease;
}

.cute-modal-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.7);
    background: linear-gradient(145deg, #fff 0%, #f8f9ff 100%);
    border-radius: 25px;
    width: 90%;
    max-width: 400px;
    box-shadow: 
        0 20px 60px rgba(102, 126, 234, 0.3),
        0 8px 25px rgba(0, 0, 0, 0.15);
    border: 3px solid transparent;
    background-clip: padding-box;
    animation: cuteModalPop 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
    z-index: 3001;
}

@keyframes cuteModalPop {
    0% {
        transform: translate(-50%, -50%) scale(0.7) rotate(-5deg);
        opacity: 0;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.05) rotate(2deg);
    }
    100% {
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
        opacity: 1;
    }
}

/* 确保弹窗始终在视口中心的额外样式 */
.cute-modal-content.center-fixed {
    /* 使用视口单位确保始终居中 */
    position: fixed !important;
    top: 50vh !important;
    left: 50vw !important;
    transform: translate(-50%, -50%) !important;
    margin: 0 !important;
    /* 确保在所有屏幕尺寸下都居中 */
}

/* 动画状态下也保持居中 */
@keyframes cuteModalPopCentered {
    0% {
        transform: translate(-50%, -50%) scale(0.7) rotate(-5deg) !important;
        opacity: 0;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.05) rotate(2deg) !important;
    }
    100% {
        transform: translate(-50%, -50%) scale(1) rotate(0deg) !important;
        opacity: 1;
    }
}

.cute-modal-content.center-fixed {
    animation: cuteModalPopCentered 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards !important;
}

/* 活动详情弹窗强制居中样式 */
.modal-content.center-fixed {
    position: fixed !important;
    top: 50vh !important;
    left: 50vw !important;
    transform: translate(-50%, -50%) !important;
    margin: 0 !important;
}

/* 确保活动详情弹窗在移动端也正确居中 */

@media (max-width: 480px) {
    .modal-content {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 95%;
        max-width: 95vw;
        max-height: 80vh;
        border-radius: 15px;
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.cute-modal-header {
    padding: 1.5rem 2rem 1rem 2rem;
    text-align: center;
    position: relative;
    border-bottom: 2px solid rgba(102, 126, 234, 0.1);
}

.cute-emoji {
    font-size: 3rem;
    display: block;
    margin-bottom: 0.5rem;
    animation: bounce 2s infinite;
}

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

.cute-modal-header h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
}

.cute-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #999;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cute-modal-close:hover {
    background: rgba(255, 0, 0, 0.1);
    color: #ff4757;
    transform: rotate(90deg);
}

.cute-modal-body {
    padding: 1.5rem 2rem;
    text-align: center;
}

.cute-modal-body p {
    font-size: 1.1rem;
    color: var(--text-color);
    margin: 0 0 1.5rem 0;
    line-height: 1.6;
}

.cute-stars {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 1rem 0;
}

.cute-stars span {
    font-size: 1.5rem;
    animation: twinkle 1.5s infinite;
}

.cute-stars span:nth-child(1) {
    animation-delay: 0s;
}

.cute-stars span:nth-child(2) {
    animation-delay: 0.3s;
}

.cute-stars span:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes twinkle {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
    50% {
        transform: scale(1.2) rotate(180deg);
        opacity: 0.8;
    }
}

.cute-modal-footer {
    padding: 1rem 2rem 2rem 2rem;
    text-align: center;
}

.cute-btn {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.cute-btn::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;
}

.cute-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.cute-btn:hover::before {
    left: 100%;
}

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

/* 导航链接悬停效果增强 */
.nav-link {
    position: relative;
    transition: all 0.3s ease;
}

.nav-link:hover {
    transform: translateY(-2px);
}

.nav-link::after {
    content: '✨';
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 0.8rem;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
}

.nav-link:hover::after {
    opacity: 1;
    transform: scale(1);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .cute-modal-content {
        width: 95%;
        max-width: 350px;
        min-width: 280px;
        /* 移动端也使用固定居中，不覆盖top和left */
    }
    
    .cute-modal-header,
    .cute-modal-body,
    .cute-modal-footer {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (max-width: 480px) {
    .cute-modal-content {
        width: 90%;
        max-width: 300px;
        /* 超小屏幕只调整尺寸，不改变定位 */
    }
    
    .cute-emoji {
        font-size: 2.5rem;
    }
    
    .cute-modal-header h3 {
        font-size: 1.1rem;
    }
}
