/* ====== 文章页面独享CSS部分 ====== */
.article-hero {
    position: relative;
    height: 60vh;
    min-height: 900px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.9) 0%, rgba(0, 160, 233, 0.85) 100%), url('/template/giaxi/images/9.jpg') center/cover no-repeat;
    overflow: hidden;
    color: white;
    margin-top: 100px;
      padding-top: 300px;
}

.article-hero-content {
    max-width: 900px;
    position: relative;
    z-index: 2;
}

.article-hero h1 {
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 20px;
    text-align: left;
}

.article-hero p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.4rem;
    margin-bottom: 40px;
    max-width: 800px;
}

.article-meta-hero {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
}

.article-meta-hero span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.article-tags-hero {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.article-tag-hero {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: var(--transition);
}

.article-tag-hero:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
}

/* 文章内容区域 */
.article-content-section {
    background: white;
    position: relative;
    padding-top: 80px;
}

.article-content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

/* 文章主体样式 - 占据横向所有位置 */
.article-body {
    width: 100%;
    background: white;
    border-radius: var(--border-radius);
    padding: 60px;
    box-shadow: var(--box-shadow);
    border: 1px solid rgba(0, 102, 204, 0.1);
    margin-bottom: 60px;
}

/* 文章内容中的标题和段落样式 */
.article-body h2 {
    text-align: left;
    margin: 50px 0 30px;
    font-size: 2.5rem;
    color: var(--dark-color);
    position: relative;
}

.article-body h2:after {
    left: 0;
    transform: none;
    width: 80px;
}

.article-body h3 {
    margin: 40px 0 20px;
    font-size: 1.8rem;
    color: var(--dark-color);
    position: relative;
    padding-left: 20px;
}

.article-body h3:before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 30px;
    background: var(--gradient-primary);
    border-radius: 3px;
}

.article-body h4 {
    margin: 30px 0 15px;
    font-size: 1.5rem;
    color: var(--dark-color);
}

.article-body h5 {
    margin: 25px 0 10px;
    font-size: 1.2rem;
    color: var(--dark-color);
    font-weight: 600;
}

.article-body p {
    margin-bottom: 25px;
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--gray-color);
}

/* 图片自适应样式 */
.article-body img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 40px auto;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 102, 204, 0.1);
}

/* 图片说明 */
.article-body figure {
    margin: 40px 0;
    text-align: center;
}

.article-body figcaption {
    margin-top: 10px;
    font-style: italic;
    color: var(--gray-color);
    font-size: 1rem;
}

/* 列表样式 */
.article-body ul, .article-body ol {
    margin: 25px 0 25px 40px;
    color: var(--gray-color);
}

.article-body li {
    margin-bottom: 10px;
    font-size: 1.15rem;
    line-height: 1.6;
}

/* 引用块 */
.article-body blockquote {
    border-left: 5px solid var(--primary-color);
    padding: 25px 40px;
    margin: 40px 0;
    background: rgba(0, 102, 204, 0.05);
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    font-style: italic;
    color: var(--dark-color);
    font-size: 1.2rem;
    line-height: 1.8;
}

/* 表格样式 */
.article-body table {
    width: 100%;
    margin: 40px 0;
    border-collapse: collapse;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.article-body th {
    background: var(--gradient-primary);
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

.article-body td {
    padding: 15px;
    border-bottom: 1px solid rgba(0, 102, 204, 0.1);
    color: var(--gray-color);
}

.article-body tr:nth-child(even) {
    background: rgba(0, 102, 204, 0.03);
}

/* 导航按钮（上一篇/下一篇） */
.article-navigation {
    display: flex;
    justify-content: space-between;
    margin: 80px 0 60px;
    padding-top: 60px;
    border-top: 1px solid rgba(0, 102, 204, 0.1);
}

.nav-prev, .nav-next {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 30px;
    border-radius: var(--border-radius);
    background: white;
    box-shadow: var(--box-shadow);
    border: 1px solid rgba(0, 102, 204, 0.1);
    transition: var(--transition);
}

.nav-prev:hover, .nav-next:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(0, 102, 204, 0.15);
    border-color: rgba(0, 102, 204, 0.2);
}

.nav-prev {
    text-align: left;
    margin-right: 15px;
}

.nav-next {
    text-align: right;
    margin-left: 15px;
}

.nav-label {
    display: block;
    color: var(--gray-color);
    font-size: 0.9rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.nav-title {
    color: var(--dark-color);
    font-weight: 700;
    font-size: 1.2rem;
    line-height: 1.4;
}

.nav-icon {
    font-size: 2rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

/* 相关文章 */
.related-articles {
    margin-top: 100px;
}

.related-articles h2 {
    text-align: center;
    margin-bottom: 50px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
}

.related-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border: 1px solid rgba(0, 102, 204, 0.1);
}

.related-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 30px 60px rgba(0, 102, 204, 0.12);
    border-color: rgba(0, 102, 204, 0.2);
}

.related-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s cubic-bezier(0.19, 1, 0.22, 1);
}

.related-card:hover .related-image img {
    transform: scale(1.1);
}

.related-content {
    padding: 30px;
}

.related-content h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.related-content h3 a {
    text-decoration: none;
    color: inherit;
}

.related-content h3 a:hover {
    color: var(--primary-color);
}

.related-meta {
    display: flex;
    justify-content: space-between;
    color: var(--gray-color);
    font-size: 0.9rem;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 102, 204, 0.05);
}

/* 分享按钮 */
.article-share {
    margin: 40px 0;
    padding: 30px;
    background: rgba(0, 102, 204, 0.05);
    border-radius: var(--border-radius);
    border: 1px solid rgba(0, 102, 204, 0.1);
}

.share-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 20px;
}

.share-buttons {
    display: flex;
    gap: 15px;
}

.share-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    color: var(--dark-color);
    font-size: 1.2rem;
    transition: var(--transition);
    border: 1px solid rgba(0, 102, 204, 0.1);
}

.share-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 102, 204, 0.1);
}

.share-button.facebook:hover {
    background: #3b5998;
    color: white;
    border-color: #3b5998;
}

.share-button.twitter:hover {
    background: #1da1f2;
    color: white;
    border-color: #1da1f2;
}

.share-button.linkedin:hover {
    background: #0077b5;
    color: white;
    border-color: #0077b5;
}

.share-button.telegram:hover {
    background: #0088cc;
    color: white;
    border-color: #0088cc;
}

.share-button.whatsapp:hover {
    background: #25D366;
    color: white;
    border-color: #25D366;
}

/* 响应式调整 - 文章页面 */
@media (max-width: 1200px) {
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .article-hero {
        height: auto;
        min-height: auto;
        padding: 150px 0 100px;
        margin-top: 100px;
    }
    
    .article-navigation {
        flex-direction: column;
        gap: 30px;
    }
    
    .nav-prev, .nav-next {
        margin: 0;
    }
}

@media (max-width: 768px) {
    .article-body {
        padding: 30px;
    }
    
    .article-body h2 {
        font-size: 2rem;
    }
    
    .article-body h3 {
        font-size: 1.5rem;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .share-buttons {
        flex-wrap: wrap;
    }
}