/* ========================================
   MOKELING 技术支持 Hub 页样式
   文件: css/tech-support.css
   配对: pages/tech-support.php
   视觉基准: tech-support-hub-demo-20260323-v8
   ======================================== */

/* ── 页面容器 ── */
.mkl-support-page {
    max-width: 840px;
    margin: 0 auto;
    padding: 0 24px 100px;
}

/* ── 标题区 ── */
.mkl-support-page .mkl-hero { padding-top: 80px; text-align: center; }

.mkl-support-page .mkl-hero__title {
    font-size: 36px; font-weight: 700;
    color: var(--mkl-text-primary, #1D1D1F); line-height: 1.3;
}

.mkl-support-page .mkl-hero__subtitle {
    margin-top: 12px; font-size: 17px; font-weight: 400;
    color: var(--mkl-text-secondary, #6E6E73); line-height: 1.6;
}

/* ── FAQ 区 ── */
.mkl-support-page .mkl-faq-section { margin-top: 56px; }

.mkl-support-page .mkl-faq-section__title {
    font-size: 20px; font-weight: 500;
    color: var(--mkl-text-primary, #1D1D1F);
    text-align: center; margin-bottom: 24px;
}

/* 胶囊切换器 */
.mkl-support-page .mkl-pill-tabs { display: flex; justify-content: center; margin-bottom: 8px; }

.mkl-support-page .mkl-pill-tabs__track {
    display: inline-flex; position: relative;
    background: #F0F0F3; border-radius: 10px; padding: 3px;
}

.mkl-support-page .mkl-pill-tabs__slider {
    position: absolute; top: 3px; left: 3px;
    width: calc(50% - 3px); height: calc(100% - 6px);
    background: var(--mkl-blue, #0071e3); border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 113, 227, 0.25);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1),
                background-color 0.28s ease, box-shadow 0.28s ease;
    pointer-events: none;
}

.mkl-support-page .mkl-pill-tabs__slider--right { transform: translateX(100%); }

.mkl-support-page .mkl-pill-tab {
    position: relative; z-index: 1;
    font-size: 14px; font-weight: 400; color: var(--mkl-text-secondary, #6E6E73);
    cursor: pointer; padding: 8px 28px; border: none;
    background: transparent; font-family: inherit;
    transition: color 0.2s; user-select: none; white-space: nowrap;
}

.mkl-support-page .mkl-pill-tab--active { color: #fff; font-weight: 500; }

/* FAQ 手风琴 */
.mkl-support-page .mkl-faq-list { margin-top: 0; }
.mkl-support-page .mkl-faq-item { border-bottom: 1px solid var(--mkl-border-light, #E5E5EA); }

.mkl-support-page .mkl-faq-q {
    display: flex; justify-content: space-between; align-items: center;
    padding: 18px 0; cursor: pointer; font-size: 15px; font-weight: 400;
    color: var(--mkl-text-primary, #1D1D1F); user-select: none; gap: 16px;
    transition: color 0.15s;
}

.mkl-support-page .mkl-faq-q:hover { color: var(--mkl-brand, #0071e3); }

.mkl-support-page .mkl-faq-chevron {
    flex-shrink: 0; width: 14px; height: 14px;
    color: var(--mkl-text-tertiary, #AEAEB2);
    transition: transform 0.28s ease, color 0.15s;
}

.mkl-support-page .mkl-faq-q:hover .mkl-faq-chevron { color: var(--mkl-brand, #0071e3); }
.mkl-support-page .mkl-faq-item--open .mkl-faq-chevron { transform: rotate(180deg); }

.mkl-support-page .mkl-faq-a {
    font-size: 14px; color: var(--mkl-text-secondary, #6E6E73);
    padding: 0 0 18px 20px; line-height: 1.7; display: none;
}

.mkl-support-page .mkl-faq-item--open .mkl-faq-a { display: block; }

/* 反馈按钮区 */
.mkl-support-page .mkl-faq-feedback {
    display: flex; align-items: center; gap: 12px;
    margin-top: 12px; padding-top: 10px;
    border-top: 1px dashed var(--mkl-border-light, #E5E5EA);
}

.mkl-support-page .mkl-faq-feedback__btn {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 13px; color: var(--mkl-text-tertiary, #AEAEB2);
    background: none; border: 1px solid var(--mkl-border-light, #E5E5EA);
    border-radius: 6px; padding: 4px 10px; cursor: pointer;
    font-family: inherit; transition: all 0.15s;
}

.mkl-support-page .mkl-faq-feedback__btn:hover {
    color: var(--mkl-text-secondary, #6E6E73);
    border-color: var(--mkl-border, #D2D2D7);
}

.mkl-support-page .mkl-faq-feedback__btn--done {
    color: var(--mkl-text-tertiary, #AEAEB2);
    border-color: transparent; cursor: default; pointer-events: none;
}

.mkl-support-page .mkl-faq-feedback__sep {
    width: 1px; height: 16px;
    background: var(--mkl-border-light, #E5E5EA);
}

.mkl-support-page .mkl-faq-feedback__ask {
    font-size: 13px; color: var(--mkl-brand, #0071e3);
    background: none; border: none; cursor: pointer;
    font-family: inherit; padding: 4px 0;
    transition: opacity 0.15s;
}

.mkl-support-page .mkl_faq-feedback__ask:hover { opacity: 0.8; }

/* 显示更多 */
.mkl-support-page .mkl-faq-more { display: none; text-align: center; padding: 20px 0 4px; }
.mkl-support-page .mkl-faq-more--visible { display: block; }

.mkl-support-page .mkl-faq-more__btn {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 14px; color: var(--mkl-brand, #0071e3); cursor: pointer;
    background: none; border: none; font-family: inherit;
    padding: 4px 0; transition: color 0.15s;
}

.mkl-support-page .mkl-faq-more__btn:hover { text-decoration: underline; }
.mkl-support-page .mkl-faq-more__chevron { width: 12px; height: 12px; }

.mkl-support-page .mkl-faq-item--overflow { display: none; opacity: 0; transform: translateY(6px); }

.mkl-support-page .mkl-faq-item--revealed {
    display: block;
    animation: mkl-faq-reveal 0.3s ease forwards;
}

@keyframes mkl-faq-reveal { to { opacity: 1; transform: translateY(0); } }

/* ── 技术文章入口 ── */
.mkl-support-page .mkl-article-entry-wrap { margin-top: 48px; }

.mkl-support-page .mkl-article-entry {
    width: 100%; background: #fff; border-radius: 12px;
    padding: 24px 28px; box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    cursor: pointer; transition: all 0.2s ease; text-decoration: none;
    color: inherit; display: flex; align-items: center; gap: 20px;
    border-left: 3px solid var(--mkl-brand, #0071e3);
}

.mkl-support-page .mkl-article-entry:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.mkl-support-page .mkl-article-entry__icon { width: 32px; height: 32px; color: var(--mkl-brand, #0071e3); flex-shrink: 0; }
.mkl-support-page .mkl-article-entry__body { flex: 1; }
.mkl-support-page .mkl-article-entry__title { font-size: 16px; font-weight: 600; color: var(--mkl-text-primary, #1D1D1F); }

.mkl-support-page .mkl-article-entry__desc {
    margin-top: 4px; font-size: 13px;
    color: var(--mkl-text-secondary, #6E6E73); line-height: 1.5;
}

.mkl-support-page .mkl-article-entry__arrow {
    width: 16px; height: 16px; color: var(--mkl-text-tertiary, #AEAEB2); flex-shrink: 0;
    transition: transform 0.2s ease, color 0.2s;
}

/* ── 热门文章 1×2 网格（入口卡片下方，复用 article-list.css 卡片样式） ── */
/* ── 热门文章（复用 mkl-article-grid，support 页面内 2 列覆盖） ── */
.mkl-support-page .mkl-hot-articles {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 16px;
}

/* 查看全部链接 */
.mkl-support-page .mkl-hot-articles-more {
    text-align: center;
    margin-top: 20px;
}

.mkl-support-page .mkl-hot-articles-more__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--mkl-brand, #0071e3);
    text-decoration: none;
    transition: opacity 0.2s;
}

.mkl-support-page .mkl-hot-articles-more__link:hover {
    opacity: 0.7;
}

.mkl-support-page .mkl-hot-articles-more__link svg {
    transition: transform 0.2s;
}

.mkl-support-page .mkl-hot-articles-more__link:hover svg {
    transform: translateX(3px);
}

.mkl-support-page .mkl-article-entry:hover .mkl-article-entry__arrow {
    transform: translateX(3px); color: var(--mkl-brand, #0071e3);
}

/* ── 联系表单区 ── */
.mkl-support-page .mkl-form-section {
    margin-top: 72px; padding-top: 64px;
    border-top: 1px solid var(--mkl-border-light, #E5E5EA);
}

.mkl-support-page .mkl-form-section__header { text-align: center; }
.mkl-support-page .mkl-form-section__title { font-size: 24px; font-weight: 600; color: var(--mkl-text-primary, #1D1D1F); }
.mkl-support-page .mkl-form-section__subtitle { margin-top: 8px; font-size: 15px; color: var(--mkl-text-secondary, #6E6E73); }

.mkl-support-page .mkl-form-grid {
    margin-top: 40px; display: grid;
    grid-template-columns: 1fr 200px; gap: 0 48px;
}

.mkl-support-page .mkl-field { position: relative; margin-bottom: 32px; }

.mkl-support-page .mkl-field__label {
    display: block; font-size: 14px; color: var(--mkl-text-secondary, #6E6E73);
    margin-bottom: 8px; transition: color 0.2s;
}

.mkl-support-page .mkl-field:focus-within .mkl-field__label { color: var(--mkl-brand, #0071e3); }
.mkl-support-page .mkl-field--error .mkl-field__label { color: #FF3B30; }

.mkl-support-page .mkl-field__input {
    width: 100%; border: none; border-bottom: 1px solid var(--mkl-border, #D2D2D7);
    background: transparent; padding: 8px 0; font-size: 16px;
    font-family: inherit; color: var(--mkl-text-primary, #1D1D1F);
    outline: none; transition: border-color 0.2s ease;
    border-radius: 0; -webkit-appearance: none;
}

.mkl-support-page .mkl-field__input:focus { border-bottom-color: var(--mkl-brand, #0071e3); }

.mkl-support-page .mkl-field__input::placeholder {
    color: var(--mkl-text-tertiary, #AEAEB2); text-align: right; font-size: 14px;
}

.mkl-support-page .mkl-field__textarea {
    width: 100%; min-height: 120px; max-height: 280px;
    border: none; border-bottom: 1px solid var(--mkl-border, #D2D2D7);
    border-radius: 6px 6px 0 0; background: #F5F5F7;
    padding: 12px; padding-bottom: 10px; font-size: 16px;
    font-family: inherit; color: var(--mkl-text-primary, #1D1D1F);
    outline: none; resize: vertical; transition: border-color 0.2s ease;
}

.mkl-support-page .mkl-field__textarea:focus { border-bottom-color: var(--mkl-brand, #0071e3); }
.mkl-support-page .mkl-field__textarea::placeholder { color: var(--mkl-text-tertiary, #AEAEB2); font-size: 14px; }

.mkl-support-page .mkl-field--error .mkl-field__input,
.mkl-support-page .mkl-field--error .mkl-field__textarea { border-bottom-color: #FF3B30; }

.mkl-support-page .mkl-field__error { display: none; font-size: 13px; color: #FF3B30; margin-top: 6px; }
.mkl-support-page .mkl-field--error .mkl-field__error { display: block; }

.mkl-support-page .mkl-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }

.mkl-support-page .mkl-submit-area { margin-top: 48px; }

.mkl-support-page .mkl-submit-btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 8px; height: 48px; padding: 0 60px; border: none;
    border-radius: 8px; background: var(--mkl-brand, #0071e3); color: #fff;
    font-size: 16px; font-weight: 500; font-family: inherit;
    cursor: pointer; transition: background 0.2s ease, transform 0.1s ease;
}

.mkl-support-page .mkl-submit-btn:hover:not(:disabled) { background: var(--mkl-brand-hover, #0062cc); }
.mkl-support-page .mkl-submit-btn:active:not(:disabled) { transform: scale(0.97); }
.mkl-support-page .mkl-submit-btn:disabled { cursor: not-allowed; opacity: 0.85; }

.mkl-support-page .mkl-spinner {
    display: none; width: 16px; height: 16px;
    border: 2px solid rgba(255,255,255,0.3); border-top-color: #FFF;
    border-radius: 50%; animation: mkl-spin 0.6s linear infinite;
}

.mkl-support-page .mkl-submit-btn--loading .mkl-spinner { display: block; }
@keyframes mkl-spin { to { transform: rotate(360deg); } }

/* 微信列 底对齐 */
.mkl-support-page .mkl-wechat-col {
    display: flex; flex-direction: column; align-items: center;
    align-self: end; padding-bottom: 45px;
}

.mkl-support-page .mkl-wechat-qr {
    width: 150px; height: 150px; border-radius: 12px; background: #fff; padding: 16px; box-sizing: border-box; box-shadow: 0 1px 4px rgba(0,0,0,0.06); background: #fff; padding: 10px; box-sizing: border-box;
    
}

.mkl-support-page .mkl-wechat-qr img {
    width: 100%; height: 100%; object-fit: cover;
}

.mkl-support-page .mkl-wechat-label { margin-top: 14px; font-size: 14px; font-weight: 500; color: var(--mkl-text-primary, #1D1D1F); }
.mkl-support-page .mkl-wechat-desc { margin-top: 4px; font-size: 13px; color: var(--mkl-text-secondary, #6E6E73); }
.mkl-support-page .mkl-wechat-email { margin-top: 16px; font-size: 13px; }
.mkl-support-page .mkl-wechat-email a { color: var(--mkl-brand, #0071e3); text-decoration: none; }
.mkl-support-page .mkl-wechat-email a:hover { text-decoration: underline; }

/* 成功状态 */
.mkl-support-page .mkl-success { display: none; text-align: center; padding: 60px 0; animation: mkl-fade-in 0.4s ease; }
.mkl-support-page .mkl-success--visible { display: block; }
.mkl-support-page .mkl-success__icon { width: 56px; height: 56px; margin: 0 auto 20px; }

.mkl-support-page .mkl-success__circle {
    fill: none; stroke: #34C759; stroke-width: 2;
    stroke-dasharray: 166; stroke-dashoffset: 166;
    animation: mkl-circle-draw 0.5s ease forwards;
}

.mkl-support-page .mkl-success__check {
    fill: none; stroke: #34C759; stroke-width: 3;
    stroke-linecap: round; stroke-linejoin: round;
    stroke-dasharray: 30; stroke-dashoffset: 30;
    animation: mkl-check-draw 0.3s ease forwards 0.35s;
}

@keyframes mkl-circle-draw { to { stroke-dashoffset: 0; } }
@keyframes mkl-check-draw  { to { stroke-dashoffset: 0; } }
.mkl-support-page .mkl-success__text { font-size: 17px; font-weight: 500; color: var(--mkl-text-primary, #1D1D1F); }

@keyframes mkl-fade-in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.mkl-support-page .mkl-form-grid--hidden { animation: mkl-fade-out 0.3s ease forwards; }

@keyframes mkl-fade-out {
    from { opacity: 1; }
    to   { opacity: 0; height: 0; overflow: hidden; }
}

.mkl-support-page .mkl-footer-info { margin-top: 24px; font-size: 13px; color: var(--mkl-text-tertiary, #AEAEB2); line-height: 1.6; }
