/* 诺贝思蒸汽发生器网站样式文件 */

/* 全局样式 */
body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', 'Heiti SC', sans-serif;
    color: #333;
    background-color: #f5f5f5;
    line-height: 1.6;
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

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

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

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* 链接样式 */
a {
    transition: all 0.3s ease;
}

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

.btn-secondary {
    @apply bg-white text-blue-600 border border-blue-600 px-6 py-3 rounded-md font-medium hover:bg-blue-50 transition duration-300;
}

.btn-outline {
    @apply bg-transparent text-blue-600 border border-blue-600 px-6 py-3 rounded-md font-medium hover:bg-blue-600 hover:text-white transition duration-300;
}

/* 标题样式 */
.section-title {
    @apply text-3xl md:text-4xl font-bold mb-2 text-center;
}

.section-subtitle {
    @apply text-gray-600 text-center mb-12 max-w-3xl mx-auto;
}

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

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

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

.carousel-item {
    height: 600px;
    background-position: center;
    background-size: cover;
    position: relative;
}

.carousel-caption {
    position: absolute;
    bottom: 20%;
    left: 10%;
    max-width: 600px;
    z-index: 10;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.3));
}

/* 产品卡片样式 */
.product-card {
    @apply bg-white rounded-lg shadow-md overflow-hidden transition duration-300 hover:shadow-xl;
}

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

.product-card img {
    @apply w-full h-64 object-cover;
}

.product-card-content {
    @apply p-6;
}

.product-card-title {
    @apply text-xl font-bold mb-2;
}

.product-card-description {
    @apply text-gray-600 mb-4;
}

/* 解决方案卡片样式 */
.solution-card {
    @apply bg-white rounded-lg shadow-md overflow-hidden transition duration-300 hover:shadow-xl;
}

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

.solution-card img {
    @apply w-full h-48 object-cover;
}

.solution-card-content {
    @apply p-6;
}

.solution-card-title {
    @apply text-xl font-bold mb-2;
}

.solution-card-description {
    @apply text-gray-600 mb-4;
}

/* 新闻卡片样式 */
.news-card {
    @apply bg-white rounded-lg shadow-md overflow-hidden transition duration-300 hover:shadow-xl;
}

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

.news-card img {
    @apply w-full h-48 object-cover;
}

.news-card-content {
    @apply p-6;
}

.news-card-title {
    @apply text-xl font-bold mb-2;
}

.news-card-date {
    @apply text-sm text-gray-500 mb-2;
}

.news-card-summary {
    @apply text-gray-600 mb-4;
}

/* 特性图标样式 */
.feature-icon {
    @apply w-16 h-16 bg-blue-100 rounded-full flex items-center justify-center mb-4 mx-auto;
}

.feature-icon i {
    @apply text-blue-600 text-2xl;
}

/* 数据统计样式 */
.stat-item {
    @apply text-center p-6;
}

.stat-number {
    @apply text-4xl font-bold text-blue-600 mb-2;
}

.stat-label {
    @apply text-gray-600;
}

/* 合作伙伴样式 */
.partner-logo {
    @apply grayscale opacity-70 hover:grayscale-0 hover:opacity-100 transition duration-300;
}

/* 联系表单样式 */
.form-group {
    @apply mb-4;
}

.form-label {
    @apply block text-gray-700 mb-2;
}

.form-control {
    @apply w-full px-4 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent;
}

.form-textarea {
    @apply w-full px-4 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent resize-none;
    min-height: 150px;
}

/* 面包屑导航样式 */
.breadcrumb {
    @apply flex items-center text-sm text-gray-600 mb-6;
}

.breadcrumb-item:not(:last-child)::after {
    content: '/';
    @apply mx-2;
}

.breadcrumb-item a {
    @apply hover:text-blue-600;
}

.breadcrumb-item.active {
    @apply text-blue-600;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .section-title {
        @apply text-2xl md:text-3xl;
    }
    
    .carousel-item {
        height: 400px;
    }
    
    .carousel-caption {
        bottom: 10%;
        left: 5%;
        right: 5%;
    }
    
    .product-card img,
    .solution-card img,
    .news-card img {
        @apply h-48;
    }
}

@media (max-width: 640px) {
    .section-title {
        @apply text-2xl;
    }
    
    .carousel-item {
        height: 300px;
    }
    
    .carousel-caption {
        bottom: 5%;
    }
    
    .product-card img,
    .solution-card img,
    .news-card img {
        @apply h-40;
    }
}

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

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

/* 延迟动画 */
.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

.delay-400 {
    animation-delay: 0.4s;
}

.delay-500 {
    animation-delay: 0.5s;
}

/* 滚动显示动画 */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

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

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

/* 骨架屏 */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}