/* 定制攻略 — 首页与列表页共用 */

.guide-section {
    background: var(--dp-gray, #f9f8f6);
    padding-top: 3rem;
    padding-bottom: 3.25rem;
}
.guide-section-head {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(0.85rem, 3vw, 1.5rem);
    margin-bottom: 2.25rem;
}
.guide-section-title {
    margin: 0;
    font-family: var(--dp-font-display);
    font-size: clamp(1.25rem, 3.2vw, 1.625rem);
    font-weight: 700;
    color: var(--dp-primary-dark, #111a24);
    letter-spacing: 0.06em;
    white-space: nowrap;
}
.guide-head-deco {
    position: relative;
    width: 32px;
    height: 18px;
    flex-shrink: 0;
}
.guide-head-deco::before,
.guide-head-deco::after {
    content: '';
    position: absolute;
    left: 0;
    width: 26px;
    height: 3px;
    border-radius: 2px;
    background: var(--dp-highlight, #c9a962);
}
.guide-head-deco::before {
    top: 1px;
    transform: rotate(-28deg);
    transform-origin: left center;
}
.guide-head-deco::after {
    bottom: 1px;
    transform: rotate(-28deg);
    transform-origin: left center;
}
.guide-head-deco--right {
    transform: scaleX(-1);
}
.guide-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 320px;
    padding: 1.5rem 1.35rem 1.25rem;
    background: #fff;
    border-radius: 10px;
    border: 1px solid var(--dp-line, rgba(28, 43, 58, 0.08));
    box-shadow: 0 4px 18px rgba(15, 45, 90, 0.07);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.guide-card:hover {
    transform: translateY(-3px);
    border-color: rgba(201, 169, 98, 0.35);
    box-shadow: 0 10px 28px rgba(21, 31, 42, 0.08);
}
.guide-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.85rem;
    color: #2c3e50;
    font-size: 2.75rem;
    line-height: 1;
    transition: color 0.25s ease, transform 0.25s ease;
}
.guide-card:hover .guide-card-icon {
    color: var(--dp-primary);
    transform: scale(1.05);
}
.guide-card:hover .guide-card-title {
    color: var(--dp-primary-dark, #1e293b);
}
.guide-card-title {
    margin: 0 0 0.75rem;
    font-size: 1.0625rem;
    font-weight: 700;
    color: #1e293b;
    text-align: center;
    line-height: 1.4;
    transition: color 0.25s ease;
}
.guide-card-divider {
    height: 1px;
    margin-bottom: 0.85rem;
    background: linear-gradient(90deg, transparent, #dce4ec 12%, #dce4ec 88%, transparent);
    transition: background 0.25s ease;
}
.guide-card:hover .guide-card-divider {
    background: linear-gradient(90deg, transparent, rgba(201, 169, 98, 0.45) 12%, rgba(201, 169, 98, 0.45) 88%, transparent);
}
.guide-card-links {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
    flex: 1;
}
.guide-card-links li {
    margin-bottom: 0.45rem;
}
.guide-card-links li:last-child {
    margin-bottom: 0;
}
.guide-card-links a {
    display: block;
    color: #4a5568;
    text-decoration: none;
    font-size: 0.875rem;
    line-height: 1.45;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s ease, transform 0.2s ease;
}
.guide-card-links a:hover {
    color: var(--dp-primary);
    transform: translateX(3px);
}
.guide-card-empty {
    font-size: 0.875rem;
    color: #94a3b8;
}
.guide-card-more {
    align-self: flex-end;
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--dp-primary);
    text-decoration: none;
    transition: gap 0.2s ease, color 0.2s ease;
}
.guide-card-more i {
    font-size: 0.65rem;
}
.guide-card-more:hover {
    color: #6b5735;
    gap: 0.4rem;
}

/* 列表页 — 图文卡片网格 */
.page-guide-list .product-filter-panel-wrap,
.page-guide-article .guide-article-subnav-wrap {
    margin-top: 0.25rem;
    padding-bottom: 0.75rem;
}

.guide-category-nav__chips .product-filter-chip__icon {
    font-size: 0.95rem;
    line-height: 1;
    opacity: 0.72;
    transition: opacity 0.18s ease, color 0.18s ease;
}

.guide-category-nav__chips .product-filter-chip.is-active .product-filter-chip__icon,
.guide-category-nav__chips .product-filter-chip:hover .product-filter-chip__icon {
    opacity: 1;
}

.guide-category-nav__chips .product-filter-chip.is-active .product-filter-chip__icon {
    color: #6b5735;
}

.page-guide-list .guide-list-body {
    padding-top: 1.25rem;
    padding-bottom: 2.75rem;
}

@media (min-width: 768px) {
    .page-guide-list .guide-list-body {
        padding-top: 1.75rem;
        padding-bottom: 3.5rem;
    }
}

.page-guide-list .guide-section-grid {
    margin-top: 0.25rem;
}

.guide-article-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

/* 列表页不使用 motion 入场，避免子元素被 opacity:0 隐藏 */
.page-guide-list .guide-article-grid > * {
    opacity: 1;
    transform: none;
}

@media (min-width: 768px) {
    .guide-article-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.5rem;
    }
}

/* —— 攻略卡片（列表 / 侧栏） —— */
.guide-article-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border: 1px solid var(--dp-line, rgba(28, 43, 58, 0.08));
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 18px rgba(15, 45, 90, 0.06);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.guide-article-card:hover {
    transform: translateY(-4px);
    border-color: rgba(201, 169, 98, 0.38);
    box-shadow: 0 14px 32px rgba(21, 31, 42, 0.09);
    color: inherit;
}

.guide-article-card__media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(145deg, #eef2f7 0%, #e8edf3 100%);
}

.guide-article-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.guide-article-card:hover .guide-article-card__media img {
    transform: scale(1.05);
}

.guide-article-card__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: rgba(28, 43, 58, 0.28);
    font-size: 2.5rem;
}

.guide-article-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.55rem;
    padding: 1.15rem 1.25rem 1.2rem;
}

.guide-article-card__category {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    background: #faf6ed;
    color: #6b5735;
    border: 1px solid rgba(201, 169, 98, 0.42);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.guide-article-card__title {
    margin: 0;
    font-family: var(--dp-font-display);
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--dp-primary-dark, #111a24);
    line-height: 1.45;
    letter-spacing: 0.02em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.guide-article-card:hover .guide-article-card__title {
    color: #6b5735;
}

.guide-article-card__summary {
    margin: 0;
    flex: 1;
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.guide-article-card__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 0.35rem;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(28, 43, 58, 0.06);
}

.guide-article-card__date {
    font-size: 0.8125rem;
    color: #94a3b8;
    white-space: nowrap;
}

.guide-article-card__date i {
    margin-right: 0.25rem;
}

.guide-article-card__more {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--dp-primary);
    letter-spacing: 0.03em;
    transition: gap 0.2s ease, color 0.2s ease;
}

.guide-article-card:hover .guide-article-card__more {
    color: #6b5735;
    gap: 0.5rem;
}

.guide-article-card__more i {
    font-size: 0.85rem;
}

/* 侧栏紧凑卡片 */
.guide-article-card--compact {
    flex-direction: row;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(15, 45, 90, 0.05);
}

.guide-article-card--compact:hover {
    transform: translateX(4px);
}

.guide-article-card--compact .guide-article-card__media {
    flex: 0 0 88px;
    width: 88px;
    aspect-ratio: 1;
}

.guide-article-card--compact .guide-article-card__body {
    padding: 0.75rem 0.85rem 0.8rem 0;
    gap: 0.35rem;
}

.guide-article-card--compact .guide-article-card__title {
    font-size: 0.9375rem;
    -webkit-line-clamp: 2;
}

.guide-article-card--compact .guide-article-card__summary {
    -webkit-line-clamp: 2;
    font-size: 0.8125rem;
}

.guide-article-card--compact .guide-article-card__foot {
    margin-top: 0.15rem;
    padding-top: 0;
    border-top: none;
}

.guide-article-card--compact .guide-article-card__more {
    display: none;
}

.guide-article-card--no-media {
    flex-direction: column;
}

.guide-article-card--compact.guide-article-card--no-media {
    border-radius: 10px;
    box-shadow: none;
    border-color: rgba(28, 43, 58, 0.06);
    background: #f8fafc;
}

.guide-article-card--compact.guide-article-card--no-media:hover {
    transform: translateX(3px);
    background: #fff;
    border-color: rgba(201, 169, 98, 0.35);
}

.guide-article-card--compact.guide-article-card--no-media .guide-article-card__body {
    padding: 0.85rem 1rem;
    gap: 0.4rem;
}

.guide-article-card--compact.guide-article-card--no-media .guide-article-card__title {
    font-size: 0.9rem;
    -webkit-line-clamp: 2;
}

.guide-article-card--compact.guide-article-card--no-media .guide-article-card__summary {
    -webkit-line-clamp: 2;
    font-size: 0.8125rem;
}

.guide-article-card--compact.guide-article-card--no-media .guide-article-card__foot {
    margin-top: 0.1rem;
}

.guide-article-aside__list .guide-article-card + .guide-article-card {
    margin-top: 0.65rem;
}

.page-guide .guide-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3.5rem 1rem;
    color: #94a3b8;
    background: #fff;
    border-radius: 14px;
    border: 1px dashed #dce4ec;
}

.page-guide .guide-pagination {
    margin-top: 2.25rem;
    padding-top: 1.75rem;
    border-top: 1px solid rgba(28, 43, 58, 0.08);
    display: flex;
    justify-content: center;
}

.page-guide .guide-pagination .dp-pagination {
    max-width: 100%;
}

.page-guide .guide-pagination .dp-pagination__desktop {
    width: 100%;
}

@media (min-width: 768px) {
    .page-guide .guide-pagination .dp-pagination__desktop {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 1.25rem;
    }

    .page-guide .guide-pagination .dp-pagination__summary {
        flex-shrink: 0;
        white-space: nowrap;
    }
}

/* —— 文章详情 —— */
.page-guide-article .guide-article-rich {
    padding: 1.75rem 0 3.5rem;
    background: linear-gradient(180deg, var(--dp-gray, #f9f8f6) 0%, #fff 42%);
}

@media (min-width: 768px) {
    .page-guide-article .guide-article-rich {
        padding-top: 2.25rem;
    }
}

.guide-article-layout {
    align-items: flex-start;
}

.guide-article {
    background: #fff;
    border: 1px solid var(--dp-line, rgba(28, 43, 58, 0.08));
    border-radius: 16px;
    padding: clamp(1.35rem, 3vw, 2.25rem) clamp(1.25rem, 3vw, 2.35rem);
    box-shadow: 0 8px 28px rgba(15, 45, 90, 0.06);
}

.guide-article__head {
    margin-bottom: 1.5rem;
    padding-bottom: 1.35rem;
    border-bottom: 1px solid var(--dp-line, rgba(28, 43, 58, 0.08));
}

.guide-article__title {
    margin: 0 0 1rem;
    font-family: var(--dp-font-display);
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    font-weight: 700;
    color: var(--dp-primary-dark, #111a24);
    line-height: 1.35;
    letter-spacing: 0.04em;
}

.guide-article__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1rem;
    font-size: 0.875rem;
    color: #64748b;
}

.guide-article__meta i {
    margin-right: 0.25rem;
    opacity: 0.85;
}

.guide-article__category {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    background: #faf6ed;
    color: #6b5735;
    border: 1px solid rgba(201, 169, 98, 0.42);
    font-size: 0.8125rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.guide-article__category i {
    font-size: 0.875rem;
    line-height: 1;
}

.guide-article__category:hover {
    background: #f5eed9;
    border-color: rgba(201, 169, 98, 0.55);
    color: #6b5735;
}

.guide-article__cover {
    margin: 0 0 1.75rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(15, 45, 90, 0.1);
}

.guide-article__cover img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 520px;
    object-fit: cover;
}

.guide-article__lead {
    margin: 0 0 1.75rem;
    padding: 1.1rem 1.25rem;
    border-left: 3px solid var(--dp-highlight, #c9a962);
    background: linear-gradient(90deg, #faf6ed 0%, rgba(250, 246, 237, 0.35) 100%);
    border-radius: 0 10px 10px 0;
    font-size: 1.0625rem;
    line-height: 1.75;
    color: #475569;
    font-weight: 500;
}

/* 正文排版 */
.guide-prose {
    font-size: 1rem;
    line-height: 1.9;
    color: #334155;
}

.guide-prose > :first-child {
    margin-top: 0;
}

.guide-prose > :last-child {
    margin-bottom: 0;
}

.guide-prose h2,
.guide-prose h3,
.guide-prose h4 {
    font-family: var(--dp-font-display);
    color: var(--dp-primary-dark, #111a24);
    letter-spacing: 0.03em;
    line-height: 1.4;
}

.guide-prose h2 {
    margin: 2.25rem 0 1rem;
    padding-bottom: 0.55rem;
    font-size: 1.375rem;
    border-bottom: 2px solid rgba(201, 169, 98, 0.35);
}

.guide-prose h3 {
    margin: 1.75rem 0 0.75rem;
    font-size: 1.125rem;
}

.guide-prose h4 {
    margin: 1.35rem 0 0.55rem;
    font-size: 1rem;
}

.guide-prose p {
    margin-bottom: 1.15em;
}

.guide-prose ul,
.guide-prose ol {
    margin: 0 0 1.25em;
    padding-left: 1.35em;
}

.guide-prose li {
    margin-bottom: 0.45em;
}

.guide-prose li::marker {
    color: var(--dp-highlight, #c9a962);
}

.guide-prose blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.25rem;
    border-left: 3px solid var(--dp-accent, #5a8f7e);
    background: #f8fafc;
    border-radius: 0 10px 10px 0;
    color: #475569;
    font-style: italic;
}

.guide-prose img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 1.5rem auto;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(15, 45, 90, 0.08);
}

.guide-prose figure {
    margin: 1.75rem 0;
}

.guide-prose figcaption {
    margin-top: 0.55rem;
    font-size: 0.8125rem;
    color: #94a3b8;
    text-align: center;
}

.guide-prose a {
    color: var(--dp-primary);
    text-decoration: underline;
    text-underline-offset: 0.15em;
    transition: color 0.2s;
}

.guide-prose a:hover {
    color: #6b5735;
}

.guide-prose table {
    width: 100%;
    margin: 1.5rem 0;
    border-collapse: collapse;
    font-size: 0.9375rem;
}

.guide-prose table th,
.guide-prose table td {
    border: 1px solid #e2e8f0;
    padding: 0.65rem 0.85rem;
}

.guide-prose table th {
    background: #f8fafc;
    font-weight: 600;
    color: var(--dp-primary-dark);
}

/* 侧栏 */
.guide-article-aside {
    position: sticky;
    top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.guide-article-aside__card,
.guide-article-aside__related {
    background: #fff;
    border: 1px solid var(--dp-line, rgba(28, 43, 58, 0.08));
    border-radius: 14px;
    padding: 1.25rem 1.35rem;
    box-shadow: 0 4px 18px rgba(15, 45, 90, 0.05);
}

.guide-article-aside__label {
    margin: 0 0 1rem;
    font-family: var(--dp-font-display);
    font-size: 0.9375rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--dp-primary-dark);
}

.guide-article-aside__facts {
    margin: 0 0 1.15rem;
}

.guide-article-aside__facts > div {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.35rem 1rem;
    padding: 0.55rem 0;
    border-bottom: 1px solid rgba(28, 43, 58, 0.06);
}

.guide-article-aside__facts > div:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.guide-article-aside__facts dt {
    margin: 0;
    font-size: 0.8125rem;
    color: #94a3b8;
    white-space: nowrap;
}

.guide-article-aside__facts dd {
    margin: 0;
    font-size: 0.875rem;
    color: #334155;
    font-weight: 500;
}

.guide-article-aside__facts a {
    color: var(--dp-primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.guide-article-aside__facts a i {
    font-size: 0.875rem;
    opacity: 0.85;
}

.guide-article-aside__facts a:hover {
    color: #6b5735;
    text-decoration: underline;
}

.guide-article-aside__back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--dp-primary);
    text-decoration: none;
    transition: gap 0.2s, color 0.2s;
}

.guide-article-aside__back:hover {
    color: #6b5735;
    gap: 0.55rem;
}

.guide-article-aside__list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

@media (max-width: 991.98px) {
    .guide-article-aside {
        position: static;
    }

    .guide-article-aside__related {
        margin-top: 0.5rem;
    }
}

@media (max-width: 575.98px) {
    .guide-section {
        padding-top: 2rem;
        padding-bottom: 2.25rem;
    }
    .guide-section-title {
        white-space: normal;
        text-align: center;
    }
    .guide-card {
        min-height: 0;
    }
    .guide-article-card__body {
        padding: 1rem 1.05rem 1.05rem;
    }
    .guide-article {
        border-radius: 12px;
    }
    .guide-article-card--compact .guide-article-card__media {
        flex-basis: 72px;
        width: 72px;
    }
}
