/* 首页样式 */

/* Banner 轮播 */
.index-banner { position: relative; height: 420px; background: linear-gradient(135deg, var(--theme) 0%, rgba(27, 83, 149, 0.8) 50%, rgba(27, 83, 149, 0.9) 100%); overflow: hidden; }
.index-banner-slides { position: relative; height: 100%; }
.index-banner-slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 0.6s ease-in-out; }
.index-banner-slide.active { opacity: 1; }
.index-banner-inner { position: relative; height: 100%; max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: center; }
.index-banner-content { text-align: center; color: #fff; z-index: 10; }
.index-banner-title { font-size: 56px; font-weight: 700; margin-bottom: 16px; line-height: 1.2; }
.index-banner-subtitle { font-size: 22px; opacity: 0.95; margin-bottom: 32px; }
.index-banner-btn { display: inline-block; padding: 16px 48px; background: #fff; color: var(--theme); font-size: 18px; font-weight: 600; border-radius: 30px; text-decoration: none; transition: all 0.3s; }
.index-banner-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.2); }
.index-banner-dots { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 10; }
.index-banner-dot { width: 12px; height: 12px; background: rgba(255,255,255,0.4); border-radius: 50%; cursor: pointer; transition: all 0.3s; }
.index-banner-dot:hover, .index-banner-dot.active { background: #fff; transform: scale(1.2); }

/* 快捷入口 */
.index-quick-nav { padding: 40px 0; background: #fff; }
.index-quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.index-quick-item { display: flex; flex-direction: column; align-items: center; padding: 28px 16px; border-radius: 0px; text-decoration: none; color: #333; transition: all 0.3s; border: 1px solid #f0f0f0; }
.index-quick-item:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(27, 83, 149, 0.15); border-color: var(--theme); }
.index-quick-icon { width: 80px; height: 80px;border-radius: 16px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; font-size: 28px; color: #fff; }
.index-quick-title { font-size: 20px; font-weight: 600; color: #333; }

/* Stats Section */
.index-stats-section { background: url('../images/index-bg-1.png'); padding: 25px 0; }
.index-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.index-stat-item { text-align: center; color: #fff; background: rgba(255,255,255,0.1); padding: 24px 16px; border-radius: 0px; backdrop-filter: blur(10px); }
.index-stat-value { font-size: 40px; font-weight: 700; margin-bottom: 8px; }
.index-stat-label { font-size: 16px; opacity: 0.95; font-weight: 500; }

/* Section */
.index-section { background: #fff; border-radius: 0px; padding: 32px; margin-bottom: 20px; box-shadow: 0 4px 12px rgba(0,0,0,0.05); }
.index-section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 2px solid var(--theme); }
.index-section-title { font-size: 24px; font-weight: 700; color: var(--theme); display: flex; align-items: center; }
.index-section-title::before { content: ''; width: 6px; height: 24px; background: var(--theme); margin-right: 12px; border-radius: 3px; }
.index-section-more { font-size: 14px; color: var(--theme); text-decoration: none; font-weight: 500; }
.index-section-more:hover { text-decoration: underline; }

/* 资讯公告 - 左右两栏 */
.index-info-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.index-info-panel { background: #fff; border-radius: 0px; padding: 32px; box-shadow: 0 4px 12px rgba(0,0,0,0.05); }
.index-info-panel-title { font-size: 24px; font-weight: 700; color: var(--theme); margin-bottom: 16px; padding-bottom: 12px; border-bottom: 2px solid var(--theme); }

/* Tab切换 */
.index-info-tabs { display: flex; gap: 0; margin-bottom: 16px; border-bottom: 2px solid #f0f0f0; }
.index-info-tab { padding: 10px 20px; font-size: 16px; color: #666; cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px; transition: all 0.3s; white-space: nowrap; }
.index-info-tab:hover { color: var(--theme); }
.index-info-tab.active { color: var(--theme); border-bottom-color: var(--theme); font-weight: 600; }
.index-info-tab-content { display: none; }
.index-info-tab-content.active { display: block; }

/* 列表 */
 .index-info-list { }
 .index-info-item { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px dashed #f0f0f0; transition: background 0.3s; }
 .index-info-item:hover { background: rgba(27, 83, 149, 0.05); margin: 0 -32px; padding: 12px 32px; border-radius: 6px; }
 .index-info-item:last-child { border-bottom: none; }
 .index-info-item a { flex: 1; color: #333; font-size: 15px; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;width:100px}
 .index-info-item a:hover { color: var(--theme); }
 .index-info-date { color: #999; font-size: 13px; white-space: nowrap; margin-left: 16px; }
 .index-info-more { text-align: center; margin-top: 20px; }
 .index-info-more a { display: inline-block; padding: 10px 40px; background: #f5f5f5; color: #999; text-decoration: none; font-size: 16px; transition: all 0.3s; border-radius: 4px; }
 .index-info-more a:hover { background: var(--theme); color: #fff; }

 /* Patent List */
 .index-patent-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
 .index-patent-card { border: 1px solid #e8e8e8; border-radius: 0px; padding: 24px; transition: all 0.3s; background: #fafafa; position: relative; overflow: hidden; }
 .index-patent-card::before { content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 100%; background: var(--theme); transform: scaleY(0); transition: transform 0.3s; }
 .index-patent-card:hover { box-shadow: 0 8px 24px rgba(27, 83, 149, 0.15);  border-color: var(--theme); background: #fff; }
 .index-patent-card:hover::before { transform: scaleY(1); }
 .index-patent-title { font-size: 18px; font-weight: 600; margin-bottom: 16px; color: var(--theme); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
 .index-patent-info { display: flex; justify-content: space-between; font-size: 14px; color: #666; margin-top:5px; }
 .index-patent-info strong { color: #333; font-weight: 600; }
 .index-patent-price { color: #ff4d4f; font-weight: 700; font-size: 20px; }

 /* Partners 轮播 - 2行5列 */
 .index-partner-section { position: relative; overflow: hidden; padding: 0 60px; margin-bottom: 20px; }
 .index-partner-viewport { overflow: hidden; width: 100%; user-select: none; -webkit-user-select: none; }
 .index-partner-wrapper { display: flex; transition: transform 0.5s ease-in-out; }
 .index-partner-slide { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; min-width: 100%; padding: 10px 0; }
 .index-partner-item { height: 80px; padding: 12px; background: #fff; border-radius: 8px; border: 1px solid #e8e8e8; text-align: center; transition: all 0.3s; display: flex; align-items: center; justify-content: center; }
 .index-partner-item:hover { transform: translateY(-4px); box-shadow: 0 8px 20px rgba(0,0,0,0.08); border-color: var(--theme); }
 .index-partner-item img { height: 45px; max-width: 100%; display: block; object-fit: contain; }
 .index-partner-item span { display: block; margin-top: 8px; font-size: 13px; color: #666; }
 .index-partner-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; background: #fff; border: 2px solid var(--theme); border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 10; transition: all 0.3s; font-size: 20px; color: var(--theme); }
 .index-partner-arrow:hover { background: var(--theme); color: #fff; }
.index-partner-arrow.prev { left: 0; }
.index-partner-arrow.next { right: 0; }



@media (max-width: 992px) {
    .index-banner { height: 320px; }
    .index-banner-title { font-size: 36px; }
    .index-banner-subtitle { font-size: 16px; }
    .index-quick-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
    .index-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .index-patent-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .index-info-wrapper { grid-template-columns: 1fr; gap: 20px; }
    .index-partner-slide { grid-template-columns: repeat(3, 1fr); }
    .index-partner-section { padding: 0 40px; }
}

@media (max-width: 768px) {
    .index-banner { height: 240px; }
    .index-banner-content { padding: 0 20px; }
    .index-banner-title { font-size: 24px; }
    .index-banner-subtitle { font-size: 14px; margin-bottom: 20px; }
    .index-banner-btn { padding: 10px 30px; font-size: 14px; }
    .index-quick-nav { padding: 20px 0; }
    .index-quick-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .index-quick-item { padding: 20px 10px; }
    .index-quick-icon { width: 50px; height: 50px; font-size: 22px; }
    .index-quick-title { font-size: 14px; }
    .index-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .index-stat-item { padding: 16px 10px; }
    .index-stat-value { font-size: 24px; }
    .index-stat-label { font-size: 13px; }
    .index-section { padding: 20px 15px; }
    .index-patent-grid { grid-template-columns: 1fr; }
     .index-info-wrapper { grid-template-columns: 1fr; }
     .index-info-panel { padding: 20px 15px; }
     .index-info-tabs { flex-wrap: nowrap; -webkit-overflow-scrolling: touch; gap: 0; }
     .index-info-tab { padding: 8px 12px; font-size: 14px; white-space: nowrap; flex-shrink: 0; }
     .index-info-item .index-info-date { display: none; }
     .index-partner-slide { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .index-partner-section { padding: 0 35px; }
    .index-partner-arrow { width: 30px; height: 30px; font-size: 16px; }
    .index-partner-item { height: 60px; padding: 8px; }
    .index-partner-item img { height: 35px; }
}

@media (max-width: 480px) {
    .index-quick-grid { grid-template-columns: repeat(2, 1fr); }

    .index-partner-slide{ grid-template-columns: repeat(2, 1fr); }
}