/* 广州知识产权交易中心 - 公共样式 */
:root {
  --theme: #1b5395;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: "Microsoft YaHei", "PingFang SC", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; background: #f5f5f5; color: #333; font-size: 14px; line-height: 1.6; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 0px; }
.clearfix:after { content: ""; display: table; clear: both; }

/* Header */
.gipx-header { background: url('../images/index-bg.png'); box-shadow: 0 2px 8px rgba(0,0,0,0.08); width: 100%; background-repeat: no-repeat; background-position: center; background-size: cover}
.header-top { display: flex; justify-content: space-between; align-items: center; padding: 30px 0; }
.header-logo a { display: flex; align-items: center; text-decoration: none; }
 .logo-img { height: 80px; width: auto; }
.header-search { display: flex;    align-items: center; }
.header-search input { width: 180px; height: 42px; border: 2px solid var(--theme); border-right: none; padding: 0 16px; font-size: 14px; outline: none; border-radius: 4px 0 0 4px; }
.header-search button { width: 65px; height: 42px; background: var(--theme); color: #fff; border: none; font-size: 16px; cursor: pointer; border-radius: 0 4px 4px 0; transition: background 0.3s; }
.header-search button:hover { background: rgba(27, 83, 149, 0.9); }
.header-user { display: flex; align-items: center; gap: 16px; margin-left: 24px; }
.mobile-header-user { display: none; }
.user-name { color: var(--theme); font-size: 14px; font-weight: 500; }
.user-link { color: #fff; font-size: 14px; text-decoration: none; padding: 5px 20px; border: 1px solid #ddd; background:var(--theme) ;border-radius: 4px; transition: all 0.3s; }
.user-link:hover { color: #fff; border-color: rgba(255,255,255,0.15) }

 /* Navigation */
 .gipx-nav { background: linear-gradient(90deg, var(--theme) 0%, rgba(27, 83, 149, 0.85) 100%); width: 100%; }
.nav-list { display: flex; height: 50px; justify-content: space-around; /* 均匀分布 */}
.nav-item { position: relative; }
.nav-item > a { display: block; padding: 0 28px; line-height: 50px; color: #fff; font-size: 16px; font-weight: 500; transition: background 0.3s; }
.nav-item:hover > a, .nav-item.active > a { background: rgba(255,255,255,0.15); }
.nav-sub { position: absolute; top: 100%; left: 0; background: #fff; box-shadow: 0 4px 12px rgba(0,0,0,0.15); display: none; min-width: 160px; z-index: 100; }
.nav-item:hover .nav-sub { display: block; }
.nav-sub a { display: block; padding: 12px 20px; color: #333; font-size: 14px; border-bottom: 1px solid #f0f0f0; }
.nav-sub a:last-child { border-bottom: none; }
 .nav-sub a:hover { background: #fff6f0; color: var(--theme); }

 /* Section Title */
 .section-title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 2px solid var(--theme); }
 .section-title-cn { font-size: 24px; font-weight: bold; color: var(--theme); }
 .section-title-en { font-size: 14px; color: #999; font-weight: normal; letter-spacing: 2px; text-transform: uppercase; }
 .section-more { font-size: 14px; color: #666; }
 .section-more:hover { color: var(--theme); }

 /* Stats */
 .stats-section { background: url('../images/index-bg-1.png'); padding: 40px 0; color: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; text-align: center; }
.stat-item { background: rgba(255,255,255,0.1); padding: 20px; border-radius: 8px; }
.stat-value { font-size: 32px; font-weight: bold; margin-bottom: 8px; }
.stat-label { font-size: 14px; opacity: 0.9; }
.stats-note { text-align: center; margin-top: 16px; font-size: 12px; opacity: 0.8; }

/* Card */
.gipx-card { background: #fff; border-radius: 8px; padding: 24px; margin-bottom: 24px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.gipx-card-title { font-size: 18px; font-weight: bold; color: #333; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 2px solid var(--theme); display: flex; justify-content: space-between; align-items: center; }

/* Table */
.gipx-table { width: 100%; border-collapse: collapse; }
.gipx-table th { background: #fafafa; padding: 14px 16px; text-align: left; font-weight: 600; color: #333; border-bottom: 2px solid var(--theme); font-size: 14px; }
.gipx-table td { padding: 14px 16px; border-bottom: 1px solid #f0f0f0; font-size: 14px; }
.gipx-table tr:hover { background: #fffcfb; }
.gipx-table a { color: var(--theme); }
.gipx-table a:hover { text-decoration: underline; }
.gipx-table .price { color: #e74c3c; font-weight: bold; font-size: 16px; }

/* Tabs */
.gipx-tabs { display: flex; border-bottom: 2px solid #eee; margin-bottom: 20px; }
.gipx-tab { padding: 12px 24px; cursor: pointer; font-size: 16px; color: #666; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all 0.3s; }
.gipx-tab:hover { color: var(--theme); }
.gipx-tab.active { color: var(--theme); border-bottom-color: var(--theme); font-weight: 600; }
.gipx-tab-content { display: none; }
.gipx-tab-content.active { display: block; }

/* News List */
.news-list { }
.news-item { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid #f0f0f0; transition: background 0.3s; }
.news-item:hover { background: #fffcfb; margin: 0 -24px; padding: 14px 24px; }
.news-item:last-child { border-bottom: none; }
.news-item a { flex: 1; color: #333; font-size: 15px; }
.news-item a:hover { color: var(--theme); }
.news-date { color: #999; font-size: 13px; white-space: nowrap; margin-left: 20px; }

/* Partners */
.partner-grid { display: flex; flex-wrap: wrap; gap: 20px; }
.partner-item { width: calc(16.66% - 20px); min-width: 150px; padding: 16px; background: #fafafa; border-radius: 6px; text-align: center; border: 1px solid #eee; }
.partner-item img { max-width: 100%; max-height: 50px; object-fit: contain; }
.partner-item span { display: block; margin-top: 8px; font-size: 13px; color: #666; }

/* Footer */
.gipx-footer { background: #2a2a2a; color: #ccc; padding: 50px 0 25px; margin-top: 60px; border-top: 4px solid var(--theme); }
.footer-top { display: grid; grid-template-columns: repeat(2, 1fr); gap: 60px; margin-bottom: 30px; }
.footer-title { color: #fff; font-size: 18px; font-weight: bold; margin-bottom: 20px; position: relative; padding-bottom: 10px; }
.footer-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--theme);
}
.footer-item { margin-bottom: 12px; font-size: 14px; line-height: 1.8; }
.footer-contact { border-top: 1px solid #444; padding-top: 20px; margin-top: 20px; }
.footer-bottom { text-align: center; padding-top: 25px; border-top: 1px solid #444; font-size: 14px; letter-spacing: 1px; }
.footer-bottom a { color: #999; margin: 0 10px; }
.footer-bottom a:hover { color: var(--theme); }

/* Pagination */
/* 分页容器基础样式 */
/* 分页容器 */
.pagination {
    display: flex;
    justify-content: center;
    margin: 30px 0;
    font-family: "Microsoft YaHei", "微软雅黑", sans-serif;
}

/* 分页列表 */
.pagination ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

/* 分页项 */
.pagination li {
    margin: 0;
}

/* 链接和文本样式 */
.pagination li a,
.pagination li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 15px;
    font-size: 14px;
    line-height: 1;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s ease;
    border: 1px solid #d9d9d9;
    background: #fff;
    color: #333;
    white-space: nowrap;
}

/* 鼠标悬停效果 */
.pagination li a:hover {
    color: #1890ff;
    border-color: #1890ff;
    background-color: #f0f7ff;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(24, 144, 255, 0.1);
}

/* 当前页 */
.pagination li.active span {
    color: #fff;
    background-color: #1890ff;
    border-color: #1890ff;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(24, 144, 255, 0.2);
}

/* 禁用状态 */
.pagination li.disabled span {
    color: #999;
    background-color: #f5f5f5;
    border-color: #d9d9d9;
    cursor: not-allowed;
    opacity: 0.6;
}


@media (max-width: 1200px) {
    .footer-top{ padding: 0 15px; }
    
}


/* 响应式设计 */
@media (max-width: 768px) {
    .pagination li a,
    .pagination li span {
        min-width: 36px;
        height: 36px;
        padding: 0 12px;
        font-size: 13px;
    }
    
    .pagination li:first-child a,
    .pagination li:first-child span,
    .pagination li:last-child a,
    .pagination li:last-child span {
        min-width: 70px;
    }
}

@media (max-width: 480px) {
    .pagination ul {
        gap: 5px;
    }
    
    .pagination li a,
    .pagination li span {
        min-width: 32px;
        height: 32px;
        padding: 0 8px;
    }
    

}
/* Status Tags */
.status-tag { display: inline-block; padding: 4px 12px; border-radius: 4px; font-size: 12px; font-weight: 500; }
.status-1 { background: #fff6f0; color: var(--theme); border: 1px solid #ebcfb8; }
.status-2 { background: #f6ffed; color: #52c41a; border: 1px solid #b7eb8f; }
.status-0 { background: #f5f5f5; color: #999; border: 1px solid #ddd; }

/* Detail Page */
.detail-header { background: #fff; padding: 30px; border-radius: 8px; margin-bottom: 20px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.detail-title { font-size: 24px; font-weight: bold; color: #333; margin-bottom: 20px; line-height: 1.4; }
.detail-info { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 20px; background: #fafafa; border-radius: 6px; }
.detail-info-item { }
.detail-info-label { color: #666; font-size: 13px; margin-bottom: 4px; }
.detail-info-value { font-size: 15px; font-weight: 500; color: #333; }
.detail-info-value.price { color: #e74c3c; font-size: 24px; font-weight: bold; }
.detail-content { background: #fff; padding: 30px; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.detail-content h3 { font-size: 18px; color: #333; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid #eee; }
 .detail-content .content { font-size: 15px; line-height: 1.8; color: #555; }
 .back-link { display: inline-block; margin-top: 20px; color: var(--theme); }
 .back-link:hover { text-decoration: underline; }

 /* Filter */
 .filter-bar { background: #fff; padding: 20px; border-radius: 8px; margin-bottom: 20px; }
 .filter-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
 .filter-label { font-weight: 600; color: #333; }
 .filter-options { display: flex; gap: 10px; flex-wrap: wrap; }
 .filter-option { padding: 6px 16px; border: 1px solid #ddd; border-radius: 4px; color: #666; font-size: 13px; cursor: pointer; transition: all 0.3s; }
 .filter-option:hover, .filter-option.active { background: var(--theme); color: #fff; border-color: var(--theme); }
 .filter-search { display: flex; gap: 10px; margin-left: auto; }
 .filter-search input { padding: 8px 14px; border: 1px solid #ddd; border-radius: 4px; width: 250px; }
 .filter-search button { padding: 8px 20px; background: var(--theme); color: #fff; border: none; border-radius: 4px; cursor: pointer; }

/* Empty */
.empty { text-align: center; padding: 60px 20px; color: #999; }
.empty-icon { font-size: 48px; margin-bottom: 16px; }

/* Mobile Menu Toggle */
.mobile-menu-toggle { display: none; }
.mobile-menu-overlay { display: none; }

/* Responsive */
@media (max-width: 992px) {
    .header-top { 
        flex-direction: column; 
        gap: 15px; 
        text-align: center;
    }
    .header-search { width: 100%; justify-content: center; }
    .header-search input { flex: 1; max-width: 500px; }
    .stats-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
	 .logo-img { height: 40px; width: auto; margin-left:20px}
     .gipx-nav { position: relative; }
     .header-top {
         flex-direction: row !important;
         align-items: center;
         justify-content: space-between;
         padding: 15px 0;
         gap: 10px;
         text-align: left;
     }
     .header-user { display: none; }
     .mobile-header-user { 
         display: block;
         padding: 15px 0;
         margin-top: 10px;
     }
     .mobile-header-user .user-name {
         display: block;
         margin-bottom: 10px;
         color: #333;
     }
     .mobile-header-user .user-link {
         display: inline-block;
         margin-right: 10px;
         color: #333;
         padding: 5px 10px;
         border-radius: 4px;
         background: #fff;
     }
     .gipx-footer { padding: 30px 0 20px; margin-top: 15px; }
     .footer-top { grid-template-columns: 1fr; gap: 25px; }
     .footer-title { font-size: 16px; }
     .footer-item { font-size: 13px; }
    .mobile-menu-toggle { 
        display: flex; 
        position: relative;
        width: 30px;
        height: 25px;
        flex-direction: column;
        justify-content: space-between;
        cursor: pointer;
        z-index: 1001;
        background: transparent;
		right: 20px;
    }
    .mobile-menu-toggle span {
        display: block;
        width: 100%;
        height: 4px;
        background: var(--theme);
        border-radius: 2px;
        transition: all 0.3s;
    }
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(8px, -9px);
    }
    
    .mobile-menu-overlay {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s;
    }
    .mobile-menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    .nav-list { 
        position: fixed;
        top: 0;
        right: -280px;
        width: 280px;
        height: 100vh;
        background: #fff;
        display: block;
        z-index: 1000;
        padding: 60px 20px 20px;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    }
    .nav-list.mobile-open {
        right: 0;
    }
    .nav-item { 
        text-align: left; 
        border-bottom: 1px solid #f0f0f0;
    }
    .nav-item > a { 
        display: block; 
        padding: 15px 0; 
        line-height: normal; 
        color: #333;
    }
    .nav-item:hover > a, .nav-item.active > a {
        color: var(--theme);
    }
    .nav-item.has-sub .nav-sub { 
        position: static; 
        display: none;
        box-shadow: none;
        padding-left: 15px;
    }
    .nav-item:hover .nav-sub { 
        display: block; 
    }
    .nav-sub a {
        padding: 10px 0;
    }
    
     .header-top { flex-direction: column; gap: 12px; }
     .header-user { gap: 8px; margin-left: 0; margin-top: 5px; }
     .header-search { width: 100%; }
     .header-search input { width: 70%; }
     .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
     .detail-info { grid-template-columns: repeat(2, 1fr); }
	.index-section-title{
		    font-size: 20px!important;
	}
}

@media (max-width: 480px) {
    .user-name { display: none; }
    .header-user { gap: 5px; }
    .user-link { padding: 4px 8px; font-size: 13px; }
    .footer-top { grid-template-columns: 1fr; }
}
