/* 特别玩家帮助中心 — 共享样式 */
body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
        "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
    background-color: #f8f9fa;
    color: #1a1a1a;
    -webkit-font-smoothing: antialiased;
}

.text-gradient {
    background: linear-gradient(135deg, #FF7A00 0%, #FFB066 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.help-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 72rem;
    margin: 0 auto;
    padding: 6.5rem 1rem 3rem;
}

@media (min-width: 1024px) {
    .help-layout--with-sidebar {
        grid-template-columns: 15rem 1fr;
        align-items: start;
    }
}

.help-sidebar {
    display: none;
}

@media (min-width: 1024px) {
    .help-sidebar {
        display: block;
        position: sticky;
        top: 6rem;
        max-height: calc(100vh - 7rem);
        overflow-y: auto;
    }
}

.help-sidebar__title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #9ca3af;
    margin-bottom: 0.75rem;
}

.help-sidebar__link {
    display: block;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    color: #4b5563;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

.help-sidebar__link:hover {
    background: #fff5eb;
    color: #cc6200;
}

.help-sidebar__link.is-active {
    background: #ffe6cc;
    color: #cc6200;
    font-weight: 600;
}

.help-content {
    min-width: 0;
}

.help-article {
    background: #fff;
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

@media (min-width: 640px) {
    .help-article {
        padding: 2rem 2.5rem;
    }
}

.help-article h1 {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
    line-height: 1.25;
}

@media (min-width: 640px) {
    .help-article h1 {
        font-size: 2rem;
    }
}

.help-article__lead {
    color: #6b7280;
    font-size: 1.0625rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.help-article h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 2rem 0 0.75rem;
    padding-top: 0.5rem;
    border-top: 1px solid #f3f4f6;
    scroll-margin-top: 6rem;
}

.help-article h2:first-of-type {
    border-top: none;
    margin-top: 0;
    padding-top: 0;
}

.help-article h3 {
    font-size: 1.0625rem;
    font-weight: 600;
    margin: 1.25rem 0 0.5rem;
    color: #374151;
}

.help-article p,
.help-article li {
    color: #4b5563;
    line-height: 1.7;
    font-size: 0.9375rem;
}

.help-article ul,
.help-article ol {
    margin: 0.75rem 0;
    padding-left: 1.25rem;
}

.help-article li {
    margin-bottom: 0.35rem;
}

.help-breadcrumb {
    font-size: 0.8125rem;
    color: #9ca3af;
    margin-bottom: 1rem;
}

.help-breadcrumb a {
    color: #6b7280;
    text-decoration: none;
}

.help-breadcrumb a:hover {
    color: #ff7a00;
}

.help-tag {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 0.15rem 0.5rem;
    border-radius: 9999px;
    margin-right: 0.35rem;
    vertical-align: middle;
}

.help-tag--all { background: #f3f4f6; color: #4b5563; }
.help-tag--app { background: #dbeafe; color: #1d4ed8; }
.help-tag--mp { background: #dcfce7; color: #15803d; }
.help-tag--ios { background: #ede9fe; color: #6d28d9; }
.help-tag--cn { background: #fef3c7; color: #b45309; }

.help-callout {
    border-left: 4px solid #ff7a00;
    background: #fff5eb;
    padding: 0.875rem 1rem;
    border-radius: 0 0.5rem 0.5rem 0;
    margin: 1rem 0;
    font-size: 0.875rem;
    color: #92400e;
    line-height: 1.6;
}

.help-callout--info {
    border-left-color: #3b82f6;
    background: #eff6ff;
    color: #1e40af;
}

.help-steps {
    counter-reset: step;
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.help-steps li {
    counter-increment: step;
    position: relative;
    padding-left: 2.75rem;
    margin-bottom: 1rem;
}

.help-steps li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0.1rem;
    width: 1.75rem;
    height: 1.75rem;
    background: #ff7a00;
    color: #fff;
    border-radius: 50%;
    font-size: 0.8125rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.help-table-wrap {
    overflow-x: auto;
    margin: 1rem 0;
}

.help-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.help-table th,
.help-table td {
    border: 1px solid #e5e7eb;
    padding: 0.625rem 0.75rem;
    text-align: left;
}

.help-table th {
    background: #f9fafb;
    font-weight: 600;
    color: #374151;
}

.help-table td {
    color: #4b5563;
}

.help-card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin: 1.5rem 0;
}

@media (min-width: 640px) {
    .help-card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .help-card-grid--3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

.help-card {
    display: block;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    padding: 1.25rem;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.help-card:hover {
    border-color: #ffb066;
    box-shadow: 0 8px 24px -8px rgba(255, 122, 0, 0.2);
    transform: translateY(-2px);
}

.help-card__icon {
    width: 2.5rem;
    height: 2.5rem;
    background: #fff5eb;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff7a00;
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
}

.help-card__title {
    font-weight: 700;
    font-size: 1rem;
    color: #111827;
    margin-bottom: 0.35rem;
}

.help-card__desc {
    font-size: 0.8125rem;
    color: #6b7280;
    line-height: 1.5;
}

.help-search {
    position: relative;
    max-width: 36rem;
    margin: 0 auto 2rem;
}

.help-search input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 2.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 9999px;
    font-size: 1rem;
    background: #fff;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.help-search input:focus {
    border-color: #ff7a00;
    box-shadow: 0 0 0 3px rgba(255, 122, 0, 0.15);
}

.help-search i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
}

.help-search-results {
    margin-top: 1rem;
}

.help-search-results:empty {
    display: none;
}

.help-search-result {
    display: block;
    padding: 0.75rem 1rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    margin-bottom: 0.5rem;
    text-decoration: none;
    transition: border-color 0.15s;
}

.help-search-result:hover {
    border-color: #ffb066;
}

.help-search-result__title {
    font-weight: 600;
    color: #111827;
    font-size: 0.9375rem;
}

.help-search-result__meta {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-top: 0.15rem;
}

.help-faq-section {
    margin-bottom: 2rem;
}

.help-faq-section h2 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #374151;
    margin-bottom: 0.75rem;
    border: none;
    padding: 0;
}

.help-faq-item {
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    margin-bottom: 0.5rem;
    background: #fff;
    overflow: hidden;
}

.help-faq-item summary {
    padding: 1rem 1.25rem;
    font-weight: 600;
    font-size: 0.9375rem;
    color: #111827;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.help-faq-item summary::-webkit-details-marker {
    display: none;
}

.help-faq-item summary::after {
    content: "+";
    font-size: 1.25rem;
    color: #9ca3af;
    flex-shrink: 0;
    transition: transform 0.2s;
}

.help-faq-item[open] summary::after {
    content: "−";
}

.help-faq-item__body {
    padding: 0 1.25rem 1rem;
    font-size: 0.875rem;
    color: #4b5563;
    line-height: 1.7;
}

.help-faq-item__body ul {
    margin: 0.5rem 0;
    padding-left: 1.25rem;
}

.help-nav-link.is-active {
    color: #ff7a00 !important;
    font-weight: 600;
}

.help-pager {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.help-pager a {
    font-size: 0.875rem;
    color: #ff7a00;
    text-decoration: none;
    font-weight: 500;
}

.help-pager a:hover {
    text-decoration: underline;
}

.help-meta {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #f3f4f6;
}

.help-hero {
    text-align: center;
    padding: 7rem 1rem 2rem;
    max-width: 48rem;
    margin: 0 auto;
}

.help-hero h1 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}

@media (min-width: 640px) {
    .help-hero h1 {
        font-size: 2.5rem;
    }
}

.help-hero p {
    color: #6b7280;
    font-size: 1.0625rem;
    line-height: 1.6;
}

.help-hot-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.help-hot-list li {
    margin-bottom: 0.5rem;
}

.help-hot-list a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    text-decoration: none;
    color: #374151;
    font-size: 0.875rem;
    transition: border-color 0.15s;
}

.help-hot-list a:hover {
    border-color: #ffb066;
    color: #cc6200;
}

.help-hot-list a i {
    color: #ff7a00;
    font-size: 0.75rem;
}

/* 配图与截图 */
.help-figure {
    margin: 1.25rem 0 2rem;
    border-radius: 0.75rem;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
}

.help-figure img {
    display: block;
    width: 100%;
    height: auto;
}

.help-figure--phone {
    max-width: min(100%, 360px);
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 640px) {
    .help-figure--phone {
        max-width: min(100%, 390px);
    }
}

.help-figure--wide {
    max-width: min(100%, 420px);
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 640px) {
    .help-figure--wide {
        max-width: min(100%, 520px);
    }
}

.help-figure--xl {
    max-width: min(100%, 480px);
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 640px) {
    .help-figure--xl {
        max-width: min(100%, 640px);
    }
}

.help-figure figcaption {
    padding: 0.625rem 1rem;
    font-size: 0.8125rem;
    color: #6b7280;
    text-align: center;
    border-top: 1px solid #f3f4f6;
    line-height: 1.5;
}

.help-figure-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 1.25rem 0 2rem;
}

@media (min-width: 640px) {
    .help-figure-grid--tabs {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .help-figure-grid--tabs {
        grid-template-columns: repeat(5, 1fr);
    }
}

.help-figure-grid__item {
    border-radius: 0.75rem;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    background: #fff;
}

.help-figure-grid__item img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 9 / 16;
    object-fit: cover;
    object-position: top;
}

.help-figure-grid__label {
    padding: 0.5rem 0.625rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #374151;
    text-align: center;
    border-top: 1px solid #f3f4f6;
}

.help-step-figures {
    margin: 1.5rem 0;
}

.help-step-figure {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #f3f4f6;
}

.help-step-figure:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.help-step-figure__label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.75rem;
    height: 1.75rem;
    padding: 0 0.625rem;
    background: #ff7a00;
    color: #fff;
    border-radius: 9999px;
    font-size: 0.8125rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.help-step-figure > p {
    margin-bottom: 1rem;
}
