/* 青莳轻食 - 深色惊艳设计系统 */ /* ========== 设计变量 ========== */ :root { /* 清新绿色主题 - 食品餐饮风格 */ --bg-dark: #f8faf7; /* 浅色背景 */ --bg-semi-dark: rgba(248, 250, 247, 0.95); /* 半透明浅色 */ --bg-overlay: rgba(255, 255, 255, 0.85); /* 白色遮罩 */ --bg-card: rgba(255, 255, 255, 0.9); /* 卡片背景 */ --primary-dark: #2d7a3f; /* 主色深绿 */ --primary-green: #4caf50; /* 主色绿 - 清新明亮 */ --accent-gold: #ff9800; /* 橙色强调 - 食欲感 */ --accent-gold-light: #ffa726; /* 浅橙色 */ --text-light: #1a1a1a; /* 深色文字 */ --text-gray: #666666; /* 灰色文字 */ --border-light: rgba(76, 175, 80, 0.2); /* 绿色边框 */ --hover-bg: rgba(255, 152, 0, 0.15); /* 悬停背景 */ --active-bg: rgba(76, 175, 80, 0.2); /* 激活背景 */ /* 间距系统 - 优化为紧凑布局 */ --spacing-xs: 0.5rem; /* 8px - 减小从12px */ --spacing-sm: 0.75rem; /* 12px - 减小从20px */ --spacing-md: 1.25rem; /* 20px - 减小从32px */ --spacing-lg: 2rem; /* 32px - 减小从48px */ --spacing-xl: 2.5rem; /* 40px - 减小从64px */ --spacing-2xl: 3rem; /* 48px - 减小从96px */ --spacing-3xl: 4rem; /* 64px - 减小从128px */ /* 字体系统 */ --font-primary: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif; --font-display: 'Inter', sans-serif; /* 字体大小 - 针对大屏幕优化 */ --text-xs: 0.875rem; /* 14px */ --text-sm: 1rem; /* 16px */ --text-base: 1.125rem; /* 18px */ --text-lg: 1.375rem; /* 22px */ --text-xl: 1.625rem; /* 26px */ --text-2xl: 2rem; /* 32px */ --text-3xl: 2.5rem; /* 40px */ --text-4xl: 3rem; /* 48px */ --text-5xl: 4rem; /* 64px */ /* 字重 */ --font-light: 300; --font-normal: 400; --font-medium: 500; --font-semibold: 600; --font-bold: 700; /* 圆角 */ --radius-sm: 0.375rem; --radius-md: 0.5rem; --radius-lg: 0.75rem; --radius-xl: 1rem; --radius-2xl: 1.5rem; --radius-full: 9999px; /* 阴影 - 轻盈浅色主题 */ --shadow-sm: 0 1px 2px rgba(0,0,0,0.05); --shadow-md: 0 2px 4px rgba(0,0,0,0.08); --shadow-lg: 0 4px 8px rgba(0,0,0,0.1); --shadow-xl: 0 8px 16px rgba(0,0,0,0.12); --shadow-gold: 0 2px 8px rgba(255, 152, 0, 0.15); /* 过渡 */ --transition-fast: 150ms ease; --transition-base: 250ms ease; --transition-slow: 350ms ease; /* 布局 */ --container-max: 1600px; /* 增加最大宽度适配1920屏幕 */ } /* ========== 深色主题 ========== */ body.dark-theme { --bg-dark: #0a1a0f; /* 深邃森林绿背景 */ --bg-semi-dark: rgba(10, 26, 15, 0.95); /* 深绿半透明 */ --bg-overlay: rgba(13, 31, 19, 0.85); /* 深绿遮罩层 */ --bg-card: rgba(18, 35, 24, 0.9); /* 深绿卡片背景 */ --primary-dark: #2d6a3f; /* 中度森林绿 */ --primary-green: #4a9d5f; /* 翡翠绿 */ --accent-gold: #d4a574; /* 暖棕金色 */ --accent-gold-light: #e8c4a0; /* 浅暖棕金 */ --text-light: #e8f5e9; /* 浅绿白色文字 */ --text-gray: #a4c3a8; /* 绿灰色文字 */ --border-light: rgba(74, 157, 95, 0.25); /* 绿色边框 */ --hover-bg: rgba(212, 165, 116, 0.15); /* 悬停背景 */ --active-bg: rgba(74, 157, 95, 0.2); /* 激活背景 */ --shadow-sm: 0 1px 2px rgba(0,0,0,0.4); --shadow-md: 0 2px 4px rgba(0,0,0,0.5); --shadow-lg: 0 4px 8px rgba(0,0,0,0.6); --shadow-xl: 0 8px 16px rgba(0,0,0,0.7); --shadow-gold: 0 2px 8px rgba(212, 165, 116, 0.25); } /* ========== 重置样式 ========== */ * { margin: 0; padding: 0; box-sizing: border-box; } html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } body { font-family: var(--font-primary); font-size: var(--text-base); line-height: 1.6; color: var(--text-light); background-color: var(--bg-dark); overflow-x: hidden; } /* ========== Hero 区域 - 全屏图片背景 ========== */ .hero { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 247, 0.95) 100%), url('https://images.unsplash.com/photo-1540189549336-e6e99c3679fe?w=1920&q=80'); background-size: cover; background-position: center; background-attachment: fixed; position: relative; overflow: hidden; } /* 深色主题下的Hero渐变 */ body.dark-theme .hero { background: linear-gradient(135deg, rgba(10, 26, 15, 0.9) 0%, rgba(13, 31, 19, 0.8) 100%), url('https://images.unsplash.com/photo-1540189549336-e6e99c3679fe?w=1920&q=80'); background-size: cover; background-position: center; background-attachment: fixed; } .hero::before { content: ''; position: absolute; width: 100%; height: 100%; background-image: radial-gradient(circle at 20% 50%, rgba(212, 175, 55, 0.1) 0%, transparent 50%), radial-gradient(circle at 80% 80%, rgba(212, 175, 55, 0.05) 0%, transparent 50%); pointer-events: none; animation: glow 8s ease-in-out infinite; } @keyframes glow { 0%, 100% { opacity: 1; } 50% { opacity: 0.6; } } .hero-content { text-align: center; color: var(--text-light); z-index: 1; position: relative; padding: var(--spacing-xl); max-width: 900px; } .hero-badge { display: inline-block; padding: var(--spacing-md) var(--spacing-xl); background: rgba(212, 175, 55, 0.15); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-radius: var(--radius-full); font-size: var(--text-lg); font-weight: var(--font-semibold); letter-spacing: 0.1em; margin-bottom: var(--spacing-xl); border: 3px solid var(--accent-gold); box-shadow: var(--shadow-gold); text-transform: uppercase; transition: all var(--transition-base); } .hero-badge:hover { background: rgba(212, 175, 55, 0.25); transform: translateY(-2px); } .hero-title { font-size: clamp(3.5rem, 10vw, 6.5rem); font-weight: var(--font-bold); margin-bottom: var(--spacing-lg); letter-spacing: -0.02em; line-height: 1.1; color: var(--accent-gold-light); text-shadow: 0 6px 30px rgba(0,0,0,0.8), 0 0 60px rgba(212, 175, 55, 0.4); } .hero-subtitle { font-size: clamp(1.5rem, 4vw, 2.5rem); font-weight: var(--font-light); opacity: 0.95; margin-bottom: var(--spacing-xl); color: var(--text-light); } .hero-description { font-size: var(--text-xl); opacity: 0.85; max-width: 800px; margin: 0 auto; line-height: 1.8; } /* ========== 导航 - 深色玻璃态 ========== */ .nav { position: sticky; top: 0; z-index: 100; background: var(--bg-semi-dark); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid var(--border-light); padding: var(--spacing-md) 0; box-shadow: var(--shadow-md); } .nav-container { display: flex; justify-content: center; gap: var(--spacing-sm); flex-wrap: wrap; padding: 0 var(--spacing-md); } .nav-item { padding: var(--spacing-sm) var(--spacing-lg); background: var(--bg-overlay); backdrop-filter: blur(10px); border: 1px solid var(--border-light); border-radius: var(--radius-lg); cursor: pointer; transition: all var(--transition-base); font-weight: var(--font-medium); display: flex; align-items: center; gap: var(--spacing-xs); color: var(--text-gray); } .nav-item i { width: 20px; height: 20px; stroke-width: 2; } .nav-item span { font-size: var(--text-base); } .nav-item:hover { background: var(--hover-bg); color: var(--accent-gold); transform: translateY(-2px); box-shadow: var(--shadow-gold); } .nav-item.active { background: var(--active-bg); color: var(--primary-green); border-color: var(--primary-green); box-shadow: var(--shadow-gold); } /* ========== 内容区块 - 图片背景 ========== */ .section { padding: var(--spacing-2xl) 0; background: var(--bg-dark); position: relative; } /* 浅色图片背景 - 每个区块使用不同图片 */ .section:nth-child(1) { background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 247, 1) 100%), url('https://images.unsplash.com/photo-1512621776951-a57141f2eefd?w=1920&q=80'); background-size: cover; background-position: center; background-attachment: fixed; } .section:nth-child(2) { background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 247, 1) 100%), url('https://images.unsplash.com/photo-1490645935967-10de6ba17061?w=1920&q=80'); background-size: cover; background-position: center; background-attachment: fixed; } .section:nth-child(3) { background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 247, 1) 100%), url('https://images.unsplash.com/photo-1546069901-ba9599a7e63c?w=1920&q=80'); background-size: cover; background-position: center; background-attachment: fixed; } .section:nth-child(4) { background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 247, 1) 100%), url('https://images.unsplash.com/photo-1565299624946-b28f40a0ae38?w=1920&q=80'); background-size: cover; background-position: center; background-attachment: fixed; } .section:nth-child(5) { background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 247, 1) 100%), url('https://images.unsplash.com/photo-1555939594-58d7cb561ad1?w=1920&q=80'); background-size: cover; background-position: center; background-attachment: fixed; } .section:nth-child(6) { background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 247, 1) 100%), url('https://images.unsplash.com/photo-1567620905732-2d1ec7ab7445?w=1920&q=80'); background-size: cover; background-position: center; background-attachment: fixed; } /* 通用奇偶区块(当超过6个section时) */ .section:nth-child(n+7):nth-child(odd) { background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 247, 1) 100%), url('https://images.unsplash.com/photo-1512621776951-a57141f2eefd?w=1920&q=80'); background-size: cover; background-position: center; background-attachment: fixed; } .section:nth-child(n+7):nth-child(even) { background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 247, 1) 100%), url('https://images.unsplash.com/photo-1490645935967-10de6ba17061?w=1920&q=80'); background-size: cover; background-position: center; background-attachment: fixed; } /* 深色主题下的区块背景 - 每个区块使用对应图片 */ body.dark-theme .section:nth-child(1) { background-image: linear-gradient(to bottom, rgba(10, 26, 15, 0.92) 0%, rgba(13, 31, 19, 0.88) 100%), url('https://images.unsplash.com/photo-1512621776951-a57141f2eefd?w=1920&q=80'); background-size: cover; background-position: center; background-attachment: fixed; } body.dark-theme .section:nth-child(2) { background-image: linear-gradient(to bottom, rgba(13, 31, 19, 0.90) 0%, rgba(10, 26, 15, 0.88) 100%), url('https://images.unsplash.com/photo-1490645935967-10de6ba17061?w=1920&q=80'); background-size: cover; background-position: center; background-attachment: fixed; } body.dark-theme .section:nth-child(3) { background-image: linear-gradient(to bottom, rgba(10, 26, 15, 0.92) 0%, rgba(13, 31, 19, 0.88) 100%), url('https://images.unsplash.com/photo-1546069901-ba9599a7e63c?w=1920&q=80'); background-size: cover; background-position: center; background-attachment: fixed; } body.dark-theme .section:nth-child(4) { background-image: linear-gradient(to bottom, rgba(13, 31, 19, 0.90) 0%, rgba(10, 26, 15, 0.88) 100%), url('https://images.unsplash.com/photo-1565299624946-b28f40a0ae38?w=1920&q=80'); background-size: cover; background-position: center; background-attachment: fixed; } body.dark-theme .section:nth-child(5) { background-image: linear-gradient(to bottom, rgba(10, 26, 15, 0.92) 0%, rgba(13, 31, 19, 0.88) 100%), url('https://images.unsplash.com/photo-1555939594-58d7cb561ad1?w=1920&q=80'); background-size: cover; background-position: center; background-attachment: fixed; } body.dark-theme .section:nth-child(6) { background-image: linear-gradient(to bottom, rgba(13, 31, 19, 0.90) 0%, rgba(10, 26, 15, 0.88) 100%), url('https://images.unsplash.com/photo-1567620905732-2d1ec7ab7445?w=1920&q=80'); background-size: cover; background-position: center; background-attachment: fixed; } /* 通用奇偶区块(当超过6个section时) */ body.dark-theme .section:nth-child(n+7):nth-child(odd) { background-image: linear-gradient(to bottom, rgba(10, 26, 15, 0.92) 0%, rgba(13, 31, 19, 0.88) 100%), url('https://images.unsplash.com/photo-1512621776951-a57141f2eefd?w=1920&q=80'); background-size: cover; background-position: center; background-attachment: fixed; } body.dark-theme .section:nth-child(n+7):nth-child(even) { background-image: linear-gradient(to bottom, rgba(13, 31, 19, 0.90) 0%, rgba(10, 26, 15, 0.88) 100%), url('https://images.unsplash.com/photo-1490645935967-10de6ba17061?w=1920&q=80'); background-size: cover; background-position: center; background-attachment: fixed; } /* 深色主题下的特定元素调整 */ body.dark-theme .stat-item { background: rgba(18, 35, 24, 0.8); backdrop-filter: blur(5px); } body.dark-theme .stat-item:hover { background: rgba(74, 157, 95, 0.15); border-color: var(--primary-green); } body.dark-theme .stat-value { color: var(--accent-gold-light); } body.dark-theme th { background: rgba(74, 157, 95, 0.12); color: var(--accent-gold-light); } body.dark-theme tr:hover { background: rgba(74, 157, 95, 0.08); } .container { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--spacing-md); } .section-header { display: flex; align-items: center; gap: var(--spacing-lg); margin-bottom: var(--spacing-xl); padding: var(--spacing-lg); background: var(--bg-card); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); border-radius: var(--radius-xl); border: 2px solid var(--border-light); box-shadow: var(--shadow-md); } .agent-avatar { width: 100px; height: 100px; border-radius: var(--radius-xl); object-fit: cover; border: 3px solid var(--primary-green); box-shadow: var(--shadow-md); transition: all var(--transition-base); } .agent-avatar:hover { transform: scale(1.05); box-shadow: var(--shadow-lg); border-color: var(--accent-gold); } .agent-info { flex: 1; } .agent-name { font-size: var(--text-lg); color: var(--primary-green); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: var(--spacing-sm); font-weight: var(--font-semibold); } .section-title { font-size: var(--text-4xl); font-weight: var(--font-bold); color: var(--text-light); letter-spacing: -0.01em; text-shadow: none; position: relative; padding-bottom: var(--spacing-sm); } .section-title::after { content: ''; position: absolute; bottom: 0; left: 0; width: 180px; height: 4px; background: linear-gradient(90deg, var(--accent-gold), transparent); border-radius: 2px; } .section-content { max-width: 100%; /* 使用全宽 */ margin: 0 auto; } .expert-intro { background: var(--bg-card); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); border-radius: var(--radius-xl); padding: var(--spacing-lg); margin-bottom: var(--spacing-xl); border: 2px solid var(--border-light); box-shadow: var(--shadow-md); } .expert-intro h3 { font-size: var(--text-2xl); color: var(--primary-green); margin-bottom: var(--spacing-lg); display: flex; align-items: center; gap: var(--spacing-md); } .expert-intro p { color: var(--text-gray); line-height: 1.8; font-size: var(--text-lg); } /* ========== 网格布局 - 针对大屏幕优化,更大气的布局 ========== */ .grid { display: grid; gap: var(--spacing-2xl); } .grid-2 { grid-template-columns: repeat(2, 1fr); /* 固定2列,每列更宽 */ } .grid-3 { grid-template-columns: repeat(2, 1fr); /* 3列改为2列,图片更大 */ } .grid-4 { grid-template-columns: repeat(3, 1fr); /* 4列改为3列,图片更大 */ } /* ========== 卡片 - 图片优先布局 ========== */ .card { background: var(--bg-card); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-radius: var(--radius-2xl); overflow: hidden; border: 2px solid var(--border-light); transition: all var(--transition-base); box-shadow: var(--shadow-md); padding: 0; /* 移除内边距,让图片可以占满 */ display: flex; flex-direction: column; } .card:hover { transform: translateY(-8px); box-shadow: var(--shadow-xl), var(--shadow-gold); border-color: var(--accent-gold); } .card-header { padding: var(--spacing-xl); background: var(--bg-semi-dark); border-bottom: 2px solid var(--border-light); order: 2; /* 标题放在图片下方 */ } .card-title { font-size: var(--text-2xl); font-weight: var(--font-semibold); color: var(--primary-green); margin-bottom: var(--spacing-sm); } .card-body { padding: var(--spacing-xl); order: 3; /* 内容放在最后 */ flex: 1; } /* ========== 图片容器 - 紧凑布局 ========== */ .image-container { width: 100%; aspect-ratio: 16/9; /* 更紧凑的比例,16:9宽屏比例 */ overflow: hidden; border-radius: 0; /* 在卡片内时不需要圆角 */ margin-bottom: 0; /* 移除底部边距 */ background: rgba(0,0,0,0.5); position: relative; box-shadow: none; /* 卡片本身有阴影 */ border: none; /* 移除边框 */ transition: all var(--transition-base); order: 1; /* 图片放在最前面 */ flex-shrink: 0; /* 防止图片被压缩 */ } .image-container:hover { /* 移除hover效果,因为卡片本身有hover */ } .image-container img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition-slow); filter: brightness(0.9); } .image-container:hover img { transform: scale(1.1); filter: brightness(1.1); } .image-caption { position: absolute; bottom: 0; left: 0; right: 0; padding: var(--spacing-md); background: linear-gradient(to top, rgba(0,0,0,0.9), transparent); color: var(--text-light); font-size: var(--text-sm); font-weight: var(--font-medium); text-align: center; transform: translateY(100%); transition: transform var(--transition-base); } .image-container:hover .image-caption { transform: translateY(0); } /* ========== 列表 ========== */ .feature-list { list-style: none; padding: 0; } .feature-list li { padding: var(--spacing-sm) 0; border-bottom: 1px solid var(--border-light); color: var(--text-gray); transition: all var(--transition-fast); } .feature-list li:hover { color: var(--primary-green); padding-left: var(--spacing-sm); } .feature-list li:last-child { border-bottom: none; } /* ========== 统计数据 ========== */ .stats { display: flex; gap: var(--spacing-md); padding: var(--spacing-lg); background: var(--bg-overlay); backdrop-filter: blur(10px); border-radius: var(--radius-lg); border: 1px solid var(--border-light); } .stat-item { flex: 1; text-align: center; padding: var(--spacing-md); border-radius: var(--radius-md); background: var(--bg-card); border: 1px solid transparent; transition: all var(--transition-base); } .stat-item:hover { background: var(--hover-bg); transform: translateY(-4px); border-color: var(--border-light); box-shadow: var(--shadow-md); } .stat-label { font-size: var(--text-sm); color: var(--text-gray); margin-bottom: var(--spacing-xs); } .stat-value { font-size: var(--text-2xl); font-weight: var(--font-bold); color: var(--primary-green); text-shadow: none; } /* ========== 图表化统计数据 ========== */ .stats-chart { display: flex; flex-direction: column; gap: var(--spacing-lg); padding: var(--spacing-lg); background: var(--bg-overlay); backdrop-filter: blur(10px); border-radius: var(--radius-lg); border: 1px solid var(--border-light); } .stat-item-chart { display: flex; flex-direction: column; gap: var(--spacing-sm); } .stat-header { display: flex; justify-content: space-between; align-items: center; } .stat-bar { width: 100%; height: 12px; background: var(--active-bg); border-radius: var(--radius-full); overflow: hidden; position: relative; } .stat-bar-fill { height: 100%; background: linear-gradient(90deg, var(--bg-overlay),var(--primary-green) ); border-radius: var(--radius-full); transition: width 1s ease-out; position: relative; animation: fillBar 1.5s ease-out; } @keyframes fillBar { from { width: 0 !important; } } .stat-item-chart .stat-label { font-size: var(--text-base); color: var(--text-gray); font-weight: var(--font-medium); } .stat-item-chart .stat-value { font-size: var(--text-xl); font-weight: var(--font-bold); color: var(--primary-green); } /* ========== 表格 ========== */ .table-container { overflow-x: auto; margin: var(--spacing-xl) 0; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); } table { width: 100%; border-collapse: collapse; background: var(--bg-card); backdrop-filter: blur(10px); border-radius: var(--radius-lg); overflow: hidden; } th { background: var(--active-bg); color: var(--primary-green); padding: var(--spacing-md); text-align: left; font-weight: var(--font-semibold); border-bottom: 2px solid var(--primary-green); } td { padding: var(--spacing-md); border-bottom: 1px solid var(--border-light); color: var(--text-gray); } tr:last-child td { border-bottom: none; } tr:hover { background: var(--hover-bg); } /* ========== 图文交错布局 ========== */ .alternating-layout { display: flex; gap: var(--spacing-2xl); margin-bottom: var(--spacing-2xl); align-items: center; } .alternating-layout:last-child { margin-bottom: 0; } .alternating-layout.reverse { flex-direction: row-reverse; } .alternating-content { flex: 1; background: var(--bg-card); backdrop-filter: blur(10px); border-radius: var(--radius-2xl); padding: var(--spacing-xl); border: 2px solid var(--border-light); box-shadow: var(--shadow-md); } .alternating-image { flex: 1; aspect-ratio: 4/3; border-radius: var(--radius-2xl); overflow: hidden; box-shadow: var(--shadow-lg); border: 2px solid var(--border-light); } .alternating-image img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition-slow); } .alternating-image:hover img { transform: scale(1.05); } .alternating-content h3 { font-size: var(--text-2xl); color: var(--primary-green); margin-bottom: var(--spacing-md); display: flex; align-items: center; gap: var(--spacing-sm); } @media (max-width: 768px) { .alternating-layout, .alternating-layout.reverse { flex-direction: column; } } /* ========== 大图小卡片组合布局 ========== */ .hero-cards-layout { display: flex; flex-direction: column; gap: var(--spacing-2xl); } .hero-image-container { width: 100%; aspect-ratio: 16/9; border-radius: var(--radius-2xl); overflow: hidden; box-shadow: var(--shadow-xl); border: 2px solid var(--border-light); position: relative; } .hero-image-container img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition-slow); } .hero-image-container:hover img { transform: scale(1.02); } .hero-image-overlay { position: absolute; bottom: 0; left: 0; right: 0; padding: var(--spacing-xl); background: linear-gradient(to top, rgba(0,0,0,0.8), transparent); color: white; } .hero-image-overlay h3 { font-size: var(--text-3xl); font-weight: var(--font-bold); margin-bottom: var(--spacing-sm); } .hero-image-overlay p { font-size: var(--text-lg); opacity: 0.9; } .mini-cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--spacing-lg); } .mini-card { background: var(--bg-card); backdrop-filter: blur(10px); border-radius: var(--radius-xl); padding: var(--spacing-lg); border: 2px solid var(--border-light); text-align: center; transition: all var(--transition-base); box-shadow: var(--shadow-sm); } .mini-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--accent-gold); } .mini-card-icon { font-size: var(--text-3xl); margin-bottom: var(--spacing-sm); } .mini-card-title { font-size: var(--text-lg); font-weight: var(--font-semibold); color: var(--primary-green); margin-bottom: var(--spacing-xs); } .mini-card-desc { font-size: var(--text-sm); color: var(--text-gray); } /* ========== 时间线布局 ========== */ .timeline-layout { position: relative; padding-left: var(--spacing-2xl); } .timeline-layout::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: linear-gradient(to bottom, var(--primary-green), var(--accent-gold)); border-radius: var(--radius-full); } .timeline-item { position: relative; margin-bottom: var(--spacing-2xl); display: flex; gap: var(--spacing-xl); align-items: center; } .timeline-item:last-child { margin-bottom: 0; } .timeline-dot { position: absolute; left: calc(-1 * var(--spacing-2xl) - 8px); width: 20px; height: 20px; background: var(--primary-green); border: 3px solid white; border-radius: var(--radius-full); box-shadow: var(--shadow-md); z-index: 1; } .timeline-item:nth-child(even) .timeline-dot { background: var(--accent-gold); } .timeline-content { flex: 1; background: var(--bg-card); backdrop-filter: blur(10px); border-radius: var(--radius-xl); padding: var(--spacing-lg); border: 2px solid var(--border-light); box-shadow: var(--shadow-md); transition: all var(--transition-base); } .timeline-content:hover { transform: translateX(8px); box-shadow: var(--shadow-lg); border-color: var(--accent-gold); } .timeline-content h3 { font-size: var(--text-xl); color: var(--primary-green); margin-bottom: var(--spacing-sm); display: flex; align-items: center; gap: var(--spacing-sm); } .timeline-content p { color: var(--text-gray); line-height: 1.6; margin-bottom: var(--spacing-sm); } .timeline-image { flex: 0 0 300px; aspect-ratio: 4/3; border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-lg); border: 2px solid var(--border-light); } .timeline-image img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition-slow); } .timeline-image:hover img { transform: scale(1.05); } @media (max-width: 768px) { .timeline-item { flex-direction: column; } .timeline-image { flex: 0 0 auto; width: 100%; } } /* ========== 网格+高亮布局 ========== */ .featured-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--spacing-xl); } .featured-item { background: var(--bg-card); backdrop-filter: blur(10px); border-radius: var(--radius-2xl); overflow: hidden; border: 2px solid var(--border-light); transition: all var(--transition-base); box-shadow: var(--shadow-md); display: flex; flex-direction: column; } .featured-item:first-child { grid-column: 1 / 2; grid-row: 1 / 3; } .featured-item:hover { transform: translateY(-8px); box-shadow: var(--shadow-xl); border-color: var(--accent-gold); } .featured-item:first-child { background: linear-gradient(135deg, rgba(76, 175, 80, 0.15), rgba(255, 152, 0, 0.1)); } /* 深色主题下的高亮项 */ body.dark-theme .featured-item:first-child { background: linear-gradient(135deg, rgba(74, 157, 95, 0.2), rgba(212, 165, 116, 0.15)); } .featured-item:first-child .featured-image { aspect-ratio: 3/4; } .featured-image { width: 100%; aspect-ratio: 1; overflow: hidden; position: relative; } .featured-image img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition-slow); } .featured-item:hover .featured-image img { transform: scale(1.05); } .featured-badge { position: absolute; top: var(--spacing-md); right: var(--spacing-md); background: var(--accent-gold); color: white; padding: var(--spacing-xs) var(--spacing-md); border-radius: var(--radius-full); font-size: var(--text-sm); font-weight: var(--font-semibold); box-shadow: var(--shadow-md); } .featured-info { padding: var(--spacing-lg); flex: 1; display: flex; flex-direction: column; justify-content: center; } .featured-item:first-child .featured-info { padding: var(--spacing-xl); } .featured-title { font-size: var(--text-xl); font-weight: var(--font-bold); color: var(--primary-green); margin-bottom: var(--spacing-sm); } .featured-item:first-child .featured-title { font-size: var(--text-2xl); } .featured-desc { font-size: var(--text-base); color: var(--text-gray); line-height: 1.6; } .featured-item:first-child .featured-desc { font-size: var(--text-lg); } @media (max-width: 768px) { .featured-grid { grid-template-columns: 1fr; } .featured-item:first-child { grid-column: 1; grid-row: auto; } } /* ========== 垂直分栏布局 ========== */ .vertical-stack { display: flex; flex-direction: column; gap: var(--spacing-2xl); } .stack-card { background: var(--bg-card); backdrop-filter: blur(10px); border-radius: var(--radius-2xl); padding: var(--spacing-xl); border: 2px solid var(--border-light); box-shadow: var(--shadow-md); transition: all var(--transition-base); position: relative; overflow: hidden; } .stack-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background-size: cover; background-position: center; opacity: 0.08; z-index: 0; pointer-events: none; } .stack-card[data-bg-image]::before { background-image: var(--bg-image); } .stack-card:hover { box-shadow: var(--shadow-xl); border-color: var(--accent-gold); } .stack-card-header { display: flex; align-items: center; gap: var(--spacing-md); margin-bottom: var(--spacing-lg); padding-bottom: var(--spacing-md); border-bottom: 2px solid var(--border-light); position: relative; z-index: 1; } .stack-card-icon { font-size: var(--text-3xl); } .stack-card-title { font-size: var(--text-2xl); font-weight: var(--font-bold); color: var(--primary-green); } .stack-card-content { position: relative; z-index: 1; } .stack-card-body { width: 100%; } @media (max-width: 768px) { .stack-card-content { flex-direction: column; } } /* ========== 步骤卡片布局 ==========*/ .step-cards-layout { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--spacing-xl); position: relative; } .step-cards-layout::before { content: ''; position: absolute; top: 60px; left: 16.66%; right: 16.66%; height: 3px; background: linear-gradient(to right, var(--primary-green), var(--accent-gold), var(--primary-green)); z-index: 0; } .step-card { background: var(--bg-card); backdrop-filter: blur(10px); border-radius: var(--radius-2xl); overflow: hidden; border: 2px solid var(--border-light); transition: all var(--transition-base); box-shadow: var(--shadow-md); display: flex; flex-direction: column; position: relative; z-index: 1; } .step-card:hover { transform: translateY(-12px); box-shadow: var(--shadow-xl); border-color: var(--accent-gold); } .step-number { display: none; } .step-card:nth-child(2) .step-number { background: linear-gradient(135deg, var(--accent-gold), var(--primary-green)); } .step-card-image { width: 100%; aspect-ratio: 4/3; overflow: hidden; } .step-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition-slow); } .step-card:hover .step-card-image img { transform: scale(1.1); } .step-card-content { padding: var(--spacing-xl); flex: 1; display: flex; flex-direction: column; } .step-card-title { font-size: var(--text-xl); font-weight: var(--font-bold); color: var(--primary-green); margin-bottom: var(--spacing-md); display: flex; align-items: center; gap: var(--spacing-sm); } .step-card-desc { font-size: var(--text-base); color: var(--text-gray); line-height: 1.8; } @media (max-width: 768px) { .step-cards-layout { grid-template-columns: 1fr; } .step-cards-layout::before { display: none; } .step-card { margin-top: var(--spacing-lg); } } /* ========== 产品展示 - 超大气布局 ========== */ .product-grid { display: grid; grid-template-columns: repeat(2, 1fr); /* 固定2列,产品卡片更大 */ gap: var(--spacing-2xl); margin: var(--spacing-2xl) 0; } .product-card { background: var(--bg-card); backdrop-filter: blur(10px); border-radius: var(--radius-2xl); overflow: hidden; border: 2px solid var(--border-light); transition: all var(--transition-base); box-shadow: var(--shadow-md); padding: 0; /* 移除内边距 */ display: flex; flex-direction: column; } .product-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-xl), var(--shadow-gold); border-color: var(--accent-gold); } .product-image { width: 100%; aspect-ratio: 3/2; /* 更宽的比例,展示更多细节 */ object-fit: cover; transition: transform var(--transition-slow); filter: brightness(0.9); order: 1; /* 图片放在最前面 */ } .product-card:hover .product-image { transform: scale(1.05); filter: brightness(1.0); } .product-info { padding: var(--spacing-xl); background: var(--bg-semi-dark); order: 2; /* 信息放在图片下方 */ } .product-name { font-size: var(--text-xl); font-weight: var(--font-semibold); color: var(--primary-green); margin-bottom: var(--spacing-sm); } .product-desc { font-size: var(--text-base); color: var(--text-gray); } /* ========== 响应式 ========== */ @media (max-width: 768px) { :root { --spacing-sm: 0.75rem; --spacing-md: 1rem; --spacing-lg: 1.5rem; --spacing-xl: 2rem; --spacing-2xl: 3rem; --spacing-3xl: 4rem; } .hero { background-attachment: scroll; } .section:nth-child(odd), .section:nth-child(even) { background-attachment: scroll; } .hero-content { padding: var(--spacing-lg); } .nav-container { gap: var(--spacing-xs); } .nav-item { padding: var(--spacing-xs) var(--spacing-md); font-size: var(--text-sm); } .section { padding: var(--spacing-2xl) 0; } .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } .section-header { flex-direction: column; text-align: center; } .stats { flex-direction: column; } } /* ========== 动画 ========== */ @keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } } @keyframes slideIn { from { opacity: 0; transform: translateX(-20px); } to { opacity: 1; transform: translateX(0); } } @keyframes shimmer { 0% { background-position: -1000px 0; } 100% { background-position: 1000px 0; } } .fade-in { animation: fadeIn 0.6s ease forwards; } .slide-in { animation: slideIn 0.6s ease forwards; } /* ========== 工具类 ========== */ .text-center { text-align: center; } .text-left { text-align: left; } .text-right { text-align: right; } .mt-sm { margin-top: var(--spacing-sm); } .mt-md { margin-top: var(--spacing-md); } .mt-lg { margin-top: var(--spacing-lg); } .mt-xl { margin-top: var(--spacing-xl); } .mb-sm { margin-bottom: var(--spacing-sm); } .mb-md { margin-bottom: var(--spacing-md); } .mb-lg { margin-bottom: var(--spacing-lg); } .mb-xl { margin-bottom: var(--spacing-xl); } .hidden { display: none; } .block { display: block; } .flex { display: flex; } .grid { display: grid; } .gap-sm { gap: var(--spacing-sm); } .gap-md { gap: var(--spacing-md); } .gap-lg { gap: var(--spacing-lg); } /* ========== 图片加载状态 ========== */ img { transition: opacity var(--transition-base); } img.loaded { opacity: 1; } img.error { opacity: 0.5; filter: grayscale(1); } /* ========== SVG图标尺寸统一管理 ========== */ /* 根据不同区域设置合适的图标尺寸 */ /* Hero区域图标 */ .hero-description i[data-lucide] { width: 24px !important; height: 24px !important; display: inline-block !important; vertical-align: middle !important; margin-right: 8px !important; } /* Agent名称图标 */ .agent-name i[data-lucide] { width: 20px !important; height: 20px !important; display: inline-block !important; vertical-align: middle !important; margin-right: 8px !important; } /* h3标题图标 - 较大 */ .expert-intro h3 i[data-lucide], .alternating-content h3 i[data-lucide], .timeline-content h3 i[data-lucide], .step-card-title i[data-lucide], .hero-image-overlay h3 i[data-lucide], .stack-card-title i[data-lucide] { width: 40px !important; height: 40px !important; display: inline-block !important; vertical-align: middle !important; margin-right: 10px !important; } /* 列表项图标 - 小号 */ .feature-list li i[data-lucide] { width: 18px !important; height: 18px !important; display: inline-block !important; vertical-align: middle !important; margin-right: 8px !important; } /* 迷你卡片图标 - 大号 */ .mini-card-icon i[data-lucide] { width: 32px !important; height: 32px !important; display: block !important; } /* 堆叠卡片图标 - 大号 */ .stack-card-icon i[data-lucide] { width: 32px !important; height: 32px !important; display: block !important; } /* 导航图标 */ .nav-item i[data-lucide] { width: 20px !important; height: 20px !important; display: block !important; margin: 0 auto 4px !important; } /* ========== 主题切换按钮 ========== */ .theme-toggle { position: fixed; top: 24px; right: 24px; z-index: 1000; } .theme-toggle-btn { position: relative; width: 64px; height: 32px; background: var(--bg-card); border: 2px solid var(--border-light); border-radius: var(--radius-full); cursor: pointer; padding: 0; display: flex; align-items: center; justify-content: space-between; padding: 0 6px; transition: all var(--transition-base); box-shadow: var(--shadow-md); } .theme-toggle-btn:hover { transform: scale(1.05); box-shadow: var(--shadow-lg); } .theme-toggle-btn:active { transform: scale(0.95); } .theme-icon { width: 18px !important; height: 18px !important; transition: all var(--transition-base); color: var(--text-gray); } /* 明亮主题下的图标状态 */ body:not(.dark-theme) .theme-icon-light { color: var(--accent-gold); transform: scale(1.2); } body:not(.dark-theme) .theme-icon-dark { opacity: 0.5; } /* 深色主题下的图标状态 */ body.dark-theme .theme-icon-dark { color: var(--primary-green); transform: scale(1.2); } body.dark-theme .theme-icon-light { opacity: 0.5; }