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

html, body {
    width: 100%;
    min-height: 100%;
    font-family: "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    background-color: #fff;
    color: #333;
}

/* 模板2样式 - 直接从 pack 复制 */
.template-2 {
    background-color: #fff;
}

.template-2 .t-bg-2 {
    background: url("../images/distribute-bg.png") no-repeat center;
    background-size: cover;
    height: 130px;
}

.template-2 .content {
    margin-top: 75px;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px 40px;
}

.template-common {
    text-align: center;
}

.template-common .t-icon {
    width: 180px;
    height: 180px;
    margin: 0 auto 20px;
    background-color: #fff;
    border-radius: 25px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.template-common .t-icon img {
    width: 120px;
    height: 120px;
    border-radius: 30px;
    border: 1px solid #e5e5e5;
}

.template-common .t-name {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e5e5;
}

.template-common .t-name .tit {
    font-size: 28px;
    font-weight: 600;
    color: #333;
    margin-top: 15px;
    margin-bottom: 10px;
}

.template-common .t-name .name-info {
    font-size: 12px;
    color: #999;
    line-height: 1.8;
}

.template-common .t-name .name-info span {
    display: inline-block;
    margin: 0 3px;
}

/* 信任提示 */
.trust-link {
    text-align: center;
    margin: 20px 0 30px;
}

.trust-link a {
    color: #5B8FF9;
    font-size: 13px;
    text-decoration: none;
}

/* 下载按钮 */
.template-btn-wrap {
    text-align: center;
    margin: 35px 0 15px;
}

.template-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #40acf1;
    color: #fff;
    font-size: 18px;
    font-weight: normal;
    padding: 0 38px;
    height: 50px;
    line-height: 48px;
    border-radius: 25px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(64, 172, 241, 0.3);
    transition: all 0.2s;
}

.template-btn:active {
    transform: scale(0.98);
    opacity: 0.9;
}

.download-icon {
    width: 18px;
    height: 18px;
}

.t-apply {
    text-align: center;
    font-size: 13px;
    color: #999;
    margin-top: 15px;
}

/* 二维码 */
.t-code {
    text-align: center;
    margin: 40px auto 0;
    width: 200px;
}

.t-code #qrcode {
    margin: 0 auto 5px;
}

.t-code #qrcode canvas {
    border: 1px solid #e5e5e5;
    width: 200px !important;
    height: 200px !important;
    display: block;
    margin: 0 auto;
}

.code-text {
    margin-top: 5px;
    font-size: 14px;
    color: #666;
}

/* 应用描述 */
.t-introduce {
    margin-top: 25px;
    text-align: left;
    color: #333;
}

.t-introduce .tit {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.t-introduce p {
    font-size: 14px;
    color: #333;
    line-height: 1.8;
    margin-top: 5px;
}

/* 遮罩层 */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.mask-image {
    max-width: 90%;
    max-height: 90%;
}

/* 弹窗 */
.modal-dialog {
    background: #fff;
    border-radius: 16px;
    width: 90%;
    max-width: 480px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    font-size: 28px;
    color: #999;
    cursor: pointer;
}

.modal-body {
    padding: 20px;
}

.modal-body p {
    font-size: 15px;
    color: #666;
    margin-bottom: 20px;
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.btn {
    padding: 10px 30px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: #6C7FF2;
    color: #fff;
}

.btn-primary:hover {
    background: #5a6dd9;
}

.btn-primary:active {
    background: #4a5dc0;
}

.btn-secondary {
    background: #f8f9fa;
    color: #666;
    border: 1px solid #dee2e6;
}

/* 响应式 */
@media (max-width: 767px) {
    .template-2 .t-bg-2 {
        height: 32px;
    }
    
    .template-2 .content {
        margin-top: 58px;
        padding: 0 15px 20px;
    }
    
    .template-common .t-icon {
        width: 90px;
        height: 90px;
        border-radius: 19px;
        box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
        margin-bottom: 13px;
    }
    
    .template-common .t-icon img {
        width: 68px;
        height: 68px;
        border-radius: 11px;
    }
    
    .template-common .t-name {
        margin-bottom: 13px;
        padding-bottom: 13px;
    }
    
    .template-common .t-name .tit {
        font-size: 19px;
        font-weight: 600;
        color: #333;
        margin-top: 9px;
        margin-bottom: 7px;
    }
    
    .template-common .t-name .name-info {
        font-size: 12px;
        color: #999;
    }
    
    .trust-link {
        margin: 18px 0 20px;
    }
    
    .trust-link a {
        font-size: 12px;
        color: #007AFF;
    }
    
    .template-btn-wrap {
        margin: 20px 0 12px;
    }
    
    .template-btn {
        font-size: 14px;
        padding: 0 32px;
        height: 39px;
        line-height: 37px;
        border-radius: 19px;
        box-shadow: 0 3px 10px rgba(64, 172, 241, 0.3);
    }
    
    .t-apply {
        font-size: 12px;
        margin-top: 12px;
    }
    
    .t-code {
        width: 125px;
        margin-top: 26px;
    }
    
    .t-code #qrcode canvas {
        width: 125px !important;
        height: 125px !important;
    }
    
    .t-code .code-text {
        font-size: 12px;
        margin-top: 7px;
    }
    
    .t-introduce {
        margin-top: 19px;
    }
    
    .t-introduce .tit {
        font-size: 15px;
    }
    
    .t-introduce p {
        font-size: 12px;
    }
}
