* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }
body { background: #f0f4f8; display: flex; justify-content: center; align-items: flex-start; min-height: 100vh; padding: 20px; }
.lang-switch { position: absolute; top: 20px; right: 20px; display: flex; gap: 10px; z-index: 10; }
.lang-switch button { background: #fff; border: 1px solid #cbd5e0; color: #4a5568; padding: 6px 16px; border-radius: 20px; cursor: pointer; transition: 0.3s; font-weight: bold; }
.lang-switch button:hover { background: #3182ce; color: white; border-color: #3182ce; }

.container { background: #fff; padding: 40px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); max-width: 800px; width: 100%; text-align: center; margin-top: 40px; }
.title { color: #1a202c; font-size: 2.2rem; margin-bottom: 10px; }
.subtitle { color: #718096; margin-bottom: 40px; }
.options { display: flex; gap: 20px; margin-bottom: 20px; }
.card { flex: 1; padding: 30px; border: 2px solid #e2e8f0; border-radius: 12px; cursor: pointer; transition: all 0.3s ease; }
.card h2 { margin-bottom: 10px; color: #2b6cb0; }
.card p { color: #4a5568; font-size: 0.95rem; }
.card:hover { border-color: #3182ce; background: #ebf8ff; transform: translateY(-3px); box-shadow: 0 4px 15px rgba(49, 130, 206, 0.2); }
.engineer-card h2 { color: #c53030; }
.engineer-card:hover { border-color: #e53e3e; background: #fff5f5; box-shadow: 0 4px 15px rgba(229, 62, 62, 0.2); }

.hidden { display: none; }
.form-section { background: #f8fafc; padding: 30px; border-radius: 12px; margin-top: 10px; animation: fadeIn 0.4s ease-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
.form-section h3 { margin-bottom: 20px; color: #2d3748; }
form { display: flex; flex-direction: column; gap: 15px; }
input, select, textarea { padding: 14px; border: 1px solid #cbd5e0; border-radius: 8px; font-size: 1rem; color: #1a202c; width: 100%; box-sizing: border-box; }
input:focus, select:focus, textarea:focus { outline: none; border-color: #3182ce; box-shadow: 0 0 0 3px rgba(49,130,206,0.2); }
button[type="submit"], .btn-primary { background: #3182ce; color: white; padding: 14px; border: none; border-radius: 8px; font-size: 1rem; font-weight: bold; cursor: pointer; transition: 0.3s; text-align: center; }
button[type="submit"]:hover, .btn-primary:hover { background: #2b6cb0; }

.input-group { display: flex; gap: 10px; }
.input-group input { flex: 1; }
.btn-otp { background: #e2e8f0; color: #4a5568; border: 1px solid #cbd5e0; padding: 0 15px; border-radius: 8px; font-weight: bold; cursor: pointer; transition: 0.3s; white-space: nowrap; }
.btn-otp:hover { background: #cbd5e0; color: #2d3748; }

.tab-buttons { display: flex; margin-bottom: 20px; border-bottom: 2px solid #e2e8f0; }
.tab-buttons button { flex: 1; background: transparent; border: none; padding: 10px; font-size: 1.1rem; font-weight: bold; color: #a0aec0; cursor: pointer; }
.tab-buttons button.active { color: #3182ce; border-bottom: 3px solid #3182ce; }

.checkbox-container { background: #f8fafc; border: 1px solid #cbd5e0; border-radius: 8px; padding: 15px; margin-bottom: 15px; }
.checkbox-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; max-height: 150px; overflow-y: auto; padding-right: 5px; }
.checkbox-grid label { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; color: #4a5568; cursor: pointer; background: white; padding: 5px 8px; border-radius: 4px; border: 1px solid #e2e8f0; transition: 0.2s; }
.checkbox-grid label:hover { background: #ebf8ff; border-color: #3182ce; }

/* 📱 手机端究极响应式优化 */
@media (max-width: 768px) {
    body { padding: 10px; }
    .container { padding: 20px; margin-top: 60px; }
    .title { font-size: 1.8rem; }
    .options { flex-direction: column; }
    .card { padding: 20px; }
    .form-section { padding: 15px; }
    
    /* 调整输入框组合，防止在小屏幕溢出 */
    .input-group { flex-direction: column; }
    .btn-otp { width: 100%; padding: 14px; }
    
    /* 客户面板和工程师面板的列表垂直化 */
    .client-header { flex-direction: column; align-items: flex-start !important; }
    .search-bar form { flex-direction: column !important; }
    .search-bar select, .search-bar button, .search-bar a { width: 100% !important; margin-top: 5px; }
    
    .item-main { flex-direction: column !important; align-items: center; text-align: center; }
    .action-box { text-align: center !important; width: 100% !important; margin-top: 15px; }
    
    /* 工程师个人资料卡垂直化 */
    .profile-card { flex-direction: column !important; align-items: center; text-align: center; padding: 20px !important; }
    .info-section { width: 100%; min-width: 100% !important; }
    .stats-bar { flex-direction: column; gap: 10px; }
    
    .modal-content { width: 95%; padding: 20px; }
}