/* 青莳轻食 - 深色惊艳设计系统 */ /* ========== 设计变量 ========== */ :root { /* 深色主题色板 */ --bg-dark: #0f1810; /* 深色背景 */ --bg-semi-dark: rgba(15, 24, 16, 0.85); /* 半透明深色 */ --bg-overlay: rgba(26, 46, 26, 0.75); /* 深绿遮罩 */ --bg-card: rgba(45, 80, 22, 0.65); /* 卡片背景 */ --primary-dark: #1a2e1a; /* 主色深绿 */ --primary-green: #2d5016; /* 主色绿 */ --accent-gold: #d4af37; /* 金色强调 */ --accent-gold-light: #f4d03f; /* 浅金色 */ --text-light: #f5f5f0; /* 浅色文字 */ --text-gray: #b8b8a8; /* 灰色文字 */ --border-light: rgba(212, 175, 55, 0.2); /* 金色边框 */ /* 间距系统 - 针对大屏幕优化 */ --spacing-xs: 0.75rem; /* 12px */ --spacing-sm: 1.25rem; /* 20px */ --spacing-md: 2rem; /* 32px */ --spacing-lg: 3rem; /* 48px */ --spacing-xl: 4rem; /* 64px */ --spacing-2xl: 6rem; /* 96px */ --spacing-3xl: 8rem; /* 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 2px 8px rgba(0,0,0,0.4); --shadow-md: 0 4px 12px rgba(0,0,0,0.5); --shadow-lg: 0 10px 20px rgba(0,0,0,0.6); --shadow-xl: 0 20px 30px rgba(0,0,0,0.7); --shadow-gold: 0 4px 16px rgba(212, 175, 55, 0.3); /* 过渡 */ --transition-fast: 150ms ease; --transition-base: 250ms ease; --transition-slow: 350ms ease; /* 布局 */ --container-max: 1600px; /* 增加最大宽度适配1920屏幕 */ } /* ========== 重置样式 ========== */ * { 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(15, 24, 16, 0.75) 0%, rgba(45, 80, 22, 0.85) 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::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: rgba(15, 24, 16, 0.9); 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: rgba(45, 80, 22, 0.3); 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:hover { background: rgba(212, 175, 55, 0.2); color: var(--accent-gold-light); transform: translateY(-2px); box-shadow: var(--shadow-gold); } .nav-item.active { background: rgba(212, 175, 55, 0.3); color: var(--accent-gold-light); border-color: var(--accent-gold); box-shadow: var(--shadow-gold); } /* ========== 内容区块 - 图片背景 ========== */ .section { padding: var(--spacing-3xl) 0; background: var(--bg-dark); position: relative; } /* 深色图片背景 - 奇数区块 */ .section:nth-child(odd) { background-image: linear-gradient(to bottom, rgba(15, 24, 16, 0.95) 0%, rgba(15, 24, 16, 0.92) 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(even) { background-image: linear-gradient(to bottom, rgba(26, 46, 26, 0.95) 0%, rgba(26, 46, 26, 0.92) 100%), url('https://images.unsplash.com/photo-1490645935967-10de6ba17061?w=1920&q=80'); background-size: cover; background-position: center; background-attachment: fixed; } .container { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--spacing-md); } .section-header { display: flex; align-items: center; gap: var(--spacing-xl); margin-bottom: var(--spacing-3xl); padding: var(--spacing-2xl); background: rgba(45, 80, 22, 0.4); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); border-radius: var(--radius-2xl); border: 2px solid var(--border-light); box-shadow: var(--shadow-2xl); } .agent-avatar { width: 120px; height: 120px; border-radius: var(--radius-xl); object-fit: cover; border: 4px solid var(--accent-gold); box-shadow: var(--shadow-gold); transition: all var(--transition-base); } .agent-avatar:hover { transform: scale(1.05); box-shadow: 0 4px 20px rgba(212, 175, 55, 0.5); } .agent-info { flex: 1; } .agent-name { font-size: var(--text-lg); color: var(--accent-gold); 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: 0 4px 20px rgba(0,0,0,0.5); } .section-content { max-width: 100%; /* 使用全宽 */ margin: 0 auto; } .expert-intro { background: rgba(45, 80, 22, 0.5); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); border-radius: var(--radius-2xl); padding: var(--spacing-2xl); margin-bottom: var(--spacing-3xl); border: 2px solid var(--border-light); box-shadow: var(--shadow-2xl); } .expert-intro h3 { font-size: var(--text-2xl); color: var(--accent-gold-light); 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: rgba(45, 80, 22, 0.65); 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-xl); 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: rgba(26, 46, 26, 0.8); border-bottom: 2px solid var(--border-light); order: 2; /* 标题放在图片下方 */ } .card-title { font-size: var(--text-2xl); font-weight: var(--font-semibold); color: var(--accent-gold-light); margin-bottom: var(--spacing-sm); } .card-body { padding: var(--spacing-xl); order: 3; /* 内容放在最后 */ flex: 1; } /* ========== 图片容器 - 突出展示 - 超大气布局 ========== */ .image-container { width: 100%; aspect-ratio: 3/2; /* 更宽的比例,3:2黄金比例 */ 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(--accent-gold-light); 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: rgba(45, 80, 22, 0.4); 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: rgba(26, 46, 26, 0.5); transition: all var(--transition-base); } .stat-item:hover { background: rgba(212, 175, 55, 0.2); transform: translateY(-4px); } .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(--accent-gold-light); text-shadow: 0 2px 8px rgba(0,0,0,0.5); } /* ========== 表格 ========== */ .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: rgba(26, 46, 26, 0.6); backdrop-filter: blur(10px); border-radius: var(--radius-lg); overflow: hidden; } th { background: rgba(45, 80, 22, 0.8); color: var(--accent-gold-light); padding: var(--spacing-md); text-align: left; font-weight: var(--font-semibold); border-bottom: 2px solid var(--accent-gold); } 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: rgba(212, 175, 55, 0.1); } /* ========== 产品展示 - 超大气布局 ========== */ .product-grid { display: grid; grid-template-columns: repeat(2, 1fr); /* 固定2列,产品卡片更大 */ gap: var(--spacing-2xl); margin: var(--spacing-2xl) 0; } .product-card { background: rgba(45, 80, 22, 0.6); 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-xl); 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: rgba(26, 46, 26, 0.5); order: 2; /* 信息放在图片下方 */ } .product-name { font-size: var(--text-xl); font-weight: var(--font-semibold); color: var(--accent-gold-light); 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); }