/* ============================================
   CSS Variables - 主题色彩定义
   ============================================ */
:root {
    --primary-color: #000000;
    --primary-dark: #000000;
    --secondary-color: #000000;
    --secondary-dark: #000000;
    --light-color: #f5f6fa;
    --dark-color: #2f3542;
    --success-color: #2ed573;
    --warning-color: #ffa502;
    --error-color: #ff4757;
    --text-muted: #636e72;
    --border-color: #ddd;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* ============================================
   Base Styles - 基础样式
   ============================================ */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
    color: var(--dark-color);
    background-color: var(--light-color);
}

/* ============================================
   Gradient Effects - 渐变效果
   ============================================ */
.text-gradient {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color), #000000);
}

.bg-gradient-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #000000 50%, #000000 100%);
}

/* ============================================
   Buttons - 按钮样式
   ============================================ */
.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.btn-secondary:hover {
    background-color: var(--secondary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* ============================================
   Cards - 卡片样式
   ============================================ */
.card {
    background-color: white;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    padding: 20px;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.product-card {
    overflow: hidden;
    border-radius: 12px;
    background-color: white;
    box-shadow: var(--shadow-sm);
}

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

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

.box-with-humber {
    background-color: white;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    padding: 25px;
    transition: all 0.3s ease;
}

.box-with-humber:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

/* ============================================
   Counters - 数字计数器动画
   ============================================ */
.count-animation {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.count-animation.animate {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   Hero Section - 英雄区
   ============================================ */
#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* ============================================
   Chat System - 聊天组件
   ============================================ */
.chat-container {
    max-height: 300px;
    overflow-y: auto;
    padding-right: 10px;
}

.chat-container::-webkit-scrollbar {
    width: 6px;
}

.chat-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.chat-container::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.chat-container::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

.chat-message {
    margin-bottom: 12px;
    padding: 12px 16px;
    border-radius: 16px;
    max-width: 80%;
    line-height: 1.5;
}

.user-message {
    background-color: #e3f2fd;
    margin-left: auto;
    border-bottom-right-radius: 4px;
}

.bot-message {
    background-color: #f5f5f5;
    margin-right: auto;
    border-bottom-left-radius: 4px;
}

/* ============================================
   Dropdowns - 下拉菜单
   ============================================ */
.language-dropdown,
.currency-dropdown {
    position: relative;
    display: inline-block;
}

.language-dropdown-content,
.currency-dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    min-width: 140px;
    box-shadow: var(--shadow-md);
    z-index: 100;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 5px;
}

.language-dropdown-content a,
.currency-dropdown-content a {
    display: block;
    padding: 10px 15px;
    color: var(--dark-color);
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.language-dropdown-content a:hover,
.currency-dropdown-content a:hover {
    background-color: var(--light-color);
}

.language-dropdown:hover .language-dropdown-content,
.currency-dropdown:hover .currency-dropdown-content {
    display: block;
}

/* ============================================
   Navigation - 导航栏
   ============================================ */
header {
    transition: all 0.3s ease;
}

header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
}

.site-section {
    padding: 80px 0 60px;
}

/* ============================================
   Mobile Menu - 移动端菜单
   ============================================ */
.mobile-menu {
    display: none;
}

@media (max-width: 768px) {
    .desktop-menu {
        display: none;
    }
    
    .mobile-menu {
        display: block;
    }
    
    .mobile-menu-content {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.9);
        z-index: 1000;
        padding: 60px 20px;
        transition: all 0.3s ease;
    }
    
    .mobile-menu-content.active {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
    }
    
    .mobile-menu-content ul {
        list-style: none;
        padding: 0;
        margin: 0;
        text-align: center;
    }
    
    .mobile-menu-content ul li {
        margin-bottom: 20px;
    }
    
    .mobile-menu-content ul li a {
        color: white;
        font-size: 20px;
        font-weight: 500;
        text-decoration: none;
        transition: color 0.3s ease;
    }
    
    .mobile-menu-content ul li a:hover {
        color: var(--secondary-color);
    }
    
    .mobile-menu-close {
        position: absolute;
        top: 20px;
        right: 20px;
        font-size: 28px;
        color: white;
        cursor: pointer;
        transition: color 0.3s ease;
    }
    
    .mobile-menu-close:hover {
        color: var(--secondary-color);
    }
    
    .site-section {
        padding: 60px 0 40px;
    }
}

/* ============================================
   3D Product Viewer - 3D产品查看器
   ============================================ */
#product-viewer {
    width: 100%;
    height: 350px;
    background-color: #fafafa;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

/* ============================================
   Loading Animation - 加载动画
   ============================================ */
.loading {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
}

.loading div {
    position: absolute;
    top: 33px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: var(--primary-color);
    animation-timing-function: cubic-bezier(0, 1, 1, 0);
}

.loading div:nth-child(1) {
    left: 8px;
    animation: loading1 0.6s infinite;
}

.loading div:nth-child(2) {
    left: 8px;
    animation: loading2 0.6s infinite;
}

.loading div:nth-child(3) {
    left: 32px;
    animation: loading2 0.6s infinite;
}

.loading div:nth-child(4) {
    left: 56px;
    animation: loading3 0.6s infinite;
}

@keyframes loading1 {
    0% { transform: scale(0); }
    100% { transform: scale(1); }
}

@keyframes loading3 {
    0% { transform: scale(1); }
    100% { transform: scale(0); }
}

@keyframes loading2 {
    0% { transform: translate(0, 0); }
    100% { transform: translate(24px, 0); }
}

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

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

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

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

/* ============================================
   Data Analytics Dashboard - 数据仪表盘
   ============================================ */
.dashboard-card {
    background-color: white;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    padding: 25px;
    transition: all 0.3s ease;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
}

/* ============================================
   Image Modal - 图片模态框
   ============================================ */
#image-modal {
    animation: fadeIn 0.3s ease;
}

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

/* ============================================
   Back to Top - 返回顶部按钮
   ============================================ */
#back-to-top {
    z-index: 50;
}

#back-to-top.show {
    opacity: 1;
    visibility: visible;
}

/* ============================================
   Utility Classes - 工具类
   ============================================ */
.text-primary {
    color: var(--primary-color);
}

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

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

.bg-light {
    background-color: var(--light-color);
}

.border-color {
    border-color: var(--border-color);
}

.ul-check {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ul-check li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
}

.ul-check li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--success-color);
}

/* ============================================
   Contact Form - 联系表单
   ============================================ */
.contact-form {
    background-color: white;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    padding: 40px;
    transition: all 0.3s ease;
}

.contact-form:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.contact-form h2 {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: var(--dark-color);
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background-color: #fff;
    color: var(--dark-color);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(10, 61, 98, 0.1);
}

.form-control::placeholder {
    color: #9ca3af;
}

.form-control:focus::placeholder {
    color: #6b7280;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

.btn-submit {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 14px 40px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-submit:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-submit:active {
    transform: translateY(0);
}

/* ============================================
   Contact Info - 联系信息
   ============================================ */
.contact-info {
    background-color: var(--light-color);
    border-radius: 16px;
    padding: 30px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.contact-info-item:last-child {
    margin-bottom: 0;
}

.contact-info-item .icon {
    width: 48px;
    height: 48px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-right: 15px;
}

.contact-info-item .content {
    flex: 1;
}

.contact-info-item h4 {
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.contact-info-item p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

/* ============================================
   Google Maps - 地图容器
   ============================================ */
.map-container {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    height: 400px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ============================================
   Form Validation - 表单验证
   ============================================ */
.form-control.error {
    border-color: var(--error-color);
}

.form-control.success {
    border-color: var(--success-color);
}

.error-message {
    color: var(--error-color);
    font-size: 0.8rem;
    margin-top: 5px;
    display: none;
}

.error-message.show {
    display: block;
}

/* ============================================
   Success Message - 成功提示
   ============================================ */
.success-message {
    background-color: rgba(46, 213, 115, 0.1);
    border: 1px solid var(--success-color);
    border-radius: 10px;
    padding: 15px 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    color: var(--success-color);
    font-weight: 500;
    animation: slideIn 0.3s ease;
}

.success-message i {
    margin-right: 10px;
    font-size: 1.2rem;
}
/* ============================================
   Subscription Form - 订阅表单
   ============================================ */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.subcription-form button {
  border-radius: 0px 4px 4px 0px !important; }
  #home {
  width: 100%;
  height: 100vh;
  background: url("../images/.png") top center;
  background-size: cover;
  position: relative;
  -webkit-transition: background-image 1s ease-in-out;
  -moz-transition: background-image 1s ease-in-out;
  -o-transition: background-image 1s ease-in-out;
  transition: background-image 1s ease-in-out;
}