/* 出版社详情页面样式 */

/* 头部样式 */
.publisher-header {
    border-bottom: 1px solid #E5E7EB;
}

.publisher-header img {
    transition: transform 0.3s ease;
}

.publisher-header img:hover {
    transform: scale(1.05);
}

/* 内容区域样式 */
#publisher-intro .prose {
    line-height: 1.8;
}

#publisher-intro .prose p {
    text-align: justify;
}

/* 期刊卡片样式 */
#publisher-products .border {
    transition: all 0.3s ease;
}

#publisher-products .border:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* 出版范畴标签样式 */
#publisher-products .bg-gray-50 {
    transition: all 0.3s ease;
    cursor: pointer;
}

#publisher-products .bg-gray-50:hover {
    background-color: #EBF5FF;
    color: #2563EB;
    transform: scale(1.03);
}

/* 常见问题样式 */
.faq-item {
    transition: all 0.3s ease;
}

.faq-question {
    font-size: 1rem;
    padding: 0.5rem 0;
}

.faq-question:hover {
    color: #2563EB;
}

.faq-question.active i {
    transform: rotate(45deg);
}

.faq-answer {
    animation: slideDown 0.3s ease-out;
    line-height: 1.7;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        max-height: 200px;
        transform: translateY(0);
    }
}

/* 相关出版社样式 */
.related-publisher {
    transition: all 0.3s ease;
}

.related-publisher:hover {
    background-color: #F9FAFB;
}

/* 联系信息样式 */
.text-gray-700 i {
    min-width: 20px;
}

/* 声明样式 */
#publisher-statement p {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* 图表容器样式 */
#publication-trend {
    max-width: 100%;
    height: auto;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .lg:w-3/4, .lg:w-1/4 {
        width: 100%;
    }
    
    .flex.flex-col.lg:flex-row {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .publisher-header .flex.flex-col.md:flex-row {
        flex-direction: column;
        text-align: center;
    }
    
    .publisher-header .flex.items-center.mb-6 {
        flex-direction: column;
        margin-bottom: 1.5rem;
    }
    
    .publisher-header .w-24.h-24 {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .grid.grid-cols-2.md\:grid-cols-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .grid.grid-cols-2.md\:grid-cols-2 {
        grid-template-columns: 1fr;
    }
    
    .grid.grid-cols-2.md\:grid-cols-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .flex.flex-col.md\:flex-row {
        flex-direction: column;
    }
    
    .flex.space-x-4 {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }
    
    .flex.space-x-4 button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .h-24 {
        height: 20;
    }
    
    .h-28 {
        height: 24;
    }
    
    h1.text-3xl {
        font-size: 1.75rem;
    }
    
    h2.text-2xl {
        font-size: 1.5rem;
    }
    
    .grid.grid-cols-2.md\:grid-cols-4 {
        grid-template-columns: 1fr;
    }
    
    .grid.grid-cols-2.md\:grid-cols-3 {
        grid-template-columns: 1fr;
    }
}

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

section {
    animation: fadeIn 0.6s ease-out;
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 悬停效果增强 */
button, a {
    transition: all 0.3s ease;
}

button:hover, a:hover {
    transform: translateY(-1px);
}

/* 卡片阴影效果 */
.bg-white.rounded-xl.shadow-sm {
    transition: box-shadow 0.3s ease;
}

.bg-white.rounded-xl.shadow-sm:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

/* 标签样式优化 */
.bg-blue-100, .bg-green-100, .bg-yellow-100 {
    border-radius: 9999px;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
}

/* 图标颜色统一 */
.text-primary {
    color: #2563EB;
}

.bg-primary {
    background-color: #2563EB;
}

.bg-primary-dark {
    background-color: #1D4ED8;
}

/* 表格样式（如果需要） */
@media print {
    .no-print {
        display: none !important;
    }
    
    section {
        page-break-inside: avoid;
    }
}