/* Tailwind配置 */
@layer utilities {
    .content-auto {
        content-visibility: auto;
    }
    .text-shadow {
        text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }
    .bg-gradient-blue {
        background: linear-gradient(135deg, #0f3460 0%, #1e5f74 100%);
    }
    .scrollbar-hide {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
    .scrollbar-hide::-webkit-scrollbar {
        display: none;
    }
    .animate-fade-in {
        animation: fadeIn 0.8s ease-in-out;
    }
    .animate-slide-up {
        animation: slideUp 0.6s ease-out;
    }
    .animate-slide-in-left {
        animation: slideInLeft 0.8s ease-out;
    }
    .animate-slide-in-right {
        animation: slideInRight 0.8s ease-out;
    }
    .animate-pulse-subtle {
        animation: pulseSubtle 3s ease-in-out infinite;
    }
    .bg-texture-concrete {
        background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI1IiBoZWlnaHQ9IjUiPgo8cmVjdCB3aWR0aD0iNSIgaGVpZ2h0PSI1IiBmaWxsPSIjZmZmZmZmIj48L3JlY3Q+CjxwYXRoIGQ9Ik0wIDVMNSAwWk02IDRMNCA2Wk0tMSAxTDEgLTFaIiBzdHJva2U9IiNmNWY1ZjUiIHN0cm9rZS13aWR0aD0iMSI+PC9wYXRoPgo8L3N2Zz4=');
        background-repeat: repeat;
    }
    .bg-texture-stone {
        background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI2MCIgaGVpZ2h0PSI2MCI+CjxyZWN0IHdpZHRoPSI2MCIgaGVpZ2h0PSI2MCIgZmlsbD0ibm9uZSI+PC9yZWN0Pgo8cmVjdCB3aWR0aD0iNTgiIGhlaWdodD0iNTgiIGZpbGw9IiNmNWY1ZjUiPjwvcmVjdD4KPHJlY3Qgd2lkdGg9IjU1IiBoZWlnaHQ9IjU1IiBmaWxsPSIjZWVlIj48L3JlY3Q+CjxyZWN0IHdpZHRoPSI1MCIgaGVpZ2h0PSI1MCIgZmlsbD0iI2ZkZmRmZCI+PC9yZWN0Pgo8L3N2Zz4=');
        background-repeat: repeat;
        background-size: 120px;
    }
    .card-hover {
        transition: all 0.3s ease;
    }
    .card-hover:hover {
        transform: translateY(-8px);
        box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    }
    .tab-transition {
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
}

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

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

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

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

@keyframes pulseSubtle {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* 全局样式 */
body {
    font-family: 'Inter', sans-serif;
    color: #1f2937;
    background-color: #f9fafb;
    line-height: 1.6;
}

/* 导航栏样式增强 */
#navbar {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

#navbar.scrolled {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* 标题样式 */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
}

h1 {
    letter-spacing: -0.025em;
}

h2 {
    letter-spacing: -0.02em;
}

/* 按钮样式增强 */
button, a.btn {
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

button::after, a.btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0.125rem;
    background-color: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.2s ease;
}

button:hover::after, a.btn:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* 卡片样式 */
.card {
    border-radius: 0.75rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
}

.card:hover {
    border-color: #1e5f74;
}

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

table th {
    background-color: #f3f4f6;
    font-weight: 600;
    text-align: left;
}

table th, table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e5e7eb;
}

table tr:hover {
    background-color: rgba(30, 95, 116, 0.03);
}

/* 表单样式 */
input, textarea, select {
    transition: all 0.2s ease;
}

input:focus, textarea:focus, select:focus {
    box-shadow: 0 0 0 3px rgba(30, 95, 116, 0.2);
    border-color: #1e5f74;
    outline: none;
}

/* 响应式优化 */
@media (max-width: 768px) {
    h1 {
        font-size: 1.875rem;
    }
    h2 {
        font-size: 1.5rem;
    }
    h3 {
        font-size: 1.25rem;
    }
}

/* 页面部分样式 */
#home {
    background-position: center;
    background-size: cover;
    position: relative;
}

#home::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(15, 52, 96, 0.95) 0%, rgba(30, 95, 116, 0.9) 100%);
    z-index: -1;
}

#about, #products, #applications, #tech {
    scroll-margin-top: 80px;
}

/* 页脚样式 */
footer {
    background-color: #0f3460;
    color: white;
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 选项卡样式增强 */
.product-tab, .application-tab {
    position: relative;
    transition: all 0.3s ease;
}

.product-tab.active, .application-tab.active {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* 图标样式 */
.icon-box {
    transition: all 0.3s ease;
}

.icon-box:hover {
    transform: rotate(5deg) scale(1.1);
    background-color: rgba(30, 95, 116, 0.15) !important;
}