/* 自定义样式补充 */

/* 基础重置和通用样式 */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* 响应式图片 */
img {
    max-width: 100%;
    height: auto;
}

/* 容器样式 */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* 按钮样式增强 */
.btn-primary {
    background-color: #0A5CAD;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-weight: 500;
}

.btn-primary:hover {
    background-color: #094a8c;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(10, 92, 173, 0.3);
}

.btn-secondary {
    background-color: white;
    color: #0A5CAD;
    border: 1px solid #0A5CAD;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
    font-weight: 500;
}

.btn-secondary:hover {
    background-color: #f8fafc;
    transform: translateY(-1px);
}

/* 卡片悬停效果 */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* 导航链接样式 */
.nav-link {
    position: relative;
    padding: 0.5rem 0.75rem;
    color: #374151;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #0A5CAD;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #0A5CAD;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* 下拉菜单样式 */
.dropdown-link {
    display: block;
    padding: 0.5rem 1rem;
    color: #374151;
    text-decoration: none;
    transition: all 0.2s ease;
}

.dropdown-link:hover {
    background-color: rgba(10, 92, 173, 0.05);
    color: #0A5CAD;
}

/* 轮播图样式 */
.banner-slide {
    transition: opacity 1s ease-in-out;
}

.carousel-dot {
    cursor: pointer;
    transition: opacity 0.3s ease;
}

/* 表单样式 */
input, textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus, textarea:focus {
    outline: none;
    border-color: #0A5CAD;
    box-shadow: 0 0 0 3px rgba(10, 92, 173, 0.1);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 0 0.5rem;
    }
    
    .btn-primary, .btn-secondary {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* 工具类 */
.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.transition-custom {
    transition: all 0.3s ease-in-out;
}

/* 确保Tailwind的隐藏类正常工作 */
.hidden {
    display: none;
}

/* 移动端菜单样式 */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

#mobile-menu:not(.hidden) {
    max-height: 500px;
}