* {
    box-sizing: border-box;
    -webkit-overflow-scrolling: touch;
    tap-highlight-color: transparent;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

html,
body,
p,
ul,
dl,
dt,
dd,
br,
hr,
h1,
h2,
h3,
h4,
h5,
h6,
ol {
    margin: 0;
    padding: 0;
}

html {
    -webkit-font-smoothing: antialiased;
    text-size-adjust: 100%;
    counter-reset: section;
    touch-action: manipulation;
}

/* @media screen and (min-width: 375px) {
    html {
        font-size:100px;
        font-size: 1000vw/37.5
    }
} */
body,
button,
input,
select,
textarea {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Microsoft Yahei";
    outline: 0;
}

body,
html {
    height: 100%;
}

body {
    padding-bottom: constant(safe-area-inset-bottom);
    padding-bottom: env(safe-area-inset-bottom);
    background-color: #FFFFFF;
}

button {
    font-size: inherit;
}

input,
textarea {
    -webkit-user-select: auto !important;
    -webkit-touch-callout: inherit !important;
}

:focus {
    outline: none;
}

a,
a:hover,
a:visited,
a:focus,
a:link {
    color: inherit;
    text-decoration: none;
    outline: none;
}

img {
    max-width: 100%;
}

li {
    list-style: none;
}

.app {
    position: relative;
    max-width: 640px;
    min-width: 320px;
    margin: 0 auto;
    height: 100%;
    background: #FFFFFF;
}

:root {
    /* 绿色 */
    --green-color: #00cc83;

    /* 深蓝 */
    --dark-blue-color: #132668;

    /* 橙色 */
    --orange-color: #ee7a45;


    --theme1-color: var(--dark-blue-color);
    --theme2-color: var(--green-color);
    --theme3-color: var(--orange-color);

}

.flex {
    display: flex;
    align-items: center;
    justify-content: center;
    align-content: center;
}

.btn {
    position: relative;
    height: 40px;
    line-height: 40px;
    font-size: 14px;
    border-radius: 6px;
    color: #fff;
    text-align: center;
    text-decoration: none;
    outline: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    -moz-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    outline: none;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0);
    -webkit-tap-highlight-color: transparent;
}

.btn svg {
    position: absolute;
    left: 20px;
}

.cover {
    position: relative;
    width: 100%;
    height: 50%;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    overflow: hidden;
    margin-bottom: 25%;
}

.cover::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: var(--theme1);
    opacity: .2;
}

.btn:active {
    opacity: 0.6;
}

.style1 .btn {
    margin: 30px;
    box-shadow: 0 10px 12px -6px #9b9b9b;
}

/* --------------------- theme1 start --------------------- */
.theme1 {
    --theme-color: var(--theme1-color);
}

.theme1 .btn:first-child {
    margin-bottom: 0;
}

.theme1 .btn.ios {
    color: #fff;
}

.theme1 .btn.ios {
    background-color: var(--theme-color);
    color: #fff;
}

.theme1.style1 .btn.android {
    border: 1px solid var(--theme-color);
    color: var(--theme-color);
}

.theme1 .cover {
    background-color: var(--theme-color);
}

.theme1 .cover::after {
    content: '';
    background-color: var(--theme-color);
}

/* --------------------- theme1 end --------------------- */

.theme2 {
    --theme-color: var(--theme2-color);
}

.theme2 .btn.ios {
    background-color: var(--theme-color);
    color: #fff;
}

.theme2.style1 .btn.android {
    border: 1px solid var(--theme-color);
    color: var(--theme-color);
}

.theme2 .cover {
    background-color: var(--theme-color);
}

.theme2 .cover::after {
    content: '';
    background-color: var(--theme-color);
}

/* --------------------- .theme3-color --------------------- */
.theme3 {
    --theme-color: var(--theme3-color);
}

.theme3 .btn.ios {
    background-color: var(--theme-color);
    color: #fff;
}

.theme3.style1 .btn.android {
    border: 1px solid var(--theme-color);
    color: var(--theme-color);
}

.theme3 .cover {
    background-color: var(--theme-color);
}

.theme3 .cover::after {
    content: '';
    background-color: var(--theme-color);
}


/* ---------------------- */
.style3 .log-img{
    display: block;
    width: 30%;
    margin: 0 auto;
    margin-top: 20px;
}

.style3 .btn {
    box-sizing: border-box;
    height: 48px;
    line-height: 48px;
    border-radius: 24px;
    background: var(--theme-color);
    text-align: center;
    width: 100%;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    vertical-align: -3px;
    display: none;
}

.style3 .btn-group {
    width: 76%;
    margin: 20px auto;
}

.style3 .btn.ios {
    display: flex
}

.style3 .btn svg{
    position: relative;
    left:auto;
    margin-right: 10px;
}

#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* 半透明黑色 */
    z-index: 9998; /* 确保遮罩层在所有内容之上 */
}

.spinner {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 8px solid #f3f3f3; /* Light grey */
    border-top: 8px solid #3498db; /* Blue */
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
    z-index: 9999; /* 确保加载动画在遮罩层之上 */
    margin-top: -30px;
    margin-left: -30px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#errorTip {
    display: none; /* Initially hide the error tip */
    position: fixed; /* Position it fixed on the screen */
    top: 40%; /* Center it vertically */
    left: 50%; /* Center it horizontally */
    transform: translate(-50%, -50%); /* Adjust the position to be centered */
    background-color: rgba(0, 0, 0, 0.73); /* Background color for the error tip */
    color: white; /* Text color */
    padding: 10px 20px; /* Padding inside the error tip */
    border-radius: 5px; /* Rounded corners */
    text-align: center; /* Center the text */
    z-index: 1000; /* Ensure it appears above other elements */
    opacity: 0; /* Initially fully transparent */
    animation: fadeIn 1s forwards; /* Apply the fadeIn animation */
    width: 90%;
}
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) translateY(100%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}



.app {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #FFF;
    position: relative;
    overflow: hidden;
}

.header-banner {
    width: 100%;
    height: auto;
    max-height: 40vh; /* 限制最大高度为视口的40% */
    overflow: hidden;
}

.header-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 保持图片比例，覆盖容器 */
    object-position: top; /* 从顶部开始显示图片 */
}

.content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

.app-icon {
    width: 40%;
    max-width: 200px;
    margin-top: -10px; /* 微调向上偏移 */
    margin-bottom: 15px; /* 减少底部边距 */
    border-radius: 20%;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.btn-group {
    width: 80%;
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.btn {
    padding: 15px;
    border-radius: 50px;
    background-color: #ff4500;
    color: white;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex; /* 添加flex布局 */
    justify-content: center; /* 水平居中 */
    align-items: center; /* 垂直居中 */
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.btn:active {
    transform: translateY(1px);
}

/* 加载动画 */
#loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 错误提示 */
#errorTip {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1001;
    display: none;
}

.error {
    padding: 15px 20px;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    border-radius: 8px;
    text-align: center;
}

#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 999;
}
