/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft Yahei", Arial, sans-serif;
}

body {
    background-color: #f8f9fa;
    color: #333;
}

a {
    text-decoration: none;
    color: inherit;
}

/* 攻略头部横幅 */
.guide-header {
    height: 300px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}
.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}
.header-content {
    position: relative;
    z-index: 2;
}
.guide-header__title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 10px;
}
.guide-header__desc {
    font-size: 20px;
    opacity: 0.9;
}

/* 攻略容器 */
.guide-container {
    width: 1440px;
    max-width: 95%;
    margin: 0 auto;
    padding: 20px 0 60px;
}

/* 搜索框样式 */
.guide-search {
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
}

.guide-search__input {
    position: relative;
    width: 500px;
}

.guide-search__input input {
    width: 100%;
    height: 60px;
    padding: 0 60px 0 30px;
    border-radius: 30px;
    border: none;
    background: #fff;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.guide-search__input input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(204, 0, 21, 0.2), 0 15px 35px rgba(0, 0, 0, 0.1);
}

.guide-search__input .search-icon {
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    opacity: 0.6;
    transition: all 0.3s ease;
    cursor: pointer;
}

.guide-search__input .search-icon:hover {
    opacity: 1;
}

/* 攻略列表样式 */
.guide-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    padding: 20px;
}

/* 攻略卡片样式 */
.guide-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    aspect-ratio: 3/3;
    display: flex;
    flex-direction: column;
}

.guide-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.guide-card:hover .guide-card__img-wrap img {
    transform: scale(1.05);
}

.guide-card:hover .guide-card__title {
    color: #cc0015;
}

.guide-card__img-wrap {
    position: relative;
    flex: 1;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
}

.guide-card__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.guide-card__content {
    padding: 12px 16px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60px;
}

.guide-card__title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    text-align: center;
    line-height: 1.4;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}

/* 响应式适配 */
@media (min-width: 1200px) {
    .guide-list {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media (max-width: 1200px) {
    .guide-list {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .guide-header__title {
        font-size: 36px;
    }

    .guide-search__input {
        width: 90%;
    }

    .guide-list {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 12px;
        padding: 16px;
    }

    .guide-card__title {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .guide-list {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        padding: 12px;
    }

    .guide-card__title {
        font-size: 12px;
    }
}