/* 前端样式 - 统一图标版本 */

/* 基础认证徽章样式 */
.ev-verified-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    line-height: 1;
    margin-left: 5px;
    cursor: help;
    transition: all 0.3s ease;
    white-space: nowrap;
}

/* 不同位置的样式 */
.ev-position-inline {
    display: inline-flex;
}

.ev-position-after {
    display: inline-flex;
    margin-left: 8px;
}

.ev-position-tooltip {
    opacity: 0.8;
}

.ev-position-tooltip:hover {
    opacity: 1;
}

/* 徽章图标 */
.ev-badge-icon {
    margin-right: 5px;
    font-size: 12px;
}

/* 企业认证等级样式 */
.ev-enterprise-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: 1px solid #5a67d8;
}

.ev-premium-badge {
    background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
    color: #744210;
    border: 1px solid #f6ad55;
}

.ev-partner-badge {
    background: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%);
    color: #22543d;
    border: 1px solid #68d391;
}

/* 不同样式变体 */
.ev-verified-badge.ev-style-rounded {
    border-radius: 12px;
}

.ev-verified-badge.ev-style-pill {
    border-radius: 20px;
    padding: 4px 15px;
}

.ev-verified-badge.ev-style-minimal {
    background: transparent;
    border: 1px solid currentColor;
    box-shadow: none;
}

.ev-verified-badge.ev-style-minimal.ev-enterprise-badge {
    color: #667eea;
    background: transparent;
}

.ev-verified-badge.ev-style-minimal.ev-premium-badge {
    color: #f6ad55;
    background: transparent;
}

.ev-verified-badge.ev-style-minimal.ev-partner-badge {
    color: #68d391;
    background: transparent;
}

/* 悬停效果 */
.ev-verified-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* 企业信息卡片样式（文章内） */
.ev-company-info-box {
    margin: 30px 0;
    padding: 25px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    border-left: 4px solid #667eea;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.ev-company-header {
    margin-bottom: 15px;
}

.ev-company-title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.ev-company-title h4 {
    margin: 0;
    font-size: 20px;
    color: #2d3748;
    font-weight: 600;
}

.ev-company-description {
    margin-bottom: 20px;
    color: #4a5568;
    line-height: 1.8;
    font-size: 15px;
}

.ev-company-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
    padding: 15px 0;
    border-top: 1px solid #dee2e6;
    border-bottom: 1px solid #dee2e6;
}

.ev-company-meta > div {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #4a5568;
    font-size: 14px;
}

.ev-company-meta i {
    color: #667eea;
    width: 16px;
}

.ev-company-meta a {
    color: #4299e1;
    text-decoration: none;
}

.ev-company-meta a:hover {
    text-decoration: underline;
}

.ev-company-footer {
    text-align: right;
}

.ev-view-all-posts {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #667eea;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.ev-view-all-posts:hover {
    background: #5a67d8;
    transform: translateX(5px);
    color: white;
}

/* 作者档案页面样式 */
.ev-author-profile {
    max-width: 800px;
    margin: 30px auto;
    padding: 30px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.ev-profile-header {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-bottom: 25px;
}

.ev-profile-avatar img {
    border-radius: 50%;
    border: 4px solid #667eea;
    padding: 3px;
}

.ev-profile-info h2 {
    margin: 0 0 10px;
    font-size: 28px;
    color: #2d3748;
}

.ev-profile-industry {
    margin: 10px 0 0;
    color: #718096;
    font-size: 16px;
}

.ev-profile-industry i {
    color: #667eea;
    margin-right: 5px;
}

.ev-profile-description {
    margin-bottom: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    line-height: 1.8;
    color: #4a5568;
}

.ev-profile-stats {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 20px;
    background: #f1f5f9;
    border-radius: 10px;
}

.ev-stat-item {
    text-align: center;
}

.ev-stat-value {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #2d3748;
}

.ev-stat-label {
    color: #718096;
    font-size: 14px;
}

.ev-visit-website {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #667eea;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.3s ease;
}

.ev-visit-website:hover {
    background: #5a67d8;
    color: white;
}

/* 摘要中的徽章 */
.ev-excerpt-badge {
    margin-bottom: 10px;
}

/* 已认证企业列表 */
.ev-verified-companies {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding: 20px;
}

.ev-companies-count {
    grid-column: 1 / -1;
    padding: 10px;
    background: #f7fafc;
    border-radius: 8px;
    text-align: center;
    color: #4a5568;
    font-weight: 500;
}

.ev-company-item {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px;
    background: #fff;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.ev-company-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
    border-color: #cbd5e0;
}

.ev-company-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.ev-company-header h4 {
    margin: 0;
    font-size: 18px;
    color: #2d3748;
}

.ev-company-excerpt {
    margin-bottom: 15px;
    color: #718096;
    font-size: 14px;
    line-height: 1.6;
}

.ev-post-count, .ev-verify-date {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    background: #f1f5f9;
    border-radius: 20px;
    font-size: 12px;
    color: #4a5568;
}

.ev-post-count i, .ev-verify-date i {
    color: #667eea;
}

/* 企业文章列表短代码样式 */
.ev-company-posts {
    margin: 20px 0;
}

.ev-post-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.ev-post-item:hover {
    background: #e9ecef;
}

.ev-post-thumbnail {
    flex: 0 0 80px;
}

.ev-post-thumbnail img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
}

.ev-post-content {
    flex: 1;
}

.ev-post-content h4 {
    margin: 0 0 10px;
    font-size: 16px;
}

.ev-post-content h4 a {
    color: #2d3748;
    text-decoration: none;
}

.ev-post-content h4 a:hover {
    color: #667eea;
}

.ev-post-excerpt {
    margin: 0 0 10px;
    color: #718096;
    font-size: 14px;
    line-height: 1.6;
}

.ev-post-meta {
    color: #a0aec0;
    font-size: 12px;
}

.ev-view-all {
    text-align: center;
    margin-top: 20px;
}

.ev-view-all a {
    display: inline-block;
    padding: 8px 20px;
    background: #667eea;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    transition: background 0.3s ease;
}

.ev-view-all a:hover {
    background: #5a67d8;
}

/* 小工具样式 */
.ev-widget-list,
.ev-widget-posts {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ev-widget-list li,
.ev-widget-posts li {
    margin-bottom: 8px;
    padding: 5px 0;
    border-bottom: 1px dashed #e2e8f0;
}

.ev-widget-list li:last-child,
.ev-widget-posts li:last-child {
    border-bottom: none;
}

.ev-widget-list a,
.ev-widget-posts a {
    color: #4a5568;
    text-decoration: none;
    transition: color 0.3s ease;
}

.ev-widget-list a:hover,
.ev-widget-posts a:hover {
    color: #4299e1;
}

.ev-widget-post-count,
.ev-post-date {
    color: #a0aec0;
    font-size: 12px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .ev-verified-companies {
        grid-template-columns: 1fr;
    }
    
    .ev-company-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .ev-profile-header {
        flex-direction: column;
        text-align: center;
    }
    
    .ev-profile-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .ev-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .ev-preview-badges {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .ev-post-item {
        flex-direction: column;
    }
    
    .ev-post-thumbnail {
        flex: 0 0 auto;
    }
}

/* 打印样式 */
@media print {
    .ev-verified-badge {
        border: 1px solid #000;
        background: none !important;
        color: #000 !important;
    }
}