/* 知识产权页面专用样式 */

/* Header客服按钮样式 */
.header-actions {
    display: flex;
    align-items: center;
}

.customer-service-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 123, 255, 0.1);
    transition: all 0.3s ease;
    text-decoration: none;
}

.customer-service-btn:hover {
    background: rgba(0, 123, 255, 0.2);
    transform: scale(1.05);
}

.customer-service-btn img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.policy-content {
    padding: 0 16px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

/* 图片容器样式 */
.policy-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    background: white;
    padding: 20px;
    border: 1px solid #e9ecef;
}

.policy-content img:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

/* 加载状态样式 */
.policy-content img[src=""] {
    display: none;
}

/* 如果图片加载失败，显示占位内容 */
.policy-content img:after {
    content: "Loading intellectual property information...";
    display: block;
    text-align: center;
    color: #666;
    font-size: 16px;
    padding: 40px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #ddd;
}

/* 响应式样式 */
@media (max-width: 768px) {
    .customer-service-btn {
        width: 36px;
        height: 36px;
    }
    
    .customer-service-btn img {
        width: 28px;
        height: 28px;
    }
    
    .policy-content {
        padding: 0 12px 24px;
        min-height: 300px;
    }
    
    .policy-content img {
        padding: 16px;
        border-radius: 8px;
    }
}

@media (max-width: 480px) {
    .customer-service-btn {
        width: 32px;
        height: 32px;
    }
    
    .customer-service-btn img {
        width: 25px;
        height: 25px;
    }
    
    .policy-content {
        padding: 0 8px 20px;
        min-height: 250px;
    }
    
    .policy-content img {
        padding: 12px;
        border-radius: 6px;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.policy-content {
    animation: fadeInUp 0.6s ease-out;
}

/* 加载指示器 */
.policy-content::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: -1;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* 当图片加载完成后隐藏加载指示器 */
.policy-content img:not([src=""]) ~ ::before {
    display: none;
}

/* 错误状态样式 */
.policy-content .error-message {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-left: 4px solid #fdcb6e;
    border-radius: 8px;
    padding: 20px;
    color: #856404;
    font-size: 15px;
    line-height: 1.6;
    text-align: center;
    max-width: 500px;
    margin: 20px auto;
}

.policy-content .error-message strong {
    color: #333;
    font-weight: 600;
    display: block;
    margin-bottom: 8px;
}

/* 内容加载完成后的样式 */
.policy-content.loaded {
    min-height: auto;
}

.policy-content.loaded::before {
    display: none;
}

/* 图片容器增强样式 */
.ip-content-wrapper {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.ip-content-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

/* 如果需要添加标题或描述文本 */
.ip-title {
    text-align: center;
    color: #333;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid #007bff;
}

.ip-description {
    text-align: center;
    color: #666;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
