@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;600;700&display=swap'); :root { --primary-color: #232F3E; --secondary-color: #FF9900; --accent-color: #0D6EFD; --text-color: #333333; --light-gray: #F8F9FA; --white: #FFFFFF; } body { font-family: 'Roboto', sans-serif; color: var(--text-color); } /* 通用样式 */ .container { @apply max-w-7xl mx-auto px-6 lg:px-8; margin-left: auto; margin-right: auto; width: 100%; } .section { @apply py-16; } .heading-1 { @apply text-5xl font-bold mb-6; } .heading-2 { @apply text-3xl font-medium mb-4; } .heading-3 { @apply text-2xl font-medium mb-2; } .btn-primary { @apply inline-block bg-[#FF9900] text-white px-6 py-3 rounded hover:bg-[#FF9900]/90; } .btn-secondary { @apply inline-block border border-white text-white px-6 py-3 rounded hover:bg-white/10; } /* 响应式布局 */ @media (max-width: 768px) { .container { @apply px-4; margin-left: auto; margin-right: auto; width: 100%; } .heading-1 { @apply text-4xl; } .heading-2 { @apply text-2xl; } .heading-3 { @apply text-xl; } } /* 页面加载动画 */ .page-loader { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: #fff; display: flex; justify-content: center; align-items: center; z-index: 9999; transition: opacity 0.5s; } .loader-spinner { width: 50px; height: 50px; border: 4px solid #f3f3f3; border-top: 4px solid #FF9900; border-radius: 50%; animation: spin 1s linear infinite; } @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } /* 导航栏样式 */ .nav-scrolled { background-color: rgba(35, 47, 62, 0.95); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 0 2px 4px rgba(0,0,0,0.1); } /* 响应式优化 */ @media (max-width: 768px) { .container { padding-left: 1rem; padding-right: 1rem; } .heading-1 { font-size: 2rem; line-height: 1.2; } .heading-2 { font-size: 1.75rem; line-height: 1.2; } .section { padding: 3rem 0; } } /* 表单样式优化 */ .form-input:focus { outline: none; border-color: #FF9900; box-shadow: 0 0 0 2px rgba(255, 153, 0, 0.2); } /* 动画效果 */ .hover-scale { transition: transform 0.3s ease; } .hover-scale:hover { transform: scale(1.02); } /* 卡片悬浮效果 */ .card-hover { transition: all 0.3s ease; } .card-hover:hover { transform: translateY(-5px); box-shadow: 0 4px 20px rgba(0,0,0,0.1); } /* 按钮动画 */ .btn-primary { position: relative; overflow: hidden; transition: all 0.3s ease; } .btn-primary:after { content: ''; position: absolute; top: 50%; left: 50%; width: 0; height: 0; background: rgba(255,255,255,0.2); border-radius: 50%; transform: translate(-50%, -50%); transition: width 0.6s ease, height 0.6s ease; } .btn-primary:hover:after { width: 300%; height: 300%; } /* 地图容器样式 */ #map-container { transition: all 0.3s ease; border: 1px solid #e5e7eb; } #map-container:hover { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); } /* 信息窗体样式 */ .amap-info-content { padding: 1rem !important; border-radius: 0.5rem; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); } .amap-info-close { color: #4B5563 !important; top: 0.5rem !important; right: 0.5rem !important; }