/* --- 全局和重置 --- */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin: 0;
    background-color: #f0f2f5; /* 更柔和的背景色 */
    color: #333;
    line-height: 1.6;
}

/* --- 顶部导航栏 --- */
.navbar {
    background-color: #ffffff;
    padding: 10px 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-content {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    align-items: center;
}

.store-logo {
    height: 30px;
}

/* --- 主内容区 --- */
.main-container {
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* --- 应用信息卡片 --- */
.app-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.app-logo {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    margin-right: 20px;
    flex-shrink: 0;
}

.app-info h1 {
    font-size: 24px;
    margin: 0 0 5px 0;
    font-weight: 600;
}

.app-meta {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.app-meta .rating {
    color: #f39c12;
    margin-right: 10px;
}

.app-tags {
    font-size: 14px;
    color: #666;
}

/* --- 版本号区域 --- */
.version-container {
    background-color: #f8f9fa; /* 浅灰色背景 */
    border-radius: 8px;
    padding: 15px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-bottom: 20px;
    text-align: center;
}

.info-item .label {
    color: #7f8c8d; /* 标签文字颜色 */
    font-size: 14px;
}

.info-item .value {
    color: #3498db; /* 数值文字颜色 */
    font-size: 16px;
    font-weight: 500;
}

/* --- 下载按钮 --- */
.download-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

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

.btn-primary {
    background-color: #007bff;
    color: white;
}

.btn-primary:hover {
    background-color: #0056b3;
}

.btn-secondary {
    background-color: #ffffff;
    color: #007bff;
    border: 2px solid #007bff; /* 美化边框 */
    box-shadow: 0 1px 3px rgba(0,0,0,0.05); /* 细微阴影 */
}

.btn-secondary:hover {
    background-color: #f0f8ff;
}

/* --- 简介和评论 --- */
h2 {
    font-size: 20px;
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.review-item {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}
.review-item:last-child {
    border-bottom: none;
}
.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}
.review-name {
    font-weight: 500;
}
.review-rating {
    color: #f39c12;
}
.review-text {
    margin: 0;
    color: #555;
}


/* --- 页脚 --- */
.footer {
    text-align: center;
    padding: 20px;
    font-size: 12px;
    color: #999;
}

/* --- 新增：举报功能样式 --- */
.report-float-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #dc3545;
    color: white;
    border: none;
    border-radius: 50px;
    width: 60px;
    height: 60px;
    font-size: 14px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    cursor: pointer;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.report-float-btn:hover {
    transform: scale(1.1);
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: none; /* 默认隐藏 */
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
    position: relative;
}

.modal-close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    cursor: pointer;
    color: #999;
}

#report-form input,
#report-form textarea,
#report-form button {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    border: 1px solid #ddd;
    box-sizing: border-box; /* 确保 padding 不会影响宽度 */
}

#report-form textarea {
    resize: vertical;
}

#report-form button {
    background-color: #dc3545;
    color: white;
    font-weight: bold;
    border: none;
    cursor: pointer;
}

.custom-alert {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    z-index: 3000;
    display: none; /* 默认隐藏 */
    text-align: center;
}


