
/* ===================================
   Tube & Pipe Show Vietnam 2026
   Custom Styles & Animations
   =================================== */

/* 渐变背景动画 */
.gradient-bg {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 淡入向上动画 */
.fade-in-up {
    animation: fadeInUp 1s ease-out;
}

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

/* 卡片悬停效果 */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* 数字计数器 */
.counter {
    transition: all 0.3s ease;
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 导航栏滚动效果 */
.nav-scrolled {
    background: rgba(15, 23, 42, 0.98) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Google Translate 优化 */
.skiptranslate {
    font-family: inherit !important;
}

/* 移除 Google Translate 顶部横幅 */
body {
    top: 0 !important;
}

.goog-te-banner-frame {
    display: none !important;
}

/* 响应式优化 */
@media (max-width: 768px) {
    .fade-in-up {
        animation-duration: 0.8s;
    }
    
    .card-hover:hover {
        transform: translateY(-4px);
    }
}

/* 加载动画 */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.loading {
    animation: spin 1s linear infinite;
}

/* 按钮脉冲效果 */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(34, 211, 238, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(34, 211, 238, 0.6);
    }
}

.btn-pulse {
    animation: pulse-glow 2s ease-in-out infinite;
}

/* 文字渐变动画 */
@keyframes gradient-text {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.gradient-animate {
    background-size: 200% auto;
    animation: gradient-text 3s ease infinite;
}

/* 隐藏移动端菜单（默认） */
.mobile-menu {
    display: none;
}

.mobile-menu.active {
    display: block;
}

/* 移动端菜单切换按钮 */
.menu-toggle {
    display: none;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .desktop-menu {
        display: none;
    }
    
    .mobile-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(10px);
        padding: 20px;
        border-bottom: 1px solid rgba(100, 116, 139, 0.3);
        z-index: 40;
    }
    
    .mobile-menu a {
        display: block;
        padding: 12px 20px;
        border-radius: 8px;
        transition: all 0.3s;
    }
    
    .mobile-menu a:hover {
        background: rgba(34, 211, 238, 0.1);
    }
}

/* 倒计时样式增强 */
#countdown {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 100px;
}

.countdown-number {
    font-size: 3rem;
    font-weight: bold;
    line-height: 1;
    margin-bottom: 8px;
}

.countdown-label {
    font-size: 0.9rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 640px) {
    .countdown-number {
        font-size: 2rem;
    }
    
    .countdown-item {
        min-width: 70px;
    }
}

/* 表单优化 */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #22d3ee;
    box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.1);
}

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

::-webkit-scrollbar-track {
    background: #0f172a;
}

::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 5px;
}

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

/* 选择文本样式 */
::selection {
    background: rgba(34, 211, 238, 0.3);
    color: white;
}

/* 打印样式 */
@media print {
    .no-print {
        display: none !important;
    }
}

/* Product Category Icon Styles */
.category-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 2.5rem;
    font-weight: bold;
    transition: all 0.3s ease;
}

.category-card:hover .category-icon {
    transform: scale(1.1);
}

/* Icon Color Themes */
.icon-raw-materials { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; }
.icon-tube-manufacturing { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); color: white; }
.icon-heat-treatment { background: linear-gradient(135deg, #fa709a 0%, #fee140 100%); color: white; }
.icon-saw-laser { background: linear-gradient(135deg, #30cfd0 0%, #330867 100%); color: white; }
.icon-rebuilt { background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%); color: #333; }
.icon-process-tools { background: linear-gradient(135deg, #ff9a56 0%, #ff6a88 100%); color: white; }
.icon-measuring { background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%); color: #333; }
.icon-testing { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); color: white; }
.icon-specialist { background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); color: white; }
.icon-trading { background: linear-gradient(135deg, #f77062 0%, #fe5196 100%); color: white; }
.icon-pipeline { background: linear-gradient(135deg, #c471f5 0%, #fa71cd 100%); color: white; }
.icon-profiles { background: linear-gradient(135deg, #fddb92 0%, #d1fdff 100%); color: #333; }
.icon-plastic { background: linear-gradient(135deg, #89f7fe 0%, #66a6ff 100%); color: white; }
.icon-automation { background: linear-gradient(135deg, #fee140 0%, #fa709a 100%); color: white; }
.icon-others { background: linear-gradient(135deg, #d299c2 0%, #fef9d7 100%); color: #333; }