/* InfiVisTech 多巴胺风格样式文件 */

/* CSS变量 - 多巴胺配色方案 */
:root {
    /* 主色调 - 鲜艳配色 */
    --primary-color: #FF6B6B;           /* 珊瑚红 */
    --secondary-color: #4ECDC4;         /* 青绿色 */
    --accent-color: #45B7D1;            /* 天蓝色 */
    --success-color: #96CEB4;           /* 薄荷绿 */
    --warning-color: #FFEAA7;           /* 柠檬黄 */
    --danger-color: #FD79A8;            /* 粉红色 */
    --purple: #A29BFE;                  /* 薰衣草紫 */
    --orange: #FD79A8;                  /* 橙红色 */
    
    /* 渐变色 */
    --gradient-rainbow: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #f5576c 75%, #4facfe 100%);
    --gradient-sunset: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    --gradient-ocean: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-pink: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-blue: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-green: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    --gradient-purple: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    
    /* 文字颜色 */
    --text-primary: #2D3436;
    --text-secondary: #636e72;
    --text-light: #ffffff;
    --text-dark: #2d3436;
    
    /* 背景色 */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-accent: #ffeaa7;
    
    /* 间距和圆角 */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 32px;
    --spacing-xl: 48px;
    --border-radius: 20px;
    --border-radius-lg: 30px;
    
    /* 阴影 */
    --shadow-colorful: 0 10px 40px rgba(255, 107, 107, 0.3);
    --shadow-blue: 0 10px 40px rgba(79, 172, 254, 0.3);
    --shadow-green: 0 10px 40px rgba(67, 233, 123, 0.3);
    --shadow-pink: 0 10px 40px rgba(240, 147, 251, 0.3);
}

/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Comic Sans MS', 'Microsoft YaHei', 'PingFang SC', cursive, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--gradient-rainbow);
    background-attachment: fixed;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏 - 彩虹风格 */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    color: var(--text-primary);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border-bottom: 3px solid transparent;
    background-image: var(--gradient-rainbow);
    background-clip: padding-box;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-logo h2 {
    background: var(--gradient-pink);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2rem;
    font-weight: 900;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 600;
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
}

.nav-menu a:hover {
    background: var(--gradient-sunset);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-colorful);
}

/* Hero区域 - 超级炫彩 */
.hero {
    background: var(--gradient-rainbow);
    color: white;
    padding: 150px 0 100px;
    text-align: center;
    margin-top: 80px;
    position: relative;
    overflow: hidden;
    animation: backgroundShift 10s ease-in-out infinite;
}

@keyframes backgroundShift {
    0%, 100% { filter: hue-rotate(0deg); }
    25% { filter: hue-rotate(90deg); }
    50% { filter: hue-rotate(180deg); }
    75% { filter: hue-rotate(270deg); }
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="80" r="1.5" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="70" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
    animation: float 6s ease-in-out infinite;
}

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

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 2rem;
    font-weight: 900;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.3);
    background: linear-gradient(45deg, #fff, #ffeb3b, #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textGlow 3s ease-in-out infinite;
}

@keyframes textGlow {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.2) drop-shadow(0 0 20px rgba(255,255,255,0.5)); }
}

.hero-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 3rem auto;
    max-width: 800px;
}

.feature {
    background: rgba(255,255,255,0.25);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255,255,255,0.3);
    transition: all 0.3s ease;
    font-weight: 700;
    font-size: 1.1rem;
    position: relative;
    overflow: hidden;
}

.feature::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: rotate 4s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature:hover::before {
    opacity: 1;
}

.feature:hover {
    transform: translateY(-10px) scale(1.05);
    background: rgba(255,255,255,0.35);
    box-shadow: 0 20px 60px rgba(255,255,255,0.2);
}

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

/* 产品展示区域 - 炫彩卡片 */
.products {
    padding: 120px 0;
    background: var(--bg-primary);
    position: relative;
}

.products::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        rgba(255, 107, 107, 0.05) 0%, 
        rgba(78, 205, 196, 0.05) 25%, 
        rgba(69, 183, 209, 0.05) 50%, 
        rgba(162, 155, 254, 0.05) 75%, 
        rgba(255, 107, 107, 0.05) 100%);
    animation: gradientMove 8s ease-in-out infinite;
}

@keyframes gradientMove {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(50px); }
}

.products h2 {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 3rem;
    background: var(--gradient-pink);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
    position: relative;
    z-index: 2;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    margin-top: 2rem;
    position: relative;
    z-index: 2;
}

.product-card {
    background: white;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: all 0.4s ease;
    position: relative;
    border: 3px solid transparent;
    background-clip: padding-box;
}

.product-card::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: var(--gradient-rainbow);
    border-radius: var(--border-radius-lg);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.product-card:hover::before {
    opacity: 1;
}

.product-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 30px 80px rgba(255, 107, 107, 0.3);
}

.product-card:nth-child(2):hover {
    box-shadow: 0 30px 80px rgba(78, 205, 196, 0.3);
}

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

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

.product-info {
    padding: 2.5rem;
    position: relative;
}

.product-info h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    background: var(--gradient-blue);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

/* 按钮样式 - 超级炫彩 */
.btn-primary {
    background: var(--gradient-sunset);
    color: white;
    padding: 15px 35px;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.4s ease;
    cursor: pointer;
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-colorful);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background: var(--gradient-pink);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(245, 87, 108, 0.4);
}

/* 关于我们和联系我们 - 彩虹背景 */
.about {
    padding: 120px 0;
    background: var(--gradient-green);
    color: white;
    text-align: center;
    position: relative;
}

.about h2 {
    font-size: 3rem;
    margin-bottom: 3rem;
    font-weight: 900;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.contact {
    padding: 120px 0;
    background: var(--gradient-purple);
    color: white;
    text-align: center;
}

.contact h2 {
    font-size: 3rem;
    margin-bottom: 3rem;
    font-weight: 900;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.contact-info p {
    font-size: 1.3rem;
    margin: 1.5rem 0;
    font-weight: 600;
}

/* 页脚 - 渐变背景 */
.footer {
    background: var(--gradient-ocean);
    color: white;
    text-align: center;
    padding: 3rem 0;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-rainbow);
}

/* 下载页面样式 */
.download-section {
    padding: 150px 0 100px;
    background: var(--gradient-blue);
    color: white;
    text-align: center;
}

.download-section h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 900;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.download-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 3rem;
    border-radius: var(--border-radius-lg);
    text-align: center;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
    border: 3px solid transparent;
    color: var(--text-primary);
    position: relative;
    overflow: hidden;
}

.download-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, var(--primary-color), var(--secondary-color), var(--accent-color), var(--primary-color));
    animation: rotate 6s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.download-card:hover::before {
    opacity: 0.1;
}

.download-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: var(--shadow-blue);
}

.download-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}

/* 产品页面样式 */
.product-hero {
    padding: 150px 0 100px;
    background: var(--gradient-rainbow);
    color: white;
    position: relative;
    overflow: hidden;
}

.product-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="25" cy="25" r="3" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
    animation: float 8s ease-in-out infinite;
}

.product-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.product-text h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 900;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        padding: 2rem;
        gap: 1rem;
        border-radius: 0 0 var(--border-radius) var(--border-radius);
        box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    }

    .nav-menu.active {
        display: flex;
    }

    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        cursor: pointer;
        gap: 4px;
    }

    .mobile-menu-toggle span {
        width: 25px;
        height: 3px;
        background: var(--gradient-pink);
        border-radius: 2px;
        transition: 0.3s;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-features {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .products h2,
    .about h2,
    .contact h2 {
        font-size: 2.5rem;
    }

    .product-intro {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .download-grid {
        grid-template-columns: 1fr;
    }

    .download-section h1 {
        font-size: 2.5rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }
}

/* 额外的多巴胺元素 */
.sparkle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--gradient-pink);
    border-radius: 50%;
    animation: sparkle 2s ease-in-out infinite;
}

/* 移动端菜单动画 */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    padding: 8px;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--gradient-pink);
    border-radius: 2px;
    transition: all 0.3s ease;
    display: block;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

@keyframes sparkle {
    0%, 100% { 
        opacity: 0;
        transform: scale(0) rotate(0deg);
    }
    50% { 
        opacity: 1;
        transform: scale(1) rotate(180deg);
    }
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-rainbow);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gradient-sunset);
}

/* 添加一些动画元素 */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

.bounce {
    animation: bounce 2s infinite;
}

/* 荧光效果 */
.glow {
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        box-shadow: 0 0 20px rgba(255, 107, 107, 0.5);
    }
    to {
        box-shadow: 0 0 30px rgba(78, 205, 196, 0.8);
    }
}
