* {

    margin: 0;

    padding: 0;

    box-sizing: border-box;

}



html, body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', sans-serif;
    background-color: #f5f7fa;

    color: #333;

    line-height: 1.6;

    font-size: 14px;

    min-height: 100vh;

    display: flex;

    flex-direction: column;

}

/* 仅后台管理页面禁用全局滚动，避免侧边栏和顶部跟随滚动 */
body.admin-page {
    height: 100%;
    overflow: hidden;
}



.container {

    max-width: 1400px;

    width: 100%;

    margin: 0 auto;

    padding: 0 20px;

}



.top-bar {
    background: #34A7F3;
    padding: 6px 0;
}

.top-bar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.top-bar-left {
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.top-bar-phone {
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}

.top-bar-sep {
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
}

.top-bar-time {
    color: rgba(255, 255, 255, 0.85);
    font-size: 12px;
}

.header {

    background: #fff;

    padding: 12px 0;

    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);

}



.header-content {

    display: flex;

    align-items: center;

    justify-content: space-between;

}



.logo-link {

    display: flex;

    align-items: center;

    gap: 10px;

    text-decoration: none;

}



.logo-image {

    height: 45px;

    width: auto;

    max-width: 200px;

    object-fit: contain;

}



.logo-text {

    color: #FF68A2;

    font-size: 22px;

    font-weight: bold;

    margin: 0;

}



.header-ad {

    color: #34A7F3;

    font-size: 14px;

    font-weight: 500;

    text-decoration: none;

    background: rgba(52, 167, 243, 0.1);

    padding: 8px 20px;

    border-radius: 20px;

    transition: all 0.3s;

}


.header-ad:hover {

    background: rgba(52, 167, 243, 0.2);

    transform: translateY(-1px);

}



.header-right {

    display: flex;

    flex-direction: column;

    align-items: flex-end;

    gap: 5px;

}



.contact-info {

    display: flex;

    flex-wrap: wrap;

    gap: 5px;

    font-size: 13px;

    color: #666;

    align-items: center;

}



.search-contact {

    display: flex;

    flex-wrap: wrap;

    gap: 15px;

    font-size: 14px;

    color: #fff;

    align-items: center;

    justify-content: center;

    background: #FF68A2;

    padding: 0 22px;

    border-radius: 25px;

    flex-shrink: 0;

    box-sizing: border-box;

}


.contact-item {

    color: #666;

    font-size: 13px;

    font-weight: 500;

    white-space: nowrap;

    padding: 0;

    background: transparent;

    border: none;

}



.search-contact-item {

    color: #fff;

    font-size: 13px;

    font-weight: 500;

    white-space: nowrap;

    padding: 0;

    background: transparent;

    border: none;

}



.contact-item:hover {

    opacity: 0.85;

}



.notice-bar {

    background: #f8f9fa;

    padding: 12px 0;

    overflow: hidden;

    border-top: 1px solid #e0e0e0;

    border-bottom: 1px solid #e0e0e0;

}



.notice-bar .container {

    padding: 0 20px;

}



.notice-content {

    display: flex;

    align-items: center;

    white-space: nowrap;

    animation: scrollNotice 20s linear infinite;

    width: max-content;

}



/* 鼠标悬停暂停滚动（电脑端） */

.notice-content:hover {

    animation-play-state: paused;

}



.notice-icon {

    background: #34A7F3;

    color: #fff;

    padding: 4px 16px;

    border-radius: 15px;

    font-size: 13px;

    font-weight: 600;

    margin-right: 15px;

    flex-shrink: 0;

    letter-spacing: 1px;

}


.notice-text {

    font-size: 15px;

    color: #333;

    font-weight: 500;

    letter-spacing: 0.8px;

    line-height: 1.6;

}



@keyframes scrollNotice {

    0% {

        transform: translateX(100%);

    }

    100% {

        transform: translateX(-100%);

    }

}



.nav-bar {

    background-color: #fff;

    padding: 12px 0;

    border-bottom: 1px solid #f0f0f0;

}



.nav-bar .container {

    display: flex;

    flex-wrap: wrap;

    gap: 8px;

}



.nav-item {

    padding: 8px 20px;

    color: #666;

    text-decoration: none;

    border-radius: 20px;

    font-size: 14px;

    transition: all 0.3s;

    background: #f5f5f5;

}


.nav-item:hover, .nav-item.active {

    background-color: #FF68A2;

    color: #fff;

}



.search-section {

    background-color: #fff;

    padding: 10px 0;

    border-bottom: 1px solid #f0f0f0;

}



.search-section .container {

    padding: 10px 20px;

    border: none;

    background: #fff;

}



/* 搜索行：左侧统计 + 中间搜索框 + 右侧联系方式 —— 三部分高度统一 */
.search-row {

    display: flex;

    align-items: center;

    gap: 12px;

    width: 100%;

    box-sizing: border-box;

    flex-wrap: wrap;

    justify-content: space-between;

}

/* 三部分统一高度容器（44px 大圆胶囊高度） */
.search-row > .stats-box,
.search-row > .search-wrap > .search-form,
.search-row > .search-contact {

    height: 44px;

    box-sizing: border-box;

}

/* 数据统计盒子 */
.stats-box {

    display: flex;

    align-items: center;

    gap: 8px;

    background: #FF68A2;

    color: #fff;

    padding: 0 22px;

    border-radius: 25px;

    font-size: 14px;

    font-weight: 500;

    flex-shrink: 0;

    box-sizing: border-box;

}



.stats-icon {

    font-size: 18px;

}



.stats-label {

    opacity: 0.95;

}



.stats-count {

    font-size: 18px;

    font-weight: bold;

    line-height: 1;

    padding: 0 4px;

    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);

}



.stats-unit {

    opacity: 0.95;

}



/* 搜索框容器 */

.search-wrap {

    flex: 1 1 auto;

    min-width: 280px;

    max-width: 500px;

}



.search-form {

    display: flex;

    align-items: center;

    gap: 6px;

    background: #FF68A2;

    padding: 0 5px;

    border-radius: 25px;

    box-sizing: border-box;

}



.search-input {

    flex: 1;

    padding: 8px 16px;

    border: none;

    border-radius: 20px;

    font-size: 14px;

    outline: none;

    background: #fff;

    min-width: 0;

    height: 34px;

    box-sizing: border-box;

    transition: background 0.3s;

}



.search-input:focus {

    background: #fff;

}



.search-input::placeholder {

    color: #999;

}



.search-btn {

    padding: 0 22px;

    background: #fff;

    color: #FF68A2;

    border: none;

    border-radius: 20px;

    font-size: 14px;

    font-weight: 600;

    cursor: pointer;

    transition: transform 0.2s, box-shadow 0.2s;

    white-space: nowrap;

    height: 34px;

    box-sizing: border-box;

    display: flex;

    align-items: center;

}



.search-btn:hover {

    transform: translateY(-1px);

    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);

}

.search-tip {
    color: #999;
    font-size: 13px;
    margin-top: 8px;
    text-align: center;
}

.search-tip span {
    color: #34A7F3;
    font-weight: 600;
}


/* 标签栏 */

.tags-bar {

    background-color: #fff;

    padding: 12px 0;

    border-bottom: 1px solid #f0f0f0;

}



.tags-scroll {

    display: flex;

    flex-wrap: wrap;

    gap: 10px;

    padding: 2px 0;

}



.tag-item {

    display: inline-flex;

    align-items: center;

    gap: 6px;

    padding: 6px 16px;

    border-radius: 20px;

    background: #f5f5f5;

    border: 1px solid #e0e0e0;

    color: #666;

    text-decoration: none;

    font-size: 13px;

    white-space: nowrap;

    transition: all 0.3s;

    cursor: pointer;

}


.tag-item:hover {

    background: #34A7F3;

    border-color: #34A7F3;

    color: #fff;

    transform: translateY(-1px);

}


.tag-item.active {

    background: #34A7F3;

    color: #fff;

    border-color: #34A7F3;

}


.tag-item.tag-all {

    background: #FF68A2;

    color: #fff;

    border-color: #FF68A2;

}


.tag-item.tag-all:hover {

    background: #D64FA0;

    color: #fff;

    border-color: #D64FA0;

}



.tag-name {

    font-weight: 500;

}



.tag-count {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-width: 20px;

    height: 18px;

    padding: 0 5px;

    border-radius: 9px;

    background: rgba(52, 167, 243, 0.15);

    color: #34A7F3;

    font-size: 11px;

    font-weight: 600;

}


.tag-item.active .tag-count {

    background: rgba(255, 255, 255, 0.3);

    color: #fff;

}



/* 标签筛选提示栏 */

.tag-filter-bar {

    background: #f8f9fa;

    padding: 10px 0;

    border-bottom: 1px solid #f0f0f0;

}



.tag-filter-bar .container {

    display: flex;

    align-items: center;

    justify-content: space-between;

    flex-wrap: wrap;

    gap: 8px;

}



.tag-filter-text {

    font-size: 14px;

    color: #666;

}


.tag-filter-text strong {

    color: #34A7F3;

    font-weight: 600;

}


.tag-filter-clear {

    color: #FF68A2;

    text-decoration: none;

    font-size: 13px;

    padding: 4px 12px;

    border-radius: 15px;

    background: rgba(255, 104, 162, 0.1);

    transition: all 0.3s;

}


.tag-filter-clear:hover {

    background: #fff;

    color: #34A7F3;

}



.main-content {

    padding: 20px 0;

    flex: 1;

}



.cards-grid {

    display: grid;

    grid-template-columns: repeat(6, 1fr);

    gap: 15px;

}



.card-item {

    background-color: #fff;

    border-radius: 8px;

    overflow: hidden;

    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);

    display: flex;

    position: relative;

    height: 100%;

}

.card-id-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 10;
    background: rgba(30, 41, 59, 0.55);
    color: rgba(255,255,255,0.92);
    font-size: 10px;
    font-weight: 500;
    padding: 1px 7px;
    border-radius: 8px;
    pointer-events: none;
    font-family: 'SF Mono', 'Consolas', 'Monaco', monospace;
    letter-spacing: 0.4px;
    backdrop-filter: blur(4px);
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
    border: 1px solid rgba(255,255,255,0.15);
}

/* 管理员前台模式 - 编辑按钮（贴在图片左上角，不挡标题/描述/价格） */
.card-admin-edit {
    position: absolute;
    top: 6px;
    left: 6px;
    z-index: 10;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(52,167,243,0.85);
    color: #fff;
    border-radius: 6px;
    font-size: 13px;
    text-decoration: none;
    box-shadow: 0 1px 4px rgba(52,167,243,0.4);
    transition: background .2s;
}
.card-admin-edit:hover { background: #34A7F3; }

/* 顶部栏伙伴登录入口 */
.top-bar-partner-btn {
    background: rgba(255,255,255,0.18);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: 14px;
    padding: 2px 12px;
    font-size: 12px;
    cursor: pointer;
    transition: all .2s;
}
.top-bar-partner-btn:hover { background: rgba(255,255,255,0.32); }
.top-bar-partner { color: #fff; font-size: 13px; font-weight: 500; }
.top-bar-partner-form { display: inline; margin-left: 6px; }
.top-bar-partner-logout {
    background: none;
    border: 1px solid rgba(255,255,255,0.5);
    color: #fff;
    border-radius: 12px;
    padding: 1px 10px;
    font-size: 12px;
    cursor: pointer;
    transition: background .2s;
}
.top-bar-partner-logout:hover { background: rgba(255,255,255,0.2); }

/* 管理员前台模式：固定状态条 */
.admin-frontend-bar {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(30, 41, 59, 0.92);
    color: #fff;
    padding: 8px 14px;
    border-radius: 24px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(52, 167, 243, 0.4);
    font-size: 13px;
}
.admin-frontend-bar-icon { font-size: 15px; }
.admin-frontend-bar-text { color: rgba(255, 255, 255, 0.9); white-space: nowrap; }
.admin-frontend-bar-exit {
    background: #34A7F3;
    color: #fff;
    border: none;
    border-radius: 14px;
    padding: 4px 12px;
    font-size: 12px;
    text-decoration: none;
    transition: background .2s;
    white-space: nowrap;
}
.admin-frontend-bar-exit:hover { background: #1E7BC0; }
@media (max-width: 600px) {
    .admin-frontend-bar { bottom: 12px; left: 12px; right: 12px; justify-content: center; }
    .admin-frontend-bar-text { display: none; }
}

/* 伙伴登录模态框 */
.partner-login-modal { max-width: 380px; }
.partner-login-modal .modal-header {
    background: linear-gradient(135deg, #34A7F3, #1E7BC0);
    color: #fff;
    padding: 18px 24px;
    border-radius: 12px 12px 0 0;
}
.partner-login-modal .modal-header h3 { color: #fff; margin: 0; font-size: 17px; }
.partner-login-modal .modal-close {
    color: #fff;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    width: 28px; height: 28px;
}
.partner-login-modal .modal-close:hover { background: rgba(255,255,255,0.35); }
.partner-login-modal .modal-body { padding: 24px; }
.partner-login-form .form-group { margin-bottom: 16px; }
.partner-login-form label {
    display: block;
    font-size: 13px;
    color: #475569;
    margin-bottom: 6px;
    font-weight: 500;
}
.partner-login-form input {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color .2s, box-shadow .2s;
}
.partner-login-form input:focus {
    outline: none;
    border-color: #34A7F3;
    box-shadow: 0 0 0 3px rgba(52,167,243,0.15);
}
.partner-login-submit {
    width: 100%;
    margin-top: 6px;
    padding: 12px;
    background: linear-gradient(135deg, #34A7F3, #1E7BC0);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: opacity .2s;
}
.partner-login-submit:hover { opacity: 0.92; }
.partner-login-error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 14px;
}
.partner-login-tip {
    text-align: center;
    color: #94a3b8;
    font-size: 12px;
    margin-top: 16px;
}

/* 伙伴价样式 */
.price-item-partner { margin-bottom: 6px; }
.price-item-partner .price-label {
    color: #1E7BC0;
    font-weight: 600;
    background: rgba(52,167,243,0.1);
    padding: 1px 8px;
    border-radius: 8px;
    margin-right: 8px;
}
.price-item-partner .price-value {
    font-size: 20px;
    font-weight: 700;
    color: #FF68A2;
}
.price-item-retail-compare { margin-top: 2px; }
.price-item-retail-compare .price-label {
    color: #999;
    font-size: 11px;
}
.price-item-retail-compare .price-value {
    font-size: 13px;
    color: #bbb;
    text-decoration: line-through;
    font-weight: 400;
}
.price-item-retail-compare .price-unit { color: #ccc; }

/* 后台"查看前台"按钮（管理员一键切换到前台模式） */
.btn-view-frontend {
    background: #fff;
    color: #34A7F3;
    border: 1px solid #34A7F3;
    border-radius: 8px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    margin-right: 10px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all .2s;
}
.btn-view-frontend:hover {
    background: #34A7F3;
    color: #fff;
}

/* 伙伴列表 状态标签 */
.status-tag {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 500;
}
.status-tag.on { background: #dcfce7; color: #16a34a; }
.status-tag.off { background: #fee2e2; color: #dc2626; }



/* ====== 置顶卡片：不再用彩色边框（避免与栏目色卡冲突），改用斜角图章标识 ====== */
.card-item.card-top-global,
.card-item.card-top-category {

    /* 不再设置 border / box-shadow，让栏目色卡独占边框样式 */

    position: relative;

}



/* ====== 斜角图章（置顶标识）======
   🔑  标准 Corner Ribbon 写法（亿级项目验证过）：
   1. 长条右移超出卡片（right 负数）→ overflow:hidden 切掉卡片外的右上段和左下段
   2. 旋转45度（默认 transform-origin:50% 50% 以条带自身中心为轴）
   3. 垂直居中用 line-height=height（绝对稳，不用 flex 避免居中漂移）
   4. 水平居中用 text-align:center
   这样可见斜彩带的中心 = 条带 line-height 中心 = 文字严格居中 ===================== */
.card-top-stamp {

    position: absolute;

    top: 14px;
    right: -38px;

    width: 160px;
    height: 26px;
    line-height: 26px;          /* 🔑 line-height = height → 中文垂直100%居中（flex在旋转+裁切后可能错位，此法最稳） */
    text-align: center;

    padding: 0;
    display: block;

    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #fff;

    transform: rotate(45deg);   /* 默认 transform-origin: 50% 50%（条带自身中心为旋转轴） */

    z-index: 8;
    pointer-events: none;

    box-shadow: 0 1px 3px rgba(0,0,0,0.18);
    overflow: hidden;
    text-shadow: 0 1px 1px rgba(0,0,0,0.4);

}

/* 全局置顶：七彩炫彩渐变（红→橙→黄→绿→青→蓝→紫） */
.card-top-stamp.global {

    background: linear-gradient(90deg,

        #FF4D4F 0%, #FF7A45 16%, #FFA940 32%,

        #73D13D 48%, #36CFC9 64%, #40A9FF 80%, #9254DE 100%);

    background-size: 200% 100%;

    animation: stamp-rainbow 6s linear infinite;

}

/* 栏目置顶：金色到红色渐变 */
.card-top-stamp.category {

    background: linear-gradient(90deg, #FAAD14 0%, #FA8C16 50%, #FA541C 100%);

    background-size: 200% 100%;

    animation: stamp-rainbow 4s linear infinite;

}

@keyframes stamp-rainbow {

    0%   { background-position: 0% 50%; }

    100% { background-position: 200% 50%; }

}

/* 768px 手机端：按比例缩小（同样标准 Corner Ribbon 写法） */
@media (max-width: 768px) {

    .card-top-stamp {

        top: 10px;
        right: -32px;

        width: 132px;
        height: 22px;
        line-height: 22px;       /* 🔑 line-height = height 保证中文垂直居中 */
        text-align: center;

        font-size: 10px;
        letter-spacing: 1px;

    }

}

/* 480px 小屏：进一步缩小（同样标准 Corner Ribbon 写法） */
@media (max-width: 480px) {

    .card-top-stamp {

        top: 8px;
        right: -26px;

        width: 110px;
        height: 20px;
        line-height: 20px;       /* 🔑 line-height = height 保证中文垂直居中 */
        text-align: center;

        font-size: 9px;
        letter-spacing: 0.6px;

    }

}



.card-item {

    flex-direction: column;

    border: 1px solid #eee;

}



.card-title {

    padding: 10px;

    font-size: 14px;

    font-weight: 600;

    color: #34A7F3;

    text-align: center;

    border-bottom: 1px solid #f5f5f5;

    display: -webkit-box;

    -webkit-line-clamp: 5;

    -webkit-box-orient: vertical;

    overflow: hidden;

    line-height: 1.4;

    flex: 0 0 auto;

}



.card-image {

    width: 150px;

    height: 150px;

    margin: 0 auto;

    overflow: hidden;

    background-color: #f8f9fa;

    display: flex;

    align-items: center;

    justify-content: center;

    position: relative;

    margin-top: auto;

    flex-shrink: 0;

}



.card-image img {

    width: 150px;

    height: 150px;

    object-fit: cover;

}



.card-desc {

    padding: 10px;

    font-size: 12px;

    color: #FF68A2;

    font-weight: 600;

    line-height: 1.5;

    flex: 0 0 auto;

    display: -webkit-box;

    -webkit-line-clamp: 10;

    -webkit-box-orient: vertical;

    overflow: hidden;

}



.card-price {

    padding: 10px;

    background-color: #f8f9fa;

    border-top: 1px solid #eee;

    min-height: 56px;

    display: flex;

    flex-direction: column;

    justify-content: center;

    flex-shrink: 0;

}



.price-item {

    display: flex;

    align-items: baseline;

    justify-content: center;

    margin-bottom: 4px;

}



.price-item:last-child {

    margin-bottom: 0;

}



.price-label {

    font-size: 12px;

    color: #999;

    margin-right: 6px;

}



.price-item-1 .price-value {

    font-size: 16px;

    font-weight: bold;

    color: #34A7F3;

}



.price-item-2 .price-value {

    font-size: 16px;

    font-weight: bold;

    color: #FF68A2;

}



.price-unit {

    font-size: 12px;

    color: #999;

    margin-left: 2px;

}



.no-result {

    grid-column: 1 / -1;

    text-align: center;

    padding: 60px 20px;

}



.no-result-icon {

    font-size: 48px;

    margin-bottom: 16px;

}



.no-result p {

    font-size: 14px;

    color: #666;

    margin-bottom: 6px;

}



.footer {

    background: #34A7F3;

    color: #fff;

    padding: 20px 0;

    margin-top: auto;

}



.footer-content {

    display: none;

}



.footer-records {

    padding-top: 15px;

    border-top: 1px solid rgba(255, 255, 255, 0.15);

    margin-top: 15px;

}



.record-row {

    display: flex;

    justify-content: center;

    align-items: center;

    gap: 8px;

    margin-bottom: 8px;

}



.record-item {

    display: inline-flex;

    align-items: center;

    gap: 6px;

    color: #fff;

    text-decoration: none;

    font-size: 13px;

    transition: opacity 0.3s;

    padding: 6px 8px;

}



.record-item:hover {

    opacity: 0.8;

}



.record-icon {

    width: 16px;

    height: 16px;

    object-fit: contain;

}



.footer-content p {

    margin: 0;

    font-size: 13px;

}



.footer-content a {

    color: #fff;

    text-decoration: none;

    transition: color 0.3s;

}



.footer-content a:hover {

    color: #34A7F3;

}



.footer-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 15px;
    gap: 10px;
}

.footer-links-title {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
}

.footer-links-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}



.footer-links-list a {

    display: inline-block;

    color: #fff;

    text-decoration: none;

    font-size: 13px;

    font-weight: 500;

    background: rgba(255, 255, 255, 0.2);

    padding: 6px 18px;

    border-radius: 20px;

    transition: all 0.3s;

}



.footer-links-list a:hover {

    color: #FF68A2;

    background: #fff;

    transform: translateY(-1px);

}



.footer-bottom {

    text-align: center;

    padding-bottom: 5px;

    font-size: 15px;

    color: rgba(255, 255, 255, 0.95);

    font-weight: 500;

}



.footer-bottom a {

    color: rgba(255, 255, 255, 0.8);

    text-decoration: none;

    transition: color 0.3s;

}



.footer-bottom a:hover {

    color: #FF68A2;

}



.login-page {

    display: flex;

    align-items: center;

    justify-content: center;

    min-height: 100vh;

    background: linear-gradient(135deg, #34A7F3 0%, #FF68A2 100%);

    padding: 20px;

}



.login-container {

    width: 100%;

    max-width: 420px;

}



.login-box {

    background-color: rgba(255, 255, 255, 0.95);

    border-radius: 20px;

    padding: 45px 40px;

    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);

    backdrop-filter: blur(10px);

}



.login-logo {

    text-align: center;

    margin-bottom: 20px;

}



.login-logo img {

    max-height: 60px;

    max-width: 200px;

    width: auto;

    height: auto;

}



.login-box .login-title {
    text-align: center;
    font-size: 26px;
    font-weight: bold;
    color: #FF68A2 !important;
    margin-bottom: 30px;
}



.login-error {

    background-color: #fff5f5;

    color: #ff4d4f;

    padding: 12px;

    border-radius: 8px;

    margin-bottom: 20px;

    text-align: center;

}



.login-form .form-group {

    margin-bottom: 20px;

}



.login-form label {

    display: block;

    margin-bottom: 8px;

    font-weight: 500;

    color: #333;

}



.login-form input {

    width: 100%;

    padding: 12px 16px;

    border: 2px solid #e0e0e0;

    border-radius: 8px;

    font-size: 15px;

    outline: none;

    transition: border-color 0.3s;

}



.login-form input:focus {

    border-color: #34A7F3;

}



.login-btn {

    width: 100%;

    padding: 14px;

    background: #34A7F3;

    color: #fff;

    border: none;

    border-radius: 8px;

    font-size: 16px;

    font-weight: 500;

    cursor: pointer;

    margin-top: 10px;

    transition: transform 0.2s;

}



.login-btn:hover {

    transform: translateY(-1px);

}



.login-tip {

    text-align: center;

    margin-top: 20px;

    padding-top: 20px;

    border-top: 1px solid #eee;

}



.login-tip p {

    font-size: 13px;

    color: #999;

    margin-bottom: 4px;

}



.admin-page {

    background-color: #f0f2f5;

    min-height: 100vh;

}



.admin-wrapper {

    display: flex;

    min-height: 100vh;

}



.admin-sidebar {

    width: 240px;

    background: linear-gradient(180deg, #34A7F3 0%, #1E7BC0 100%);

    color: #fff;

    position: fixed;

    left: 0;

    top: 0;

    bottom: 0;

    z-index: 1000;

    overflow-y: auto;

    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);

    display: flex;

    flex-direction: column;

}



.admin-sidebar-header {

    padding: 20px 15px;

    border-bottom: 1px solid rgba(255, 255, 255, 0.1);

}



.admin-brand {

    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 8px;

}



.admin-logo {

    max-height: 50px;

    max-width: 180px;

    width: auto;

    height: auto;

    border-radius: 8px;

}



.admin-title {

    font-size: 18px;

    font-weight: bold;

    color: #fff;

    white-space: nowrap;

    margin: 0;

}



.admin-nav {

    padding: 15px 0;

    display: flex;

    flex-direction: column;

}



.admin-sidebar .nav-section {
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
}



.admin-sidebar .nav-section-title {
    font-size: 10px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    padding: 6px 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}



.admin-sidebar .nav-item {

    display: flex;

    align-items: center;

    gap: 10px;

    padding: 10px 16px;

    color: #fff;

    text-decoration: none;

    font-size: 13px;

    transition: all 0.25s;

    border-left: 3px solid transparent;

    white-space: nowrap;

}



.admin-sidebar .nav-item:hover {

    background: rgba(255, 255, 255, 0.1);

    color: #fff;

}



.admin-sidebar .nav-item.active {

    background: rgba(52, 167, 243, 0.3);

    color: #fff;

    border-left-color: #34A7F3;

    font-weight: 500;

}



.admin-sidebar .nav-icon {

    font-size: 18px;

    width: 24px;

    text-align: center;

}



.admin-sidebar .nav-section-bottom {

    margin-top: auto;

    padding-top: 20px;

    border-top: 1px solid rgba(255, 255, 255, 0.1);

}



.admin-sidebar .nav-item-external {

    color: rgba(255, 255, 255, 0.7);

}



.admin-sidebar .nav-item-danger {

    color: #ff6b6b;

}



.admin-sidebar .nav-item-danger:hover {

    background: rgba(255, 107, 107, 0.2);

    color: #ff6b6b;

}



.admin-main {
    flex: 1;
    margin-left: 240px;
    height: 100vh;
    display: flex;
    flex-direction: column;
}



.admin-topbar {

    background: #fff;

    padding: 0 30px;

    height: 56px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);

    position: sticky;

    top: 0;

    z-index: 100;

}



.topbar-left {

    display: flex;

    align-items: center;

}



.current-page {

    font-size: 14px;

}



.current-page-label {

    color: #999;

}



.current-page-name {

    color: #333;

    font-weight: 600;

    margin-left: 4px;

}



.topbar-right {

    display: flex;

    align-items: center;

}



.admin-user {

    font-size: 14px;

    color: #666;

    padding: 6px 16px;

    background: #f5f7fa;

    border-radius: 20px;

}



.admin-content {
    flex: 1;
    padding: 25px 30px;
    overflow-y: auto;
    min-height: 0;
}



.content-container {

    max-width: 100%;

}



.admin-nav {

    display: flex;

    gap: 10px;

}



.message {

    padding: 14px 16px;

    border-radius: 8px;

    margin-bottom: 20px;

    font-size: 14px;

}



.message.success {

    background-color: #f6ffed;

    color: #52c41a;

    border: 1px solid #b7eb8f;

}



.message.error {

    background-color: #fff5f5;

    color: #ff4d4f;

    border: 1px solid #ffccc7;

}



.cards-table, .categories-table {

    background-color: #fff;

    border-radius: 12px;

    overflow: hidden;

    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);

}



.cards-table table, .categories-table table {

    width: 100%;

    border-collapse: collapse;

}



.cards-table th, .cards-table td,

.categories-table th, .categories-table td {

    padding: 14px;

    text-align: left;

    border-bottom: 1px solid #f0f0f0;

}



.cards-table th, .categories-table th {

    background-color: #fafafa;

    font-weight: 600;

    color: #333;

    font-size: 14px;

}



.cards-table tr:hover, .categories-table tr:hover {

    background-color: #fafafa;

}

.filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
    padding: 16px 20px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #f0f0f0;
}

.filter-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-bar label {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.filter-bar select {
    padding: 8px 16px;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    font-size: 14px;
    background-color: #fff;
    cursor: pointer;
    min-width: 150px;
    transition: all 0.3s;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
}

.filter-bar select:hover {
    border-color: #34A7F3;
}

.filter-bar select:focus {
    outline: none;
    border-color: #34A7F3;
    box-shadow: 0 0 0 3px rgba(52, 167, 243, 0.1);
}

.filter-bar .filter-count {
    font-size: 14px;
    color: #666;
    padding: 6px 14px;
    background-color: #f5f7fa;
    border-radius: 20px;
}

.filter-bar .filter-count strong {
    color: #34A7F3;
    font-weight: 600;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 24px;
    padding: 16px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #f0f0f0;
}

.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    background-color: #f5f7fa;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
    min-width: 42px;
    height: 42px;
}

.page-btn:hover {
    background-color: #34A7F3;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(52, 167, 243, 0.3);
}

.page-btn.active {
    background-color: #34A7F3;
    color: #fff;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(52, 167, 243, 0.3);
}

.page-btn.disabled {
    background-color: #f0f0f0;
    color: #ccc;
    cursor: not-allowed;
}

.page-btn.disabled:hover {
    background-color: #f0f0f0;
    color: #ccc;
    transform: none;
    box-shadow: none;
}

.table-image {

    width: 40px;

    height: 40px;

    object-fit: cover;

    border-radius: 4px;

}



.top-select {

    padding: 6px 12px;

    border: 1px solid #ddd;

    border-radius: 6px;

    font-size: 13px;

    cursor: pointer;

    min-width: 100px;

}



.top-select option[value="2"] {

    color: #FF68A2;

    font-weight: bold;

}



.top-select option[value="1"] {

    color: #34A7F3;

    font-weight: bold;

}



/* 后台置顶单元格背景色：让管理员一眼看出哪些是置顶的 */

.top-cell-1 {

    background: #e7f3ff !important;

}



.top-cell-2 {

    background: #ffeef4 !important;

}



.top-cell-0 {

    background: transparent;

}



/* 后台隐藏状态单元格背景色：让管理员一眼看出哪些内容已临时下架 */

.hidden-cell-0 {

    background: transparent;

}



.hidden-cell-1 {

    background: #f5f5f5 !important;

    color: #999;

}



/* 隐藏状态下的下拉框样式：灰化提示 */

.hidden-cell-1 .top-select {

    border-color: #ccc;

    color: #999;

}



.hidden-cell-1 .top-select option[value="1"] {

    color: #e74c3c;

    font-weight: bold;

}



/* 后台表头帮助提示圆点 */

.help-tip {

    display: inline-block;

    width: 16px;

    height: 16px;

    line-height: 16px;

    text-align: center;

    background: #34A7F3;

    color: #fff;

    border-radius: 50%;

    font-size: 11px;

    cursor: help;

    margin-left: 4px;

    font-weight: bold;

    vertical-align: middle;

}



/* 后台备案信息区块样式：9个备案位每个独立卡片化，便于区分 */

.record-block {

    background: #f8f9fb;

    border: 1px solid #e8eef5;

    border-left: 3px solid #34A7F3;

    border-radius: 8px;

    padding: 16px 20px;

    margin-bottom: 18px;

}



.record-block-title {

    font-size: 14px;

    font-weight: 600;

    color: #34A7F3;

    margin-bottom: 12px;

    padding-bottom: 8px;

    border-bottom: 1px dashed #d0ddee;

}



.record-section-tip {

    background: #e7f3ff;

    border-left: 3px solid #34A7F3;

    padding: 10px 14px;

    margin-bottom: 18px;

    color: #555;

    font-size: 13px;

    line-height: 1.7;

    border-radius: 4px;

}



.btn {

    padding: 10px 20px;

    border: none;

    border-radius: 6px;

    font-size: 14px;

    font-weight: 500;

    cursor: pointer;

    text-decoration: none;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    text-align: center;

    transition: all 0.3s;

    min-height: 36px;

    min-width: 80px;

}



.cards-table .btn, .categories-table .btn, .admin-form .btn {

    padding: 6px 14px;

    font-size: 13px;

    min-height: 32px;

    min-width: 60px;

}



.btn-primary {

    background: linear-gradient(135deg, #34A7F3 0%, #1E7BC0 100%);

    color: #fff;

    box-shadow: 0 2px 8px rgba(52, 167, 243, 0.3);

}



.btn-primary:hover {

    background: linear-gradient(135deg, #2A93E8 0%, #1E7BC0 100%);

    transform: translateY(-1px);

    box-shadow: 0 4px 12px rgba(52, 167, 243, 0.4);

}



.btn-edit {

    background: linear-gradient(135deg, #52c41a 0%, #43a047 100%);

    color: #fff;

    box-shadow: 0 2px 8px rgba(82, 196, 26, 0.3);

}



.btn-edit:hover {

    background: linear-gradient(135deg, #43a047 0%, #388e3c 100%);

    transform: translateY(-1px);

    box-shadow: 0 4px 12px rgba(82, 196, 26, 0.4);

}



.btn-delete {

    background: linear-gradient(135deg, #ff4d4f 0%, #d32f2f 100%);

    color: #fff;

    box-shadow: 0 2px 8px rgba(255, 77, 79, 0.3);

}



.btn-delete:hover {

    background: linear-gradient(135deg, #ff1a1f 0%, #c62828 100%);

    transform: translateY(-1px);

    box-shadow: 0 4px 12px rgba(255, 77, 79, 0.4);

}



.btn-copy {

    background: linear-gradient(135deg, #FF68A2 0%, #D64FA0 100%);

    color: #fff;

    box-shadow: 0 2px 8px rgba(255, 104, 162, 0.3);

}



.btn-copy:hover {

    transform: translateY(-1px);

    box-shadow: 0 4px 12px rgba(255, 104, 162, 0.4);

}



.btn-cancel {

    background: #f0f2f5;

    color: #666;

    border: 1px solid #d9d9d9;

}



.btn-cancel:hover {

    background: #e8eaed;

    border-color: #ccc;

}



.mb-20 {

    margin-bottom: 20px;

}



.admin-form {

    background-color: #fff;

    border-radius: 12px;

    padding: 35px;

    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);

    max-width: 800px;

    margin: 0 auto;

}



.admin-form h2 {

    font-size: 22px;

    font-weight: bold;

    color: #333;

    margin-bottom: 30px;

    padding-bottom: 15px;

    border-bottom: 2px solid #34A7F3;

}



.form-section {

    background: #fafbfc;

    border: 1px solid #e8ecf0;

    border-radius: 10px;

    padding: 22px;

    margin-bottom: 22px;

}



.form-section-title {

    font-size: 15px;

    font-weight: 600;

    color: #34A7F3;

    margin-bottom: 18px;

    padding-bottom: 12px;

    border-bottom: 1px dashed #d0ddee;

    display: flex;

    align-items: center;

    gap: 8px;

}



.form-section-title::before {

    content: '📋';

    font-size: 16px;

}



.admin-form .form-group {

    margin-bottom: 18px;

}



.admin-form label {

    display: block;

    margin-bottom: 10px;

    font-weight: 600;

    color: #4a5568;

    font-size: 14px;

}



.admin-form input, .admin-form textarea, .admin-form select {

    width: 100%;

    padding: 13px 16px;

    border: 2px solid #e2e8f0;

    border-radius: 8px;

    font-size: 15px;

    outline: none;

    transition: all 0.3s;

    font-family: inherit;

    background: #fff;

}



.admin-form input:focus, .admin-form textarea:focus, .admin-form select:focus {

    border-color: #34A7F3;

    box-shadow: 0 0 0 3px rgba(52, 167, 243, 0.1);

}



.admin-form textarea {

    resize: vertical;

    min-height: 100px;

}



.current-image {

    margin-bottom: 12px;

    display: flex;

    align-items: center;

    gap: 12px;

}



.current-image img {

    width: 60px;

    height: 60px;

    object-fit: cover;

    border-radius: 8px;

    border: 1px solid #eee;

}



.current-image p {

    font-size: 13px;

    color: #999;

}



/* ===== 网站维护页面样式 ===== */

.maintenance-page {

    background: #34A7F3;

    min-height: 100vh;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 20px;

}



.maintenance-container {

    background: #fff;

    border-radius: 16px;

    padding: 50px 40px;

    max-width: 480px;

    width: 100%;

    text-align: center;

    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);

    animation: maintenanceFadeIn 0.6s ease;

}



@keyframes maintenanceFadeIn {

    from {

        opacity: 0;

        transform: translateY(20px);

    }

    to {

        opacity: 1;

        transform: translateY(0);

    }

}



.maintenance-logo {

    margin-bottom: 24px;

    display: flex;

    justify-content: center;

}



.maintenance-logo img {

    max-height: 60px;

    max-width: 220px;

    width: auto;

    object-fit: contain;

}



.maintenance-icon {

    font-size: 72px;

    margin-bottom: 20px;

    animation: maintenanceBounce 2s ease-in-out infinite;

}



@keyframes maintenanceBounce {

    0%, 100% {

        transform: translateY(0);

    }

    50% {

        transform: translateY(-10px);

    }

}



.maintenance-title {

    font-size: 28px;

    font-weight: bold;

    color: #333;

    margin-bottom: 16px;

    background: #FF68A2;

    -webkit-background-clip: text;

    -webkit-text-fill-color: transparent;

    background-clip: text;

}



.maintenance-message {

    font-size: 15px;

    color: #666;

    line-height: 1.8;

    margin-bottom: 30px;

    padding: 0 10px;

}



.maintenance-form {

    display: flex;

    flex-direction: column;

    gap: 12px;

    margin-top: 20px;

}



.maintenance-form .form-group {

    margin: 0;

}



.maintenance-form input[type="password"] {

    width: 100%;

    padding: 12px 18px;

    border: 2px solid #e0e0e0;

    border-radius: 25px;

    font-size: 15px;

    outline: none;

    transition: border-color 0.3s;

    text-align: center;

    box-sizing: border-box;

}



.maintenance-form input[type="password"]:focus {

    border-color: #34A7F3;

}



.maintenance-form .btn-primary {

    padding: 12px 24px;

    background: #34A7F3;

    color: #fff;

    border: none;

    border-radius: 25px;

    font-size: 15px;

    font-weight: 500;

    cursor: pointer;

    transition: transform 0.2s, box-shadow 0.2s;

}



.maintenance-form .btn-primary:hover {

    transform: translateY(-1px);

    box-shadow: 0 6px 16px rgba(52, 167, 243, 0.3);

}



.maintenance-error {

    color: #FF68A2;

    font-size: 13px;

    margin-top: 12px;

    padding: 8px 16px;

    background: #fff0f5;

    border-radius: 8px;

}



@media (max-width: 480px) {

    .maintenance-container {

        padding: 40px 24px;

    }

    .maintenance-icon {

        font-size: 56px;

    }

    .maintenance-title {

        font-size: 22px;

    }

    .maintenance-message {

        font-size: 14px;

    }

}



.form-hint {

    font-size: 13px;

    color: #8b9cb5;

    margin-top: 8px;

    line-height: 1.6;

    background: #f4f7fa;

    padding: 8px 12px;

    border-radius: 6px;

    border-left: 3px solid #34A7F3;

}



.radio-group {

    display: flex;

    gap: 20px;

}



.radio-group label {

    margin-bottom: 0;

    cursor: pointer;

}



.security-tips {

    background-color: #fff9e6;

    border: 1px solid #ffe082;

    border-radius: 8px;

    padding: 15px 20px;

    margin-top: 20px;

}



.security-tips h3 {

    font-size: 14px;

    font-weight: bold;

    color: #f57c00;

    margin-bottom: 10px;

}



.security-tips ul {

    list-style: none;

    padding: 0;

    margin: 0;

}



.security-tips li {

    font-size: 13px;

    color: #666;

    padding: 4px 0;

}



.delete-image-label {

    display: inline-block;

    margin-top: 8px;

    padding: 5px 12px;

    background-color: #fff5f5;

    border: 1px solid #ffcccc;

    border-radius: 4px;

    color: #dc2626;

    font-size: 13px;

    cursor: pointer;

}



.delete-image-label:hover {

    background-color: #fee2e2;

}



.delete-image-label input[type="checkbox"] {

    margin-right: 5px;

}



.channel-section {

    background-color: #f8fafc;

    border: 1px solid #e2e8f0;

    border-radius: 8px;

    padding: 20px;

    margin-top: 25px;

}



.channel-section h3 {

    font-size: 15px;

    font-weight: bold;

    color: #64748b;

    margin-bottom: 15px;

    padding-bottom: 10px;

    border-bottom: 1px dashed #cbd5e1;

}



.form-actions {

    display: flex;

    gap: 12px;

    margin-top: 25px;

}



.form-actions .btn {

    flex: 1;

    padding: 12px;

    font-size: 15px;

}



.float-btn-container {
    position: fixed;
    right: 20px;
    bottom: 100px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}

.refresh-btn {
    width: 50px;
    height: 50px;
    background: #34A7F3;
    color: #fff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-size: 24px;
    transition: all 0.3s;
}

.refresh-btn:hover {
    transform: scale(1.1);
}

.service-btn {

    width: 50px;

    height: 50px;

    background: #FF68A2;

    border-radius: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

    cursor: pointer;

    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);

    position: relative;

    transition: transform 0.3s;

}



.service-btn:hover {

    transform: scale(1.1);

}



.service-icon {

    width: 30px;

    height: 30px;

    object-fit: contain;

}



.service-icon-text {

    font-size: 24px;

}



.service-qrcode {

    position: absolute;

    right: 60px;

    bottom: 0;

    background-color: #fff;

    padding: 15px;

    border-radius: 8px;

    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);

    display: none;

    white-space: nowrap;

}



.service-qrcode img {

    width: 150px;

    height: 150px;

    object-fit: cover;

    border-radius: 4px;

}



.qrcode-placeholder {

    width: 150px;

    height: 150px;

    background-color: #f5f5f5;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 4px;

}



.qrcode-placeholder p {

    font-size: 12px;

    color: #999;

}



.qrcode-text {

    text-align: center;

    font-size: 13px;

    color: #333;

    margin-top: 8px;

}



.back-top-btn {

    width: 50px;

    height: 50px;

    background: #34A7F3;

    color: #fff;

    border: none;

    border-radius: 50%;

    display: none;

    align-items: center;

    justify-content: center;

    cursor: pointer;

    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);

    font-size: 24px;

    transition: all 0.3s;

}



.back-top-btn:hover {

    transform: scale(1.1);

}



@media (max-width: 1200px) {

    .cards-grid {

        grid-template-columns: repeat(4, 1fr);

    }

}



@media (max-width: 900px) {

    .cards-grid {

        grid-template-columns: repeat(3, 1fr);

    }

}



@media (max-width: 768px) {

    .top-bar {
        padding: 4px 0;
    }

    .top-bar-content {
        flex-direction: column;
        gap: 4px;
        text-align: center;
    }

    .top-bar-left {
        font-size: 11px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        width: 100%;
    }

    .top-bar-right {
        gap: 8px;
    }

    .top-bar-phone {
        font-size: 12px;
    }

    .top-bar-time {
        font-size: 11px;
    }

    .cards-grid {

        grid-template-columns: repeat(2, 1fr);

        gap: 12px;

    }



    .header-content {

        font-size: 14px;

    }



    /* 移动端：统计栏与搜索栏垂直堆叠，搜索栏占满宽度 */

    .search-row {

        flex-direction: column;

        gap: 12px;

        align-items: stretch;

    }



    .stats-box {

        justify-content: center;

        font-size: 13px;

        padding: 8px 18px;

    }



    .stats-count {

        font-size: 18px;

    }



    .search-wrap {

        flex: 1 1 100%;

        max-width: 100%;

    }



    .card-title {

        padding: 8px;

        font-size: 13px;

        -webkit-line-clamp: 5;

    }



    .card-image {

        width: 120px;

        height: 120px;

    }



    .card-image img {

        width: 120px;

        height: 120px;

    }



    .card-desc {

        padding: 8px;

        font-size: 11px;

        -webkit-line-clamp: 10;

    }



    .card-price {

        padding: 8px;

        min-height: 50px;

    }

    

    .price-value {

        font-size: 14px;

    }

    

    .search-form {

        padding: 0 4px;

    }



    .search-btn {

        padding: 0 14px;

        font-size: 13px;

        height: 32px;

    }

    .search-input {

        height: 32px;

    }

    /* 搜索行响应式：窄屏堆叠 */
    .search-row {

        gap: 8px;

    }

    .stats-box,
    .search-contact {

        padding: 0 14px;

        font-size: 12px;

    }

    .search-contact-item {

        font-size: 12px;

    }

    .stats-count {

        font-size: 15px;

    }

    .search-wrap {

        max-width: 100%;

        min-width: 0;

        flex: 1 1 100%;

    }

    

    .admin-sidebar {

        width: 0;

        overflow-y: auto;

        overflow-x: hidden;

        z-index: 2000;

        transition: width 0.3s;

    }

    .admin-sidebar.active {

        width: 240px;

    }



    .admin-main {

        margin-left: 0;

    }



    .admin-topbar {

        padding: 0 15px;

        position: relative;

    }



    .admin-topbar::before {
        content: '☰';
        font-size: 20px;
        color: #FF68A2;
        cursor: pointer;
        position: absolute;
        left: 15px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 10;
    }



    .topbar-left {

        margin-left: 30px;

    }



    .admin-content {

        padding: 15px;

    }



    .admin-form {

        padding: 20px;

        max-width: 100%;

    }



    .form-section {

        padding: 15px;

    }



    /* 保留：操作按钮容器在移动端换行 */

    .admin-nav {

        flex-wrap: wrap;

        justify-content: center;

    }

    

    .cards-table, .categories-table {

        overflow-x: auto;

    }

    

    .cards-table table, .categories-table table {

        min-width: 600px;

    }

    

    .admin-form {

        padding: 20px;

    }

    

    .header-content {

        flex-direction: column;

        gap: 10px;

        align-items: flex-start;

    }

    

    .header-right {

        width: 100%;

        align-items: flex-start;

    }

    

    .contact-info {

        justify-content: center;

        gap: 6px;

        padding: 8px 14px;

    }



    .contact-item {

        font-size: 12px;

    }

    

    .logo-image {

        height: 35px;

        max-width: 150px;

    }

    

    .logo-text {

        font-size: 18px;

    }

    

    .header-ad {

        width: 100%;

        text-align: center;

    }

    

    .record-row {

        flex-direction: column;

        gap: 6px;

        margin-bottom: 6px;

    }

    

    .footer-links-list {

        gap: 10px;

    }

    

    .float-btn-container {

        right: 10px;

        bottom: 80px;

    }

    

    .service-btn, .back-top-btn, .refresh-btn {
        width: 45px;
        height: 45px;
    }

    

    .service-icon {

        width: 25px;

        height: 25px;

    }

    

    .service-qrcode img {

        width: 120px;

        height: 120px;

    }

    

    .qrcode-placeholder {

        width: 120px;

        height: 120px;

    }

}



@media (max-width: 480px) {

    .cards-grid {

        grid-template-columns: repeat(2, 1fr);

        gap: 10px;

    }

    

    .container {

        padding: 0 10px;

    }

    

    .header .logo {

        font-size: 18px;

    }

    

    .search-section {

        padding: 8px 0;

    }

    .search-section .container {

        padding: 8px 10px;

    }

    .search-row {

        flex-direction: column;

        gap: 8px;

        align-items: stretch;

    }

    .search-row > .stats-box,
    .search-row > .search-wrap > .search-form,
    .search-row > .search-contact {

        height: 40px;

        width: 100%;

    }

    .search-wrap {

        max-width: 100%;

        width: 100%;

    }

    /* 手机端≤480px：联系方式一行三列，每列内部"标签在上、值在下"竖向排版
       ——一行放三个不浪费右侧空间，号码/账号单独一行不会被截断 */
    .search-row > .search-contact {

        height: auto;

        min-height: 0;

        flex-direction: row;          /* 横向排列三列 */
        align-items: stretch;

        padding: 8px 6px;

        gap: 4px;

        flex-wrap: nowrap;

        overflow: visible;

    }

    .search-row > .search-contact .search-contact-item {

        display: flex;
        flex-direction: column;   /* 内部：标签+值 上下两行 */
        align-items: center;
        justify-content: center;

        width: 0;                 /* 三列均分宽度的关键 */
        flex: 1 1 0;
        min-width: 0;

        text-align: center;

        padding: 4px 2px;

        font-size: 11px;

        line-height: 1.35;

        white-space: normal;
        overflow: visible;
        text-overflow: initial;

        word-break: break-all;   /* 长号码允许换行（极少出现） */

    }

    /* 标签（"微信：""电话：""QQ："）——纯白字，加大字重+微阴影提升粉色背景上的可读性 */
    .search-row > .search-contact .search-contact-item .sci-label {

        display: block;
        width: 100%;
        font-weight: 700;
        color: #ffffff;
        font-size: 11px;
        line-height: 1.2;
        margin-bottom: 3px;
        text-shadow: 0 0 2px rgba(190, 18, 60, 0.35), 0 1px 2px rgba(190, 18, 60, 0.25);

    }

    /* 号码/账号值——纯白字，加大字重+微阴影，醒目易看 */
    .search-row > .search-contact .search-contact-item .sci-value {

        display: block;
        width: 100%;
        font-weight: 800;
        color: #ffffff;
        font-size: 12px;
        line-height: 1.3;
        letter-spacing: 0.3px;
        text-shadow: 0 0 2px rgba(190, 18, 60, 0.35), 0 1px 3px rgba(190, 18, 60, 0.3);

    }

    .search-input {

        height: 30px;

        padding: 6px 12px;

        font-size: 13px;

    }

    .search-btn {

        height: 30px;

        padding: 0 12px;

        font-size: 12px;

    }

}



.modal {

    position: fixed;

    top: 0;

    left: 0;

    width: 100%;

    height: 100%;

    background-color: rgba(0, 0, 0, 0.5);

    display: flex;

    align-items: center;

    justify-content: center;

    z-index: 1000;

}



.modal-content {

    background-color: #fff;

    border-radius: 12px;

    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);

    width: 90%;

    max-width: 450px;

    overflow: hidden;

}



.modal-header {

    display: flex;

    justify-content: space-between;

    align-items: center;

    padding: 18px 24px;

    background: #34A7F3;

    color: #fff;

}



.modal-header h3 {

    margin: 0;

    font-size: 18px;

}



.modal-close {

    background: none;

    border: none;

    color: #fff;

    font-size: 28px;

    cursor: pointer;

    padding: 0;

    line-height: 1;

}



.modal-close:hover {

    opacity: 0.8;

}



.modal-body {

    padding: 24px;

}



.modal-footer {

    display: flex;

    gap: 12px;

    padding: 18px 24px;

    background-color: #f8fafc;

    border-top: 1px solid #e2e8f0;

}



.modal-footer .btn {
    flex: 1;
    padding: 12px;
    font-size: 15px;
}

.dashboard {
    padding: 20px 0;
}

.dashboard-header {
    margin-bottom: 30px;
}

.dashboard-header h2 {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px 0;
}

.dashboard-header p {
    font-size: 14px;
    color: #888;
    margin: 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #f0f0f0;
    transition: all 0.3s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.stat-icon-blue {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.stat-icon-green {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.stat-icon-gray {
    background: linear-gradient(135deg, #606c88 0%, #3f4c6b 100%);
}

.stat-icon-pink {
    background: linear-gradient(135deg, #FF68A2 0%, #D64FA0 100%);
}

.stat-icon-orange {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.stat-icon-purple {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

.stat-info {
    flex: 1;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    line-height: 1.2;
}

.stat-label {
    font-size: 13px;
    color: #888;
    margin-top: 4px;
}

.dashboard-section {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #f0f0f0;
}

.dashboard-section h3 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.category-stats {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.category-stat-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.category-stat-header {
    width: 180px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.category-name {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.category-count {
    font-size: 13px;
    color: #888;
    background: #f5f7fa;
    padding: 2px 8px;
    border-radius: 10px;
}

.category-stat-bar {
    flex: 1;
    height: 8px;
    background: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
}

.category-stat-fill {
    height: 100%;
    background: linear-gradient(90deg, #FF68A2 0%, #34A7F3 100%);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.category-stat-percentage {
    width: 50px;
    text-align: right;
    font-size: 13px;
    color: #888;
    flex-shrink: 0;
}

.recent-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.recent-card-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: #fafafa;
    border-radius: 8px;
    transition: all 0.3s;
}

.recent-card-item:hover {
    background: #f5f7fa;
}

.recent-card-info {
    flex: 1;
}

.recent-card-title {
    font-size: 14px;
    color: #34A7F3;
    font-weight: 600;
    margin-bottom: 6px;
}

.recent-card-meta {
    display: flex;
    gap: 12px;
}

.recent-card-category {
    font-size: 12px;
    color: #888;
    background: #e8f5e9;
    padding: 2px 8px;
    border-radius: 6px;
}

.recent-card-price {
    font-size: 13px;
    color: #FF68A2;
    font-weight: 600;
}

.recent-card-actions {
    flex-shrink: 0;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.login-logs-page {
    padding: 10px 0;
}

.login-logs-page .admin-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logs-table {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #f0f0f0;
}

.logs-table table {
    width: 100%;
    border-collapse: collapse;
}

.logs-table th {
    background: #f8f9fa;
    padding: 14px 16px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    border-bottom: 2px solid #e9ecef;
    white-space: nowrap;
}

.logs-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 13px;
    color: #333;
}

.logs-table tr:hover {
    background: #f8f9fa;
}

.logs-table tr:last-child td {
    border-bottom: none;
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.status-success {
    background: #e8f5e9;
    color: #2e7d32;
}

.status-danger {
    background: #ffebee;
    color: #c62828;
}

.status-warning {
    background: #fff3e0;
    color: #e65100;
}

.status-normal {
    background: #e3f2fd;
    color: #1565c0;
}

.login-logs-page {
    padding: 0;
}

.page-header {
    margin-bottom: 20px;
}

.page-title {
    font-size: 22px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 6px 0;
}

.page-desc {
    font-size: 13px;
    color: #94a3b8;
    margin: 0;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.mini-stat-card {
    background: #fff;
    border-radius: 12px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid #f1f5f9;
    transition: all 0.3s;
}

.mini-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.mini-stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.mini-stat-blue {
    background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
}

.mini-stat-green {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
}

.mini-stat-red {
    background: linear-gradient(135deg, #ef4444 0%, #f87171 100%);
}

.mini-stat-orange {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
}

.mini-stat-info {
    flex: 1;
    min-width: 0;
}

.mini-stat-value {
    font-size: 22px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.2;
    margin-bottom: 4px;
}

.mini-stat-label {
    font-size: 12px;
    color: #94a3b8;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.section-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.section-hint {
    font-size: 12px;
    color: #94a3b8;
}

.logs-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.log-item {
    background: #fafbfc;
    border-radius: 10px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s;
    border: 1px solid #f1f5f9;
}

.log-item:hover {
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    border-color: #e2e8f0;
}

.log-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 0;
}

.log-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #fff;
    font-weight: 700;
    flex-shrink: 0;
}

.avatar-success {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
}

.avatar-fail {
    background: linear-gradient(135deg, #ef4444 0%, #f87171 100%);
}

.log-content {
    flex: 1;
    min-width: 0;
}

.log-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.log-username {
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
}

.log-status {
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 12px;
    font-weight: 500;
}

.log-status.status-success {
    background: #dcfce7;
    color: #166534;
}

.log-status.status-fail {
    background: #fee2e2;
    color: #991b1b;
}

.log-reason {
    font-size: 12px;
    color: #f59e0b;
    background: #fffbeb;
    padding: 3px 10px;
    border-radius: 12px;
}

.log-meta {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #64748b;
}

.meta-icon {
    font-size: 13px;
    opacity: 0.7;
}

.log-time {
    text-align: right;
    flex-shrink: 0;
    margin-left: 20px;
}

.time-date {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 2px;
}

.time-clock {
    font-size: 16px;
    font-weight: 600;
    color: #334155;
    font-family: 'Courier New', monospace;
}

.empty-state {
    padding: 60px 20px;
    text-align: center;
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-text {
    font-size: 14px;
    color: #94a3b8;
}

@media (max-width: 768px) {
    .stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .log-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .log-time {
        margin-left: 0;
        text-align: left;
        width: 100%;
        padding-top: 12px;
        border-top: 1px solid #f1f5f9;
    }
}

