/* ================================================================
   AXIOM · css/pages/support.css — 由 support.php 内联 <style> 搬移而来（v4.0.0 单源化）
   加载方式: 对应 PHP 页 $pageCss 按页加载（原内联块零 PHP 插值，安全搬移）
   ================================================================ */

/* ===== 客服中心 v2.0 ===== */
.support-hero {
    text-align: center;
    padding: 50px 20px 30px;
    position: relative;
}
.support-hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(135deg, var(--gold-200) 0%, var(--gold-500) 50%, var(--purple-300) 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: metallic-flow 8s ease-in-out infinite alternate;
}
.support-hero .subtitle {
    color: var(--text-subtle);
    font-size: 1rem;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.7;
}

/* 快速入口卡片 */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    max-width: 800px;
    margin: 0 auto 32px;
    padding: 0 20px;
}
.quick-action-card {
    background: var(--bg-surface-2);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s var(--ease-spring);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}
.quick-action-card:hover {
    transform: translateY(-4px);
    border-color: var(--gold-400);
    box-shadow: 0 8px 30px oklch(0% 0 0 / 0.3);
}
.qa-icon {
    font-size: 2rem;
    margin-bottom: 10px;
    display: block;
}
.qa-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-headline);
    margin-bottom: 4px;
}
.qa-desc {
    font-size: 0.75rem;
    color: var(--text-subtle);
}

/* Tabs with sliding indicator */
.support-tabs-wrap {
    max-width: 800px;
    margin: 0 auto 24px;
    padding: 0 20px;
}
.support-tabs {
    display: flex;
    gap: 0;
    background: var(--bg-surface-2);
    border-radius: var(--radius-lg);
    padding: 4px;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}
.support-tab {
    flex: 1;
    padding: 12px 20px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-subtle);
    background: transparent;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: color 0.3s ease;
    text-align: center;
    position: relative;
    z-index: 1;
    white-space: nowrap;
}
.support-tab.active {
    color: var(--gold);
    font-weight: 600;
}
.support-tab-indicator {
    position: absolute;
    top: 4px;
    height: calc(100% - 8px);
    background: oklch(78.5% 0.208 var(--hue-gold) / 0.1);
    border: 1px solid oklch(78.5% 0.208 var(--hue-gold) / 0.3);
    border-radius: var(--radius-md);
    transition: all 0.35s var(--ease-spring);
    pointer-events: none;
    z-index: 0;
}

/* Tab 内容区切换 */
.support-content {
    display: none;
    animation: fadeSlideUp 0.35s ease;
}
.support-content.active {
    display: block;
}
@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* FAQ 搜索框 */
.faq-search {
    max-width: 800px;
    margin: 0 auto 24px;
    padding: 0 20px;
}
.faq-search-box {
    position: relative;
}
.faq-search-box input {
    width: 100%;
    padding: 14px 20px 14px 48px;
    background: var(--bg-surface-2);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    color: var(--text-body);
    font-size: 0.95rem;
    transition: all 0.25s ease;
    outline: none;
}
.faq-search-box input:focus {
    border-color: var(--gold-400);
    box-shadow: 0 0 0 3px oklch(78.5% 0.208 var(--hue-gold) / 0.1);
}
.faq-search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1rem;
    opacity: 0.5;
    pointer-events: none;
}
.faq-search-clear {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--bg-surface-3);
    color: var(--text-subtle);
    border: none;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    transition: all 0.2s ease;
}
.faq-search-clear:hover {
    background: var(--bg-glass-hover);
    color: var(--text-body);
}
.faq-search-clear.visible { display: flex; }

/* v24.5 2026-09-12 FAQ 分类分组标题 */
.faq-group {
    margin-bottom: 22px;
}
.faq-group-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 2px 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}
.faq-group-icon {
    font-size: 1.05rem;
    line-height: 1;
}
.faq-group-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-headline);
    letter-spacing: 0.02em;
}
.faq-group-count {
    margin-left: auto;
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    border-radius: 999px;
    background: oklch(78.5% 0.208 var(--hue-gold) / 0.12);
    color: var(--gold-400);
    font-size: 0.72rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* FAQ 列表（折叠面板） */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}
.faq-item {
    background: var(--bg-surface-2);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    margin-bottom: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}
.faq-item:hover {
    border-color: oklch(78.5% 0.208 var(--hue-gold) / 0.3);
}
.faq-item.open {
    border-color: var(--gold-400);
    box-shadow: 0 4px 20px oklch(78.5% 0.208 var(--hue-gold) / 0.08);
}
.faq-question {
    width: 100%;
    padding: 18px 24px;
    background: transparent;
    border: none;
    color: var(--text-headline);
    font-size: 0.95rem;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    transition: color 0.2s ease;
}
.faq-question:hover {
    color: var(--gold);
}
.faq-question-text {
    flex: 1;
    line-height: 1.5;
}
.faq-arrow {
    font-size: 0.7rem;
    color: var(--text-subtle);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}
.faq-item.open .faq-arrow {
    transform: rotate(180deg);
    color: var(--gold);
}
.faq-answer {
    display: block !important;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    padding: 0 24px;
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.8;
    border-top: none !important;
    padding-top: 0 !important;
}
.faq-item.open .faq-answer {
    max-height: 1200px;
    padding: 0 24px 18px;
    border-top: 1px solid var(--border-color) !important;
}
.faq-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-subtle);
}
.faq-empty-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
    display: block;
}

/* 工单卡片列表 */
.ticket-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.ticket-card {
    background: var(--bg-surface-2);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    cursor: pointer;
    transition: all 0.25s var(--ease-spring);
    display: block;
    text-decoration: none;
    color: inherit;
}
.ticket-card:hover {
    transform: translateX(4px);
    border-color: var(--gold-400);
    box-shadow: 0 4px 20px oklch(0% 0 0 / 0.2);
}
.ticket-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}
.ticket-card-title {
    font-weight: 600;
    color: var(--text-headline);
    font-size: 0.95rem;
    line-height: 1.4;
    flex: 1;
}
.ticket-card-body {
    font-size: 0.8rem;
    color: var(--text-subtle);
    line-height: 1.5;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ticket-card-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.75rem;
    color: var(--text-disabled);
}
.ticket-card-footer .cat-tag {
    padding: 2px 8px;
    background: var(--bg-surface-3);
    border-radius: 4px;
    color: var(--text-subtle);
    fon
}
.ticket-detail-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* 回复时间线 */
.timeline-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-headline);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.timeline-title .count {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--text-subtle);
}
.reply-timeline {
    position: relative;
    padding-left: 28px;
}
.reply-timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: linear-gradient(180deg, var(--gold-500), transparent);
    opacity: 0.3;
}
.reply-item {
    position: relative;
    margin-bottom: 20px;
}
.reply-item:last-child { margin-bottom: 0; }
.reply-dot {
    position: absolute;
    left: -28px;
    top: 18px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--bg-surface-2);
    border: 2px solid var(--gold-500);
    z-index: 1;
    box-shadow: 0 0 12px oklch(78.5% 0.208 var(--hue-gold) / 0.4);
}
.reply-item.staff .reply-dot {
    border-color: var(--color-success-base);
    box-shadow: 0 0 12px oklch(72% 0.18 145 / 0.4);
}
.reply-card {
    background: var(--bg-surface-2);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color 0.2s ease;
}
.reply-item.staff .reply-card {
    border-color: oklch(72% 0.18 145 / 0.3);
}
.reply-card-header {
    padding: 14px 20px;
    background: oklch(0% 0 0 / 0.2);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
}
.reply-author {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}
.reply-author .avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
    color: var(--neutral-950);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}
.reply-item.staff .reply-author .avatar {
    background: linear-gradient(135deg, oklch(60% 0.2 145), oklch(72% 0.18 145));
    color: white;
}
.reply-author-name {
    color: var(--text-headline);
}
.reply-item.staff .reply-author-name {
    color: var(--color-success-base);
}
.reply-role-badge {
    font-size: 0.65rem;
    padding: 1px 6px;
    border-radius: 4px;
    background: oklch(72% 0.18 145 / 0.15);
    color: var(--color-success-base);
    font-weight: 500;
}
.reply-time {
    color: var(--text-disabled);
    font-family: var(--font-mono);
    font-size: 0.75rem;
}
.reply-card-body {
    padding: 20px;
    color: var(--text-body);
    font-size: 0.88rem;
    line-height: 1.8;
    white-space: pre-wrap;
    word-break: break-word;
}

/* 工单提交表单 */
.ticket-form-card {
    background: var(--bg-surface-2);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 28px 32px;
    margin-bottom: 24px;
}
.ticket-form-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-headline);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}
.form-field {
    margin-bottom: 16px;
}
.form-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
}
.form-label .required {
    color: var(--color-error-base);
    margin-left: 2px;
}
.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: var(--radius-md);
    color: var(--text-body);
    font-size: 0.9rem;
    font-family: inherit;
    transition: all 0.25s ease;
    outline: none;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--input-border-focus);
    box-shadow: 0 0 0 3px var(--input-ring);
}
.form-textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}
.char-counter {
    text-align: right;
    font-size: 0.72rem;
    color: var(--text-disabled);
    margin-top: 4px;
}
.char-counter.warning {
    color: var(--color-warning-base);
}
.char-counter.danger {
    color: var(--color-error-base);
}

/* SLA 提示条 */
.sla-notice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
    background: oklch(72% 0.18 145 / 0.08);
    border: 1px solid oklch(72% 0.18 145 / 0.2);
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
}
.sla-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
}
.sla-content {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.6;
}
.sla-content strong {
    color: var(--text-headline);
}

/* 返回按钮 */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--gold);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    margin-bottom: 20px;
    transition: all 0.2s ease;
}
.back-link:hover {
    color: var(--gold-light);
    transform: translateX(-2px);
}

@media (max-width: 768px) {
    .form-row { grid-template-columns: 1fr; }
    .ticket-form-card { padding: 20px; }
    .ticket-detail-hero { padding: 20px; }
    .ticket-detail-title { font-size: 1.15rem; }
    .reply-timeline { padding-left: 24px; }
    .reply-dot { left: -24px; }
    .reply-card-header { padding: 12px 16px; }
    .reply-card-body { padding: 16px; }
    .quick-actions { grid-template-columns: repeat(2, 1fr); }
    .support-tab { padding: 10px 14px; font-size: 0.82rem; }
    .ticket-card { padding: 16px 18px; }
}

@media (prefers-reduced-motion: reduce) {
    .support-hero h1 { animation: none; }
    .faq-item, .ticket-card, .quick-action-card, .reply-card { transition: none; }
    .support-tab-indicator { transition: none; }
    .faq-answer { transition: none; }
}
