/* 全局样式 */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    scroll-behavior: smooth;
}

/* 导航栏样式 */
nav {
    transition: all 0.3s ease;
}

nav.scrolled {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background-color: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
}

/* 按钮样式 */
a.btn-primary {
    @apply bg-blue-600 hover:bg-blue-700 text-white font-medium py-3 px-8 rounded-lg transition-all duration-300 shadow-md hover:shadow-lg;
}

a.btn-secondary {
    @apply bg-white hover:bg-gray-100 text-blue-600 font-medium py-3 px-8 rounded-lg transition-all duration-300 shadow-md hover:shadow-lg;
}

a.btn-accent {
    @apply bg-orange-500 hover:bg-orange-600 text-white font-medium py-3 px-8 rounded-lg transition-all duration-300 shadow-md hover:shadow-lg;
}

/* 卡片样式 */
.card {
    @apply bg-white rounded-lg shadow-md hover:shadow-lg transition-shadow duration-300 p-6;
}

.card-gray {
    @apply bg-gray-50 rounded-lg shadow-md hover:shadow-lg transition-shadow duration-300 p-6;
}

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

h1 {
    @apply text-4xl md:text-5xl;
}

h2 {
    @apply text-3xl md:text-4xl;
}

h3 {
    @apply text-2xl md:text-3xl;
}

h4 {
    @apply text-xl md:text-2xl;
}

/* 列表样式 */
ul.list-check {
    @apply space-y-2;
}

ul.list-check li {
    @apply flex items-start gap-3;
}

ul.list-check li i {
    @apply text-green-500 mt-1 flex-shrink-0;
}

/* 背景渐变 */
.bg-gradient-blue {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
}

.bg-gradient-orange {
    background: linear-gradient(135deg, #ea580c 0%, #f97316 100%);
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #1e40af;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .banner {
        height: 50vh !important;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* 图片悬停效果 */
.img-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.img-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* 服务卡片样式 */
.service-card {
    @apply bg-gray-50 p-6 rounded-lg shadow-md hover:shadow-lg transition-all duration-300;
}

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

.service-card i {
    @apply text-blue-600 text-4xl mb-4;
}

.service-card h3 {
    @apply text-xl font-bold text-gray-800 mb-3;
}

.service-card ul {
    @apply text-gray-600 space-y-2;
}

/* 案例卡片样式 */
.case-card {
    @apply bg-gray-50 p-6 rounded-lg shadow-md hover:shadow-lg transition-all duration-300;
}

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

.case-card h3 {
    @apply text-blue-600 text-lg font-bold mb-3;
}

.case-card p {
    @apply text-gray-600 mb-4;
}

/* 联系卡片样式 */
.contact-card {
    @apply bg-white text-gray-800 p-6 rounded-lg shadow-lg;
}

.contact-card i {
    @apply text-blue-600 text-4xl mb-4;
}

.contact-card h3 {
    @apply text-xl font-bold mb-4;
}

/* 页脚样式 */
footer {
    background-color: #1f2937;
    color: #f9fafb;
}

footer a {
    @apply text-gray-400 hover:text-white transition-colors duration-300;
}

footer h3 {
    @apply text-lg font-bold mb-4 text-white;
}

/* 表单样式 */
.form-input {
    @apply w-full px-4 py-3 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-600 focus:border-transparent transition-all duration-300;
}

.form-textarea {
    @apply w-full px-4 py-3 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-600 focus:border-transparent transition-all duration-300 resize-none;
}

/* 加载动画 */
.loader {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-left: 4px solid #3b82f6;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 分隔线样式 */
.divider {
    @apply w-20 h-1 bg-blue-600 mx-auto mb-6;
}

.divider-center {
    @apply w-20 h-1 bg-blue-600 my-6;
}

/* 标签样式 */
.tag {
    @apply inline-block bg-blue-100 text-blue-800 px-4 py-1 rounded-full text-sm font-medium;
}

.tag-orange {
    @apply inline-block bg-orange-100 text-orange-800 px-4 py-1 rounded-full text-sm font-medium;
}

/* 图标样式 */
.icon-lg {
    @apply text-4xl;
}

.icon-xl {
    @apply text-5xl;
}

/* 文本颜色 */
.text-muted {
    @apply text-gray-500;
}

.text-primary {
    @apply text-blue-600;
}

.text-accent {
    @apply text-orange-500;
}

/* 轮播图样式 */
.carousel {
    position: relative;
    overflow: hidden;
}

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

.carousel-item {
    display: none;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.5s ease-in-out;
}

.carousel-item.active {
    display: block;
    opacity: 1;
}

/* 轮播控制按钮样式 */
.carousel-control {
    cursor: pointer;
    z-index: 10;
    border: none;
    outline: none;
    transition: all 0.3s ease;
}

.carousel-control:hover {
    transform: scale(1.1);
}

/* 轮播指示器样式 */
.carousel-indicators button {
    cursor: pointer;
    border: none;
    outline: none;
    padding: 0;
    transition: all 0.3s ease;
}

.carousel-indicators button:hover {
    transform: scale(1.2);
}