@charset "utf-8";

/*
 * ========================================
 * 技术支持页面 - 样式
 * ========================================
 * 文件路径：assets/zh-cn/css/technical-support.css
 *
 * 【功能说明】
 * 1. Hero 区（含过渡动画）
 * 2. 面包屑
 * 3. 三卡片区域（联系方式、线上技术支持、工单技术支持）
 * 4. 入场动画、悬停动画、过渡效果
 * 5. 响应式布局（含移动端优化）
 * ========================================
 */

/* ====================================================================
 * 色彩变量 - 使用网站统一的橙黄色主色调
 * 参考：assets/css/frontend-colors.css
 * ==================================================================== */
.technical-support-main {
    --ts-primary: #FFB366;              /* 主柔和橙黄色 */
    --ts-primary-hover: #E8A04D;        /* 深柔和橙黄色 - 悬停 */
    --ts-primary-light: rgba(255, 179, 102, 0.1);  /* 浅橙黄色背景 */
    --ts-accent: #4A90E2;               /* 辅助蓝色 */
    --ts-bg: #f8fafc;
    --ts-card-bg: #ffffff;
    --ts-text: #1e293b;
    --ts-text-muted: #64748b;
}

.technical-support-main {
    overflow: visible !important;
}

.technical-support-content {
    overflow: visible !important;
}

/* ====================================================================
 * Hero 区
 * ==================================================================== */
.technical-support-hero {
    position: relative;
    width: 100%;
    min-height: 50vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.technical-support-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* <picture> 包装层须有确定尺寸，img 的 height:100% 才能解析、object-fit: cover 才会生效 */
.technical-support-hero-bg picture {
    display: block;
    width: 100%;
    height: 100%;
}

/* 图片真正铺满容器；缩放动画只作用在图片上，避免文字层跟随缩放 */
.technical-support-hero-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    animation: ts-hero-zoom 20s ease-in-out infinite alternate;
}

@keyframes ts-hero-zoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.05); }
}

.technical-support-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.4) 100%);
    pointer-events: none;
}

/* 文字层：绝对定位叠加在图片上并居中（原文档流布局会被容器 overflow 裁掉） */
.technical-support-hero-inner {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
    max-width: 100%;
    padding-left: 2rem;
    padding-right: 2rem;
    text-align: center;
}

.technical-support-hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6), 0 8px 20px rgba(0, 0, 0, 0.4);
}

.technical-support-hero-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    margin: 0.75rem auto 0;
    background: var(--primary-color, #FFB366);
    border-radius: 2px;
}

.technical-support-hero-subtitle {
    font-size: 1.5rem;
    color: #fff;
    opacity: 0.95;
    margin-bottom: 0;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5), 0 6px 16px rgba(0, 0, 0, 0.3);
}

@media (max-width: 767.98px) {
    .technical-support-hero {
        min-height: 35vh;
    }

    .technical-support-hero-inner {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .technical-support-hero-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .technical-support-hero-subtitle {
        font-size: 1rem;
    }
}

/* ====================================================================
 * 面包屑
 * ==================================================================== */
.technical-support-breadcrumb {
    background: var(--ts-bg, #f8fafc);
    padding: 0.6rem 0;
    border-bottom: none;
}

.technical-support-breadcrumb .container {
    padding: 0 1rem;
}

.technical-support-breadcrumb .breadcrumb {
    display: flex;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.technical-support-breadcrumb .breadcrumb-item {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    padding: 0.3rem 0.6rem;
    font-size: 0.8125rem;
    line-height: 1.5;
    color: var(--ts-text, #333);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.technical-support-breadcrumb .breadcrumb-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.technical-support-breadcrumb .breadcrumb-item:not(:last-child)::after {
    content: '›';
    margin-left: 0.5rem;
    color: var(--ts-text-muted, rgba(0, 0, 0, 0.5));
}

.technical-support-breadcrumb .breadcrumb-item a {
    color: inherit;
    text-decoration: none;
}

.technical-support-breadcrumb .breadcrumb-item a:hover {
    color: var(--accent-color, #4A90E2);
}

.technical-support-breadcrumb .breadcrumb-item.active {
    background: var(--ts-primary-light);
    font-weight: 500;
    color: var(--ts-primary);
}

/* ====================================================================
 * 卡片区域
 * ==================================================================== */
.technical-support-cards {
    padding: 3rem 0 4rem;
    background: linear-gradient(180deg, var(--ts-bg, #f8fafc) 0%, #f1f5f9 50%, #e2e8f0 100%);
}

.technical-support-cards .container {
    max-width: 1140px;
}

.technical-support-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr; /* 默认单列 */
}

/* ====================================================================
 * 响应式网格 - 根据卡片数量与屏幕宽度自适应
 * data-card-count: 1=单张居中加宽, 2=两列居中加宽, 3=三列, 4=两列2x2
 * ==================================================================== */

/* 手机端：始终单列，卡片占满宽度 */
@media (max-width: 767.98px) {
    .technical-support-grid {
        grid-template-columns: 1fr;
    }
    .technical-support-grid .technical-support-card {
        max-width: none;
        justify-self: stretch;
    }
}

/* 平板端：768px ~ 991px */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* 单张卡片：居中显示，宽度加大 */
    .technical-support-grid[data-card-count="1"] {
        grid-template-columns: 1fr;
    }
    .technical-support-grid[data-card-count="1"] .technical-support-card {
        max-width: 520px;
        justify-self: center;
    }

    /* 两张卡片：两列布局，整体居中，单卡更宽 */
    .technical-support-grid[data-card-count="2"] {
        grid-template-columns: repeat(2, 1fr);
        max-width: 800px;
        margin-left: auto;
        margin-right: auto;
    }
    .technical-support-grid[data-card-count="2"] .technical-support-card {
        padding: 1.5rem 1.25rem;
    }

    /* 三张及以上卡片：两列布局 */
    .technical-support-grid[data-card-count="3"],
    .technical-support-grid[data-card-count="4"] {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 桌面端：≥992px */
@media (min-width: 992px) {
    /* 单张卡片：居中显示，宽度明显加大 */
    .technical-support-grid[data-card-count="1"] {
        grid-template-columns: 1fr;
    }
    .technical-support-grid[data-card-count="1"] .technical-support-card {
        max-width: 580px;
        justify-self: center;
    }

    /* 两张卡片：两列布局，整体居中，单卡更宽、高度更紧凑 */
    .technical-support-grid[data-card-count="2"] {
        grid-template-columns: repeat(2, 1fr);
        max-width: 900px;
        margin-left: auto;
        margin-right: auto;
    }
    .technical-support-grid[data-card-count="2"] .technical-support-card {
        padding: 1.75rem 1.5rem;
    }

    /* 三张卡片：三列布局 */
    .technical-support-grid[data-card-count="3"] {
        grid-template-columns: repeat(3, 1fr);
    }

    /* 四张卡片：2x2 布局 */
    .technical-support-grid[data-card-count="4"] {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ====================================================================
 * 卡片样式
 * ==================================================================== */
.technical-support-card {
    background: var(--ts-card-bg, #fff);
    border-radius: 16px;
    padding: 2rem 1.75rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.4s ease,
                border-color 0.3s ease;
    position: relative;
    overflow: hidden;
    animation: ts-card-enter 0.6s ease-out backwards;
}

.technical-support-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    border-color: rgba(255, 179, 102, 0.2);
}

@keyframes ts-card-enter {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.technical-support-card-contact { animation-delay: 0.1s; }
.technical-support-card-online { animation-delay: 0.2s; }
.technical-support-card-ticket { animation-delay: 0.3s; }

/* ====================================================================
 * 卡片图标
 * ==================================================================== */
.technical-support-card-icon {
    width: 3.5rem;
    height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--ts-primary-light), rgba(59, 130, 246, 0.1));
    border-radius: 14px;
    color: var(--ts-primary);
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
                background 0.3s ease;
}

.technical-support-card:hover .technical-support-card-icon {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, var(--ts-primary), var(--ts-accent));
    color: #fff;
}

/* ====================================================================
 * 卡片标题与正文
 * ==================================================================== */
.technical-support-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ts-text, #1a1a1a);
    margin: 0 0 1rem 0;
    letter-spacing: -0.02em;
    transition: color 0.3s ease;
}

.technical-support-card:hover .technical-support-card-title {
    color: var(--ts-primary);
}

.technical-support-card-body {
    margin: 0;
}

.technical-support-card-desc {
    font-size: 0.9375rem;
    color: var(--ts-text-muted, #64748b);
    line-height: 1.65;
    margin: 0 0 1.25rem 0;
}

/* ====================================================================
 * 联系方式项
 * ==================================================================== */
.technical-support-contact-items {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.technical-support-contact-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.9375rem;
}

.technical-support-contact-item i {
    flex-shrink: 0;
    width: 1.25rem;
    color: var(--ts-primary);
    transition: transform 0.3s ease;
}

.technical-support-card:hover .technical-support-contact-item i {
    transform: scale(1.15);
}

.technical-support-link {
    color: var(--ts-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease, text-decoration 0.2s ease;
}

.technical-support-link:hover {
    color: var(--ts-primary-hover);
    text-decoration: underline;
}

.technical-support-phone {
    font-size: 1.0625rem;
}

/* 二维码区域 */
.technical-support-qr-wrap {
    flex-direction: column;
    align-items: flex-start;
    margin-top: 0.5rem;
}

.technical-support-qr {
    width: 150px;
    height: 150px;
    border-radius: 12px;
    border: 2px solid rgba(255, 179, 102, 0.2);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.technical-support-qr:hover {
    transform: scale(1.05);
    border-color: var(--ts-primary);
    box-shadow: 0 8px 24px rgba(255, 179, 102, 0.2);
}

.technical-support-qr-label {
    font-size: 0.8125rem;
    color: var(--ts-text-muted);
    margin-top: 0.5rem;
}

/* ====================================================================
 * 按钮
 * ==================================================================== */
.technical-support-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1.25rem;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.technical-support-btn i {
    transition: transform 0.3s ease;
}

.technical-support-btn:hover i {
    transform: translateX(4px);
}

.technical-support-btn-primary {
    background: linear-gradient(135deg, var(--ts-primary), #E8A04D);
    color: #fff;
    border: none;
    box-shadow: 0 4px 14px rgba(255, 179, 102, 0.4);
}

.technical-support-btn-primary:hover {
    background: linear-gradient(135deg, var(--ts-primary-hover), #D4882E);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 179, 102, 0.5);
}

.technical-support-btn-outline {
    background: transparent;
    color: var(--ts-primary);
    border: 2px solid var(--ts-primary);
}

.technical-support-btn-outline:hover {
    background: var(--ts-primary-light);
    color: var(--ts-primary-hover);
    border-color: var(--ts-primary-hover);
    transform: translateY(-2px);
}

/* ====================================================================
 * 响应式 - 平板（样式微调）
 * ==================================================================== */
@media (max-width: 991.98px) {
    .technical-support-cards {
        padding: 2.5rem 0 3rem;
    }

    .technical-support-grid {
        gap: 1.25rem;
    }

    .technical-support-card {
        padding: 1.75rem 1.5rem;
    }
}

/* ====================================================================
 * 响应式 - 手机
 * ==================================================================== */
@media (max-width: 767.98px) {
    .technical-support-cards {
        padding: 2rem 0 2.5rem;
    }

    .technical-support-cards .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .technical-support-grid {
        gap: 1rem;
    }

    .technical-support-card {
        padding: 1.5rem 1.25rem;
    }

    .technical-support-card-icon {
        width: 3rem;
        height: 3rem;
        font-size: 1.25rem;
    }

    .technical-support-card-title {
        font-size: 1.125rem;
    }

    .technical-support-card-desc {
        font-size: 0.875rem;
    }

    .technical-support-qr {
        width: 130px;
        height: 130px;
    }

    .technical-support-btn {
        width: 100%;
        justify-content: center;
        padding: 0.7rem 1rem;
    }
}

/* ====================================================================
 * 响应式 - 小屏手机
 * ==================================================================== */
@media (max-width: 575.98px) {
    .technical-support-breadcrumb .breadcrumb-item {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }

    .technical-support-phone {
        font-size: 0.9375rem;
    }
}
