﻿/* ================================================
   文章详情页样式（article.css）
   与 newslist.css 完全独立，避免样式污染
   ================================================ */

/* 页面标题栏 */
.page-title-bar {
    background: linear-gradient(135deg, #667eea, #764ba2);
    padding: 45px 0 40px;
    text-align: center;
}
.page-title-bar .container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}
.category-label {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    color: #fff;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 13px;
    margin-bottom: 10px;
}
.category-desc {
    color: rgba(255,255,255,0.8);
    font-size: 14px;
}
.page-title-bar h1 {
    color: #fff;
    font-size: 26px;
    font-weight: bold;
    margin-bottom: 12px;
    line-height: 1.5;
}
.page-title-bar p {
    color: rgba(255,255,255,0.85);
    font-size: 14px;
}
.page-title-bar p span {
    margin: 0 12px;
}

/* 面包屑 */
.breadcrumb-nav {
    padding: 14px 0;
    color: #999;
    font-size: 13px;
}
.breadcrumb-nav a {
    color: #666;
    text-decoration: none;
}
.breadcrumb-nav a:hover {
    color: #667eea;
}

/* 文章主体区域 */
.article-section {
    padding: 40px 0 60px;
}
.article-section .container {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 左侧文章区 */
.article-main {
    flex: 1;
    min-width: 0;
}

/* 文章卡片 */
.article-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
}

/* 文章头部：标题 + 元信息 */
.article-header {
    padding: 30px 40px 25px;
    border-bottom: 1px solid #f0f0f0;
}
.article-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    line-height: 1.5;
    margin-bottom: 12px;
}
.article-meta {
    font-size: 13px;
    color: #999;
}
.article-meta span {
    margin-right: 20px;
}

/* 文章内容 */
.article-body {
    padding: 35px 40px;
    font-size: 15px;
    line-height: 1.9;
    color: #444;
}
.article-body p {
    margin-bottom: 16px;
}
.article-body h2 {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin: 28px 0 14px;
}
.article-body h3 {
    font-size: 17px;
    font-weight: bold;
    color: #333;
    margin: 22px 0 12px;
}
.article-body ul,
.article-body ol {
    padding-left: 24px;
    margin-bottom: 16px;
}
.article-body li {
    margin-bottom: 8px;
}
.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
    display: block;
}
.article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
}
.article-body td,
.article-body th {
    border: 1px solid #eee;
    padding: 10px 14px;
}

/* 上一篇/下一篇 */
.article-pn {
    display: flex;
    border-top: 1px solid #eee;
    font-size: 14px;
}
.article-pn-left,
.article-pn-right {
    flex: 1;
    padding: 18px 25px;
}
.article-pn-left {
    border-right: 1px solid #eee;
}
.article-pn-left span,
.article-pn-right span {
    color: #999;
    font-size: 13px;
    display: block;
    margin-bottom: 4px;
}
.article-pn-left a,
.article-pn-right a {
    color: #667eea;
    font-weight: 500;
    text-decoration: none;
}
.article-pn-left a:hover,
.article-pn-right a:hover {
    text-decoration: underline;
}
.article-pn-right {
    text-align: right;
}

/* ================================================
   右侧边栏
   ================================================ */
.article-sidebar {
    width: 300px;
    flex-shrink: 0;
}

.article-sidebar .sidebar-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
}
.article-sidebar .sidebar-title {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    padding: 13px 18px;
    font-size: 14px;
    font-weight: bold;
}

/* 分类导航 */
.article-sidebar .sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}
.article-sidebar .sidebar-nav li a {
    display: block;
    padding: 11px 18px;
    color: #555;
    font-size: 14px;
    border-left: 3px solid transparent;
    text-decoration: none;
    transition: all 0.2s;
}
.article-sidebar .sidebar-nav li a:hover {
    background: #f5f5ff;
    border-left-color: #667eea;
    color: #667eea;
}

/* 热门文章 */
.article-sidebar .sidebar-hot {
    list-style: none;
    padding: 0;
    margin: 0;
}
.article-sidebar .sidebar-hot li a {
    display: block;
    padding: 10px 18px;
    color: #555;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-decoration: none;
    transition: color 0.2s;
    border-bottom: 1px solid #f5f5f5;
}
.article-sidebar .sidebar-hot li:last-child a {
    border-bottom: none;
}
.article-sidebar .sidebar-hot li a:hover {
    color: #667eea;
}

/* 联系我们 */
.article-sidebar .sidebar-contact .contact-info {
    padding: 15px 18px;
}
.article-sidebar .sidebar-contact .contact-info p {
    margin: 7px 0;
    font-size: 13px;
    color: #666;
}
.article-sidebar .sidebar-btn {
    display: block;
    margin: 0 18px 15px;
    padding: 10px;
    text-align: center;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    border-radius: 6px;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
}
.article-sidebar .sidebar-btn:hover {
    opacity: 0.9;
}

/* ================================================
   产品详情页专用样式
   ================================================ */

/* 产品图片区 */
.product-gallery {
    padding: 30px 40px 0;
}
.product-main-img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 8px;
}

/* 产品详情信息区 */
.product-info {
    padding: 20px 40px;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 0;
}
.info-row {
    display: flex;
    align-items: center;
    padding: 10px 0;
    font-size: 14px;
}
.info-label {
    color: #999;
    width: 80px;
    flex-shrink: 0;
}
.info-value {
    color: #333;
}
.info-value.price {
    color: #e74c3c;
    font-size: 20px;
    font-weight: bold;
}

/* ================================================
   联系我们页面专用样式
   ================================================ */

.contact-page {
    padding: 0;
}
.contact-info-grid {
    display: flex;
    gap: 30px;
    padding: 30px 40px 0;
}
.contact-info-grid {
    display: flex;
    gap: 30px;
    padding: 30px 40px 0;
    overflow: hidden;
}
.contact-detail {
    flex: 1;
    min-width: 0;
}
.contact-info-card {
    width: 280px;
    flex-shrink: 0;
    min-width: 0;
}
    flex-shrink: 0;
}
.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}
.contact-item:last-child {
    border-bottom: none;
}
.contact-icon {
    font-size: 24px;
    flex-shrink: 0;
}
.contact-text {
    flex: 1;
}
.contact-label {
    font-size: 12px;
    color: #999;
    margin-bottom: 4px;
}
.contact-value {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

/* 地图区域 */
.contact-map {
    padding: 20px 40px 30px;
}
.map-placeholder {
    background: #f5f5f5;
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 50px 20px;
    text-align: center;
    color: #999;
}
.map-placeholder p {
    margin: 0;
    font-size: 14px;
}
.map-hint {
    font-size: 12px !important;
    margin-top: 8px !important;
    color: #bbb;
}

/* ================================================
   在线留言页面专用样式
   ================================================ */

.message-form-wrap {
    padding: 35px 40px;
}
.message-form-title {
    font-size: 18px;
    color: #333;
    font-weight: bold;
    margin-bottom: 8px;
}
.message-form-hint {
    font-size: 13px;
    color: #999;
    margin-bottom: 25px;
}
.message-form .form-row {
    display: flex;
    gap: 20px;
}
.message-form .form-group {
    flex: 1;
    margin-bottom: 18px;
}
.message-form .form-group label {
    display: block;
    font-size: 13px;
    color: #666;
    margin-bottom: 6px;
}
.message-form .form-group input,
.message-form .form-group textarea {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
    font-family: inherit;
}
.message-form .form-group input:focus,
.message-form .form-group textarea:focus {
    border-color: #667eea;
}
.message-form .form-group textarea {
    resize: vertical;
}
.form-code {
    display: flex;
    align-items: center;
    gap: 10px;
}
.form-code label {
    flex-shrink: 0;
}
.form-code input {
    width: 120px;
}
.form-code .codeimg {
    height: 36px;
    cursor: pointer;
    border-radius: 4px;
    border: 1px solid #ddd;
}
.btn-submit {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 5px;
}
.btn-submit:hover {
    opacity: 0.9;
}

/* 留言列表 */
.message-list {
    border-top: 1px solid #eee;
    padding: 25px 40px;
}
.message-list-title {
    font-size: 16px;
    color: #333;
    font-weight: bold;
    margin-bottom: 20px;
}
.message-item {
    padding: 18px 0;
    border-bottom: 1px solid #f5f5f5;
}
.message-item:last-child {
    border-bottom: none;
}
.message-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}
.message-user {
    font-size: 14px;
    font-weight: bold;
    color: #333;
}
.message-date {
    font-size: 12px;
    color: #999;
}
.message-content {
    font-size: 14px;
    color: #555;
    line-height: 1.7;
    margin-bottom: 10px;
}
.message-reply {
    background: #f8f8ff;
    border-left: 3px solid #667eea;
    padding: 12px 15px;
    border-radius: 0 6px 6px 0;
}
.reply-label {
    font-size: 12px;
    color: #667eea;
    font-weight: bold;
    margin-bottom: 6px;
}
.reply-content {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
}

/* ================================================
   响应式
   ================================================ */
@media (max-width: 900px) {
    .article-section .container {
        flex-direction: column;
    }
    .article-sidebar {
        width: 100%;
    }
    .article-body {
        padding: 25px 20px;
    }
    /* 联系我们移动端 */
    .contact-info-grid {
        flex-direction: column;
        padding: 20px 16px;
        gap: 20px;
    }
    .contact-info-card {
        width: 100%;
    }
    .contact-item {
        padding: 12px 0;
    }
    .contact-value {
        font-size: 13px;
        word-break: break-all;
    }
}

/* 侧边栏3D标签云 */
.tag-cloud-sidebar { padding: 0 !important; background: transparent !important; border: none !important; box-shadow: none !important; margin-bottom: 20px; }
.tag-cloud-sidebar .sidebar-title { background: linear-gradient(135deg, #c0362c, #a02a21); color: #fff; padding: 13px 18px; font-size: 14px; font-weight: bold; border-radius: 12px 12px 0 0; letter-spacing: 1px; }
.tag-cloud-sidebar .tag-cloud-container { width: 100%; height: 320px; background: #fff; border-radius: 0 0 12px 12px; border: 1px solid #f0e6e6; border-top: none; box-shadow: 0 6px 24px rgba(192,54,44,0.08); padding: 16px 10px 10px; box-sizing: border-box; }
.tag-cloud-sidebar #tag_cloud_widget { position: relative; width: 100%; height: 100%; }
.tag-cloud-sidebar #tag_cloud_widget a { position: absolute; padding: 7px 16px; background: linear-gradient(135deg, #c0362c 0%, #a02a21 100%); color: #fff; text-decoration: none; border-radius: 20px; font-size: 13px; white-space: nowrap; box-shadow: 0 3px 10px rgba(192,54,44,0.2); letter-spacing: 0.5px; font-weight: 500; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.tag-cloud-sidebar #tag_cloud_widget a:hover { background: linear-gradient(135deg, #d9443a 0%, #c0362c 100%); box-shadow: 0 5px 16px rgba(192,54,44,0.35); transform: scale(1.06); }