/* ===================================================================
   现代化样式覆盖 - modern.css
   美化布局、排版、颜色，提升整体视觉效果
   =================================================================== */

/* ---------- 全局基础 ---------- */
* { box-sizing: border-box; }

html { font-size: 14px; background: #f5f7fa; scroll-behavior: smooth; }

body {
    color: #2c3e50;
    line-height: 1.6;
    font-family: "Microsoft Yahei", "PingFang SC", "Helvetica Neue", Helvetica, Arial, sans-serif;
    background: #f5f7fa;
    margin: 0;
    padding: 0;
}

a { color: #2d64b3; text-decoration: none; transition: color 0.2s ease; }
a:hover { color: #1a4a8c; }

img { max-width: 100%; height: auto; }

/* ---------- 顶部工具栏 ---------- */
.header_top {
    background: #1e3c72 !important;
    color: #fff !important;
    min-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    line-height: normal !important;
    border-bottom: 1px solid #162f56 !important;
}

.header_top .web {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    float: none !important;
}

.header_top .welcome {
    color: rgba(255,255,255,0.95);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
    float: none !important;
}

.header_top .top_tool {
    list-style: none;
    margin: 0 !important;
    padding: 0;
    display: flex !important;
    align-items: center;
    float: none !important;
}

.header_top .top_tool li {
    list-style: none;
    float: none !important;
    margin: 0 !important;
}

.header_top .top_tool li a {
    color: rgba(255,255,255,0.9);
    font-size: 14px;
    padding: 6px 16px;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.15s ease;
    float: none !important;
}

.header_top .top_tool li a:hover {
    background: rgba(255,255,255,0.15);
    color: #fff !important;
}

.header_top .top_tool li.spacer {
    width: 1px;
    height: 14px;
    background: rgba(255,255,255,0.3);
    margin: 0 6px !important;
    overflow: visible !important;
}

/* ---------- 主头部 ---------- */
.header {
    background: #fff;
    border-bottom: 1px solid #e8e8e8;
    position: sticky;
    top: 0;
    z-index: 100;
    min-width: 100% !important;
}

.header .body_wrapper {
    background: #fff;
    padding: 16px 0;
}

.header .body_wrapper .web {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header .logo_layer {
    display: flex;
    align-items: center;
}

.header .logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.header .logo span {
    font-size: 22px;
    font-weight: 600;
    color: #1e3c72;
    letter-spacing: 1px;
}

.header .search_box {
    background: #f5f5f5;
    border-radius: 4px;
    padding: 4px 4px 4px 12px;
    border: 1px solid #e0e0e0;
}

.header .search .search_keyword {
    border: none;
    background: transparent;
    outline: none;
    padding: 6px 8px;
    font-size: 14px;
    color: #333;
    width: 200px;
}

.header .search_submit {
    background: #1e3c72;
    color: #fff;
    border: none;
    border-radius: 3px;
    padding: 6px 14px;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.15s ease;
}

.header .search_submit:hover { background: #162f56; }

/* ---------- 导航分类 ---------- */
.header .cate {
    background: #fff;
    border-top: 1px solid #f0f0f0;
}

.header .cate ul {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    list-style: none;
    display: flex;
}

.header .cate ul li { list-style: none; }

.header .cate ul li a {
    display: block;
    padding: 14px 22px;
    color: #333;
    font-size: 15px;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.header .cate ul li a:hover {
    color: #1e3c72;
}

.header .cate ul li a.active {
    color: #1e3c72;
    border-bottom-color: #1e3c72;
}

/* ---------- 主内容区 ---------- */
.home_content {
    background: #f5f7fa;
    min-height: 60vh;
    padding: 24px 0;
}

.home_content .bigweb {
    width: 1200px;
    margin: 0 auto;
}

.home_content .web {
    width: 1200px;
    margin: 0 auto;
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.05);
}

/* ---------- 横幅 Banner ---------- */
.join_banner {
    width: 100%;
    background: #fff;
    overflow: hidden;
}

.join_banner .bd ul,
.join_banner .bd li {
    min-height: 500px !important;
    list-style: none;
    margin: 0;
    padding: 0;
}

.join_banner .bd li {
    background-size: cover !important;
    background-position: center !important;
}

/* ---------- 首页分类筛选 ---------- */
.category-filters {
    display: flex;
    gap: 12px !important;
    margin: 24px 0 !important;
    padding: 0;
    flex-wrap: wrap;
}

.category-btn {
    padding: 10px 24px !important;
    background: #f5f7fa !important;
    border: 1px solid #e3e8ee !important;
    border-radius: 24px !important;
    cursor: pointer;
    font-size: 14px !important;
    color: #2c3e50 !important;
    transition: all 0.25s ease !important;
    font-weight: 500;
}

.category-btn:hover {
    border-color: #2d64b3 !important;
    color: #2d64b3 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(45,100,179,0.1);
}

.category-btn.active {
    background: linear-gradient(135deg, #2d64b3 0%, #1e3c72 100%) !important;
    color: #fff !important;
    border-color: transparent !important;
    box-shadow: 0 4px 12px rgba(45,100,179,0.25);
}

/* ---------- 信息卡片列表 ---------- */
.items-container {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
    gap: 24px !important;
    margin-top: 20px !important;
}

.item {
    background: #fff;
    border: 1px solid #eef0f3 !important;
    border-radius: 10px !important;
    padding: 18px !important;
    transition: all 0.3s ease !important;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.item:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.1) !important;
    transform: translateY(-4px);
    border-color: #d6dde6 !important;
}

.item h1 {
    margin: 0 0 12px 0;
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.4;
}

.item h1 a {
    color: #2c3e50;
    transition: color 0.2s ease;
}

.item h1 a:hover { color: #2d64b3; }

.item_img {
    height: 180px !important;
    overflow: hidden;
    border-radius: 6px;
    margin-bottom: 12px;
    background: #f5f7fa;
}

.item_img img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.4s ease;
}

.item:hover .item_img img { transform: scale(1.06); }

.item .detail { margin-bottom: 12px; }
.item .detail p { margin: 4px 0; color: #5a6878; font-size: 14px; }

.el-button {
    display: inline-block !important;
    padding: 10px 20px !important;
    background: linear-gradient(135deg, #2d64b3 0%, #1e3c72 100%) !important;
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 6px !important;
    margin-top: auto !important;
    font-size: 14px !important;
    font-weight: 500;
    text-align: center;
    transition: all 0.25s ease !important;
    border: none !important;
    align-self: flex-start;
}

.el-button:hover {
    background: linear-gradient(135deg, #1a4a8c 0%, #0d2960 100%) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(45,100,179,0.3);
}

.el-button span { color: #fff; }

/* ---------- 详情页 ---------- */
.products_main { background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 16px rgba(0,0,0,0.05); }

.goods_tab {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    padding: 22px 32px !important;
    color: #fff;
    position: relative;
}

.goods_tab::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #4a90e2;
}

.goods_tab label {
    color: #fff !important;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 1px;
    /*display: block;*/
}

.goods_con { padding: 0; }

.article_content {
    padding: 36px 40px;
    color: #2c3e50;
    line-height: 1.85;
    font-size: 15px;
}

.article_content p {
    text-align: left !important;
    margin-bottom: 16px;
    color: #34495e;
    line-height: 1.85;
    font-size: 15px;
    letter-spacing: 0.3px;
}

/* 详情页首段（发布人、联系电话）独立卡片样式 */
.article_content > p:first-of-type,
.article_content > p:nth-of-type(2),
.article_content > p:nth-of-type(3) {
    display: inline-block;
    background: #f5f7fa;
    padding: 8px 16px;
    border-radius: 4px;
    border-left: 3px solid #2d64b3;
    margin-right: 12px;
    margin-bottom: 12px;
    font-size: 14px;
    color: #2c3e50;
    font-weight: 500;
}

.article_content h3 {
    color: #1e3c72 !important;
    margin: 28px 0 16px !important;
    font-size: 19px !important;
    font-weight: 600;
    padding: 10px 0 10px 14px;
    border-left: 4px solid #2d64b3;
    border-bottom: none;
    background: linear-gradient(90deg, #f5f7fa 0%, transparent 100%);
    letter-spacing: 0.5px;
}

.article_content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 14px 0;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    border: 1px solid #eef0f3;
}

/* 详情页空图片隐藏 */
.article_content p img[src=""],
.article_content p img[src="static/picture/"] { display: none; }

/* 详情页换行段落 */
.article_content p:has(br:only-child) { display: none; }

/* ---------- 有序/无序列表 ---------- */
.article_content ol,
.article_content ul {
    padding-left: 0;
    margin: 8px 0 16px;
    counter-reset: item;
    list-style: none;
}

.article_content ol li,
.article_content ul li {
    position: relative;
    padding: 10px 0 10px 36px;
    margin-bottom: 8px;
    line-height: 1.9;
    color: #34495e;
    font-size: 15px;
    border-bottom: 1px solid #f0f2f5;
}

.article_content ol li:last-child,
.article_content ul li:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.article_content ol li {
    counter-increment: item;
}

.article_content ol li::before {
    content: counter(item);
    position: absolute;
    left: 0;
    top: 10px;
    width: 24px;
    height: 24px;
    background: #1e3c72;
    color: #fff;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    line-height: 24px;
}

.article_content ul li::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 17px;
    width: 6px;
    height: 6px;
    background: #1e3c72;
    border-radius: 50%;
}

/* ---------- 信息审核规范页 ---------- */
.goods_con .article_content p[style*="color: black"],
.goods_con .article_content p[style*="color:black"] {
    color: #34495e !important;
    line-height: 2 !important;
    font-size: 14px;
}

.goods_con .article_content h3[style*="color: black"],
.goods_con .article_content h3[style*="color:black"] {
    color: #2d64b3 !important;
}

/* ---------- 表单页面（登录/注册/申请） ---------- */
.login-container,
.register-box,
.form-container,
.terms-container,
.privacy-container {
    background: #fff;
    border-radius: 12px !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.08) !important;
    padding: 40px !important;
    max-width: 900px;
    margin: 30px auto !important;
}

.login-container { max-width: 440px; padding: 40px 35px !important; }

.login-title,
.register-title,
.terms-title,
.privacy-title {
    text-align: center;
    font-size: 26px !important;
    color: #1e3c72 !important;
    margin-bottom: 30px !important;
    padding-bottom: 15px !important;
    border-bottom: 2px solid #eef0f3 !important;
    font-weight: 600;
}

.form-group { margin-bottom: 20px !important; }
.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #2c3e50;
    font-weight: 500;
    font-size: 14px;
}

.form-label {
    color: #2c3e50 !important;
    font-weight: 500 !important;
    font-size: 14px !important;
}

.form-control {
    width: 100%;
    padding: 10px 14px !important;
    border: 1px solid #dde3ea !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    color: #2c3e50;
    transition: all 0.25s ease;
    background: #fff;
}

.form-control:focus {
    border-color: #2d64b3 !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(45,100,179,0.15) !important;
}

.btn-login,
.submit-btn,
.btn-submit {
    background: linear-gradient(135deg, #2d64b3 0%, #1e3c72 100%) !important;
    color: #fff !important;
    border: none !important;
    padding: 12px 24px !important;
    border-radius: 6px !important;
    font-size: 16px !important;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease !important;
    box-shadow: 0 4px 12px rgba(45,100,179,0.2);
}

.btn-login:hover,
.submit-btn:hover,
.btn-submit:hover {
    background: linear-gradient(135deg, #1a4a8c 0%, #0d2960 100%) !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(45,100,179,0.3);
}

.login-links a,
.login-link a {
    color: #2d64b3 !important;
    font-weight: 500;
}

.error-message {
    color: #e74c3c !important;
    font-size: 13px;
    margin-top: 5px;
}

.upload-area {
    border: 2px dashed #dde3ea !important;
    border-radius: 8px !important;
    padding: 30px !important;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
    background: #f9fbfd;
}

.upload-area:hover {
    border-color: #2d64b3 !important;
    background: #f0f5fb;
}

/* ---------- 服务条款/隐私政策 ---------- */
.terms-content,
.privacy-content {
    color: #34495e !important;
    line-height: 1.8 !important;
}

.terms-content h3,
.privacy-content h3 {
    color: #2d64b3 !important;
    margin: 25px 0 15px !important;
    font-size: 18px !important;
    font-weight: 600;
}

.terms-content p,
.privacy-content p {
    margin-bottom: 15px !important;
    text-align: justify;
    color: #34495e;
}

.terms-content ol,
.privacy-content ol {
    margin: 0 0 15px 20px !important;
    padding-left: 10px !important;
}

.terms-content li,
.privacy-content li {
    margin-bottom: 10px !important;
    color: #34495e;
}

/* ---------- 页脚 ---------- */
.foot {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%) !important;
    color: #fff;
    padding: 30px 0 20px;
    margin-top: 40px;
    min-width: 100% !important;
}

.foot .footer-info {
    width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255,255,255,0.15);
}

.foot .more-info p {
    color: #fff !important;
    font-size: 15px !important;
    margin: 6px 0;
    text-align: center;
}

.foot .copy {
    background: transparent;
    padding: 20px 0;
}

.foot .copy .web {
    width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.foot .copy p {
    color: #fff !important;
    font-size: 14px !important;
    margin: 6px 0;
}

.foot .copy a {
    color: #fff !important;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.foot .copy a:hover { color: #ffd700 !important; }

/* ---------- 返回顶部按钮 ---------- */
.goTop {
    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #2d64b3 0%, #1e3c72 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(45,100,179,0.4);
    transition: all 0.25s ease;
    z-index: 99;
}

.goTop:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(45,100,179,0.5);
}

.goTop i {
    color: #fff;
    font-size: 18px;
    transform: rotate(-45deg);
}

/* ---------- 分页 ---------- */
.pagination > li > a {
    color: #2d64b3 !important;
    background-color: #fff !important;
    border: 1px solid #dde3ea !important;
    transition: all 0.2s ease;
}

.pagination > li > a:hover {
    background-color: #f5f7fa !important;
    border-color: #2d64b3 !important;
    color: #2d64b3 !important;
}

.pagination > .active > a,
.pagination > .active > a:hover {
    background: linear-gradient(135deg, #2d64b3 0%, #1e3c72 100%) !important;
    border-color: transparent !important;
    color: #fff !important;
}

/* ---------- 列表标题 ---------- */
.art_content .select {
    display: inline-block;
    /*padding: 8px 20px;*/
    background: #fff;
    border: 1px solid #dde3ea;
    border-radius: 24px;
    color: #2c3e50;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.art_content .select:hover {
    border-color: #2d64b3;
    color: #2d64b3;
    box-shadow: 0 2px 8px rgba(45,100,179,0.1);
}

/* ---------- 标题区 ---------- */
.items-container + h2,
.art_content h2 {
    font-size: 22px !important;
    color: #1e3c72 !important;
    margin: 20px 0 !important;
    padding-bottom: 10px !important;
    border-bottom: 2px solid #2d64b3 !important;
    font-weight: 600;
}

/* ---------- 响应式适配 ---------- */
@media (max-width: 1240px) {
    .header_top .web,
    .header .body_wrapper .web,
    .header .cate ul,
    .home_content .bigweb,
    .home_content .web,
    .foot .footer-info,
    .foot .copy .web {
        width: 96%;
        padding-left: 2%;
        padding-right: 2%;
    }
}

@media (max-width: 768px) {
    .header .cate ul { flex-direction: column; }
    .header .cate ul li a { padding: 12px 16px; }
    .items-container { grid-template-columns: 1fr !important; }
    .header .body_wrapper .web { flex-direction: column; gap: 16px; }
    .header .search_box { width: 100%; }
    .login-container,
    .register-box,
    .form-container { padding: 24px !important; }
    .article_content { padding: 18px; }
}

/* ---------- 卡片视图优化（首页） ---------- */
.category-content {
    margin-bottom: 30px;
}

.category-title {
    font-size: 20px !important;
    color: #1e3c72 !important;
    margin: 20px 0 !important;
    padding-bottom: 10px !important;
    border-bottom: 2px solid #2d64b3 !important;
    font-weight: 600;
}

/* 信息卡片底部按钮区域统一对齐 */
.item a.el-button {
    align-self: flex-start;
    margin-top: auto;
}

/* ---------- 详情页图片修复 ---------- */
.article_content p img[src=""],
.article_content p img:not([src]),
.article_content p img[src="static/picture/"] {
    display: none;
}

/* ---------- 表单行布局 ---------- */
.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-row .form-group { flex: 1; margin-bottom: 0; }

@media (max-width: 768px) {
    .form-row { flex-direction: column; gap: 0; }
}

/* ---------- 协议链接 ---------- */
.agreement a { color: #2d64b3 !important; font-weight: 500; }
.agreement a:hover { text-decoration: underline; }
