/* ========== 全局共享样式 ========== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", Tahoma, Arial, sans-serif;
    background: #f5f5f5;
    color: #333;
    font-size: 14px;
    line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.w1280 { width: 1280px; margin: 0 auto; }
.clearfix::after { content: ""; display: block; clear: both; }

/* 顶部状态栏 */
.headerBar { background: #f7f7f7; border-bottom: 1px solid #eaeaea; height: 32px; line-height: 32px; font-size: 12px; color: #666; }
.headerMain { display: flex; justify-content: space-between; }
.part-left { display: flex; gap: 24px; }
.part-left-item { display: flex; align-items: center; gap: 4px; }
.part-left-item i { width: 14px; height: 14px; display: inline-block; background: #c00; border-radius: 50%; position: relative; }
.part-left-item i::before { content: ""; position: absolute; left: 4px; top: 3px; width: 6px; height: 8px; background: #fff; clip-path: polygon(0 0, 100% 0, 50% 100%); }
.part-left-tel i { background: #c00; clip-path: polygon(20% 0, 60% 0, 100% 40%, 100% 70%, 70% 100%, 35% 70%, 0 40%); }
.part-right a { color: #c00; margin-left: 12px; }
.part-right a:hover { text-decoration: underline; }

/* Logo + 搜索 */
.searchBar { background: #fff; padding: 24px 0; }
.searchBar-box { display: flex; align-items: center; }
#jfLogoBox { display: flex; align-items: center; gap: 14px; margin-right: 60px; cursor: pointer; }
.logo-icon { width: 60px; height: 60px; background: linear-gradient(135deg, #d33 0%, #b22 100%); border-radius: 12px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 30px; font-weight: bold; box-shadow: 0 4px 12px rgba(204, 51, 51, 0.25); }
.logo-text { font-size: 22px; font-weight: bold; color: #222; }
.logo-text small { display: block; font-size: 12px; color: #999; font-weight: normal; margin-top: 4px; letter-spacing: 2px; }
#searchBarRight { display: flex; flex: 1; gap: 14px; }
#searchBorder { flex: 1; display: flex; height: 44px; border: 2px solid #c33; border-radius: 4px; overflow: hidden; background: #fff; }
#searchInput { flex: 1; border: none; outline: none; padding: 0 16px; font-size: 14px; }
#searchBtn { width: 110px; background: #c33; color: #fff; border: none; cursor: pointer; font-size: 16px; letter-spacing: 4px; }
#searchBtn:hover { background: #b22; }
.fabu-btn { width: 110px; height: 44px; line-height: 40px; text-align: center; font-size: 14px; border: 1px solid #ccc; color: #666; cursor: pointer; }
.fabu-btn:hover { border-color: #c33; color: #c33; }

/* 导航 */
.navbar-box { background: #c33; height: 48px; }
.newNavBar { display: flex; height: 48px; align-items: center; width: 1280px; margin: 0 auto; }
.newNavBar-item { color: #fff; font-size: 16px; padding: 0 28px; line-height: 48px; display: inline-block; }
.newNavBar-item.active, .newNavBar-item:hover { background: rgba(0, 0, 0, 0.15); }

/* 页脚 */
.footerBar { background: #2c2c2c; color: #aaa; margin-top: 40px; padding: 30px 0 20px; font-size: 13px; line-height: 2; }
.footerBar .aligncenter { text-align: center; }
.footerBar a { color: #fff; margin: 0 4px; }
.footerBar a:hover { color: #c33; }
.footerBar .pdlr8 { padding: 0 10px; }
.footerBar .footlink { border-bottom: 1px solid #444; padding-bottom: 16px; margin-bottom: 16px; }
.footer-links { text-align: center; font-size: 12px; color: #888; }

/* ========== 通用页面容器 ========== */
.page-wrap { width: 1280px; margin: 20px auto; }
.page-card { background: #fff; border-radius: 4px; padding: 30px 40px; min-height: 400px; }
.page-card-title { font-size: 22px; font-weight: bold; color: #333; padding-left: 12px; border-left: 4px solid #c33; margin-bottom: 24px; }
.page-card-sub { font-size: 14px; color: #888; margin-bottom: 24px; }

/* 面包屑 */
.breadcrumb { font-size: 13px; color: #888; margin: 20px auto 0; width: 1280px; padding: 0 10px; }
.breadcrumb a { color: #888; }
.breadcrumb a:hover { color: #c33; }
.breadcrumb .sep { margin: 0 6px; color: #ccc; }

/* ========== 表单样式 ========== */
.form-row { display: flex; margin-bottom: 20px; align-items: flex-start; }
.form-row .label { width: 130px; text-align: right; padding: 10px 16px 0 0; font-size: 14px; color: #555; }
.form-row .label.req::before { content: "*"; color: #c33; margin-right: 4px; }
.form-row .field { flex: 1; max-width: 480px; }
.form-row input[type="text"],
.form-row input[type="password"],
.form-row input[type="email"],
.form-row input[type="tel"],
.form-row input[type="number"],
.form-row select,
.form-row textarea {
    width: 100%;
    height: 40px;
    border: 1px solid #ddd;
    border-radius: 3px;
    padding: 0 12px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
}
.form-row textarea { height: 120px; padding: 10px 12px; resize: vertical; }
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus { border-color: #c33; }
.form-row .hint { font-size: 12px; color: #999; margin-top: 6px; }
.form-row .field-row { display: flex; gap: 10px; }
.form-row .field-row > * { flex: 1; }

.btn {
    display: inline-block;
    height: 40px;
    line-height: 40px;
    padding: 0 30px;
    border-radius: 3px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.2s;
    text-align: center;
}
.btn-primary { background: #c33; color: #fff; }
.btn-primary:hover { background: #b22; }
.btn-default { background: #fff; color: #555; border: 1px solid #ddd; }
.btn-default:hover { border-color: #c33; color: #c33; }
.btn-lg { height: 46px; line-height: 46px; padding: 0 50px; font-size: 16px; }
.btn-block { display: block; width: 100%; }

/* ========== 列表页样式 ========== */
.list-wrap { width: 1280px; margin: 20px auto; display: flex; gap: 20px; }
.list-side { width: 240px; }
.list-main { flex: 1; background: #fff; border-radius: 4px; padding: 24px; }

.side-card { background: #fff; border-radius: 4px; padding: 16px 20px; margin-bottom: 16px; }
.side-card h3 { font-size: 15px; font-weight: bold; color: #333; padding-left: 8px; border-left: 3px solid #c33; margin-bottom: 12px; }
.side-list a { display: block; padding: 8px 4px; font-size: 13px; color: #555; border-bottom: 1px dashed #f0f0f0; }
.side-list a:hover, .side-list a.on { color: #c33; }
.side-list a:last-child { border-bottom: none; }

.filter-bar { display: flex; align-items: center; padding: 12px 0; border-bottom: 1px solid #eee; margin-bottom: 16px; font-size: 13px; }
.filter-bar .lbl { color: #999; margin-right: 12px; }
.filter-bar a { margin-right: 18px; color: #555; padding: 4px 10px; border-radius: 3px; }
.filter-bar a.on, .filter-bar a:hover { background: #c33; color: #fff; }

.proj-list .proj-item {
    display: flex;
    justify-content: space-between;
    padding: 18px 0;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    align-items: center;
}
.proj-list .proj-item:hover .proj-name { color: #c33; }
.proj-item-info { flex: 1; }
.proj-name { font-size: 15px; color: #333; margin-bottom: 8px; font-weight: 500; }
.proj-meta { font-size: 12px; color: #999; display: flex; gap: 18px; }
.proj-meta span::before { content: "·"; margin-right: 6px; color: #ddd; }
.proj-meta span:first-child::before { content: ""; margin-right: 0; }
.proj-price { color: #c33; font-size: 18px; font-weight: bold; margin-left: 20px; flex-shrink: 0; }
.proj-tag { display: inline-block; background: #fff2f2; color: #c33; font-size: 11px; padding: 2px 6px; border-radius: 2px; margin-right: 6px; }

.pagination { text-align: center; margin-top: 30px; }
.pagination a { display: inline-block; padding: 6px 12px; border: 1px solid #ddd; margin: 0 3px; color: #555; border-radius: 3px; font-size: 13px; }
.pagination a:hover, .pagination a.on { background: #c33; color: #fff; border-color: #c33; }

/* ========== 详情页 ========== */
.detail-head { padding: 24px 30px; background: #fff; border-radius: 4px; margin-top: 20px; }
.detail-title { font-size: 22px; color: #333; font-weight: bold; margin-bottom: 14px; }
.detail-meta { display: flex; gap: 24px; font-size: 13px; color: #888; margin-bottom: 16px; }
.detail-meta span strong { color: #c33; font-weight: normal; }
.detail-price-row { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; background: #fff5f5; border-radius: 4px; }
.detail-price { font-size: 28px; color: #c33; font-weight: bold; }
.detail-price small { font-size: 12px; color: #888; font-weight: normal; margin-left: 6px; }

.detail-body { display: flex; gap: 20px; margin-top: 20px; }
.detail-main { flex: 1; background: #fff; padding: 24px 30px; border-radius: 4px; }
.detail-side { width: 290px; }

.detail-section { margin-bottom: 24px; }
.detail-section h3 { font-size: 16px; font-weight: bold; color: #333; padding-left: 10px; border-left: 4px solid #c33; margin-bottom: 14px; }
.detail-section p { font-size: 14px; color: #555; line-height: 1.9; margin-bottom: 8px; }
.detail-section ul { padding-left: 28px; }
.detail-section li { font-size: 14px; color: #555; line-height: 1.9; }

.kv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; }
.kv-grid .kv { display: flex; font-size: 13px; }
.kv .k { color: #888; min-width: 80px; }
.kv .v { color: #333; }

/* ========== 登录注册 ========== */
.auth-wrap { width: 1280px; margin: 40px auto; display: flex; min-height: 460px; background: #fff; border-radius: 6px; overflow: hidden; box-shadow: 0 4px 18px rgba(0,0,0,0.05); }
.auth-banner { width: 50%; background: linear-gradient(135deg, #b22 0%, #c33 60%, #e55 100%); color: #fff; padding: 50px; display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; }
.auth-banner::before { content: ""; position: absolute; right: -100px; top: -100px; width: 400px; height: 400px; border: 80px solid rgba(255,255,255,0.06); border-radius: 50%; }
.auth-banner h2 { font-size: 32px; margin-bottom: 16px; letter-spacing: 1px; position: relative; }
.auth-banner p { font-size: 15px; opacity: 0.9; line-height: 1.8; position: relative; }
.auth-form { width: 50%; padding: 50px 60px; }
.auth-form h3 { font-size: 22px; color: #333; margin-bottom: 30px; }
.auth-form .auth-tabs { display: flex; gap: 24px; margin-bottom: 26px; border-bottom: 1px solid #eee; }
.auth-form .auth-tab { padding: 8px 0 12px; font-size: 16px; color: #888; cursor: pointer; }
.auth-form .auth-tab.on { color: #c33; border-bottom: 2px solid #c33; margin-bottom: -1px; font-weight: bold; }
.auth-input { width: 100%; height: 44px; border: 1px solid #ddd; border-radius: 3px; padding: 0 14px; font-size: 14px; margin-bottom: 16px; outline: none; }
.auth-input:focus { border-color: #c33; }
.auth-checkrow { display: flex; justify-content: space-between; font-size: 13px; color: #888; margin-bottom: 16px; }
.auth-checkrow a { color: #c33; }
.auth-bottom { margin-top: 16px; text-align: center; font-size: 13px; color: #888; }
.auth-bottom a { color: #c33; margin-left: 6px; }

/* ========== 会员中心 ========== */
.member-wrap { width: 1280px; margin: 20px auto; display: flex; gap: 20px; }
.member-side { width: 220px; background: #fff; border-radius: 4px; padding: 20px 0; height: fit-content; }
.member-user { padding: 0 20px 20px; border-bottom: 1px solid #eee; text-align: center; }
.member-avatar { width: 70px; height: 70px; border-radius: 50%; background: linear-gradient(135deg, #c33, #b22); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 28px; margin: 0 auto 12px; }
.member-name { font-size: 15px; color: #333; }
.member-role { font-size: 12px; color: #c33; margin-top: 4px; }
.member-menu { padding: 10px 0; }
.member-menu a { display: block; padding: 10px 24px; font-size: 14px; color: #555; border-left: 3px solid transparent; }
.member-menu a:hover, .member-menu a.on { background: #fff5f5; color: #c33; border-left-color: #c33; }
.member-main { flex: 1; background: #fff; border-radius: 4px; padding: 28px 30px; }

.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.stat-item { background: linear-gradient(135deg, #fff 0%, #fff5f5 100%); border: 1px solid #ffe5e5; border-radius: 4px; padding: 20px; }
.stat-item .num { font-size: 26px; color: #c33; font-weight: bold; }
.stat-item .lbl { font-size: 13px; color: #666; margin-top: 4px; }

/* ========== 信息文本页 ========== */
.text-page h2 { font-size: 18px; color: #333; margin: 24px 0 12px; }
.text-page p { font-size: 14px; color: #555; line-height: 2; margin-bottom: 10px; text-indent: 2em; }
.text-page ul, .text-page ol { margin-left: 28px; margin-bottom: 14px; }
.text-page li { font-size: 14px; color: #555; line-height: 2; }

/* ========== Tag / Status ========== */
.tag { display: inline-block; padding: 2px 8px; border-radius: 2px; font-size: 12px; margin-right: 6px; }
.tag-red { background: #fff2f2; color: #c33; }
.tag-blue { background: #e8f1ff; color: #2563a7; }
.tag-gold { background: #fff8e6; color: #c79e21; }
.tag-green { background: #e8f7ee; color: #2b9152; }

/* ========== 卡片网格 ========== */
.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cgrid-item { border: 1px solid #eee; border-radius: 4px; padding: 18px; background: #fff; cursor: pointer; transition: all 0.2s; }
.cgrid-item:hover { box-shadow: 0 4px 18px rgba(0,0,0,0.08); transform: translateY(-2px); border-color: #c33; }
.cgrid-item h4 { font-size: 15px; color: #333; margin-bottom: 8px; font-weight: 600; }
.cgrid-item p { font-size: 12px; color: #888; line-height: 1.7; }

.empty-state { text-align: center; padding: 80px 0; color: #999; }
.empty-state .icon { font-size: 48px; margin-bottom: 14px; opacity: 0.6; }
