/**
 * Technical Support Pages Styles
 * 技术支持页面样式
 *
 * @package Senden
 * @version 2.0.0
 */

/* ============================================================
   Technical Support Hero Banner
   ============================================================ */
.ts-hero {
    position: relative;
    height: 380px;
    overflow: hidden;
    margin-bottom: 0;
}

.ts-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ts-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.7) 0%, rgba(124, 92, 191, 0.5) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ts-hero-content {
    text-align: center;
    color: #fff;
    padding: 20px;
}

.ts-hero-title {
    font-size: 42px;
    font-weight: 700;
    letter-spacing: 4px;
    margin: 0 0 15px 0;
    text-transform: uppercase;
}

.ts-hero-subtitle {
    font-size: 16px;
    font-weight: 300;
    letter-spacing: 2px;
    margin: 0;
    opacity: 0.9;
}

/* ============================================================
   Technical Support Nav Cards (Parent Page)
   ============================================================ */
.ts-nav-section {
    padding: 100px 0;
    background: #fafafa;
}

.ts-nav-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.ts-nav-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.ts-nav-card {
    background: #fff;
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.ts-nav-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(124, 92, 191, 0.15);
    border-color: rgba(124, 92, 191, 0.2);
}

.ts-nav-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 32px;
    color: #fff;
    background: linear-gradient(135deg, #7c5cbf 0%, #5a3d9e 100%);
    transition: all 0.3s ease;
}

.ts-nav-card:hover .ts-nav-icon {
    transform: scale(1.1);
    background: linear-gradient(135deg, #6a4dab 0%, #4a327e 100%);
}

.ts-nav-card-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 12px 0;
    letter-spacing: 1px;
}

.ts-nav-card-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
    margin: 0;
}

.ts-nav-card-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    font-size: 14px;
    font-weight: 600;
    color: #7c5cbf;
    letter-spacing: 1px;
}

.ts-nav-card:hover .ts-nav-card-arrow i {
    transform: translateX(4px);
    transition: transform 0.3s ease;
}

/* ============================================================
   Section Header
   ============================================================ */
.ts-section-header {
    text-align: center;
    margin-bottom: 60px;
}

.ts-section-title {
    font-size: 36px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 15px 0;
    letter-spacing: 3px;
}

.ts-section-subtitle {
    font-size: 16px;
    color: #666;
    margin: 0;
    letter-spacing: 1px;
}

/* ============================================================
   Software Downloads
   ============================================================ */
.ts-downloads-section {
    padding: 100px 0;
    background: #fff;
}

.ts-downloads-section .container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.ts-download-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ts-download-item {
    background: #fafafa;
    border-radius: 12px;
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 24px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.ts-download-item:hover {
    background: #fff;
    border-color: rgba(124, 92, 191, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.ts-download-icon {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    background: linear-gradient(135deg, #7c5cbf 0%, #5a3d9e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
    flex-shrink: 0;
}

.ts-download-content {
    flex: 1;
    min-width: 0;
}

.ts-download-name {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 8px 0;
}

.ts-download-meta {
    font-size: 13px;
    color: #888;
    display: flex;
    gap: 20px;
}

.ts-download-version,
.ts-download-size,
.ts-download-date {
    display: flex;
    align-items: center;
    gap: 6px;
}

.ts-download-version i,
.ts-download-size i,
.ts-download-date i {
    font-size: 12px;
    color: #7c5cbf;
}

.ts-download-desc {
    font-size: 14px;
    color: #666;
    margin: 10px 0 0 0;
    line-height: 1.6;
}

.ts-download-btn {
    flex-shrink: 0;
}

.ts-download-btn a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #7c5cbf 0%, #5a3d9e 100%);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.ts-download-btn a:hover {
    background: linear-gradient(135deg, #6a4dab 0%, #4a327e 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124, 92, 191, 0.3);
}

/* ============================================================
   Video Tutorials Grid — moved to installation-video-list.css / maintenance-video-list.css
   (Kept section padding here as a fallback for hero spacing only.)
   ============================================================ */

/* ============================================================
   FAQ Accordion
   ============================================================ */
.ts-faq-section {
    padding: 100px 0;
    background: #fff;
}

.ts-faq-section .container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.ts-faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ts-faq-item {
    background: #fafafa;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.ts-faq-item:hover {
    border-color: rgba(124, 92, 191, 0.2);
}

.ts-faq-question {
    padding: 24px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.ts-faq-question:hover {
    background: rgba(124, 92, 191, 0.03);
}

.ts-faq-question h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0;
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
}

.ts-faq-question h3::before {
    content: 'Q';
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: linear-gradient(135deg, #7c5cbf 0%, #5a3d9e 100%);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ts-faq-toggle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7c5cbf;
    font-size: 14px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.ts-faq-item.active .ts-faq-toggle {
    background: #7c5cbf;
    color: #fff;
    transform: rotate(180deg);
}

.ts-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.ts-faq-item.active .ts-faq-answer {
    max-height: 500px;
}

.ts-faq-answer-content {
    padding: 0 30px 24px 30px;
    padding-left: 70px;
    font-size: 15px;
    color: #666;
    line-height: 1.8;
}

.ts-faq-answer-content p {
    margin: 0;
}

/* ============================================================
   Technical Contact
   ============================================================ */
.ts-contact-section {
    padding: 100px 0;
    background: #fafafa;
}

.ts-contact-section .container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.ts-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.ts-contact-info {
    background: linear-gradient(135deg, #7c5cbf 0%, #5a3d9e 100%);
    border-radius: 20px;
    padding: 50px 40px;
    color: #fff;
}

.ts-contact-info h3 {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 30px 0;
    letter-spacing: 2px;
}

.ts-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

.ts-contact-item-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.ts-contact-item-content h4 {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 6px 0;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ts-contact-item-content p {
    font-size: 16px;
    margin: 0;
    font-weight: 500;
}

.ts-contact-item-content a {
    color: #fff;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.ts-contact-item-content a:hover {
    opacity: 0.8;
}

.ts-contact-form-wrapper {
    background: #fff;
    border-radius: 20px;
    padding: 50px 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
}

.ts-contact-form-wrapper h3 {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 30px 0;
    letter-spacing: 1px;
}

/* ============================================================
   Empty State
   ============================================================ */
.ts-empty {
    text-align: center;
    padding: 60px 20px;
    color: #888;
}

.ts-empty i {
    font-size: 48px;
    margin-bottom: 20px;
    display: block;
    color: #ddd;
}

.ts-empty p {
    font-size: 16px;
    margin: 0;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 992px) {
    .ts-nav-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ts-contact-grid {
        grid-template-columns: 1fr;
    }

    .ts-hero {
        margin-top: 70px;
    }

    .ts-hero-title {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .ts-nav-section,
    .ts-downloads-section,
    .ts-faq-section,
    .ts-contact-section {
        padding: 60px 0;
    }

    .ts-hero {
        margin-top: 65px;
    }

    .ts-nav-grid {
        grid-template-columns: 1fr;
    }

    .ts-nav-card {
        padding: 30px 24px;
    }

    .ts-download-item {
        flex-direction: column;
        text-align: center;
        padding: 24px;
    }

    .ts-download-meta {
        justify-content: center;
        flex-wrap: wrap;
    }

    .ts-section-title {
        font-size: 28px;
    }

    .ts-hero-title {
        font-size: 26px;
        letter-spacing: 2px;
    }

    .ts-hero {
        height: 220px;
    }

    .ts-nav-card-icon {
        width: 60px;
        height: 60px;
        font-size: 26px;
    }

    .ts-nav-card-title {
        font-size: 16px;
    }

    .ts-download-item-icon {
        width: 48px;
        height: 48px;
        font-size: 22px;
    }

    .ts-faq-question {
        padding: 16px 0;
        font-size: 15px;
    }

    .ts-faq-question h3 {
        font-size: 15px;
        padding-right: 40px;
    }

    .ts-faq-question i {
        font-size: 14px;
        right: 0;
    }

    .ts-faq-answer-content {
        padding: 0 20px 20px 20px;
    }

    .ts-contact-info,
    .ts-contact-form-wrapper {
        padding: 30px 24px;
    }

    .ts-contact-info h3 {
        font-size: 22px;
    }

    .ts-contact-item {
        margin-bottom: 18px;
    }

    .ts-contact-item i {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .ts-empty {
        padding: 80px 20px;
    }
}

@media (max-width: 576px) {
    .ts-hero {
        height: 180px;
    }

    .ts-hero-title {
        font-size: 22px;
        letter-spacing: 1px;
    }

    .ts-hero-subtitle {
        font-size: 13px;
    }

    .ts-nav-section,
    .ts-downloads-section,
    .ts-faq-section,
    .ts-contact-section {
        padding: 50px 0;
    }

    .ts-section-title {
        font-size: 24px;
    }

    .ts-nav-grid {
        gap: 16px;
    }

    .ts-nav-card {
        padding: 24px 20px;
    }

    .ts-nav-card-icon {
        width: 52px;
        height: 52px;
        font-size: 22px;
        margin-bottom: 16px;
    }

    .ts-nav-card-title {
        font-size: 15px;
    }

    .ts-nav-card-desc {
        font-size: 13px;
    }

    .ts-download-item {
        padding: 20px;
    }

    .ts-download-item-icon {
        width: 44px;
        height: 44px;
        font-size: 20px;
        margin-bottom: 12px;
    }

    .ts-download-item-title {
        font-size: 15px;
    }

    .ts-download-meta {
        gap: 8px;
    }

    .ts-faq-question {
        font-size: 14px;
        padding: 12px 0;
    }

    .ts-faq-question h3 {
        font-size: 14px;
    }

    .ts-faq-answer-content {
        padding: 0 16px 16px 16px;
        font-size: 14px;
        padding-left: 50px;
    }

    .ts-contact-info {
        padding: 24px 20px;
    }

    .ts-contact-info h3 {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .ts-empty {
        padding: 60px 20px;
    }

    .ts-empty i {
        font-size: 48px;
    }
}
