/* 自定义工具类 */
@layer utilities {
    .content-auto {
        content-visibility: auto;
    }
    .text-shadow {
        text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }
    .transition-smooth {
        transition: all 0.3s ease;
    }
}

/* 自定义颜色变量 */
:root {
    --color-primary: #06294c;
    --color-secondary: #f5f5f5;
    --color-accent: #2c69a8;
}

/* 通用样式 */
body {
    font-family: 'Inter', system-ui, sans-serif;
}

/* 导航栏样式 */
#navbar {
    transition: all 0.3s ease;
    height: auto;
    min-height: 72px;
}

.navbar.scrolled {
    background-color: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* 页面内容顶部边距，避免被导航栏挡住 */
body > section:first-of-type {
    margin-top: 110px !important;
}

/* 面包屑导航特殊处理 */
section:has(.text-gray-600 > a[href="index.html"]) {
    padding-top: 20px !important;
    margin-top: 100px !important;
}

/* 产品卡片样式 */
.product-item {
    transition: all 0.3s ease;
}

.product-item:hover {
    transform: translateY(-5px);
}

/* 按钮样式 */
.btn-primary {
    background-color: var(--color-primary);
    color: white;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--color-accent);
}

.btn-outline {
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background-color: var(--color-primary);
    color: white;
}

/* 卡片阴影过渡 */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* 回到顶部按钮 */
#back-to-top {
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
}

#back-to-top.show {
    opacity: 1;
    visibility: visible;
}