:root {
    /* 主题色系列 */
    --theme-primary: #f1404b; /* 主主题色 */
    --theme-hover: #d12768;   /* 主题色 hover 状态 */
    --theme-focus: var(--theme-primary); /* 聚焦状态复用主色 */
    
    /* 背景色系列 */
    --bg-body: #f2f4f7;       /* 页面背景 */
    --bg-main: #fff;          /* 卡片/容器背景 */
    
    /* 文本色系列 */
    --text-main: #484b4f;     /* 主要文本 */
    --text-secondary: #666;   /* 次要文本 */
    --text-tertiary: #999;     /* tertiary 文本（如辅助说明） */
    
    /* 组件特定颜色 */
    --layui-btn-primary: #3498db; /* layui 按钮主色 */
}

.mr-1 {margin-right: 1px;}
.mr-2 {margin-right: 1px;}
.mr-3 {margin-right: 3px;}
.mr-4 {margin-right: 4px;}
.mr-5 {margin-right: 5px;}

body {
    color: var(--text-main);
    background-color: var(--bg-body);
    font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    /* 为固定导航栏预留空间 */
    padding: 60px 0 0;
}
a {
    color: var(--text-main);
}

/* layui 重构*/
.layui-input:focus {
    border-color: #d2d2d2!important;
	outline: none; /* 移除默认outline，与自定义边框样式统一 */
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2); /* 增加聚焦光晕，强化交互反馈 */
}
.layui-btn {
    padding: 0 10px;
}
.layui-btn-primary:hover {
    border-color: var(--text-main);
}
.layui-layer-diy{
    max-width: 400px;
    width: 100%;
}
.layui-layer-diy .layui-layer-title{
    background-color: var(--layui-btn-primary);
    color: #fff;
}

.layui-layer-diy .layui-layer-setwin span{
    color: #fff;
}

.layui-layer-diy .layui-layer-btn .layui-layer-btn0 {
    background-color: var(--layui-btn-primary);
    color: #fff;
}

.layui-layer-diy button[lay-submit].layui-btn {
    background-color: var(--layui-btn-primary);
    color: #fff;
}
.layui-tabs-header .layui-this, .layui-tabs-header li:hover {
    color: var(--theme-focus);
}
.layui-tabs-header .layui-this:after {
    border-bottom: 3px solid var(--theme-focus);
}
.fa {
    font-size: 16px!important;
}

.disabled {
    /* 核心：通过相对定位和伪元素实现遮罩，不改变原尺寸 */
    position: relative;
    /* 保留原始布局空间（避免元素"消失"感） */
    opacity: 0.8;
    /* 禁用状态基础样式 */
    color: #666;
    /*cursor: not-allowed;*/
    /* 高亮边框提示 */
    border-color: #ff4d4f;
    box-shadow: 0 0 0 2px rgba(255, 77, 79, 0.2); /* 外发光效果 */
}
.disabled::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit; /* 继承原边框圆角 */
    /*z-index: 1; !* 覆盖内容但不遮挡边框 *!*/
    border: 1px dashed #ff4d4f;
}



.target-container {
    position: relative;
    width: 100%;
    display: inline-block;
}
.toast-notification {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 10px;
    padding: 10px 20px;
    background-color: var(--theme-primary);
    color: white;
    border-radius: 6px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    font-family: sans-serif;
    font-size: 12px;
    z-index: 10;
    opacity: 0;
    animation: fadeIn 0.5s forwards, fadeOut 0.5s forwards 10s;
}

/* 指向标识 - 下方三角形 */
.toast-notification::after {
    content: '';
    position: absolute;
    top: 100%; /* 定位到提示框底部 */
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    /* 箭头颜色与提示框背景一致，形成指向效果 */
    border-color: var(--theme-primary) transparent transparent transparent;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate3d(-50%, 10px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(-50%, 0, 0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translate3d(-50%, 0, 0);
    }
    to {
        opacity: 0;
        transform: translate3d(-50%, -10px, 0);
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10px;
    flex: 1;
    width: 100%;

    /*display: flex;*/
    /*justify-content: center;*/
    /*align-items: center;*/

}

/* 顶部导航菜单 - 固定在顶部，新设计风格 */
.main-nav {
    background-color: #2c3e50;
    color: white;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    height: 60px;
    transition: all 0.3s ease;
}

/* 导航栏滚动效果 */
.main-nav.scrolled {
    background-color: rgba(44, 62, 80, 0.95);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

/* 导航品牌标识 */
.nav-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white;
    font-weight: 600;
    font-size: 18px;
}

.nav-brand-logo {
    width: 36px;
    height: 36px;
    margin-right: 6px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 1px; /* 格子间的分隔线 */
    background-color: #fff; /* 分隔线颜色 */
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Arial', sans-serif;
    font-size: 12px; /* 适配小尺寸的文字大小 */
    font-weight: bold;
    color: white;
}

.logo-item:hover {
    transform: scale(1.05);
}

/* 第一个格子（7）- 蓝色 */
.item-1 {
    background-color: #3498db;
}

/* 第二个格子（3）- 紫色 */
.item-2 {
    background-color: #9b59b6;
}

/* 第三个格子（4）- 红色 */
.item-3 {
    background-color: #e74c3c;
}

/* 第四个格子（1）- 橙色 */
.item-4 {
    background-color: #f39c12;
}


/* 导航菜单列表 */
.nav-list {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-item {
    position: relative;
    margin: 0 5px;
}

.nav-link {
    display: block;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    padding: 0 15px;
    height: 60px;
    line-height: 60px;
    transition: all 0.3s;
    font-size: 14px;
    position: relative;
}

.nav-link:hover {
    color: white;
}

.nav-link.active {
    color: white;
}

/* 激活状态下划线效果 */
.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #3498db;
}

/* 导航栏右侧的登录注册按钮组 */
.nav-actions {
    display: flex;
    align-items: center;
}

.nav-btn {
    margin-left: 12px;
    padding: 6px 16px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s;
    font-size: 14px;
    font-weight: 500;
}

.login-btn {
    background-color: transparent;
    border: 1px solid rgba(255,255,255,0.7);
    color: rgba(255,255,255,0.9);
}

.login-btn:hover {
    background-color: rgba(255,255,255,0.1);
    border-color: white;
    color: white;
}

.register-btn {
    background-color: #3498db;
    color: white;
    border: 1px solid #3498db;
}

.register-btn:hover {
    background-color: #2980b9;
    border-color: #2980b9;
}

/* 移动端汉堡菜单按钮 */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 1000;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 2px 0;
    transition: all 0.3s ease;
    border-radius: 3px;
}

/* 汉堡菜单打开状态 */
.menu-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* 整合的logo、标题和搜索框区域 */
.header-section {
    background-color: var(--bg-main);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 20px 10px;
    margin: 20px 0 30px 0;
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-title {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.logo {
    width: 50px;
    height: 50px;
    background-color: #3498db;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: white;
    font-size: 24px;
    font-weight: bold;
}

.site-name {
    font-size: 24px;
    font-weight: 600;
    color: #333;
}

.hitokoto-area {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    text-align: center;
    max-width: 800px;
}


/* 链接容器样式 */
.link-container {
    background-color: var(--bg-main);
    border-radius: 8px;
    padding: 20px 10px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.flex-fill {
    -ms-flex: 1 1 auto!important;
    flex: 1 1 auto!important;
}
.tab-to-more {
    position: relative;
}
.tab-to-more::before {
    content: '';
    position: absolute;
    left: 5px;
    width: 0;
    height: 2px;
    border-radius: 2px;
    background: rgba(116,116,116,0.1);
    transition: 0.5s ease-out;
}
.link-category:hover .tab-to-more::before{
    width:calc(100% - 5px);
}
.link-category:hover h3 i{
    /*color: var(--theme-focus);*/
}
.link-category {
    margin-bottom: 25px;
}

.link-category:last-child {
    margin-bottom: 0;
}

.link-category>h3 {
    font-size: 16px;
    /*color: #333;*/
    margin: 0 0 15px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #3498db;
    display: flex;
    justify-content: space-between;
    align-items: center;
}


.link-item {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    /*width: 100%;*/
    padding: 10px;
    border-radius: 10px;
    background-color: var(--bg-body);
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    line-height: 1.8;
    font-size: 14px;
}
.link-item:hover {
    /* 背景色变深（明显的颜色对比） */
    background-color: #e0e0e0;
    /* 文字颜色加深（增强可读性） */
    color: #111;
    /* 阴影增强（突出悬浮感） */
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.1);
}

.link-item:hover .link-img img {
    transform: scale(0.85);
}

.link-header {
    margin-right: 10px;
}
.fill-cover {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.link-img {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: inherit;
    height: 100%;
    width: 100%;
}

.link-media {
    width: 40px;
    height: 0;
    padding-bottom: 100%;
    border-radius: 40px;
    position: relative;
    overflow: hidden;
    background-color: var(--bg-main);
}
.link-img img {
    position: absolute;
}

.link-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.link-title {
    font-size: 14px!important;
    font-weight: 500;
    color: #333;
    margin: 0!important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.link-desc {
    font-size: 12px;
    color: #666;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    -o-text-overflow: ellipsis;
    text-overflow: ellipsis;
    /* white-space: nowrap; */
}
.link-item:hover .link-title{
    color: var(--theme-focus);
}
.ai_desc {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0px 10px;
    border: none;
    border-radius: 24px; /* 圆角设计 */
    background: linear-gradient(135deg, #4361ee, #3a0ca3); /* 渐变背景 */
    color: white;
    font-family: 'Segoe UI', sans-serif;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease; /* 平滑过渡 */
    transform-origin: center;
    box-shadow: 0 4px 12px rgba(67, 97, 238, 0.2);
}
.ai_desc i {
    margin-right: 8px;
    font-size: 14px!important;
}
.ai_desc:hover {
    transform: scale(1.01); /* 轻微放大 */
    box-shadow: 0 0 15px 5px rgba(67, 97, 238, 0.4); /* 蓝色发光 */
    background: linear-gradient(135deg, #3a56d4, #310987); /* 加深渐变 */
}

/* 空状态样式 */
.empty-state {
    text-align: center;
    padding: 10px 20px;
    background-color: #fff;
    border-radius: 8px;
    /*margin-top: 30px;*/
}

.empty-icon {
    font-size: 60px;
    color: #ddd;
    margin-bottom: 20px;
}

.empty-text {
    font-size: 16px;
    color: #999;
    margin-bottom: 30px;
}
.myTabs {
    display: inline-block;
    height: auto;
    white-space: inherit;
}
.myTabs li{
    padding: 0 10px;
}
.diy_edit {
    padding: 0 0 16px 0;
}
.diy_edit h4 {
    float: right;
    position: relative;
    top: 1px;
    display: flex;
}

/* 淘客商品推荐区域 */
.taoke-container {
    background-color: var(--bg-main);
    border-radius: 8px;
    padding: 20px 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.taoke-header {
    font-size: 18px;
    color: #333;
    margin: 0 0 15px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #3498db;
}

/* 商品分类按钮样式 */
.category-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.category-btn {
    padding: 4px 12px;
    border: 1px solid #3498db;
    border-radius: 20px;
    background-color: transparent;
    color: #3498db;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 12px;
}

.category-btn:hover {
    background-color: #ebf5fb;
}

.category-btn.active {
    background-color: #3498db;
    color: white;
}

/* 商品列表样式 */
.product-list {
    display: none;
}

.product-list.active {
    display: block;
}

.loading {
    text-align: center;
    padding: 30px;
    color: #666;
}

.no-more {
    text-align: center;
    padding: 15px;
    color: #999;
    font-size: 14px;
}

/* 商品项样式 */
.taoke-item {
    padding: 12px 0;
    border-bottom: 1px dashed #eee;
    transition: all 0.2s;
}

.taoke-item:last-child {
    border-bottom: none;
}

.taoke-item:hover {
    background-color: #f9f9f9;
    padding-left: 10px;
}

.taoke-content {
    width: 100%;
}

.taoke-title {
    font-weight: 500;
    color: #333;
    margin-bottom: 5px;
    display: block;
    transition: color 0.2s;
}

.taoke-item:hover .taoke-title {
    color: #3498db;
}

.taoke-info {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
}

.taoke-price {
    color: #ff4d4f;
    font-weight: 500;
}

.taoke-commission {
    color: #52c41a;
}

.add-btn,.edit-btn-index {
    border: none;
    border-radius: 4px;
    padding: 4px 10px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}
.edit-btn-index {
    /*display: none;*/
}
.add-btn:hover,.edit-btn-index:hover {
    color: var(--theme-focus);
}

/* 右键菜单样式 */
#contextMenu {
    position: absolute;
    width: 120px;
    background-color: white;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    z-index: 9999;
    display: none;
}

#contextMenu ul {
    list-style: none;
    margin: 0;
    padding: 5px 0;
}

#contextMenu li {
    padding: 6px 15px;
    cursor: pointer;
    transition: background-color 0.2s;
}

#contextMenu li:hover {
    background-color: #f2f3f5;
}

#contextMenu li.divider {
    height: 1px;
    padding: 0;
    margin: 5px 0;
    background-color: #eee;
    cursor: default;
}

/* 登录注册表单样式 */
.auth-form {
    padding: 20px;
}
.captcha {
    height: 40px;
    width: 100%;
}
.form-title {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.form-switch {
    text-align: center;
    margin-top: 15px;
    color: #666;
    font-size: 14px;
}

.form-switch a {
    color: #3498db;
    cursor: pointer;
}


/* 跳转容器 */
.redirect-container {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    padding: 40px;
    width: 100%;
    max-width: 600px;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin: 60px auto 0;
}

.redirect-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #3498db, #52c41a);
}

.redirect-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background-color: #f0f7ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.redirect-icon i {
    font-size: 40px;
    color: #3498db;
    animation: rotate 2s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.redirect-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin: 0 0 15px 0;
}

.redirect-message {
    color: #666;
    font-size: 16px;
    margin: 0 0 25px 0;
    line-height: 1.6;
}

.url-container {
    background-color: #f5f7fa;
    border-radius: 4px;
    padding: 12px 15px;
    margin-bottom: 30px;
    font-size: 14px;
    color: #333;
    word-break: break-all;
    text-align: left;
    border-left: 3px solid #3498db;
}

.redirect-tips {
    color: #ff4d4f;
    font-size: 12px;
    margin-bottom: 30px;
    padding: 10px 0px;
    background-color: #fff2f0;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.redirect-tips i {
    margin-right: 5px;
}

.redirect-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.redirect-btn {
    padding: 10px 25px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.continue-btn {
    background-color: #3498db;
    color: white;
}

.continue-btn:hover {
    background-color: #2980b9;
}

.cancel-btn {
    background-color: #f5f7fa;
    color: #666;
}

.cancel-btn:hover {
    background-color: #e9ecef;
}

.countdown {
    font-size: 14px;
    color: #999;
    margin-top: 20px;
}

.countdown span {
    color: #3498db;
    font-weight: 600;
}


/* 搜索框容器 - 作为下拉菜单的定位父级 */
.search-wrap {
    position: relative; /* 关键：下拉菜单基于该容器定位 */
    width: 600px;
    max-width: 90%;
}

/* 搜索框主行容器 */
.search-container {
    width: 100%;
}
.currEngin {
    width: 62px;
    display: flex;
    align-items: center;
    pointer-events: auto!important;

    background-color: #fff;
    border: 1px solid #e6e6e6;
    /*border-right: none;*/
    border-radius: 4px 0 0 4px;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}
.currEngin:hover {
    background-color: #f8f8f8;
}
.currEngin img{
    width: 20px;
    height: 20px;
    object-fit: contain;
}
.search-container .layui-input{
    padding-left: 62px!important;
}
/* 搜索引擎下拉菜单 - 宽度与搜索框一致，网格布局 */
.engine-dropdown {
    position: absolute;
    top: 100%; /* 紧贴搜索框底部 */
    left: 0;
    width: 100%; /* 关键：宽度继承父容器（search-wrap）100% */
    background-color: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 0 0 4px 4px; /* 圆角与搜索框呼应 */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    list-style: none;
    /*padding: 15px;*/
    z-index: 9;
    margin-top: -1px; /* 消除与搜索框的边框间隙 */
    /* 核心：Grid 网格布局实现单元格排列 */
    /*display: flex;*/
    flex-wrap: wrap; /* 自动换行 */
    gap: 5px 10px; /* 单元格之间的间距 */
    opacity: 0;
    transform: translateY(-5px);
    pointer-events: none; /* 隐藏时禁止点击 */
}
/* 下拉菜单选项（单元格样式） */
.engine-dropdown li {
    /*width: 45px;*/
    min-width: 40px;
    width: calc(10% - 15px); /* 减去gap的影响，可根据需求调整宽度占比 */
    flex-shrink: 0; /* 禁止单元格收缩 */
    display: flex;
    flex-direction: column; /* 图标在上，文字在下 */
    align-items: center;
    justify-content: center;
    /*padding: 10px 5px;*/
    padding: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    /*background-color: #f9f9f9;*/
    /*border-radius: 4px;*/
    /*border: 1px solid #e6e6e6;*/
}
.engine-dropdown li img{
    padding: 10px;
    background-color: #eee;
    border-radius: 4px;
    /*border: 1px solid #e6e6e6;*/
}
.engine-dropdown li:hover,.engine-dropdown li:hover img{
    background-color: #f0f7ff;
    /*border-color: #1E9FFF;*/
    transform: translateY(-2px);
}
.engine-dropdown li img {
    width: 20px;
    height: 20px;
    /*margin-bottom: 8px; !* 图标与文字的间距 *!*/
    object-fit: contain;
}
.engine-dropdown li span {
    color: #333;
    text-align: center;
    white-space: nowrap; /* 防止文字换行 */
    display: inline-block;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 12px;
}
/* 搜索输入框 */
.search-input {
    flex: 1;
    height: 42px;
    padding: 0 15px;
    border: 1px solid #e6e6e6;
    outline: none;
    font-size: 16px;
    color: #333;
    transition: border-color 0.3s ease;
}
.search-input:focus {
    border-color: #1E9FFF;
    box-shadow: 0 0 0 2px rgba(30, 159, 255, 0.2);
}
/* 显示下拉菜单的激活状态 */
.engine-dropdown.show {
    display: flex; /* 显示时用grid布局 */
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto; /* 显示时允许点击 */
    transition: opacity 0.2s ease, transform 0.2s ease; /* 过渡动画 */
}


/* 搜索区域 */
/*.search-container {*/
/*    background-color: #fff;*/
/*    border-radius: 8px;*/
/*    box-shadow: 0 2px 15px rgba(0,0,0,0.1);*/
/*    padding: 20px;*/
/*    margin: 10px 0 30px 0;*/
/*    width: 1200px;*/
/*}*/

/*.search-box {*/
/*    display: flex;*/
/*    gap: 10px;*/
/*    margin-bottom: 15px;*/
/*    width: 100%;*/
/*}*/

/*.search-input {*/
/*    flex: 1;*/
/*    padding: 12px 15px;*/
/*    border: 1px solid #e6e6e6;*/
/*    border-radius: 4px;*/
/*    font-size: 16px;*/
/*    transition: border-color 0.3s;*/
/*}*/

/*.search-input:focus {*/
/*    border-color: #3498db;*/
/*    outline: none;*/
/*}*/

/*.search-btn {*/
/*    background-color: #3498db;*/
/*    color: white;*/
/*    border: none;*/
/*    border-radius: 4px;*/
/*    padding: 0 20px;*/
/*    font-size: 16px;*/
/*    cursor: pointer;*/
/*    transition: background-color 0.3s;*/
/*    display: flex;*/
/*    align-items: center;*/
/*    gap: 8px;*/
/*}*/

/*.search-btn:hover {*/
/*    background-color: #2980b9;*/
/*}*/

.search-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 14px;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-label {
    color: #666;
}

.filter-select {
    padding: 5px 10px;
    border: 1px solid #e6e6e6;
    border-radius: 4px;
    background-color: #fff;
    cursor: pointer;
}

.filter-tag {
    background-color: #f0f7ff;
    color: #3498db;
    padding: 4px 10px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.filter-tag i {
    cursor: pointer;
    font-size: 12px;
}

/* 搜索结果区域 */
.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.results-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 10px;
}
.results-count {
    color: #666;
    font-size: 14px;
}

.results-count span {
    color: #3498db;
    font-weight: 600;
}

.sort-options {
    display: flex;
    gap: 15px;
}

.sort-option {
    color: #666;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.sort-option.active {
    color: #3498db;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.product-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);

    .product-title{
        color: var(--theme-focus);
    }
    .view-details {
        background-color: var(--theme-primary);
    }
}

.product-image {
    height: 200px;
    background-color: #f5f7fa;
    position: relative;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #ff4d4f;
    color: white;
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 4px;
}

.product-content {
    padding: 15px;
}

.product-title {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    margin-bottom: 10px;
    line-height: 20px;
    /*height: 40px;*/
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.current-price {
    font-size: 18px;
    font-weight: 600;
    color: #ff4d4f;
}

.original-price {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #999;
}

.product-sales {
    display: flex;
    align-items: center;
    gap: 5px;
}

.product-platform {
    background-color: #f5f7fa;
    padding: 2px 8px;
    border-radius: 4px;
}

.product-actions {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

.view-details {
    flex: 1;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 0;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s;
}


.add-favorite {
    width: 36px;
    height: 36px;
    border-radius: 4px;
    border: 1px solid #e6e6e6;
    background-color: white;
    color: #999;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.add-favorite:hover, .add-favorite.active {
    color: #ff4d4f;
    border-color: #ff4d4f;
}

/* 分页区域 */
.pagination-container {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.pagination {
    display: flex;
    gap: 5px;
}

.page-btn {
    width: 36px;
    height: 36px;
    border-radius: 4px;
    border: 1px solid #e6e6e6;
    background-color: white;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-btn:hover {
    border-color: #3498db;
    color: #3498db;
}

.page-btn.active {
    background-color: #3498db;
    color: white;
    border-color: #3498db;
}

.page-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-btn.disabled:hover {
    border-color: #e6e6e6;
    color: #666;
}



/* 用户中心标题区域 */
.user-center-header {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin: 20px 0 30px 0;
    width: 1200px;
}

.user-center-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin: 0 0 10px 0;
    padding: 25px 30px 0;
}

.user-center-desc {
    color: #666;
    font-size: 14px;
    padding: 0 30px 30px;
}

/* 用户中心主内容区域 */
.user-center-content {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

/* 侧边栏导航 */
.user-sidebar {
    width: 200px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 20px 0;
    flex-shrink: 0;
}

.user-profile {
    padding: 0 20px 20px;
    border-bottom: 1px solid #eee;
    text-align: center;
    margin-bottom: 10px;
}

.avatar-container {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
}

.user-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #f5f7fa;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.avatar-upload {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 28px;
    height: 28px;
    background-color: #3498db;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: all 0.3s;
}

.avatar-upload:hover {
    background-color: #2980b9;
    transform: scale(1.1);
}

.user-name {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 5px 0;
}

.user-joined {
    font-size: 12px;
    color: #999;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu-item {
    margin: 0;
}

.sidebar-menu-link {
    /*display: block;*/
    padding: 12px 20px;
    color: #666;
    text-decoration: none;
    font-size: 15px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
}

.sidebar-menu-link i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.sidebar-menu-link:hover {
    background-color: #f5f7fa;
    color: #3498db;
}

.sidebar-menu-link.active {
    background-color: #ebf5fb;
    color: #3498db;
    border-left: 3px solid #3498db;
}

/* 主内容区域 */
.user-main-content {
    flex: 1;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 25px 30px;
}

.content-header {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.content-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
    display: flex;
    align-items: center;
}

.content-title i {
    margin-right: 8px;
    color: #3498db;
}

/* 个人资料样式 */
.profile-form .layui-form-item {
    margin-bottom: 20px;
}

.profile-form .layui-form-label {
    width: 120px;
    font-weight: 500;
}

.profile-form .layui-input-block {
    margin-left: 150px;
}

.form-actions {
    margin-top: 30px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

/* 链接管理样式 */
.link-management-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /*margin-bottom: 20px;*/
}

.filter-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.category-filter {
    width: 180px;
}

.add-link-btn {
    background-color: #3498db;
    color: white;
    border: none;
}

.add-link-btn:hover {
    background-color: #2980b9;
}

.link-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.link-table th,
.link-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.link-table th {
    background-color: #f9f9f9;
    font-weight: 600;
    color: #333;
}

.link-table tr:hover {
    background-color: #f9f9f9;
}

.link-status {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.status-active {
    background-color: #e6f7ed;
    color: #52c41a;
}

.status-disabled {
    background-color: #fef2f2;
    color: #ff4d4f;
}

.table-actions {
    display: flex;
    gap: 8px;
}

.action-btn {
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.edit-btn {
    background-color: #e6f7ff;
    color: #1890ff;
}

.edit-btn:hover {
    background-color: #bae7ff;
}

.delete-btn {
    background-color: #fff2f0;
    color: #ff4d4f;
}

.delete-btn:hover {
    background-color: #ffe3e0;
}

.toggle-btn {
    background-color: #f6ffed;
    color: #52c41a;
}

.toggle-btn:hover {
    background-color: #d9f7be;
}

/*提示页面*/
.message-box {
    /*background-color: #fff;*/
    /*border-radius: 8px;*/
    /*box-shadow: 0 2px 15px rgba(0,0,0,0.1);*/
    /*padding: 40px 30px;*/
    /*width: 100%;*/
    /*max-width: 500px;*/
    /*text-align: center;*/
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    padding: 40px;
    width: 100%;
    max-width: 600px;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin: 60px auto 0;
}

.message-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
}

.icon-success {
    background-color: #f0f9eb;
    color: #52c41a;
}

.icon-error {
    background-color: #fef2f2;
    color: #ff4d4f;
}

.icon-info {
    background-color: #e6f7ff;
    color: #1890ff;
}

.icon-warning {
    background-color: #fffbe6;
    color: #faad14;
}

.message-title {
    font-size: 22px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.message-content {
    color: #666;
    line-height: 1.6;
    margin-bottom: 30px;
    padding: 0 10px;
}

.message-content p {
    margin: 5px 0;
}

.redirect-info {
    color: #999;
    font-size: 14px;
    margin-bottom: 25px;
}

.redirect-count {
    color: #3498db;
    font-weight: 600;
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.action-btn {
    padding: 8px 24px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.primary-btn {
    background-color: #3498db;
    color: white;
}

.primary-btn:hover {
    background-color: #2980b9;
}

.default-btn {
    background-color: #f5f5f5;
    color: #333;
}

.default-btn:hover {
    background-color: #e8e8e8;
}


/* 底部信息区域 */
.footer {
    background-color: #fff;
    border-top: 1px solid #eee;
    padding: 30px 0;
    margin-top: 30px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.footer-link {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-link:hover {
    color: #3498db;
}

.footer-copyright {
    text-align: center;
    color: #999;
    font-size: 13px;
    margin-bottom: 15px;
}

.stats-container {
    text-align: center;
    font-size: 12px;
    color: #999;
}


/*icon选择框*/
.icon-selector {
    /*display: inline-block;*/
    /*padding: 0 10px;*/
    /*height: 38px;*/
    /*line-height: 38px;*/
    /*border: 1px solid #e6e6e6;*/
    /*border-radius: 4px;*/
    /*background-color: #fff;*/
    cursor: pointer;
    /*color: var(--theme-focus);*/
}
.icon-selector i {
    /*margin-right: 5px;*/
}
.icon-dropdown {
    padding: 10px;
    max-width: 310px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.icon-item {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    cursor: pointer;
    border: 1px solid #eee;
    transition: all 0.2s;
}
.icon-item:hover {
    background-color: #1E9FFF;
    color: white;
}


/* 默认隐藏移动端按钮 */
.mobile-actions {
    display: none;
}
/* @media screen and (min-width: 1200px) {
    .container {
        min-width: 1200px;
    }
} */
/* 响应式设计 - 适配手机 */
@media screen and (max-width: 768px) {
    html, body {
        overflow-x: hidden;
        width: 100%;
    }
    /* 移除容器的最小宽度限制，适应移动端屏幕 */
    .container {
        /*min-width: auto !important;*/
        margin: 0;
        width: auto;
    }
    /* 导航栏变为汉堡菜单 */
    .menu-toggle {
        display: flex;
    }

    .nav-list {
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        flex-direction: column;
        background-color: #2c3e50;
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
    }

    .nav-list.open {
        max-height: 400px;
    }

    .nav-item {
        margin: 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .nav-item:last-child {
        border-bottom: none;
    }

    .nav-link {
        padding: 15px 20px;
        height: auto;
        line-height: normal;
    }

    .nav-link.active::after {
        display: none;
    }

    .nav-actions {
        display: none;
    }

    /* 移动端导航菜单中的登录注册按钮 */
    .mobile-actions {
        padding: 10px 20px;
        border-top: 1px solid rgba(255,255,255,0.1);
        display: flex;
        justify-content: center;
    }

    .mobile-actions .nav-btn {
        margin: 0 8px;
    }

    /* 其他响应式调整 */
    .logo-title {
        flex-direction: column;
        text-align: center;
    }

    .logo {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .link-img {
        /*flex: 0 0 40px;*/
    }

    .link-img img {
        /*height: 40px;*/
    }

    .link-title {
        font-size: 14px;
    }

    .link-desc {
        font-size: 12px;
    }

    .add-btn {
        /*display: none;*/
    }
    .edit-btn-index {
        display: block;
    }

    .showsj {
        display: contents;
    }
    .layui-layer-diy{
        width: 80%!important;
        min-width: 200px!important;
    }
    .footer-links {
        gap: 10px 15px;
    }

    .engine-dropdown {
        /*width: 90%;*/
    }
    .engine-dropdown li {
        width: calc(22% - 15px); /* 减去gap的影响，可根据需求调整宽度占比 */
    }
    .redirect-container {
        padding: 30px 20px;
        width: 80%;
    }

    .redirect-actions {
        flex-direction: column;
    }

    .redirect-btn {
        width: 100%;
    }


    .results-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .search-container {
        width: 100%;
        padding: 0;
    }
    .search-box {
        flex-direction: column;
    }
    .search-btn {
        padding: 10px 20px;
        display: inline-block;
    }
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .product-image {
        height: 150px;
    }

    .user-center-header {
        width: 100%;
        /*padding: 20px 15px;*/
    }
    .user-sidebar {
        width: 100%;
    }
    .user-center-content {
        flex-direction: column;
    }
    .user-center-desc {
        padding: 0 30px 10px;
    }
    .user-center-title {
        font-size: 20px;
        padding: 10px 30px 0;
    }

    .profile-form .layui-form-label {
        width: 70px;
        padding: 9px 5px;
    }

    .profile-form .layui-input-block {
        margin-left: 85px;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions button {
        width: 100%;
    }
    /* 确保footer容器满屏宽度 */
    .footer {
        width: 100%;
        box-sizing: border-box; /* 确保padding不会影响加宽度 */
        padding-left: 0;
        padding-right: 0;
    }

    .footer-container {
        padding: 0 15px; /* 保持与页面内容一致的内边距 */
        box-sizing: border-box;
    }
}