/**
 * 小部件之家 - 自定义样式
 */

/* 服务卡片布局 */
.service-card {
    display: flex;
    align-items: flex-start;
    box-sizing: border-box;
}

.service-card-image {
    flex-shrink: 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.service-card-image img {
    display: block;
    max-width: 100%;
    height: auto;
}

.service-card-content {
    flex: 1;
    min-width: 0;
}

.service-card-title {
    margin: 0;
    line-height: 1.4;
}

.service-card-description {
    margin: 0;
    line-height: 1.6;
}

.service-card-tags {
    display: flex;
    flex-wrap: wrap;
}

.service-card-tag {
    display: inline-block;
    border-style: solid;
    white-space: nowrap;
}

/* 渐变标题 */
.gradient-heading-wrapper {
    display: block;
}

.gradient-heading {
    margin: 0;
    display: inline-block;
}

/* 服务卡片列表 */
.service-cards-wrapper {
    width: 100%;
}

.service-cards-grid {
    display: grid;
}

.service-card-item {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    transition: border-color 0.3s ease, border-width 0.3s ease, transform 0.3s ease;
    box-sizing: border-box;
}

.service-card-item:hover {
    transform: translateY(-5px);
}

.service-card-item .card-image {
    flex-shrink: 0;
    margin-right: 16px;
}

.service-card-item .card-image img {
    display: block;
    height: auto;
}

.service-card-item .card-content {
    flex: 1;
    min-width: 0;
}

.service-card-item .card-title {
    margin: 0 0 8px 0;
    font-weight: 600;
}

.service-card-item .card-description {
    margin: 0 0 12px 0;
    line-height: 1.6;
}

.service-card-item .card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.service-card-item .card-tag {
    display: inline-block;
    border: 1px solid;
    font-size: 12px;
}

/* 详情区域 */
.service-detail-area {
    display: flex;
    align-items: stretch;
    border: 1px solid #1e3a5f;
    overflow: hidden;
    padding: 30px;
    gap: 20px;
}

.service-detail-area .detail-content {
    width: calc(50% - 10px);
    flex-shrink: 0;
    box-sizing: border-box;
}

@media (max-width: 767px) {
    .service-detail-area {
        flex-direction: column;
        padding: 0;
        gap: 0;
        border-radius: 8px;
        overflow: hidden;
    }
    
    .service-detail-area .detail-content {
        width: 100% !important;
        flex-shrink: 0;
        padding: 20px;
        box-sizing: border-box;
    }
    
    .service-detail-area .detail-image {
        width: 100% !important;
        flex: none !important;
        min-height: 150px;
        padding: 20px;
        border-radius: 8px !important;
        margin: 0 !important;
    }
    
    .service-detail-area .detail-image img {
        max-width: 80%;
        height: auto;
    }
}

.service-detail-area .detail-title {
    margin: 0 0 12px 0;
    font-size: 24px;
    font-weight: 600;
}

.service-detail-area .detail-description {
    margin: 0 0 20px 0;
    line-height: 1.6;
}

.service-detail-area .detail-tags {
    list-style: none;
    margin: 0;
    padding: 0;
}

.service-detail-area .detail-tag-item {
    position: relative;
    padding-left: 16px;
    margin-bottom: 8px;
    line-height: 1.6;
}

.service-detail-area .detail-tag-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.service-detail-area .detail-image {
    width: calc(50% - 10px);
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    box-sizing: border-box;
    border-radius: 8px;
    padding: 30px;
}

.service-detail-area .detail-image img {
    max-width: 100%;
    max-height: 100%;
    height: auto;
    object-fit: contain;
}

/* 功能卡片样式 */
.feature-card {
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.feature-card-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.feature-card-icon svg {
    fill: none;
}

.feature-card-content {
    flex: 1;
    min-width: 0;
}

.feature-card-title {
    margin: 0;
    font-weight: 600;
    line-height: 1;
}

.feature-card-content:only-child .feature-card-title:only-child,
.feature-card-title:last-child {
    margin-bottom: 0;
}

.feature-card-description {
    margin: 0;
    line-height: 1.6;
}

/* 案例卡片样式 */
.case-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

@media (max-width: 767px) {
    .case-cards-grid {
        grid-template-columns: 1fr;
    }
}

.case-card {
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.case-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.case-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.case-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 500;
}

.case-image {
    overflow: hidden;
    margin-bottom: 15px;
}

.case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.case-title {
    margin: 0 0 8px 0;
    font-weight: 600;
}

.case-subtitle {
    margin: 0 0 15px 0;
    line-height: 1.5;
}

.case-fields {
    margin-bottom: 15px;
}

.case-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: rgba(255, 255, 255, 0.05);
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.case-field-label {
    font-size: 12px;
    color: #22d3ee;
    font-weight: 500;
}

.case-field-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.case-field-value {
    font-size: 28px;
    font-weight: 700;
    color: #f59e0b;
}

.case-field-highlight {
    font-size: 16px;
    font-weight: 600;
    color: #f59e0b;
}

.case-quote {
    margin: 0 0 15px 0;
    font-size: 13px;
    line-height: 1.6;
    font-style: italic;
}

.case-divider {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.1);
    margin-bottom: 15px;
}

.case-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.case-person {
    display: flex;
    flex-direction: column;
}

.case-person-name {
    font-weight: 600;
    font-size: 14px;
}

.case-person-title {
    font-size: 12px;
}

.case-button {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.case-button i,
.case-button svg {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* 流程步骤样式 */
.process-steps-grid {
    display: flex;
    align-items: stretch;
}

.process-step-item {
    display: flex;
    align-items: center;
    flex: 1;
}

.process-step-card {
    flex: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.process-step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 600;
}

.process-step-title {
    margin: 0;
    font-weight: 600;
}

.process-step-description {
    margin: 0;
    line-height: 1.5;
}

.process-step-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0 10px;
}

.process-step-arrow svg {
    width: 1em;
    height: 1em;
}

.process-step-arrow i,
.process-step-arrow svg {
    transition: color 0.3s ease;
}

@media (max-width: 767px) {
    .process-steps-grid {
        flex-direction: column;
        gap: 20px;
    }

    .process-step-item {
        width: 100%;
    }

    .process-step-card {
        width: 100%;
    }

    .process-step-arrow {
        display: none;
    }
}

/* 手风琴样式 */
.custom-accordion {
    width: 100%;
}

.accordion-item {
    border-style: solid;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    overflow: hidden;
}

.accordion-item:last-child {
    margin-bottom: 0 !important;
}

.accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
}

.accordion-title {
    flex: 1;
    font-weight: 600;
}

.accordion-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-body {
    overflow: hidden;
}

.accordion-divider {
    width: auto;
}

.accordion-content {
    line-height: 1.6;
}

.accordion-content p {
    margin: 0;
}

/* 文章列表样式 */
.posts-widget {
    width: 100%;
}

.posts-search-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
}

.posts-search-box {
    position: relative;
    display: inline-flex;
    align-items: center;
    max-width: 600px;
    width: 100%;
}

.posts-search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.5);
    pointer-events: none;
    z-index: 1;
}

.posts-search-input {
    width: 100% !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding-left: 50px !important;
    padding-right: 20px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.posts-search-input:focus {
    border-color: #0891b2;
}

.posts-divider {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.1);
    margin-top: 30px;
    margin-bottom: 30px;
}

.posts-main {
    display: flex;
    gap: 40px;
}

.posts-sidebar {
    width: 25%;
    flex-shrink: 0;
    position: sticky;
    top: 100px;
    align-self: flex-start;
}

.posts-sidebar-title {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
}

.posts-categories {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 30px;
}

.posts-category-item {
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.posts-category-item:hover {
    border-color: #0891b2;
}

.posts-category-item.active {
    background-color: #0891b2;
    border-color: #0891b2;
}

.posts-stats {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 8px;
}

.posts-stats-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
}

.posts-stats-label {
    color: #94a3b8;
}

.posts-stats-value {
    color: #0891b2;
    font-weight: 600;
}

.posts-content {
    flex: 1;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    transition: opacity 0.3s ease;
}

.posts-card {
    background: #1e293b;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    cursor: pointer;
}

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

.posts-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.posts-card:hover .posts-card-image img {
    transform: scale(1.05);
}

.posts-card-tag {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #0891b2;
    color: #ffffff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
}

.posts-card-body {
    padding: 20px;
}

.posts-card-title {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 600;
}

.posts-card-title a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.posts-card-title a::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.posts-card-title a:hover {
    color: #0891b2;
}

.posts-card-desc {
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.posts-card-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 0;
}

.posts-card-divider {
    width: 100%;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.1);
    margin: 15px 0;
}

.posts-card {
    border: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.posts-custom-tag {
    background: transparent;
    color: #0891b2;
    padding: 0;
    font-size: 12px;
}

.posts-tag-count {
    color: #0891b2;
    font-size: 12px;
    display: flex;
    align-items: center;
}

.posts-card-meta {
    display: flex;
    gap: 16px;
    color: #64748b;
    font-size: 13px;
    margin-bottom: 15px;
}

.posts-card-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.posts-card-meta svg {
    flex-shrink: 0;
}

.posts-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.posts-author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.posts-author-info {
    display: flex;
    flex-direction: column;
}

.posts-author-name {
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
}

.posts-author-title {
    color: #94a3b8;
    font-size: 12px;
}

@media (max-width: 991px) {
    .posts-main {
        flex-direction: column;
    }

    .posts-sidebar {
        width: 100%;
        position: relative;
        top: 0;
    }

    .posts-categories {
        flex-direction: column;
    }

    .posts-category-item {
        width: 100%;
    }

    .posts-search-box {
        max-width: 100% !important;
    }
}

@media (max-width: 767px) {
    .posts-grid {
        grid-template-columns: 1fr;
    }

    .posts-search-box {
        max-width: 100% !important;
    }

    .posts-categories {
        flex-direction: column;
    }

    .posts-category-item {
        width: 100%;
    }
}

/* 筛选案例小部件样式 */
.filter-cases-widget {
    width: 100%;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.filter-count {
    font-size: 14px;
    color: #94a3b8;
}

.filter-count .count-number {
    color: #0891b2;
    font-weight: 600;
}

.filter-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background-color: #1e293b;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.filter-toggle-btn svg {
    stroke: currentColor;
}

.filter-toggle-btn:hover {
    border-color: #0891b2;
}

.filter-panel {
    background-color: #0f172a;
    border-radius: 12px;
    margin-bottom: 30px;
}

.filter-groups {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.filter-group-title {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 15px;
}

.filter-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-item {
    padding: 12px 16px;
    background-color: #1e293b;
    color: #94a3b8;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.filter-item:hover {
    border-color: #0891b2;
}

.filter-item.active {
    background-color: #0891b2;
    color: #ffffff;
    border-color: #0891b2;
}

.filter-cases-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.no-cases {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: #94a3b8;
}

.filter-cases-widget .case-button svg {
    fill: currentColor;
}

.filter-cases-widget .case-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

@media (max-width: 991px) {
    .filter-groups {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .filter-cases-grid {
        grid-template-columns: 1fr;
    }

    .filter-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
}

/* 文章分类标签小部件样式 */
.post-tags-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.post-tags-wrapper.post-tags-block {
    flex-direction: column;
    align-items: flex-start;
}

.post-tag {
    display: inline-block;
    text-decoration: none;
    transition: all 0.3s ease;
}

.post-tag:hover {
    opacity: 0.85;
}

.post-tag-featured {
    background-color: #f97316;
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 20px;
}

.post-tag-category {
    background-color: transparent;
    color: #0891b2;
    border: 1px solid #0891b2;
    padding: 8px 16px;
    border-radius: 20px;
}

.post-tag-tag {
    background-color: #1e293b;
    color: #94a3b8;
}

/* 人物信息小部件样式 */
.author-info-container {
    display: flex;
    align-items: center;
}

.author-avatar {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 12px;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info {
    flex: 1;
}

.author-name {
    color: #ffffff;
    font-weight: 500;
    line-height: 1.4;
}

.author-title {
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.4;
}

/* 目录小部件样式 */
.toc-container {
    background-color: #0f172a;
    border: 1px solid #1e293b;
    border-radius: 8px;
    padding: 24px;
}

.toc-title {
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
}

.toc-list {
    display: flex;
    flex-direction: column;
}

.toc-h3 {
    color: #06b6d4;
    font-size: 16px;
    margin: 12px 0;
    text-decoration: none;
    display: block;
}

.toc-h4 {
    color: #06b6d4;
    font-size: 16px;
    margin: 8px 0;
    text-decoration: none;
    display: block;
}

.toc-hash {
    color: #06b6d4;
}

/* 相关文章小部件样式 */
.related-posts-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.related-post-card {
    display: block;
    background-color: #0f172a;
    border: 1px solid #334155;
    border-radius: 8px;
    padding: 16px 20px;
    text-decoration: none;
    transition: border-color 0.3s ease;
}

.related-post-card:hover {
    border-color: #06b6d4;
}

.related-post-title {
    color: #ffffff;
    font-size: 16px;
    line-height: 1.5;
    transition: color 0.3s ease;
}

.related-post-card:hover .related-post-title {
    color: #06b6d4;
}

.related-post-date {
    color: #64748b;
    font-size: 14px;
    margin-top: 8px;
}

/* 文章标签小部件样式 */
.custom-tags-container {
    display: block;
}

.custom-tags-title {
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
}

.custom-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.custom-tag-item {
    display: inline-block;
    background-color: #1e293b;
    color: #94a3b8;
    border: 1px solid #334155;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 14px;
}

/* 案例分类小部件样式 */
.case-categories-container {
    background-color: #1e293b;
    padding: 12px 24px;
    text-align: center;
}

.case-category-item {
    color: #94a3b8;
    font-size: 14px;
}

.case-category-separator {
    color: #64748b;
    margin: 0 12px;
    display: inline-flex;
    align-items: center;
}

.case-category-separator svg {
    width: 6px;
    height: 6px;
    fill: currentColor;
}

/* 案例信息小部件样式 */
.case-info-container {
    background-color: #0f172a;
    padding: 20px 24px;
}

.case-info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.case-info-item {
    background-color: #1e293b;
    border: 1px solid #334155;
    border-radius: 8px;
    padding: 16px 20px;
}

.case-info-label {
    color: #64748b;
    font-size: 12px;
    margin-bottom: 8px;
}

.case-info-value {
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
}

@media (max-width: 768px) {
    .case-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .case-info-grid {
        grid-template-columns: 1fr;
    }
}

/* 数据卡片小部件样式 */
.data-card {
    background-color: #1e293b;
    border: 1px solid #334155;
    border-radius: 8px;
    padding: 20px 24px;
    transition: border-color 0.3s ease;
}

.data-card:hover {
    border-color: #06b6d4;
}

.data-card-title {
    color: #94a3b8;
    font-size: 14px;
    margin-bottom: 16px;
}

.data-values-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.data-value-col {
    flex-shrink: 0;
}

.data-value-col-right {
    text-align: right;
}

.data-label {
    color: #64748b;
    font-size: 12px;
    margin-bottom: 4px;
}

.data-progress-wrapper {
    flex: 1;
    height: 10px;
    display: flex;
    align-items: center;
}

.data-progress-svg {
    width: 100%;
    height: 10px;
}

.data-before-value,
.data-after-value {
    color: #ffffff;
    font-size: 24px;
    font-weight: 600;
}

.data-growth {
    display: inline-block;
    color: #06b6d4;
    border: 1px solid #06b6d4;
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 12px;
    margin-top: 16px;
}

/* 相关案例小部件样式 */
.related-cases-container {
    display: block;
}

.related-cases-title {
    color: #ffffff;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 24px;
}

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

.related-case-card {
    background-color: #1e293b;
    border: 1px solid #334155;
    border-radius: 8px;
    padding: 16px;
    transition: border-color 0.3s ease;
}

.related-case-card:hover {
    border-color: #06b6d4;
}

.related-case-image-wrapper {
    overflow: hidden;
    border-radius: 8px;
}

.related-case-image {
    height: 180px;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.related-case-card:hover .related-case-image {
    transform: scale(1.05);
}

.related-case-card-title {
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    margin-top: 16px;
    margin-bottom: 0;
}

.related-case-subtitle {
    color: #94a3b8;
    font-size: 14px;
    margin-top: 8px;
}

.related-case-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #f97316;
    font-size: 14px;
    margin-top: 16px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-case-button:hover {
    color: #fb923c;
}

.related-case-button .button-icon {
    display: inline-flex;
    align-items: center;
}

.related-case-button .button-icon svg,
.related-case-button .button-icon i {
    width: 16px;
    height: 16px;
    font-size: 16px;
}

@media (max-width: 992px) {
    .related-cases-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .related-cases-grid {
        grid-template-columns: 1fr;
    }
}

/* 案例翻页小部件样式 */
.case-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.case-nav-item {
    flex: 1;
}

.case-nav-left {
    text-align: left;
}

.case-nav-center {
    text-align: center;
    flex: 0 0 auto;
}

.case-nav-right {
    text-align: right;
}

.case-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.case-nav-prev {
    color: #f59e0b;
    background-color: transparent;
    border: 1px solid #f59e0b;
    border-radius: 25px;
    padding: 10px 24px;
}

.case-nav-prev:hover {
    color: #ffffff;
    background-color: #f59e0b;
}

.case-nav-back {
    color: #94a3b8;
    background-color: #334155;
    border: 1px solid #334155;
    border-radius: 6px;
    padding: 10px 24px;
}

.case-nav-back:hover {
    color: #ffffff;
    background-color: #475569;
    border-color: #475569;
}

.case-nav-next {
    color: #ffffff;
    background-color: #f59e0b;
    border: 1px solid #f59e0b;
    border-radius: 25px;
    padding: 10px 24px;
}

.case-nav-next:hover {
    background-color: #d97706;
    border-color: #d97706;
}

.case-nav-btn .nav-icon {
    display: inline-flex;
    align-items: center;
}

.case-nav-btn .nav-icon i,
.case-nav-btn .nav-icon svg {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

@media (max-width: 768px) {
    .case-navigation {
        flex-direction: row;
        gap: 6px;
    }
    
    .case-nav-btn {
        padding: 6px 10px;
        font-size: 11px;
        gap: 4px;
    }
    
    .case-nav-back {
        font-size: 11px;
        padding: 6px 10px;
    }
    
    .case-nav-btn .nav-icon i,
    .case-nav-btn .nav-icon svg {
        font-size: 10px;
        width: 10px;
        height: 10px;
    }
}
