/* 出版社列表页面样式 */

/* 页面标题 */
.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* 内容区布局 */
.publishers-content {
    padding: 60px 0;
    background-color: #f8f9fa;
}

/* 搜索区域样式 */
.search-container {
    background: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.search-box {
    display: flex;
    gap: 15px;
    align-items: center;
}

.search-box input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.search-btn:hover {
    background: #5a67d8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* 响应式设计 - 搜索区域 */
@media (max-width: 768px) {
    .search-box {
        flex-direction: column;
    }
    
    .search-box input {
        width: 100%;
    }
    
    .search-btn {
        width: 100%;
    }
}

.content-wrapper {
    display: flex;
    gap: 30px;
}

/* 左侧分类导航 */
.sidebar {
    width: 280px;
    flex-shrink: 0;
}

.category-nav {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.category-nav h3 {
    font-size: 1.4rem;
    margin-bottom: 25px;
    color: #333;
    font-weight: 600;
}

.province-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.province-btn {
    display: inline-block;
    padding: 10px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    text-align: center;
    color: #666;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: white;
}

.province-btn:hover {
    border-color: #667eea;
    color: #667eea;
    transform: translateY(-2px);
}

.province-btn.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* 右侧出版社列表 */
.publishers-list {
    flex: 1;
}

.publishers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.publisher-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.publisher-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.publisher-logo-container {
    background: #f8f9fa;
    padding: 30px;
    text-align: center;
}

.publisher-logo {
    max-width: 120px;
    max-height: 80px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.publisher-card:hover .publisher-logo {
    transform: scale(1.1);
}

.publisher-info {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.publisher-info h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: #333;
    font-weight: 600;
}

.publisher-desc {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
    flex: 1;
}

.publisher-meta {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.province-tag {
    background: #e3f2fd;
    color: #1976d2;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
}

.journal-count {
    background: #f1f8e9;
    color: #558b2f;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
}

.view-detail-btn {
    display: inline-block;
    background: #667eea;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.view-detail-btn:hover {
    background: #5a67d8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.pagination ul {
    display: flex;
    gap: 8px;
    background: white;
    padding: 10px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.pagination li {
    transition: all 0.3s ease;
}

.pagination li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    color: #666;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.pagination li:hover:not(.disabled) a {
    background: #f0f0f0;
    color: #667eea;
}

.pagination li.active a {
    background: #667eea;
    color: white;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.pagination li.disabled a {
    opacity: 0.4;
    cursor: not-allowed;
}

/* 出版社详情页面样式 */
.publisher-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px 0;
}

.breadcrumb {
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: white;
    text-decoration: underline;
}

.breadcrumb span {
    color: white;
    font-weight: 500;
}

.publisher-title-container {
    display: flex;
    align-items: center;
    gap: 30px;
}

.publisher-detail-logo {
    max-width: 120px;
    max-height: 80px;
    background: white;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.publisher-header h1 {
    font-size: 2.5rem;
    margin: 0;
    font-weight: 700;
}

.publisher-badges {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

.badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    backdrop-filter: blur(10px);
}

/* 出版社信息区域 */
.publisher-info-section {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.info-wrapper {
    display: flex;
    gap: 40px;
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.publisher-image-gallery {
    width: 45%;
}

.main-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.publisher-main-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.main-image:hover .publisher-main-image {
    transform: scale(1.03);
}

.publisher-basic-info {
    width: 55%;
}

.publisher-basic-info h2 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: #333;
    font-weight: 600;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.info-item {
    display: flex;
    flex-direction: column;
}

.info-item label {
    font-weight: 500;
    color: #666;
    margin-bottom: 5px;
    font-size: 0.95rem;
}

.info-item span {
    color: #333;
    font-size: 1rem;
}

.info-item a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s ease;
}

.info-item a:hover {
    color: #5a67d8;
    text-decoration: underline;
}

/* 本页导航 */
.page-navigation {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.page-navigation nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0;
    margin: 0;
}

.page-navigation nav ul li {
    list-style: none;
}

.page-navigation nav ul li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 15px 20px;
    color: #666;
    font-weight: 500;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
    text-decoration: none;
}

.page-navigation nav ul li a:hover,
.page-navigation nav ul li a:focus {
    color: #3498db;
    background-color: #f8f9fa;
}

.page-navigation nav ul li a.active {
    color: #3498db;
    border-bottom-color: #3498db;
    background-color: #f0f7fc;
}

/* 出版社介绍区域 */
.publisher-intro-section {
    padding: 60px 0;
    background: white;
}

.publisher-intro-section h2,
.submission-section h2,
.related-publishers h2 {
    font-size: 2rem;
    margin-bottom: 40px;
    color: #333;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.publisher-intro-section h2 i,
.submission-section h2 i,
.related-publishers h2 i {
    color: #3498db;
}

.intro-content {
    width: 100%;
}

.intro-text h3 {
    font-size: 1.4rem;
    margin: 30px 0 15px;
    color: #333;
    font-weight: 600;
}

.intro-text h3:first-child {
    margin-top: 0;
}

.intro-text p {
    color: #666;
    line-height: 1.8;
    font-size: 1.05rem;
}

/* 相关出版社推荐 */
.related-publishers {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.related-publishers h2 {
    font-size: 2rem;
    margin-bottom: 40px;
    color: #333;
    font-weight: 600;
}

.publishers-slider {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    padding-bottom: 20px;
}

.publishers-slider::-webkit-scrollbar {
    height: 8px;
}

.publishers-slider::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.publishers-slider::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.publishers-slider::-webkit-scrollbar-thumb:hover {
    background: #667eea;
}

.related-card {
    flex: 0 0 280px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.related-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.related-logo {
    max-width: 100px;
    max-height: 60px;
    margin-bottom: 20px;
    object-fit: contain;
}

.related-card h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #333;
    font-weight: 600;
}

.related-card p {
    color: #666;
    font-size: 0.9rem;
}

/* 选题申报表单样式 */
.submission-section {
    padding: 60px 0;
    background-color: #fff;
}

.submission-form-container {
    background-color: #fff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.submission-form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.section-title.text-center {
    text-align: center;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
    font-size: 1rem;
}

.form-group input,
.form-group textarea {
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #fff;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.required {
    color: #e53e3e;
    font-weight: bold;
}

.form-submit {
    grid-column: 1 / -1;
    display: flex;
    gap: 15px;
    margin-top: 15px;
    justify-content: center;
}

.submit-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    max-width: 200px;
}

.submit-btn:hover {
    background: #5a67d8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.reset-btn {
    background: #e2e8f0;
    color: #4a5568;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    max-width: 200px;
}

.reset-btn:hover {
    background: #cbd5e0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 85, 104, 0.15);
}

/* 响应式设计 - 表单区域 */
@media (max-width: 768px) {
    .submission-form-container {
        padding: 30px 20px;
    }
    
    .submission-form {
        grid-template-columns: 1fr;
    }
    
    .form-submit {
        flex-direction: column;
    }
    
    .submit-btn,
    .reset-btn {
        max-width: 100%;
    }
}

.view-link {
    display: inline-block;
    color: #667eea;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.view-link:hover {
    color: #5a67d8;
    text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .intro-content {
        gap: 40px;
    }
    
    .info-wrapper {
        gap: 30px;
        padding: 30px;
    }
}

@media (max-width: 1024px) {
    .content-wrapper {
        flex-direction: column;
        gap: 40px;
    }
    
    .sidebar {
        width: 100%;
    }
    
    .province-list {
        grid-template-columns: repeat(5, 1fr);
    }
    
    .info-wrapper {
        flex-direction: column;
    }
    
    .publisher-image-gallery,
    .publisher-basic-info {
        width: 100%;
    }
    
    .intro-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .publisher-stats {
        flex-wrap: wrap;
    }
    
    .stat-item {
        flex: 0 0 calc(50% - 10px);
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 40px 0;
    }
    
    .page-header h1 {
        font-size: 2.2rem;
    }
    
    .publishers-content {
        padding: 40px 0;
    }
    
    .publishers-grid {
        grid-template-columns: 1fr;
    }
    
    .province-list {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 480px) {
    .page-header h1 {
        font-size: 1.8rem;
    }
    
    .province-list {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    
    .province-btn {
        padding: 8px 10px;
        font-size: 0.85rem;
    }
    
    .publisher-info {
        padding: 20px;
    }
    
    .pagination ul {
        padding: 8px 15px;
        flex-wrap: wrap;
    }
    
    .pagination li a {
        width: 36px;
        height: 36px;
        font-size: 0.85rem;
    }
}