/* ============================================
   帮助中心页面样式 (TASK014)
   ============================================ */

/* 页面容器 */
.help-page-container {
    padding: 0;
}

/* 页面标题区域 */
.help-header {
    text-align: center;
    padding: 2rem 0 3rem;
    position: relative;
}

.help-header-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, #4b5563 0%, #6b7280 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-bs-theme="dark"] .help-header-title {
    background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.help-header-description {
    font-size: 1.125rem;
    color: var(--bs-secondary-color, #6b7280);
    max-width: 600px;
    margin: 0 auto;
}

[data-bs-theme="dark"] .help-header-description {
    color: var(--bs-secondary-color, #9ca3af);
}

/* 装饰插画区域 */
.help-illustration {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1rem 0;
}

.help-illustration-icon {
    font-size: 4rem;
    color: #4b5563;
    opacity: 0.3;
    margin-bottom: 0.5rem;
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}

[data-bs-theme="dark"] .help-illustration-icon {
    color: #9ca3af;
    opacity: 0.4;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* 内容卡片 */
.help-content-card {
    background: var(--bs-body-bg, #ffffff);
    border: none;
    border-radius: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.help-content-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06);
}

[data-bs-theme="dark"] .help-content-card {
    background: var(--bs-body-bg, #111827);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.2);
}

[data-bs-theme="dark"] .help-content-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), 0 2px 4px rgba(0, 0, 0, 0.2);
}

.help-content-card-header {
    background: var(--global-bg-tertiary, var(--bs-body-tertiary-bg, #f5f5f5));
    border: none;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

[data-bs-theme="dark"] .help-content-card-header {
    background: var(--global-bg-tertiary, var(--bs-body-tertiary-bg, #1f2937));
}

.help-content-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    color: var(--bs-emphasis-color, #1f2937);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

[data-bs-theme="dark"] .help-content-card-title {
    color: var(--bs-emphasis-color, #e5e7eb);
}

.help-content-card-title-icon {
    font-size: 1.5rem;
    color: #4b5563;
    flex-shrink: 0;
}

[data-bs-theme="dark"] .help-content-card-title-icon {
    color: #9ca3af;
}

.help-content-card-body {
    padding: 1.5rem;
}

@media (max-width: 767.98px) {
    .help-content-card-body {
        padding: 1.25rem;
    }
}

/* 内容区域样式 */
.help-content-section {
    margin-bottom: 1.5rem;
}

.help-content-section:last-child {
    margin-bottom: 0;
}

.help-content-section-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--bs-emphasis-color, #1f2937);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

[data-bs-theme="dark"] .help-content-section-title {
    color: var(--bs-emphasis-color, #e5e7eb);
}

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

.help-content-list-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--bs-body-color, #374151);
}

.help-content-list-item:last-child {
    margin-bottom: 0;
}

[data-bs-theme="dark"] .help-content-list-item {
    color: var(--bs-body-color, #d1d5db);
}

.help-content-list-icon {
    font-size: 1.125rem;
    color: #4b5563;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.help-content-list-icon.success {
    color: #10b981;
}

.help-content-list-icon.primary {
    color: #4b5563;
}

.help-content-list-icon.warning {
    color: #f59e0b;
}

[data-bs-theme="dark"] .help-content-list-icon {
    color: #9ca3af;
}

[data-bs-theme="dark"] .help-content-list-icon.success {
    color: #10b981;
}

[data-bs-theme="dark"] .help-content-list-icon.primary {
    color: #6b7280;
}

[data-bs-theme="dark"] .help-content-list-icon.warning {
    color: #f59e0b;
}

.help-content-text {
    flex: 1;
    color: var(--bs-body-color, #374151);
}

[data-bs-theme="dark"] .help-content-text {
    color: var(--bs-body-color, #d1d5db);
}

.help-content-text strong {
    font-weight: 600;
    color: var(--bs-emphasis-color, #1f2937);
}

[data-bs-theme="dark"] .help-content-text strong {
    color: var(--bs-emphasis-color, #e5e7eb);
}

/* 提示框样式 */
.help-alert {
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    margin-top: 1rem;
    border: none;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.help-alert-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.help-alert-content {
    flex: 1;
}

.help-alert-content strong {
    font-weight: 600;
}

.help-alert-info {
    background: rgba(59, 130, 246, 0.1);
    color: #1e40af;
}

[data-bs-theme="dark"] .help-alert-info {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
}

.help-alert-warning {
    background: rgba(245, 158, 11, 0.1);
    color: #92400e;
}

[data-bs-theme="dark"] .help-alert-warning {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
}

/* 折叠面板样式 */
.help-accordion {
    --bs-accordion-border-width: 0;
    --bs-accordion-border-radius: 0.75rem;
    --bs-accordion-inner-border-radius: 0.75rem;
    --bs-accordion-btn-padding-x: 1.25rem;
    --bs-accordion-btn-padding-y: 1rem;
    --bs-accordion-body-padding-x: 1.25rem;
    --bs-accordion-body-padding-y: 1rem;
}

.help-accordion-item {
    border: none;
    border-radius: 0.75rem;
    margin-bottom: 0.75rem;
    background: var(--global-bg-tertiary, var(--bs-body-tertiary-bg, #f5f5f5));
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.help-accordion-item:hover {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

[data-bs-theme="dark"] .help-accordion-item {
    background: var(--global-bg-tertiary, var(--bs-body-tertiary-bg, #1f2937));
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.help-accordion-button {
    background: transparent;
    border: none;
    font-weight: 600;
    font-size: 1rem;
    color: var(--bs-emphasis-color, #1f2937);
    padding: 1rem 1.25rem;
    box-shadow: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.help-accordion-button:not(.collapsed) {
    background: transparent;
    color: #4b5563;
    box-shadow: none;
}

.help-accordion-button:hover {
    background: rgba(75, 85, 99, 0.05);
    color: #4b5563;
}

.help-accordion-button:focus {
    box-shadow: 0 0 0 3px rgba(75, 85, 99, 0.1);
    border-color: transparent;
}

[data-bs-theme="dark"] .help-accordion-button {
    color: var(--bs-emphasis-color, #e5e7eb);
}

[data-bs-theme="dark"] .help-accordion-button:not(.collapsed) {
    color: #9ca3af;
}

[data-bs-theme="dark"] .help-accordion-button:hover {
    background: rgba(107, 114, 128, 0.1);
    color: #9ca3af;
}

[data-bs-theme="dark"] .help-accordion-button:focus {
    box-shadow: 0 0 0 3px rgba(107, 114, 128, 0.2);
}

.help-accordion-body {
    background: var(--bs-body-bg, #ffffff);
    color: var(--bs-body-color, #374151);
    padding: 1.25rem;
    line-height: 1.7;
}

[data-bs-theme="dark"] .help-accordion-body {
    background: var(--bs-body-bg, #111827);
    color: var(--bs-body-color, #d1d5db);
}

.help-accordion-body ul,
.help-accordion-body ol {
    margin-top: 0.75rem;
    margin-bottom: 0;
    padding-left: 1.5rem;
}

.help-accordion-body li {
    margin-bottom: 0.5rem;
}

.help-accordion-body li:last-child {
    margin-bottom: 0;
}

/* 快速入口卡片 */
.help-quick-actions-card {
    background: linear-gradient(135deg, #4b5563 0%, #6b7280 100%);
    border: none;
    border-radius: 1.5rem;
    box-shadow: 0 4px 12px rgba(75, 85, 99, 0.3), 0 2px 4px rgba(75, 85, 99, 0.2);
    overflow: hidden;
    margin-top: 1rem;
    position: relative;
}

[data-bs-theme="dark"] .help-quick-actions-card {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), 0 2px 4px rgba(0, 0, 0, 0.3);
}

.help-quick-actions-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    pointer-events: none;
}

.help-quick-actions-card-body {
    padding: 2rem 1.5rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

@media (max-width: 767.98px) {
    .help-quick-actions-card-body {
        padding: 1.5rem 1rem;
    }
}

.help-quick-actions-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.help-quick-actions-title-icon {
    font-size: 1.75rem;
}

.help-quick-actions-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.help-quick-actions-btn {
    background: #ffffff;
    color: #4b5563;
    border: none;
    padding: 0.875rem 1.75rem;
    border-radius: 0.75rem;
    font-size: 0.9375rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.help-quick-actions-btn:hover {
    background: #f3f4f6;
    color: #374151;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.help-quick-actions-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.help-quick-actions-btn-icon {
    font-size: 1.125rem;
}

/* 响应式设计 */
@media (max-width: 991.98px) {
    .help-header {
        padding: 1.5rem 0 2rem;
    }

    .help-header-title {
        font-size: 2rem;
    }

    .help-header-description {
        font-size: 1rem;
    }
}

@media (max-width: 767.98px) {
    .help-header {
        padding: 1rem 0 1.5rem;
    }

    .help-header-title {
        font-size: 1.75rem;
    }

    .help-header-description {
        font-size: 0.9375rem;
    }

    .help-content-card-header {
        padding: 1rem 1.25rem;
    }

    .help-content-card-title {
        font-size: 1.125rem;
    }

    .help-content-card-title-icon {
        font-size: 1.25rem;
    }

    .help-content-section-title {
        font-size: 1rem;
    }

    .help-accordion-button {
        font-size: 0.9375rem;
        padding: 0.875rem 1rem;
    }

    .help-accordion-body {
        padding: 1rem;
        font-size: 0.875rem;
    }

    .help-quick-actions-title {
        font-size: 1.25rem;
        margin-bottom: 1.25rem;
    }

    .help-quick-actions-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }

    .help-quick-actions-btn {
        width: 100%;
        justify-content: center;
    }
}

