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

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

body {
    font-family: 'UkijEkran', Arial, sans-serif;
    direction: rtl;
    background: linear-gradient(135deg, rgba(156, 28, 253, 0) 0%, rgba(6, 137, 235, 0) 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

/* 左上角帮助按钮 */
.help-button {
    position: fixed;
    top: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.9);
    color: #666;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 16px;
    z-index: 1000;
    cursor: pointer;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.help-button img {
    width: 16px;
    height: 16px;
}

.help-button:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 1);
}

/* 客服弹出框样式 */
.customer-service-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeInModal 0.3s ease;
}

.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 400px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: slideInModal 0.3s ease;
}

.modal-header {
    background: linear-gradient(45deg, rgba(156, 28, 253, 1), rgba(6, 137, 235, 1));
    color: white;
    padding: 20px;
    text-align: center;
    border-radius: 15px 15px 0 0;
}

.modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-family: 'UkijEkran', Arial, sans-serif;
}

.modal-body {
    padding: 30px 20px;
    text-align: center;
}

.customer-service-image {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
}

.modal-body p {
    font-size: 16px;
    color: #666;
    margin: 0;
    font-family: 'UkijEkran', Arial, sans-serif;
    line-height: 1.5;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    color: white;
    font-size: 32px;
    cursor: pointer;
    z-index: 1;
    line-height: 1;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* 弹出框动画 */
@keyframes fadeInModal {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInModal {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* 主容器 */
.container {
    display: flex;
    min-height: 100vh;
    direction: rtl;
}

/* 桌面端菜单样式 */
.sidebar {
    width: 210px;
    background: white;
    backdrop-filter: blur(10px);
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    padding: 30px 0;
    position: fixed;
    right: 0;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
    border-left: 1px solid #ccc;
}

.logo {
    text-align: center;
}

.logo img {
    width: 130px;
    height: auto;
}

/* 桌面端菜单项 */
.menu-item {
    margin-bottom: 5px;
    overflow: hidden;
    transition: all 0.3s ease;
    border-bottom: 1px solid #ccc;
}

.menu-title {
    padding: 15px 20px;
    font-size: 18px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.menu-icon {
    width: 20px;
    height: 20px;
}

.submenu {
    display: block;
    background: rgba(255, 255, 255, 0.05);
}

.submenu-item {
    padding: 10px 50px;
    font-size: 16px;
    color: #999;
    cursor: pointer;
    transition: all 0.3s ease;
    border-right: 3px solid transparent;
}

.submenu-item:hover {
    color: #666;
}

.submenu-item.active {
    background-image: linear-gradient(90deg, rgba(156, 28, 253, 1), rgba(6, 137, 235, 1));
    background-clip: text;
    -webkit-text-fill-color: transparent;
    -webkit-background-clip: text;
}

/* 隐藏移动端特有的结构 */
.menu-container {
    display: block;
}

.menu-titles-row {
    display: none;
}

/* 左侧内容区域 */
.content {
    flex: 1;
    margin-right: 210px;
    padding: 60px 50px;
    position: relative;
    background: linear-gradient(135deg, rgba(156, 28, 253, 0.02) 0%, rgba(6, 137, 235, 0.02) 100%);
}

/* 装饰圆圈 */
.decoration-circle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.gradient-circle {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(156, 28, 253, 1) -30%, rgb(255 255 255 / 71%) 56%);
    top: -26%;
    left: -16%;
}

.gradient-circle1 {
       width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(156, 28, 253, 1) -30%, rgb(255 255 255 / 71%) 100%);
    top: 20%;
    left: 68%;
    opacity: 0.2;

}

.border-circle {
       width: 250px;
    height: 250px;
    border: 1px solid rgba(98, 54, 255, 1);
    bottom: 30%;
    right: 25%;
    opacity: 0.1;
}

/* 内容区域 */
.content-section {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.content-section.active {
    display: block;
}

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

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

/* 内容区域重新布局 */
.content-body {
    display: flex;
    align-items: flex-start;
    gap: 60px;
    direction: rtl;
    padding: 40px 0;
}

/* 左侧文字区域 */
.text-area {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column
}

/* 右侧设备图片 */
.device-image {
    width: 100%;
    flex: 1.3;
    text-align: center;
    padding-left: 40px;
}

.device-image img {
    max-width: 100%;
    height: auto;
    max-height: 450px;
    filter: drop-shadow(0 10px 30px rgba(156, 28, 253, 0.2));
}

/* 内容标题区域 */
.content-header {
    margin-bottom: 30px;
    text-align: right;
}

.content-header h1 {
    font-size: 32px;
    color: #010101;
    margin-bottom: 15px;
    line-height: 1.3;
}

.content-header p {
    font-size: 16px;
    color: #01010180;
    line-height: 1.6;
    margin-bottom: 10px;
}

.version-text {
    font-size: 16px;
    color: #01010180;
    margin-top: 10px;
}

/* 下载区域 */
.download-section {
    margin-bottom: 40px;
}


.download-btn {
    background: linear-gradient(45deg, rgba(156, 28, 253, 1), rgba(6, 137, 235, 1));
    color: white;
    border: none;
    padding: 15px 35px;
    border-radius: 50px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(156, 28, 253, 0.3);
    font-family: 'UkijEkran', Arial, sans-serif;
    min-width: 180px;
}

.download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(156, 28, 253, 0.4);
}

/* 安装步骤 */
.installation-steps {
    text-align: right;
}

.installation-steps h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 20px;
}

.installation-steps h5{
    font-size: 18px;
    color: #333;
    margin: 15px 10px;
}

.installation-steps ol {
    padding-right: 20px;
    direction: rtl;
}

.installation-steps li {
    font-size: 16px;
    color: #666;
    line-height: 1.4;
    margin-bottom: 5px;
    text-align: right;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .sidebar {
        width: 180px;
    }

    .content {
        margin-right: 180px;
        padding: 40px 30px;
    }

    .content-body {
        flex-direction: column;
        gap: 30px;
    }

    .text-area {
        order: 2;
    }

    .device-image {
        order: 1;
        padding-left: 0;
    }

    .device-image img{
         max-height: 400px;
    }

    .content-header{
        width: 100%;
    }

    .content-header h1 {
        font-size: 24px;
        text-align: center;
    }

    .content-header p {
        font-size: 14px;
    }
}

@media (max-width: 600px) {
    .container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        position: relative;
        height: auto;
        padding: 15px;
        z-index: 100;
        border-left: none;
        border-bottom: 1px solid #eee;
        background: white;
    }

    .content {
        margin-right: 0;
        padding: 20px 15px;
        min-height: calc(100vh - 200px);
    }

    .content-header h1 {
        font-size: 20px;
        text-align: center;
    }

    .gradient-circle{
        display: none;
    }

    .help-button {
        top: 10px;
        left: 10px;
        padding: 8px 15px;
        font-size: 12px;
    }

    .help-button img {
        width: 14px;
        height: 14px;
    }

    /* 移动端菜单样式 */
    .logo {
        margin-bottom: 15px;
        padding-bottom: 15px;
        border-bottom: 1px solid #eee;
        text-align: center;
    }

    .logo img {
        width: 125px;
    }

    /* 移动端显示横向菜单结构 */
    .menu-container {
        display: flex !important;
        flex-direction: column;
    }

    .menu-titles-row {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
        padding: 0 5px;
        margin-bottom: 15px;
    }

    /* 隐藏桌面端的原始菜单结构 */
    .menu-item > .menu-title {
        display: none !important;
    }



    /* 移动端菜单项样式 - 只应用于横向菜单 */
    .menu-titles-row .menu-title {
        display: flex !important;
        padding: 12px 8px;
        font-size: 12px;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        cursor: pointer;
        border-radius: 12px;
        transition: all 0.3s ease;
        background: #f8f9fa;
        border: 1px solid #e9ecef;
        min-height: 75px;
        gap: 6px;
    }

    .menu-titles-row .menu-title:hover {
        /* background-color: rgba(156, 28, 253, 0.1); */
        transform: translateY(-2px);
    }

    .menu-titles-row .menu-title.active {
        /* background: linear-gradient(90deg, rgba(156, 28, 253, 1), rgba(6, 137, 235, 1));
        background-clip: text;
        -webkit-text-fill-color: transparent;
        -webkit-background-clip: text; */
        border-color: rgba(156, 28, 253, 0.3);
        box-shadow: 0 4px 12px rgba(156, 28, 253, 0.2);
    }

    .menu-titles-row .menu-icon {
        width: 20px;
        height: 20px;
        margin-bottom: 0;
        filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
    }

    .menu-titles-row .menu-title span {
        font-size: 11px;
        line-height: 1.2;
    }

    /* 移动端菜单项样式 */
    .menu-item {
        border-bottom: none;
        margin-bottom: 0;
        width: 100%;
    }

    .submenu {
        display: block;
        background: #f8f9fa;
        margin-top: 0;
        border-radius: 12px;
        padding: 0 15px;
        border: 1px solid #e9ecef;
        max-height: 0;
        overflow: hidden;
        transition: all 0.4s ease;
        opacity: 0;
    }

    .submenu.active {
        max-height: 400px;
        padding: 15px;
        opacity: 1;
    }

    .submenu-item {
        padding: 12px 15px;
        font-size: 14px;
        border-right: none;
        border-radius: 8px;
        margin-bottom: 8px;
        background: white;
        border: 1px solid #e9ecef;
        transition: all 0.3s ease;
    }

    .submenu-item:hover {
        background-color: rgba(156, 28, 253, 0.05);
        border-color: rgba(156, 28, 253, 0.2);
        transform: translateX(-3px);
    }

    .submenu-item.active {
         background: linear-gradient(45deg, rgba(156, 28, 253, 1), rgba(6, 137, 235, 1));
        background-clip: text;
        -webkit-text-fill-color: transparent;
        -webkit-background-clip: text;
        background-color: rgba(156, 28, 253, 0.1) !important;
        border-color: rgba(156, 28, 253, 0.5);
    }

    .submenu-item:last-child {
        margin-bottom: 0;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
            max-height: 0;
        }
        to {
            opacity: 1;
            transform: translateY(0);
            max-height: 300px;
        }
    }

    .content-body {
        flex-direction: column;
        gap: 20px;
        padding: 20px 0;
    }

    .text-area {
        order: 2;
        width: 100%;
    }

    .device-image {
        order: 1;
        padding-left: 0;
        width: 100%;
        text-align: center;
    }

    .device-image img{
        max-height: 200px;
        width: auto;
    }

    .content-header{
        width: 100%;
        text-align: center;
    }

    .content-header h1 {
        font-size: 22px;
        margin-bottom: 10px;
    }

    .content-header p {
        font-size: 14px;
        margin-bottom: 8px;
    }

    .version-text {
        font-size: 13px;
    }

    .download-btn {
        font-size: 14px;
        padding: 12px 25px;
        min-width: 160px;
    }

    .installation-steps h3 {
        font-size: 18px;
        text-align: center;
        margin-bottom: 15px;
    }

    .installation-steps h5 {
        font-size: 16px;
        margin: 12px 0;
    }

    .installation-steps li {
        font-size: 14px;
        line-height: 1.5;
        margin-bottom: 8px;
    }
}

/* 小程序二维码样式 */
.qrcode-container {
    margin-top: 30px;
    text-align: center;
}

.miniapp-qrcode {
    width: 100px;
    height: 100px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.qrcode-hint {
    margin-top: 12px;
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

/* 版权信息样式 */
.copyright {
    width: 100%;
    text-align: center;
    padding: 20px 0;
    background: rgba(255, 255, 255, 0.9);
    border-top: 1px solid rgba(156, 28, 253, 0.1);
    position: relative;
    z-index: 10;
    backdrop-filter: blur(10px);
}

.copyright p {
    font-size: 14px;
    color: #666;
    margin: 0;
    font-family: 'UkijEkran', Arial, sans-serif;
}

/* 移动端版权信息样式 */
@media (max-width: 600px) {
    .copyright {
        padding: 15px 0;
    }

    .copyright p {
        font-size: 12px;
    }

    /* 移动端小程序二维码样式 */
    .miniapp-qrcode {
       width: 60px !important;
       height: 60px !important;
    }

    .qrcode-hint {
        font-size: 12px;
    }
}

/* 添加页面初始加载样式 */
body {
    opacity: 0;
    /* transform: translateY(20px); */
    /* transition: all 0.5s ease-in-out; */
}
/* ==================== 微信引导弹窗样式 ==================== */

/* 微信引导模态框 */
.wechat-guide-modal {
    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: wechatFadeIn 0.3s ease-out;
}

@keyframes wechatFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes wechatFadeOut {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.95);
    }
}

/* 引导容器 */
.wechat-guide-container {
    margin: auto;
    text-align: center;
    animation: wechatSlideUp 0.4s ease-out 0.1s both;
    padding: 20px;
}

@keyframes wechatSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 引导标题 */
.wechat-guide-title {
    font-family: 'UkijEkran', Arial, sans-serif;
    font-size: 24px;
    color: #ffffff;
    text-align: center;
    margin-bottom: 20px;
    direction: rtl;
}

/* 引导文字 */
.wechat-guide-text {
    font-family: 'UkijEkran', Arial, sans-serif;
    font-size: 18px;
    color: #f0f0f0;
    text-align: center;
    margin-bottom: 25px;
    line-height: 1.6;
    direction: rtl;
}

/* 引导图片 */
.wechat-guide-image {
    border-radius: 15px;
    margin-bottom: 20px;
    max-width: 100%;
    height: auto;
    animation: wechatPulse 2s ease-in-out infinite;
}

@keyframes wechatPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

/* 引导GIF */
.wechat-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);
}

/* 关闭按钮 */
.wechat-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;
}

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

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

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

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

/* 关闭提示 */
.wechat-close-hint {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-family: 'UkijEkran', Arial, sans-serif;
    animation: wechatBlink 2s ease-in-out infinite;
    direction: rtl;
}

@keyframes wechatBlink {
    0%, 50%, 100% {
        opacity: 0.7;
    }
    25%, 75% {
        opacity: 1;
    }
}

/* 移动端适配 */
@media (max-width: 600px) {
    .wechat-guide-title {
        font-size: 20px;
    }

    .wechat-guide-text {
        font-size: 16px;
    }

    .wechat-close-btn {
        top: 15px;
        left: 15px;
        width: 35px;
        height: 35px;
    }

    .wechat-close-hint {
        font-size: 12px;
        bottom: 20px;
    }
}
