/**
 * 应用分发页面 - 本地化样式文件
 * 替代外部CDN依赖，提升加载速度和稳定性
 * 版本：v1.0
 */

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

html, body {
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    background: #f5f5f5;
}

/* ========== 容器布局 ========== */
.out-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.main {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

header {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.table-container {
    display: table;
    width: 100%;
}

.cell-container {
    display: table-cell;
    vertical-align: middle;
}

.app-brief {
    padding: 30px;
    text-align: center;
}

/* ========== 应用图标 ========== */
.icon-container {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 0px;
}

.icon-container .icon {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.icon-container .icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bg-path, .icon-icon_path {
    display: none;
}

/* ========== 应用信息 ========== */
.name {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.3;
}

.name .icon-warp i {
    font-style: normal;
}

.release-info {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
}

.release-info p {
    margin: 5px 0;
}

.release-info a {
    color: #007aff;
    text-decoration: none;
    margin: 0 5px;
}

.release-info a:hover {
    text-decoration: underline;
}

/* ========== 下载按钮 ========== */
.actions {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin: 30px 0;
}

.actions button {
    width: 100%;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 500;
    color: #fff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.actions button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.actions button:active {
    transform: translateY(0);
}

/* Android按钮 */
.actions button:first-child {
    background: linear-gradient(135deg, #3ddc84 0%, #07c160 100%);
    box-shadow: 0 4px 12px rgba(61, 220, 132, 0.3);
}

.actions button:first-child:hover {
    box-shadow: 0 6px 16px rgba(61, 220, 132, 0.4);
}

/* ========== 输入框（iOS密钥） ========== */
#keyInput {
    width: 100%;
    max-width: 400px;
    height: 50px;
    padding: 12px 20px;
    font-size: 18px;
    text-align: center;
    letter-spacing: 8px;
    border: 2px solid #e5e5ea;
    border-radius: 8px;
    outline: none;
    transition: all 0.3s ease;
}

#keyInput:focus {
    border-color: #007aff;
    box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.1);
}

#keyInput.error {
    border-color: #ff3b30;
    animation: shake 0.5s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* ========== 响应式设计 ========== */
@media (max-width: 768px) {
    .app-brief {
        padding: 20px;
    }
    
    .icon-container {
        width: 100px;
        height: 100px;
    }
    
    .name {
        font-size: 20px;
    }
    
    .actions button {
        padding: 12px 20px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .out-container {
        padding: 10px;
    }
    
    .app-brief {
        padding: 15px;
    }
    
    .icon-container {
        width: 80px;
        height: 80px;
    }
    
    .name {
        font-size: 18px;
    }
    
    .release-info {
        font-size: 13px;
    }
}

/* ========== 加载动画 ========== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.main {
    animation: fadeIn 0.5s ease;
}

/* ========== 工具类 ========== */
.wrapper {
    /* 保留兼容性 */
}

/* ========== 打印样式 ========== */
@media print {
    .actions button {
        display: none;
    }
}

/* ========== 应用名称强制居中 ========== */
.app-brief .name,
.app-brief .name .icon-warp,
.app-brief .name .icon-warp i {
    text-align: center !important;
    margin-left: auto;
    margin-right: auto;
}




