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

:root {
    --primary-color: #1a73e8;
    --primary-hover: #1557b0;
    --text-primary: #202124;
    --text-secondary: #5f6368;
    --background: #ffffff;
    --surface: #f8f9fa;
    --border: #dadce0;
    --success: #34a853;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background-color: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 24px 16px;
}

/* 头部 */
.header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 32px;
}

.app-info {
    display: flex;
    gap: 16px;
}

.app-icon {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.app-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.app-name {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
}

.app-developer {
    font-size: 14px;
    color: var(--primary-color);
}

.app-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 8px;
    font-size: 13px;
    color: var(--text-secondary);
}

.rating {
    display: flex;
    align-items: center;
    gap: 4px;
}

.rating svg {
    color: #fbbc04;
}

.age-rating {
    padding: 2px 6px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 12px;
}

.download-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 32px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.2s;
    white-space: nowrap;
}

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

/* 截图 */
.screenshots {
    margin-bottom: 32px;
    overflow: hidden;
}

.screenshots-container {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
}

.screenshots-container::-webkit-scrollbar {
    height: 6px;
}

.screenshots-container::-webkit-scrollbar-track {
    background: var(--surface);
    border-radius: 3px;
}

.screenshots-container::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

.screenshot {
    flex-shrink: 0;
    width: 180px;
    height: 320px;
    object-fit: cover;
    border-radius: 12px;
    scroll-snap-align: start;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 关于 */
.about {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.about h2,
.version-info h2,
.changelog h2 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.description {
    font-size: 14px;
    color: var(--text-secondary);
    max-height: 120px;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.description.expanded {
    max-height: 1000px;
}

.description p {
    margin-bottom: 12px;
}

.description ul {
    margin-left: 20px;
    margin-bottom: 12px;
}

.description li {
    margin-bottom: 6px;
}

.hidden-text {
    opacity: 0.8;
}

.expand-btn {
    margin-top: 12px;
    padding: 8px 16px;
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.expand-btn:hover {
    text-decoration: underline;
}

/* 版本信息 */
.version-info {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-label {
    font-size: 12px;
    color: var(--text-secondary);
}

.info-value {
    font-size: 14px;
    color: var(--text-primary);
}

/* 更新日志 */
.changelog {
    margin-bottom: 48px;
}

.changelog-content {
    font-size: 14px;
    color: var(--text-secondary);
}

.changelog-content ul {
    margin-left: 20px;
    margin-top: 8px;
}

.changelog-content li {
    margin-bottom: 4px;
}

/* 页脚 */
.footer {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    font-size: 13px;
    color: var(--text-secondary);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 12px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--primary-color);
}

/* 响应式 */
@media (max-width: 600px) {
    .header {
        flex-direction: column;
    }

    .download-btn {
        width: 100%;
        justify-content: center;
    }

    .app-icon {
        width: 64px;
        height: 64px;
    }

    .app-name {
        font-size: 20px;
    }

    .screenshot {
        width: 140px;
        height: 250px;
    }

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

/* 深色模式 */
@media (prefers-color-scheme: dark) {
    :root {
        --text-primary: #e8eaed;
        --text-secondary: #9aa0a6;
        --background: #202124;
        --surface: #292a2d;
        --border: #3c4043;
    }

    .app-icon {
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    }

    .screenshot {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }
}
