/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #ffffff;
    color: #1a1a1a;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 导航栏样式 */
.navbar {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 32px;
    height: 32px;
    filter: brightness(0) invert(1);
}

.logo-text {
    font-size: 24px;
    font-weight: bold;
    color: #2563eb;
}

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

.nav-item {
    position: relative;
}

.nav-link {
    color: #1a1a1a;
    text-decoration: none;
    font-size: 16px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s;
}

.nav-link:hover {
    color: #2563eb;
}

.arrow {
    font-size: 10px;
    margin-left: 5px;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    min-width: 180px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    padding: 8px 0;
    margin-top: 5px;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    color: #1a1a1a;
    padding: 10px 20px;
    text-decoration: none;
    display: block;
    transition: background 0.3s;
}

.dropdown-content a:hover {
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
}

.nav-utils {
    display: flex;
    gap: 20px;
    align-items: center;
}

.util-link {
    color: #1a1a1a;
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s;
}

.util-link:hover {
    color: #2563eb;
}

.icon {
    font-size: 18px;
    font-weight: bold;
}

/* 主要内容区域 */
.main-content {
    flex: 1;
}

/* 主页样式（带侧边栏） */
.homepage {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    margin-left: 0;
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* 轮播图样式 */
.hero-carousel {
    position: fixed;
    top: 0;
    left: 250px;
    right: 0;
    width: calc(100% - 250px);
    height: 100vh;
    z-index: 0;
    overflow: hidden;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 1;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    z-index: 1;
}

/* 不同轮播图的背景样式 - Emerging Alien Species 主题 */
.slide-1 {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, #ffffff 30%, rgba(37, 99, 235, 0.08) 70%, #ffffff 100%);
    background-image: 
        url("data:image/svg+xml,%3Csvg width='200' height='200' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M100 50 Q120 70 100 90 Q80 70 100 50' fill='none' stroke='%231e3a8a' stroke-width='2' opacity='0.1'/%3E%3Cpath d='M50 100 Q70 80 90 100 Q70 120 50 100' fill='none' stroke='%231e3a8a' stroke-width='2' opacity='0.08'/%3E%3Cpath d='M150 100 Q130 80 110 100 Q130 120 150 100' fill='none' stroke='%231e3a8a' stroke-width='2' opacity='0.08'/%3E%3C/svg%3E"),
        linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, #ffffff 30%, rgba(37, 99, 235, 0.08) 70%, #ffffff 100%);
    background-size: 200px 200px, 100% 100%;
}

.slide-2 {
    background: linear-gradient(45deg, #ffffff 0%, rgba(30, 64, 175, 0.03) 25%, #ffffff 50%, rgba(30, 64, 175, 0.03) 75%, #ffffff 100%);
    background-image: 
        url("data:image/svg+xml,%3Csvg width='300' height='300' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='150' cy='150' r='80' fill='none' stroke='%231e40af' stroke-width='3' opacity='0.08'/%3E%3Ccircle cx='150' cy='150' r='60' fill='none' stroke='%232563eb' stroke-width='2' opacity='0.06'/%3E%3Ccircle cx='150' cy='150' r='40' fill='none' stroke='%231e3a8a' stroke-width='2' opacity='0.1'/%3E%3Cpath d='M150 70 L150 230 M70 150 L230 150' stroke='%232563eb' stroke-width='1.5' opacity='0.05'/%3E%3C/svg%3E"),
        linear-gradient(45deg, #ffffff 0%, rgba(30, 64, 175, 0.03) 25%, #ffffff 50%, rgba(30, 64, 175, 0.03) 75%, #ffffff 100%);
    background-size: 300px 300px, 100% 100%;
}

.slide-3 {
    background: linear-gradient(180deg, rgba(30, 58, 138, 0.06) 0%, #ffffff 40%, rgba(37, 99, 235, 0.04) 60%, #ffffff 100%);
    background-image: 
        url("data:image/svg+xml,%3Csvg width='250' height='250' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M125 50 L100 120 L150 120 Z' fill='none' stroke='%231e3a8a' stroke-width='2.5' opacity='0.1'/%3E%3Cpath d='M125 130 L100 200 L150 200 Z' fill='none' stroke='%232563eb' stroke-width='2' opacity='0.08'/%3E%3Cpath d='M50 125 L120 100 L120 150 Z' fill='none' stroke='%231e40af' stroke-width='2' opacity='0.08'/%3E%3Cpath d='M200 125 L130 100 L130 150 Z' fill='none' stroke='%231e40af' stroke-width='2' opacity='0.08'/%3E%3C/svg%3E"),
        linear-gradient(180deg, rgba(30, 58, 138, 0.06) 0%, #ffffff 40%, rgba(37, 99, 235, 0.04) 60%, #ffffff 100%);
    background-size: 250px 250px, 100% 100%;
}

.slide-4 {
    background: linear-gradient(225deg, rgba(30, 58, 138, 0.08) 0%, #ffffff 35%, rgba(37, 99, 235, 0.06) 65%, #ffffff 100%);
    background-image: 
        url("data:image/svg+xml,%3Csvg width='280' height='280' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M140 60 Q180 100 140 140 Q100 100 140 60' fill='none' stroke='%231e3a8a' stroke-width='3' opacity='0.12'/%3E%3Cpath d='M60 140 Q100 180 140 140 Q100 100 60 140' fill='none' stroke='%232563eb' stroke-width='2.5' opacity='0.1'/%3E%3Cpath d='M140 140 Q180 100 220 140 Q180 180 140 140' fill='none' stroke='%231e40af' stroke-width='2' opacity='0.08'/%3E%3Cpath d='M140 140 Q100 180 140 220 Q180 180 140 140' fill='none' stroke='%231e40af' stroke-width='2' opacity='0.08'/%3E%3Ccircle cx='140' cy='140' r='25' fill='none' stroke='%231e3a8a' stroke-width='2' opacity='0.15'/%3E%3C/svg%3E"),
        linear-gradient(225deg, rgba(30, 58, 138, 0.08) 0%, #ffffff 35%, rgba(37, 99, 235, 0.06) 65%, #ffffff 100%);
    background-size: 280px 280px, 100% 100%;
}

/* 背景图案装饰 - 增强视觉效果 */
.slide-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(30, 58, 138, 0.12) 0%, transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(37, 99, 235, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 50% 20%, rgba(30, 64, 175, 0.08) 0%, transparent 35%),
        linear-gradient(45deg, transparent 25%, rgba(37, 99, 235, 0.04) 50%, transparent 75%);
    z-index: 0;
    animation: patternMove 25s ease-in-out infinite;
}

@keyframes patternMove {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(20px, 20px) scale(1.1);
    }
}

/* 轮播指示器 */
.carousel-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: scale(1.2);
}

.indicator.active {
    background: #2563eb;
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 10px rgba(37, 99, 235, 0.6);
}

/* 轮播控制按钮 */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(37, 99, 235, 0.5);
    color: #2563eb;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    padding: 0;
}

.carousel-btn svg {
    width: 20px;
    height: 20px;
    display: block;
    flex-shrink: 0;
}

.carousel-btn svg path {
    stroke: #2563eb !important;
    stroke-width: 3 !important;
}

.carousel-btn:hover {
    background: rgba(37, 99, 235, 0.2);
    border-color: #2563eb;
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 0 15px rgba(37, 99, 235, 0.4);
}

.carousel-btn:hover svg path {
    stroke: #1e40af !important;
    stroke-width: 3.5 !important;
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .carousel-prev {
        left: 15px;
    }
    
    .carousel-next {
        right: 15px;
    }
    
    .carousel-indicators {
        bottom: 20px;
    }
    
    .indicator {
        width: 10px;
        height: 10px;
    }
}

.home-content {
    position: relative;
    z-index: 1;
    max-width: 1500px;
    width: 100%;
    margin: 0 auto;
    padding: 60px 40px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 50px;
    align-items: stretch;
    justify-items: center;
    animation: fadeInUp 0.8s ease-out;
    min-height: calc(100vh - 200px);
    box-sizing: border-box;
}

/* 左侧统计 */
.stats-left {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 35px;
    border-radius: 16px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(37, 99, 235, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(37, 99, 235, 0.1);
    transition: all 0.3s ease;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.stats-left:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(37, 99, 235, 0.2), 0 0 0 1px rgba(37, 99, 235, 0.3);
}

.section-title {
    font-size: 32px;
    margin-bottom: 30px;
    color: #2563eb;
}

.stats-bars {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 1;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-label {
    font-size: 12px;
    font-weight: bold;
    color: #000000;
    letter-spacing: 1px;
}

.stat-bar {
    position: relative;
    height: 36px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.stat-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #2563eb 0%, #1e40af 50%, #228B22 100%);
    border-radius: 8px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.stat-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.stat-value {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    font-weight: bold;
    color: #1a1a1a;
}

.stat-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.2) 0%, rgba(30, 64, 175, 0.15) 100%);
    border: 3px solid #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.3), inset 0 0 20px rgba(37, 99, 235, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.stat-circle::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 50%;
    background: linear-gradient(45deg, #2563eb, #1e40af, #2563eb);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-circle:hover {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(37, 99, 235, 0.5), inset 0 0 30px rgba(37, 99, 235, 0.2);
}

.stat-circle:hover::before {
    opacity: 0.3;
}

.stat-circle .stat-value {
    position: static;
    transform: none;
}

/* 中央搜索区域 */
.search-center {
    text-align: center;
    padding: 50px 30px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(37, 99, 235, 0.2);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.search-center:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 50px rgba(37, 99, 235, 0.15);
    border-color: rgba(37, 99, 235, 0.3);
}

.logo-large {
    margin-bottom: 20px;
}

.logo-insect {
    width: 140px;
    height: 140px;
    margin: 0 auto;
    opacity: 0.95;
    filter: drop-shadow(0 0 18px rgba(30, 58, 138, 0.6)) drop-shadow(0 0 30px rgba(30, 64, 175, 0.4));
    transition: all 0.3s ease;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.logo-insect:hover {
    transform: scale(1.1) translateY(-5px);
    filter: drop-shadow(0 0 25px rgba(30, 58, 138, 0.8)) drop-shadow(0 0 40px rgba(30, 64, 175, 0.5));
}

.main-title {
    font-size: 56px;
    font-weight: 800;
    margin: 25px 0;
    letter-spacing: 4px;
    color: #1a1a1a;
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleGlow 3s ease-in-out infinite;
}

@keyframes titleGlow {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.2); }
}

.tagline {
    font-size: 20px;
    color: #000000;
    margin-bottom: 45px;
    font-weight: 300;
    letter-spacing: 1px;
}

.search-form {
    margin-top: 30px;
}

.search-container {
    display: flex;
    max-width: 650px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid rgba(37, 99, 235, 0.3);
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.search-container:focus-within {
    border-color: #2563eb;
    box-shadow: 0 0 30px rgba(37, 99, 235, 0.3), 0 4px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.search-type {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: #1a1a1a;
    border: none;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(37, 99, 235, 0.3);
}

.search-type:hover {
    background: linear-gradient(135deg, #1e40af 0%, #228B22 100%);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
}

.search-input {
    flex: 1;
    background: #e3f2fd;
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: 6px;
    padding: 15px 20px;
    font-size: 16px;
    color: #1a1a1a;
    outline: none;
    transition: all 0.3s;
}

.search-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    background: #bbdefb;
}

.search-input::placeholder {
    color: #000000;
}

.search-btn {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: #1a1a1a;
    border: none;
    padding: 16px 28px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 18px;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(37, 99, 235, 0.3);
    position: relative;
    overflow: hidden;
}

.search-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.search-btn:hover::before {
    width: 300px;
    height: 300px;
}

.search-btn:hover {
    background: linear-gradient(135deg, #1e40af 0%, #228B22 100%);
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.5);
    transform: scale(1.05);
}

.search-icon {
    font-size: 20px;
}

/* 右侧各目统计 */
.orders-right {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 35px;
    border-radius: 16px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(37, 99, 235, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(37, 99, 235, 0.1);
    transition: all 0.3s ease;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.orders-right:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(37, 99, 235, 0.2), 0 0 0 1px rgba(37, 99, 235, 0.3);
}

.orders-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
    flex: 1;
    justify-content: center;
}

.order-item {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}

.order-label {
    font-size: 12px;
    font-weight: bold;
    color: #000000;
    min-width: 70px;
    text-align: right;
}

.order-bar {
    flex: 1;
    position: relative;
    height: 30px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(37, 99, 235, 0.2);
    max-width: 85%;
}

.order-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #2563eb 0%, #1e40af 50%, #228B22 100%);
    border-radius: 8px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 15px rgba(37, 99, 235, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.order-value {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    font-weight: bold;
    color: #1a1a1a;
}

.orders-title {
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    color: #2563eb;
    margin-top: 20px;
}

/* 統計卡片模組 */
.stats-cards-section {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1500px;
    margin: 60px auto 0;
    padding: 0 40px 60px;
    box-sizing: border-box;
}

.stats-cards-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.stats-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    position: relative;
    overflow: hidden;
}

.stats-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2563eb 0%, #1e40af 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.stats-card:hover::before {
    transform: scaleX(1);
}

.stats-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.stats-card-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.stats-card-icon svg {
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease;
}

.stats-card:hover .stats-card-icon svg {
    transform: scale(1.1);
}

.stats-card-number {
    font-size: 42px;
    font-weight: 700;
    color: #1a1f3a;
    line-height: 1.2;
    letter-spacing: -1px;
}

.stats-card-label {
    font-size: 16px;
    font-weight: 600;
    color: #000000;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 數據庫更新歷史模組 */
.update-history-section {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1500px;
    margin: 80px auto 0;
    padding: 0 40px 80px;
    box-sizing: border-box;
}

.update-history-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
    animation: fadeInUp 0.8s ease-out 0.5s both;
}

.update-history-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.update-history-header {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.update-history-tag {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.15) 0%, rgba(30, 64, 175, 0.1) 100%);
    border: 1px solid rgba(37, 99, 235, 0.3);
    border-radius: 20px;
    color: #2563eb;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    width: fit-content;
}

.update-history-title {
    font-size: 48px;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1.2;
    margin: 0;
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.update-history-subtitle {
    font-size: 18px;
    color: #000000;
    font-weight: 300;
    margin: 0;
    line-height: 1.6;
}

.update-history-items {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.update-history-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 25px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    border: 1px solid rgba(37, 99, 235, 0.15);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.update-history-item:hover {
    transform: translateX(10px);
    border-color: rgba(37, 99, 235, 0.4);
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.15);
}

.update-history-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(30, 64, 175, 0.05) 100%);
    border-radius: 12px;
    border: 1px solid rgba(37, 99, 235, 0.2);
    padding: 10px;
    transition: all 0.3s ease;
}

.update-history-item:hover .update-history-icon {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.2) 0%, rgba(30, 64, 175, 0.1) 100%);
    border-color: rgba(37, 99, 235, 0.4);
    transform: scale(1.1);
}

.update-history-icon svg {
    width: 100%;
    height: 100%;
}

.update-history-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.update-history-item-title {
    font-size: 20px;
    font-weight: 700;
    color: #2563eb;
    margin: 0;
}

.update-history-item-date {
    font-size: 14px;
    color: #000000;
    font-weight: 500;
    margin: 0;
}

.update-history-item-description {
    font-size: 16px;
    color: #4a5568;
    line-height: 1.6;
    margin: 0;
}

/* 右側新聞圖片 */
.update-history-image {
    position: relative;
    height: 100%;
    min-height: 500px;
}

.news-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

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

.news-image-container:hover .news-image {
    transform: scale(1.05);
}

.news-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-placeholder svg {
    width: 100%;
    height: 100%;
}

.news-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.8) 50%, transparent 100%);
    padding: 40px 30px 30px;
    color: #1a1a1a;
}

.news-badge {
    display: inline-block;
    padding: 6px 16px;
    background: #2563eb;
    color: #1a1a1a;
    font-size: 12px;
    font-weight: 700;
    border-radius: 20px;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.news-content h3 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: #1a1a1a;
}

.news-content p {
    font-size: 16px;
    color: #4a5568;
    margin: 0;
    line-height: 1.6;
}

/* Organism Distribution Section - 饼图和筛选列表模块 */
.organism-distribution-section {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1500px;
    margin: 80px auto 0;
    padding: 0 40px 80px;
    box-sizing: border-box;
}

.organism-distribution-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
    background: #ffffff;
    padding: 50px;
    border-radius: 20px;
    border: 1px solid rgba(37, 99, 235, 0.15);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.organism-pie-chart {
    width: 100%;
    min-height: 500px;
    position: relative;
    display: block;
}

#organismPieChart {
    width: 100% !important;
    height: 500px !important;
    min-height: 500px !important;
    display: block !important;
    background: #4a5568;
    border-radius: 8px;
    visibility: visible !important;
    opacity: 1 !important;
}

.organism-filter-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.filter-list-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.filter-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #2563eb;
    flex-shrink: 0;
}

.filter-item label {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background: #f3f4f6;
    border-radius: 6px;
    color: #1a1a1a;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    flex: 1;
    min-height: 36px;
}

.filter-item input[type="checkbox"]:checked + label {
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
    font-weight: 500;
}

.filter-item label:hover {
    background: #e5e7eb;
}

.filter-item input[type="checkbox"]:checked + label:hover {
    background: rgba(37, 99, 235, 0.15);
}

/* 甜甜圈圖模組 */
.donut-chart-section {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1500px;
    margin: 80px auto 0;
    padding: 0 40px 80px;
    box-sizing: border-box;
}

.donut-chart-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 50px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(37, 99, 235, 0.15);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 0.8s ease-out 0.7s both;
}

.donut-chart-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    aspect-ratio: 1;
}

.donut-chart-wrapper canvas {
    width: 100% !important;
    height: 100% !important;
}

.donut-chart-legend {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    align-content: start;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.legend-item:hover {
    background: rgba(37, 99, 235, 0.1);
    transform: translateX(5px);
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    flex-shrink: 0;
    border: 2px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    background-color: #2563eb; /* 默认颜色，会被JavaScript覆盖 */
}

.legend-item:hover .legend-color {
    transform: scale(1.2);
    box-shadow: 0 0 10px currentColor;
}

.legend-label {
    font-size: 14px;
    color: #93c5fd;
    font-weight: 500;
    transition: color 0.3s ease;
}

.legend-item:hover .legend-label {
    color: #60a5fa;
    font-weight: 600;
}

/* 聯繫信息模組 */
.contact-section {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1500px;
    margin: 80px auto 0;
    padding: 0 40px 80px;
    box-sizing: border-box;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #2563eb;
    animation: fadeInUp 0.8s ease-out 0.9s both;
    position: relative;
}

.contact-carousel-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 500px;
    overflow: hidden;
}

.contact-carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

.contact-carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.contact-carousel-slide.active {
    opacity: 1;
    z-index: 1;
}

.contact-carousel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contact-image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.contact-image-placeholder svg {
    width: 100%;
    height: 100%;
}

.contact-carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.contact-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.contact-indicator:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.contact-indicator.active {
    background: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 0 10px rgba(37, 99, 235, 0.6);
}

.contact-info {
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-header {
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon svg {
    width: 100%;
    height: 100%;
}

.contact-title {
    font-size: 28px;
    font-weight: 700;
    color: #2563eb;
    margin: 0;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-label {
    font-size: 14px;
    font-weight: 600;
    color: #000000;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-value {
    font-size: 16px;
    color: #1a1a1a;
    line-height: 1.6;
    word-break: break-word;
}

.contact-value a {
    color: #2563eb;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-value a:hover {
    color: #1e40af;
    text-decoration: underline;
}

.contact-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    background: #2563eb;
    color: #1a1a1a;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    box-shadow: 0 2px 10px rgba(37, 99, 235, 0.3);
    text-decoration: none;
    width: fit-content;
}

.contact-button:hover {
    background: #1e40af;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
}

.contact-button:active {
    transform: translateY(0);
}

.contact-button-icon {
    width: 20px;
    height: 20px;
}

.contact-button span {
    color: #1a1a1a;
}

/* Cite Our Work 模組 */
.cite-section {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1200px;
    margin: 80px auto 0;
    padding: 0 40px 80px;
    box-sizing: border-box;
    background: transparent;
}

.cite-container {
    background: #ffffff;
    border-radius: 12px;
    padding: 60px 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    animation: fadeInUp 0.8s ease-out 1.1s both;
}

.cite-title {
    font-size: 36px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 20px 0;
}

.cite-description {
    font-size: 16px;
    color: #000000;
    margin: 0 0 40px 0;
    line-height: 1.6;
}

.cite-box {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 30px;
    margin: 0 0 30px 0;
    text-align: left;
    max-width: 100%;
    box-sizing: border-box;
}

.cite-text {
    font-size: 15px;
    color: #1a1a1a;
    line-height: 1.8;
    margin: 0;
    word-wrap: break-word;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.cite-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.cite-button {
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    min-width: 160px;
}

.cite-button-primary {
    background: #2563eb;
    color: #1a1a1a;
    border-color: #2563eb;
    box-shadow: 0 2px 10px rgba(37, 99, 235, 0.3);
}

.cite-button-primary:hover {
    background: #1e40af;
    border-color: #1e40af;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
}

.cite-button-secondary {
    background: #ffffff;
    color: #1a1a1a;
    border-color: #e0e0e0;
}

.cite-button-secondary:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
    transform: translateY(-2px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.cite-button:active {
    transform: translateY(0);
}

/* 页脚 */
.footer {
    background: #f8f9fa;
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

.footer p {
    margin: 5px 0;
    color: #000000;
    font-size: 14px;
}

.version {
    color: #2563eb !important;
    font-size: 12px !important;
}

/* 其他页面样式 */
.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 30px;
}

.page-title {
    font-size: 36px;
    margin-bottom: 30px;
    color: #2563eb;
}

.page-content {
    background: #ffffff;
    padding: 30px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    line-height: 1.8;
}

/* 模块页面样式 */
.module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.module-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 35px;
    border-radius: 16px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(37, 99, 235, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.module-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.1), transparent);
    transition: left 0.5s ease;
}

.module-card:hover::before {
    left: 100%;
}

.module-card:hover {
    border-color: #2563eb;
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px rgba(37, 99, 235, 0.3), 0 0 0 1px rgba(37, 99, 235, 0.4);
}

.module-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #2563eb;
}

.module-card p {
    color: #4a5568;
    line-height: 1.6;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .home-content {
        grid-template-columns: 1fr;
        gap: 30px;
        max-width: 100%;
        padding: 40px 20px;
    }
    
    .stats-left,
    .search-center,
    .orders-right {
        max-width: 600px;
        margin: 0 auto;
    }
    
    .nav-menu {
        gap: 15px;
    }
    
    .stats-cards-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    .stats-cards-section {
        padding: 0 20px 40px;
    }
    
    .update-history-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .update-history-section {
        padding: 0 20px 60px;
    }
    
    .update-history-image {
        min-height: 400px;
    }
    
    .donut-chart-container {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 40px 30px;
    }
    
    .donut-chart-legend {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .donut-chart-section {
        padding: 0 20px 60px;
    }
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .main-title {
        font-size: 32px;
    }
    
    .search-container {
        flex-direction: column;
    }
    
    .search-type {
        width: 100%;
    }
    
    .stats-cards-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .stats-card {
        padding: 30px 20px;
    }
    
    .stats-card-number {
        font-size: 36px;
    }
    
    .stats-card-icon {
        width: 60px;
        height: 60px;
    }
    
    .update-history-title {
        font-size: 36px;
    }
    
    .update-history-container {
        gap: 30px;
    }
    
    .update-history-image {
        min-height: 350px;
    }
}

@media (max-width: 480px) {
    .stats-cards-container {
        grid-template-columns: 1fr;
    }
    
    .update-history-title {
        font-size: 28px;
    }
    
    .update-history-item {
        padding: 20px;
        gap: 15px;
    }
    
    .update-history-icon {
        width: 40px;
        height: 40px;
    }
    
    .update-history-item-title {
        font-size: 18px;
    }
    
    .update-history-item-description {
        font-size: 14px;
    }
    
    .donut-chart-container {
        padding: 30px 20px;
        gap: 30px;
    }
    
    .donut-chart-legend {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .donut-chart-wrapper {
        max-width: 100%;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .contact-carousel-wrapper {
        min-height: 400px;
    }
    
    .contact-info {
        padding: 40px 30px;
    }
    
    .contact-section {
        padding: 0 20px 60px;
    }
}

@media (max-width: 480px) {
    .donut-chart-container {
        padding: 20px 15px;
    }
    
    .legend-item {
        padding: 8px;
    }
    
    .legend-label {
        font-size: 12px;
    }
    
    .contact-info {
        padding: 30px 20px;
    }
    
    .contact-title {
        font-size: 24px;
    }
    
    .contact-carousel-wrapper {
        min-height: 300px;
    }
    
    .cite-container {
        padding: 40px 30px;
    }
    
    .cite-title {
        font-size: 28px;
    }
    
    .cite-section {
        padding: 0 20px 60px;
    }
}

@media (max-width: 480px) {
    .cite-container {
        padding: 30px 20px;
    }
    
    .cite-title {
        font-size: 24px;
    }
    
    .cite-description {
        font-size: 14px;
    }
    
    .cite-box {
        padding: 20px;
    }
    
    .cite-text {
        font-size: 14px;
    }
    
    .cite-button {
        width: 100%;
        min-width: auto;
    }
    
    .cite-buttons {
        flex-direction: column;
    }
}

/* ============================================
   侧边栏导航样式（InsectBase 2.0 风格）
   ============================================ */
.app-layout {
    display: flex;
    min-height: 100vh;
    background: #ffffff;
}

/* 侧边栏 */
.sidebar {
    width: 260px;
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
    border-right: 1px solid rgba(37, 99, 235, 0.2);
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 1000;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    scroll-behavior: auto;
    /* 防止点击时自动滚动 */
    overscroll-behavior: contain;
}


.sidebar-header {
    padding: 25px 20px;
    border-bottom: 1px solid rgba(37, 99, 235, 0.15);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.03) 0%, transparent 100%);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-shapes {
    display: flex;
    gap: 4px;
}

.logo-shape {
    width: 22px;
    height: 22px;
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(37, 99, 235, 0.5);
    animation: pulse 2s ease-in-out infinite;
}

.logo-svg {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.9;
    }
    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

.logo-text {
    color: #2563eb;
    font-size: 18px;
    font-weight: 600;
    font-family: 'Segoe UI', sans-serif;
}

.sidebar-divider {
    height: 1px;
    background: rgba(0, 0, 0, 0.1);
    margin-top: 15px;
}

.sidebar-nav {
    padding: 10px 0;
    /* 防止点击时自动滚动到激活项 */
    scroll-padding-top: 0;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    color: #1a1a1a;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 3px solid transparent;
    cursor: pointer;
    position: relative;
    margin: 2px 0;
}

/* Card style for all nav items - default white */
.sidebar-nav .nav-item:not(.dropdown-item) {
    background: #ffffff !important;
    border: 1px solid rgba(37, 99, 235, 0.2) !important;
    border-left: 1px solid rgba(37, 99, 235, 0.2) !important;
    border-radius: 4px !important;
    margin: 8px 12px !important;
    padding: 16px 20px !important;
}

/* Card style for dropdown items - default white */
.sidebar-nav .nav-item.dropdown-item {
    background: #ffffff !important;
    border: 1px solid rgba(37, 99, 235, 0.2) !important;
    border-left: 1px solid rgba(37, 99, 235, 0.2) !important;
    border-radius: 4px !important;
    margin: 8px 12px !important;
    padding: 0 !important;
}

.sidebar-nav .nav-item.dropdown-item .nav-link-toggle {
    padding: 16px 20px !important;
    display: flex;
    align-items: center;
    width: 100%;
}

.nav-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: linear-gradient(90deg, rgba(37, 99, 235, 0.1), transparent);
    transition: width 0.3s ease;
}

.nav-item:hover::before {
    width: 100%;
}

.nav-item:hover {
    background: rgba(37, 99, 235, 0.08);
    border-left-color: #2563eb;
    transform: translateX(5px);
    color: #2563eb;
}

/* Override default hover for card style nav items */
.sidebar-nav .nav-item:hover {
    transform: translateY(-2px) !important;
}

/* Card style hover effect for all nav items - light gray */
.sidebar-nav .nav-item:not(.dropdown-item):hover {
    background: #f8f9fa !important;
    border-color: rgba(37, 99, 235, 0.3) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

.sidebar-nav .nav-item.dropdown-item:hover {
    border-color: rgba(37, 99, 235, 0.3) !important;
}

.sidebar-nav .nav-item.dropdown-item .nav-link-toggle:hover {
    background: #f8f9fa !important;
}

.nav-item.active {
    background: linear-gradient(90deg, rgba(37, 99, 235, 0.15) 0%, rgba(37, 99, 235, 0.05) 100%);
    border-left-color: #2563eb;
    color: #2563eb;
    font-weight: 600;
}

/* Card style active state for all nav items - blue when active */
.sidebar-nav .nav-item:not(.dropdown-item).active {
    background: rgba(37, 99, 235, 0.1) !important;
    border-color: #2563eb !important;
    color: #2563eb !important;
}

.sidebar-nav .nav-item.dropdown-item.active {
    background: rgba(37, 99, 235, 0.1) !important;
    border-color: #2563eb !important;
}

.sidebar-nav .nav-item.dropdown-item.active .nav-link-toggle {
    background: rgba(37, 99, 235, 0.1) !important;
    color: #2563eb !important;
}

.nav-icon {
    width: 24px;
    text-align: center;
    margin-right: 12px;
    font-size: 18px;
}

/* Card style icon color for all nav items */
.sidebar-nav .nav-item .nav-icon {
    filter: none;
}

.nav-text {
    flex: 1;
    font-size: 14px;
    color: inherit;
}

/* Card style text color for all nav items - black by default, blue when active */
.sidebar-nav .nav-item:not(.dropdown-item) .nav-text {
    color: #1a1a1a !important;
    font-weight: 400 !important;
}

.sidebar-nav .nav-item:not(.dropdown-item).active .nav-text {
    color: #2563eb !important;
    font-weight: 600 !important;
}

.sidebar-nav .nav-item.dropdown-item .nav-link-toggle .nav-text {
    color: #1a1a1a !important;
    font-weight: 400 !important;
}

.sidebar-nav .nav-item.dropdown-item.active .nav-link-toggle .nav-text {
    color: #2563eb !important;
    font-weight: 600 !important;
}

.sidebar-nav .nav-item.dropdown-item .nav-link-toggle .nav-icon {
    filter: none;
}

.nav-arrow {
    font-size: 10px;
    color: #000000;
    transition: transform 0.3s;
}

/* 下拉菜单项 */
.dropdown-item {
    position: relative;
    display: flex;
    flex-direction: column;
}


.nav-link-toggle {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 12px 20px;
    color: #1a1a1a;
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: all 0.3s;
    flex-shrink: 0;
    cursor: pointer;
    pointer-events: auto;
    position: relative;
    z-index: 10;
}

.nav-link-toggle:hover {
    background: rgba(37, 99, 235, 0.08);
    border-left-color: #2563eb;
    color: #2563eb;
}

.nav-link-toggle a {
    color: inherit;
    text-decoration: none;
}

.nav-link-toggle a:hover {
    color: #2563eb;
}

.dropdown-item.active .nav-link-toggle {
    background: rgba(37, 99, 235, 0.1);
    border-left-color: #2563eb;
    color: #2563eb;
}

.dropdown-item.active .nav-arrow {
    transform: rotate(180deg);
}

.dropdown-menu-sidebar {
    display: none !important;
    background: #ffffff !important;
    padding: 8px 0 !important;
    border-top: 1px solid rgba(37, 99, 235, 0.2) !important;
    border-left: 2px solid rgba(37, 99, 235, 0.1) !important;
    margin-left: 0 !important;
    margin-top: 2px !important;
    margin-right: 0 !important;
    border-radius: 0 0 8px 8px !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3) !important;
    animation: slideDown 0.3s ease-out !important;
    position: relative !important;
    left: 0 !important;
    right: 0 !important;
    top: 0 !important;
    z-index: 1000 !important;
    width: 100% !important;
    visibility: hidden !important;
    opacity: 0 !important;
    max-height: 0 !important;
    overflow: hidden !important;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item.active .dropdown-menu-sidebar,
#gene-dropdown.active .dropdown-menu-sidebar,
#gene-dropdown.active #gene-menu,
.dropdown-item.active > .dropdown-menu-sidebar {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    max-height: 500px !important;
    overflow: visible !important;
    height: auto !important;
}

.dropdown-menu-sidebar a {
    display: block;
    padding: 12px 20px 12px 40px;
    color: #1a1a1a;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
    position: relative;
    background: transparent;
    border: none;
    border-left: 2px solid transparent;
}

.dropdown-menu-sidebar a:hover {
    background: rgba(37, 99, 235, 0.08);
    color: #2563eb;
    padding-left: 45px;
}

.dropdown-menu-sidebar a.active {
    background: transparent;
    color: #1a1a1a;
    border-left: 2px solid transparent;
    font-weight: 400;
    padding-left: 40px;
}

/* Gene 下拉列表样式 */
.gene-dropdown-wrapper {
    margin: 5px 0;
    padding: 0 20px;
}

/* Gene Family 下拉列表样式 */
.gene-family-dropdown-wrapper {
    margin: 5px 0;
    padding: 0 20px;
    position: relative;
}

.gene-family-dropdown-header {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: rgba(55, 65, 81, 0.9);
    color: #1a1a1a;
    cursor: pointer;
    user-select: none;
    border-radius: 4px;
    transition: background 0.3s;
    width: 100%;
}

.gene-family-dropdown-header:hover {
    background: rgba(75, 85, 99, 0.9);
}

.gene-family-dropdown-header .nav-icon {
    margin-right: 10px;
    font-size: 16px;
}

.gene-family-dropdown-header .nav-text {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
}

.gene-family-dropdown-arrow {
    font-size: 10px;
    color: #1a1a1a;
    transition: transform 0.3s ease;
    margin-left: auto;
}

.gene-family-dropdown-wrapper.active .gene-family-dropdown-arrow {
    transform: rotate(180deg);
}

.gene-family-dropdown-content {
    display: none !important;
    background: rgba(250, 250, 250, 0.95) !important;
    border-radius: 0 0 4px 4px !important;
    padding: 0 !important;
    margin-top: 2px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    overflow: hidden !important;
    max-height: 0 !important;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out !important;
    visibility: hidden !important;
    opacity: 0 !important;
    position: relative !important;
    width: 100% !important;
    left: 0 !important;
    top: 0 !important;
}

.gene-family-dropdown-wrapper.active .gene-family-dropdown-content,
#gene-family-dropdown.active #gene-family-menu {
    display: block !important;
    max-height: 500px !important;
    padding: 8px 0 !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
}

.gene-family-item {
    display: block;
    padding: 10px 20px;
    color: #1f2937;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s, color 0.2s;
    width: 100%;
}

.gene-family-item:hover {
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
}

.gene-family-item.active {
    background: rgba(37, 99, 235, 0.2);
    color: #2563eb;
    font-weight: 600;
}

.gene-dropdown-header {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: rgba(55, 65, 81, 0.9);
    color: #1a1a1a;
    cursor: pointer;
    user-select: none;
    border-radius: 4px;
    transition: background 0.3s;
}

.gene-dropdown-header:hover {
    background: rgba(75, 85, 99, 0.9);
}

.gene-dropdown-header .nav-icon {
    margin-right: 10px;
    font-size: 16px;
}

.gene-dropdown-header .nav-text {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
}

.gene-dropdown-arrow {
    font-size: 10px;
    color: #1a1a1a;
    transition: transform 0.3s ease;
    margin-left: auto;
}

.gene-dropdown-wrapper.active .gene-dropdown-arrow {
    transform: rotate(180deg);
}

.gene-dropdown-content {
    display: none !important;
    background: rgba(250, 250, 250, 0.95) !important;
    border-radius: 0 0 4px 4px !important;
    padding: 8px 0 !important;
    margin-top: 2px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    overflow: hidden !important;
    max-height: 0 !important;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

.gene-dropdown-wrapper.active .gene-dropdown-content,
#gene-dropdown.active #gene-menu {
    display: block !important;
    max-height: 500px !important;
    padding: 8px 0 !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
}

.gene-dropdown-content a {
    display: block;
    padding: 10px 20px;
    color: #1f2937;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s;
}

.gene-dropdown-content a:hover {
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
}

/* 主内容区域（带侧边栏） */
.main-content-with-sidebar {
    margin-left: 250px;
    flex: 1;
    min-height: 100vh;
    background: #ffffff;
}

/* 移动端顶部导航 */
.top-navbar-mobile {
    display: none;
    background: #ffffff;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.mobile-nav-toggle {
    cursor: pointer;
    color: #1a1a1a;
    font-size: 24px;
}

.mobile-logo {
    color: #2563eb;
    font-weight: 600;
    margin-left: 15px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s;
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-content-with-sidebar {
        margin-left: 0;
    }
    
    .top-navbar-mobile {
        display: flex;
        align-items: center;
    }
}

/* ============================================
   通用页面样式
   ============================================ */
.page-container {
    padding: 50px 40px;
    max-width: 1400px;
    margin: 0 auto;
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-title {
    font-size: 42px;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 35px;
    padding-bottom: 20px;
    border-bottom: 3px solid transparent;
    position: relative;
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, #2563eb, #1e40af);
    border-radius: 2px;
}

.page-content {
    color: #1a1a1a;
    line-height: 1.8;
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.module-card {
    background: #ffffff;
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.module-card:hover {
    border-color: rgba(37, 99, 235, 0.4);
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.15);
    transform: translateY(-2px);
}

.organism-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: 16px;
    padding: 25px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.organism-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #2563eb, #1e40af, #2563eb);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.organism-card:hover::after {
    transform: scaleX(1);
}

.organism-card:hover {
    border-color: rgba(37, 99, 235, 0.5);
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 35px rgba(37, 99, 235, 0.25), 0 0 0 1px rgba(37, 99, 235, 0.3);
}

.filter-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid rgba(37, 99, 235, 0.3);
    border-radius: 8px;
    color: #1a1a1a;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.filter-btn:hover {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.15) 0%, rgba(37, 99, 235, 0.05) 100%);
    border-color: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.filter-btn.active {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: #1a1a1a;
    border-color: #2563eb;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.4);
    font-weight: 600;
}
