/* 整合版增强样式 - VSG60A 国产化替代方案网站 */

/* 全局样式增强 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: #111827;
    background-color: #F9FAFB;
    overflow-x: hidden;
}

/* 自定义工具类 */

/* 文本阴影 */
.text-shadow {
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.text-shadow-lg {
    text-shadow: 0 4px 8px rgba(0,0,0,0.25);
}

.text-shadow-xl {
    text-shadow: 0 8px 16px rgba(0,0,0,0.3);
}

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

.bg-gradient-blue-enhanced {
    background: linear-gradient(-45deg, #1E40AF, #3B82F6, #059669, #10B981);
    background-size: 400% 400%;
    animation: gradientFlow 15s ease infinite;
}

.bg-gradient-accent {
    background: linear-gradient(135deg, #059669 0%, #10B981 100%);
}

.bg-gradient-secondary {
    background: linear-gradient(135deg, #DC2626 0%, #EF4444 100%);
}

.bg-gradient-purple-enhanced {
    background: linear-gradient(135deg, #8b5cf6, #5b21b6);
}

/* 文本渐变 */
.text-gradient-primary {
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-image: linear-gradient(90deg, #3b82f6, #1e40af);
}

.text-gradient-accent {
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-image: linear-gradient(90deg, #f97316, #ea580c);
}

/* 导航栏样式增强 */
#navbar {
    background: rgba(30, 64, 175, 0.85);
    backdrop-filter: blur(15px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

#navbar.scrolled {
    background: rgba(30, 64, 175, 0.95);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
    padding: 0.5rem 0;
}

#navbar .nav-link {
    position: relative;
}

#navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #059669;
    transition: width 0.3s ease;
}

#navbar .nav-link:hover::after {
    width: 100%;
}

/* 产品3D展示效果增强 */
.product-3d-container {
    perspective: 1200px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-3d-container:hover {
    transform: rotateY(15deg) rotateX(5deg) scale(1.02);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 卡片动画 */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.card-hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* 按钮动画 */
.btn {
    transition: all 0.3s ease;
}

.btn-animated {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-animated::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.2);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
    z-index: -1;
}

.btn-animated:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

/* 动画效果增强 */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

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

@keyframes float {
    '0%, 100%': { transform: 'translateY(0px) rotate(0deg)' };
    '50%': { transform: 'translateY(-20px) rotate(2deg)' };
}

@keyframes ripple {
    '0%': { transform: 'scale(0)', opacity: '0.5' };
    '100%': { transform: 'scale(4)', opacity: '0' };
}

@keyframes shake {
    '10%, 90%': { transform: 'translateX(-1px)' };
    '20%, 80%': { transform: 'translateX(2px)' };
    '30%, 50%, 70%': { transform: 'translateX(-3px)' };
    '40%, 60%': { transform: 'translateX(3px)' };
}

@keyframes borderRotate {
    '0%': { backgroundPosition: '0% 0%' };
    '100%': { backgroundPosition: '400% 0%' };
}

@keyframes wave {
    0% {
        transform: translateX(0) translateZ(0) scaleY(1);
    }
    50% {
        transform: translateX(-25%) translateZ(0) scaleY(0.85);
    }
    100% {
        transform: translateX(-50%) translateZ(0) scaleY(1);
    }
}

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

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

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

/* 动画类 */
.animate-slide-in {
    animation: slideIn 0.8s ease forwards;
}

.animate-fade-in {
    animation: fadeIn 0.8s ease forwards;
}

.animate-pulse-slow {
    animation: pulse 4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-ripple {
    animation: ripple 0.6s ease-out;
}

.animate-shake {
    animation: shake 0.8s cubic-bezier(.36,.07,.19,.97) both;
}

.animate-border-rotate {
    animation: borderRotate 4s linear infinite;
}

.animate-gradient-flow {
    animation: gradientFlow 15s ease infinite;
}

.animate-wave {
    animation: wave 10s linear infinite;
}

.animate-count-up {
    animation: countUp 0.8s ease forwards;
}

.animate-fade-in-down {
    animation: fadeInDown 0.5s ease forwards;
}

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

/* 布局工具类 */
.clip-path-slant {
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}

.clip-path-slant-reverse {
    clip-path: polygon(0 15%, 100% 0, 100% 100%, 0 100%);
}

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

.mask-image-gradient {
    mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

/* 交互效果 */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

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

/* 响应式断点增强 */
@media (max-width: 768px) {
    .text-shadow-xl {
        text-shadow: 0 4px 8px rgba(0,0,0,0.2);
    }
    
    .card-hover-lift:hover {
        transform: translateY(-4px);
    }
    
    .product-3d-container:hover {
        transform: rotateY(10deg) rotateX(3deg) scale(1.01);
    }
}

/* 滚动进度条 */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #059669, #10B981);
    z-index: 1000;
    transition: width 0.1s ease;
}

/* 加载动画 */
.loader {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: white;
    z-index: 9999;
}

.loader::after {
    content: '';
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #059669;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* 数字统计样式 */
.stat-number {
    font-weight: bold;
    transition: all 0.3s ease;
}

/* 倒计时器样式 */
.countdown-digit {
    background: white;
    border-radius: 0.5rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.countdown-digit:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* 表格样式增强 */
.table {
    width: 100%;
    border-collapse: collapse;
}

.table th {
    background-color: rgba(30, 64, 175, 0.1);
    font-weight: 600;
    text-align: left;
    padding: 1rem;
    border-bottom: 2px solid #e5e7eb;
}

.table td {
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
    transition: background-color 0.2s ease;
}

.table tr:hover td {
    background-color: rgba(30, 64, 175, 0.05);
}

/* 图表容器样式 */
.chart-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    transition: all 0.3s ease;
}

.chart-container:hover {
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

/* 波纹效果 */
.ripple-effect {
    position: relative;
    overflow: hidden;
}

.ripple-effect::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    opacity: 0;
}

.ripple-effect:active::after {
    width: 300px;
    height: 300px;
    opacity: 1;
    transition: all 0.6s ease-out;
}

/* 表单样式增强 */
.form-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #059669;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

.form-textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    resize: vertical;
    min-height: 120px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-textarea:focus {
    outline: none;
    border-color: #059669;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

/* 回到顶部按钮 */
#back-to-top {
    background: rgba(30, 64, 175, 0.85);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

#back-to-top:hover {
    background: rgba(30, 64, 175, 1);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* 装饰性元素 */
.decor-circle {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.1), rgba(59, 130, 246, 0.1));
    filter: blur(30px);
    z-index: -1;
}

.decor-grid {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: 40px 40px;
    background-image: 
        linear-gradient(to right, rgba(0, 0, 0, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.05) 1px, transparent 1px);
    z-index: -1;
}

/* 页脚样式增强 */
footer {
    background-color: #111827;
    color: #F9FAFB;
}

footer a {
    transition: all 0.3s ease;
}

footer a:hover {
    color: #059669;
    transform: translateX(4px);
}

footer .social-icon {
    transition: all 0.3s ease;
}

footer .social-icon:hover {
    transform: scale(1.2);
    color: #059669;
}

/* 打印样式 */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    /* 调整打印时的字体大小和间距 */
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
    
    p {
        orphans: 3;
        widows: 3;
    }
}