/* DrugBank风格搜索框 - 参考DrugBank网站的搜索界面 */

/* 搜索区域容器 */
.search-hero-section {
    background: url('/images/indexbanner.webp') center/cover no-repeat;
    padding: 1rem 0;
    position: relative;
    overflow: hidden;
    min-height: 20vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 添加黑色透明蒙版 */
.search-hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);  /* 40%黑色透明度 */
    z-index: 1;
    pointer-events: none;
}

.search-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="diagonal" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M0,0 L20,20 M20,0 L0,20" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23diagonal)"/></svg>');
    opacity: 0.3;
}

.search-hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 3;  /* 确保内容在最上层 */
    padding: 0 2rem;
}

/* 搜索标题 */
.search-hero-title {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', sans-serif;
    font-size: clamp(1rem, 1.8vw, 1.4rem);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 2rem;
    line-height: 1.2;
    letter-spacing: -0.01em;
    white-space: nowrap;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

/* 搜索框容器 */
.drugbank-search-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    padding: 0.3rem;
    display: flex;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    backdrop-filter: blur(10px);
}

/* 搜索框悬停顶部样式 */
.drugbank-search-container.sticky {
    position: fixed !important;
    top: 80px !important;
    right: 20px !important;
    z-index: 9999 !important;
    max-width: 400px !important;
    margin: 0 !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15) !important;
    backdrop-filter: blur(10px) !important;
    background: rgba(255, 255, 255, 0.95) !important;
    transform: none !important;
}

.drugbank-search-container:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.drugbank-search-container:focus-within {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}



/* 搜索输入框 */
.search-input-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 0 1rem;
}

.search-input {
    width: 100%;
    border: none;
    outline: none;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', sans-serif;
    font-size: 0.9rem;
    color: var(--text-primary);
    background: transparent;
    padding: 0.7rem 0;
}

.search-input::placeholder {
    color: var(--text-muted);
    font-weight: 400;
}

/* 搜索按钮 */
.search-submit-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.7rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
}

.search-submit-btn:hover {
    background: #1e4a7a;
    transform: scale(1.05);
}

.search-submit-btn .search-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .search-hero-section {
        padding: 2rem 0;
        min-height: 50vh;
    }
    
    .search-hero-content {
        padding: 0 1rem;
    }
    
    .drugbank-search-container {
        flex-direction: column;
        gap: 0.5rem;
        padding: 1rem;
    }
    
    .search-category-btn {
        width: 100%;
        justify-content: center;
    }
    
    .search-input-wrapper {
        width: 100%;
        padding: 0;
    }
    
    .search-submit-btn {
        width: 100%;
        padding: 1rem;
    }
}



/* 隐藏原有的大banner */
.header_top {
    display: none !important;
}

/* 调整主内容区域 */
.main_tp2 {
    margin-top: 0;
    padding: 2rem 0;
}

/* DrugBank风格的Tab设计 */
.drugbank-tabs-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.tabs-container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Tab导航 */
.tabs-nav {
    display: flex;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.tab-btn {
    flex: 1;
    padding: 1.5rem 2rem;
    background: none;
    border: none;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.tab-btn:hover {
    color: #2c5aa0;
    background: rgba(44, 90, 160, 0.05);
}

.tab-btn.active {
    color: #2c5aa0;
    background: white;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #2c5aa0;
}

/* Tab内容 */
.tabs-content {
    position: relative;
}

.tab-content {
    display: none;
    padding: 0;
}

.tab-content.active {
    display: flex;
    align-items: center;
    gap: 4rem;
    padding: 3rem;
}

.tab-content-left {
    flex: 1;
}

.tab-title {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.tab-description {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', sans-serif;
    font-size: 1.1rem;
    color: #6c757d;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.tab-features {
    list-style: none;
    padding: 0;
    margin-bottom: 2.5rem;
}

.tab-features li {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', sans-serif;
    font-size: 1rem;
    color: #495057;
}

.check-icon {
    color: #e91e63;
    font-weight: bold;
    margin-right: 0.75rem;
    font-size: 1.1rem;
}

.tab-disclaimer {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', sans-serif;
    font-size: 0.85rem;
    color: #adb5bd;
    margin: 0;
}

/* 右侧窗口样式 */
.tab-content-right {
    flex: 1;
    display: flex;
    justify-content: center;
}

.price-chart-window,
.factory-window,
.market-window {
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    min-width: 400px;
}

.window-header {
    background: #2c3e50;
    color: white;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.window-controls {
    display: flex;
    gap: 0.5rem;
}

.control-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #6c757d;
}

.window-title {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
}

.window-content {
    padding: 1.5rem;
}

.price-item,
.factory-item,
.market-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #f1f3f4;
}

.price-item:last-child,
.factory-item:last-child,
.market-item:last-child {
    border-bottom: none;
}

.product-name,
.factory-name,
.market-title {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: #2c3e50;
}

.price-value {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: #2c5aa0;
}

.price-change {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.price-change.positive {
    color: #28a745;
    background: rgba(40, 167, 69, 0.1);
}

.price-change.negative {
    color: #dc3545;
    background: rgba(220, 53, 69, 0.1);
}

.factory-status,
.market-value {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    background: #e9ecef;
    color: #495057;
}

.factory-status {
    background: #d4edda;
    color: #155724;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .tab-content.active {
        flex-direction: column;
        gap: 2rem;
    }
    
    .tab-title {
        font-size: 2rem;
    }
    
    .tabs-nav {
        flex-direction: column;
    }
    
    .tab-btn {
        padding: 1rem;
    }
    
    .tab-content {
        padding: 2rem 1.5rem;
    }
}

/* 新的2个板块样式 */
.modern-sections {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

/* 产品价格板块 */
.price-section {
    width: 100%;
}

.price-tables-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

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

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

.table-header {
    background: linear-gradient(135deg, #2c5aa0, #1e3a8a);
    color: white;
    padding: 1rem 1.5rem;
}

.category-title {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.table-content {
    padding: 0;
}

.price-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', sans-serif;
}

.price-table thead {
    background: #f8f9fa;
}

.price-table th {
    padding: 1rem 0.75rem;
    text-align: left;
    font-size: 0.85rem;
    font-weight: 600;
    color: #495057;
    border-bottom: 1px solid #e9ecef;
}

.price-table td {
    padding: 0.75rem;
    border-bottom: 1px solid #f1f3f4;
    font-size: 0.9rem;
}

.price-table tr:last-child td {
    border-bottom: none;
}

.product-link {
    color: #2c5aa0;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.product-link:hover {
    color: #1e3a8a;
    text-decoration: underline;
}

.price-value {
    font-weight: 600;
    color: #2c3e50;
}

.change {
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
}

.change.positive {
    color: #28a745;
    background: rgba(40, 167, 69, 0.1);
}

.change.negative {
    color: #dc3545;
    background: rgba(220, 53, 69, 0.1);
}

/* 新闻板块 */
.news-section {
    width: 100%;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1rem;
}

.news-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    overflow: hidden;
}

.news-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.news-link {
    display: block;
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
}

.news-title {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 0.75rem 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-date {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', sans-serif;
    font-size: 0.8rem;
    color: #6c757d;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.date-icon {
    font-style: normal;
    font-size: 0.9rem;
}

/* 板块标题样式 */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e9ecef;
}

.section-title {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
}

.view-more-link {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: #2c5aa0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.view-more-link:hover {
    color: #1e3a8a;
    text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .price-tables-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .modern-sections {
        padding: 2rem 1rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .price-tables-container {
        grid-template-columns: 1fr;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .price-table {
        font-size: 0.8rem;
    }
    
    .price-table th,
    .price-table td {
        padding: 0.5rem 0.25rem;
    }
}

/* 服务介绍板块样式 */
.services-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.section-subtitle {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', sans-serif;
    font-size: 1.1rem;
    color: #6c757d;
    margin: 0;
    font-style: normal;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.service-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f1f3f4;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border-color: #2c5aa0;
}

.service-title {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 0.75rem 0;
    line-height: 1.3;
}

.service-description {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', sans-serif;
    font-size: 1rem;
    color: #6c757d;
    line-height: 1.6;
    margin: 0;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .services-section {
        padding: 2rem 1rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .service-title {
        font-size: 1.2rem;
    }
    
    .service-description {
        font-size: 0.9rem;
    }
}

/* 确保底部可见 */
.footer {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 1 !important;
}
