* { margin: 0; padding: 0; font-family: 'Microsoft YaHei', sans-serif; } body { color: #333; line-height: 1.6; min-height: 100vh; display: flex; flex-direction: column; align-items: center; } .header { text-align: center; margin-bottom: 40px; max-width: 800px; } .company-name { font-size: 32px; font-weight: bold; color: #1e3a8a; margin-bottom: 15px; } .description { font-size: 18px; color: #4a5568; margin-bottom: 30px; max-width: 600px; margin: 0 auto; } .main-content { max-width: 800px; background: white; border-radius: 15px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15); padding: 30px; margin-bottom: 40px; } .content-title { font-size: 24px; color: #2d3748; margin-bottom: 20px; padding-bottom: 15px; border-bottom: 2px solid #eaeaea; } .content-text { font-size: 16px; line-height: 1.8; color: #4a5568; margin-bottom: 20px; } /* 悬浮表单样式 */ .floating-form-container { position: fixed; bottom: 30px; right: 30px; z-index: 1000; } .floating-btn { width: 60px; height: 60px; background: #3182ce; color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 4px 20px rgba(49, 130, 206, 0.4); transition: all 0.3s ease; z-index: 1001; position: relative; } .floating-btn:hover { background: #2c5282; transform: translateY(-5px); } .floating-btn i { font-size: 24px; } .floating-form { position: absolute; bottom: -300px; right: 60px; width: 214px; background: white; border-radius: 12px; box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2); padding: 10px; opacity: 0; visibility: hidden; transform: translateX(20px) scale(0.95); transition: all 0.3s ease; z-index: 1000; } .form-visible .floating-form { opacity: 1; visibility: visible; transform: translateX(0) scale(1); } .form-title { font-size: 18px; margin-bottom: 10px; color: #2d3748; text-align: center; font-weight: 600; } .form-group { margin-bottom: 10px; } label { display: block; margin-bottom: 8px; font-weight: 500; color: #4a5568; font-size: 14px; } .required::after { content: "*"; color: #e53e3e; margin-left: 4px; } input, textarea { width: 100%; height: 10px; padding: 10px 1px; border: 1px solid #cbd5e0; border-radius: 6px; font-size: 12px; transition: border-color 0.3s; } select { width: 100%; height: 32px; border: 1px solid #cbd5e0; border-radius: 6px; font-size: 12px; transition: border-color 0.3s; } input:focus, textarea:focus, select:focus { outline: none; border-color: #4299e1; box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.2); } textarea { min-height: 56px; resize: vertical; } .submit-btn { background-color: #2566dc; color: white; border: none; font-size: 16px; font-weight: 500; border-radius: 6px; cursor: pointer; width: 218px; height: 34px; transition: background-color 0.3s; } .submit-wyzx { background-color: #157cdc; color: white; border: none; padding: 4px 12px; font-size: 16px; font-weight: 500; border-radius: 6px; cursor: pointer; width: 100px; transition: background-color 0.3s; } .submit-btn:hover { background-color: #2c5282; } .submit-wyzx:hover { background-color: #2c5282; } .error-message { color: #e53e3e; font-size: 12px; margin-top: 5px; display: none; } .close-btn { position: absolute; top: 15px; right: 15px; background: none; border: none; font-size: 20px; color: #718096; cursor: pointer; } .footer { text-align: center; margin-top: 30px; color: #718096; font-size: 14px; } /* 添加一些动画效果 */ @keyframes pulse { 0% { transform: scale(1); } 50% { transform: scale(1.05); } 100% { transform: scale(1); } } .pulse { animation: pulse 2s infinite; } @media (max-width: 768px) { .floating-form-container { bottom: 20px; right: 20px; } .floating-form { width: 300px; right: 0; } .main-content { padding: 20px; } .company-name { font-size: 26px; } } @media (max-width: 480px) { .floating-form { width: 280px; } } /* 提示信息 */ .tooltip { position: absolute; bottom: 70px; right: 70px; background: rgba(0, 0, 0, 0.8); color: white; padding: 8px 12px; border-radius: 4px; font-size: 12px; white-space: nowrap; opacity: 0; transition: opacity 0.3s; pointer-events: none; } .floating-btn:hover .tooltip { opacity: 1; }