/* 攻略分类页面专属样式 */
.strategy-banner {
    background: url("../images/askobanner.webp") no-repeat center center;
    background-size: cover;
    height: 500px;
}

.strategy-nav {
    background-color: var(--white);
    padding: 20px 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 70px; 
    z-index: 998;
}

.nav-list {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.nav-item {
    text-decoration: none;
    color: var(--text-color);
    font-size: 16px;
    padding: 8px 15px;
    border-radius: 4px;
    transition: all 0.3s;
}

.nav-item.active, .nav-item:hover {
    background-color: var(--accent-color);
    color: var(--white) !important;
}

.strategy-section {
    padding: 60px 0;
    background-color: var(--white);
    border-bottom: 1px solid #eee;
}

.strategy-card-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.strategy-card {
    display: flex;
    gap: 20px;
    background-color: var(--secondary-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

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

.strategy-card img {
    width: 200px;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
}

.card-content {
    padding: 20px;
    flex: 1;
}

.card-content h4 {
    color: var(--primary-color);
    font-size: 18px;
    margin-bottom: 15px;
}

.card-content p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 20px;
}

.card-footer {
    display: flex;
    gap: 15px;
    align-items: center;
}

.detail-btn {
    text-decoration: none;
    color: var(--primary-color);
    font-size: 14px;
    padding: 8px 15px;
    border: 1px solid var(--primary-color);
    border-radius: 4px;
    transition: all 0.3s;
}

.detail-btn:hover {
    background-color: var(--primary-color);
    color: var(--white) !important;
}

@media (max-width: 768px) {
    .strategy-card-list {
        grid-template-columns: 1fr;
    }

    .strategy-card {
        flex-direction: column;
    }

    .strategy-card img {
        width: 100%;
        height: 200px;
    }

    .nav-list {
        gap: 10px;
    }

    .strategy-banner h2 {
        font-size: 28px;
    }
}

/* 攻略详情页样式   */
.detail-banner {
    background-color: var(--secondary-color);
    padding: 30px 0;
    border-bottom: 1px solid #eee;
}

.breadcrumb {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 15px;
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--accent-color);
}

.detail-banner h2 {
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.detail-meta {
    font-size: 14px;
    color: var(--text-light);
}
.detail-layout {
    padding: 40px 0;
    background-color: var(--white);
}

.detail-layout .container {
    display: flex;
    gap: 30px;
}

.detail-cover {
    margin-bottom: 30px;
}

.detail-cover img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.detail-left {
    flex: 7;
}

.detail-content {
    max-width: 800px;
    margin: 0 auto 40px;
    font-size: 16px;
    color: var(--text-color);
    line-height: 2; 
}

.detail-content h3 {
    color: var(--primary-color);
    font-size: 20px;
    margin: 30px 0 15px;
    padding-bottom: 5px;
    border-bottom: 1px solid #eee;
}

.detail-content p {
    margin-bottom: 20px;
    text-align: justify;
}

.detail-btn-box {
    max-width: 800px;
    margin: 0 auto 50px;
    text-align: center;
}

.big-btn {
    padding: 12px 30px;
    font-size: 18px;
}

.related-strategy {
    max-width: 800px;
    margin: 0 auto;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.related-title {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

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

.related-item {
    display: flex;
    gap: 15px;
    background-color: var(--secondary-color);
    padding: 15px;
    border-radius: 8px;
}

.related-item img {
    width: 100px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.related-item a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 14px;
    line-height: 1.5;
    align-self: center;
}

.related-item a:hover {
    color: var(--accent-color);
}

.detail-right {
    flex: 3;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-module {
    background-color: var(--secondary-color);
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.sidebar-title {
    font-size: 16px;
    color: var(--primary-color);
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--accent-color);
}

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

.article-tag a {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 13px;
    text-decoration: none;
}

.hot-tag a {
    background-color: #fff;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.3s;
}

.hot-tag a:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.interest-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.interest-item {
    display: flex;
    gap: 10px;
    text-decoration: none;
    color: var(--text-color);
    transition: transform 0.3s;
}

.interest-item:hover {
    transform: translateX(5px);
    color: var(--accent-color);
}

.interest-item img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.interest-item span {
    font-size: 13px;
    line-height: 1.5;
    align-self: center;
}

.new-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.new-item {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--text-color);
    padding-bottom: 12px;
    border-bottom: 1px dashed #ddd;
}

.new-item:last-child {
    border-bottom: none;
}

.new-date {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 5px;
}

.new-item span:last-child {
    font-size: 13px;
    line-height: 1.4;
}

.new-item:hover span:last-child {
    color: var(--accent-color);
}

.consult-mini {
    text-align: center;
}

.consult-mini img {
    width: 100px;
    height: 100px;
    margin-bottom: 10px;
}

.consult-mini p {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 15px;
}

.mini-btn {
    padding: 6px 15px;
    font-size: 13px;
}

.module-title {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.related-item {
    display: flex;
    gap: 15px;
    background-color: var(--secondary-color);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.related-item img {
    width: 120px;
    height: 90px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.related-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.related-text a {
    text-decoration: none;
    color: var(--primary-color);
    font-size: 15px;
    margin-bottom: 5px;
}

.related-text a:hover {
    color: var(--accent-color);
}

.related-text p {
    font-size: 12px;
    color: var(--text-light);
}

@media (max-width: 768px) {
    .detail-layout .container {
        flex-direction: column;
    }

    .detail-right {
        order: 2; 
    }

    .related-item {
        flex-direction: column;
    }

    .related-item img {
        width: 100%;
        height: 180px;
    }
}