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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f5f5f5;
    max-width: 450px;
    margin: 0 auto;
    min-height: 100vh;
    padding-bottom: 60px;
}

/* 顶部标题 */
.header {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    padding: 12px 15px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-title {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
}

/* 主App区域 */
.main-app {
    background: #fff;
    padding: 15px;
    margin-bottom: 10px;
}

.app-card {
    background: #fff;
}

.app-info-row {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.app-icon {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    margin-right: 12px;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.app-meta {
    flex: 1;
}

.app-name-row {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.app-name {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-right: 8px;
}

.official-tag {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    color: #fff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 3px;
}

.app-details {
    font-size: 12px;
    color: #666;
}

.detail-row {
    display: flex;
    gap: 10px;
    margin-bottom: 4px;
}

.detail-row span {
    white-space: nowrap;
}

.detail-row em {
    font-style: normal;
    color: #999;
}

.download-btn {
    display: block;
    width: 100%;
    padding: 14px 0;
    background: linear-gradient(135deg, #4CAF50 0%, #43A047 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    box-shadow: 0 4px 15px rgba(76,175,80,0.3);
    transition: transform 0.2s;
}

.download-btn:active {
    transform: scale(0.98);
}

/* 热门游戏区域 */
.hot-games {
    background: #fff;
    padding: 15px;
    margin-bottom: 10px;
}

.section-title {
    display: flex;
    align-items: center;
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.title-icon {
    margin-right: 6px;
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px 8px;
}

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

.app-item-icon {
    width: 55px;
    height: 55px;
    border-radius: 12px;
    margin: 0 auto 6px;
    object-fit: cover;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    display: block;
}

.app-item-name {
    font-size: 11px;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 2px;
}

.app-item a {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* App介绍区域 */
.app-intro {
    background: #fff;
    padding: 15px;
    margin-bottom: 10px;
}

.intro-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
    padding-left: 10px;
    border-left: 3px solid #2196F3;
}

.intro-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 15px;
    text-align: justify;
}

.intro-subtitle {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin: 20px 0 10px;
    padding-left: 10px;
    border-left: 3px solid #4CAF50;
}

.safety-list {
    font-size: 14px;
    color: #666;
    line-height: 2;
}

.safety-list p {
    margin-bottom: 5px;
}

.feature-list {
    font-size: 14px;
    color: #666;
    line-height: 2;
}

.feature-list p {
    margin-bottom: 5px;
}

/* 评论区域 */
.comments-section {
    background: #fff;
    padding: 15px;
    margin-bottom: 10px;
}

.section-header {
    display: flex;
    align-items: center;
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.header-icon {
    margin-right: 6px;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.comment-item {
    padding-bottom: 15px;
    border-bottom: 1px solid #f5f5f5;
}

.comment-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.comment-header {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.comment-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    margin-right: 10px;
    object-fit: cover;
}

.comment-info {
    flex: 1;
}

.comment-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.comment-time {
    font-size: 12px;
    color: #999;
}

.comment-content {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    padding-left: 46px;
}

/* 底部区域 */
.footer {
    background: #f8f8f8;
    padding: 25px 15px 30px;
    text-align: center;
    border-top: 1px solid #eee;
}

.footer-links {
    margin-bottom: 20px;
}

.footer-links a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
}

.footer-links a:hover {
    color: #2196F3;
}

.footer-links span {
    color: #ccc;
    margin: 0 12px;
}

.footer-download {
    font-size: 14px;
    color: #333;
    margin-bottom: 20px;
    font-weight: 500;
}

.footer-qr {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.qr-item {
    text-align: center;
    text-decoration: none;
    color: inherit;
}

.qr-img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

/* 管理入口 */
.admin-link {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: #ff6b6b;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 12px;
    box-shadow: 0 4px 15px rgba(255,107,107,0.4);
    z-index: 100;
}

/* 响应式 */
@media (max-width: 350px) {
    .apps-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .detail-row {
        flex-wrap: wrap;
        gap: 5px;
    }
}
