/* 毛玻璃效果样式 (Glassmorphism) */
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.glass-nav {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* 头部渐变背景 */
.hero-gradient {
    background: radial-gradient(circle at 10% 20%, rgb(239, 246, 255) 0%, rgb(255, 255, 255) 90%);
}

/* 动效 */
.pricing-card {
    transition: all 0.3s ease;
}

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

/* 关键帧动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* 工具类 */
.text-balance {
    text-wrap: balance;
}

.mpr-header-chat-icon,
.mpr-header-control-icon {
    display: inline-block;
    width: 19px;
    height: 19px;
    font-family: 'Material Symbols Outlined' !important;
    font-size: 19px !important;
    line-height: 19px !important;
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24 !important;
}

.mpr-header-chat-icon {
    width: 22px;
    height: 22px;
    font-size: 22px !important;
    line-height: 22px !important;
}

/* Shared Reseller Playbook layout. Kept in one stylesheet so the overview
   and every article page use the same visual language without Tailwind CDN. */
.material-symbols-outlined {
    font-variation-settings: 'opsz' 24, 'wght' 400, 'FILL' 1, 'GRAD' 0;
}

.rail-link,
.rail-cat {
    text-decoration: none;
}

.rail-cat {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 10px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 2px;
    white-space: nowrap;
}

.rail-cat svg {
    width: 17px;
    height: 17px;
    stroke: currentColor;
    flex-shrink: 0;
}

.rail-cat.active {
    background: #eef2ff;
    color: #3730a3;
}

.rail-cat .count {
    margin-left: auto;
    font-size: 11.5px;
    font-weight: 700;
    color: #94a3b8;
    font-variant-numeric: tabular-nums;
}

.rail-cat.active .count {
    color: #4f46e5;
}

.search-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 16px;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px -12px rgba(15, 23, 42, .12);
    margin-bottom: 24px;
}

.search-bar svg {
    width: 18px;
    height: 18px;
    stroke: #94a3b8;
    flex-shrink: 0;
}

.search-bar input {
    border: none;
    outline: none;
    background: none;
    font: inherit;
    font-size: 15px;
    color: #0f172a;
    width: 100%;
}

.search-bar input::placeholder {
    color: #94a3b8;
}

.topic-group {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    margin-bottom: 18px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px -12px rgba(15, 23, 42, .12);
    scroll-margin-top: 84px;
}

.topic-group summary {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 22px;
    cursor: pointer;
    user-select: none;
}

.topic-group summary::-webkit-details-marker {
    display: none;
}

.topic-group summary .ic {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #eef2ff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.topic-group summary .ic svg {
    width: 18px;
    height: 18px;
    stroke: #3730a3;
}

.topic-group summary h2 {
    font-size: 16.5px;
    font-weight: 800;
    margin: 0;
    letter-spacing: -.005em;
    color: #0f172a;
}

.topic-group summary .n {
    font-size: 12.5px;
    font-weight: 600;
    color: #94a3b8;
}

.topic-group summary .chev {
    margin-left: auto;
    width: 18px;
    height: 18px;
    stroke: #94a3b8;
    transition: transform .18s ease;
    flex-shrink: 0;
}

.topic-group[open] summary .chev {
    transform: rotate(180deg);
}

.topic-group[open] summary {
    border-bottom: 1px solid #e2e8f0;
}

.topic-body {
    padding: 6px 22px;
}

details.qa {
    border-bottom: 1px solid #e2e8f0;
}

details.qa:last-child {
    border-bottom: none;
}

details.qa summary {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 2px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: #0f172a;
}

details.qa summary::-webkit-details-marker {
    display: none;
}

details.qa summary::before {
    content: '?';
    width: 21px;
    height: 21px;
    border: 1px solid #c7d2fe;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 21px;
    color: #4f46e5;
    font-size: 12px;
    font-weight: 800;
}

details.qa summary .chev {
    margin-left: auto;
    width: 16px;
    height: 16px;
    stroke: #94a3b8;
    transition: transform .18s ease;
    flex-shrink: 0;
}

details.qa[open] summary .chev {
    transform: rotate(180deg);
}

details.qa .a {
    padding: 16px 18px 24px 38px;
    font-size: 14.5px;
    line-height: 1.8;
    color: #475569;
    max-width: 68ch;
}

details.qa .a p {
    margin: 0 0 14px;
}

details.qa .a p:last-child {
    margin-bottom: 0;
}

details.qa .a ul,
details.qa .a ol {
    margin: 0 0 14px;
    padding-left: 1.3em;
}

details.qa .a li {
    margin-bottom: 6px;
}

details.qa .a li:last-child {
    margin-bottom: 0;
}

details.qa .a strong {
    color: #1e293b;
    font-weight: 700;
}

details.qa .a h4 {
    font-size: 14.5px;
    font-weight: 800;
    color: #1e293b;
    margin: 22px 0 10px;
}

details.qa .a h4:first-child {
    margin-top: 0;
}

details.qa .a blockquote {
    margin: 0 0 14px;
    padding: 10px 14px;
    border-left: 3px solid #a5b4fc;
    background: #f5f6ff;
    border-radius: 0 8px 8px 0;
    color: #3730a3;
    font-style: italic;
}

details.qa .a a {
    color: #4338ca;
    text-decoration: underline;
}

.help-aside .help-card {
    background: linear-gradient(165deg, #4f46e5 0%, #6558ee 100%);
    color: #fff;
    border-radius: 16px;
    padding: 22px;
}

.help-aside .help-card h3 {
    font-size: 15.5px;
    margin: 0 0 6px;
    font-weight: 800;
}

.help-aside .help-card p {
    font-size: 13px;
    line-height: 1.55;
    color: rgba(255, 255, 255, .82);
    margin: 0 0 16px;
}

.help-aside .help-card a.cta,
.help-aside .help-card button.cta {
    display: block;
    text-align: center;
    text-decoration: none;
    width: 100%;
    border: none;
    background: #fff;
    color: #3730a3;
    font-size: 13.5px;
    font-weight: 700;
    padding: 10px;
    border-radius: 9px;
    cursor: pointer;
}

.rail-eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #94a3b8;
    margin: 0 0 12px;
}

.popular ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.popular li {
    position: relative;
    padding-left: 10px;
}

.popular li::before {
    content: '';
    position: absolute;
    left: 1px;
    top: 15px;
    width: 4px;
    height: 4px;
    border-radius: 999px;
    background: #94a3b8;
}

.popular a {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: #475569;
    padding: 7px 4px;
    border-radius: 7px;
    text-decoration: none;
}

.popular a:hover {
    color: #3730a3;
}

.help-shell {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr) 264px;
    max-width: 1240px;
    margin: 0 auto;
    align-items: start;
}

.help-rail {
    position: sticky;
    top: 80px;
    padding: 0 20px 32px 0;
}

.help-aside {
    position: sticky;
    top: 80px;
    padding: 0 0 32px 24px;
}

.mpr-playbook-footer {
    background-color: #000;
    background-image: image-set(
        url('/assets/images/bottom-background.avif') type('image/avif'),
        url('/assets/images/bottom-background.webp') type('image/webp'),
        url('/assets/images/bottom-background.png') type('image/png')
    );
    background-repeat: no-repeat;
    background-position: right bottom;
    background-size: contain;
    display: flex;
    align-items: center;
}

@media (max-width: 980px) {
    .help-shell {
        grid-template-columns: 1fr;
    }

    .help-rail,
    .help-aside {
        position: static;
        height: auto;
        padding: 0 0 24px;
    }
}
