/* 左侧底部互动按钮样式 */

:root {
    --primary-yellow: #f9f75d;
    --gradient-yellow-start: #FFD700; /* 更亮的金色 */
    --gradient-yellow-end: #FFA500; /* 橙色 */
    --messenger-blue: #2683EF;
    --whatsapp-green: #25D366;
    --email-red: #DB4437;
    --call-blue: #4285F4;
    --text-dark: #333333;
    --text-light: #ffffff;
}

.placidway-contact-widget {
    position: fixed;
    bottom: 50px;
    left: 30px;
    z-index: 9999;
}

.contact-button {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--gradient-yellow-start), var(--gradient-yellow-end));
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    position: relative;
    border: none;
    outline: none;
}

.contact-button:hover {
    background: linear-gradient(135deg, var(--gradient-yellow-end), var(--gradient-yellow-start));
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.contact-button i {
    color: white; /* 白色图标，在渐变背景上更醒目 */
    font-size: 28px;
}

/* 其他样式保持不变 */
.contact-panel {
    position: absolute;
    bottom: 70px;
    left: 0;
    width: 280px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    overflow: visible; /* 修改为visible确保内容不被裁剪 */
    display: none;
    transform-origin: bottom left;
    animation: scaleIn 0.2s ease-out forwards;
    /* Safari兼容性 */
    -webkit-transform-origin: bottom left;
    -webkit-animation: scaleIn 0.2s ease-out forwards;
    z-index: 10000; /* 确保面板位于最上层 */
}

@keyframes scaleIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.panel-header {
    background: linear-gradient(135deg, var(--gradient-yellow-start), var(--gradient-yellow-end));
    color: white;
    padding: 15px 20px;
    font-size: 18px;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.panel-header i {
    margin-right: 10px;
    font-size: 20px;
}

.contact-options {
    padding: 15px 0;
}

.contact-option {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.contact-option:hover {
    background-color: #f5f5f5;
}

.option-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 15px;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--gradient-yellow-start), var(--gradient-yellow-end));
}

.option-icon i {
    color: white;
    font-size: 18px;
}

.option-text {
    flex-grow: 1;
    min-width: 0; /* 防止flex项目溢出 */
}

.option-title {
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 2px;
}

.option-subtitle {
    font-size: 13px;
    color: #666;
    /* 确保文本不会被截断 */
    overflow: visible;
    white-space: nowrap;
    /* 针对Safari的特定修复 */
    -webkit-text-size-adjust: 100%;
}

/* 确保WhatsApp号码可见性 */
.whatsapp-option .option-subtitle {
    color: #25D366; /* 使用WhatsApp绿色提高可见性 */
    font-weight: 600;
}

/* 添加针对iOS设备的媒体查询 */
@supports (-webkit-touch-callout: none) {
    .option-subtitle {
        font-size: 14px; /* 在iOS上稍微增大字体 */
        font-weight: 500; /* 增加字体权重 */
    }
    
    .contact-option {
        padding: 14px 20px; /* 在iOS上增加内边距 */
    }
}

/* Mobile styles */
@media (max-width: 768px) {
    .placidway-contact-widget {
        bottom: 33px;
        left: 10px;
    }
    
    .contact-button {
        width: 60px;
        height: 60px;
    }
    
    .contact-button i {
        font-size: 24px;
    }
    
    .contact-panel {
        width: 240px;
        bottom: 66px;
    }
}
/* Table of Contents 样式 */
.toc-container {
    margin: 20px 0;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.toc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: #f8f9fa;
    cursor: pointer;
    transition: background-color 0.3s;
}

.toc-header:hover {
    background-color: #e9ecef;
}

.toc-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.toc-arrow {
    font-size: 18px;
    transition: transform 0.3s;
}

.toc-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background-color: #fff;
}

.toc-content.expanded {
    max-height: 550px; /* 根据内容调整 */
}

.toc-list {
    padding: 15px 20px;
    margin: 0 15px 0;
}

.toc-list li {
    margin-bottom: 10px;
    line-height: 1.4;
	color:#737373;
}

.toc-list a {
    color: #737373;
    text-decoration: none;
    transition: color 0.2s;
}

.toc-list a:hover {
    color: #337FE5;
    text-decoration: underline;
}

/* 箭头旋转动画 */
.toc-arrow.rotated {
    transform: rotate(180deg);
}