/* 90天健身蜕变计划 - 样式文件 */

:root {
    --primary: #5b8cff;
    --primary-dark: #4169e1;
    --secondary: #00d9c0;
    --accent: #ff6b9d;
    --warning: #ffa502;
    --success: #2ed573;
    --bg-dark: #1e272e;
    --bg-card: #2f3640;
    --bg-light: #353b48;
    --text-primary: #f5f6fa;
    --text-secondary: #dcdde1;
    --text-muted: #7f8fa4;
    --border: rgba(255, 255, 255, 0.1);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.4);
}

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

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

/* 彩带容器 */
.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    animation: confetti-fall 3s ease-out forwards;
}

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

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

/* 头部样式 */
.header {
    text-align: center;
    padding: 40px 20px;
    margin-bottom: 30px;
}

.header-icon {
    font-size: 64px;
    margin-bottom: 15px;
    animation: bounce 2s infinite;
}

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

.header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

/* 进度条 */
.progress-bar-container {
    max-width: 400px;
    margin: 0 auto 25px;
    background: var(--bg-card);
    border-radius: 25px;
    height: 30px;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 25px;
    transition: width 0.5s ease;
    width: 0%;
    position: relative;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.3) 50%, transparent 100%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* 统计信息 */
.stats-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 20px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 5px;
}

/* 路径地图容器 */
.path-map-container {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    position: relative;
}

/* 周标签 */
.week-section {
    margin-bottom: 30px;
}

.week-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 15px;
    padding-left: 10px;
    border-left: 4px solid var(--primary);
}

.week-label.completed {
    border-color: var(--success);
    color: var(--success);
}

.week-label.current {
    border-color: var(--warning);
    color: var(--warning);
}

/* 路径网格 */
.path-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .path-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 480px) {
    .path-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 路径点 */
.path-node {
    aspect-ratio: 1;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    border: 2px solid transparent;
    background: var(--bg-light);
}

.path-node:hover {
    transform: translateY(-3px);
}

.path-node .day-number {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
}

.path-node .day-icon {
    font-size: 1.5rem;
    margin-top: 4px;
}

/* 节点状态 */
.path-node.completed {
    background: linear-gradient(135deg, var(--success) 0%, #20bf6b 100%);
}

.path-node.completed .day-number,
.path-node.completed .day-icon {
    color: white;
}

.path-node.available {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    animation: pulse-glow 2s infinite;
    cursor: pointer;
}

.path-node.available .day-number,
.path-node.available .day-icon {
    color: white;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(91, 140, 255, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(91, 140, 255, 0); }
}

.path-node.locked {
    opacity: 0.5;
    cursor: not-allowed;
}

.path-node.locked .day-icon {
    opacity: 0.5;
}

/* 每周第7天特殊标记 */
.path-node.is-seventh {
    border-color: var(--accent);
}

.path-node.is-seventh::after {
    content: '👑';
    position: absolute;
    top: -8px;
    right: -8px;
    font-size: 16px;
}

/* 成就墙入口 */
.achievement-wall-entry {
    margin-bottom: 30px;
}

.entry-content {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-light) 100%);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.entry-content:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
    box-shadow: 0 8px 25px rgba(91, 140, 255, 0.3);
}

.entry-icon {
    font-size: 64px;
    margin-bottom: 15px;
    animation: trophy-float 3s ease-in-out infinite;
}

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

.entry-content h3 {
    font-size: 1.4rem;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.entry-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.entry-count {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* 成就墙弹窗 */
.achievement-modal {
    background: var(--bg-card);
    border-radius: 24px;
    padding: 0;
    max-width: 900px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9) translateY(30px);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.modal-overlay.active .achievement-modal {
    transform: scale(1) translateY(0);
}

.achievement-modal .modal-close {
    position: fixed;
    top: calc(7.5vh + 15px);
    right: calc(5% + 15px);
    z-index: 100;
}

@media (min-width: 900px) {
    .achievement-modal .modal-close {
        right: calc(50% - 450px + 15px);
    }
}

.achievement-modal-content {
    padding: 30px;
}

.achievement-modal-content h2 {
    text-align: center;
    margin-bottom: 25px;
    font-size: 1.8rem;
    color: var(--text-primary);
}

.postcard-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.saved-postcard {
    background: white;
    border-radius: 15px;
    padding: 20px;
    color: var(--bg-dark);
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transform: rotate(-2deg);
    transition: all 0.3s ease;
    animation: postcard-appear 0.5s ease;
}

.saved-postcard:nth-child(even) {
    transform: rotate(2deg);
}

.saved-postcard:hover {
    transform: rotate(0deg) scale(1.05);
    z-index: 10;
}

@keyframes postcard-appear {
    0% {
        opacity: 0;
        transform: scale(0.5) rotate(-10deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(-2deg);
    }
}

.saved-postcard .postcard-emoji {
    font-size: 48px;
    margin-bottom: 10px;
}

.saved-postcard h4 {
    font-size: 1rem;
    margin-bottom: 5px;
    color: var(--bg-dark);
}

.saved-postcard p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.saved-postcard .postcard-date {
    font-size: 0.75rem;
    color: var(--primary);
    margin-top: 10px;
    font-weight: 600;
}

.empty-state {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
    grid-column: 1 / -1;
}

.empty-state-icon {
    font-size: 64px;
    margin-bottom: 15px;
    opacity: 0.5;
}

/* 页脚 */
.footer {
    text-align: center;
    padding: 30px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* 弹窗基础样式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--bg-light);
    border: none;
    font-size: 24px;
    color: var(--text-primary);
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.modal-close:hover {
    background: var(--accent);
    color: white;
}

/* 打卡弹窗 */
.checkin-modal {
    background: var(--bg-card);
    border-radius: 24px;
    padding: 0;
    max-width: 480px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9) translateY(30px);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.modal-overlay.active .checkin-modal {
    transform: scale(1) translateY(0);
}

.checkin-content {
    padding: 30px;
}

.checkin-header {
    text-align: center;
    margin-bottom: 25px;
}

.day-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.checkin-header h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-top: 10px;
}

/* 照片上传区域 */
.photo-upload-section {
    margin-bottom: 25px;
}

.photo-upload-box {
    position: relative;
    width: 100%;
    height: 220px;
    border: 3px dashed var(--border);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    background: var(--bg-light);
}

.photo-upload-box:hover {
    border-color: var(--primary);
    background: rgba(91, 140, 255, 0.1);
}

.photo-upload-box.has-photo {
    border-color: var(--success);
    border-style: solid;
}

.photo-upload-box input[type="file"] {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 5;
}

.photo-upload-box.has-photo input[type="file"] {
    display: none;
}

.upload-placeholder {
    text-align: center;
    pointer-events: none;
}

.upload-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 10px;
}

.upload-placeholder p {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 5px;
}

.upload-hint {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.photo-preview {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 2;
}

.photo-preview.hidden {
    display: none;
}

/* 任务区域 */
.task-section {
    background: var(--bg-light);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 25px;
}

.task-section h4 {
    color: var(--text-primary);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.task-list {
    list-style: none;
}

.task-list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.task-list li:last-child {
    border-bottom: none;
}

.task-list li::before {
    content: '⭕';
    font-size: 1.2rem;
}

.task-list li.completed::before {
    content: '✅';
}

/* 打卡按钮 */
.check-in-btn {
    width: 100%;
    padding: 16px 25px;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: inherit;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(91, 140, 255, 0.4);
    position: relative;
    z-index: 10;
}

.check-in-btn:disabled {
    background: var(--bg-light);
    color: var(--text-muted);
    cursor: not-allowed;
    box-shadow: none;
}

.check-in-btn:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(91, 140, 255, 0.6);
}

.check-in-btn:not(:disabled):active {
    transform: translateY(0);
}

/* 照片对比弹窗 */
.compare-modal {
    background: var(--bg-card);
    border-radius: 24px;
    padding: 30px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9) translateY(30px);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.modal-overlay.active .compare-modal {
    transform: scale(1) translateY(0);
}

.compare-content h3 {
    text-align: center;
    font-size: 1.4rem;
    margin-bottom: 25px;
    color: var(--text-primary);
}

.compare-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

.compare-item {
    text-align: center;
}

.compare-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.compare-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    border: 3px solid var(--border);
}

.compare-actions {
    display: flex;
    gap: 15px;
}

.save-btn, .secondary-btn {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.save-btn {
    background: linear-gradient(135deg, var(--accent) 0%, #ff8fab 100%);
    color: white;
}

.save-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 157, 0.4);
}

.secondary-btn {
    background: var(--bg-light);
    color: var(--text-primary);
}

.secondary-btn:hover {
    background: var(--primary);
    color: white;
}

#mergeCanvas {
    width: 100%;
    margin: 20px 0;
    border-radius: 12px;
    display: none;
}

#mergeCanvas:not(.hidden) {
    display: block;
}

/* 明信片弹窗 */
.postcard-modal {
    background: white;
    border-radius: 20px;
    padding: 30px;
    max-width: 400px;
    width: 100%;
    position: relative;
    transform: scale(0.8) translateY(50px);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-overlay.active .postcard-modal {
    transform: scale(1) translateY(0);
}

.postcard-modal .modal-close {
    background: var(--bg-light);
    color: var(--text-muted);
}

.postcard-modal .modal-close:hover {
    background: var(--accent);
    color: white;
}

.postcard-content {
    text-align: center;
}

.postcard-image {
    font-size: 100px;
    margin-bottom: 20px;
    animation: postcard-bounce 0.6s ease;
}

@keyframes postcard-bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.postcard-text h3 {
    font-size: 1.5rem;
    color: var(--bg-dark);
    margin-bottom: 10px;
}

.postcard-text p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 15px;
    line-height: 1.6;
}

.postcard-day {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.postcard-decoration {
    margin-top: 20px;
    font-size: 24px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.postcard-decoration span {
    animation: star-twinkle 1s infinite alternate;
}

.postcard-decoration span:nth-child(2) { animation-delay: 0.2s; }
.postcard-decoration span:nth-child(3) { animation-delay: 0.4s; }

@keyframes star-twinkle {
    0% { opacity: 0.5; transform: scale(0.8); }
    100% { opacity: 1; transform: scale(1.2); }
}

/* 隐藏元素 */
.hidden {
    display: none !important;
}

/* 响应式设计 - 手机端紧凑布局 */
@media (max-width: 768px) {
    .app-container {
        padding: 10px;
        display: flex;
        flex-direction: column;
        min-height: 100vh;
    }
    
    /* 头部紧凑化 */
    .header {
        padding: 15px 10px 10px;
        margin-bottom: 10px;
        flex-shrink: 0;
    }
    
    .header-icon {
        font-size: 40px;
        margin-bottom: 8px;
    }
    
    .header h1 {
        font-size: 1.4rem;
        margin-bottom: 5px;
    }
    
    .subtitle {
        font-size: 0.9rem;
        margin-bottom: 12px;
    }
    
    /* 进度条 - 更加醒目 */
    .progress-bar-container {
        height: 28px;
        margin-bottom: 12px;
        max-width: 100%;
    }
    
    .progress-text {
        font-size: 13px;
        font-weight: 700;
    }
    
    /* 统计信息 - 横向紧凑排列 */
    .stats-container {
        gap: 15px;
        margin-top: 8px;
    }
    
    .stat-item {
        flex: 1;
        padding: 8px 5px;
        background: rgba(91, 140, 255, 0.1);
        border-radius: 12px;
    }
    
    .stat-value {
        font-size: 1.1rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
        margin-top: 2px;
    }
    
    /* 路径地图 - 核心区域，占据主要空间 */
    .path-map-container {
        padding: 12px;
        margin-bottom: 10px;
        flex: 1;
        display: flex;
        flex-direction: column;
        min-height: 0;
    }
    
    /* 周导航紧凑 */
    .week-nav-mobile {
        padding: 8px 10px;
        margin-bottom: 8px;
        gap: 15px;
    }
    
    .week-nav-btn {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    
    .week-nav-info {
        font-size: 1rem;
    }
    
    .week-progress-indicator {
        font-size: 0.8rem;
        margin-bottom: 8px;
    }
    
    /* 路径网格 - 紧凑但可点击 */
    .mobile-grid {
        gap: 6px;
        flex: 1;
    }
    
    .mobile-grid .path-node {
        border-radius: 10px;
        min-height: 45px;
    }
    
    .mobile-grid .path-node .day-number {
        font-size: 0.65rem;
    }
    
    .mobile-grid .path-node .day-icon {
        font-size: 1rem;
    }
    
    /* 成就墙入口 - 横向紧凑 */
    .achievement-wall-entry {
        margin-bottom: 8px;
        flex-shrink: 0;
    }
    
    .entry-content {
        padding: 12px 15px;
        display: flex;
        align-items: center;
        gap: 12px;
        text-align: left;
    }
    
    .entry-icon {
        font-size: 36px;
        margin-bottom: 0;
        animation: none;
    }
    
    .entry-content h3 {
        font-size: 1rem;
        margin-bottom: 2px;
    }
    
    .entry-content p {
        font-size: 0.8rem;
        margin-bottom: 0;
    }
    
    .entry-count {
        margin-left: auto;
        padding: 4px 10px;
        font-size: 0.75rem;
    }
    
    /* 页脚隐藏 */
    .footer {
        display: none;
    }
    
    .compare-images {
        grid-template-columns: 1fr;
    }
    
    .compare-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .app-container {
        padding: 8px;
    }
    
    .header {
        padding: 12px 8px 8px;
    }
    
    .header-icon {
        font-size: 36px;
    }
    
    .header h1 {
        font-size: 1.2rem;
    }
    
    .subtitle {
        font-size: 0.8rem;
    }
    
    .progress-bar-container {
        height: 24px;
    }
    
    .stats-container {
        gap: 8px;
    }
    
    .stat-item {
        padding: 6px 3px;
    }
    
    .stat-value {
        font-size: 0.95rem;
    }
    
    .stat-label {
        font-size: 0.7rem;
    }
    
    .path-map-container {
        padding: 10px;
    }
    
    .mobile-grid {
        gap: 4px;
    }
    
    .mobile-grid .path-node {
        border-radius: 8px;
        min-height: 40px;
    }
    
    .week-nav-mobile {
        padding: 6px 8px;
        gap: 12px;
    }
    
    .week-nav-btn {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    
    .week-nav-info {
        font-size: 0.9rem;
    }
    
    .achievement-wall-entry {
        margin-bottom: 6px;
    }
    
    .entry-content {
        padding: 10px 12px;
    }
    
    .entry-icon {
        font-size: 28px;
    }
    
    .entry-content h3 {
        font-size: 0.9rem;
    }
    
    .entry-content p {
        font-size: 0.75rem;
    }
    
    .checkin-modal,
    .compare-modal,
    .postcard-modal {
        margin: 10px;
        max-height: 85vh;
    }
    
    .checkin-content {
        padding: 20px;
    }
    
    .photo-upload-box {
        height: 160px;
    }
    
    .postcard-container {
        grid-template-columns: 1fr;
    }
}

/* 庆祝动画 */
.celebration-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
}

.celebration-overlay.active {
    opacity: 1;
    visibility: visible;
}

.celebration-content {
    text-align: center;
    animation: celebration-pop 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes celebration-pop {
    0% { transform: scale(0); }
    100% { transform: scale(1); }
}

.celebration-emoji {
    font-size: 120px;
    margin-bottom: 20px;
    animation: trophy-shine 2s infinite;
}

@keyframes trophy-shine {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.3); }
}

.celebration-content h2 {
    font-size: 2.5rem;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
}

.celebration-content p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.celebration-btn {
    padding: 15px 40px;
    background: linear-gradient(135deg, var(--success) 0%, #7bed9f 100%);
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.celebration-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(46, 213, 115, 0.4);
}

/* 手机端周导航 */
.week-nav-mobile {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 15px;
    margin-bottom: 10px;
    background: var(--bg-light);
    border-radius: 16px;
}

.week-nav-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.week-nav-btn:hover:not(:disabled) {
    background: var(--primary-dark);
    transform: scale(1.1);
}

.week-nav-btn:disabled {
    background: var(--bg-card);
    color: var(--text-muted);
    cursor: not-allowed;
    opacity: 0.5;
}

.week-nav-info {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    min-width: 80px;
    text-align: center;
}

.week-progress-indicator {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

/* 手机端单周视图 */
.mobile-single-week {
    animation: fadeIn 0.3s ease;
}

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

.mobile-grid {
    grid-template-columns: repeat(7, 1fr) !important;
    gap: 8px;
}

.mobile-grid .path-node {
    border-radius: 12px;
}

.mobile-grid .path-node .day-number {
    font-size: 0.7rem;
}

.mobile-grid .path-node .day-icon {
    font-size: 1.2rem;
}

/* 响应式调整 */
@media (max-width: 480px) {
    .mobile-grid {
        grid-template-columns: repeat(7, 1fr) !important;
        gap: 6px;
    }
    
    .mobile-grid .path-node {
        border-radius: 10px;
    }
    
    .week-nav-mobile {
        padding: 12px;
        gap: 15px;
    }
    
    .week-nav-btn {
        width: 36px;
        height: 36px;
    }
    
    .week-nav-info {
        font-size: 1.1rem;
    }
}

/* 尝试隐藏手机地址栏 */
@supports (-webkit-touch-callout: none) {
    /* iOS 设备 */
    body {
        min-height: 100vh;
        min-height: -webkit-fill-available;
    }
    
    html {
        height: -webkit-fill-available;
    }
}

/* 全屏模式样式 */
.app-container {
    min-height: 100vh;
    min-height: 100dvh; /* 动态视口高度 */
}