/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 响应式字体大小设置 */
html {
    font-size: 50px;
}

/* 主体样式 */
body {
    color: #666;
    background: #edf0f2;
    width: 10rem;
    margin: 0 auto;
    padding: 1.06667rem 0.45333rem;
    font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 16px;
}

/* 头部样式 */
header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.53333rem;
}

/* 返回按钮容器 */
.back-button-container {
    position: fixed;
    left: 0.32rem;
    top: 0.32rem;
    z-index: 1000;
}

/* 返回按钮样式 */
.back-button {
    display: flex;
    align-items: center;
    gap: 0.10667rem;
    padding: 0.16rem 0.32rem;
    background: #fff;
    border: 1px solid #eaeef1;
    border-radius: 0.13333rem;
    color: #666;
    font-size: 0.32rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.back-button:hover {
    background: #f8f9fa;
    border-color: #4244d6;
    color: #4244d6;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(66, 68, 214, 0.2);
}

.back-button svg {
    width: 0.42667rem;
    height: 0.42667rem;
    transition: transform 0.3s ease;
}

.back-button:hover svg {
    transform: translateX(-2px);
}

header img {
    height: 0.53333rem;
}

/* 面板样式 */
.panel {
    margin-bottom: 0.21333rem;
    padding: 0.64rem 0.32rem;
    border-radius: 0.21333rem;
    border: 1px solid #eaeef1;
    background: #fff;
    font-size: 0.32rem;
}

.panel h4 {
    color: #333;
    text-align: center;
    font-size: 0.42667rem;
    font-style: normal;
    font-weight: 600;
    margin-bottom: 0.32rem;
}

/* 布局样式 */
.column {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.64rem;
}

.s8 {
    gap: 0.21333rem;
}

/* 链接样式 */
.link {
    font-size: 0.37333rem;
    text-decoration: underline;
    font-weight: 600;
    color: #fc667a;
    cursor: pointer;
    display: block;
    text-align: center;
    padding: 0.16rem 0;
}

.no-line {
    text-decoration: none !important;
}

/* 按钮样式 */
.btn {
    display: flex;
    min-width: 3.2rem;
    height: 0.85333rem;
    padding: 0.18667rem 0.50667rem;
    justify-content: center;
    align-items: center;
    gap: 0.05333rem;
    border-radius: 0.13333rem;
    background: linear-gradient(270deg, #FF7748 0%, #FE5B81 100%), linear-gradient(0deg, #4A4661 0%, #4A4661 100%), #3a306d;
    color: #fff;
    font-size: 0.32rem;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 119, 72, 0.3);
}

.btn-s2 {
    min-width: 3.73333rem;
}

.btn-s3 {
    min-width: 3.73333rem;
}

/* 提示文字样式 */
.tips {
    color: #4244d6;
    text-align: center;
    font-size: 0.37333rem;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    margin-top: 0.32rem;
}

.tips-2 {
    color: #666;
    text-align: center;
    font-size: 0.37333rem;
    line-height: 1.5;
}

.tips-2 p {
    margin-bottom: 0.16rem;
}

/* 高亮链接样式 */
.light {
    color: #2991d7;
    text-align: center;
    font-size: 0.42667rem;
    font-weight: 600;
    text-decoration-line: underline;
    display: block;
}

/* 间距工具类 */
.mt24 {
    margin-top: 0.64rem;
}

.mt8 {
    margin-top: 0.21333rem;
}

.mt4 {
    margin-top: 0.10667rem;
}

.tc {
    text-align: center;
}

/* 列表样式 */
ul {
    margin-top: 0.10667rem;
    padding-left: 0.53333rem;
}

ul li {
    margin-bottom: 0.53333rem;
    font-size: 0.32rem;
    line-height: 1.5;
    color: #666;
}

/* iOS 安装说明图片与步骤样式 */
.ios-guide-img {
    width: 100%;
    max-width: 6rem;
    border: 1px solid #eaeef1;
    border-radius: 0.13333rem;
    display: block;
    margin: 0 auto;
}
.ios-guide-steps {
    padding-left: 0.42667rem;
    margin-top: 0.32rem;
}
.ios-guide-steps li {
    color: #495057;
    font-size: 0.32rem;
    line-height: 1.6;
    margin-bottom: 0.16rem;
}

/* 弹窗样式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: white;
    border-radius: 0.21333rem;
    max-width: 8rem;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 0.21333rem 1.06667rem rgba(0, 0, 0, 0.2);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.show .modal-content {
    transform: scale(1);
}

.modal-header {
    padding: 0.53333rem;
    border-bottom: 1px solid #eaeef1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    color: #28a745;
    font-size: 0.48rem;
    font-weight: 600;
    margin: 0;
}

.modal-close {
    font-size: 0.64rem;
    color: #999;
    cursor: pointer;
    line-height: 1;
    padding: 0.10667rem;
}

.modal-close:hover {
    color: #333;
}

.modal-body {
    padding: 0.53333rem;
}

.success-message {
    color: #28a745;
    font-size: 0.37333rem;
    text-align: center;
    margin-bottom: 0.42667rem;
    font-weight: 500;
}

.copied-url-display {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 0.10667rem;
    padding: 0.32rem;
    margin-bottom: 0.42667rem;
    font-family: 'Courier New', monospace;
    font-size: 0.32rem;
    color: #495057;
    word-break: break-all;
    text-align: center;
}

.instructions {
    margin-bottom: 0.42667rem;
}

.instructions h4 {
    color: #007bff;
    font-size: 0.37333rem;
    margin-bottom: 0.21333rem;
    font-weight: 600;
}

.instructions ol {
    padding-left: 0.42667rem;
    margin: 0;
}

.instructions li {
    color: #495057;
    font-size: 0.32rem;
    line-height: 1.5;
    margin-bottom: 0.16rem;
}

.modal-footer {
    padding: 0.42667rem 0.53333rem;
    border-top: 1px solid #eaeef1;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(270deg, #FF7748 0%, #FE5B81 100%);
    color: white;
    border: none;
    padding: 0.21333rem 0.64rem;
    border-radius: 0.13333rem;
    font-size: 0.32rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(255, 119, 72, 0.3);
}

/* 响应式设计 */
@media (max-width: 768px) {
    html {
        font-size: 40px;
    }
    
    body {
        width: 100%;
        padding: 0.8rem 0.4rem;
    }
    
    .modal-content {
        max-width: 95%;
        margin: 0.4rem;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 35px;
    }
    
    .panel {
        padding: 0.5rem 0.25rem;
    }
    
    .btn {
        min-width: 2.8rem;
        height: 0.8rem;
        font-size: 0.3rem;
    }
}