/* 客服页面专用样式 */

/* 社交平台联系区域 */
.social-platforms {
    padding: 100px 0 80px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    margin-top: 70px;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

/* 联系按钮容器 */
.contact-buttons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.contact-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.8rem 3.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px var(--shadow-color);
    min-width: 280px;
    justify-content: center;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border: none;
    flex: 1;
    max-width: 350px;
}

.whatsapp-btn {
    background: linear-gradient(135deg, #07c160, #00ae47);
    color: white;
}

.telegram-btn {
    background: linear-gradient(135deg, #0088cc, #229ed9);
    color: white;
}

.line-btn {
    background: linear-gradient(135deg, #00c300, #00b300);
    color: white;
}

/* 昼夜模式适配 */
[data-theme="dark"] .social-platforms {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

[data-theme="dark"] .contact-btn {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .contact-btn:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
}

[data-theme="dark"] .chat-systems {
    background: var(--bg-color);
}

[data-theme="dark"] .chat-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .service-features {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

[data-theme="dark"] .feature-card {
    background: var(--surface-color);
}

/* 默认显示详细信息，隐藏平台名称 */
.contact-btn .contact-detail {
    display: inline;
}

.contact-btn .contact-name {
    display: none;
}

.contact-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.contact-btn:hover::before {
    opacity: 0.1;
}

.contact-btn:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px var(--shadow-color);
    color: white;
    text-decoration: none;
}

.contact-btn span {
    position: relative;
    z-index: 2;
}

.contact-btn i {
    position: relative;
    z-index: 2;
    font-size: 1.5rem;
}

/* 聊天系统区域 */
.chat-systems {
    padding: 80px 0;
    background: var(--bg-color);
}

.chat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.chat-card {
    background: var(--surface-color);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.chat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.chat-header {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.chat-logo {
    width: 80px;
    height: 80px;
    border-radius: 15px;
    margin-right: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.chat-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 15px;
}

.chat-title h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.chat-subtitle {
    color: var(--muted-color);
    font-size: 0.9rem;
    margin: 0;
}

.chat-content {
    margin-top: 1.5rem;
}

.chat-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--border-color);
}

.info-label {
    font-weight: 600;
    color: var(--text-color);
}

.info-value {
    font-family: 'Courier New', monospace;
    color: var(--primary-color);
    font-weight: 600;
}

.download-section {
    margin: 2rem 0;
    background: var(--bg-color);
    border-radius: 10px;
    padding: 1.5rem;
}

.download-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.download-item {
    display: flex;
    justify-content: space-between;
    margin: 0.8rem 0;
}

.download-label {
    font-weight: 600;
    color: var(--text-color);
}

.download-text {
    color: var(--muted-color);
}

.usage-flow {
    margin: 2rem 0;
}

.flow-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.flow-steps {
    margin-top: 1rem;
}

.flow-step {
    display: flex;
    align-items: center;
    margin: 0.8rem 0;
    padding: 0.8rem;
    background: var(--bg-color);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.flow-step:hover {
    background: var(--primary-color);
    color: white;
    transform: translateX(5px);
}

.step-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-right: 1rem;
    font-size: 0.9rem;
}

.flow-step:hover .step-number {
    background: white;
    color: var(--primary-color);
}

.step-text {
    flex: 1;
    font-size: 0.9rem;
}

.install-section {
    margin: 2rem 0;
    background: var(--bg-color);
    border-radius: 10px;
    padding: 1.5rem;
}

.install-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.install-text {
    color: var(--muted-color);
    line-height: 1.6;
    margin: 0;
}

.chat-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.chat-btn {
    flex: 1;
    padding: 1rem 2rem;
    border-radius: 10px;
    text-decoration: none;
    text-align: center;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.chat-btn.secondary {
    background: var(--primary-color);
    color: white;
}

.chat-btn.secondary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(var(--primary-color-rgb), 0.3);
    text-decoration: none;
    color: white;
}

/* 服务特色区域 */
.service-features {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
}

.feature-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.feature-description {
    color: var(--muted-color);
    line-height: 1.6;
    margin: 0;
}

/* 浮动客服按钮 */
.floating-service {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
}

.floating-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(var(--primary-color-rgb), 0.4);
    transition: all 0.3s ease;
}

.floating-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(var(--primary-color-rgb), 0.6);
}

/* 模态框样式 */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.modal-content {
    background: var(--surface-color);
    padding: 2rem;
    border-radius: 15px;
    max-width: 400px;
    width: 90%;
    position: relative;
    animation: fadeInUp 0.3s ease-out;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    cursor: pointer;
    color: var(--muted-color);
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--text-color);
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.primary-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(var(--primary-color-rgb), 0.3);
    color: white;
    text-decoration: none;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .contact-buttons {
        gap: 1.5rem;
    }

    .contact-btn {
        min-width: 260px;
        max-width: 320px;
        padding: 1.6rem 3rem;
        font-size: 1.15rem;
    }

    .chat-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .social-platforms {
        padding: 80px 0 60px;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .contact-buttons {
        flex-direction: row;
        justify-content: center;
        gap: 1.2rem;
        flex-wrap: wrap;
    }

    .contact-btn {
        flex: 1;
        min-width: 130px;
        max-width: 160px;
        padding: 1.4rem 1.2rem;
        font-size: 1rem;
        gap: 0.6rem;
        border-radius: 40px;
    }

    .contact-btn i {
        font-size: 1.4rem;
    }

    .contact-btn span {
        font-size: 0.95rem;
        font-weight: 700;
    }

    /* 平板端也只显示平台名称 */
    .contact-btn .contact-detail {
        display: none !important;
    }

    .contact-btn .contact-name {
        display: inline !important;
    }

    .chat-card {
        padding: 1.5rem;
    }

    .chat-header {
        flex-direction: column;
        text-align: center;
    }

    .chat-logo {
        margin-right: 0;
        margin-bottom: 1rem;
    }

    .chat-actions {
        flex-direction: column;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .feature-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .social-platforms {
        padding: 70px 0 50px;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }

    .contact-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        margin: 2rem 0;
    }

    .contact-btn {
        width: 90%;
        max-width: 260px;
        min-width: auto;
        padding: 1.6rem 2rem;
        font-size: 1.1rem;
        gap: 1.2rem;
        border-radius: 35px;
    }

    .contact-btn i {
        font-size: 1.6rem;
    }

    .contact-btn span {
        font-size: 1.1rem;
        font-weight: 700;
    }

    /* 移动端只显示平台名称 */
    .contact-btn .contact-detail {
        display: none !important;
    }

    .contact-btn .contact-name {
        display: inline !important;
    }

    .chat-card {
        padding: 1.2rem;
        margin: 0 0.5rem;
    }

    .chat-logo {
        width: 60px;
        height: 60px;
    }

    .feature-card {
        padding: 1.2rem;
        margin: 0 0.5rem;
    }

    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .feature-title {
        font-size: 1.1rem;
    }

    .floating-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .modal-content {
        padding: 1.5rem;
        margin: 0 1rem;
    }
}