/* ========================================
   发表网克隆 - PC 桌面端布局
   主流网站宽度 (1200px) + 固定导航栏
   ======================================== */

/* 全局重置 */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box;
}

body { 
    font-family: "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    background: #f5f5f5;
}

a { 
    text-decoration: none; 
    color: inherit;
    transition: color 0.3s;
}

a:hover { 
    color: #2aa0ea; 
}

.clearfix::after { 
    display: block; 
    content: ''; 
    clear: both; 
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   固定导航栏（仿发表云样式）
   ======================================== */
.main-navigation {
    background: linear-gradient(135deg, #1a95d4 0%, #2aa0ea 100%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.main-navigation.fixed {
    position: fixed;
    top: 42px; /* 重要声明的高度 */
    left: 0;
    right: 0;
    z-index: 1000;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 30px;
}

.site-logo {
    font-size: 26px;
    font-weight: bold;
    color: #fff;
    letter-spacing: 2px;
    white-space: nowrap;
    text-decoration: none;
}

/* 默认状态下"快"字也是白色 */
.site-logo .logo-kuai {
    color: #fff;
    transition: color 0.3s;
}

.site-logo:hover {
    color: #fff;
    text-decoration: none;
}

/* hover 时只有"快"字变红色 */
.site-logo:hover .logo-kuai {
    color: #ff4757;
}

/* head-logo 样式（用于 header.html） */
.head-logo {
    font-size: 26px;
    font-weight: bold;
    color: #fff;
    letter-spacing: 2px;
    white-space: nowrap;
    text-decoration: none;
}

/* 默认状态下"快"字也是白色 */
.head-logo .logo-kuai {
    color: #fff;
    transition: color 0.3s;
}

.head-logo:hover {
    color: #fff;
    text-decoration: none;
}

/* hover 时只有"快"字变红色 */
.head-logo:hover .logo-kuai {
    color: #ff4757;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 5px;
}

.nav-list li a {
    display: block;
    padding: 18px 16px;
    color: #fff;
    font-size: 15px;
    transition: all 0.3s;
    position: relative;
}

.nav-list li a:hover,
.nav-list li a.active {
    background: rgba(255, 255, 255, 0.15);
}

.nav-list li a.active::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: #fff;
    border-radius: 2px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
}

.nav-phone svg {
    flex-shrink: 0;
}

.cart-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 25px;
    color: #fff;
    font-size: 14px;
    transition: background 0.3s;
}

.cart-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* ========================================
   重要声明
   ======================================== */
.important-notice {
    background: #fff8e8;
    border-bottom: 1px solid #ffe4b5;
    padding: 10px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
}

.important-notice.fixed {
    position: fixed;
    top: 48px;
    left: 0;
    right: 0;
    z-index: 999;
}

.notice-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.notice-left {
    flex-shrink: 0;
}

.notice-url-text {
    font-size: 13px;
    font-weight: bold;
    color: #333;
}

.notice-url-number {
    color: #e74c3c;
    font-weight: bold;
}

.notice-center {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    justify-content: center;
}

.notice-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.notice-text {
    font-size: 13px;
    color: #d35400;
    line-height: 1.6;
    text-align: center;
}

/* ========================================
   占位空间，防止内容被固定导航遮挡
   ======================================== */
.nav-placeholder {
    height: 102px; /* 42px notice + 60px navigation */
}

/* ========================================
   大搜索框区域（Hero Section）
   ======================================== */
.hero-search-section {
    background: linear-gradient(135deg, #2aa0ea 0%, #1a95d4 100%);
    padding: 60px 20px;
    text-align: center;
}

.hero-search-section .search-container {
    max-width: 700px;
    margin: 0 auto;
}

.search-title {
    font-size: 32px;
    color: #fff;
    margin-bottom: 10px;
    font-weight: 600;
}

.search-subtitle {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 25px;
}

.search-form {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.search-form .search-input {
    flex: 1;
    height: 48px;
    padding: 0 20px;
    font-size: 15px;
    border: none;
    border-radius: 4px;
    outline: none;
    background: #fff;
    color: #333;
}

.search-form .search-input::placeholder {
    color: #999;
}

.search-form .search-btn {
    width: 110px;
    height: 48px;
    background: #fff;
    color: #1a95d4;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
    justify-content: center;
}

.search-form .search-btn:hover {
    background: #f0f0f0;
}

.hot-tags {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
}

.hot-tags span {
    margin-right: 10px;
}

.hot-tags a {
    display: inline-block;
    color: #fff;
    margin: 0 8px;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    font-size: 13px;
}

.hot-tags a:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* ========================================
   章节通用样式
   ======================================== */
section {
    padding: 40px 0;
}

.section-title {
    font-size: 22px;
    color: #333;
    margin-bottom: 2px;
    font-weight: 600;
    position: relative;
    padding-left: 15px;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: linear-gradient(180deg, #2aa0ea 0%, #1a95d4 100%);
    border-radius: 2px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    position: relative;
}

/* 章节标题底部蓝色装饰线 */
.section-header::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #2aa0ea 0%, #1a95d4 100%);
    border-radius: 1px;
}

.section-more {
    display: flex;
    gap: 15px;
    align-items: center;
}

.section-more a {
    color: #666;
    font-size: 14px;
}

.section-more a:hover {
    color: #2aa0ea;
}

.more-link {
    color: #2aa0ea !important;
    font-weight: 500;
}

/* ========================================
   热门分类
   ======================================== */
.categories-section {
    background: #fff;
}

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

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 25px 15px;
    background: #f9f9f9;
    border-radius: 8px;
    transition: all 0.3s;
}

.category-item:hover {
    background: #2aa0ea;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(42, 160, 234, 0.3);
}

.category-item:hover .category-icon,
.category-item:hover span {
    color: #fff;
}

.category-icon {
    font-size: 36px;
    margin-bottom: 10px;
}

.category-item span {
    font-size: 14px;
    color: #333;
}

/* ========================================
   期刊卡片
   ======================================== */
.journals-section,
.magazines-section,
.sci-section {
    background: #fff;
}

.journal-grid,
.magazine-grid,
.sci-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
}

.journal-card,
.magazine-card,
.sci-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
    padding: 25px 0 15px 0;
}

.journal-card:hover,
.magazine-card:hover,
.sci-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.card-image {
    width: 160px;
    height: 227px;
    margin: 0 auto;
    overflow: hidden;
    background: #f5f5f5;
}

.card-image img {
    width: 160px;
    height: 227px;
    object-fit: cover;
    transition: transform 0.3s;
}

.journal-card:hover .card-image img,
.magazine-card:hover .card-image img,
.sci-card:hover .card-image img {
    transform: scale(1.05);
}

.card-info {
    padding: 12px 15px 0 15px;
    text-align: center;
}

.card-title {
    font-size: 15px;
    margin-bottom: 8px;
    height: auto;
    line-height: 1.4;
}

.card-title a {
    color: #333;
    font-weight: 500;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-level {
    font-size: 13px;
    color: #999;
    margin-bottom: 8px;
}

.card-price {
    font-size: 14px;
    color: #e60000;
    font-weight: 600;
    margin-bottom: 10px;
}

.price {
    color: #e60000;
}

/* ========================================
   服务特色
   ======================================== */
.features-section {
    background: linear-gradient(135deg, #2aa0ea 0%, #1a95d4 100%);
    padding: 50px 0;
}

.features-section .section-title {
    color: #fff;
    text-align: center;
    padding-left: 0;
}

.features-section .section-title::before {
    display: none;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px 20px;
    border-radius: 8px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.feature-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 15px;
    background: #fff;
    color: #2aa0ea;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
}

.feature-card h3 {
    font-size: 18px;
    color: #fff;
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
}

/* ========================================
   精选范文
   ======================================== */
.essays-section {
    background: #fff;
}

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

.essay-card {
    padding: 25px;
    background: #f9f9f9;
    border-radius: 8px;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.essay-card:hover {
    background: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-left-color: #2aa0ea;
    transform: translateX(5px);
}

.essay-card h3 {
    font-size: 16px;
    color: #333;
    margin-bottom: 10px;
}

.essay-card p {
    font-size: 13px;
    color: #666;
    line-height: 1.8;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ========================================
   底部
   ======================================== */
.footer {
    background: #2c3e50;
    color: #fff;
    padding: 40px 0 20px;
}

.footer-links {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-links a {
    display: inline-block;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 15px;
    font-size: 14px;
}

.footer-links a:hover {
    color: #fff;
}

.copyright {
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

.copyright p {
    margin: 5px 0;
}

.copyright p a {
    color: rgba(255, 255, 255, 0.6);
}

.copyright p a:hover {
    color: #fff;
}

/* ========================================
   响应式适配
   ======================================== */
@media screen and (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
    
    .category-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .journal-grid,
    .magazine-grid,
    .sci-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 960px) {
    .container {
        max-width: 720px;
    }
    
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .journal-grid,
    .magazine-grid,
    .sci-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .essays-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-list {
        flex-wrap: wrap;
    }
    
    .nav-list li {
        flex: 0 0 20%;
    }
}

@media screen and (max-width: 720px) {
    .search-title {
        font-size: 24px;
    }
    
    .search-subtitle {
        font-size: 14px;
    }
    
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .journal-grid,
    .magazine-grid,
    .sci-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-list li {
        flex: 0 0 25%;
    }
}

@media screen and (max-width: 480px) {
    .search-form {
        flex-direction: column;
    }
    
    .search-form .search-btn {
        width: 100%;
    }
    
    .hot-tags {
        display: none;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .nav-list li {
        flex: 0 0 33.33%;
    }
}

/* ========================================
   栏目文章列表
   ======================================== */
.category-articles-section {
    background: #f8f9fa;
    padding: 40px 0;
}

.category-block {
    margin-bottom: 50px;
}

.category-block:last-child {
    margin-bottom: 0;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
}

.category-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    position: relative;
    padding-left: 15px;
}

.category-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.category-more {
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
}

.category-more:hover {
    color: #764ba2;
    transform: translateX(5px);
}

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

.article-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.article-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f5f5f5;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

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

.article-info {
    padding: 15px;
}

.article-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: 42px;
}

.article-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.article-title a:hover {
    color: #667eea;
}

.article-level {
    font-size: 12px;
    color: #667eea;
    background: #f0f4ff;
    padding: 3px 8px;
    border-radius: 3px;
    display: inline-block;
    margin-bottom: 5px;
}

.article-issn {
    font-size: 12px;
    color: #999;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    grid-column: 1 / -1;
}

/* 响应式调整 */
@media (max-width: 1200px) {
    .articles-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .category-title {
        font-size: 20px;
    }
    
    .article-image {
        height: 160px;
    }
}

@media (max-width: 480px) {
    .articles-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   右侧浮动工具栏
   ======================================== */
.site-float-bar {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: #00a6dc;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,166,220,0.3);
    z-index: 9999;
    overflow: hidden;
}

.float-item {
    padding: 14px 12px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    cursor: pointer;
    transition: background 0.2s;
}

.float-item:hover {
    background: rgba(255,255,255,0.1);
}

.float-item:last-child {
    border-bottom: none;
}

.float-item a {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #fff;
    text-decoration: none;
    font-size: 11px;
    gap: 4px;
}

.float-item a:hover {
    color: #fff;
}

.float-icon {
    font-size: 18px;
}

/* 响应式 - 小屏幕隐藏浮动工具栏 */
@media (max-width: 768px) {
    .site-float-bar {
        display: none;
    }
}
