/**
 * 简约现代风格样式表
 * 参考 hongan.ltd 设计风格
 * 主色调：蓝紫渐变 #3b93f7 -> #a855f7
 */

/* ============================================
   1. CSS变量定义
   ============================================ */
:root {
    /* 主色调 */
    --primary-blue: #3b93f7;
    --primary-blue-light: #5aabff;
    --primary-purple: #a855f7;
    --primary-purple-dark: #9333ea;
    
    /* 渐变色 */
    --gradient-primary: linear-gradient(135deg, #3b93f7 0%, #a855f7 100%);
    --gradient-hero: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-card: linear-gradient(145deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.7) 100%);
    
    /* 背景色 */
    --bg-light: #f8fafc;
    --bg-subtle: #f0f7ff;
    --bg-purple-subtle: #faf5ff;
    
    /* 文字颜色 */
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    
    /* 边框和阴影 */
    --border-light: rgba(0,0,0,0.06);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 0 40px rgba(59, 147, 247, 0.15);
    
    /* 圆角 */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    
    /* 间距 */
    --spacing-section: 5rem;
    --spacing-card: 1.5rem;
    
    /* 字体 */
    --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ============================================
   2. 基础重置和全局样式
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--text-primary);
    line-height: 1.6;
    background-color: var(--bg-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   3. 导航栏样式
   ============================================ */
.nav-modern {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.nav-modern.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-link {
    position: relative;
    color: var(--text-secondary);
    font-weight: 500;
    padding: 0.5rem 0;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--primary-blue);
}

.nav-link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* ============================================
   4. 按钮样式
   ============================================ */
.btn-primary {
    background: var(--gradient-primary);
    color: white;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-lg);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px 0 rgba(59, 147, 247, 0.39);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 147, 247, 0.5);
}

.btn-secondary {
    background: white;
    color: var(--primary-blue);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-lg);
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary::before {
    content: "";
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    z-index: -1;
    margin: -2px;
    border-radius: inherit;
    background: var(--gradient-primary);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: transparent;
    color: white;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-lg);
    border: 2px solid rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: white;
    color: var(--primary-blue);
    transform: translateY(-2px);
}

/* ============================================
   5. Hero区域样式
   ============================================ */
.hero-section {
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

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

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    color: white;
    margin-bottom: 1.5rem;
}

.hero-title .highlight {
    background: linear-gradient(90deg, #fbbf24 0%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    max-width: 600px;
}

/* ============================================
   6. 卡片样式
   ============================================ */
.card-modern {
    background: white;
    border-radius: var(--radius-xl);
    padding: var(--spacing-card);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.card-modern:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.card-glass {
    background: var(--gradient-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-xl);
    padding: var(--spacing-card);
    transition: all 0.3s ease;
}

.card-glass:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

/* 产品卡片 */
.product-card {
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.product-card .image-wrapper {
    position: relative;
    overflow: hidden;
}

.product-card .image-wrapper img {
    transition: transform 0.5s ease;
}

.product-card:hover .image-wrapper img {
    transform: scale(1.08);
}

.product-card .badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--gradient-primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* ============================================
   7. Section样式
   ============================================ */
.section-padding {
    padding: var(--spacing-section) 0;
}

.section-title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    text-align: center;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 3rem;
    text-align: center;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 统计数字区域 */
.stats-section {
    background: white;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* ============================================
   8. 特性/优势区域
   ============================================ */
.feature-card {
    text-align: center;
    padding: 2rem;
}

.feature-icon {
    width: 4rem;
    height: 4rem;
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.feature-icon.blue {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: var(--primary-blue);
}

.feature-icon.green {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    color: #22c55e;
}

.feature-icon.purple {
    background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 100%);
    color: var(--primary-purple);
}

.feature-icon.orange {
    background: linear-gradient(135deg, #ffedd5 0%, #fed7aa 100%);
    color: #f97316;
}

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

.feature-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.feature-desc {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.6;
}

/* ============================================
   9. 分类标签/胶囊按钮
   ============================================ */
.category-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    background: white;
    color: var(--text-secondary);
    border: 1px solid var(--border-light);
    transition: all 0.2s ease;
    cursor: pointer;
}

.category-pill:hover,
.category-pill.active {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 14px 0 rgba(59, 147, 247, 0.25);
}

.category-pill i {
    margin-right: 0.5rem;
}

/* ============================================
   10. 面包屑导航
   ============================================ */
.breadcrumb-modern {
    background: var(--bg-subtle);
    padding: 1rem 0;
}

.breadcrumb-modern ol {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.breadcrumb-modern a {
    color: var(--primary-blue);
    transition: color 0.2s ease;
}

.breadcrumb-modern a:hover {
    color: var(--primary-purple);
}

.breadcrumb-modern .separator {
    color: var(--text-muted);
}

.breadcrumb-modern .current {
    color: var(--text-secondary);
}

/* ============================================
   11. 页脚样式
   ============================================ */
.footer-modern {
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    color: rgba(255, 255, 255, 0.8);
}

.footer-modern a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.2s ease;
}

.footer-modern a:hover {
    color: white;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--gradient-primary);
    transform: translateY(-3px);
}

/* ============================================
   12. 悬浮联系按钮
   ============================================ */
.floating-contact {
    position: fixed;
    bottom: 2rem;
    right: 1.5rem;
    z-index: 1000;
}

.floating-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact-btn {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: white;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: var(--shadow-lg);
}

.contact-btn:hover {
    transform: scale(1.15) translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.contact-btn.whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
}

.contact-btn.telegram {
    background: linear-gradient(135deg, #0088cc 0%, #005577 100%);
}

.contact-btn.wechat {
    background: linear-gradient(135deg, #7BB32E 0%, #5A8A1B 100%);
}

.contact-btn.scroll-top {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.contact-btn.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

/* ============================================
   13. 动画效果
   ============================================ */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(59, 147, 247, 0.4); }
    50% { box-shadow: 0 0 40px rgba(59, 147, 247, 0.6); }
}

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

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

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

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

/* ============================================
   14. 响应式设计
   ============================================ */
@media (max-width: 768px) {
    :root {
        --spacing-section: 3rem;
        --spacing-card: 1rem;
    }
    
    .hero-section {
        min-height: 70vh;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .floating-contact {
        bottom: 1rem;
        right: 1rem;
    }
    
    .contact-btn {
        width: 3rem;
        height: 3rem;
        font-size: 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

/* ============================================
   15. 工具类
   ============================================ */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient-primary {
    background: var(--gradient-primary);
}

.bg-gradient-hero {
    background: var(--gradient-hero);
}

.shadow-glow {
    box-shadow: var(--shadow-glow);
}

.rounded-modern {
    border-radius: var(--radius-xl);
}

/* 隐藏滚动条但保持滚动功能 */
.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

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