        :root {
            --primary-color: #0072ff;
            --bg-color: #f2f2f7;      /* 页面背景 */
            --nav-bg: #e5e5ea;        /* 导航条槽背景 */
            --tab-item-bg: #ffffff;   /* 滑块背景（白天是纯白） */
            --item-hover: #0072ff; 
            --border: #e8e8e8; 
            --text-main: #5a6066;
            --text-active: #fff;  /* 选中文字颜色 */
            --text-h2: #3e444b;
            --item-count: 4;          /* 菜单数量 */
            --inner-gap: 4px;
        }
        body.dark-mode {
            --primary-color: #0072ff;
            --bg-color: #171719;
            --nav-bg: #313133;
            --border: #515151;
            --tab-item-bg: #313133; 
            --text-main: #95989e;
            --item-hover: #fff; 
            --text-h2: #d1d4da;
            --text-active: #fff;
        }


        @font-face {
        	font-family: jiesuotk;
        	src: url(../fonts/larcms.otf) format("opentype");
        	font-weight: 400
        }
        * { 
            margin: 0; padding: 0; box-sizing: border-box; 
            font-family: jiesuotk, pingfang SC, helvetica neue, arial, hiragino sans gb, microsoft yahei ui, microsoft yahei, simsun, sans-serif;
        }

        body {background-color: var(--bg-color);transition: background-color 0.3s ease; overflow-x: hidden; 
        }
        
        
        
        body.no-overscroll {
            overflow: hidden !important;
         
        }
        
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }
        em {
            font-style: italic;
            padding: 0 5px;
        }
        .safari-guide b {
            font-weight: 600;
        }
        .log-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 10px;
            border-bottom: 1px solid var(--border);
        }
        
        .lock-screen {
            text-align: center;
            padding: 30px 20px;
            background: rgba(120, 120, 128, 0.05);
            border-radius: 15px;
            margin: 30px;
            border: 1px dashed rgba(120, 120, 128, 0.2);
        }
        .user-info {
            display: flex;
            flex-direction: column;
            justify-content: center;
            gap: 8px;
        }
        .user-avatar {
            width: 60px;
            height: 60px;
            background: #007aff;
            border-radius: 50%;
            flex-shrink: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 24px;
            font-weight: bold;
            margin-right: 15px;
        }
        .logout-btn {
            border-radius: 12px;
            justify-content: center;
            background: var(--tab-item-bg);
            color: #ff3b30;
            border: 1px solid var(--border);
            display: flex;
            align-items: center;
            padding: 18px 20px;
            text-decoration: none;
            transition: background 0.2s;
        }
        
    .desc {
        font-size: 12px;
        color: #999;
        margin-top: 12px;
        text-align: center;
    }
    .account-info {
        background: rgba(120, 120, 128, 0.05);
        border-radius: 15px;
        margin: 30px;
        border: 1px dashed rgba(120, 120, 128, 0.2);
    }   
/* 针对需要点击和复制的 strong 标签 */
.account-info strong {
    cursor: text !important;
    user-select: text !important;
    color: #ec4c2b;
    font-weight: 400;
    font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
}

    
/* 针对显示密码的按钮 */
.account-info button {
    display: flex;
    margin: 20px auto 0;
    justify-content: center;
    width: 100%;
    padding: 9px;
    background: #e9f0ff;
    color: #3569ff;
    border: 1px solid #c7d8fe;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 8px;
}


/* 1. 基础状态：定义回升的速度 (慢慢回升 0.3s) */
.btn-primary, 
button {
    /* 其他原有样式... */
    transition: transform 0.5s ease-out, box-shadow 0.5s ease-out !important;
}

/* 2. 点击状态：定义下沉的速度 (迅速下沉 0.1s) */
.btn-primary:active, 
button:active {
    /* 迅速下沉 2px */
    transform: translateY(3px) !important;
    
    /* 点击瞬间的过渡时间设为 0.1s */
    transition: transform 0.1s ease-in !important;
    
    /* 配合轻微阴影变化增强真实感 */
    box-shadow: 0 1px 2px rgba(0,0,0,0.1) !important;
}


.menu-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    text-decoration: none;
    color: var(--text-main);
    border-bottom: 1px solid var(--border);
    transition: background 0.2s;
}
.menu-item:last-child { border-bottom: none; }
.menu-item:active { background: rgba(120, 120, 128, 0.1); }
.menu-left { display: flex; align-items: center; gap: 15px; font-size: 15px; color: var(--text-h2);}
.menu-left i { width: 20px; text-align: center; font-size: 18px; }
.arrow { color: #c7c7cc; font-size: 13px; }
.logout-btn:active { background: rgba(255, 59, 48, 0.1) !important; }

        .user-header {
            display: flex;
            align-items: center;
            padding: 20px;
            background: var(--tab-item-bg);
            border-radius: 12px;
            margin-bottom: 20px;
            border: 1px solid var(--border);
        }
        .menu-list {
            background: var(--tab-item-bg);
            border-radius: 12px;
            overflow: hidden;
            border: 1px solid var(--border);
        }
        .layout {
            padding-top: 70px;
            display: flex;
            flex-direction: column;
            min-height: 100vh;
        }
        .container {
            margin: 0 auto;
            min-width: 0;
            width: 100%;
            max-width: 800px;
            padding: 0 12px;
            flex: 1;
        }
        /* 导航条 */
        .nav-tabs {
            display: flex;
            background: var(--nav-bg);
            border-radius: 11px;
            padding: var(--inner-gap);
            margin-bottom: 15px;
            position: relative;
            transition: background 0.3s ease;
        }

        .active-bg {
            position: absolute;
            top: var(--inner-gap);
            left: var(--inner-gap);
            height: calc(100% - (var(--inner-gap) * 2));
            width: calc((100% - (var(--inner-gap) * 2)) / var(--item-count));
            background: var(--primary-color);
            border-radius: 7px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
            transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s ease;
            z-index: 1;
        }

        /* 导航项目 */
        .nav-item {
            flex: 1;
            text-align: center;
            padding: 8px 0;
            font-size: 14px;
            letter-spacing: 1px;
            font-weight: 600;
            cursor: pointer;
            color: var(--text-main);
            position: relative;
            z-index: 2;
            transition: all 0.3s ease; 
        }
        .nav-item:not(.active):hover {
            color: var(--item-hover);
            transform: scale(1.05);
        }

        /* 选中后的文字颜色 */
        .nav-item.active {
            color: var(--text-active);
            background: transparent !important; /* 确保没有背景色干扰滑块 */
        }
        
        /* Swiper 容器 */
        .swiper { width: 100%; overflow: hidden; }

        /* 这里是供 include 文件使用的公共样式 */
        .app-list {
            display: flex;
            flex-direction: column;
            gap: 14px;
        }

        /* --- 1. 通用皮肤样式（决定颜色、圆角、阴影） --- */
        .app-card, .notice, .article-box {
            background: var(--tab-item-bg); /* 统一引用变量，支持暗黑模式 */
            color: var(--text-main);
            border-radius: 12px;            /* 统一圆角 */
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
            transition: background 0.3s ease, color 0.3s ease;
            text-decoration: none;
        }
        
        /* 公告：特有的左侧边框 */
        .notice {
            font-size: 13px;
            padding: 15px; 
            border-radius: 4px; 
            border-left: 4px solid var(--primary-color);
            margin-bottom: 15px; /* 公告离导航远一点 */
        }
        
        /* APP卡片：特有的 Flex 布局 */
        .app-card {
            display: flex;
            align-items: center;
            padding: 15px; 
            border: 1px solid var(--border);
        }
        
        /* 文章框：特有的行高 */
        .article-box {
            line-height: 1.5;
            padding: 15px 20px 5px; 
            margin-bottom: 15px;
            border: 1px solid var(--border);
        }
        
        .app-icon { 
            width: 60px; height: 60px; border-radius: 14px; 
            margin-right: 15px;flex-shrink: 0;
            object-fit: cover;
        }

        .app-info {
            flex: 1;
            min-width: 0;
            display: flex;
            flex-direction: column;
            gap: 3px;
            margin-top: -1px;
        }
        .app-name { font-size: 16px; font-weight: 700; display: block; margin-bottom: 2px; color: var(--text-h2);}
        .app-desc {
            font-size: 11px;
            color: #8e8e93;
            white-space: nowrap;
            overflow: hidden;
            width: 100%;
            text-overflow: ellipsis;
            display: block;
        }

        .btn-get { 
            cursor: pointer;
            color: var(--text-active);
            background: var(--primary-color);
            padding: 5px 15px; border-radius: 20px; font-weight: 700; font-size: 13px;
            transition: transform 0.2s ease;
        }
        .btn-get:hover {
            background: #00bce6; 
            color: #fff;
        }
        
        .btn-disabled {
            background-color: #dfdfdf; 
            color: #666;
            padding: 5px 15px; border-radius: 20px; font-weight: 700; font-size: 13px;
            cursor: pointer;   
        }
        .btn-green {
            background: #34c759;
            color: white;
            border: none;
            padding: 10px 20px;
            border-radius: 10px;
            font-size: 14px;
            cursor: pointer;
        }
        .btn-blue {
            background: #007aff;
            color: white;
            border: none;
            padding: 10px 20px;
            border-radius: 10px;
            font-size: 14px;
            cursor: pointer;
        }
        .btn-ok {
            margin-top: 30px;
            padding: 10px 30px;
            background: #0072ff;
            color: #fff;
            border: none;
            cursor: pointer;
            font-size: 15px;
            border-radius: 20px;
        }
        .btn-ok:hover {
            background-color: #0d4fb7; 
        }
        .btn-install-big { 
            display: block; 
            background: var(--primary-color); 
            color: #fff; 
            text-align: center; 
            padding: 14px; 
            font-size: 15px;
            max-width: 200px;
            width: 100%;
            margin: auto;
            border: none;
            cursor: pointer;
            border-radius: 10px; 
            font-weight: bold; 
            text-decoration: none;
            box-shadow: 0 4px 12px rgba(0,122,255,0.3);
        }
        .btn-install-big:hover { 
            background: #1e01ff;
        }
        .btn-active { 
            display: block; 
            background: var(--primary-color); 
            color: #fff; 
            text-align: center; 
            padding: 8px 15px;
            font-size: 13px;
            max-width: 200px;
            border: none;
            cursor: pointer;
            border-radius: 10px; 
            font-weight: bold; 
            text-decoration: none;
        }
        .btn-signed {
            width: auto;
            background: #ccc;
            color: #5b5b5f;
            cursor: not-allowed;
            border: none;
        }

        h2 {
            font-size: 18px;
            color: var(--text-h2);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        h3 {
            font-size: 16px;
            color: var(--text-h2);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            margin-bottom: 15px;
        }
        
        .article-box p {
            font-size: 14px;
            margin-bottom: 12px;
            color: var(--text-main);
        }
        
        .article-box img {
            max-width: 100%; 
            border-radius: 10px;
            margin: 10px 0;
        }

        a {
            color: #0086ff;
            text-decoration: none;
        }
        
        .footer {
            color: #ccc;
            padding: 20px;
            margin-top: 20px;
            background: var(--tab-item-bg);
        }
        
        /* 内容容器 */
        .footer-container {
            max-width: 800px;
            margin: auto;
            display: flex;
            justify-content: space-around;
            text-align: center;
        }
        
        /* 每一列 */
        .footer-column h3 {
            color: #7a7a7a;
            margin-bottom: 15px;
            font-size: 14px;
        }
        
        /* 链接样式 */
        .footer-column a {
            display: block;
            color: #aaa;
            font-size: 13px;
            text-decoration: none;
            margin-bottom: 8px;
            transition: 0.2s;
        }
        
        .footer-column a:hover {
            color: #007cff;
            transform: translateX(5px);
        }
    /* 弹窗 */
    .drawer-header { display: flex; padding: 20px; align-items: center; border-bottom: 1px solid var(--border); }
    .drawer-icon { width: 75px; height: 75px; border-radius: 18px; margin-right: 15px; box-shadow: 1px  1px 5px rgba(0,0,0,0.1); object-fit: cover; }
    .drawer-meta { flex: 1; min-width: 0; }
    .drawer-meta h2 { font-size: 18px; margin-bottom: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .meta-item { font-size: 12px; color: var(--text-main); margin-top: 8px; }
    
    .drawer-body { padding: 0 20px 20px; } /* 底部留白防止被安装栏挡住 */
    .drawer-body h4 { font-size: 16px; margin: 15px 0 10px; }
    
    /* 截图滚动区域 */
    .screenshot-scroll {
        margin-left: -20px;
        margin-right: -20px;
        margin-top: 20px;}
    .cupertino-pane::-webkit-scrollbar {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
        background: transparent !important;
    } /* 隐藏滚动条 */
    .screenshot-scroll img {
            height: auto;
            max-width: 100%;
        }
    
    .intro-text {
        line-height: 1.6;
        font-size: 14px;
        color: var(--text-main);
        word-break: break-all;
        user-select: text !important;    
        -webkit-user-select: text !important; 
        cursor: text !important;   
    }

    .notes-text {
        line-height: 1.6;
        background: rgba(255, 149, 0, 0.1);
        padding: 12px 15px;
        border-radius: 10px;
        color: #ff6161;
        margin-top: 15px;
        font-size: 13px;
        word-break: break-all;
        -webkit-user-select: text !important;
        cursor: text !important;
        font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
        font-weight: 300;
        border: 1px solid var(--border);
    }
    /* 底部固定安装栏 */
    .install-bar { 
        position: sticky; 
        bottom: 0; 
        padding: 15px 20px; 
        background: var(--tab-item-bg); 
        backdrop-filter: blur(10px); 
        border-top: 1px solid var(--border);;
        z-index: 100;
    }
    .redeem-input {
        flex: 1;
        padding: 10px 12px;
        border-radius: 10px;
        border: 1px solid var(--border);
        background: var(--bg-card);
        color: var(--text-main);
    }
    
    .header-navbar {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        background: var(--tab-item-bg);
        margin: 0 auto;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    .navbar-flex {
        background: var(--tab-item-bg);
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 15px 10px 20px;
        max-width: 800px;
        margin: auto;
    }
    .logo { 
        font-weight: bold; 
        color: var(--text-h2);
    }
    .mode-icon { 
        cursor: pointer; 
        font-size: 20px; 
        padding: 5px;
        color: var(--text-main);
    }
    .user-icon {
        cursor: pointer;
        width: 30px;
        height: 30px;
        color: var(--text-main);
        background-color: var(--bg-color);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        overflow: hidden;
        transition: background-color 0.4s ease;
    }
    .pass-input {
        width: 100%;
        padding: 15px;
        border: 1px solid var(--nav-bg);
        border-radius: 10px;
        text-align: center;
        font-size: 16px;
        background-color: var(--bg-color);
        outline: none;
        color: var(--text-h2);
        box-sizing: border-box;
        }
/* 针对外层包裹容器 */
html body .pane[style] {
    /* 1. 时长：0.6s - 0.8s 是最舒适的 */
    transition-duration: 600ms !important; 
    
    /* 2. 属性：保持 transform 和 height */
    transition-property: transform, height !important;
    
    /* 3. 核心：这个曲线模拟了“快速冲出后轻轻回弹”的阻尼感 */
    /* 参数解释：前两个点是起始速度，后两个点(0.17, 1.1)控制了回弹 */
    transition-timing-function: cubic-bezier(0.3, 0.6, 0.68, 1.1) !important;
}

/* 背景遮罩平滑淡入 */
html body .cupertino-pane-wrapper .backdrop[style] {
    transition-duration: 700ms !important;
    transition-timing-function: ease-out !important;
}

html body .cupertino-pane-wrapper .destroy-button {right: 16px;}

.destroy-button:hover svg {
    fill: var(--text-main);  /* 使用你定义的激活文本颜色 */
    transform: scale(1.15);    /* 放大 1.15 倍，视觉上会有“加粗”的效果 */
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1)); /* 增加一点点投影，更立体 */
}

body.dark-mode .cupertino-pane-wrapper .pane {background: var(--nav-bg); 
}
    
/* 大屏显示 */
@media screen and (min-width: 576px) {
  .app-list {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    display: grid; 
  }
  .nav-item {letter-spacing: 3px; }
  .navbar-flex {padding: 10px 10px 10px 15px}

}
.points-float {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    font-size: 22px;
    color: #34c759;
    font-weight: bold;
    opacity: 0;
    pointer-events: none;
    animation: floatUp 1s ease-out forwards;
}

@keyframes floatUp {
    0% {
        transform: translate(-50%, 0);
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -25px);
        opacity: 0;
    }
}
input::placeholder {
    color: rgb(148 147 147 / 60%)
}
/* 面包屑容器 */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 5px 15px;
    font-size: 13px;
    color: #8e8e93; /* iOS 次级文字颜色 */
}

.breadcrumb a {
    text-decoration: none;
    color: #8e8e93; 
    transition: opacity 0.2s;
}

.breadcrumb a:hover {
    opacity: 0.7;
}

.breadcrumb i {
    font-size: 10px;
    color: rgb(168 168 168 / 50%);
}

.breadcrumb span {
    color: #007aff; /* iOS 蓝色 */
    /* 当前页面标题加粗或变灰以示区分 */
    font-weight: 500;
}
