/* ===== DESIGN TOKENS ===== */
:root {
    --c-primary:   #4f46e5;
    --c-primary-d: #4338ca;
    --c-accent:    #f59e0b;
    --c-accent-d:  #d97706;
    --c-bg:        #f1f5f9;
    --c-card:      #ffffff;
    --c-text:      #1e293b;
    --c-muted:     #64748b;
    --c-border:    #e2e8f0;
    --shadow:      0 4px 20px rgba(0,0,0,0.09);
    --shadow-sm:   0 1px 6px rgba(0,0,0,0.05);
    --radius:      10px;
    --c-footer-bg: #1e1b4b;
}

body { background: var(--c-bg); }


/* ===== TOPBAR ===== */
#topbar {
    background: #f8fafc;
    border-bottom: 1px solid var(--c-border);
    color: var(--c-muted);
    height: 36px;
    line-height: 36px;
    font-size: 12px;
}
#topbar .left-name { color: var(--c-muted); }
#topbar .links > li > a { color: var(--c-muted); }
#topbar .links > li > a:hover { color: var(--c-primary); }


/* ===== HEADER ===== */
#header {
    background: #ffffff;
    height: auto;
    border: none;
    border-bottom: 1px solid var(--c-border);
    box-shadow: 0 2px 16px rgba(79,70,229,0.07);
    margin-bottom: 0;
    padding: 0;
}
.in-head {
    background: transparent;
    display: flex;
    align-items: center;
    padding: 16px 0;
    gap: 20px;
}
#header .logo { flex-shrink: 0; margin: 0; }
#header .logo img { height: 44px; width: auto; }
#header .logo .logo-text {
    color: var(--c-primary);
    font-size: 26px;
    font-weight: 900;
    letter-spacing: -0.5px;
    white-space: nowrap;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
    line-height: 1;
}
#header div.search {
    flex: 1;
    max-width: 560px;
    margin: 0;
    padding: 0;
    width: auto;
    background: #f8fafc;
    border: 2px solid var(--c-border);
    border-radius: 8px;
    box-shadow: none;
    overflow: hidden;
    transition: border-color 0.2s;
}
#header div.search:focus-within { border-color: var(--c-primary); }
#header div.search .form-control {
    height: 42px;
    line-height: 42px;
    background: transparent;
    border: none;
    box-shadow: none;
    font-size: 14px;
    color: var(--c-text);
    padding-left: 16px;
}
#header div.search .form-control::placeholder { color: #94a3b8; }
#header div.search .input-group-btn {
    background: var(--c-primary);
    border-top-right-radius: 6px;
    border-bottom-right-radius: 6px;
}
#header div.search button {
    color: #fff;
    background: transparent;
    border: none;
    height: 42px;
    line-height: 42px;
    padding: 0 22px;
    font-size: 14px;
    font-weight: 600;
}
button:focus, button:active { outline: none !important; }
#header .action { margin-left: auto; flex-shrink: 0; }
#header .action a.add {
    display: inline-block;
    background: var(--c-accent);
    color: #1c1917;
    border-radius: 8px;
    height: 42px;
    line-height: 42px;
    padding: 0 26px;
    font-size: 14px;
    font-weight: 700;
    border: none;
    margin-top: 0;
    transition: background 0.2s, transform 0.15s;
}
#header .action a.add:hover {
    background: var(--c-accent-d);
    color: #1c1917;
    transform: translateY(-1px);
}
.header-nav-wrap { display: none; }
#navbar { display: none; }


/* ===== TOP AD ===== */
.top-ad-wrap { margin: 20px 0 0; }
.top-ad-wrap img {
    width: 100%;
    height: auto;
    max-height: 110px;
    object-fit: cover;
    border-radius: var(--radius);
    display: block;
}


/* ===== CATEGORY STRIP ===== */
.category-strip {
    margin: 20px 0;
    background: var(--c-card);
    border-radius: var(--radius);
    border: 1px solid var(--c-border);
    box-shadow: var(--shadow-sm);
}
.category-strip-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 32px;
}
.category-strip-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 9px;
    color: var(--c-text);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    padding: 0 12px;
    transition: color 0.2s;
}
.category-strip-item:hover { color: var(--c-primary); }
.category-strip-item i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    font-size: 22px;
    color: #ffffff;
    margin-bottom: 0;
    transition: transform 0.2s, box-shadow 0.2s;
}
.category-strip-item:hover i { transform: scale(1.1); }

.category-strip-item:nth-child(1) i { background: linear-gradient(135deg, #4f46e5, #7c3aed); box-shadow: 0 4px 14px rgba(79,70,229,0.38); }
.category-strip-item:nth-child(2) i { background: linear-gradient(135deg, #0284c7, #0ea5e9); box-shadow: 0 4px 14px rgba(2,132,199,0.38); }
.category-strip-item:nth-child(3) i { background: linear-gradient(135deg, #dc2626, #f87171); box-shadow: 0 4px 14px rgba(220,38,38,0.38); }
.category-strip-item:nth-child(4) i { background: linear-gradient(135deg, #d97706, #fbbf24); box-shadow: 0 4px 14px rgba(217,119,6,0.38); }
.category-strip-item:nth-child(5) i { background: linear-gradient(135deg, #059669, #34d399); box-shadow: 0 4px 14px rgba(5,150,105,0.38); }
.category-strip-item:nth-child(6) i { background: linear-gradient(135deg, #0284c7, #0ea5e9); box-shadow: 0 4px 14px rgba(2,132,199,0.38); }


/* ===== INFO GRID — 招聘置顶全宽 + 下方两列 ===== */
.info-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    grid-template-rows: auto auto auto;
    gap: 18px;
    margin-bottom: 30px;
    align-items: start;
}
.info-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 18px;
}
.info-box .info-group { width: 100%; }

/* 招聘: 全宽, 第一行 */
.info-grid .info-group:nth-child(3) { grid-column: 1 / -1; grid-row: 1; }
/* 买房租房: 左 3fr, 第二行 */
.info-grid .info-group:nth-child(1) { grid-column: 1;       grid-row: 2; }
/* 车辆买卖: 右 2fr, 第二行 */
.info-grid .info-group:nth-child(2) { grid-column: 2;       grid-row: 2; }
/* 二手市场: 左 3fr, 第三行 */
.info-grid .info-group:nth-child(4) { grid-column: 1;       grid-row: 3; }
/* 可爱宠物: 右 2fr, 第三行 */
.info-grid .info-group:nth-child(5) { grid-column: 2;       grid-row: 3; }

.info-1 {
    background: var(--c-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    border: 1px solid var(--c-border);
    border-top: 3px solid transparent;
}
.info-grid .info-group:nth-child(1) { border-top: 3px solid #4f46e5; }
.info-grid .info-group:nth-child(2) { border-top: 3px solid #0284c7; }
.info-grid .info-group:nth-child(3) { border-top: 3px solid #dc2626; }
.info-grid .info-group:nth-child(4) { border-top: 3px solid #d97706; }
.info-grid .info-group:nth-child(5) { border-top: 3px solid #059669; }

.info-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 13px 18px;
    border-bottom: 1px solid var(--c-border);
    background: #fafbfd;
    border-radius: 0;
}
.info-title .info-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--c-text);
    padding: 0;
    height: auto;
    line-height: normal;
    position: relative;
}
.info-title .info-more {
    color: var(--c-muted);
    font-size: 12px;
    padding: 3px 10px;
    border: 1px solid var(--c-border);
    border-radius: 20px;
    transition: all 0.2s;
    display: inline-block;
}
.info-title .info-more:hover {
    background: var(--c-primary);
    border-color: var(--c-primary);
    color: #fff;
}


/* ===== IMAGE CARD GROUPS — 基础网格 ===== */
.info-1 .info-content {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 12px;
    box-sizing: border-box;
    width: 100%;
}
.info-1 .info-content > li { display: block; min-width: 0; overflow: hidden; }

/* 买房/二手（左列 3fr）: 3列 */
.info-grid .info-group:nth-child(1) .info-content,
.info-grid .info-group:nth-child(4) .info-content {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.info-card {
    display: block;
    border-radius: 7px;
    overflow: hidden;
    border: 1px solid var(--c-border);
    background: var(--c-card);
    transition: box-shadow 0.2s, transform 0.2s;
}
.info-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }

.card-thumb {
    width: 100%;
    height: 118px;
    background: #e2e8f0;
    overflow: hidden;
}
.card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}
.info-card:hover .card-thumb img { transform: scale(1.05); }

.card-info { padding: 9px 10px 10px; }
.card-name {
    font-size: 12px;
    color: var(--c-text);
    font-weight: 500;
    line-height: 1.45;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.card-meta { display: flex; justify-content: space-between; align-items: center; }
.card-unit { font-size: 11px; color: var(--c-primary); font-weight: 500; }
.card-time { font-size: 11px; color: #aaa; }
.info-card:hover .card-name { color: var(--c-primary); }


/* ===== 招聘 — 全宽双列纯文字列表 ===== */
.info-recruit .info-content {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    padding: 4px 0;
    width: 100%;
    box-sizing: border-box;
    /* 覆盖卡片网格规则 */
    grid-template-rows: unset;
}
.info-recruit .info-content > li {
    display: block;
    min-width: 0;
    overflow: hidden;
    border-right: 1px solid transparent;
}
/* 左列右侧加分隔线 */
.info-recruit .info-content > li:nth-child(odd) {
    border-right: 1px solid var(--c-border);
}

.info-list {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 11px 18px;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.15s;
}
.info-list:hover { background: #fef3f2; }
.list-dot {
    flex-shrink: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ef4444;
    opacity: 0.65;
}
.info-list .list-name {
    flex: 1;
    font-size: 13px;
    color: var(--c-text);
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.info-list .list-unit {
    font-size: 11px;
    color: var(--c-muted);
    flex-shrink: 0;
    max-width: 62px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.info-list .list-time {
    font-size: 11px;
    color: #bbb;
    flex-shrink: 0;
}
.info-list:hover .list-name { color: #dc2626; }


/* ===== INFO-2（其他页面卡片） ===== */
.info-2 { margin-bottom: 30px; }
.info-2 .info-title { padding: 16px 0; }
.info-2 .info-content {
    border: none;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}
.info-2 .info-content li {
    width: 21%;
    margin-bottom: 20px;
    border-radius: var(--radius);
    background: var(--c-card);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--c-border);
}
.info-2 .info-list { display: block; }
.info-2 .info-list .list-top img {
    width: 100%;
    height: 180px;
    border-top-left-radius: var(--radius);
    border-top-right-radius: var(--radius);
    object-fit: cover;
}
.info-2 .info-list .list-bottom { padding: 8px 10px; }
.info-2 .info-list .list-bottom .list-bottom-name { font-size: 14px; color: var(--c-text); margin-bottom: 6px; }
.info-2 .info-list .list-bottom .list-bottom-name:hover { color: var(--c-primary); }
.info-2 .info-list .list-bottom .list-bottom-other { display: flex; justify-content: space-between; }
.list-bottom-other .list-other-area { font-size: 12px; color: #666; }
.list-bottom-other .list-other-time { font-size: 12px; color: #999; }


/* ===== FOOTER ===== */
#footer {
    background: var(--c-footer-bg);
    margin-top: 40px;
    padding: 0;
    border-top: none;
    box-shadow: 0 -1px 0 rgba(255,255,255,0.06);
}
.footer-body  { display: none; }
.footer-links { display: none; }
.footer-bottom { display: none; }
.in-foot { padding: 0; background: transparent; }

.footer-inner {
    padding: 36px 0;
    text-align: center;
}
.footer-nav { margin-bottom: 18px; }
.footer-nav a {
    display: inline-block;
    color: rgba(255,255,255,0.62);
    font-size: 14px;
    padding: 0 18px;
    border-right: 1px solid rgba(255,255,255,0.14);
    line-height: 1;
    transition: color 0.2s;
}
.footer-nav a:last-child { border-right: none; }
.footer-nav a:hover { color: #a5b4fc; }
.footer-copy { color: rgba(255,255,255,0.34); font-size: 12px; }
.footer-copy a { color: rgba(255,255,255,0.34); }
.footer-copy a:hover { color: rgba(255,255,255,0.62); }


/* ===== LAYOUT ===== */
#main { min-height: 500px; padding-bottom: 20px; }
#content.info-content { width: 100%; }
.breadcrumb { background: var(--c-card); border-radius: var(--radius); }
#toolbar { display: none; width: auto; box-shadow: var(--shadow); }
#toolbar > a { background: var(--c-primary); }
#toolbar > a > i { color: #fff; }


/* ===== FILTER / PAGINATION ===== */
.filter dl dd a:hover,
.filter dl dd a.active { background-color: var(--c-primary); color: #fff; }
.filter .search-filter button { background-color: var(--c-primary); }
.btn-danger,
.pagination li.active a,
.pagination li.active a:hover,
.pagination li a:hover { background-color: var(--c-primary); border-color: var(--c-primary); }
.show-number { background: var(--c-primary); }


/* ===== DETAIL ===== */
#index_view .detail p { font-size: 16px; line-height: 32px; letter-spacing: 1px; }


/* ===== USER / AUTH ===== */
#user_index #content { width: 850px; }
.wall {
    position: relative;
    width: 100%;
    height: 100vh;
    background: url("../../img/user/login_bg.jpg");
    padding-top: 100px;
}
.login, .register, .forget { width: 600px; margin-top: 0; }


/* ===== ABOUT ===== */
.about .panel-header { font-size: 24px; font-weight: 600; margin-bottom: 24px; }
.about .panel-body { display: flex; justify-content: space-between; align-items: center; }
.about .left-panel { width: 50%; }
.about .left-panel img { width: 100%; height: auto; }
.about .right-panel { width: 40%; }
.about .right-panel h3 { margin-bottom: 20px; }
.about .right-panel p { line-height: 30px; }


/* ===== BANNER / SIDEBAR ===== */
.banner-group { display: flex; justify-content: space-between; margin-bottom: 30px; }
.left-nav {
    width: 20%;
    background: var(--c-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
.left-nav li { border-bottom: 1px solid var(--c-border); margin-top: -1px; }
.left-nav li:last-child { border-bottom: none; }
.left-nav li a { display: flex; justify-content: space-between; padding: 10px 20px; color: #333; font-weight: 600; height: 81px; }
.left-nav li a i { font-size: 10px; color: #999; padding-top: 6px; }
.left-nav li a span:hover { color: var(--c-primary); }
.left-nav li a span p { font-size: 14px; font-weight: 500; color: #666; margin-top: 10px; }
.right-img { width: 60%; box-shadow: var(--shadow-sm); }
.right-img .carousel-inner .item { width: 100%; height: 405px; }
.right-img .carousel-inner .item img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: var(--radius);
}
