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

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background-color: #1a1a1a;
    color: #ffffff;
    line-height: 1.4;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 8px;
}

/* 英雄区域（中间文字） */
.hero {
    background: linear-gradient(180deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
    padding: 15px 8px;
    text-align: center;
    flex-shrink: 0;
}

.brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 8px;
}

.logo {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.brand-name {
    font-size: 14px;
    letter-spacing: 2px;
    font-weight: 500;
}

.badge {
    background: #d4af37;
    color: #1a1a1a;
    padding: 3px 6px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: bold;
}

.tagline {
    font-size: 18px;
    font-weight: 300;
    line-height: 1.3;
    margin-bottom: 8px;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
}

.description {
    font-size: 13px;
    color: #999;
    max-width: 300px;
    margin: 0 auto;
    line-height: 1.4;
}

/* 瀑布流画廊区域 */
.gallery-section {
    padding: 2px 3px;
    flex-shrink: 0;
}

.gallery-top {
    padding-bottom: 1px;
}

.gallery-bottom {
    padding-top: 1px;
}

.masonry {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3px;
    max-width: 100%;
    margin: 0 auto;
}

.masonry-item {
    border-radius: 2px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.masonry-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(212, 175, 55, 0.2);
}

.masonry-item img,
.masonry-item video {
    width: 100%;
    display: block;
    transition: transform 0.5s ease;
    object-fit: cover;
}

.masonry-item:hover img,
.masonry-item:hover video {
    transform: scale(1.02);
}

/* 图片加载动画 */
.masonry-item.loading {
    background: #2d2d2d;
    min-height: 50px;
    animation: pulse 1.5s infinite;
}

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

/* 下载区域 */
.download-section {
    background: linear-gradient(180deg, #2d2d2d 0%, #1a1a1a 100%);
    padding: 8px 8px 15px;
    text-align: center;
    flex-shrink: 0;
}

.disclaimer {
    font-size: 14px;
    color: #999;
    margin-bottom: 8px;
    line-height: 1.4;
}

.download-btn {
    display: inline-block;
    background: linear-gradient(135deg, #d4af37 0%, #b8860b 100%);
    color: #1a1a1a;
    text-decoration: none;
    padding: 12px 36px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 16px;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.download-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(212, 175, 55, 0.4);
}

/* 响应式设计 - 手机优先 */
@media (max-width: 480px) {
    .hero {
        padding: 10px 5px;
    }

    .brand {
        margin-bottom: 5px;
    }

    .tagline {
        font-size: 16px;
        margin-bottom: 5px;
    }

    .description {
        font-size: 12px;
        line-height: 1.3;
    }

    .gallery-section {
        padding: 2px 2px;
    }

    .masonry {
        gap: 2px;
    }

    .download-section {
        padding: 5px 5px 10px;
    }

    .disclaimer {
        font-size: 12px;
        margin-bottom: 5px;
    }

    .download-btn {
        padding: 10px 30px;
        font-size: 14px;
    }
}

/* 平板适配 */
@media (min-width: 481px) and (max-width: 768px) {
    .hero {
        padding: 10px 6px;
    }

    .tagline {
        font-size: 16px;
    }

    .masonry {
        gap: 4px;
    }
}

/* 桌面端适配 */
@media (min-width: 769px) {
    .hero {
        padding: 20px 15px;
    }

    .tagline {
        font-size: clamp(20px, 3vw, 36px);
    }

    .description {
        font-size: 14px;
    }

    .gallery-section {
        padding: 8px;
    }

    .masonry {
        gap: 8px;
        max-width: 700px;
    }

    .download-section {
        padding: 15px 15px 20px;
    }

    .disclaimer {
        font-size: 16px;
    }

    .download-btn {
        padding: 14px 40px;
        font-size: 18px;
    }
}
