/* 产业信息页面样式 */

/* 分类导航样式 */
.category-nav-section {
    margin-bottom: 1.5rem;
}

/* .category-nav-section .bg-gradient-to-r {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
} */

/* 产业卡片网格 */
.industries-grid .grid {
    /* gap由Tailwind控制，不在这里覆盖 */
}

/* 产业卡片样式 */
.industry-card {
    transition: all 0.3s ease;
    border: 1px solid #f3f4f6;
}

.industry-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: #22c55e;
}

.industry-card .aspect-video {
    aspect-ratio: 16 / 9;
}

.industry-card img {
    transition: transform 0.3s ease;
}

.industry-card:hover img {
    transform: scale(1.05);
}

/* 产业图标样式 */
.industry-card .text-4xl,
.industry-card .text-2xl {
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.1));
}

/* 分类标签样式 */
.industry-card .rounded-full {
    backdrop-filter: blur(4px);
}

/* 按钮悬停效果 */
.industry-card button,
.industry-card a[class*="bg-gradient"] {
    position: relative;
    overflow: hidden;
}

.industry-card button:hover,
.industry-card a[class*="bg-gradient"]:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

/* 置顶和官方认证标识 */
.industry-card .absolute.top-2 {
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* 搜索栏样式 */
.search-section input[type="text"] {
    transition: all 0.2s ease;
}

.search-section input[type="text"]:focus {
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

/* 面包屑导航样式 */
.category-nav-section nav a:hover {
    text-decoration: none;
}

.category-nav-section nav i.fa-chevron-right {
    opacity: 0.6;
}

/* 空状态样式 */
.industries-grid .text-center .bg-gray-100 {
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
}

/* 响应式调整 */
@media (max-width: 640px) {
    .industries-grid .grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .industry-card {
        margin-bottom: 1rem;
    }
    
    .search-section form {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .search-section button,
    .search-section a {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .category-nav-section .flex-wrap {
        gap: 0.5rem;
    }
    
    .category-nav-section a {
        font-size: 0.875rem;
        padding: 0.5rem 0.75rem;
    }
}

/* 详情页样式 */
.prose {
    max-width: none;
}

.prose img {
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 100% !important;
    height: auto !important;
}

.prose h1,
.prose h2,
.prose h3,
.prose h4,
.prose h5,
.prose h6 {
    color: #1f2937;
}

.prose a {
    color: #22c55e;
    text-decoration: none;
}

.prose a:hover {
    color: #16a34a;
    text-decoration: underline;
}

/* 侧边栏卡片样式 */
.lg\:col-span-1 .bg-white {
    position: sticky;
    top: 2rem;
}

/* 相关产业卡片悬停效果 */
.space-y-3 a.block:hover {
    transform: translateX(4px);
}

/* 产业信息表格样式 */
.space-y-3 .flex.items-center.justify-between {
    transition: background-color 0.2s ease;
}

.space-y-3 .flex.items-center.justify-between:hover {
    background-color: #f9fafb;
    margin: 0 -0.5rem;
    padding: 0.5rem;
    border-radius: 0.375rem;
}

/* 加载动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.industry-card {
    animation: fadeInUp 0.6s ease forwards;
}

.industry-card:nth-child(2) {
    animation-delay: 0.1s;
}

.industry-card:nth-child(3) {
    animation-delay: 0.2s;
}

.industry-card:nth-child(4) {
    animation-delay: 0.3s;
}

/* 图片懒加载占位符 */
.industry-card img[loading="lazy"] {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 2s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* 打印样式 */
@media print {
    .industry-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #e5e7eb;
    }
    
    .search-section,
    .category-nav-section .p-4 {
        display: none;
    }
}
