@font-face {
    font-family: 'AlkatipBasmatom';
    src: url('font/ALKATIPBasmaTom.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

div,
button,
span,
p {
    font-family: 'AlkatipBasmatom', -apple-system, BlinkMacSystemFont;
}

body {
    font-family: 'AlkatipBasmatom', -apple-system, BlinkMacSystemFont;
    min-height: 100vh;
    direction: rtl;
    overflow-x: hidden;
    background: #f0f0f0;
}

.container {
    max-width: 400px;
    margin: 0 auto;
    min-height: 100vh;
    background: linear-gradient(180deg, rgba(156, 28, 253, 1) 0%, rgba(156, 28, 253, 0.8) 30%, rgba(1, 145, 255, 0.318) 70%, rgba(255, 255, 255, 0.1) 100%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.container .img {
    position: absolute;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
}

.header {
    text-align: center;
    padding: 20px 15px 0;
    color: white;
    position: relative;
    z-index: 2;
}

.header .top-text {
    font-size: 12px;
    line-height: 1.6;
    margin-bottom: 10px;
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.5);
}

.header .main-title {
    font-size: 24px;
    line-height: 1.3;
}

.header .subtitle {
    font-size: 22px;
    margin-bottom: 20px;
    line-height: 1.3;
}

.header .description {
    font-size: 13px;
    line-height: 1.6;
    opacity: 0.9;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    padding-bottom: 22px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
    overflow: hidden;
    position: relative;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 动态描述文字滚动容器 */
.scroll-content {
    position: relative;
    width: 100%;
    padding: 10px 15px;
    box-sizing: border-box;
}

.scroll-item {
    height: auto;
    min-height: 40px;
    line-height: 1.6;
    position: absolute;
    width: calc(100% - 30px);
    font-family: 'AlkatipBasmatom', -apple-system, BlinkMacSystemFont;
    direction: rtl;
    text-align: right;
    box-sizing: border-box;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-wrap: break-word;
}

.phone-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    margin: 20px 0;
}

.phone-image {
    max-width: 280px;
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.download-btn {
    background: linear-gradient(270deg, rgba(156, 28, 253, 1) 0%, rgba(1, 145, 255, 1) 100%);
    color: white;
    border: none;
    padding: 10px 40px;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.download-btn:active {
    transform: translateY(0);
}

.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
}

.footer::before {
    content: '';
    position: absolute;
    top: -40px;
    left: 0;
    width: 100%;
    height: 50px;
    background: white;
    clip-path: ellipse(80% 100% at 50% 100%);
}

.app-logo {
    width: 80px;
    height: 80px;
    margin: -70px auto 20px;
    display: block;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    object-fit: cover;
    position: relative;
    z-index: 10;
}

.download-section h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 8px;
    text-align: center;
}

.download-section p {
    font-size: 14px;
    color: rgba(1, 1, 1, 0.5);
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.5;
}

.footer .download-btn {
    width: 80%;
    margin: 0 auto;
    display: block;
    border-radius: 50px;
    padding: 15px 40px;
    font-size: 18px;
    margin-bottom: 20px;
    font-size: 16px;
    font-family: 'AlkatipBasmatom', -apple-system, BlinkMacSystemFont;
}

@media (max-width: 480px) {
    .container {
        max-width: 100%;
    }

    .footer::before {
        top: -35px;
        height: 40px;
        clip-path: ellipse(75% 100% at 50% 100%);
    }

    .app-logo {
        width: 70px;
        height: 70px;
        border-radius: 18px;
        margin: -70px auto 15px;
    }
}

/* Animation for phone image */
@keyframes float {
    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

.phone-image {
    animation: float 3s ease-in-out infinite;
}

/* 确保动态文字块内容正常显示 */
.dynamic-text-block {
    font-family: 'AlkatipBasmatom', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    direction: rtl;
    text-align: right;
    line-height: 1.5;
}

/* 微信下载引导样式 */
#wechatTip {
    position: fixed;
    padding: 0;
    margin: 0;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.6) 100%);
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: scale(1);
    }

    to {
        opacity: 0;
        transform: scale(0.95);
    }
}

#wechatTip .guide-container {
    margin: auto;
    text-align: center;
    animation: slideUp 0.4s ease-out 0.1s both;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#wechatTip .guide-title {
    font-family: 'AlkatipBasmatom', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 24px;
    font-weight: bold;
    color: #ffffff;
    text-align: center;
    margin-bottom: 20px;
}

#wechatTip .guide-text {
    font-family: 'AlkatipBasmatom', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 18px;
    color: #f0f0f0;
    text-align: center;
    margin-bottom: 25px;
    line-height: 1.6;
}

#wechatTip .guide-image {
    border-radius: 15px;
    margin-bottom: 20px;
    max-width: 100%;
    height: auto;
    animation: pulse 2s ease-in-out infinite;
}

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

    50% {
        transform: scale(1.02);
    }
}

#wechatTip .guide-gif {
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    max-width: 100%;
    height: auto;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

@keyframes blink {
    0%,
    50%,
    100% {
        opacity: 0.7;
    }

    25%,
    75% {
        opacity: 1;
    }
}

/* 关闭按钮样式 */
#wechatTip .close-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    z-index: 10;
}

#wechatTip .close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

#wechatTip .close-btn::before,
#wechatTip .close-btn::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 2px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 1px;
}

#wechatTip .close-btn::before {
    transform: rotate(45deg);
}

#wechatTip .close-btn::after {
    transform: rotate(-45deg);
}

#wechatTip .close-hint {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-family: 'AlkatipBasmatom', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    animation: blink 2s ease-in-out infinite;
}

/* 下载气泡提示样式 */
.download-bubble {
    position: absolute;
    bottom: 220px;
    left: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 10;
    display: none;
    font-family: 'AlkatipBasmatom', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.download-bubble.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.bubble-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bubble-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.bubble-text {
    flex: 1;
    font-family: 'AlkatipBasmatom', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    direction: rtl;
    text-align: right;
}

.bubble-time {
    font-size: 12px;
    color: #666;
    margin: 0 0 4px 0;
    font-family: 'AlkatipBasmatom', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    direction: rtl;
}

.bubble-message {
    font-size: 14px;
    color: #333;
    margin: 0;
    line-height: 1.4;
    font-family: 'AlkatipBasmatom', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    direction: rtl;
    text-align: right;
}
