/* Hychi Tech - European/American Style Redesign */

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

:root {
    /* 欧美风格配色方案 - 专业、现代、绿色主题 */
    --primary-white: #ffffff;
    --primary-light: #f8fafc;
    --primary-dark: #1e293b;
    --accent-primary: #10b981;
    --accent-secondary: #64748b;
    --accent-success: #2BA145;
    --accent-warning: #f69e24ff;
    --text-dark: #334155;
    --text-gray: #64748b;
    --text-light: #94a3b8;
    --text-white: #ffffff;
    --border-light: #e2e8f0;
    --border-medium: #cbd5e1;
    --shadow-light: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-large: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--primary-white);
    overflow-x: hidden;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 容器样式 - 欧美风格更大的间距 */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}

/* 响应式断点 */
@media (max-width: 768px) {
    .container {
        padding: 0 24px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }
}

/* 按钮样式 - 更简洁现代 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.025em;
}

.btn-primary {
    background: var(--accent-primary);
    color: white;
    box-shadow: var(--shadow-medium);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-large);
    background: #2BA145;
}

.btn-outline {
    border: 2px solid var(--accent-primary);
    color: var(--accent-primary);
    background: transparent;
    font-weight: 500;
}

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

/* 卡片样式 - 更简洁的阴影和圆角 */
.card {
    background: var(--primary-white);
    border-radius: 12px;
    box-shadow: var(--shadow-light);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    border: 1px solid var(--border-light);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
    border-color: var(--border-medium);
}

/* 动画类 - 更流畅的动画效果 */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(60px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* 加载动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.animate-fadeInUp {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.animate-pulse {
    animation: pulse 3s infinite;
}

/* 导航栏样式 - 更简洁现代 */
.navbar {
    background: var(--primary-white);
    box-shadow: var(--shadow-light);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.95);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-medium);
}

/* 导航容器样式 */
.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 0;
    width: 100%;
    max-width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 700;
    font-size: 1.75rem;
    letter-spacing: -0.025em;
}

.logo-icon {
    margin-right: 15px;
    width: 3rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 1.125rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 1rem;
    display: block;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    width: calc(100% - 2rem);
    height: 2px;
    background: var(--accent-primary);
    transition: width 0.3s ease;
    transform: scaleX(0);
    transform-origin: left;
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-dark);
    cursor: pointer;
    padding: 0.5rem;
}

/* 移动端菜单 - 此样式已被移动到媒体查询中 */

/* 页面banner样式 - 更简洁的背景 */
.page-banner {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-white));
    padding: 140px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(59, 130, 246, 0.03) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(16, 185, 129, 0.03) 0%, transparent 50%);
}

/* 底部样式 */
.footer {
    background: var(--primary-dark);
    color: white;
    padding: 80px 0 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 48px;
    margin-bottom: 48px;
}

.footer-section h3 {
    color: var(--accent-primary);
    margin-bottom: 2rem;
    font-size: 1.375rem;
    font-weight: 600;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 1.0625rem;
}

.footer-links a:hover {
    color: var(--accent-primary);
}

.contact-info {
    color: var(--text-light);
}

.contact-info p {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.0625rem;
}

.social-links {
    display: flex;
    gap: 16px;
    margin-top: 1.5rem;
}

.social-link {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.125rem;
}

.social-link:hover {
    background: var(--accent-primary);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    font-size: 1rem;
}

/* 响应式设计 - 导航栏和页脚 */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* 响应式工具类 */
.text-gradient {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-success));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-white));
}

/* 网格布局 - 更大的间距 */
.grid-auto-fit {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

@media (max-width: 768px) {
    .grid-auto-fit {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* 工具提示 */
.tooltip {
    position: relative;
    cursor: pointer;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-dark);
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.tooltip:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(-4px);
}

/* 新增欧美风格工具类 */
.text-large {
    font-size: 1.125rem;
    line-height: 1.75;
}

.text-xl {
    font-size: 1.25rem;
    line-height: 1.75;
}

.text-2xl {
    font-size: 1.5rem;
    line-height: 2;
}

.text-3xl {
    font-size: 1.875rem;
    line-height: 2.25;
}

.space-y-6 > * + * {
    margin-top: 1.5rem;
}

.space-y-8 > * + * {
    margin-top: 2rem;
}

.space-y-12 > * + * {
    margin-top: 3rem;
}

/* 桌面端：隐藏移动端菜单 */
.mobile-menu {
    display: none;
}
/* 移动端：显示移动端菜单并应用样式 */
@media (max-width: 768px) {
    .nav-container {
        width: 100%;
        max-width: 100%;
        padding: 1.25rem;
    }
    .menu-toggle {
        /* 显示汉堡菜单按钮 */
        display: block; 
        position: relative;
        z-index: 1002;
         /* 添加右边距避免超出屏幕 */
        margin-right: 0;
        background: none;
        border: none;
        font-size: 1.5rem;
        color: var(--text-dark);
        cursor: pointer;
        padding: 0.5rem;
    }
    
    .nav-menu {
        display: none; /* 隐藏桌面端导航菜单 */
    }
    
    .mobile-menu {
         /* 显示移动端菜单 */
        display: none;
        /* position: fixed; */
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--primary-white);
        /* padding-top: 50px;  */
        /* 为导航栏留出空间 */
        /* transform: translateX(-100%); */
        /* opacity: 0; */
        transition: all 0.3s ease;
        z-index: 1001;
        overflow-y: auto;
        /* 初始状态隐藏 */
        /* visibility: hidden;  */
    }
    
    .mobile-menu.active {
        transform: translateX(0);
        opacity: 1;
        visibility: visible; /* 激活时显示 */
    }
    
    .mobile-nav {
        list-style: none;
        /* padding: 0 2rem; */
    }
    
    .mobile-nav li {
        margin-bottom: 1.25rem;
    }
    
    .mobile-nav a {
        text-decoration: none;
        color: var(--text-dark);
        font-weight: 500;
        font-size: 1.25rem;
        display: block;
        padding: 0.75rem 1.5rem;
        transition: all 0.3s ease;
        /* border-radius: 8px; */
    }
    
    .mobile-nav a:hover,
    .mobile-nav a.active {
        color: var(--accent-primary);
        background-color: rgba(16, 185, 129, 0.1);
    }
}

/* 桌面端：确保汉堡菜单按钮隐藏 */
@media (min-width: 769px) {
    .menu-toggle {
        display: none !important; /* 强制隐藏汉堡菜单按钮 */
    }
}