:root {
    --theme-color: #246DDE; /* 默认主题色 */
    --theme-liebiao: #246DDE;
    --theme-daohan: #246DDE;
    --theme-xuanzhongyanse: #246DDE;
    --theme-weixuanyanse: #246DDE;
}

/* 基础样式 */
body {
    background: #f7f7f7;
    position: relative;
    height: 100vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.main-content {
    padding-top: 94px; /* header + tab-nav 的高度 */
    padding-bottom: 60px; /* footer-nav 的高度 */
    min-height: 100vh;
}

/* 头部样式 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    height: 44px;
    background: var(--theme-banner);
}

.logo-title {
    display: flex;
    align-items: center;
}

.logo {
    width: 24px;
    height: 24px;
    margin-right: 8px;
}

.title {
    font-size: 16px;
    font-weight: bold;
    color: #000000;
}

.header-icons i {
    margin-left: 15px;
    font-size: 18px;
    color: blue;
}

/* 导航样式 */
.tab-nav {
    position: fixed;
    top: 227px;
    left: 0;
    right: 0;
    z-index: 99;
    background: #ffffff;
    white-space: nowrap;
    overflow-x: auto;
    padding: 0 10px;
    height: 44px;
    box-sizing: border-box;
    -webkit-overflow-scrolling: touch;
}

/* 隐藏滚动条但保持可以滚动 */
.tab-nav::-webkit-scrollbar {
    display: none;
}

.tab-link {
    display: inline-block;
    padding: 0 15px;
    height: 44px;
    line-height: 44px;
    font-size: 14px;
    color: var(--theme-weixuanyanse);
    text-decoration: none;
    position: relative;
    transition: all 0.3s;
}

.tab-link.active {
    color: var(--theme-xuanzhongyanse);
    font-weight: 500;
}

.tab-link.active:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 15px;
    right: 15px;
    height: 3px;
    background: var(--theme-color);
    border-radius: 1.5px;
}

/* 应用列表样式 */
.app-container {
    /*margin-top: 240px; */
    padding: 0px;
    padding-bottom: 80px;
    padding-top: 275px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.app-item {
    background: #ebeff6;
    margin: 8px 12px;
    border-radius: 12px;
    padding: 16px;
    position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.app-header {
    display: flex;
    margin-bottom: 12px;
    position: relative;
}

.app-icon {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    margin-right: 12px;
    flex-shrink: 0;
}

.app-info {
    flex: 1;
    padding-right: 70px;
    border-width: 0px 0px 0.001px 0px;
    border-style: solid;
    border-color: #c8c7cc7a;
}
.app-title {
    margin-bottom: 0px;
}

.app-name {
    font-size: 16px;
    color: #333;
    font-weight: 500;
}

.app-id {
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}

.app-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    margin-top: 8px;
}

/* 底部导航栏 */
.footer-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    height: 60px;
    /*border-radius: 12px;*/
    border-top-left-radius: 12px;  /* 上左角圆角 */
    border-top-right-radius: 12px; /* 上右角圆角 */
    box-sizing: border-box;
 /*   left:7px!important;*/
	/*right:7px!important;*/
	/*bottom:15px!important;*/
}

.footer-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--theme-weixuanyanse);
    text-decoration: none;
}

.footer-nav .nav-item.active {
    color: var(--theme-xuanzhongyanse);
}

.footer-nav i {
    font-size: 20px;
    margin-bottom: 4px;
}

.footer-nav span {
    font-size: 12px;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 80px;
    width: 40px;
    height: 40px;
    background: rgba(0,0,0,0.6);
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 999;
}

/* 查询页面样式 */
#queryPage {
    padding-bottom: 70px; /* 为底部导航留出空间 */
    min-height: calc(100vh - 60px); /* 确保页面至少占满屏幕高度减去底部导航高度 */
}

.query-box {
    padding: 15px;
    margin-top: 15px;
}

.udid-input {
    position: relative;
    margin-bottom: 15px;
}

.udid-input input {
    width: 100%;
    height: 40px;
    padding: 0 90px 0 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

.get-udid-btn {
    position: absolute;
    right: 5px;
    top: 5px;
    height: 30px;
    padding: 0 12px;
    background: var(--theme-color);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 13px;
}

.query-btn {
    width: 100%;
    height: 40px;
    background: var(--theme-color);
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 15px;
}

#queryResult {
    padding: 15px;
    margin-bottom: 10px; /* 为底部导航留出空间 */
    overflow-y: auto;
}

.result-item {
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.result-title {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 8px;
}

.result-info {
    font-size: 13px;
    color: #666;
    margin-bottom: 12px;
}

.result-actions {
    display: flex;
    gap: 10px;
}

.result-btn {
    flex: 1;
    padding: 8px 0;
    text-align: center;
    border-radius: 4px;
    font-size: 14px;
    color: #fff;
    border: none;
    cursor: pointer;
}

.result-btn.install {
    background: var(--theme-color);
}

.result-btn.share {
    background: #67C23A;
}

.result-btn.delete {
    background: #F56C6C;
}

/* 页面内容区域通用样式 */
.page-content {
    padding-top: 40px; /* header + tab-nav 的高度 */
    min-height: calc(100vh - 60px); /* 减去底部导航高度 */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* 教程页面样式 */
.tutorial-container {
    padding: 15px;
}

.tutorial-container1 {
    padding: 15px 15px 1px 15px;
    margin-top: 15px;
}

.card-style {
    background: #ffffff00;
    border-radius: 8px;
    margin-bottom: 10px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border: 1px solid #ffffff00;
}

.accordion-btn {
    width: 100%;
    text-align: left;
    padding: 15px;
    position: relative;
    border: none;
    background: var(--theme-liebiao);
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.accordion-btn:hover {
    color: #ffffff;
    background: linear-gradient(to right, #686259, #353539);
}

.accordion-icon {
    font-size: 12px;
    transition: transform 0.3s;
}

.accordion-btn[aria-expanded="true"] .accordion-icon {
    transform: rotate(180deg);
}

/* 折叠面板内容样式 */
.collapse {
    border-top: 1px solid #eee;
}

.color-theme {
    color: #333;
}

.p-3 {
    padding: 15px;
}

/* 确保内容不被底部导航遮挡 */
#tutorialPage {
    padding-bottom: 70px;
}

/* 折叠面板动画 */
.collapse {
    transition: height 0.3s ease;
}

/* 版本更新列表样式 */
.version-list {
    padding: 0;
    margin: 0;
    list-style: none;
}

.version-item {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 8px;
}

.version-header {
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.version-title {
    font-size: 14px;
    color: #333;
}

.version-icon {
    color: #999;
    transition: transform 0.3s;
}

.version-item.active .version-icon {
    transform: rotate(180deg);
}

.version-content {
    padding: 15px;
    border-top: 1px solid #eee;
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    display: none;
}

.version-item.active .version-content {
    display: block;
}

/* 分类标签样式 */
.category-content {
    display: none;
}

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

input:checked + .slider {
    background-color: var(--theme-color);
}

.back-btn {
    color: var(--theme-color);
}

/* 适配不同屏幕尺寸 */
@media screen and (max-width: 360px) {
    .tab-link {
        padding: 0 12px;
        font-size: 13px;
    }
}

@media screen and (min-width: 768px) {
    .tab-link {
        padding: 0 20px;
        font-size: 15px;
    }
}

/* 确保横向滚动流畅 */
.tab-nav {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

/* 公告弹窗样式 */
.notice-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
}

.notice-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 320px;
    background: white;
    border-radius: 12px;
    z-index: 1001;
    display: none;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.notice-header {
    padding: 15px;
    background: var(--theme-color);
    color: white;
    display: flex;
    align-items: center;
    font-size: 16px;
}

.notice-header i {
    margin-right: 8px;
}

.notice-content {
    max-height: 60vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 15px;
}

.notice-item {
    padding: 12px;
    border-bottom: 1px solid #eee;
}

.notice-item:last-child {
    border-bottom: none;
}

.notice-text {
    color: #333;
    font-size: 14px;
    line-height: 1.6;
}

.notice-date {
    font-size: 12px;
    color: #999;
    margin-top: 8px;
}

.notice-close {
    position: absolute;
    top: 12px;
    right: 12px;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
} 