/* blue 模板公共样式：reset / 头部导航 / 容器 / 页脚 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
    background: #f5f6fa;
    color: #333;
}

a {
    text-decoration: none;
    color: inherit;
}

.top-bar {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 55%, #3b82f6 100%);
    color: #fff;
    box-shadow: 0 2px 14px rgba(30, 58, 138, .18);
    position: sticky;
    top: 0;
    z-index: 100;
}

.top-bar .wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 12px 0px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.top-bar .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: .5px;
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
}
.top-bar .logo .logo-ico{
    border: 1px solid #FFFFFF; 
    border-radius: 5px; 
    margin-top: 5px;
}
.top-bar .logo h1{
    font-size: 24px;
    flex-shrink: 0;
}

.top-bar .logo .mark,
.top-bar .logo .logo-img {
    flex-shrink: 0;
}

.top-bar .logo > span:not(.mark) {
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.top-bar .nav {
    flex-shrink: 0;
    margin-left: 8px;
}

.top-bar .logo .mark {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, #ffffff, #e0e7ff);
    color: #1e3a8a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .12);
}

.top-bar .logo .logo-img {
    height: 32px;
    width: auto;
    max-width: 180px;
    border-radius: 6px;
    object-fit: contain;
}

.top-bar .nav a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #dbeafe;
    margin-left: 10px;
    padding: 6px 16px;
    font-size: 14px;
    border-radius: 20px;
    transition: background .15s, color .15s;
}

.top-bar .nav a svg {
    display: block;
    flex-shrink: 0;
    align-self: center;
}

.top-bar .nav a:hover {
    background: rgba(255, 255, 255, .18);
    color: #fff;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-footer {
    background: #0b1f3a;
    color: #7ba7d8;
    text-align: center;
    padding: 24px;
    font-size: 13px;
    margin-top: 12px;
}

.site-footer a {
    color: #7ba7d8;
}

/* 返回顶部按钮（固定右下角） */
.back-top {
    position: fixed;
    right: 24px;
    bottom: 80px;
    width: 44px;
    height: 44px;
    background: #1e3a8a;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
    z-index: 999;
    transition: background .15s, transform .15s;
}

.back-top:hover {
    background: #3b82f6;
    transform: translateY(-2px);
}

/* 回到底部按钮（固定右下角，位于返回顶部下方） */
.back-bottom {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 44px;
    height: 44px;
    background: #1e3a8a;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
    z-index: 999;
    transition: background .15s, transform .15s;
}

.back-bottom:hover {
    background: #3b82f6;
    transform: translateY(2px);
}

/* 顶部搜索栏（header 下方，宽度自适应） */
.top-search {
    background: #f3f7ff;
    border-bottom: 1px solid #e2ebfb;
    padding: 12px 0;
}

.top-search-inner {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.top-search form {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    display: flex;
    gap: 10px;
}

.top-search-publish {
    flex: 0 0 auto;
    align-self: center;
    height: 40px;
    line-height: 40px;
    padding: 0 22px;
    border-radius: 8px;
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(249, 115, 22, .25);
    transition: transform .15s ease, box-shadow .15s ease;
}

.top-search-publish:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(249, 115, 22, .35);
    color: #fff;
}

/* 栏目分类（现代化卡片式） */
.cat-nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cat-item {
    padding: 12px 14px;
    border: 1px solid #eef2f8;
    border-radius: 10px;
    background: linear-gradient(135deg, #f8fbff 0%, #ffffff 100%);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.cat-item:hover {
    border-color: #d6e4ff;
    box-shadow: 0 4px 14px rgba(47, 136, 255, .08);
    transform: translateY(-1px);
}

.cat-name {
    display: flex;
    align-items: center;
    font-size: 15px;
    font-weight: 700;
    color: #1d39c4;
    text-decoration: none;
}

.cat-name::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: linear-gradient(135deg, #2f88ff, #6aa8ff);
    margin-right: 8px;
    flex: none;
}

.cat-name:hover {
    color: #2f88ff;
}

.cat-children {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed #eef2f8;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.cat-children a {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    font-size: 12px;
    color: #5b6b7f;
    background: #f6f9fe;
    border: 1px solid #eef2f8;
    border-radius: 999px;
    text-decoration: none;
    transition: all .2s ease;
}

.cat-children a:hover {
    color: #2f88ff;
    background: #e8f1ff;
    border-color: #c9dcff;
}

/* + 号发布入口（固定悬浮于返回顶部/回到底部之间）：PC 端隐藏，仅手机端显示 */
.back-add {
    display: none;
}

.top-search input[type="text"] {
    flex: 1 1 auto;
    min-width: 0;
    height: 40px;
    padding: 0 14px;
    border: 1px solid #cfdcf5;
    background-color: #FFFFFF;
    border-radius: 8px;
    font-size: 14px;
    box-sizing: border-box;
    outline: none;
}

.top-search input[type="text"]:focus {
    border-color: #3b82f6;
}

.top-search button {
    flex: 0 0 auto;
    height: 40px;
    padding: 0 24px;
    border: none;
    border-radius: 8px;
    background: #1e3a8a;
    color: #fff;
    font-size: 15px;
    white-space: nowrap;
    cursor: pointer;
    box-sizing: border-box;
    transition: background .15s;
}

.top-search button:hover {
    background: #3b82f6;
}
/* 信息列表中的发布者商铺/认证/等级信息（共享：index/list/tags 三页共用） */
.info-shop {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.info-shop .shop-link {
    color: #666666;
    font-size: 13px;
    text-decoration: none;
    transition: color .15s ease;
}

.info-shop .shop-link:hover {
    color: #2f88ff;
}

.info-shop .shop-level {
    font-style: normal;
    font-size: 12px;
    border: 1px solid;
    padding: 2px 5px;
    border-radius: 5px;
    line-height: 1;
    letter-spacing: 0.3px;
}

.info-shop .v-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    padding: 2px 5px;
    border-radius: 5px;
    flex-shrink: 0;
    font-size: 12px;
    line-height: 1;
    letter-spacing: 0.3px;
}

.info-shop .v-badge.v-company {
    background: #e6f4ff;
    color: #1677ff;
    border: 1px solid #91caff;
}

.info-shop .v-badge.v-person {
    background: #f6ffed;
    color: #389e0d;
    border: 1px solid #b7eb8f;
}

/* 页脚帮助文章链接 */
.footer-help {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    justify-content: center;
    padding: 10px 0;
    color: #666;
}

.footer-help a {
    color: #666;
    font-size: 13px;
    text-decoration: none;
}

.footer-help a:hover,.footer-nav a:hover {
    color: #1677ff;
}

.footer-nav {
    display: flex;
    line-height: 25px;
    color: #666;
    justify-content: center;
    flex-direction: column;
}
.footer-nav a {
    color: #666;
}
/* 平板及以下：搜索框 + 按钮同行（按钮占比小），发布按钮改为蓝色链接 */
@media (max-width: 768px) {
    .top-search-inner {
        flex-direction: column;
        padding: 0;
        gap: 0;
    }
    .top-search form {
        flex: 1 1 auto;
        min-width: 100%;
        flex-direction: row;
        gap: 8px;
        margin: 0 10px;
    }
    .top-search input[type="text"] {
        flex: 1 1 auto;
        min-width: 0;
        width: auto;
    }
    .top-search button {
        flex: 0 0 auto;
        width: auto;
        padding: 0 18px;
        white-space: nowrap;
        background-color: #FFFFFF;
        color: #666666;
        border: 1px solid #cfdcf5;
    }
    .top-search-publish {
        width: auto;
        height: auto;
        line-height: 1.5;
        padding: 0;
        margin: 5px 0 0;
        background: transparent;
        color: #1677ff;
        font-size: 14px;
        font-weight: 500;
        box-shadow: none;
        text-align: center;
        display: none;
    }
    .top-search-publish:hover {
        transform: none;
        box-shadow: none;
        color: #4096ff;
        text-decoration: underline;
    }
}

/* 手机小屏：进一步收紧间距与控件尺寸 */
@media (max-width: 480px) {
    .top-search {
        padding: 10px 0;
    }
    .top-search-inner {
        padding: 0 12px;
        
    }
    .top-search form {
        gap: 8px;
    }
    .top-search input[type="text"] {
        height: 38px;
        font-size: 13px;
    }
    .top-search button {
        height: 38px;
        padding: 0 18px;
        font-size: 14px;
    }
    .top-search-publish {
        height: 25px;
        line-height: 25px;
        font-size: 14px;
        padding: 0 18px;
    }
}

/* 手机端自适应 */
@media (max-width: 768px) {
    .footer-help ,.footer-nav .nav-a{
        display: none;
    }
    .top-bar .wrap {
        padding: 10px 14px;
    }
    .top-bar .logo {
        font-size: 17px;
        gap: 8px;
        flex: 1 1 auto;
        min-width: 0;
    }
    .top-bar .logo .mark {
        width: 32px;
        height: 32px;
        font-size: 16px;
        border-radius: 8px;
        flex-shrink: 0;
    }
    .top-bar .logo .logo-img {
        height: 26px;
        max-width: 140px;
        flex-shrink: 0;
    }
    .top-bar .logo > span:not(.mark) {
        font-size: 15px;
        max-width: 38vw;
    }
    .top-bar .logo .h1list,.top-bar .logo .h1jt {
        display: none;
    }
    .top-bar .logo h1{
        min-width: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .top-bar .nav {
        flex-shrink: 0;
        margin-left: 4px;
    }
    .top-bar .nav .home {
        display: none;
    }
    .top-bar .nav a {
        margin-left: 4px;
        padding: 5px 10px;
        font-size: 13px;
    }
    .container {
        padding: 0 12px;
    }
    .site-footer {
        padding: 18px 12px;
        margin-top: 0px;
    }
    .back-top {
        right: 12px;
        bottom: 108px;
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    .back-add {
        display: flex;
        align-items: center;
        justify-content: center;
        position: fixed;
        right: 12px;
        bottom: 64px;
        width: 40px;
        height: 40px;
        background: linear-gradient(135deg, #f97316, #ea580c);
        color: #fff;
        font-size: 26px;
        font-weight: 400;
        line-height: 1;
        border-radius: 50%;
        text-decoration: none;
        z-index: 999;
        box-shadow: 0 2px 8px rgba(249, 115, 22, .3);
    }
    .back-bottom {
        right: 12px;
        bottom: 20px;
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}



