/* 手绘漫画风格CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Comic Neue', cursive;
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 50%, #fecfef 100%);
    min-height: 100vh;
    color: #2c3e50;
    overflow-x: hidden;
}

/* 手绘效果 */
.hand-drawn {
    border: 3px solid #2c3e50;
    border-radius: 15px;
    position: relative;
}

.hand-drawn::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border: 2px solid #e74c3c;
    border-radius: 18px;
    transform: rotate(-1deg);
    z-index: -1;
}

/* 头部样式 */
.museum-header {
    text-align: center;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.9);
    margin: 20px;
    border-radius: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    position: relative;
    transform: rotate(-0.5deg);
}

.museum-title {
    font-size: 3.5rem;
    color: #e74c3c;
    text-shadow: 3px 3px 0px #fff, 6px 6px 0px #ff6b6b;
    margin-bottom: 10px;
    transform: rotate(1deg);
}

.museum-subtitle {
    font-size: 1.3rem;
    color: #7f8c8d;
    font-weight: 300;
    transform: rotate(-0.5deg);
}

.apple-logo {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 3rem;
    animation: bounce 2s infinite;
}

/* 时间轴导航 */
.timeline-nav {
    margin: 40px 20px;
    position: relative;
    height: 80px;
}

.timeline-line {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #9b59b6, #e74c3c);
    border-radius: 2px;
    transform: translateY(-50%);
}

.nav-years {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    position: relative;
    z-index: 2;
}

.year-marker {
    background: #fff;
    padding: 10px 15px;
    border-radius: 20px;
    border: 3px solid #2c3e50;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    transform: rotate(-2deg);
}

.year-marker:nth-child(even) {
    transform: rotate(2deg);
}

.year-marker:hover {
    transform: scale(1.1) rotate(0deg);
    background: #f39c12;
    color: white;
}

/* 主要画廊区域 */
.museum-gallery {
    padding: 20px;
}

.gallery-intro {
    text-align: center;
    margin-bottom: 50px;
    background: rgba(255, 255, 255, 0.8);
    padding: 30px;
    border-radius: 20px;
    transform: rotate(0.5deg);
}

.gallery-intro h2 {
    font-size: 2.5rem;
    color: #8e44ad;
    margin-bottom: 15px;
}

.gallery-intro p {
    font-size: 1.2rem;
    color: #34495e;
    margin-bottom: 10px;
}

.stats-summary {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.stat-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    border: 2px solid #2c3e50;
    transform: rotate(-1deg);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.stat-badge:nth-child(2) {
    transform: rotate(1deg);
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.stat-badge:nth-child(3) {
    transform: rotate(-0.5deg);
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

/* iPhone卡片网格 */
.phone-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

/* iPhone卡片样式 */
.phone-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 25px;
    padding: 25px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    border: 3px solid #2c3e50;
    overflow: hidden;
}

.phone-card:nth-child(odd) {
    transform: rotate(-1deg);
}

.phone-card:nth-child(even) {
    transform: rotate(1deg);
}

.phone-card:hover {
    transform: scale(1.05) rotate(0deg);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.phone-card::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4);
    border-radius: 30px;
    z-index: -1;
    opacity: 0.7;
}

.phone-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.phone-name {
    font-size: 1.8rem;
    font-weight: bold;
    color: #2c3e50;
}

.phone-year {
    background: #e74c3c;
    color: white;
    padding: 8px 15px;
    border-radius: 15px;
    font-weight: bold;
    transform: rotate(-5deg);
}

.phone-image {
    width: 120px;
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 25px;
    margin: 20px auto;
    position: relative;
    border: 3px solid #2c3e50;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.phone-image::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 8px;
    background: #2c3e50;
    border-radius: 4px;
}

.phone-highlights {
    margin: 20px 0;
}

.phone-highlights h4 {
    color: #8e44ad;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

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

.highlight-list li {
    background: #f8f9fa;
    margin: 8px 0;
    padding: 10px;
    border-radius: 10px;
    border-left: 4px solid #3498db;
    position: relative;
}

.highlight-list li::before {
    content: '✨';
    margin-right: 8px;
}

.phone-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.stat-item {
    text-align: center;
    flex: 1;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #e74c3c;
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-top: 5px;
}

/* 页脚 */
.museum-footer {
    text-align: center;
    padding: 40px 20px;
    background: rgba(44, 62, 80, 0.9);
    color: white;
    margin-top: 50px;
    transform: rotate(-0.3deg);
}

.copyright {
    margin-top: 15px;
    font-size: 0.9rem;
    opacity: 0.8;
}

.copyright a {
    color: #3498db;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.copyright a:hover {
    color: #e74c3c;
    text-decoration: underline;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 80px;
    background: linear-gradient(135deg, #e74c3c, #f39c12);
    border: 3px solid #2c3e50;
    border-radius: 30px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    z-index: 1000;
    font-family: 'Comic Neue', cursive;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-50%) scale(0.8);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) scale(1);
}

.back-to-top:hover {
    transform: translateY(-50%) scale(1.1) rotate(-5deg);
    box-shadow: 0 12px 35px rgba(231, 76, 60, 0.4);
    background: linear-gradient(135deg, #f39c12, #e74c3c);
}

.back-to-top span:first-child {
    font-size: 1.8rem;
    margin-bottom: 2px;
}

.back-text {
    font-size: 0.7rem;
    font-weight: bold;
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.phone-card {
    animation: fadeInUp 0.6s ease forwards;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .museum-title {
        font-size: 2.5rem;
    }
    
    .phone-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .nav-years {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .year-marker {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
}