@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Montserrat:wght@400;500;600;700;800&display=swap');

@layer utilities {
    .content-auto {
        content-visibility: auto;
    }

    .text-shadow {
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    .card-hover {
        transition: all 0.3s ease;
    }

    .card-hover:hover {
        transform: translateY(-4px);
    }

    .nav-active {
        position: relative;
    }

    .nav-active::after {
        content: '';
        position: absolute;
        bottom: -6px;
        left: 0;
        width: 100%;
        height: 3px;
        background-color: #ffe500;
        border-radius: 3px;
    }

    .parameter-label {
        color: #666;
        font-weight: 500;
    }

    .parameter-value {
        color: #00316e;
        font-weight: 600;
    }

    .expand-content {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s ease;
    }

    .expand-content.open {
        max-height: 2000px;
    }

    .expand-icon {
        transition: transform 0.3s ease;
    }

    .expand-icon.open {
        transform: rotate(180deg);
    }
}

html {
    scroll-behavior: smooth;
}

/* 动画效果 */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 表格样式优化 */
.parameter-table {
    border-collapse: collapse;
    width: 100%;
}

.parameter-table tr {
    border-bottom: 1px solid #eee;
}

.parameter-table td {
    padding: 6px 0;
}

/* 详细参数表格样式 */
.detailed-parameter-table {
    border-collapse: collapse;
    width: 100%;
}

.detailed-parameter-table tr {
    border-bottom: 1px solid #f0f0f0;
}

.detailed-parameter-table td,
.detailed-parameter-table th {
    padding: 10px 12px;
    text-align: left;
}

.detailed-parameter-table th {
    background-color: #f5f7fa;
    color: #00316e;
    font-weight: 600;
    border-right: 1px solid #e0e0e0;
}

.detailed-parameter-table td {
    border-right: 1px solid #f0f0f0;
}

.detailed-parameter-table tr:last-child {
    border-bottom: none;
}

.detailed-parameter-table td:last-child,
.detailed-parameter-table th:last-child {
    border-right: none;
}

/* 产品筛选器样式 */
.filter-panel {
    background-color: #f5f7fa;
    border-radius: 8px;
}

.filter-title {
    color: #00316e;
    font-weight: 600;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

/* 移动端下拉菜单交互 */
.mobile-dropdown button {
    outline: none;
}

.mobile-dropdown-content a {
    font-size: 0.95rem;
}

.bg-gradient-blue {
    background: linear-gradient(135deg, #00316e 0%, #0a5cad 100%);
}

/* 拓展内容动画 */
.expand-trigger {
    cursor: pointer;
}

/* 搜索框样式 */
.search-input {
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.search-input:focus {
    border-color: #00316e;
    box-shadow: 0 0 0 2px rgba(0, 49, 110, 0.1);
    outline: none;
}
