/* ============================================
   Blog / Case 文章详情页
   ============================================ */

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}

/* ===== Banner ===== */
.detail-banner {
    width: 100%;
    min-height: 280px;
    background-size: cover;
    background-position: center center;
    display: flex;
    align-items: center;
    position: relative;
}

.banner-overlay {
    width: 100%;
    min-height: 280px;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    padding: 40px 0;
}

.banner-container {
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    padding: 0 32px;
}

.banner-content {
    max-width: 800px;
}

.banner-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 12px;
    line-height: 1.2;
}

.banner-meta {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
}

.banner-meta .case-tag {
    display: inline-block;
    background: var(--primary-color, #179744);
    padding: 2px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    color: #ffffff;
}

/* ===== 面包屑 ===== */
.breadcrumb {
    padding: 16px 0 24px;
    font-size: 0.9rem;
    color: var(--text-light, #64748b);
}
.breadcrumb a {
    color: var(--text-light, #64748b);
    text-decoration: none;
    transition: color 0.2s;
}
.breadcrumb a:hover {
    color: var(--primary-color, #179744);
}
.breadcrumb .sep {
    margin: 0 8px;
    color: #cbd5e1;
}
.breadcrumb .current {
    color: var(--text-dark, #1f2937);
    font-weight: 500;
}

/* ===== 正文 + 侧边栏（左右布局） ===== */
.detail-wrapper {
    display: flex;
    gap: 50px;
    align-items: flex-start;
    padding-bottom: 40px;
}

/* ===== 左侧正文（向右偏移一点） ===== */
.detail-content {
    flex: 1;
    padding-left: 30px;  /* 向右偏移 */
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--text-dark, #1f2937);
}

.detail-content h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--bg-dark, #1e293b);
    margin: 40px 0 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-light, #e2e8f0);
}

.detail-content h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--bg-dark, #1e293b);
    margin: 30px 0 12px;
}

.detail-content p {
    margin: 0 0 16px;
}

.detail-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 20px 0;
}

.detail-content ul,
.detail-content ol {
    margin: 12px 0 16px;
    padding-left: 24px;
}
.detail-content ul li,
.detail-content ol li {
    margin-bottom: 6px;
}

.detail-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}
.detail-content table th,
.detail-content table td {
    padding: 10px 14px;
    border: 1px solid var(--border-light, #e2e8f0);
    text-align: left;
}
.detail-content table th {
    background: var(--bg-dark, #1e293b);
    color: #ffffff;
}

/* ===== 右侧侧边栏 ===== */
.detail-sidebar {
    flex: 0 0 350px;
    background: var(--bg-light, #f8fafc);
    border-radius: 12px;
    padding: 24px 20px;
    border: 1px solid var(--border-light, #e2e8f0);
    position: sticky;
    top: 100px;
}

.sidebar-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--bg-dark, #1e293b);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-light, #e2e8f0);
}

.hot-articles {
    list-style: none;
    margin: 0;
    padding: 0;
}

.hot-articles li {
    margin-bottom: 16px;
}

.hot-articles li:last-child {
    margin-bottom: 0;
}

.hot-articles li a {
    display: flex;
    gap: 14px;
    text-decoration: none;
    align-items: center;
    transition: all 0.2s ease;
}

.hot-articles li a:hover .hot-title {
    color: var(--primary-color, #179744);
}

.hot-thumb {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-white, #ffffff);
}

.hot-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hot-info {
    flex: 1;
    min-width: 0;
}

.hot-title {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-dark, #1f2937);
    margin: 0 0 4px;
    line-height: 1.4;
    transition: color 0.2s;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hot-date {
    font-size: 0.8rem;
    color: var(--text-light, #64748b);
}

.no-hot {
    color: var(--text-light, #64748b);
    font-size: 0.9rem;
}

/* ===== 获客表单 ===== */
.detail-contact-form {
    padding: 40px 0 60px;
    border-top: 1px solid var(--border-light, #e2e8f0);
}

.form-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--bg-dark, #1e293b);
    text-align: center;
    margin-bottom: 8px;
}

.form-subtitle {
    text-align: center;
    color: var(--text-light, #64748b);
    margin-bottom: 32px;
    font-size: 1rem;
}

/* 表单通知 */
.form-notice {
    max-width: 700px;
    margin: 0 auto 24px;
    padding: 16px 20px;
    border-radius: 10px;
    font-weight: 500;
    text-align: center;
}
.form-notice.success {
    background: rgba(23, 151, 68, 0.1);
    color: #179744;
    border: 1px solid #179744;
}
.form-notice.error {
    background: rgba(220, 38, 38, 0.1);
    color: #dc2626;
    border: 1px solid #dc2626;
}

.contact-form {
    max-width: 700px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-dark, #1f2937);
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-light, #e2e8f0);
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: var(--bg-white, #ffffff);
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color, #179744);
    outline: none;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-submit-btn {
    display: inline-block;
    padding: 14px 48px;
    background: var(--primary-color, #179744);
    color: #ffffff;
    border: none;
    border-radius: 40px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-submit-btn:hover {
    background: var(--primary-hover, #0f7a38);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(23, 151, 68, 0.25);
}

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
    .detail-sidebar {
        flex: 0 0 240px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    .banner-title {
        font-size: 1.8rem;
    }
    
    .detail-wrapper {
        flex-direction: column;
        gap: 30px;
    }
    
    .detail-content {
        padding-left: 0;
    }
    
    .detail-sidebar {
        flex: none;
        width: 100%;
        position: static;
    }
    
    .hot-articles {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
    
    .hot-articles li {
        margin-bottom: 0;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .detail-contact-form {
        padding: 30px 0 40px;
    }
    
    .form-title {
        font-size: 1.6rem;
    }
    
    .form-submit-btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hot-articles {
        grid-template-columns: 1fr;
    }
}