/* 整合后的主CSS文件 */

/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1f2937;
    background-color: #ffffff;
}

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

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* 移动端菜单 */
.mobile-menu {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu-btn {
    transition: all 0.3s ease;
}

.mobile-menu-btn.active {
    transform: rotate(90deg);
}

/* 按钮样式 */
.btn-primary {
    background-color: #2677c3;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn-primary:hover {
    background-color: #1e5a96;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(38, 119, 195, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: #2677c3;
    border: 2px solid #2677c3;
    padding: 10px 22px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn-secondary:hover {
    background-color: #2677c3;
    color: white;
    transform: translateY(-2px);
}

/* 卡片样式 */
.card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card: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);
}

.custom-shadow {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

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

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* 动画样式 */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

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

.animate-slide-up {
    animation: slideUp 0.8s ease-out forwards;
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

.animate-slide-in-left {
    animation: slideInLeft 0.8s ease-out forwards;
}

.animate-slide-in-right {
    animation: slideInRight 0.8s ease-out forwards;
}

.animate-bounce-slow {
    animation: bounce 2s infinite;
}

/* 关键帧动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

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

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

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

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translate3d(0, 0, 0);
    }
    40%, 43% {
        transform: translate3d(0, -30px, 0);
    }
    70% {
        transform: translate3d(0, -15px, 0);
    }
    90% {
        transform: translate3d(0, -4px, 0);
    }
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #2677c3;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(38, 119, 195, 0.3);
}

.back-to-top:hover {
    background-color: #1e5a96;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(38, 119, 195, 0.4);
}

/* 轮播图样式 */
.carousel {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.carousel .slide {
    display: none;
    transition: all 0.5s ease;
}

.carousel .slide.active {
    display: block;
}

.carousel .prev-btn,
.carousel .next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.carousel .prev-btn {
    left: 20px;
}

.carousel .next-btn {
    right: 20px;
}

.carousel .prev-btn:hover,
.carousel .next-btn:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

.carousel .indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.carousel .indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel .indicator.active {
    background-color: white;
    transform: scale(1.2);
}

/* 表单样式 */
.contact-form {
    background: white;
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: #ffffff;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: #2677c3;
    box-shadow: 0 0 0 3px rgba(38, 119, 195, 0.1);
}

.contact-form input.border-red-500,
.contact-form textarea.border-red-500 {
    border-color: #ef4444;
}

.error-message {
    color: #ef4444;
    font-size: 14px;
    margin-top: 4px;
}

/* 筛选按钮样式 */
.filter-btn,
.category-btn {
    padding: 8px 16px;
    border: 2px solid #e5e7eb;
    background-color: white;
    color: #6b7280;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn:hover,
.category-btn:hover {
    border-color: #2677c3;
    color: #2677c3;
}

.filter-btn.filter-active,
.category-btn.category-active {
    background-color: #2677c3;
    border-color: #2677c3;
    color: white;
}

/* 产品卡片样式 */
.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.product-card img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover img {
    transform: scale(1.05);
}

/* 新闻卡片样式 */
.news-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.news-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover img {
    transform: scale(1.05);
}

/* 图片画廊样式 */
.gallery-image {
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
}

.gallery-image:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* 灯箱样式 */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.lightbox-img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 30px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 10px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

/* 标签页样式 */
.tab-btn {
    padding: 12px 24px;
    border: none;
    background-color: transparent;
    color: #6b7280;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    font-weight: 500;
}

.tab-btn:hover {
    color: #2677c3;
}

.tab-btn.tab-active {
    color: #2677c3;
    border-bottom-color: #2677c3;
}

.tab-panel {
    padding: 24px 0;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 32px;
}

.pagination button {
    padding: 8px 12px;
    border: 1px solid #e5e7eb;
    background-color: white;
    color: #6b7280;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination button:hover {
    border-color: #2677c3;
    color: #2677c3;
}

.pagination button.active {
    background-color: #2677c3;
    border-color: #2677c3;
    color: white;
}

/* 文本截断 */
.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
    
    .contact-form {
        padding: 24px;
    }
    
    .carousel .prev-btn,
    .carousel .next-btn {
        padding: 8px 12px;
    }
    
    .carousel .prev-btn {
        left: 10px;
    }
    
    .carousel .next-btn {
        right: 10px;
    }
    
    .card {
        margin-bottom: 16px;
    }
}

@media (max-width: 640px) {
    .btn-primary,
    .btn-secondary {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .contact-form {
        padding: 20px;
    }
    
    .lightbox-close {
        top: 10px;
        right: 15px;
        font-size: 24px;
    }
}

/* 工具类 */
.text-primary {
    color: #2677c3;
}

.text-secondary {
    color: #1A6F6A;
}

.text-accent {
    color: #F97316;
}

.text-dark {
    color: #1E293B;
}

.text-light {
    color: #F8FAFC;
}

.bg-primary {
    background-color: #2677c3;
}

.bg-secondary {
    background-color: #1A6F6A;
}

.bg-accent {
    background-color: #F97316;
}

.bg-dark {
    background-color: #1E293B;
}

.bg-light {
    background-color: #F8FAFC;
}

/* 边框颜色 */
.border-primary {
    border-color: #2677c3;
}

.border-secondary {
    border-color: #1A6F6A;
}

.border-accent {
    border-color: #F97316;
}

/* 阴影工具类 */
.shadow-sm {
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.shadow {
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.shadow-md {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

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

/* 过渡效果 */
.transition-all {
    transition: all 0.3s ease;
}

.transition-colors {
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

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

/* 可见性控制 */
.visible {
    opacity: 1;
    transform: translateY(0);
}

.invisible {
    opacity: 0;
}

.opacity-0 {
    opacity: 0;
}

.opacity-100 {
    opacity: 1;
}

/* 变换 */
.transform {
    transform: var(--tw-transform);
}

.scale-105 {
    transform: scale(1.05);
}

.translate-y-0 {
    transform: translateY(0);
}

.translate-y-2 {
    transform: translateY(8px);
}

.-translate-y-2 {
    transform: translateY(-8px);
}

/* 背景模糊 */
.backdrop-blur-sm {
    backdrop-filter: blur(4px);
}

.backdrop-blur {
    backdrop-filter: blur(8px);
}

/* 圆角 */
.rounded {
    border-radius: 4px;
}

.rounded-md {
    border-radius: 6px;
}

.rounded-lg {
    border-radius: 8px;
}

.rounded-xl {
    border-radius: 12px;
}

.rounded-full {
    border-radius: 9999px;
}

/* 间距 */
.space-y-1 > * + * {
    margin-top: 4px;
}

.space-y-2 > * + * {
    margin-top: 8px;
}

.space-y-4 > * + * {
    margin-top: 16px;
}

.gap-2 {
    gap: 8px;
}

.gap-3 {
    gap: 12px;
}

.gap-4 {
    gap: 16px;
}

/* 字体权重 */
.font-medium {
    font-weight: 500;
}

.font-semibold {
    font-weight: 600;
}

.font-bold {
    font-weight: 700;
}

/* 字体大小 */
.text-xs {
    font-size: 12px;
    line-height: 16px;
}

.text-sm {
    font-size: 14px;
    line-height: 20px;
}

.text-base {
    font-size: 16px;
    line-height: 24px;
}

.text-lg {
    font-size: 18px;
    line-height: 28px;
}

.text-xl {
    font-size: 20px;
    line-height: 28px;
}

.text-2xl {
    font-size: 24px;
    line-height: 32px;
}

.text-3xl {
    font-size: 30px;
    line-height: 36px;
}

.text-4xl {
    font-size: 36px;
    line-height: 40px;
}

/* 颜色 */
.text-white {
    color: #ffffff;
}

.text-gray-500 {
    color: #6b7280;
}

.text-gray-600 {
    color: #4b5563;
}

.text-gray-700 {
    color: #374151;
}

.text-red-500 {
    color: #ef4444;
}

/* 背景颜色 */
.bg-white {
    background-color: #ffffff;
}

.bg-gray-50 {
    background-color: #f9fafb;
}

.bg-gray-100 {
    background-color: #f3f4f6;
}

.bg-gray-200 {
    background-color: #e5e7eb;
}

/* 边框 */
.border {
    border-width: 1px;
}

.border-2 {
    border-width: 2px;
}

.border-gray-100 {
    border-color: #f3f4f6;
}

.border-gray-300 {
    border-color: #d1d5db;
}

.border-red-500 {
    border-color: #ef4444;
}

/* 内边距 */
.p-1 {
    padding: 4px;
}

.p-2 {
    padding: 8px;
}

.p-3 {
    padding: 12px;
}

.p-4 {
    padding: 16px;
}

.p-6 {
    padding: 24px;
}

.px-2 {
    padding-left: 8px;
    padding-right: 8px;
}

.px-3 {
    padding-left: 12px;
    padding-right: 12px;
}

.px-4 {
    padding-left: 16px;
    padding-right: 16px;
}

.py-1 {
    padding-top: 4px;
    padding-bottom: 4px;
}

.py-2 {
    padding-top: 8px;
    padding-bottom: 8px;
}

/* 外边距 */
.m-1 {
    margin: 4px;
}

.m-2 {
    margin: 8px;
}

.mb-1 {
    margin-bottom: 4px;
}

.mb-2 {
    margin-bottom: 8px;
}

.mb-3 {
    margin-bottom: 12px;
}

.mb-4 {
    margin-bottom: 16px;
}

.mr-1 {
    margin-right: 4px;
}

.mr-2 {
    margin-right: 8px;
}

.mt-1 {
    margin-top: 4px;
}

.mt-2 {
    margin-top: 8px;
}

/* 宽度和高度 */
.w-full {
    width: 100%;
}

.h-full {
    height: 100%;
}

.h-20 {
    height: 80px;
}

.h-40 {
    height: 160px;
}

.h-48 {
    height: 192px;
}

/* 显示 */
.block {
    display: block;
}

.inline-block {
    display: inline-block;
}

.flex {
    display: flex;
}

.hidden {
    display: none;
}

/* Flexbox */
.items-center {
    align-items: center;
}

.items-start {
    align-items: flex-start;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.flex-1 {
    flex: 1 1 0%;
}

.flex-wrap {
    flex-wrap: wrap;
}

/* 位置 */
.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.fixed {
    position: fixed;
}

.top-0 {
    top: 0;
}

.top-3 {
    top: 12px;
}

.top-4 {
    top: 16px;
}

.right-0 {
    right: 0;
}

.right-3 {
    right: 12px;
}

.right-4 {
    right: 16px;
}

.bottom-0 {
    bottom: 0;
}

.left-0 {
    left: 0;
}

.left-3 {
    left: 12px;
}

.left-4 {
    left: 16px;
}

/* 溢出 */
.overflow-hidden {
    overflow: hidden;
}

.overflow-auto {
    overflow: auto;
}

/* 对象适配 */
.object-cover {
    object-fit: cover;
}

.object-contain {
    object-fit: contain;
}

/* 光标 */
.cursor-pointer {
    cursor: pointer;
}

/* Z-index */
.z-10 {
    z-index: 10;
}

.z-50 {
    z-index: 50;
}

/* 文本对齐 */
.text-left {
    text-align: left;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

/* 列表样式 */
.list-disc {
    list-style-type: disc;
}

.list-inside {
    list-style-position: inside;
}

/* 最大宽度 */
.max-w-sm {
    max-width: 384px;
}

.max-w-md {
    max-width: 448px;
}

.max-w-lg {
    max-width: 512px;
}

/* 网格 */
.col-span-full {
    grid-column: 1 / -1;
}

/* 最后一个元素 */
.last\:border-b-0:last-child {
    border-bottom-width: 0;
}

.last\:pb-0:last-child {
    padding-bottom: 0;
}

/* 悬停效果 */
.hover\:bg-primary\/10:hover {
    background-color: rgba(38, 119, 195, 0.1);
}

.hover\:text-primary:hover {
    color: #2677c3;
}

.hover\:text-secondary:hover {
    color: #1A6F6A;
}

.hover\:text-white:hover {
    color: #ffffff;
}

.hover\:bg-primary:hover {
    background-color: #2677c3;
}

.hover\:bg-secondary:hover {
    background-color: #1A6F6A;
}

.hover\:scale-105:hover {
    transform: scale(1.05);
}

.hover\:shadow-lg:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* 焦点效果 */
.focus\:outline-none:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
}

.focus\:border-primary:focus {
    border-color: #2677c3;
}

/* 禁用状态 */
.disabled\:opacity-50:disabled {
    opacity: 0.5;
}

.disabled\:cursor-not-allowed:disabled {
    cursor: not-allowed;
}
