﻿/* 面包屑导航 */
.breadcrumb {
    background: #f7fafc;
    padding: 15px 0;
    border-bottom: 1px solid #e2e8f0;
}

.breadcrumb .container {
    display: flex;
    align-items: center;
    font-size: 14px;
}

.breadcrumb a {
    color: #718096;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: #667eea;
}

.breadcrumb .separator {
    margin: 0 10px;
    color: #cbd5e0;
}

.breadcrumb .current {
    color: #667eea;
    font-weight: 600;
}

/* 文章容器 */
.article-container {
    
    min-height: calc(100vh - 300px);
}

.article-container .container {
    
    padding: 30px 20px;
}

.article-main {
    max-width: 100%;
}

/* 文章头部 */
.article-header {
    padding-bottom: 10px;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 20px;
}

.article-category {
    display: inline-block;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 15px;
}

.article-title {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.4;
    color: #2d3748;
    margin-bottom: 20px;text-align: center;
}

.article-meta {
   text-align: center;
}

.meta-item {
    font-size: 13px;
    color: #718096;text-align: center;
}

.meta-icon {
    font-size: 16px;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.article-tags .tag {
    background: #edf2f7;
    color: #667eea;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 13px;
    transition: all 0.3s;
}

.article-tags .tag:hover {
    background: #667eea;
    color: #fff;
}

/* 文章内容 */
.article-content {
    margin-bottom: 10px;min-height:800px
}
.article-content img{margin-top:6px;border-radius:5px;}

.article-summary {
    background: linear-gradient(135deg, #f7fafc, #edf2f7);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
    border-left: 4px solid #667eea;
}

.article-summary h3 {
    font-size: 16px;
    color: #667eea;
    margin-bottom: 10px;
}

.article-summary p {
    font-size: 15px;
    line-height: 1.8;
    color: #4a5568;
}

.article-body {
    line-height: 1.8;
    color: #2d3748;
}

.article-body h2 {
    font-size: 24px;
    color: #2d3748;
    margin: 40px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #667eea;
}

.article-body h3 {
    font-size: 20px;
    color: #2d3748;
    margin: 30px 0 15px;
}

.article-body p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #4a5568;
}

.article-body ul,
.article-body ol {
    margin: 20px 0;
    padding-left: 20px;
}

.article-body li {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 10px;
    color: #4a5568;
}

/* 数据图表 */
.data-chart,
.city-rank,
.industry-chart,
.salary-table {
    background: #f7fafc;
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
}

.chart-title {
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 20px;
}

.chart-bars {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    height: 200px;
    padding: 20px 0;
}

.bar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 12%;
}

.bar {
    width: 100%;
    background: linear-gradient(180deg, #667eea, #764ba2);
    border-radius: 4px 4px 0 0;
    transition: all 0.3s;
    position: relative;
}

.bar-item:hover .bar {
    transform: scaleY(1.05);
    background: linear-gradient(180deg, #764ba2, #667eea);
}

.bar-label {
    margin-top: 10px;
    font-size: 12px;
    color: #718096;
}

.bar-value {
    margin-top: 5px;
    font-size: 12px;
    font-weight: 600;
    color: #667eea;
}

.bar-item.active .bar {
    background: linear-gradient(180deg, #f093fb, #667eea);
}

/* 城市排行 */
.city-rank h3,
.industry-chart h3,
.salary-table h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #2d3748;
}

.rank-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rank-item {
    display: flex;
    align-items: center;
    padding: 12px;
    background: #fff;
    border-radius: 8px;
    transition: all 0.3s;
}

.rank-item:hover {
    background: #edf2f7;
    transform: translateX(5px);
}

.rank-num {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    margin-right: 15px;
}

.rank-city {
    flex: 1;
    font-weight: 600;
    color: #2d3748;
}

.rank-percent {
    color: #667eea;
    font-weight: 600;
}

/* 行业图表 */
.industry-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.industry-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.industry-bar {
    flex: 1;
    height: 30px;
    background: #e2e8f0;
    border-radius: 15px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 15px;
    transition: width 1s ease;
    display: flex;
    align-items: center;
    padding-left: 15px;
}

.industry-name {
    width: 100px;
    font-weight: 600;
    color: #2d3748;
    font-size: 14px;
}

.industry-percent {
    width: 60px;
    font-weight: 600;
    color: #667eea;
    font-size: 14px;
    text-align: right;
}

/* 薪资表格 */
.salary-table table {
    width: 100%;
    border-collapse: collapse;
}

.salary-table th,
.salary-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.salary-table th {
    background: #edf2f7;
    font-weight: 600;
    color: #2d3748;
}

.salary-table td {
    color: #4a5568;
}

.salary-table .up {
    color: #48bb78;
    font-weight: 600;
}

/* 建议列表 */
.advice-list {
    list-style: none;
    padding: 0;
}

.advice-list li {
    padding: 15px;
    background: #edf2f7;
    border-radius: 8px;
    margin-bottom: 10px;
    font-size: 16px;
    transition: all 0.3s;
}

.advice-list li:hover {
    background: #667eea;
    color: #fff;
    transform: translateX(10px);
}

/* 专家引用 */
.expert-quote {
    background: linear-gradient(135deg, #667eea15, #764ba215);
    padding: 25px;
    border-radius: 12px;
    margin: 30px 0;
    position: relative;
    border-left: 4px solid #667eea;
}

.quote-icon {
    font-size: 48px;
    color: #667eea;
    opacity: 0.3;
    position: absolute;
    top: 10px;
    left: 15px;
}

.expert-quote p {
    margin: 0 0 15px 0;
    padding-left: 40px;
    font-size: 16px;
    font-style: italic;
    color: #4a5568;
}

.quote-author {
    padding-left: 40px;
    font-size: 14px;
    color: #667eea;
    font-weight: 600;
}

/* 文章操作栏 */
.article-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 30px;
}

.action-buttons {
    display: flex;
    gap: 10px;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #edf2f7;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    color: #4a5568;
    transition: all 0.3s;
}

.action-btn:hover {
    background: #667eea;
    color: #fff;
}

.action-btn.active {
    background: #667eea;
    color: #fff;
}

.action-btn .count {
    font-size: 12px;
    opacity: 0.8;
}

.share-channels {
    display: flex;
    gap: 10px;
}

.share-channels.show {
    display: flex;
}

.share-channel {
    background: #edf2f7;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    color: #4a5568;
    transition: all 0.3s;
}

.share-channel:hover {
    background: #667eea;
    color: #fff;
}

.share-channel.wechat:hover {
    background: #07c160;
}

.share-channel.weibo:hover {
    background: #e6162d;
}

.share-channel.qq:hover {
    background: #12b7f5;
}

/* 相关推荐 */
.related-news {
    background: #f7fafc;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.related-news h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #2d3748;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.related-item {
    display: block;
    text-decoration: none;
    transition: all 0.3s;
}

.related-item:hover {
    transform: translateY(-5px);
}

.related-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}

.related-item h4 {
    font-size: 14px;
    color: #2d3748;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 评论区 */
.comments-section {
    margin-bottom: 30px;
}

.comments-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.comments-header h3 {
    font-size: 20px;
    color: #2d3748;
}

.comment-count {
    font-size: 14px;
    color: #718096;
}

.sort-options {
    display: flex;
    gap: 10px;
}

.sort-btn {
    background: none;
    border: none;
    color: #718096;
    cursor: pointer;
    font-size: 14px;
    padding: 5px 10px;
    border-radius: 4px;
    transition: all 0.3s;
}

.sort-btn.active {
    color: #667eea;
    background: #edf2f7;
}

/* 评论输入框 */
.comment-input-box {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    padding: 20px;
    background: #f7fafc;
    border-radius: 12px;
}

.comment-avatar img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.input-wrapper {
    flex: 1;
}

.comment-input {
    width: 100%;
    padding: 15px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    resize: vertical;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s;
}

.comment-input:focus {
    outline: none;
    border-color: #667eea;
}

.input-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.emoji-btn {
    font-size: 24px;
    cursor: pointer;
    transition: transform 0.3s;
}

.emoji-btn:hover {
    transform: scale(1.2);
}

.submit-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    border: none;
    padding: 8px 25px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
}

.submit-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* 评论列表 */
.comments-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.comment-item {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: #f7fafc;
    border-radius: 12px;
    transition: all 0.3s;
}

.comment-item:hover {
    background: #edf2f7;
}

.sub-comment {
    margin-top: 15px;
    padding: 15px;
    background: #fff;
    border-radius: 8px;
}

.comment-content {
    flex: 1;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.user-name {
    font-weight: 600;
    color: #2d3748;
    font-size: 15px;
}

.user-tag {
    background: #667eea;
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.user-tag.author {
    background: #f093fb;
}

.comment-time {
    color: #718096;
    font-size: 13px;
    margin-left: auto;
}

.comment-text {
    font-size: 15px;
    line-height: 1.6;
    color: #4a5568;
    margin-bottom: 10px;
}

.comment-actions {
    display: flex;
    gap: 20px;
}

.comment-action {
    background: none;
    border: none;
    color: #718096;
    cursor: pointer;
    font-size: 13px;
    padding: 5px 10px;
    border-radius: 4px;
    transition: all 0.3s;
}

.comment-action:hover {
    color: #667eea;
    background: #edf2f7;
}

.comment-action.active {
    color: #667eea;
}

.load-more-comments {
    width: 100%;
    padding: 15px;
    background: #edf2f7;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    color: #667eea;
    font-weight: 600;
    transition: all 0.3s;
}

.load-more-comments:hover {
    background: #667eea;
    color: #fff;
}

/* 文章侧边栏 */
.article-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.author-card {
    background: #f7fafc;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
}

.author-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid #667eea;
}

.author-info h4 {
    font-size: 18px;
    color: #2d3748;
    margin-bottom: 8px;
}

.author-info p {
    font-size: 13px;
    color: #718096;
    margin-bottom: 15px;
}

.author-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e2e8f0;
}

.stat-item {
    text-align: center;
}

.stat-num {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: #667eea;
}

.stat-label {
    font-size: 12px;
    color: #718096;
}

.follow-btn {
    width: 100%;
    padding: 10px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.follow-btn:hover {
    transform: scale(1.05);
}

.toc-card,
.hot-articles-card,
.ad-card {
    background: #f7fafc;
    padding: 20px;
    border-radius: 12px;
}

.toc-card h3,
.hot-articles-card h3 {
    font-size: 16px;
    margin-bottom: 15px;
    color: #2d3748;
}

.toc-list {
    list-style: none;
    padding: 0;
}

.toc-list li {
    margin-bottom: 10px;
}

.toc-list a {
    display: block;
    padding: 8px 12px;
    color: #4a5568;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s;
}

.toc-list a:hover,
.toc-list a.active {
    background: #667eea;
    color: #fff;
}

.hot-articles-card .hot-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hot-article-item {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    padding: 10px;
    border-radius: 8px;
    transition: all 0.3s;
}

.hot-article-item:hover {
    background: #edf2f7;
    transform: translateX(5px);
}

.hot-rank {
    width: 24px;
    height: 24px;
    background: #667eea;
    color: #fff;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

.hot-title {
    flex: 1;
    font-size: 14px;
    color: #2d3748;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hot-views {
    font-size: 12px;
    color: #718096;
}

.ad-card {
    text-align: center;
    padding: 40px 20px;
    border: 2px dashed #cbd5e0;
}

.ad-content p {
    color: #718096;
    margin: 5px 0;
}

/* 响应式 */
@media (max-width: 1024px) {
    .article-container .container {
        grid-template-columns: 1fr;
    }

    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .article-title {
        font-size: 24px;
    }
  .article-content img {max-width: 96%!important; height: auto!important;}
.article-content img{vertical-align:middle;max-width:335px;
height: expression(this.width >335 ? (335*(this.height/this.width)): true);
width: expression(this.width >335 ? 335: true);}
    .article-meta {
        flex-direction: column;
        gap: 10px;
    }

    .chart-bars {
        height: 150px;
    }

    .bar-label,
    .bar-value {
        font-size: 10px;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .comment-input-box {
        flex-direction: column;
    }

    .comments-list {
        gap: 15px;
    }
}
