/* ===================================
   发布信息页面样式 - 全新布局
   配色：#CC3433(红色)、#F6B45E(金色)、#ECEBE9(浅灰)
   风格：侧边栏+主内容布局，与之前完全不同
   =================================== */

@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css');

/* ===== 全局基础 ===== */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #f0f0f0;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

/* ===== 顶部工具栏 ===== */
.bartop {
    background: linear-gradient(135deg, #2a2f36 0%, #1a1f24 100%);
    padding: 10px 0;
    border-bottom: 2px solid #CC3433;
}

.barcenter {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.barleft {
    display: flex;
    align-items: center;
    gap: 15px;
}

.barleft ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    align-items: center;
}

.barleft ul a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s ease;
}

.barleft ul a:hover {
    color: #F6B45E;
}

.barcity span {
    color: #F6B45E;
    font-weight: 600;
    font-size: 13px;
}

.line {
    color: rgba(255,255,255,0.3);
    font-size: 12px;
}

.barpost a {
    background: #CC3433;
    padding: 5px 15px;
    border-radius: 20px;
    color: #fff !important;
    font-weight: 500;
}

.barpost a:hover {
    background: #d94443;
    transform: translateY(-1px);
}

.barright {
    color: rgba(255,255,255,0.8);
    font-size: 13px;
}

/* ===== 全新 mheader 样式 ===== */
.mheader {
    background: #fff;
    padding: 15px 0;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}

.mhead {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
    width: auto;
    transition: all 0.3s ease;
}

.logo img:hover {
    transform: scale(1.02);
}

.font {
    display: flex;
    gap: 20px;
}

.font span {
    font-size: 14px;
    color: #666;
    padding: 8px 16px;
    background: #f5f5f5;
    border-radius: 8px;
    border: 1px solid #ECEBE9;
    transition: all 0.3s ease;
}

.font span:hover {
    background: rgba(204,52,51,0.06);
    border-color: #CC3433;
    color: #CC3433;
}

/* ===== 主布局容器 ===== */
.post-layout {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
    display: flex;
    gap: 30px;
}

/* ===== 侧边栏 ===== */
.post-sidebar {
    width: 280px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-card {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
}

.sidebar-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin: 0 0 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ECEBE9;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-card h3::before {
    content: '';
    width: 4px;
    height: 18px;
    background: #CC3433;
    border-radius: 2px;
}

/* 侧边栏分类菜单 */
.sidebar-categories {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-categories li {
    margin-bottom: 5px;
}

.sidebar-categories li a {
    display: block;
    padding: 10px 12px;
    color: #555;
    text-decoration: none;
    font-size: 14px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.sidebar-categories li a:hover {
    background: rgba(204,52,51,0.08);
    color: #CC3433;
    padding-left: 18px;
}

.sidebar-categories li a.active {
    background: #CC3433;
    color: #fff;
}

.sidebar-categories li a.active:hover {
    background: #d94443;
}

/* 子分类 */
.sidebar-subcategories {
    list-style: none;
    padding: 5px 0 5px 15px;
    margin: 0;
    display: none;
}

.sidebar-subcategories li {
    margin-bottom: 3px;
}

.sidebar-subcategories li a {
    padding: 6px 10px;
    font-size: 13px;
    color: #777;
}

.sidebar-subcategories li a:hover {
    background: rgba(246,180,94,0.1);
    color: #CC3433;
}

.sidebar-categories li:hover .sidebar-subcategories {
    display: block;
}

/* 侧边栏统计 */
.sidebar-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 10px;
}

.stat-item {
    text-align: center;
    padding: 12px;
    background: #fafafa;
    border-radius: 10px;
}

.stat-item .stat-num {
    display: block;
    font-size: 22px;
    font-weight: 700;
    color: #CC3433;
}

.stat-item .stat-label {
    display: block;
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}

/* ===== 主内容区 ===== */
.post-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 页面标题区域 */
.page-header {
    background: linear-gradient(135deg, #CC3433 0%, #992625 100%);
    border-radius: 16px;
    padding: 30px 35px;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 150px;
    height: 150px;
    background: rgba(246,180,94,0.1);
    border-radius: 50%;
}

.page-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 10px;
    position: relative;
    z-index: 1;
}

.page-header p {
    font-size: 14px;
    color: rgba(255,255,255,0.8);
    margin: 0;
    position: relative;
    z-index: 1;
}

/* 步骤指示器 */
.page-steps {
    display: flex;
    background: #fff;
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.page-step {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 12px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    color: #999;
    transition: all 0.3s ease;
    position: relative;
}

.page-step:not(:last-child)::after {
    content: '→';
    position: absolute;
    right: -8px;
    color: #ddd;
    font-size: 12px;
}

.page-step .step-num {
    width: 28px;
    height: 28px;
    background: #eee;
    color: #999;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.page-step.active {
    background: linear-gradient(135deg, rgba(204,52,51,0.08) 0%, rgba(204,52,51,0.02) 100%);
    color: #CC3433;
}

.page-step.active .step-num {
    background: #CC3433;
    color: #fff;
}

/* 内容卡片 */
.content-card {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
}

/* ===== 分类选择页 ===== */
/* 搜索框 */
.search-box {
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
}

.search-box input {
    flex: 1;
    border: 2px solid #ECEBE9;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 14px;
    background: #fafafa;
    transition: all 0.3s ease;
}

.search-box input:focus {
    border-color: #CC3433;
    outline: none;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(204,52,51,0.08);
}

.search-box button {
    padding: 0 24px;
    background: linear-gradient(135deg, #CC3433 0%, #d45355 100%);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-box button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(204,52,51,0.3);
}

/* 分类网格 */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
}

.category-item {
    background: #fff;
    border: 2px solid #ECEBE9;
    border-radius: 12px;
    padding: 22px 18px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.category-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: #CC3433;
    border-radius: 0 0 3px 3px;
}

.category-item:hover {
    border-color: #CC3433;
    background: rgba(204,52,51,0.04);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(204,52,51,0.12);
}

.category-item .cat-icon {
    width: 40px;
    height: 40px;
    margin: 0 auto 12px;
    background: linear-gradient(135deg, #CC3433 0%, #d94443 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
    box-shadow: 0 4px 10px rgba(204,52,51,0.2);
}

.category-item span {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    display: block;
}

.category-item.sub {
    grid-column: span 1;
    padding: 14px 10px;
    border-width: 1px;
    background: #fafafa;
}

.category-item.sub::before {
    display: none;
}

.category-item.sub .cat-icon {
    width: 28px;
    height: 28px;
    font-size: 14px;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #2a2f36 0%, #1a1f24 100%);
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(42,47,54,0.15);
}

.category-item.sub span {
    font-size: 12px;
    font-weight: 500;
    color: #666;
}

.back-all {
    text-align: center;
    padding: 20px 0 10px;
}

.back-all a {
    color: #CC3433;
    font-size: 14px;
    text-decoration: none;
    padding: 8px 20px;
    border: 1px solid #CC3433;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.back-all a:hover {
    background: #CC3433;
    color: #fff;
}

/* ===== 表单页 ===== */
/* 表单行 */
.form-row {
    display: flex;
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
}

.form-row:last-child {
    border-bottom: none;
}

.form-label {
    width: 160px;
    flex-shrink: 0;
    padding: 10px 20px 10px 0;
    text-align: right;
    font-weight: 600;
    color: #333;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.form-label .required {
    color: #CC3433;
    margin-right: 4px;
}

.form-field {
    flex: 1;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

/* 输入框样式 */
.form-field input[type="text"],
.form-field input[type="password"],
.form-field select {
    border: 2px solid #ECEBE9;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 14px;
    background: #fafafa;
    transition: all 0.3s ease;
    min-width: 200px;
}

.form-field input:focus,
.form-field select:focus {
    border-color: #CC3433;
    outline: none;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(204,52,51,0.08);
}

.form-field select {
    min-width: 220px;
    cursor: pointer;
}

/* 输入尺寸 */
.input-full { width: 100%; }
.input-large { width: 350px; }
.input-medium { width: 220px; }
.input-small { width: 140px; }

/* 联系方式区块 */
.contact-section {
    background: linear-gradient(135deg, rgba(246,180,94,0.08) 0%, rgba(204,52,51,0.04) 100%);
    border-radius: 14px;
    padding: 20px 25px;
    margin: 20px 0;
    border: 1px dashed rgba(246,180,94,0.3);
}

.contact-section .form-row {
    border-bottom-color: rgba(246,180,94,0.15);
}

/* 验证码 */
.auth-code {
    border: 2px solid #ECEBE9;
    border-radius: 8px;
    cursor: pointer;
    vertical-align: middle;
    transition: all 0.3s ease;
}

.auth-code:hover {
    border-color: #F6B45E;
    transform: scale(1.03);
}

/* 验证问答 */
.question-box {
    padding: 12px 16px;
    background: rgba(246,180,94,0.1);
    border: 1px solid #F6B45E;
    border-radius: 10px;
    color: #a67c2f;
    font-size: 13px;
    font-weight: 500;
    margin-top: 8px;
    display: inline-block;
}

/* 提交按钮 */
.submit-area {
    text-align: center;
    padding: 30px 0 10px;
}

.submit-btn {
    padding: 14px 60px;
    background: linear-gradient(135deg, #CC3433 0%, #d45355 100%);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 2px;
    box-shadow: 0 4px 15px rgba(204,52,51,0.3);
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(204,52,51,0.4);
}

/* 底部提示 */
.form-tips {
    text-align: center;
    padding: 20px;
    font-size: 13px;
    color: #999;
    border-top: 2px solid #ECEBE9;
    margin-top: 10px;
}

.form-tips span {
    color: #CC3433;
    font-weight: 600;
}

/* 地图按钮 */
.map-btn {
    padding: 10px 18px;
    background: linear-gradient(135deg, #2a2f36 0%, #1a1f24 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.map-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(42,47,54,0.3);
}

/* ===== 发布成功页 ===== */
.success-container {
    text-align: center;
    padding: 40px 20px;
}

.success-icon-wrapper {
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
    background: linear-gradient(135deg, rgba(76,175,80,0.15) 0%, rgba(204,52,51,0.05) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: successPulse 2s ease-in-out infinite;
}

.success-icon-wrapper .success-check {
    font-size: 60px;
    color: #4CAF50;
    font-weight: bold;
}

@keyframes successPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(76,175,80,0.4); }
    50% { transform: scale(1.05); box-shadow: 0 0 0 20px rgba(76,175,80,0); }
}

.success-title {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin: 0 0 15px;
}

.success-desc {
    max-width: 500px;
    margin: 0 auto 30px;
}

.success-desc p {
    font-size: 15px;
    line-height: 2;
    color: #666;
    margin: 10px 0;
}

.success-desc strong,
.success-desc b {
    color: #CC3433;
    font-weight: 700;
}

.success-desc .pending {
    color: #F6B45E;
    font-weight: 700;
}

.success-desc .warning {
    color: #F6B45E;
    font-weight: 600;
}

.success-desc a {
    color: #CC3433;
    text-decoration: none;
    font-weight: 500;
}

.success-desc a:hover {
    color: #F6B45E;
}

/* 成功页按钮 */
.success-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.action-btn {
    padding: 14px 32px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.action-btn.primary {
    background: linear-gradient(135deg, #CC3433 0%, #d45355 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(204,52,51,0.25);
}

.action-btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(204,52,51,0.35);
}

.action-btn.secondary {
    background: linear-gradient(135deg, #2a2f36 0%, #1a1f24 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(42,47,54,0.2);
}

.action-btn.secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(42,47,54,0.3);
}

.success-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 350px;
    margin: 0 auto;
}

.success-links a {
    padding: 12px 20px;
    background: #f5f5f5;
    border: 1px solid #ECEBE9;
    border-radius: 10px;
    color: #555;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.success-links a:hover {
    background: #CC3433;
    color: #fff;
    border-color: #CC3433;
}

/* ===== 辅助样式 ===== */
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

.clear {
    clear: both;
    height: 0;
}

/* ===== 响应式 ===== */
@media screen and (max-width: 992px) {
    .post-layout {
        flex-direction: column;
    }
    
    .post-sidebar {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .sidebar-card {
        flex: 1;
        min-width: 250px;
    }
    
    .category-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

@media screen and (max-width: 768px) {
    .barcenter {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .barleft {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .mhead {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .font {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .post-layout {
        padding: 0 15px;
        margin: 20px auto;
        gap: 20px;
    }
    
    .post-sidebar {
        flex-direction: column;
    }
    
    .sidebar-card {
        min-width: auto;
    }
    
    .page-header {
        padding: 20px 20px;
    }
    
    .page-header h1 {
        font-size: 22px;
    }
    
    .page-steps {
        flex-direction: column;
        gap: 8px;
    }
    
    .page-step:not(:last-child)::after {
        display: none;
    }
    
    .content-card {
        padding: 20px 15px;
    }
    
    .form-row {
        flex-direction: column;
        padding: 12px 0;
    }
    
    .form-label {
        width: 100%;
        text-align: left;
        padding: 0 0 8px 0;
    }
    
    .form-field {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .form-field input,
    .form-field select {
        width: 100%;
        min-width: auto;
    }
    
    .input-large,
    .input-medium {
        width: 100%;
    }
    
    .search-box {
        flex-direction: column;
    }
    
    .category-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
    
    .submit-btn {
        width: 100%;
        padding: 14px 20px;
    }
    
    .success-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .action-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

@media screen and (max-width: 480px) {
    .logo img {
        height: 40px;
    }
    
    .page-header h1 {
        font-size: 18px;
    }
    
    .success-icon-wrapper {
        width: 80px;
        height: 80px;
    }
    
    .success-icon-wrapper .success-check {
        font-size: 40px;
    }
    
    .success-title {
        font-size: 24px;
    }
}