/* 页面核心样式 */
/* 自定义颜色类 - Tailwind 配置中的自定义颜色 */
.bg-dark {
    background-color: #111827;
}

.bg-light {
    background-color: #F7F8FA;
}

.text-dark {
    color: #111827;
}

.text-primary {
    color: #FF6A00;
}

.text-secondary {
    color: #FF8A1F;
}

.bg-primary {
    background-color: #FF6A00;
}

.bg-secondary {
    background-color: #FF8A1F;
}

.border-primary {
    border-color: #FF6A00;
}

.hover\:bg-secondary:hover {
    background-color: #FF8A1F;
}

.hover\:text-primary:hover {
    color: #FF6A00;
}

@keyframes pulse-custom {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 106, 0, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(255, 106, 0, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 106, 0, 0); }
}

.pulse-effect {
    animation: pulse-custom 2s infinite;
}

.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.glass-card p,
.glass-card ul,
.glass-card li,
.glass-card span {
    color: inherit;
}

.nav-scrolled {
    background-color: #111827 !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.hs-mobile-menu-button {
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 7px;
    background: rgba(17, 24, 39, 0.28);
    color: #ffffff;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.hs-mobile-menu-button--light {
    border-color: rgba(17, 24, 39, 0.28);
    color: #111827;
    background: rgba(17, 24, 39, 0.04);
}

.hs-mobile-menu-button span {
    display: block;
    width: 21px;
    height: 3px;
    border-radius: 999px;
    background: currentColor;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.hs-mobile-menu-button:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: #ffffff;
}

.hs-mobile-menu-button--light:hover {
    background: rgba(17, 24, 39, 0.08);
    border-color: rgba(17, 24, 39, 0.42);
}

.hs-mobile-menu-button.is-open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hs-mobile-menu-button.is-open span:nth-child(2) {
    opacity: 0;
}

.hs-mobile-menu-button.is-open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.hs-mobile-nav,
.hs-mobile-contact-bar,
.hs-wechat-modal {
    display: none;
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-item.active .faq-content {
    max-height: 200px;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #FF6A00;
    border-radius: 10px;
}

/* 浮动联系组件 */
.hs-floating-contact {
    position: fixed;
    right: 20px;
    top: 50%;
    z-index: 9999;
    width: 200px;
    transform: translateY(-50%);
}

.hs-contact-card {
    position: relative;
    color: #ffffff;
    background: linear-gradient(180deg, #FF6A00 0%, #FF8A1F 100%);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 24px 60px rgba(255, 106, 0, 0.28);
}

.hs-contact-close {
    position: absolute;
    top: 8px;
    right: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.hs-contact-close:hover {
    background: rgba(255, 255, 255, 0.28);
    transform: scale(1.04);
}

.hs-contact-mini {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 72px;
    height: 48px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, #FF6A00 0%, #FF8A1F 100%);
    box-shadow: 0 16px 36px rgba(255, 106, 0, 0.28);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.hs-floating-contact.is-collapsed {
    width: auto;
}

.hs-floating-contact.is-collapsed .hs-contact-card {
    display: none;
}

.hs-floating-contact.is-collapsed .hs-contact-mini {
    display: inline-flex;
}

.hs-contact-title {
    margin: 0 0 12px;
    padding-right: 20px;
    text-align: center;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.35;
}

.hs-contact-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 12px 0;
    font-size: 13px;
    font-weight: 700;
}

.hs-contact-qr {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 140px;
    height: 140px;
    margin: 0 auto 12px;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.72);
    background: rgba(17, 24, 39, 0.6);
    font-size: 12px;
    text-align: center;
}

.hs-contact-action {
    display: block;
    width: 100%;
    padding: 10px 14px;
    border-radius: 10px;
    color: #FF6A00;
    background: #ffffff;
    text-align: center;
    font-size: 14px;
    font-weight: 800;
    transition: background 0.2s ease, transform 0.2s ease;
}

.hs-contact-action:hover {
    background: #fff7ed;
    transform: translateY(-1px);
}

.hs-contact-note {
    margin-top: 10px;
    text-align: center;
    color: rgba(255, 255, 255, 0.78);
    font-size: 12px;
}

@media (max-width: 1023px) {
    body.hs-has-mobile-contact-bar {
        padding-bottom: 72px;
    }

    .hs-mobile-menu-button {
        display: inline-flex;
    }

    .hs-mobile-nav {
        position: fixed;
        top: 76px;
        left: 16px;
        right: 16px;
        z-index: 49;
        display: block;
        pointer-events: none;
        opacity: 0;
        transform: translateY(-10px);
        transition: opacity 0.22s ease, transform 0.22s ease;
    }

    .hs-mobile-nav.is-open {
        pointer-events: auto;
        opacity: 1;
        transform: translateY(0);
    }

    .hs-mobile-nav-panel {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        padding: 16px;
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 8px;
        background: rgba(17, 24, 39, 0.96);
        box-shadow: 0 22px 60px rgba(17, 24, 39, 0.36);
        backdrop-filter: blur(16px);
    }

    .hs-mobile-nav-panel a {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 44px;
        padding: 10px 12px;
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 8px;
        color: rgba(255, 255, 255, 0.88);
        background: rgba(255, 255, 255, 0.04);
        font-size: 15px;
        font-weight: 700;
        line-height: 1.2;
        text-align: center;
        transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
    }

    .hs-mobile-nav-panel a:hover,
    .hs-mobile-nav-panel a.is-active {
        color: #ffffff;
        border-color: rgba(255, 106, 0, 0.7);
        background: rgba(255, 106, 0, 0.16);
    }

    .hs-mobile-nav-panel .hs-mobile-nav-contact {
        grid-column: 1 / -1;
        color: #ffffff;
        border-color: #FF6A00;
        background: #FF6A00;
    }

    .hs-floating-contact {
        display: none;
    }

    .hs-mobile-contact-bar {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 9998;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        min-height: 64px;
        box-shadow: 0 -12px 34px rgba(17, 24, 39, 0.18);
    }

    .hs-mobile-contact-action {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        min-width: 0;
        min-height: 64px;
        padding: 12px 10px;
        color: #ffffff;
        font-size: 17px;
        font-weight: 800;
        line-height: 1.2;
        text-align: center;
        border: 0;
        cursor: pointer;
    }

    .hs-mobile-contact-action--phone {
        background: #FF6A00;
    }

    .hs-mobile-contact-action--wechat {
        background: #172236;
    }

    .hs-wechat-modal {
        position: fixed;
        inset: 0;
        z-index: 10000;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 16px;
        pointer-events: none;
        opacity: 0;
        transition: opacity 0.2s ease;
    }

    .hs-wechat-modal.is-open {
        pointer-events: auto;
        opacity: 1;
    }

    .hs-wechat-modal-backdrop {
        position: absolute;
        inset: 0;
        border: 0;
        background: rgba(0, 0, 0, 0.52);
        cursor: pointer;
    }

    .hs-wechat-modal-dialog {
        position: relative;
        z-index: 1;
        width: min(370px, calc(100vw - 20px));
        overflow: hidden;
        border-radius: 4px;
        background: #ffffff;
        box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
        transform: scale(0.98);
        transition: transform 0.2s ease;
    }

    .hs-wechat-modal.is-open .hs-wechat-modal-dialog {
        transform: scale(1);
    }

    .hs-wechat-modal-header {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 56px;
        padding: 14px 48px;
        border-bottom: 1px solid #e5e7eb;
    }

    .hs-wechat-modal-header h2 {
        margin: 0;
        color: #111827;
        font-size: 18px;
        font-weight: 800;
        line-height: 1.25;
        text-align: center;
    }

    .hs-wechat-modal-close {
        position: absolute;
        top: 50%;
        right: 12px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 28px;
        height: 28px;
        border: 0;
        border-radius: 999px;
        color: #6b7280;
        background: transparent;
        cursor: pointer;
        transform: translateY(-50%);
        font-size: 24px;
        line-height: 1;
    }

    .hs-wechat-modal-close:hover {
        color: #111827;
        background: #f3f4f6;
    }

    .hs-wechat-modal-body {
        display: flex;
        justify-content: center;
        padding: 28px 20px 30px;
    }

    .hs-wechat-modal-qr {
        display: flex;
        align-items: center;
        justify-content: center;
        width: min(220px, 64vw);
        aspect-ratio: 1 / 1;
        border-radius: 4px;
        color: #6b7280;
        background: #f3f4f6;
        font-size: 14px;
        font-weight: 700;
        object-fit: cover;
    }
}

.article-section-label {
    display: inline-flex;
    align-items: center;
    margin-bottom: 18px;
    padding: 6px 12px;
    border-radius: 999px;
    color: #FF6A00;
    background: rgba(255, 106, 0, 0.1);
    font-size: 13px;
    font-weight: 800;
}

.site-brand-logo {
    display: block;
    width: auto;
    object-fit: contain;
    flex: 0 0 auto;
}

.site-brand-logo--header {
    height: 46px;
    max-width: 154px;
}

.site-brand-logo--footer {
    height: 38px;
    max-width: 132px;
}

.platform-logo {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    object-fit: contain;
    background: #ffffff;
    border: 1px solid rgba(17, 24, 39, 0.08);
    box-shadow: 0 8px 20px rgba(17, 24, 39, 0.08);
    flex: 0 0 auto;
}

#faq-content #faqList {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    align-items: start;
}

#faq-content #faqList .faq-group {
    display: contents;
}

#faq-content #faqList .faq-accordion {
    margin: 0;
}

#faq-content .faq-accordion.active .faq-answer {
    max-height: 560px;
}

@media (max-width: 1279px) {
    .hs-floating-contact {
        right: 16px;
        top: auto;
        bottom: 16px;
        width: auto;
        transform: none;
    }

    .hs-floating-contact:not(.is-collapsed) {
        width: min(280px, calc(100vw - 32px));
    }
}

@media (max-width: 767px) {
    .site-brand-logo--header {
        height: 40px;
        max-width: 134px;
    }

    #faq-content #faqList {
        display: block;
    }

    #faq-content #faqList .faq-group {
        display: contents;
    }

    #faq-content #faqList .faq-accordion {
        margin-bottom: 16px;
    }
}

/* 文章内容样式 */
.article-content {
    line-height: 1.8;
    color: #374151;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
    color: #111827;
    font-weight: 700;
    margin-top: 2em;
    margin-bottom: 1em;
    line-height: 1.3;
}

.article-content h2 {
    font-size: 1.875rem;
    border-bottom: 2px solid #FF6A00;
    padding-bottom: 0.5rem;
}

.article-content h3 {
    font-size: 1.5rem;
}

.article-content p {
    margin-bottom: 1.5em;
}

.article-content ul,
.article-content ol {
    margin-left: 1.5em;
    margin-bottom: 1.5em;
}

.article-content li {
    margin-bottom: 0.5em;
}

.article-content a {
    color: #FF6A00;
    text-decoration: underline;
}

.article-content a:hover {
    color: #FF8A1F;
}

.article-content img {
    border-radius: 0.5rem;
    margin: 2em 0;
}

.article-content blockquote {
    border-left: 4px solid #FF6A00;
    padding-left: 1.5em;
    margin: 2em 0;
    color: #6B7280;
    font-style: italic;
}

.article-content code {
    background-color: #F3F4F6;
    padding: 0.2em 0.4em;
    border-radius: 0.25rem;
    font-size: 0.875em;
    font-family: 'Courier New', monospace;
}

.article-content pre {
    background-color: #1F2937;
    color: #F9FAFB;
    padding: 1.5em;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin: 2em 0;
}

.article-content pre code {
    background-color: transparent;
    padding: 0;
    color: inherit;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2em 0;
}

.article-content table th,
.article-content table td {
    border: 1px solid #E5E7EB;
    padding: 0.75em;
    text-align: left;
}

.article-content table th {
    background-color: #F9FAFB;
    font-weight: 600;
}

.article-content table tr:hover {
    background-color: #F9FAFB;
}
